/* look 9 · inner glass, loaded last.
   Nested boxes inside frosted panels and pop-ups used the opaque page greys (--bg1/2/3 ≈ #12161c–#1d232d) and read
   as near-black slabs on the glass. Here they become nested glass: a slightly lighter, cool (steel / ice) translucent
   fill, a gradient hairline edge brighter at the top-left, a faint top highlight. Recessed parts (tracks, inputs,
   explanation areas) are a soft darker frost. Selected = tinted glass with the glow inside (no outer spill).
   CSS only; every rule is scoped to look 9. */

html:root[data-look="9"] {
  /* nested glass card */
  --in-bg: linear-gradient(180deg, rgba(240,247,255,.055), rgba(240,247,255,.012) 44%), rgba(201,220,242,.045);
  --in-edge: linear-gradient(150deg, rgba(240,247,255,.24), rgba(201,220,242,.09) 38%, rgba(169,191,216,.05) 72%, rgba(201,220,242,.1));
  --in-sh: inset 0 1px 0 rgba(255,255,255,.09);
  /* recessed glass (tracks, wells, explanation areas) */
  --rc-bg: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)), rgba(10,13,18,.2);
  --rc-sh: inset 0 1px 2px rgba(0,0,0,.22), inset 0 0 0 1px rgba(201,220,242,.06), 0 1px 0 rgba(255,255,255,.035);
  /* selected segment: ice-tinted glass, glow inside */
  --seg-on-bg: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 60%), color-mix(in srgb, var(--tc, #c9dcf2) 12%, transparent);
  --seg-on-sh: inset 0 1px 0 color-mix(in srgb, var(--tc, #c9dcf2) 55%, rgba(255,255,255,.45)), inset 0 0 0 1px color-mix(in srgb, var(--tc, #c9dcf2) 22%, transparent),
    inset 0 10px 18px -12px color-mix(in srgb, var(--tc, #c9dcf2) 50%, transparent);
}

/* ---------- shared: the nested glass card + its gradient hairline ---------- */
html:root[data-look="9"] :is(.fee-to, .xc.on, .xt) {
  position: relative; isolation: isolate; border: 0 !important; border-radius: 14px !important;
  background: var(--in-bg) !important; box-shadow: var(--in-sh) !important; }
html:root[data-look="9"] :is(.fee-to, .xc.on, .xt)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--in-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------- Where your creator fees go ---------- */
html:root[data-look="9"] .fee-to-h { color: var(--tx); }
/* segmented choice: a recessed glass track, the picked side tinted glass */
html:root[data-look="9"] .split.fitv .fv-seg { background: var(--rc-bg) !important; box-shadow: var(--rc-sh) !important; border-radius: 11px; padding: 3px; gap: 3px; }
html:root[data-look="9"] .split.fitv .fv-seg .fee-to-r { --tc: #c9dcf2; border-radius: 8px; color: var(--tx2); transition: background .25s ease, box-shadow .25s ease, color .25s ease; }
html:root[data-look="9"] .split.fitv .fv-seg .fee-to-r:not(.on):hover { background: rgba(255,255,255,.045) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important; color: var(--tx); }
html:root[data-look="9"] .split.fitv .fv-seg .fee-to-r.on { background: var(--seg-on-bg) !important; box-shadow: var(--seg-on-sh) !important; color: #fff; }
/* non-fit layout (stacked radio rows): hover is a soft brighten, not the dark grey */
html:root[data-look="9"] .fee-to-r:not(.fitv .fee-to-r):hover { background: rgba(255,255,255,.045) !important; }
/* the (?) toggle: a small glass disc */
html:root[data-look="9"] .split.fitv .fv-q { border: 0; color: var(--tx2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), rgba(201,220,242,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.1); transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
html:root[data-look="9"] .split.fitv :is(.fv-q-b[aria-expanded="true"] .fv-q, .fv-q-b:hover .fv-q) { color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)), rgba(201,220,242,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(223,233,245,.22); }
/* the explanations: a softer inset glass area instead of a divider line on black */
/* the small Send-to segmented control: same recessed track and picked glass as the main one */
html:root[data-look="9"] .fv-seg.fv-seg-sm { background: var(--rc-bg) !important; box-shadow: var(--rc-sh) !important; }
html:root[data-look="9"] .fv-seg.fv-seg-sm .fee-to-r:not(.on):hover { background: rgba(255,255,255,.045) !important; color: var(--tx); }
html:root[data-look="9"] .fv-seg.fv-seg-sm .fee-to-r.on { background: var(--seg-on-bg) !important; box-shadow: var(--seg-on-sh) !important; color: #fff; }
html:root[data-look="9"] .fee-to:not(.fv-feeto) .fee-to-how { border-top-color: rgba(201,220,242,.08); }

/* ---------- Connect X: account row and the First tweet card ---------- */
html:root[data-look="9"] .xc.on { padding: 10px 12px; }
html:root[data-look="9"] .xc-av { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)), rgba(10,13,18,.35); border: 0; color: #f4f7fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.1); }
html:root[data-look="9"] .xc-id b { color: var(--tx); }
html:root[data-look="9"] :is(.xc, .xt) .lnk { color: var(--tx3); text-decoration: underline; text-decoration-color: rgba(201,220,242,.25); text-underline-offset: 3px; }
html:root[data-look="9"] :is(.xc, .xt) .lnk:hover { color: var(--ac-ice); text-decoration-color: rgba(223,233,245,.6); }
html:root[data-look="9"] .xt { padding: 12px 14px; gap: 10px; }
html:root[data-look="9"] .xt:not(.on) { padding: 10px 14px; }
html:root[data-look="9"] .xt-h b { color: var(--tx); }
html:root[data-look="9"] .xt-lbl { color: var(--tx3); }
/* the tweet itself stays X's dark card, but with the glass edge and a faint top highlight so it sits in the panel */
html:root[data-look="9"] .tw { border: 0 !important; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 34%), rgba(4,6,9,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.075), 0 12px 28px -18px rgba(0,0,0,.8); }
html:root[data-look="9"] .tw-media { border-color: rgba(255,255,255,.08); }
html:root[data-look="9"] .xt-acts { gap: 12px; }
html:root[data-look="9"] .xt-auto { color: var(--tx2); }

/* ---------- switches (.c-tog): the glass track the rest of the app uses (.lt-sw) ---------- */
html:root[data-look="9"] .c-tog { background: var(--rc-bg) !important; border: 0 !important; box-shadow: var(--rc-sh) !important; }
html:root[data-look="9"] .c-tog button i { background: rgba(255,255,255,.06) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.08); }
html:root[data-look="9"] .c-tog button i::after { background: #8d97a5; }
html:root[data-look="9"] .c-tog button.on i { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(201,220,242,.12)), rgba(143,179,217,.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 8px -2px rgba(223,233,245,.45); }
html:root[data-look="9"] .c-tog button.on i::after { background: #f6f9fd; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
/* in the First tweet header the switch stands alone (no track box around it), a little larger, like .lt-sw */
html:root[data-look="9"] .xt-h .c-tog { background: none !important; box-shadow: none !important; padding: 0; }
html:root[data-look="9"] .xt-h .c-tog button { padding: 0; height: 22px; background: none !important; box-shadow: none; }
html:root[data-look="9"] .xt-h .c-tog button i { width: 36px; height: 20px; border-radius: 999px; }
html:root[data-look="9"] .xt-h .c-tog button i::after { top: 3px; left: 3px; width: 14px; height: 14px; transition: transform .2s, background .2s; }
html:root[data-look="9"] .xt-h .c-tog button.on i::after { left: 3px; transform: translateX(16px); }
html:root[data-look="9"] .xt-h .c-tog button:focus-visible { border-radius: 999px; }

/* ---------- checkboxes: glass box, ice check ---------- */
html:root[data-look="9"] input[type="checkbox"] { accent-color: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(10,13,18,.25) center / 16px 16px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.16); }
html:root[data-look="9"] input[type="checkbox"]:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(223,233,245,.4); }
html:root[data-look="9"] input[type="checkbox"]:is(:checked, :indeterminate) {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.6 8.3 L6.6 11.1 L12.4 5' fill='none' stroke='%23f2f8ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px 16px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(201,220,242,.08)), rgba(143,179,217,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(223,233,245,.32), inset 0 0 8px -2px rgba(223,233,245,.4); }
html:root[data-look="9"] input[type="checkbox"]:indeterminate {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8 H12' fill='none' stroke='%23f2f8ff' stroke-width='1.9' stroke-linecap='round'/></svg>") center / 16px 16px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(201,220,242,.08)), rgba(143,179,217,.3); }

/* ===================== sweep: other nested near-black boxes ===================== */
/* nested info boxes and summaries inside panels (Launch "Where this launch is", recipe summary, preset editor cost and
   rungs, "Where" tiles): the same nested glass card */
html:root[data-look="9"] :is(.where div, .lr-sum, .te-cost, .te-rung, .lf-sum, .hg-sum, .wx-sum, .tt-sum > div, .pp-note, .curve-note, .wv-job, .wv-finds-box, .ro-panel) {
  border-color: transparent !important; background: var(--in-bg) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(201,220,242,.085) !important; }
html:root[data-look="9"] :is(.where div, .te-cost, .te-rung) { border-radius: 12px !important; }
html:root[data-look="9"] .where small { color: var(--tx3); }

/* the launch bar on the review page: a frosted panel like its neighbours, ice edge instead of the accent outline */
html:root[data-look="9"] .start-bar { border: 0 !important; border-radius: 18px !important; position: relative; isolation: isolate;
  background: radial-gradient(420px 130px at 0% 0%, rgba(223,233,245,.09), transparent 70%), var(--fz-top), var(--fz) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.09), var(--fz-sh) !important;
  -webkit-backdrop-filter: var(--fz-blur); backdrop-filter: var(--fz-blur); }

/* switches drawn from a span / i (.te-sw in the preset editor + launch recipe, .tgl in Settings): the glass track */
html:root[data-look="9"] :is(.te-sw > span:not(.lr-was), .tgl > i) { border: 0 !important;
  background: rgba(255,255,255,.06) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.1) !important; }
html:root[data-look="9"] :is(.te-sw > span:not(.lr-was), .tgl > i)::after { background: #8d97a5 !important; }
html:root[data-look="9"] :is(.te-sw input:checked + span, .tgl input:checked + i) {
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(201,220,242,.12)), color-mix(in srgb, var(--tc, #8fb3d9) 40%, rgba(143,179,217,.2)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 8px -2px rgba(223,233,245,.45) !important; }
html:root[data-look="9"] :is(.te-sw input:checked + span, .tgl input:checked + i)::after { background: #f6f9fd !important; box-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* small glass buttons / chips that used --bg3 (emoji picks, counters, tab strips, the chart split button) */
html:root[data-look="9"] .tpl-emos button { border: 0 !important; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), rgba(201,220,242,.035) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06) !important; }
html:root[data-look="9"] .tpl-emos button.on { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 60%), color-mix(in srgb, var(--tc, #c9dcf2) 14%, transparent) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tc, #c9dcf2) 55%, rgba(255,255,255,.4)), inset 0 0 0 1px color-mix(in srgb, var(--tc, #c9dcf2) 30%, transparent) !important; }
html:root[data-look="9"] :is(.wx-cnt, .con-split) { border: 0 !important; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(201,220,242,.04) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08) !important; }
html:root[data-look="9"] .con-split:hover { color: var(--tx); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)), rgba(201,220,242,.05) !important; }
html:root[data-look="9"] :is(.ctabs button.on, .wv-nav button.on, .imp-tab.on, .tt-unit button.on, .tp-who button.on) { border-color: transparent !important;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08) !important; }
html:root[data-look="9"] :is(.ctabs button:not(.on), .wv-nav button:not(.on), .imp-tab:not(.on)):hover { background: rgba(255,255,255,.05) !important; }

/* sticky table headers: a lighter cool glass strip instead of the opaque grey band (no backdrop-filter on cells: it
   breaks table painting in Chromium; the fill stays dense enough for rows scrolling under it) */
html:root[data-look="9"] :is(.wv-tbl, .wc, .wx-tbl, .imp-tbl) thead th {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)), rgba(25,31,40,.88) !important; }

/* At a glance: sticky identity header, the mode cards, the bubble map well */
html:root[data-look="9"] .ag-id { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), rgba(16,20,26,.5) !important;
  -webkit-backdrop-filter: var(--fz-blur); backdrop-filter: var(--fz-blur); border-radius: 16px; padding: 10px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07), var(--fz-sh) !important; }
html:root[data-look="9"] .ag-mode { border: 0 !important; border-radius: 12px !important; background: var(--in-bg) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(201,220,242,.08) !important; }
html:root[data-look="9"] .ag-mode:not(.on):not(:disabled):hover { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 44%), rgba(201,220,242,.06) !important; }
html:root[data-look="9"] .ag-mode.on { background: var(--seg-on-bg) !important; box-shadow: var(--seg-on-sh) !important; }
html:root[data-look="9"] .ag-map .bmap { background: none !important; }
html:root[data-look="9"] .ag-bubmap { background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,242,.05), transparent 70%), rgba(8,11,15,.42) !important;
  border-radius: 12px; box-shadow: inset 0 1px 2px rgba(0,0,0,.3), inset 0 0 0 1px rgba(201,220,242,.08), 0 1px 0 rgba(255,255,255,.04); }
html:root[data-look="9"] .ag-mi { border: 0 !important; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(14,18,24,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
html:root[data-look="9"] .ag-mi:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px currentColor; }
html:root[data-look="9"] .ag-mtip { border: 0 !important; background: var(--pop-bg) !important; box-shadow: var(--pop-sh) !important;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: 10px; }

/* Launch a Runner illustrations: the slider card and the preset stack match the frosted $RUN clone cards */
html:root[data-look="9"] :is(.io-sliders, .tc) { border: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025) 46%, rgba(255,255,255,.02)), rgba(22,27,35,.74) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.07), 0 22px 44px -22px rgba(0,0,0,.85) !important; border-radius: 14px !important; }
html:root[data-look="9"] .tc-btn { background: var(--pri-rest, linear-gradient(180deg, #fff, #dfe9f5)); color: #10141a; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(169,191,216,.6); }

/* tooltips / info pops that sat on --bg2 */
html:root[data-look="9"] :is(.ti-pop, .tg-info) { border-color: transparent !important; background: var(--pop-bg) !important; box-shadow: var(--pop-sh) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2); }
