/* liqUI9 Screens — the interactions from the "Designing UI components with Liquid Glass" piece, live.
   Cards are the content layer (solid); glass appears only on controls, loupes, labels and bars. MIT, (c) 2026 KSP. */

.scr-bar { position: sticky; top: 64px; z-index: 12; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.scr-tabs { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; }
.scr-tabs::-webkit-scrollbar { display: none; }
.scr-tabs .seg { width: max-content; grid-auto-columns: max-content; background: color-mix(in srgb, var(--bg-2) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.scr-tabs .seg button { min-height: 34px; white-space: nowrap; }
.scr-watch { flex: none; }
.scr-watch[aria-pressed="true"] { color: var(--orange); }

.scr-stage { position: relative; border-radius: var(--radius-xl); padding: 18px; isolation: isolate; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.scr-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background 600ms var(--ease);
  background: radial-gradient(70% 60% at 85% 0%, color-mix(in srgb, var(--scr-c, var(--blue)) 30%, transparent), transparent 70%),
              radial-gradient(60% 50% at 0% 100%, color-mix(in srgb, var(--scr-c, var(--blue)) 18%, transparent), transparent 70%); }
.scr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 4px 16px; }
.scr-head h3 { margin: 0; font: 700 var(--t-title2)/1.2 var(--font-display); }
.scr-head p { margin: 0; color: var(--label-2); font-size: var(--t-footnote); }
.scr-pane { display: none; }
.scr-pane.is-on { display: block; animation: scr-in 420ms var(--ease); }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } }

.scr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.st { grid-column: span var(--span); margin: 0; position: relative; min-width: 0; background: var(--bg-2); border-radius: var(--radius-lg); padding: 14px 16px 16px; }
:root[data-theme="light"] .st { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.st__h { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font: 600 var(--t-subhead)/1.2 var(--font); color: var(--c); }
.st__h code { margin-left: auto; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st__b { position: relative; }
@media (max-width: 900px) { .st { grid-column: span max(6, var(--span)); } }
@media (max-width: 640px) { .st { grid-column: span 12; } .scr-stage { padding: 10px; } .scr-bar { top: 70px; } }

/* shared bits */
.ico { flex: none; display: block; }
.num { font: 700 var(--t-title1)/1.05 var(--font-rounded); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.num-s { font: 700 var(--t-title3)/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.mut { color: var(--label-2); font-size: var(--t-footnote); }
.mut2 { color: var(--label-3); font-size: var(--t-caption1); }
.pos { color: var(--green); } .neg { color: var(--red); }
.hstack { display: flex; align-items: center; gap: 10px; } .vstack { display: grid; gap: 8px; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.ring { position: relative; flex: none; } .ring svg { display: block; overflow: visible; }
.ring__t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring__t b { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; } .ring__t i { font-style: normal; font-weight: 600; margin-top: 3px; }
.spin { animation: scr-spin 0.8s linear infinite; } @keyframes scr-spin { to { transform: rotate(360deg); } }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--fill-3); font: 600 var(--t-caption1)/1 var(--font); color: var(--label-2); border: 0; cursor: pointer; }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--accent)) 24%, transparent); color: var(--c, var(--accent)); }
.glabel { position: absolute; top: 0; left: 0; padding: 7px 11px; font: 600 var(--t-caption1)/1.15 var(--font-rounded); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 180ms; z-index: 6; }
.loupe { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 180ms; z-index: 5; }
.is-scrub .glabel, .is-scrub .loupe { opacity: 1; }
.plot { display: block; width: 100%; overflow: visible; touch-action: none; cursor: crosshair; }
.hint { font-size: var(--t-caption1); color: var(--label-3); margin-top: 8px; }
.st .slider { height: 28px; }
.st .seg { font-size: var(--t-caption1); }
.st .seg button { min-height: 26px; min-width: 40px; padding: 0 10px; }
@media (prefers-reduced-motion: reduce) { .scr-pane.is-on { animation: none; } .spin { animation-duration: 2.4s; } }

/* ---------- Money ---------- */
.mny-lg { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--label); font: 500 var(--t-footnote)/1.2 var(--font); cursor: pointer; text-align: left; }
.mny-lg .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.mny-lg[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 18%, transparent); }
.mny-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: .5px solid var(--separator); font-size: var(--t-footnote); }
.mny-row:last-child { border-bottom: 0; }
.mny-row.is-new { animation: mny-in 600ms var(--spring); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); border-radius: 10px; }
@keyframes mny-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.mny-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.mny-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mny-co { overflow: hidden; }
.mny-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 16px 14px; border-radius: 22px; text-align: center; color: #fff;
  transform: translateY(calc(100% + 60px)); transition: transform 520ms var(--spring); z-index: 8; }
.mny-sheet.is-open { transform: none; }
.mny-sheet .mut, .mny-sheet .mut2 { color: rgb(255 255 255 / .75); }
.mny-grab { width: 36px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .45); margin: 0 auto 10px; }
.mny-cancel { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mny-sheet { transition: none; } .mny-row.is-new { animation: none; } }

/* ---------- Backdrops: glass needs something to bend ---------- */
.bd { position: relative; border-radius: 16px; padding: 14px; overflow: visible; color: #fff; }
.bd--photo { background: radial-gradient(90px 90px at 20% 30%, rgb(255 210 130 / .95), transparent 70%), radial-gradient(130px 110px at 75% 70%, rgb(70 200 255 / .8), transparent 70%), linear-gradient(135deg, #1d3b8a, #6a2c8f 50%, #c2414f); }
.bd--stripes { background: repeating-linear-gradient(115deg, #ff5a36 0 18px, #ffb300 18px 36px, #2b6bff 36px 54px, #101014 54px 72px); }
.bd--warm { background: radial-gradient(120px 100px at 80% 20%, rgb(255 190 90 / .9), transparent 70%), linear-gradient(160deg, #3a1d5c, #a33a4a 60%, #e0763a); }
.bd--cool { background: radial-gradient(120px 90px at 15% 80%, rgb(90 255 200 / .55), transparent 70%), repeating-linear-gradient(90deg, rgb(255 255 255 / .08) 0 2px, transparent 2px 22px), linear-gradient(135deg, #0c2f5a, #1b5f8c 50%, #2a1e6b); }

/* ---------- Buttons ---------- */
.btn-mat { height: 170px; display: grid; place-items: center; }
.btn-panel { width: 62%; height: 104px; border-radius: 28px; display: grid; place-items: center; text-align: center; color: #fff; }
.btn-panel small { font: 500 var(--t-caption1)/1 var(--font); opacity: .85; }
.btn-grid { display: grid; gap: 14px; }
.btn-grid .btn--plain, .btn-grid .btn--gray { color: #fff; }
.btn-grid .btn--gray { background: rgb(255 255 255 / .22); }
.btn-roles { overflow: hidden; }
.btn-photo { height: 96px; border-radius: 14px; display: grid; place-items: end start; padding: 8px 10px; font: 600 var(--t-caption1)/1 var(--font); color: rgb(255 255 255 / .85);
  background: radial-gradient(40px 40px at 70% 35%, #ffe08a, transparent 70%), linear-gradient(180deg, #4a7bd8 0 55%, #2f8a52 55%); transition: opacity 350ms, transform 350ms var(--ease); }
.btn-photo.is-gone { opacity: 0; transform: scale(.9); }
.btn-roles .btn--glass:not(.btn--destructive) { color: #fff; }
.btn-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 16px; border-radius: 22px; text-align: center; z-index: 8;
  transform: translateY(calc(100% + 60px)); transition: transform 520ms var(--spring); }
.btn-sheet.is-open { transform: none; }
.btn-toast { position: absolute; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; font: 600 var(--t-footnote)/1 var(--font); color: #fff; z-index: 7;
  transform: translate(-50%, 70px); transition: transform 450ms var(--spring); }
.btn-toast.is-on { transform: translate(-50%, 0); }
.btn-toast .btn--plain { color: var(--yellow); }
.btn-tb { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 18px; min-height: 120px; }
.btn-tools { position: relative; }
.btn-tools .btn { color: #fff; position: relative; z-index: 3; }
.btn-tools .btn[aria-pressed="true"] { color: var(--yellow); }
.btn-bead { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: rgb(255 255 255 / .2); z-index: 2; transform-origin: center; }
.btn-more { color: #fff; }
.btn-menu { position: absolute; right: 0; top: 0; width: 210px; padding: 6px; border-radius: 22px; z-index: 9; transform-origin: top right; color: #fff; visibility: hidden; transition: visibility 0s 260ms; }
.btn-menu.is-open { visibility: visible; transition: none; }
.btn-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: inherit; font: 500 var(--t-subhead)/1.2 var(--font); cursor: pointer; text-align: left; }
.btn-menu button:hover, .btn-menu button:focus-visible { background: rgb(255 255 255 / .14); outline: none; }
.btn-menu .danger { color: #ff8a80; }
.btn-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding: 22px; }
.btn-state { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 130px; text-align: center; }
.btn-state .mut2 { color: rgb(255 255 255 / .75); }
.btn-state .btn--glass { color: #fff; }
.btn-save .st-l, .btn-save .st-l > * { display: inline-flex; align-items: center; gap: 8px; }
.btn-hold { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.btn-hold svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn-holdb { width: 84px; height: 84px; padding: 0; border-radius: 50%; font: 700 var(--t-caption1)/1.15 var(--font); user-select: none; -webkit-user-select: none; touch-action: none; }
@media (prefers-reduced-motion: reduce) { .btn-sheet, .btn-toast { transition: none; } }

/* ---------- Commerce ---------- */
.cm-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 460px) { .cm-prod { grid-template-columns: 1fr; } }
.cm-img { position: relative; min-height: 210px; border-radius: 18px; display: grid; place-items: center; color: #fff; transition: background 500ms var(--ease);
  background: radial-gradient(80% 70% at 30% 25%, var(--a), var(--b)); }
.cm-shoe svg { width: 120px; height: 120px; filter: drop-shadow(0 12px 14px rgb(0 0 0 / .35)); stroke-width: 1.3; }
.cm-bag { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 999px; font: 700 var(--t-caption1)/1 var(--font-rounded); color: #fff; }
.cm-sw { gap: 10px; }
.cm-sw button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 2px transparent; transition: box-shadow 200ms; }
:root[data-theme="light"] .cm-sw button { box-shadow: 0 0 0 2px #fff, 0 0 0 2px transparent; }
.cm-sw button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--label); }
:root[data-theme="light"] .cm-sw button[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--label); }
.cm-add-wrap { margin-top: 6px; }
.cm-add { position: relative; height: 50px; border-radius: 999px; color: #fff; display: grid; overflow: hidden; }
.cm-add > button, .cm-add > span:not(.lg-layer) { grid-area: 1 / 1; }
.cm-addl { border: 0; background: none; color: inherit; font: 600 var(--t-body)/1 var(--font); cursor: pointer; transition: opacity 200ms, transform 300ms var(--spring); }
.cm-step { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity 200ms, transform 350ms var(--spring); }
.cm-step b { font: 700 var(--t-headline)/1 var(--font-rounded); }
.cm-step button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cm-add.is-step .cm-addl { opacity: 0; transform: scale(1.15); pointer-events: none; }
.cm-add.is-step .cm-step { opacity: 1; transform: none; pointer-events: auto; }
.cm-hist { display: grid; gap: 3px; }
.cm-hb { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 4px; border-radius: 8px; cursor: pointer; color: inherit; }
.cm-hb[aria-pressed="true"] { background: color-mix(in srgb, var(--orange) 18%, transparent); }
.cm-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--fill-3); overflow: hidden; }
.cm-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--orange); transition: width 900ms cubic-bezier(.2,.9,.3,1); }
.cm-hb:nth-child(2) i { transition-delay: 80ms; } .cm-hb:nth-child(3) i { transition-delay: 160ms; } .cm-hb:nth-child(4) i { transition-delay: 240ms; } .cm-hb:nth-child(5) i { transition-delay: 320ms; }
.is-in .cm-bar i { width: var(--w); }
.cm-sum { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 8px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--purple) 12%, transparent); font-size: var(--t-footnote); }
.cm-revs { display: grid; gap: 6px; min-height: 96px; }
.cm-rev { display: grid; gap: 2px; font-size: var(--t-footnote); padding: 6px 0; border-bottom: .5px solid var(--separator); animation: scr-in 350ms var(--ease); }
.cm-rev span:first-child { display: flex; gap: 1px; }
.cm-map { --map-land: #1e2a24; --map-water: #183a5a; --map-park: #24452f; --map-road: #3a4a44;
  position: relative; height: 300px; border-radius: 16px; overflow: hidden; cursor: crosshair; }
:root[data-theme="light"] .cm-map { --map-land: #eef0e6; --map-water: #b9dcf5; --map-park: #cfe8c4; --map-road: #ffffff; }
.cm-map svg { width: 100%; height: 100%; display: block; }
.cm-eta { position: absolute; top: 12px; left: 12px; padding: 10px 14px; border-radius: 18px; color: #fff; pointer-events: none; }
.cm-etat { display: grid; gap: 2px; } .cm-etat b { font: 700 var(--t-title3)/1 var(--font-rounded); } .cm-eta .mut2 { color: rgb(255 255 255 / .8); }
.cm-mapbtns { position: absolute; top: calc(50% - 40px); right: 12px; display: grid; gap: 8px; }
.cm-mapbtns .btn, .cm-follow { color: #fff; }
.cm-follow { position: absolute; bottom: 12px; right: 12px; }
.cm-follow[aria-pressed="true"] { color: var(--cyan); }
.cm-del { display: grid; gap: 8px; }
.cm-del button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 0; background: var(--fill-3); color: var(--label); font: 500 var(--t-footnote)/1.3 var(--font); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms, background 200ms; }
.cm-del button b { font-size: var(--t-subhead); }
.cm-del button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.cm-radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--label-3); flex: none; transition: box-shadow 250ms var(--spring); }
.cm-del button[aria-checked="true"] .cm-radio { box-shadow: inset 0 0 0 6px var(--cyan); }
@media (prefers-reduced-motion: reduce) { .cm-bar i, .cm-step, .cm-addl { transition: none; } .cm-rev { animation: none; } }

/* ---------- Health ---------- */
.hl-hr svg, .hl-sl svg { transform-origin: bottom; }
.hl-zbar { display: flex; gap: 3px; height: 26px; margin: 16px 0 12px; }
.hl-zbar button { border: 0; padding: 0; background: var(--c); cursor: pointer; transition: opacity 200ms, transform 300ms var(--spring); }
.hl-zbar button:first-child { border-radius: 8px 0 0 8px; } .hl-zbar button:last-child { border-radius: 0 8px 8px 0; }
.hl-zbar button.is-dim { opacity: .25; }
.hl-zbar button:not(.is-dim):hover { transform: scaleY(1.15); }
.hl-zl { display: grid; gap: 2px; }
.hl-zl button { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 9px; background: none; color: var(--label); font: 500 var(--t-footnote)/1.2 var(--font); cursor: pointer; transition: opacity 200ms; }
.hl-zl button.is-dim { opacity: .4; }
.hl-zl button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); }
.hl-zl .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.hl-zl b { margin-left: auto; font-variant-numeric: tabular-nums; }
.hl-steps { margin-top: 10px; }

/* ---------- Home ---------- */
.hm-dial { --hm-c: var(--blue); position: relative; width: 220px; height: 220px; margin: 0 auto; touch-action: none; cursor: pointer; border-radius: 50%; }
.hm-dial:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 4px; }
.hm-dial svg { display: block; }
.hm-fill { transition: stroke 400ms; }
.hm-knob { position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; pointer-events: none; }
.hm-dial.is-drag .hm-knob { transform-origin: center; }
.hm-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.hm-t { font: 700 56px/1 var(--font-rounded); color: var(--hm-c); transition: color 400ms; font-variant-numeric: tabular-nums; }
.hm-t sup { font-size: 28px; }
.hm-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hm-a { display: grid; gap: 10px; justify-items: start; padding: 12px; min-height: 92px; border: 0; border-radius: 18px; text-align: left; cursor: pointer;
  background: var(--fill-3); color: var(--label-2); font: 500 var(--t-caption1)/1.25 var(--font); transition: background 300ms, color 300ms, transform 200ms; }
.hm-a b { display: block; color: var(--label); font-size: var(--t-footnote); }
.hm-a:active { transform: scale(.96); }
.hm-ai { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--label-2); transition: background 300ms, color 300ms; }
.hm-a[aria-pressed="true"] { background: rgb(255 255 255 / .94); color: rgb(60 60 67 / .7); }
.hm-a[aria-pressed="true"] b { color: #000; }
.hm-a[aria-pressed="true"] .hm-ai { background: var(--yellow); color: #000; }
.hm-a[data-k="fan"][aria-pressed="true"] .hm-ai { background: var(--cyan); }
.hm-a[data-k="fan"][aria-pressed="true"] .hm-ai svg { animation: scr-spin 1.2s linear infinite; }
.hm-a[data-k="lock"][aria-pressed="true"] .hm-ai, .hm-a[data-k="shades"][aria-pressed="true"] .hm-ai { background: var(--blue); color: #fff; }
.hm-a[data-k="tv"][aria-pressed="true"] .hm-ai { background: var(--purple); color: #fff; }
:root[data-theme="light"] .hm-a:not([aria-pressed="true"]) { background: var(--fill-3); }
:root[data-theme="light"] .hm-a[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .1); }
.hm-bri { margin-top: 14px; transition: opacity 300ms; }
.hm-bri.is-off { opacity: .35; pointer-events: none; }
.hm-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-sc { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 60px; border: 0; border-radius: 16px; background: var(--fill-3); color: var(--label); font: 600 var(--t-footnote)/1.2 var(--font); cursor: pointer; text-align: left; transition: background 300ms, transform 200ms; }
.hm-sc:active { transform: scale(.96); }
.hm-si { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, transparent); color: var(--c); }
.hm-sc[aria-pressed="true"] { background: var(--c); color: #fff; }
.hm-sc[aria-pressed="true"] .hm-si { background: rgb(255 255 255 / .25); color: #fff; }
.scr-stage.hm-movie { --scr-c: var(--purple); }
.scr-stage.hm-movie::before { background: radial-gradient(70% 60% at 85% 0%, rgb(120 40 200 / .45), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgb(20 0 60 / .6), transparent 70%), rgb(0 0 0 / .35); }
@media (prefers-reduced-motion: reduce) { .hm-a[data-k="fan"][aria-pressed="true"] .hm-ai svg { animation: none; } }

/* ---------- Glanceable ---------- */
.gl-phone { position: relative; height: 250px; border-radius: 34px 34px 18px 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #1c1c1e; }
:root[data-theme="light"] .gl-phone { box-shadow: 0 0 0 6px #d4d4d9; }
.gl-wall { position: absolute; inset: 0; background: radial-gradient(60% 70% at 25% 85%, #ff8a3d, transparent 70%), radial-gradient(70% 80% at 85% 60%, #6a3df0, transparent 70%), linear-gradient(#0b1430, #2b1150); opacity: .85; }
.gl-ptime { position: absolute; left: 0; right: 0; top: 120px; text-align: center; color: #fff; font: 700 64px/1 var(--font-rounded); opacity: .9; }
.gl-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; border: 0; padding: 0; background: #000; color: #fff; cursor: pointer; overflow: hidden;
  width: 210px; height: 36px; border-radius: 20px; font: 600 var(--t-footnote)/1.2 var(--font);
  transition: width 520ms cubic-bezier(.2,.9,.25,1.12), height 520ms cubic-bezier(.2,.9,.25,1.12), border-radius 520ms, top 520ms; box-shadow: 0 0 0 .5px rgb(255 255 255 / .06); }
.gl-island.is-exp { width: calc(100% - 20px); max-width: 380px; height: 128px; border-radius: 40px; }
.gl-island.is-minimal { width: 124px; transform: translateX(calc(-50% - 22px)); }
.gl-c, .gl-x { position: absolute; inset: 0; display: flex; align-items: center; transition: opacity 260ms; }
.gl-c { justify-content: space-between; padding: 0 14px; }
.gl-x { flex-direction: column; justify-content: center; gap: 10px; padding: 14px 22px; opacity: 0; }
.gl-island.is-exp .gl-c { opacity: 0; } .gl-island.is-exp .gl-x { opacity: 1; transition-delay: 160ms; }
.gl-island.is-minimal .gl-c { opacity: 0; }
.gl-ci { display: grid; place-items: center; }
.gl-big { width: 38px; height: 38px; border-radius: 12px; background: rgb(48 209 88 / .18); }
.gl-eta { color: var(--green); font-variant-numeric: tabular-nums; }
.gl-eta2 { color: var(--green); font: 700 var(--t-title3)/1 var(--font-rounded); }
.gl-xs { display: block; font: 500 var(--t-caption1)/1.2 var(--font); color: rgb(255 255 255 / .65); }
.gl-prog, .gl-wbar { position: relative; display: block; width: 100%; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .18); overflow: hidden; }
.gl-prog i, .gl-wbar i { display: block; height: 100%; border-radius: 3px; background: var(--green); transition: width 700ms cubic-bezier(.2,.9,.3,1); }
.gl-min { position: absolute; top: 12px; left: calc(50% + 50px); width: 36px; height: 36px; border-radius: 50%; background: #000; display: grid; place-items: center; z-index: 2;
  transform: translateX(-30px) scale(.4); opacity: 0; transition: transform 520ms cubic-bezier(.2,.9,.25,1.25), opacity 200ms; }
.gl-min.is-on { transform: none; opacity: 1; }
.gl-lock { position: relative; height: 250px; border-radius: 22px; padding: 16px 12px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(70% 60% at 80% 20%, #ffb36b, transparent 70%), radial-gradient(70% 70% at 10% 90%, #2e7bff, transparent 70%), linear-gradient(160deg, #10204a, #5b2a7a); }
.gl-ltime { display: grid; justify-items: center; } .gl-ltime b { font: 700 58px/1 var(--font-rounded); }
.gl-la { padding: 12px 14px 14px; border-radius: 22px; color: #fff; font-size: var(--t-footnote); }
.gl-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.gl-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; font: 500 10px/1.1 var(--font); color: rgb(255 255 255 / .6); text-align: center; }
.gl-step i { width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / .3); transition: background 300ms, transform 400ms var(--spring); }
.gl-step.is-done i { background: var(--green); } .gl-step.is-cur i { transform: scale(1.35); box-shadow: 0 0 0 4px rgb(48 209 88 / .3); }
.gl-step.is-done { color: #fff; }
.gl-line { position: absolute; top: 6px; left: 12.5%; right: 12.5%; height: 2px; background: rgb(255 255 255 / .3); }
.gl-line i { display: block; height: 100%; background: var(--green); transition: width 700ms cubic-bezier(.2,.9,.3,1); }
.gl-wx { padding: 14px; border-radius: 22px; color: #fff; }
.st:has(.gl-wx) .st__b { padding: 4px; border-radius: 26px; background: radial-gradient(80% 80% at 80% 0%, #ffcf5c, transparent 60%), linear-gradient(160deg, #2a8cf0, #1a4fb8); }
.gl-gs { display: flex; justify-content: space-between; gap: 4px; margin-top: 12px; }
.gl-g { border: 0; padding: 4px; border-radius: 16px; background: none; color: #fff; cursor: pointer; transition: background 200ms, transform 300ms var(--spring); }
.gl-g[aria-pressed="true"] { background: rgb(255 255 255 / .18); transform: scale(1.06); }
.gl-note { margin-top: 10px; min-height: 2.6em; font-size: var(--t-caption1); color: rgb(255 255 255 / .9); }
.gl-wwrap { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; padding: 10px 0; }
.gl-watch { position: relative; width: 190px; height: 228px; border-radius: 56px; background: #1c1c1e; padding: 12px; box-shadow: inset 0 0 0 2px #3a3a3c, 0 20px 40px -16px rgb(0 0 0 / .6); touch-action: none; }
:root[data-theme="light"] .gl-watch { background: #d9d9de; box-shadow: inset 0 0 0 2px #c4c4ca, 0 20px 40px -16px rgb(0 0 0 / .3); }
.gl-wscreen { position: relative; height: 100%; border-radius: 44px; background: #000; overflow: hidden; color: #fff; }
.gl-wtop { position: absolute; top: 12px; right: 22px; z-index: 2; } .gl-wt { font: 600 var(--t-subhead)/1 var(--font-rounded); color: var(--orange); }
.gl-stack { position: absolute; inset: 40px 10px 10px; }
.gl-card { position: absolute; left: 0; right: 0; top: 34px; display: grid; gap: 6px; justify-items: center; padding: 12px 8px; border-radius: 22px; background: #1c1c1e; font: 600 var(--t-subhead)/1 var(--font-rounded); transform-origin: center; }
.gl-ws { font: 500 10px/1.1 var(--font); color: rgb(255 255 255 / .6); }
.gl-card .gl-wbar { width: 80%; }
.gl-crown { position: absolute; right: -14px; top: 54px; width: 16px; height: 46px; border-radius: 5px; background: linear-gradient(90deg, #5a5a5e, #8e8e93 50%, #5a5a5e); cursor: ns-resize; overflow: hidden; touch-action: none; }
.gl-crown i { position: absolute; inset: -14px 0; background: repeating-linear-gradient(#0000 0 5px, rgb(0 0 0 / .35) 5px 7px); }
.gl-crown.is-on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 60%, transparent); }
.gl-crown:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }
.gl-side { position: absolute; right: -8px; top: 118px; width: 8px; height: 50px; border-radius: 3px; background: #48484a; }
@media (prefers-reduced-motion: reduce) { .gl-island, .gl-min, .gl-prog i, .gl-line i, .gl-step i { transition: none; } }

/* ---------- Workspace ---------- */
.ws-fun { display: grid; gap: 2px; }
.ws-fs { position: relative; display: block; height: 40px; border: 0; padding: 0; background: none; cursor: default; text-align: left; color: var(--label); transition: opacity 200ms; }
.ws-fs.is-dim { opacity: .35; }
.ws-fb { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--purple) 70%, transparent), color-mix(in srgb, var(--indigo) 55%, transparent)); transition: width 900ms cubic-bezier(.2,.9,.3,1); }
.ws-fun.is-in .ws-fb { width: var(--w); }
.ws-fs:nth-of-type(2) .ws-fb { transition-delay: 100ms; } .ws-fs:nth-of-type(3) .ws-fb { transition-delay: 200ms; } .ws-fs:nth-of-type(4) .ws-fb { transition-delay: 300ms; }
.ws-fl { position: relative; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 12px; font-size: var(--t-footnote); font-variant-numeric: tabular-nums; }
.ws-rate { display: flex; gap: 10px; align-items: center; padding: 2px 12px; font: 600 var(--t-caption1)/1.2 var(--font); color: var(--label-2); transition: color 200ms; }
.ws-rate span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.ws-rate.is-hi { color: var(--purple); }
.ws-ht { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: var(--t-caption1); }
.ws-ht th { font-weight: 600; color: var(--label-2); text-align: center; padding: 2px; } .ws-ht tbody th { text-align: left; }
.ws-ht td { padding: 0; }
.ws-ht td button { width: 100%; height: 30px; border: 0; border-radius: 7px; cursor: default; font: 600 11px/1 var(--font-rounded); color: #fff;
  background: color-mix(in srgb, var(--teal) calc(var(--v) * 100%), var(--bg-3)); transition: transform 200ms var(--spring), box-shadow 200ms; }
:root[data-theme="light"] .ws-ht td button { background: color-mix(in srgb, rgb(0 150 170) calc(var(--v) * 100%), #e5e5ea); }
.ws-ht td button.is-hi { transform: scale(1.12); box-shadow: 0 0 0 2px var(--label); position: relative; z-index: 1; }
.ws-tw { overflow-x: auto; }
.ws-t { width: 100%; border-collapse: collapse; font-size: var(--t-footnote); }
.ws-t th { text-align: left; padding: 0 4px 6px; border-bottom: .5px solid var(--separator); }
.ws-t th button { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 4px 2px; color: var(--label-2); font: 600 var(--t-caption1)/1 var(--font); cursor: pointer; }
.ws-ar { opacity: 0; transition: transform 250ms var(--spring), opacity 200ms; }
.ws-t th[aria-sort="ascending"] .ws-ar { opacity: 1; transform: rotate(180deg); } .ws-t th[aria-sort="descending"] .ws-ar { opacity: 1; }
.ws-t th[aria-sort="ascending"] button, .ws-t th[aria-sort="descending"] button { color: var(--accent); }
.ws-t td { padding: 9px 4px; border-bottom: .5px solid var(--separator); white-space: nowrap; }
.ws-t tr { background: var(--bg-2); } :root[data-theme="light"] .ws-t tr { background: #fff; }
.ws-h { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: var(--fill-3); vertical-align: middle; overflow: hidden; }
.ws-h i { display: block; width: var(--h); height: 100%; background: var(--c); border-radius: 3px; }
.ws-ai { min-height: 150px; font-size: var(--t-footnote); }
.ws-sk { display: grid; gap: 10px; padding-top: 4px; }
.ws-sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--fill-3) 0 40%, var(--fill) 50%, var(--fill-3) 60% 100%); background-size: 250% 100%; animation: ws-sh 1.1s linear infinite; }
@keyframes ws-sh { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.ws-ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ws-ul li { opacity: 0; animation: ws-li 450ms var(--ease) forwards; line-height: 1.45; }
@keyframes ws-li { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.ws-srcchip { --c: var(--purple); padding: 3px 7px; font-size: 10px; }
.ws-srcchip:hover { background: color-mix(in srgb, var(--purple) 24%, transparent); color: var(--purple); }
.ws-gol { display: inline-flex; align-items: center; gap: 7px; }
.ws-fb2 [aria-pressed="true"] { color: var(--green); background: color-mix(in srgb, var(--green) 20%, transparent); }
.ws-fb2 [data-f="down"][aria-pressed="true"] { color: var(--red); background: color-mix(in srgb, var(--red) 20%, transparent); }
.st.is-flash { animation: ws-flash 1.2s var(--ease); }
@keyframes ws-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 25% { box-shadow: 0 0 0 3px var(--purple); } }
@media (prefers-reduced-motion: reduce) { .ws-ul li { animation: none; opacity: 1; } .ws-sk i { animation: none; } .ws-fb { transition: none; } .st.is-flash { animation-duration: .01s; } }

/* Modal sheets inside a card: dim and hide what's under them so glass never stacks on glass. */
.st .st__b > :not(.mny-sheet):not(.btn-sheet):not(.btn-toast) { transition: opacity 300ms, filter 300ms; }
.st.has-sheet .st__b > :not(.mny-sheet):not(.btn-sheet):not(.btn-toast) { opacity: .25; filter: blur(3px); pointer-events: none; }
@media (max-width: 640px) { .hl-months span:nth-child(even) { display: none; } }
