/* Inbox bubble colours, solid in both themes so the dark dashboard stays as crisp as the light one. */
:root { --bub-in: #f0f0f3; --bub-out: #e5364b; --bub-ai: #fff1f2; --bub-ai-line: #fbd0d5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bub-in: #24262c; --bub-out: #e5364b; --bub-ai: #2a1a1e; --bub-ai-line: #5a2a33; } }
:root[data-theme="dark"] { --bub-in: #24262c; --bub-out: #e5364b; --bub-ai: #2a1a1e; --bub-ai-line: #5a2a33; }
/* The drawn product: the dashboard window, the iPhone with the SDK's chat sheet, the App Store
   review sheet, the lock screen and the Discord and terminal cards. The chat follows the SwiftUI
   views in sdk/swift (ChatView, MessageRow, Composer): 18pt bubbles, a 40pt support mark with the
   team photo, sparkles for AI replies and a Liquid Glass composer. Phone sizes are in iOS points
   scaled to the phone's width, so 1em is 17pt (body text). */

/* ------------------------------------------------------------------ stage */
.stage { position: relative; max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 36px; }
.stage::before { content: ""; position: absolute; inset: 8% -4% -6%; border-radius: 48px; background: radial-gradient(60% 70% at 70% 40%, var(--accent-soft), transparent 70%); filter: blur(10px); z-index: -1; }
.win { text-align: left; flex: 1; min-width: 0; height: var(--stage-h, 640px); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-3); display: flex; flex-direction: column; text-align: left; }
.win-bar { flex: none; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-bar span { margin: 0 auto; font: 12px var(--mono); color: var(--muted); padding-right: 50px; }

/* ------------------------------------------------------------------ dashboard */
.dash { flex: 1; min-height: 0; display: grid; grid-template-columns: 60px 250px minmax(0, 1fr) 232px; grid-template-rows: minmax(0, 1fr); font-size: 13px; line-height: 1.4; }
.dash > * { min-height: 0; overflow: hidden; }
.dash .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 30) 65% 48%)); }
.dash .av.lg { width: 52px; height: 52px; font-size: 16px; }
.d-side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 12px 10px; display: flex; flex-direction: column; gap: 14px; }
.d-app { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-1); }
.d-app img { width: 30px; height: 30px; border-radius: 8px; }
.d-app b { display: block; font-weight: 600; font-size: 13px; }
.d-app small { color: var(--muted); font-size: 11px; }
.d-side nav { display: grid; gap: 1px; }
.d-side nav span { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--fg-2); }
.d-side nav span.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow-1); font-weight: 500; }
.d-side nav svg { width: 15px; height: 15px; }
.d-side nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.d-me { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 6px; }
.d-me img { width: 28px; height: 28px; border-radius: 50%; }
.d-me b { display: block; font-weight: 500; }
.d-me small { color: var(--ok); font-size: 11px; }
/* icon rail: the sidebar keeps its markup but shows only icons */
.d-side { padding: 12px 0; align-items: center; gap: 18px; }
.d-app { padding: 0; background: none; box-shadow: none; }
.d-app img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-1); }
.d-app span, .d-me span { display: none; }
.d-side nav { gap: 6px; }
.d-side nav span { position: relative; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; }
.d-side nav svg { width: 17px; height: 17px; }
.d-side nav em { position: absolute; top: -3px; right: -4px; margin: 0; min-width: 16px; height: 16px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg-2); }
.d-me { padding: 0; position: relative; }
.d-me img { width: 30px; height: 30px; }
.d-me::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg-2); }
.d-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.d-list header, .d-thread header { flex: none; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.d-list header b { font-size: 14px; }
.seg { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--sunk); font-size: 12px; }
.seg i { font-style: normal; padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.seg i.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow-1); }
.d-list ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; align-content: start; }
.d-list li { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; position: relative; transition: background .3s; }
.d-list li.on { background: var(--sunk); }
.d-list li > div { min-width: 0; flex: 1; }
.d-list li b { display: flex; justify-content: space-between; gap: 6px; font-weight: 500; }
.d-list li time { color: var(--muted); font-weight: 400; font-size: 11px; }
.d-list li small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.d-list .dot { position: absolute; right: 10px; bottom: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.d-list li.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--accent-soft); } }
.d-thread { display: flex; flex-direction: column; min-width: 0; }
.d-thread header b { display: block; font-size: 14px; }
.d-thread header small { color: var(--muted); font-size: 11px; }
.d-thread header .tag { margin-left: auto; }
.d-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.d-msgs .m { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: var(--bub-in); color: var(--fg); align-self: flex-start; animation: rise .45s var(--ease); }
.d-msgs .m.out { align-self: flex-end; background: var(--bub-out); color: #fff; }
.d-msgs .m.ai { align-self: flex-end; background: var(--bub-ai); color: var(--fg); box-shadow: inset 0 0 0 1px var(--bub-ai-line); }
.d-msgs .who { font-size: 11px; color: var(--muted); align-self: flex-end; display: flex; align-items: center; gap: 5px; animation: rise .45s var(--ease); }
.d-msgs .who.in { align-self: flex-start; }
.d-msgs .who svg { width: 12px; height: 12px; color: var(--accent); }
.d-msgs .card { align-self: flex-end; width: 64%; padding: 10px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-1); display: grid; gap: 4px; animation: rise .45s var(--ease); }
.d-msgs .card b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.d-msgs .card b svg { width: 14px; height: 14px; color: var(--accent); }
.d-msgs .card small { color: var(--muted); }
.d-msgs .day { align-self: center; font-size: 11px; font-weight: 500; color: var(--muted); padding: 2px 0; }
.d-msgs .sys { align-self: center; font-size: 11px; color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 3px 10px; border-radius: 999px; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.d-compose { flex: none; margin: 0 14px 14px; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.d-compose #d-typing { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-compose .ph { color: var(--muted); }
.d-compose .caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-tools { display: flex; align-items: center; gap: 6px; }
.d-tools i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 12px; color: var(--fg-2); background: var(--sunk); }
.d-tools i.press { background: var(--accent-soft); color: var(--accent); }
.d-tools i svg { width: 13px; height: 13px; }
.d-tools b { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.d-tools b svg { width: 15px; height: 15px; }
.d-cust { border-left: 1px solid var(--line); background: var(--bg-2); padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.c-head { display: grid; justify-items: center; gap: 4px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.c-head .av { margin-bottom: 6px; }
.c-head b { font-size: 14px; }
.c-head small { color: var(--muted); font-size: 12px; }
.d-cust dl { margin: 0; display: grid; gap: 9px; }
.d-cust dl div { display: flex; justify-content: space-between; gap: 8px; }
.d-cust dt { color: var(--muted); }
.d-cust dd { margin: 0; text-align: right; }
.d-cust dd .tag { height: 20px; font-size: 11px; transition: background .3s, color .3s; }
.d-cust dd .tag.pro { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); box-shadow: none; }
.d-cust h6 { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.d-cust h6 img { width: 18px; height: 18px; border-radius: 5px; }
.c-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-events li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); }
.c-events li i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.c-events li:first-child i { background: var(--accent); }
.c-events li.new { animation: rise .45s var(--ease); }
.c-events li.new i { background: var(--ok); }
.c-events time { margin-left: auto; color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------------ iPhone */
.phone { --pw: 290px; position: relative; flex: none; width: var(--pw); aspect-ratio: 9 / 19.5; border-radius: calc(var(--pw) * .17); padding: calc(var(--pw) * .034); background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2e); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 calc(var(--pw) * .012) #0b0b0c, 0 50px 100px -30px rgba(10,12,20,.55), 0 20px 40px -20px rgba(10,12,20,.35); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .137); overflow: hidden; background: #000; isolation: isolate; }
.phone .screen.light { background: #fff; }
.phone .island { position: absolute; z-index: 9; top: calc(var(--pw) * .058); left: 50%; transform: translateX(-50%); width: calc(var(--pw) * .32); height: calc(var(--pw) * .092); border-radius: 999px; background: #000; }
.phone::after { content: ""; position: absolute; right: calc(var(--pw) * -.012); top: 24%; width: calc(var(--pw) * .012); height: 11%; border-radius: 0 3px 3px 0; background: #2a2a2e; }
.stage-phone { --pw: 296px; }

/* status bar */
.sb { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: calc(var(--pw) * .135); display: flex; align-items: center; justify-content: space-between; padding: calc(var(--pw) * .01) calc(var(--pw) * .085) 0 calc(var(--pw) * .1); font: 600 calc(var(--pw) * .043)/1 -apple-system, "SF Pro Text", var(--font); color: #fff; letter-spacing: -0.01em; }
.sb.dark, .light .sb { color: #000; }
.sb .si { display: flex; align-items: center; gap: calc(var(--pw) * .016); }
.sb i { display: block; background: currentColor; }
.sb .sig { width: calc(var(--pw) * .05); height: calc(var(--pw) * .033); clip-path: polygon(0 75%, 22% 75%, 22% 100%, 0 100%, 0 75%, 26% 55%, 48% 55%, 48% 100%, 26% 100%, 26% 55%, 52% 30%, 74% 30%, 74% 100%, 52% 100%, 52% 30%, 78% 0, 100% 0, 100% 100%, 78% 100%); }
.sb .wifi { width: calc(var(--pw) * .048); height: calc(var(--pw) * .035); clip-path: polygon(50% 100%, 0 30%, 18% 12%, 50% 0, 82% 12%, 100% 30%); border-radius: 2px; }
.sb .bat { width: calc(var(--pw) * .078); height: calc(var(--pw) * .036); border-radius: calc(var(--pw) * .01); background: none; box-shadow: inset 0 0 0 1.3px currentColor; position: relative; opacity: .95; }
.sb .bat::after { content: ""; position: absolute; inset: 2px 30% 2px 2px; border-radius: 2px; background: currentColor; }

/* the chat sheet */
.ios-chat { text-align: left; --surf: #ffffff; --behind: #d9d9de; --in: #e9e9eb; --in-fg: #000; --sec: rgba(60, 60, 67, .6); --glass: rgba(255, 255, 255, .72); --glass-line: rgba(0, 0, 0, .08); --acc: var(--chat-accent, #e8364a);
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--behind); color: #000; font: 400 calc(var(--pw) * .0433)/1.29 -apple-system, "SF Pro Text", var(--font); letter-spacing: -0.012em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios-chat:not(.light) { --surf: #000; --behind: #1c1c1e; --in: #262629; --in-fg: #fff; --sec: rgba(235, 235, 245, .6); --glass: rgba(44, 44, 48, .7); --glass-line: rgba(255, 255, 255, .1); color: #fff; } }
:root[data-theme="dark"] .ios-chat:not(.light) { --surf: #000; --behind: #1c1c1e; --in: #262629; --in-fg: #fff; --sec: rgba(235, 235, 245, .6); --glass: rgba(44, 44, 48, .7); --glass-line: rgba(255, 255, 255, .1); color: #fff; }
.ios-chat .sb { color: inherit; }
.ios-chat::before { content: ""; position: absolute; top: calc(var(--pw) * .145); left: 5%; right: 5%; height: 3em; border-radius: 1.2em 1.2em 0 0; background: var(--surf); opacity: .55; }
.ios-chat .sheet { position: relative; flex: 1; min-height: 0; margin-top: calc(var(--pw) * .175); display: flex; flex-direction: column; background: var(--surf); border-radius: 2.2em 2.2em 0 0; }
.ios-chat .grab { position: absolute; top: .35em; left: 50%; width: 2.1em; height: .3em; border-radius: 1em; background: var(--sec); opacity: .5; transform: translateX(-50%); }
.ios-chat .top { flex: none; display: flex; align-items: center; gap: .7em; padding: 1.15em .95em .55em; }
.ios-chat .pair { display: flex; align-items: center; }
.ios-chat .mark { width: 2.35em; height: 2.35em; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; }
.ios-chat .mark svg { width: 48%; height: 48%; }
.ios-chat .pair img { width: 2.35em; height: 2.35em; margin-left: -.47em; border-radius: 50%; box-shadow: 0 0 0 .12em var(--surf); object-fit: cover; }
.ios-chat .pair { position: relative; }
.ios-chat .pair::after { content: ""; position: absolute; right: 0; bottom: .05em; width: .62em; height: .62em; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 .13em var(--surf); }
.ios-chat .top b { display: block; font-weight: 600; font-size: 1em; }
.ios-chat .top small { display: block; color: var(--sec); font-size: .76em; }
.ios-chat .top .x { margin-left: auto; width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--in); color: var(--sec); }
.ios-chat .top .x svg { width: 42%; height: 42%; }
.ios-chat .msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .35em; padding: .4em .7em 4.2em; }
.ios-chat .msgs > *, .d-msgs > * { flex-shrink: 0; }  /* overflow clips old messages instead of squashing them */
.ios-chat .day { align-self: center; font-size: .7em; font-weight: 500; color: var(--sec); background: var(--in); padding: .25em .7em; border-radius: 1em; margin: .3em 0; }
.ios-chat .cap { font-size: .65em; color: var(--sec); padding-left: 3.85em; margin-top: .4em; }
.ios-chat .cap.mine { align-self: flex-end; padding: 0 .4em 0 0; }
.ios-chat .row { display: flex; align-items: flex-end; gap: .47em; max-width: 86%; animation: bub .4s var(--ease); }
.ios-chat .row .av { width: 1.65em; height: 1.65em; border-radius: 50%; flex: none; object-fit: cover; }
.ios-chat .row .av.ai { display: grid; place-items: center; background: var(--acc); color: #fff; }
.ios-chat .row .av.ai svg { width: 52%; height: 52%; }
.ios-chat .row .av.hide { visibility: hidden; }
.ios-chat .b { padding: .47em .7em; border-radius: 1.06em; background: var(--in); color: var(--in-fg); text-wrap: pretty; }
.ios-chat .b.me { align-self: flex-end; max-width: 78%; background: var(--acc); color: #fff; animation: bub .4s var(--ease); }
.ios-chat .b.pic { padding: 0; overflow: hidden; width: 7.5em; height: 10em; background: linear-gradient(160deg, #6a5cff, #2d2a8a); position: relative; }
.ios-chat .b.pic::after { content: "⚠︎  Playback stopped"; position: absolute; left: .6em; right: .6em; top: 45%; padding: .4em; border-radius: .6em; background: rgba(255,255,255,.92); color: #000; font-size: .5em; text-align: center; }
.ios-chat .card { padding: .6em; border-radius: 1.3em; background: var(--in); color: var(--in-fg); display: grid; gap: .6em; min-width: 12.5em; }
.ios-chat .card p { padding: .15em .25em 0; }
.ios-chat .card .cta { display: flex; align-items: center; gap: .55em; min-height: 2.6em; padding: 0 1em; border-radius: 2em; background: var(--acc); color: #fff; font-weight: 600; }
.ios-chat .card .cta span { flex: 1; text-align: center; }
.ios-chat .card .cta svg { width: 1em; height: 1em; flex: none; }
.ios-chat .card .cta svg:last-child { width: .8em; height: .8em; }
.ios-chat .card .cta.tap { animation: tap .5s var(--ease); }
@keyframes tap { 40% { transform: scale(.96); filter: brightness(.9); } }
.ios-chat .card small { text-align: center; font-size: .78em; color: var(--sec); }
.ios-chat .ticks { align-self: flex-end; font-size: .62em; color: var(--sec); margin-top: -.15em; }
.ios-chat .typing { align-self: flex-start; font-size: .76em; color: var(--sec); padding: .2em 3.8em; animation: bub .3s; }
.ios-chat .sys { align-self: center; display: flex; align-items: center; gap: .4em; font-size: .72em; color: var(--sec); margin: .3em 0; animation: bub .4s; }
.ios-chat .sys i { font-style: normal; color: #34c759; }
@keyframes bub { from { opacity: 0; transform: translateY(.6em) scale(.97); } }
.ios-chat .composer { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .47em; padding: .47em .95em 1.9em; }
.ios-chat .composer::after { content: ""; position: absolute; left: 50%; bottom: .5em; width: 8em; height: .3em; border-radius: 1em; background: currentColor; opacity: .85; transform: translateX(-50%); }
.ios-chat .plus, .ios-chat .field { background: var(--glass); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); box-shadow: inset 0 0 0 .5px var(--glass-line), 0 .2em .8em rgba(0,0,0,.08); }
.ios-chat .plus { width: 2.12em; height: 2.12em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ios-chat .plus svg { width: 45%; height: 45%; }
.ios-chat .field { flex: 1; height: 2.12em; border-radius: 1.06em; display: flex; align-items: center; padding: 0 .75em; color: var(--sec); }

/* ------------------------------------------------------------------ showcase phone and review sheet */
.sc-phone { --pw: 300px; z-index: 2; }
.sc-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.sc-scene.on { opacity: 1; }
.review-sheet { position: absolute; inset: 0; background: #7d7d82; font: 400 calc(var(--pw) * .0433)/1.29 -apple-system, "SF Pro Text", var(--font); letter-spacing: -0.012em; color: #000; }
.review-sheet .sb { color: #000; }
.review-sheet .rs { position: absolute; inset: calc(var(--pw) * .175) 0 0; background: #fff; border-radius: 2.2em 2.2em 0 0; }
.review-sheet .grab { position: absolute; top: .35em; left: 50%; width: 2.1em; height: .3em; border-radius: 1em; background: rgba(60,60,67,.3); transform: translateX(-50%); }
.rs-top { display: flex; align-items: center; justify-content: space-between; padding: 1.4em 1.1em .9em; }
.rs-top span { color: #0a84ff; }
.rs-top .send { font-weight: 600; }
.rs-top b { font-weight: 600; }
.rs-stars { display: flex; justify-content: center; gap: .35em; padding: .3em 0 1.4em; }
.rs-stars i { width: 1.9em; height: 1.9em; background: rgba(60,60,67,.18); clip-path: polygon(50% 2%, 63% 35%, 98% 37%, 71% 59%, 80% 94%, 50% 75%, 20% 94%, 29% 59%, 2% 37%, 37% 35%); transition: background .2s, transform .3s var(--ease); }
.rs-stars i.on { background: #0a84ff; transform: scale(1.06); }
.rs-title { margin: 0 1.1em; padding: .7em 0; border-bottom: .5px solid rgba(60,60,67,.29); font-weight: 600; font-size: 1.05em; display: flex; align-items: center; min-height: 2.7em; }
.rs-title .caret { width: 2px; height: 1.15em; background: #0a84ff; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.rs-body { margin: 0 1.1em; padding: .9em 0; color: rgba(60,60,67,.3); }
.kb { position: absolute; left: 0; right: 0; bottom: 0; padding: .45em .2em 2.4em; background: #d1d3d9; display: grid; gap: .55em; }
.kb-row { display: flex; justify-content: center; gap: .3em; }
.kb-row.r2 { padding-inline: 1em; }
.kb i { flex: 1; max-width: 1.95em; height: 2.35em; display: grid; place-items: center; border-radius: .35em; background: #fff; box-shadow: 0 1px 0 #898a8d; font: 400 1.05em/1 -apple-system, "SF Pro Text", var(--font); font-style: normal; color: #000; }
.kb i.fn { max-width: 2.6em; background: #abb0ba; font-size: .9em; }
.kb i.fn.w { max-width: 5.2em; }
.kb i.sp { max-width: none; flex: 4; font-size: .85em; }

/* ------------------------------------------------------------------ lock screen */
.lock { position: relative; overflow: hidden; border-radius: 32px; min-height: 440px; padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 10px; color: #fff; background: radial-gradient(120% 80% at 20% 0%, #ff8a6b 0%, transparent 55%), radial-gradient(90% 70% at 90% 30%, #8f5cff 0%, transparent 60%), linear-gradient(170deg, #2b1f5c, #0c1027 80%); box-shadow: var(--shadow-2); font-family: -apple-system, "SF Pro Text", var(--font); transition: background .6s; }
.lock[data-w="1"] { background: radial-gradient(120% 80% at 80% 0%, #ffd36b 0%, transparent 55%), radial-gradient(90% 70% at 10% 40%, #ff7a59 0%, transparent 60%), linear-gradient(170deg, #1f6fb5, #0b2a4a 80%); }
.lock[data-w="2"] { background: radial-gradient(120% 80% at 50% 0%, #6bd1ff 0%, transparent 55%), radial-gradient(90% 70% at 90% 60%, #ff6bb5 0%, transparent 60%), linear-gradient(170deg, #182352, #050815 80%); }
.lock-time { text-align: center; margin-bottom: 26px; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.lock-time small { display: block; font-size: 17px; font-weight: 500; opacity: .9; }
.lock-time b { display: block; font-size: 92px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-family: "SF Pro Rounded", -apple-system, var(--font); }
.notif { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(250, 250, 252, .62); color: #000; backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 6px 24px rgba(0,0,0,.12); font-size: 15px; line-height: 1.3; }
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif strong { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.notif strong time { font-weight: 400; font-size: 13px; color: rgba(60,60,67,.6); white-space: nowrap; }
.notif p { color: #111; }
.notif.ghost { opacity: .75; transform: scale(.96); }
.notif.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: .2; transform: translateY(6px); } }

/* ------------------------------------------------------------------ discord */
.discord { border-radius: 16px; overflow: hidden; background: #313338; color: #dbdee1; font: 14px/1.4 "gg sans", var(--font); box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.dc-chan { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #26282c; font-weight: 600; color: #f2f3f5; }
.dc-chan span { font-weight: 400; color: #949ba4; font-size: 13px; padding-left: 10px; border-left: 1px solid #3f4147; }
.dc-msg { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 10px 16px; }
.dc-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.dc-av.bot { display: grid; place-items: center; background: #1e1f22; }
.dc-av.bot svg { width: 26px; height: 26px; }
.dc-msg b { display: flex; align-items: center; gap: 6px; color: #f2f3f5; font-weight: 500; }
.dc-msg b i { font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 4px; border-radius: 3px; background: #5865f2; color: #fff; }
.dc-msg time { color: #949ba4; font-size: 12px; font-weight: 400; }
.dc-msg .q { margin: 3px 0; padding-left: 10px; border-left: 3px solid #4e5058; color: #b5bac1; font-size: 13px; }
.dc-msg p { margin: 2px 0 0; color: #dbdee1; }
.dc-input { margin: 6px 16px 16px; padding: 11px 14px; border-radius: 8px; background: #383a40; color: #6d6f78; }

/* ------------------------------------------------------------------ terminal */
.term { border-radius: 16px; padding: 18px; background: #0d0e11; color: #d6d8de; font: 13px/1.65 var(--mono); display: grid; gap: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.t-line { color: #e9eaee; }
.t-you { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: #9aa0ad; }
.t-tool { color: #8b909c; padding-left: 12px; border-left: 2px solid #ff5b6c; }
.t-tool b { color: #ff8a6b; font-weight: 500; margin-right: 10px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .dash { grid-template-columns: 60px 240px minmax(0, 1fr); }
  .d-cust { display: none; }
}
@media (max-width: 900px) {
  .stage { justify-content: center; }
  .win { display: none; }
  .stage-phone { --pw: min(300px, 78vw); }
}
