/* Moonstone's own UI, drawn live inside the iPhone and the Mac window. Values come from the app: its surfaces,
   radii, iPhone type scale, face colours and attention colour.
   The screens follow the page's theme: a quiet near-white canvas in light, pure black in dark. */

:root {
  --c-canvas: #fbfbfb;      /* Theme.canvas, white 0.985 */
  --c-label: #0b0b0c;
  --c-secondary: #8a8a8f;
  --c-surface: #ececec;     /* bubbles, the composer: white 0.925 */
  --c-card: rgba(236, 236, 236, 0.75);
  --c-decision: #ffffff;    /* a card waiting on an answer, lifted */
  --c-decision-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --c-well: #f6f6f6;
  --c-choice: #f6f6f6;
  --c-hair: rgba(0, 0, 0, 0.1);
  --c-icon: #ebebeb;
  --c-attn: #ff6b29;        /* Theme.attention */
  --c-user: #232325;        /* graphite accent: near-black bubbles in light */
  --c-on-user: #ffffff;
  --c-glass: rgba(255, 255, 255, 0.78);
  --c-glass-ring: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --c-sidebar: #f3f3f3;
  --c-sidebar-card: #ffffff;
  --green: #1ab866;
  --green-soft: #76d4a3;
  --teal: #0da8a3;
  --violet: #8c61ff;
  --blue: #2978ff;
  --plus: #1a9950;
  --minus: #d93333;
}
:root[data-theme='dark'] {
  --c-canvas: #000000;
  --c-label: #f5f5f7;
  --c-secondary: #8d8d93;
  --c-surface: #202020;
  --c-card: rgba(32, 32, 32, 0.7);
  --c-decision: #1a1a1a;
  --c-decision-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --c-well: #161616;
  --c-choice: #2b2b2b;
  --c-hair: rgba(255, 255, 255, 0.12);
  --c-icon: #262626;
  --c-attn: #ff8040;
  --c-user: #e9e9eb;
  --c-on-user: #0b0b0c;
  --c-glass: rgba(38, 38, 40, 0.72);
  --c-glass-ring: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --c-sidebar: #141415;
  --c-sidebar-card: #1f1f21;
  --plus: #4dd17f;
  --minus: #ff6b6b;
}

.app {
  position: absolute; inset: 0;
  background: var(--c-canvas);
  color: var(--c-label);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.app * { box-sizing: border-box; }
.app b { font-weight: 600; }
.mono { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace; font-size: 0.92em; letter-spacing: 0; }
.dim { color: var(--c-secondary); }
.tnum { font-variant-numeric: tabular-nums; }

/* A face is an SVG symbol (index.html); this just sizes it. */
.face { display: block; flex: none; width: 48px; height: 48px; overflow: visible; }

/* Glass controls floating over content. */
.gl { background: var(--c-glass); box-shadow: var(--c-glass-ring); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.gbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; flex: none; }
.gbtn svg, .gcap svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gcap { display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 12px; border-radius: 999px; flex: none; }

/* Header: a glass button each side, the title between. */
.a-nav { position: absolute; z-index: 5; top: 60px; left: 16px; right: 16px; height: 44px; display: flex; align-items: center; gap: 8px; }
.a-nav .t { flex: 1; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.a-nav .t.lead { text-align: left; display: flex; align-items: center; gap: 7px; font-size: 16.5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.a-nav .t.lead span:last-child { overflow: hidden; text-overflow: ellipsis; }
.a-body { position: absolute; inset: 0; padding: 120px 16px 120px; }

/* Where the list scrolls under the header, it fades into the canvas, as the system's scroll edge does. */
.scroll-edge { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 124px; pointer-events: none;
  background: linear-gradient(to bottom, var(--c-canvas) 72%, color-mix(in srgb, var(--c-canvas) 0%, transparent)); }

/* The faces at the top of Chats, each standing on a soft shadow of its own colour (AgentFace's ground). */
.faces { display: flex; gap: 28px; padding-left: 0; }
.fc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--c-secondary); }
.fc .face { width: 52px; height: 52px; position: relative; z-index: 1; }
.fc::before { content: ''; position: absolute; top: 42px; left: 50%; width: 40px; height: 10px; margin-left: -20px; border-radius: 50%;
  background: var(--fc, transparent); opacity: 0.28; filter: blur(5px); }
.fc.on { color: var(--c-label); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hop { animation: hop 4.2s cubic-bezier(0.3, 0, 0.3, 1) infinite; transform-origin: 50% 100%; }
  .hop.d2 { animation-delay: 1.4s; }
}
@keyframes hop {
  0%, 82%, 100% { transform: translateY(0); }
  86% { transform: translateY(-7px); }
  89% { transform: translateY(0) scaleY(0.96); }
  92% { transform: translateY(-4px); }
  95% { transform: translateY(0); }
}
/* Section labels in the list. */
.sec { display: flex; align-items: center; gap: 6px; margin: 26px 1px 12px; font-size: 15px; font-weight: 600; color: var(--c-secondary); }
.sec .n { margin-left: 4px; font-weight: 400; opacity: 0.75; }
.sec svg { width: 15px; height: 15px; fill: currentColor; }

/* A decision waiting on you: lifted, white with a soft shadow in light. */
.dc { border-radius: 20px; background: var(--c-decision); box-shadow: var(--c-decision-shadow); }
.dc + .dc { margin-top: 10px; }
.dc-compact { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px 8px 12px; }
.dc-compact > .face { width: 20px; height: 20px; margin-right: 4px; }
.dc-compact .txt { flex: 1; min-width: 0; }
.dc-compact .txt b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-compact .txt > span { display: flex; gap: 6px; margin-top: 1px; font-size: 13px; color: var(--c-secondary); white-space: nowrap; }
.dc-compact .txt > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dc-compact time { flex: none; font-variant-numeric: tabular-nums; }
.pill { display: inline-grid; place-items: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; flex: none; }
.pill-no { background: var(--c-decision); box-shadow: inset 0 0 0 0.5px var(--c-hair), 0 1px 2px rgba(0, 0, 0, 0.05); }
[data-theme='dark'] .pill-no { background: #2a2a2c; }
.pill-ok { background: var(--green); color: #fff; }
/* A decision takes its agent's colour. */
.pill-ok.teal { background: var(--teal); }
/* A question answered from the list: its choices numbered, one tap each. */
.dc-q { padding: 14px 12px 4px; }
.q-h { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.q-h .face { width: 20px; height: 20px; }
.dc-q .q { margin: 10px 0 6px; font-size: 16px; line-height: 1.3; }
.opt { display: flex; align-items: flex-start; gap: 13px; padding: 9px 0 10px; }
.opt + .opt { box-shadow: inset 0 0.5px 0 var(--c-hair); margin-left: 32px; padding-left: 0; }
.opt + .opt .k { margin-left: -32px; }
.opt .k { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; background: var(--c-choice); font-size: 12px; color: var(--c-secondary); flex: none; }
.opt b { display: block; font-size: 16px; font-weight: 400; }
.opt span:not(.k) { display: block; margin-top: 1px; font-size: 13.5px; color: var(--c-secondary); }

/* Chat rows: the chat's emoji on a soft circle, its agent's face as a badge. Unread rows are bold, with a dot. */
.row { display: flex; align-items: flex-start; gap: 13px; padding: 8px 0 10px; }
.ico { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--c-icon); font-size: 23px; flex: none; }
.ico .face { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; padding: 2px; border-radius: 999px; background: var(--c-canvas); box-sizing: content-box; }
.row .txt { flex: 1; min-width: 0; padding-top: 1px; }
.row .txt b { display: block; font-size: 17px; font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 1px; font-size: 15px; line-height: 1.22; color: var(--c-secondary); }
.row.unread .txt b { font-weight: 600; }
.row .meta { margin-top: 3px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--c-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .meta > span { display: flex; align-items: center; gap: 5px; }
.row .meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.row .meta .attn { color: var(--c-attn); }
.row .meta .attn svg { stroke: var(--c-secondary); }
.row.unread .meta .t { color: var(--ac); }
.row .meta .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ac); }
.badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-attn); color: #fff; font-size: 12px; font-weight: 600; }
/* Without date grouping (the default), a rule ends Pinned and the other chats follow. */
.rule { height: 0.5px; margin: 10px 0 8px 59px; background: var(--c-hair); }
.side .rule { margin: 8px 8px 6px 56px; }
/* A helper working for a running chat: a small indented line under its row. */
.sub { display: flex; align-items: center; gap: 9px; margin: -2px 0 0 59px; padding: 4px 0 6px; font-size: 15px; }
.sub .face { width: 16px; height: 16px; }
.sub span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub i { font-style: normal; color: var(--c-secondary); }
.sub time { font-size: 13px; color: var(--c-secondary); font-variant-numeric: tabular-nums; }

/* The bottom bar of Chats. */
.a-bar { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 30px; display: flex; align-items: center; gap: 10px; }
.a-bar .search { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px; color: var(--c-secondary); font-size: 17px; }
.a-bar .gbtn { width: 48px; height: 48px; }
.a-bar svg { width: 21px; height: 21px; }
.fade-foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(to bottom, transparent, var(--c-canvas) 70%); pointer-events: none; }

/* Swipe actions on a row (pin, snooze, archive). */
.swipe { position: relative; margin: 0 -16px; overflow: hidden; }
.swipe .row { position: relative; z-index: 1; padding-left: 16px; padding-right: 16px; background: var(--c-canvas); transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1); }
.swipe .acts { position: absolute; top: 0; bottom: 0; right: 0; display: flex; }
.swipe .acts span { display: grid; place-items: center; width: 74px; color: #fff; font-size: 12.5px; font-weight: 600; gap: 2px; }
.swipe .acts svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swipe .a1 { background: #f2a516; }
.swipe .a2 { background: #6a5cff; }
.swipe .a3 { background: #8a8a8f; }
.swipe.open .row { transform: translateX(-222px); }

/* A new chat arriving, then named by its agent. */
.list-in { will-change: transform; }
.newrow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms cubic-bezier(0.19, 1, 0.22, 1); }
.newrow > div { overflow: hidden; }
.newrow.in { grid-template-rows: 1fr; }
.newrow .ico span { transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms; }
.newrow:not(.named) .ico span { transform: scale(0.4); opacity: 0; }
.nm { transition: opacity 260ms ease, filter 260ms ease; }
.nm.swap { opacity: 0; filter: blur(2px); }

/* In a chat: your bubbles in the graphite accent, the agent's neutral under its face and name. */
.chat { position: absolute; inset: 0; padding: 120px 15px 0; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; font-size: 13px; color: var(--c-secondary); margin: 0 0 6px; }
.ub { align-self: flex-end; max-width: 300px; padding: 10px 15px; border-radius: 22px; background: var(--c-user); color: var(--c-on-user); font-size: 17px; line-height: 1.3; }
.who { display: flex; align-items: center; gap: 7px; margin: 12px 0 0 2px; font-size: 14.5px; font-weight: 600; }
.who .face { width: 18px; height: 18px; }
.who.green { color: var(--green); }
/* The turn's work: while it runs, a card naming the step under way; once done, one quiet line to open the steps. */
.worked { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 13px; border-radius: 24px; background: var(--c-surface); color: var(--c-secondary); }
.worked .tool { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.worked .two { display: flex; flex-direction: column; }
.worked .two b { font-size: 15.5px; font-weight: 400; color: var(--c-label); }
.worked .two > span { display: flex; align-items: center; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.worked svg.chev { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.worked.done { gap: 0; padding: 5px 13px; border-radius: 15px; }
.worked.done .tool, .worked.done .two b { display: none; }
.spin { width: 14px; height: 14px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--green) 25%, transparent); border-top-color: var(--green); flex: none; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin 900ms linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* A helper agent's card: its face faded, its state, and a way in. */
.helper { display: flex; align-items: center; gap: 13px; padding: 8px 14px 8px 12px; border-radius: 20px; background: var(--c-card); box-shadow: inset 0 0 0 0.5px var(--c-hair); }
.helper .face { width: 34px; height: 34px; opacity: 0.55; }
.helper > div { flex: 1; min-width: 0; }
.helper b { display: block; font-size: 15.5px; font-weight: 500; }
.helper span { display: block; margin-top: 1px; font-size: 14px; color: var(--c-secondary); font-variant-numeric: tabular-nums; }
.helper .chev { width: 11px; height: 11px; stroke: var(--c-secondary); fill: none; stroke-width: 2; flex: none; }
.ab { align-self: flex-start; max-width: 344px; padding: 11px 14px; border-radius: 22px; background: var(--c-surface); font-size: 17px; line-height: 1.3; }
.ab h4 { margin: 10px 0 2px; font-size: 18px; font-weight: 700; }
.ab ul { margin: 0; padding-left: 20px; }
.ab li { margin-top: 4px; }
.ab li::marker { color: var(--c-secondary); }
.ab p { margin: 0; }
/* Words fade in as they stream, as StreamReveal does. */
.ab .w { transition: opacity 380ms ease; }
.ab .w.h { opacity: 0; }
.caret-hold { min-height: 1.38em; }

/* Above the composer: the plan's progress, and the faces of who's working, in glass. */
.dockrow { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 92px; display: flex; gap: 8px; transition: opacity 400ms ease; }
.dockrow > span { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; }
.plan { flex: 1; min-width: 0; gap: 7px; padding: 0 14px 0 12px; font-size: 15px; white-space: nowrap; }
.plan .spin { width: 18px; height: 18px; }
.plan b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.plan .dim { font-variant-numeric: tabular-nums; }
.crew { gap: 6px; padding: 0 12px; }
.crew .face { width: 22px; height: 22px; }
.crew .ring { width: 18px; height: 18px; margin-left: 2px; border-radius: 999px; border: 1.5px dotted var(--c-secondary); opacity: 0.7; }
.composer { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 34px; display: flex; align-items: center; gap: 10px; }
.composer .field { flex: 1; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-radius: 23px; color: var(--c-secondary); font-size: 17px; }
.composer .field span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.composer .gbtn { width: 46px; height: 46px; color: var(--c-label); }
/* Stop, filled while the agent runs. */
.composer.idle .field .mic { display: none; }
.composer .gbtn.run { background: var(--c-label); color: var(--c-canvas); }
.stop { width: 14px; height: 14px; border-radius: 3.5px; background: currentColor; }

/* An approval in the chat: what it does, who it reaches, exactly what it sends, then Deny, Allow and more. */
.perm { padding: 14px 12px 12px; transition: opacity 400ms ease; }
.perm-h { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.perm-h .face { width: 20px; height: 20px; }
.perm-h time { margin-left: auto; font-weight: 400; color: var(--c-secondary); font-size: 13px; }
.perm h5 { margin: 12px 0 0; font-size: 16px; font-weight: 600; }
.perm p { margin: 4px 0 0; font-size: 15px; color: var(--c-secondary); line-height: 1.3; }
.perm p.to { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--c-label); }
.perm .cmd { margin-top: 10px; font-size: 12.5px; line-height: 1.4; }
.perm .cmd .dim { display: block; margin-top: 8px; }
.perm-b { display: flex; gap: 8px; margin-top: 12px; }
.perm-b .pill { flex: 1; height: 34px; font-size: 16px; transition: transform 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 150ms; }
.perm-b .pill.more { flex: none; width: 34px; padding: 0; display: flex; gap: 3px; justify-content: center; align-items: center; }
.perm-b .more i { width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; }
.perm-b .pill.press { transform: scale(0.96); filter: brightness(0.92); }
/* Once answered, the card gives way to one quiet line. */
.perm-done { display: flex; align-items: center; gap: 6px; padding: 4px 2px; font-size: 13px; color: var(--c-secondary); }
.perm-done b { font-weight: 500; }
.perm-done svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 600ms cubic-bezier(0.19, 1, 0.22, 1), opacity 400ms ease, margin 600ms cubic-bezier(0.19, 1, 0.22, 1); }
.fold > div { min-height: 0; overflow: clip; overflow-clip-margin: 24px; }
.fold.shut { grid-template-rows: 0fr; opacity: 0; margin-top: -8px; }
.later { transition: opacity 500ms ease, transform 700ms cubic-bezier(0.19, 1, 0.22, 1); }
.later.h { opacity: 0; transform: translateY(8px); }
.tap { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; background: rgba(127, 127, 127, 0.35); opacity: 0; transform: scale(0.6); pointer-events: none; z-index: 9; }
.tap.go { animation: tap 700ms ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* Automations: a sheet over the chat list, its jobs grouped under the chat each posts to. */
.scr[data-status='dim'] { background: #c9c9cb; }
[data-theme='dark'] .scr[data-status='dim'] { background: #111113; }
.app.sheet { top: 62px; border-radius: 38px 38px 0 0; }
[data-theme='dark'] .app.sheet { background: #1c1c1e; --c-card: rgba(255, 255, 255, 0.07); }
.app.sheet .a-nav { top: 22px; }
.app.sheet .a-body { padding-top: 84px; }
.done-b { padding: 0 18px; font-size: 17px; font-weight: 600; }
.faces.small { gap: 34px; padding-left: 4px; }
.faces.small .fc .face { width: 38px; height: 38px; }
.faces.small .fc { font-size: 13px; }
.auto-g { display: flex; align-items: center; gap: 9px; margin: 22px 1px 10px; font-size: 15px; font-weight: 500; color: var(--c-secondary); }
.auto-g:first-of-type { margin-top: 18px; }
.auto-g .face { width: 18px; height: 18px; }
.auto { display: flex; align-items: flex-start; gap: 13px; padding: 13px 16px 13px 12px; border-radius: 22px; background: var(--c-card); }
.auto + .auto { margin-top: 10px; }
.auto .st { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); flex: none; margin-top: 2px; }
.auto .st svg { width: 18px; height: 18px; }
.auto .txt { flex: 1; min-width: 0; }
.auto b { display: block; font-size: 17px; }
.auto .when { display: block; margin-top: 1px; font-size: 15.5px; color: var(--c-secondary); }
.auto .now { display: block; margin-top: 5px; font-size: 13.5px; color: var(--c-secondary); font-variant-numeric: tabular-nums; }
.auto .chev { width: 11px; height: 11px; margin-top: 13px; stroke: var(--c-secondary); fill: none; stroke-width: 2; flex: none; }
.auto.paused b, .auto.paused .when { color: var(--c-secondary); }
.auto .st .pz { display: none; }
.auto.paused .st { background: transparent; color: var(--c-secondary); }
.auto.paused .st .pz { display: block; }
.auto.paused .st .ck { display: none; }

/* Lock Screen with a Live Activity: iOS 26 glass darkened so it reads on any wallpaper, white type. */
.lock { position: absolute; inset: 0; color: #fff; background:
  radial-gradient(90% 60% at 85% 20%, #4a4470 0%, transparent 65%),
  radial-gradient(100% 70% at 10% 85%, #2b3a63 0%, transparent 60%),
  linear-gradient(165deg, #232338 0%, #0b0c16 100%); }
.lock-date { position: absolute; top: 92px; left: 0; right: 0; text-align: center; font-size: 21px; font-weight: 600; color: rgba(225, 225, 255, 0.78); }
.lock-time { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-size: 106px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums;
  color: rgba(205, 205, 230, 0.86); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); }
.la { position: absolute; left: 14px; right: 14px; top: 252px; padding: 10px 16px; border-radius: 28px; overflow: hidden; background: rgba(12, 12, 18, 0.62);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
/* A soft light under the card in each shown agent's colour, side by side. */
.la::after { content: ''; position: absolute; left: 0; right: 0; bottom: -46px; height: 80px; pointer-events: none; opacity: 0.5; filter: blur(18px);
  background: linear-gradient(90deg, #0da8a3, #1ab866 50%, #8c61ff); border-radius: 50%; }
.la-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.la-row .face { width: 34px; height: 34px; }
.la-row .txt { flex: 1; min-width: 0; }
.la-row b { display: flex; align-items: center; gap: 6px; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-row b span { font-size: 16px; }
.la-row .txt > span { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 15px; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.la-row span svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.la-row .r { font-size: 17px; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.la-row .txt > span.wait { color: #ff9a62; }
.la-row .wait svg { stroke: none; }
.la-row .wait svg .fill { fill: currentColor; }
/* A notification from Moonstone under the Live Activity. */
.note { position: absolute; left: 14px; right: 14px; top: 470px; display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-radius: 26px;
  background: rgba(70, 70, 90, 0.42); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.note img { flex: none; border-radius: 9px; }
.note .txt { flex: 1; min-width: 0; }
.note b { display: block; font-size: 15.5px; color: #fff; font-weight: 600; }
.note .txt span { display: block; margin-top: 1px; font-size: 15px; line-height: 1.25; color: rgba(255, 255, 255, 0.86); }
.note time { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.lock-btns { position: absolute; left: 46px; right: 46px; bottom: 50px; display: flex; justify-content: space-between; }
.lock-btns span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lock-btns svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.island-la { position: absolute; z-index: 21; top: 11px; left: 50%; height: 37px; width: 125px; margin-left: -62.5px; border-radius: 19px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }

/* The Mac: Moonstone's window on its own, floating on the page with the system's window shadow. The sidebar holds the
   faces, Needs you and the list; the chat reads as a document, the agent's words plain text under its name. */
.macwin { position: relative; width: 1260px; height: 760px; zoom: var(--zoom, 1); }
.win { position: absolute; inset: 0; display: flex; border-radius: 16px; overflow: hidden; background: var(--c-canvas); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 30px 80px -20px rgba(17, 17, 26, 0.28), 0 12px 30px -12px rgba(17, 17, 26, 0.18); font-size: 13px; }
[data-theme='dark'] .win { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15), 0 24px 60px rgba(0, 0, 0, 0.6); }
.side { --c-canvas: var(--c-sidebar); width: 340px; flex: none; padding: 12px 10px; background: var(--c-sidebar); box-shadow: inset -0.5px 0 0 var(--c-hair); display: flex; flex-direction: column; overflow: hidden; }
.side-top { display: flex; align-items: center; gap: 8px; height: 36px; margin-bottom: 8px; }
.lights { display: flex; gap: 8px; padding: 0 6px; margin-right: auto; }
.lights i { width: 12px; height: 12px; border-radius: 999px; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tb { display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 12px; border-radius: 999px; }
.tb.tb1 { width: 34px; padding: 0; justify-content: center; }
.tb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side .find { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 999px; background: var(--c-sidebar-card); box-shadow: inset 0 0 0 0.5px var(--c-hair); color: var(--c-secondary); font-size: 13px; }
.side .find svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.side .faces { justify-content: space-around; gap: 0; padding: 14px 0 0; }
.side .fc .face { width: 44px; height: 44px; }
.side .fc::before { top: 36px; width: 34px; margin-left: -17px; }
.side .fc { font-size: 12px; gap: 4px; }
.side .fc.on { font-weight: 600; }
.has-new { position: relative; z-index: 1; }
.has-new::after { content: ''; position: absolute; top: 0; right: -2px; width: 10px; height: 10px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 2px var(--c-sidebar); }
.side .sec { margin: 16px 8px 8px; font-size: 12.5px; }
.side .sec svg { width: 12px; height: 12px; }
.side .dc { background: var(--c-sidebar-card); padding: 11px 10px 10px; border-radius: 14px; }
.side .dc + .dc { margin-top: 8px; }
.side .dc .dtop { display: flex; align-items: center; gap: 9px; padding-left: 2px; }
.side .dc .face { width: 16px; height: 16px; }
.side .dc b { font-size: 12.5px; }
.side .dc .d { display: flex; gap: 6px; margin: 3px 0 0 27px; font-size: 11.5px; color: var(--c-secondary); white-space: nowrap; }
.side .dc .d .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.side .dc .bb { display: flex; gap: 6px; margin-top: 9px; }
.side .dc .pill { flex: 1; height: 24px; font-size: 12.5px; }
.side .dc-q .q { margin: 8px 2px 2px; font-size: 14px; }
.side .opt { gap: 10px; padding: 7px 0 7px 2px; }
.side .opt + .opt { margin-left: 30px; padding-left: 0; }
.side .opt + .opt .k { margin-left: -28px; }
.side .opt .k { width: 18px; height: 18px; font-size: 11px; }
.side .opt b { font-size: 13.5px; }
.side .opt span:not(.k) { font-size: 11.5px; }
.side .row { padding: 6px 8px; gap: 10px; align-items: flex-start; }
.side .row.sel { --c-canvas: var(--c-sidebar-card); background: var(--c-sidebar-card); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.side .ico { width: 38px; height: 38px; font-size: 19px; }
.side .ico .face { width: 14px; height: 14px; right: -3px; bottom: -3px; }
.side .row .txt b { font-size: 14px; }
.side .row .txt span { font-size: 12.5px; }
.side .row .meta { font-size: 12px; margin-top: 2px; gap: 4px; }
.side .row .meta .dot { width: 8px; height: 8px; }
.side .row .meta svg { width: 12px; height: 12px; }
.side .badge { min-width: 18px; height: 18px; font-size: 11px; }
.side .sub { margin: 0 8px 0 56px; padding: 3px 0 4px; font-size: 13px; }
.side .sub .face { width: 14px; height: 14px; }
.side .sub time { font-size: 12px; }
.main { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main-h { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 22px; font-size: 14.5px; font-weight: 600; }
.main-h .gcap { margin-left: auto; height: 32px; gap: 16px; padding: 0 11px; }
.main-h .gcap svg { width: 16px; height: 16px; }
.main-c { flex: 1; width: 100%; max-width: 740px; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; overflow: hidden; }
.main-c .day { font-size: 11.5px; margin: 2px 0 4px; }
.main-c .ub { font-size: 14px; padding: 7px 14px; border-radius: 17px; max-width: 460px; margin-top: 6px; }
.main-c .at { max-width: 640px; font-size: 14px; line-height: 1.45; }
.main-c .who { margin-top: 10px; font-size: 12.5px; gap: 6px; }
.main-c .who .face { width: 15px; height: 15px; }
.main-c .worked { padding: 6px 14px 6px 11px; border-radius: 16px; gap: 9px; }
.main-c .worked .tool { width: 16px; height: 16px; }
.main-c .worked .two b { font-size: 13.5px; }
.main-c .worked .two > span { font-size: 12.5px; }
.main-c .worked.done { padding: 4px 11px; border-radius: 13px; }
.main-c .perm { max-width: 640px; padding: 12px 14px; margin-top: 2px; }
.main-c .perm-h { font-size: 12.5px; gap: 8px; }
.main-c .perm-h .face { width: 16px; height: 16px; }
.main-c .perm-h time { font-size: 11.5px; }
.main-c .perm h5 { margin-top: 9px; font-size: 14px; }
.main-c .perm p { font-size: 13px; }
.main-c .perm p.to { font-size: 12px; }
.main-c .perm .cmd { font-size: 11.5px; }
.main-c .perm-b .pill { height: 28px; font-size: 13px; }
.main-c .perm-b .pill.more { width: 28px; }
.main .dockrow { position: static; width: 100%; max-width: 740px; margin: 0 auto; padding: 8px 28px 0; }
.main .dockrow > span { height: 32px; }
.main .plan { flex: 0 1 auto; font-size: 12.5px; }
.main .plan .spin { width: 14px; height: 14px; }
.main .crew .face { width: 18px; height: 18px; }
.main .crew .ring { width: 14px; height: 14px; }
.main .composer { position: static; padding: 8px 28px 18px; max-width: 740px; width: 100%; margin: 0 auto; }
.main .composer .field { height: 40px; font-size: 14px; border-radius: 20px; gap: 12px; padding: 0 14px; }
.main .composer .gbtn { width: 40px; height: 40px; }
.main .composer svg { width: 17px; height: 17px; }
.main .composer .stop { width: 11px; height: 11px; border-radius: 3px; }
