.offer-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.offer-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 15px;background:#262421;color:#fff;border:1px solid #262421;border-radius:7px;font-size:14px;font-weight:600;line-height:1.5}
.offer-link:hover{background:#493428;color:white}.offer-link+.offer-link{background:white;color:#302d29;border-color:#c9c4bc}.topup .offer-link{margin-inline-start:6px;background:none;color:#953b18;border:0;padding:3px 0;text-decoration:underline;text-underline-offset:3px}
body:has(.shell),body.studio-page{--bg-void:#f8f7f4;--bg-base:#f5f3ef;--bg-panel:#fff;--bg-elevated:#f2efea;--bg-hover:#eeebe5;--ink:#242320;--ink-sec:#54514d;--ink-muted:#65605a;--line:#e2ded7;--line-strong:#c9c4bb;--anvil:#ad431b;--anvil-bright:#a8411b;--anvil-soft:#fbede2;--anvil-border:#e5c9b6;--emerald:#286848;--crimson:#9a3334;--edge-highlight:none;--sans:Inter,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;--display:var(--sans);--mono:var(--sans);color-scheme:light;background:var(--bg-void);color:var(--ink);font-family:var(--sans)}
body:has(.shell)::before,body.studio-page::before{display:none}
.shell .brand,.studio-bar .brand{font:700 22px/1.1 var(--sans);letter-spacing:-1.1px;text-transform:none}.shell .mark,.studio-bar .mark{width:25px;height:23px;background:#c95321;clip-path:polygon(0 18%,69% 18%,69% 9%,100% 9%,97% 36%,69% 51%,66% 69%,82% 81%,83% 92%,24% 92%,26% 81%,41% 69%,41% 55%,18% 48%);border:0;box-shadow:none}.shell .mark:before,.shell .mark:after,.studio-bar .mark:before,.studio-bar .mark:after{display:none}
.shell aside{background:#f6f4f0}.shell .side-nav a,.shell .side-foot a{border-radius:7px;font-size:14px;letter-spacing:0}.shell .side-nav [aria-current=page]{background:#f6e8dc;color:#88340f;box-shadow:none;border-color:transparent}.shell .avatar{border-radius:50%;font-size:14px}.shell .topbar,.studio-page .studio-bar{background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none}.shell .crumb{text-transform:none;letter-spacing:0}.shell .page{max-width:1190px;padding-top:clamp(26px,5vw,64px)}.shell .page-head{align-items:center}.shell .page-head h1,.studio-heading h1{font:630 clamp(31px,3.5vw,48px)/1.18 var(--display);letter-spacing:-.055em;margin:0}.shell .page-head p{max-width:60ch}.shell .panel,.shell .intro-card,.shell .report-item,.studio-start,.studio-links a,.tool-drawer{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:none}.shell .panel,.shell .intro-card{padding:clamp(17px,2vw,28px)}.shell .panel h2,.studio-start h2{font:625 21px/1.35 var(--display);letter-spacing:-.035em}.shell .stats{border:0;box-shadow:none;gap:14px;background:none}.shell .stat{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px 22px}.shell .stat:first-child{background:#fbefe4;border-color:#ecd4bf}.shell .stat span,.studio-links span{font-size:14px;letter-spacing:0;text-transform:none}.shell .stat strong{font-size:36px;font-weight:620}.shell .panels{gap:16px;margin-top:18px}.shell .empty{background:transparent;border:0}.shell .empty .glyph{background:var(--bg-elevated);border:0;border-radius:8px;color:var(--ink-sec)}.shell .positive{color:#286848}.shell .panel-head,.shell .line-item{border-color:var(--line)}.shell a.link,.shell .icon-action,.shell .panel-head a{color:#953b18}.shell .primary,.studio-page .primary{background:#292622;border-color:#292622;border-radius:7px;color:white;font-weight:600;box-shadow:none;letter-spacing:0;text-transform:none;white-space:normal}.shell .primary:hover,.studio-page .primary:hover{background:#47372d;box-shadow:none}.shell .small-btn,.shell .outline,.shell .field,.studio-page .studio-btn,.studio-page .studio-select,.studio-page .back-link{border-radius:7px;letter-spacing:0;text-transform:none}.shell .msg,.studio-page .badge{border-radius:7px}.shell table,.shell .mono{font-variant-numeric:tabular-nums}.shell .msg.alert{color:#8f2f15;background:#fff1e9}.shell .payment{max-width:720px}.payment fieldset{min-width:0;border:0;padding:0;margin:0 0 23px}.payment legend{font-size:16px;font-weight:650;margin:0 0 12px}.offer,.method{cursor:pointer;border:1px solid var(--line-strong);border-radius:9px;display:flex;align-items:center;gap:12px;padding:13px 15px;background:white;margin:7px 0}.offer:has(:checked),.method:has(:checked){background:#fcf3eb;border-color:#b8582d}.offer input,.method input{accent-color:#a8421b;width:16px;height:16px;flex:none}.offer strong,.offer small{display:block}.offer strong{font-size:16px}.offer small{color:var(--ink-muted);font-size:13px}.offer b{margin-left:auto;white-space:nowrap}.methods,.studio-heading,.studio-start,.studio-links,.start-actions{display:flex;align-items:center;gap:12px}.method{margin:0 0 4px}.payment>p{margin-bottom:16px}.pay-submit:disabled{opacity:.6;cursor:not-allowed}.studio-page .studio-bar{padding:12px max(18px,calc((100vw - 1180px)/2));position:relative;gap:12px}.studio-page .back-link{border:0;background:none}.studio-page .studio-right{margin-left:auto}.studio-page #creditBadge{background:#f7eee3;color:#82411e}.studio-home{width:min(1150px,calc(100% - 64px));margin:clamp(28px,5vw,66px) auto 60px}.studio-heading{justify-content:space-between;margin-bottom:24px}.studio-heading>a,.studio-links a:hover{color:var(--anvil-bright)}.studio-start{justify-content:space-between;gap:20px;padding:clamp(23px,4vw,44px);background:#fbefe4;border-color:#ecd4bf}.studio-start h2{font-size:clamp(22px,2.4vw,32px);margin:0 0 6px}.studio-start p,.start-actions small{color:var(--ink-sec)}.start-actions{align-items:flex-end;flex-direction:column;gap:5px}.start-actions small{font-size:13px}.studio-links{margin:16px 0 26px;display:grid;grid-template-columns:1fr 1fr}.studio-links a{display:grid;gap:7px;padding:20px 24px}.studio-links b{font-size:32px;font-weight:620}.tool-drawer>summary,.account-tools summary{cursor:pointer;list-style:revert}.tool-drawer>summary{padding:18px 24px;font-weight:650}.studio-page .studio-grid{border-top:1px solid var(--line);min-height:0}.studio-page .left-rail{min-height:0}.studio-page [hidden]{display:none!important}.account-tools{position:relative}.account-tools summary{font-size:14px}.account-tools>div{z-index:10;position:absolute;min-width:205px;right:0;top:100%;margin-top:6px;border:1px solid var(--line);background:white;padding:14px;display:grid;gap:8px;border-radius:9px}.studio-page .tools-connection{padding:0 24px 12px}.studio-page .badge-ok{color:#25674c}.studio-page .canvas-stage,.studio-page .log-list,.studio-page pre{--ink:#f5f3f0;--ink-sec:#d4d2d0;--ink-muted:#b6b2ab;--bg-panel:#191a1e;--bg-base:#121317;--bg-void:#101115;--line:#373738;--line-strong:#545453;--anvil-bright:#ff9564;background-color:#141519;color:var(--ink)}.studio-page #studio-message:empty{display:none}
@media(max-width:760px){.shell .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.shell .stat{padding:12px 9px}.shell .stat span{font-size:12px;overflow-wrap:anywhere}.shell .stat strong{font-size:24px}.shell .page-head{align-items:flex-start;gap:10px}.shell .panels{grid-template-columns:1fr}.studio-home{width:calc(100% - 30px)}.studio-start{flex-direction:column;align-items:flex-start}.start-actions{align-items:flex-start}.studio-links a{padding:14px}.studio-heading{flex-wrap:wrap}.studio-page .studio-right,.studio-page .studio-left{gap:7px}.studio-page .studio-bar{position:static}.studio-grid,.studio-grid>*{min-width:0}.tool-drawer{overflow-wrap:anywhere}.offer{padding:12px 9px;gap:7px}.shell .topbar .ws-row{gap:7px}}
@media(max-width:400px){.shell .topbar .crumb .prefix{display:none}.studio-home{width:calc(100% - 24px)}}
html:has(body.studio-page),html:has(.shell){background:#f8f7f4}body.studio-page{min-height:100dvh}
#auth-offer{margin:14px 0 0;padding:9px 12px;background:#fbefe4;color:#843813;border-radius:7px;font-weight:600}
/* Keep interactive surfaces and their text in the same theme, including transient states. */
:root { --control-stroke:#817c75; --focus-ring:#16599c; }
body :is(button,a,input,select,summary,textarea,[tabindex]):focus-visible {
  outline:3px solid var(--focus-ring); outline-offset:2px;
}
:is(.shell,.studio-page,#authModal) :is(.field,.form-input,.studio-select,.outline,.google-btn,.small-btn),
.shell :is(.method,.offer) { border-color:var(--control-stroke); }
:is(.field,.form-input)::placeholder { color:#625e59; opacity:1; }
body :is(.primary,.btn-primary,.pay-submit):disabled {
  color:#514e49; background:#e5e2dd; border-color:#827d77; opacity:1;
}
.shell .method:has(input:disabled) { background:#edeae6; color:#58544f; }
.shell .msg { background:#e8f4ee; color:#18563e; border-color:#51816b; }
.shell .msg.alert,.studio-page :is(.status-box,.error) { background:#fff0ed; color:#842c22; border-color:#995e57; }
.studio-page .studio-btn-danger { color:#8b2334; background:#fff0f1; border-color:#ab5b68; }
.studio-page .studio-btn-danger:hover { color:#73182b; background:#ffdde1; border-color:#933e50; }
.studio-page .sim-btn { color:var(--ink); }
.studio-page .sim-btn-header [style*="color:"] { color:#703b22 !important; }
.studio-page .sim-btn-tag { color:#494540; background:#f2efeb; border-color:#8b847c; }
.studio-page .sim-btn-header .sim-btn-tag[style] { color:#3f3934 !important; }
.studio-page .canvas-stage,.studio-page .log-list,.studio-page pre,.studio-page #redirectUriHint {
  color-scheme:dark;
  --ink:#f5f3ef; --ink-sec:#dedad5; --ink-muted:#bfc2c9;
  --bg-panel:#1c2026; --bg-base:#14171d; --bg-elevated:#313842; --bg-hover:#333942;
  --anvil:#ffae7d; --anvil-bright:#ffc397; --anvil-soft:#402c23; --anvil-border:#ad805f;
  --line-strong:#838a95; --control-stroke:#838a95; --focus-ring:#9ed5ff;
}
.studio-page .cmd-tab { font-size:12px; }
.studio-page .cmd-tab:hover { color:var(--ink); background:var(--bg-hover); }
.studio-page .cmd-tab.active,.studio-page .cmd-tab.active:hover {
  color:#321d14; background:#ffd4b4; border-color:#ffd4b4;
  font-weight:700; box-shadow:inset 0 -2px #92512b;
}
.studio-page .pro-tag { color:#ffd4b4; background:#402c23; border-color:#ad805f; }
.studio-page :is(.seg-btn.active-off,.seg-btn.active-block,.seg-btn.active-warn) { box-shadow:inset 0 -2px currentColor; }
.studio-page .node-rect { stroke:#828892; }
.studio-page .edge-line:not(.edge-active-ok,.edge-active-block,.edge-active-pivot) { stroke:#87909d; opacity:1 !important; }
.studio-page #topoSvg text[fill="#7b8396"] { fill:#b6c1d3; }
.studio-page .log-list .pill-purple { background:#3e2942; color:#f4c8fa; border-color:#9868a0; }
.studio-page pre a { text-decoration:underline; text-underline-offset:3px; color:#b9dcff; }
.studio-page .canvas-stage .studio-btn:hover,.studio-page pre .studio-btn:hover { border-color:#c9d2de; }
.studio-page :is(.studio-select,.studio-btn,.back-link):focus-visible,
.shell :is(.field,.outline):focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
@media (forced-colors:active) {
  body :is(button,a,input,select,summary,textarea,[tabindex]):focus-visible { outline-color:Highlight; }
  .studio-page .cmd-tab.active,.shell [aria-current="page"] { outline:2px solid Highlight; outline-offset:-2px; }
}
.studio-page .chk-wrap {
  --line-strong:var(--control-stroke); --brand-color:#913d1f; accent-color:#913d1f;
}
.studio-page :is(.studio-select,.studio-btn,.back-link):not(:disabled):hover,
.shell :is(.outline,.small-btn):not(:disabled):hover { border-color:var(--control-stroke); }
.studio-page .studio-btn:disabled {
  background:var(--bg-elevated); color:var(--ink-muted); border-color:var(--line-strong); opacity:1;
}
