/* Animated homepage demos: the tiles are drawn at 480 × 340 and scaled to fit (demos/stage.js sets --demo-scale); the
   hero window (window.js) is laid out at its real size. */
.launch-demo { overflow:hidden; }
.demo-canvas { position:absolute; left:0; top:0; width:480px; height:340px; transform:scale(var(--demo-scale, 1)); transform-origin:top left; color:var(--preview-text); font:400 13px/1.45 Inter, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing:-.01em; }

/* A light Mac window: traffic lights, a centred app name, then the app. */
.demo-titlebar { position:relative; height:34px; display:flex; align-items:center; padding:0 14px; border-bottom:1px solid var(--preview-line); }
.demo-lights { display:flex; gap:7px; }
.demo-lights i { width:11px; height:11px; border-radius:50%; background:#ff5f57; box-shadow:inset 0 0 0 .5px #0000001f; }
.demo-lights i:nth-child(2) { background:#febc2e; }
.demo-lights i:nth-child(3) { background:#28c840; }
.demo-app-name { position:absolute; left:0; right:0; text-align:center; font-weight:600; font-size:12.5px; color:var(--preview-text); transition:opacity .3s ease; }
.demo-app { position:absolute; left:0; right:0; top:35px; padding:14px 22px; transition:opacity .35s ease, transform .35s ease; }
.demo-app[hidden] { display:block; opacity:0; transform:translateY(6px); pointer-events:none; }
.demo-row { display:flex; gap:8px; padding:7px 0; border-bottom:1px solid var(--preview-line); font-size:12.5px; }
.demo-row b { font-weight:500; color:var(--preview-muted); }
.demo-bubble { display:inline-block; max-width:62%; padding:7px 12px; border-radius:16px; background:#e9eef2; font-size:13px; }
.demo-compose { position:relative; margin-top:14px; min-height:40px; padding:9px 14px; border:1px solid var(--preview-line); border-radius:19px; background:#fff; }
.demo-compose:not(:has(.on))::before { content:"Message"; position:absolute; left:14px; top:9px; color:#9aabb6; }
.demo-note-title { font-size:19px; font-weight:650; letter-spacing:-.03em; margin:2px 0 8px; }
.demo-body { margin:12px 0 0; }
[data-field] > span { opacity:0; transition:opacity .16s ease; }
[data-field] > span.on { opacity:1; }
.demo-list { list-style:none; margin:4px 0 0; padding:0; }
.demo-list li { position:relative; padding:3px 0 3px 22px; min-height:26px; transition:opacity .2s ease; }
.demo-list li:not(:has(.on)) { opacity:0; }
.demo-bullets li::before { content:""; position:absolute; left:7px; top:12px; width:5px; height:5px; border-radius:50%; background:var(--preview-text); }
.demo-checks li { padding-left:28px; border-bottom:1px solid var(--preview-line); padding-block:5px; }
.demo-checks li::before { content:""; position:absolute; left:2px; top:7px; width:15px; height:15px; border-radius:50%; box-shadow:inset 0 0 0 1.5px #b9c6cf; }
.demo-reminders-title { color:#e8794e; }
.demo-caret { display:inline-block; width:1.5px; height:15px; margin-left:1px; vertical-align:-3px; background:var(--salmon, #fa8072); animation:demo-caret 1.05s steps(1) infinite; }
@keyframes demo-caret { 50% { opacity:0; } }

/* Salmon's dictation pill (DictationPill.swift): glass, a faint edge and a soft shadow. Resting it is a 40 × 8 sliver;
   listening it is 58 × 24 with the voice's waveform. */
.dictate-pill { position:absolute; left:50%; bottom:12px; z-index:2; width:40px; height:8px; border-radius:12px; translate:-50% 0; scale:var(--pill-scale, 1.4); transform-origin:50% 100%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(#f7f9fbe6, #eef2f5d9); -webkit-backdrop-filter:blur(14px) saturate(1.7); backdrop-filter:blur(14px) saturate(1.7);
  box-shadow:inset 0 1px 0 #ffffffe6, inset 0 -1px 0 #00000008, 0 0 0 .75px #0000001a, 0 3px 14px #14283730, 0 1px 3px #1428371f;
  transition:width .32s cubic-bezier(.32,1.25,.5,1), height .32s cubic-bezier(.32,1.25,.5,1); }
.dictate-pill[data-look="hold"], .dictate-pill[data-look="waiting"] { width:58px; height:24px; }
.dictate-wave { display:flex; align-items:center; gap:2px; height:16px; opacity:0; transition:opacity .2s ease; }
.dictate-pill[data-look="hold"] .dictate-wave, .dictate-pill[data-look="waiting"] .dictate-wave { opacity:1; }
.dictate-wave i { width:2px; height:2px; border-radius:1px; background:var(--salmon, #fa8072); }

/* What you're saying, faint, flowing into the pill: the newest words sit beside it, older ones slide off to the left. */
.dictate-heard { position:absolute; z-index:2; left:8%; right:calc(50% + 34px * var(--pill-scale, 1.4)); bottom:calc(16px + 4px * var(--pill-scale, 1.4)); overflow:hidden; white-space:nowrap;
  font:450 calc(9.5px * var(--pill-scale, 1.4)) / 1.3 Inter, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing:-.01em; color:var(--preview-muted);
  -webkit-mask-image:linear-gradient(to right, transparent, #000 40%); mask-image:linear-gradient(to right, transparent, #000 40%); opacity:0; transition:opacity .35s ease; }
.dictate-heard.on { opacity:1; }
.dictate-heard > span { display:inline-block; transition:transform .25s ease-out; }
.dictate-heard > span > span { opacity:0; transition:opacity .2s ease; }
.dictate-heard > span > span.on { opacity:1; }

/* Salmon's own windows use the app's palette (SalmonPalette.swift, Light): page, ink, secondary ink, lines, bubbles. */
.demo-canvas { --app-page:#fcfdfd; --app-text:#171c1a; --app-secondary:#434c48; --app-line:#e3e6e4; --app-received:#e9e9eb; --app-sent:#fbcbc5; --app-accent:#fa8072; --app-link:#b4432c; --app-tag:#fce9e7; }
/* Liquid Glass on a light page, as the app's glass controls read. */
.demo-glass { background:linear-gradient(#ffffffe0, #f3f5f4d0); box-shadow:inset 0 1px 0 #fff, 0 0 0 .5px #0000001c, 0 4px 14px #1c2a2614; }

/* Think out loud: the Today conversation and the call island. */
.demo-canvas.talk { background:var(--app-page); color:var(--app-text); }
.talk-pill { position:absolute; left:50%; top:14px; translate:-50% 0; height:34px; width:206px; padding:0 14px 0 12px; border-radius:20px; display:flex; align-items:center; gap:8px;
  transition:width .45s cubic-bezier(.3,1.2,.5,1), height .45s cubic-bezier(.3,1.2,.5,1), top .45s cubic-bezier(.3,1.2,.5,1); }
.talk-pill img { flex:none; width:20px; height:auto; }
.talk-day { font-size:13.5px; font-weight:500; white-space:nowrap; transition:opacity .2s ease; }
.talk-bars { position:absolute; left:42px; right:46px; top:0; bottom:0; display:flex; align-items:center; justify-content:center; gap:4px; opacity:0; transition:opacity .25s ease; }
.talk-bars i { position:relative; width:3px; height:22px; display:flex; align-items:center; }
.talk-bars i::before { content:""; position:absolute; left:0; top:50%; width:3px; height:3px; margin-top:-1.5px; border-radius:2px; background:var(--app-accent); opacity:.25; }
.talk-bars b { display:block; width:3px; height:100%; border-radius:2px; background:var(--app-accent); transform:scaleY(.12); transition:transform .08s linear; }
.talk-pill[data-talking="salmon"] .talk-bars b { background:#e9705f; }
.talk-hangup { position:absolute; right:7px; top:50%; width:28px; height:28px; margin-top:-14px; border-radius:50%; background:#f04438; display:grid; place-items:center; opacity:0; scale:.6; transition:opacity .25s ease, scale .35s cubic-bezier(.3,1.4,.5,1); }
.talk-hangup svg { width:16px; height:16px; fill:#fff; }
.talk-pill.calling { width:232px; height:46px; top:8px; }
.talk-pill.calling .talk-day { opacity:0; }
.talk-pill.calling .talk-bars, .talk-pill.calling .talk-hangup { opacity:1; scale:1; }

.talk-thread { position:absolute; left:0; right:0; top:60px; height:calc(var(--demo-visible, 340px) - 72px); padding:0 22px 6px; display:flex; flex-direction:column; justify-content:flex-end; gap:6px; overflow:hidden;
  -webkit-mask-image:linear-gradient(transparent, #000 22px); mask-image:linear-gradient(transparent, #000 22px); transition:opacity .45s ease; }
.talk-thread.leaving { opacity:0; }
.talk-divider { margin:0 0 2px; text-align:center; font-size:12px; font-weight:600; color:var(--app-secondary); opacity:.7; }
.talk-bubble { position:relative; display:none; max-width:76%; padding:8px 13px; border-radius:18px; font-size:14.5px; line-height:1.35; animation:talk-in .3s cubic-bezier(.3,1.2,.5,1); }
.talk-bubble.on { display:block; }
.talk-you { align-self:flex-end; background:var(--app-sent); }
.talk-salmon { align-self:flex-start; background:var(--app-received); }
.talk-bubble > span > span { display:none; }
.talk-bubble > span > span.on { display:inline; }
.talk-dots { display:none; gap:4px; padding:4px 2px; }
.talk-bubble.typing .talk-dots { display:flex; }
.talk-dots b { width:6px; height:6px; border-radius:50%; background:#8e9692; animation:talk-dot 1s ease-in-out infinite; }
.talk-dots b:nth-child(2) { animation-delay:.15s; } .talk-dots b:nth-child(3) { animation-delay:.3s; }
/* Messages-style tails, as ChatBubbleShape draws them. */
.talk-bubble::before, .talk-bubble::after { content:""; position:absolute; bottom:0; height:16px; }
.talk-you::before { right:-6px; width:18px; background:var(--app-sent); border-bottom-left-radius:14px 12px; }
.talk-you::after { right:-22px; width:22px; background:var(--app-page); border-bottom-left-radius:9px; }
.talk-salmon::before { left:-6px; width:18px; background:var(--app-received); border-bottom-right-radius:14px 12px; }
.talk-salmon::after { left:-22px; width:22px; background:var(--app-page); border-bottom-right-radius:9px; }
@keyframes talk-in { from { opacity:0; transform:translateY(6px) scale(.98); } }
@keyframes talk-dot { 0%, 60%, 100% { opacity:.35; transform:none; } 30% { opacity:1; transform:translateY(-2px); } }

/* Ask, and Salmon does it: your window and the one Salmon is working in (ComputerOverlay.swift). */
.demo-canvas.cu { background:linear-gradient(160deg, #eef5f8, #f8fbfc 60%, #f2f6f8); }
.cu-window { position:absolute; overflow:hidden; border-radius:11px; background:var(--app-page); color:var(--app-text); box-shadow:0 0 0 .5px #0000001f, 0 10px 28px #20323c1f, 0 2px 6px #20323c14; }
.cu-yours { left:12px; top:14px; width:214px; height:236px; }
.cu-target { left:198px; top:38px; width:270px; height:230px; z-index:1;
  box-shadow:0 0 0 .5px #0000001f, 0 0 0 3px color-mix(in srgb,var(--app-accent) 80%,transparent), 0 0 16px color-mix(in srgb,var(--app-accent) 60%,transparent), 0 12px 30px #20323c24; animation:cu-glow 2.4s ease-in-out infinite; }
@keyframes cu-glow { 50% { box-shadow:0 0 0 .5px #0000001f, 0 0 0 3px color-mix(in srgb,var(--app-accent) 66.667%,transparent), 0 0 22px color-mix(in srgb,var(--app-accent) 70.196%,transparent), 0 12px 30px #20323c24; } }
.cu-doc { padding:12px 16px; font-size:12.5px; line-height:1.5; }
.cu-doc b { display:block; margin-bottom:6px; font-size:15px; font-weight:650; letter-spacing:-.02em; }
.cu-doc p { margin:0; color:var(--app-secondary); }
.cu-doc p::after { content:""; display:inline-block; width:1.5px; height:14px; margin-left:1px; vertical-align:-2px; background:var(--app-text); animation:demo-caret 1.05s steps(1) infinite; }
.cu-job { position:absolute; left:0; right:0; top:34px; padding:12px 16px; font-size:12.5px; transition:opacity .35s ease; }
.cu-job[hidden] { display:block; opacity:0; }
.cu-job [data-piece] { opacity:0; transition:opacity .3s ease, translate .3s ease; translate:0 3px; }
.cu-job [data-piece].on { opacity:1; translate:0 0; }
.cu-note-title { font-size:17px; font-weight:650; letter-spacing:-.025em; margin-bottom:6px; }
.cu-bullets { margin:0; padding:0 0 0 18px; line-height:1.75; }
.cu-mail { margin:10px 0 0; line-height:1.5; }
.cu-cal { position:relative; margin-top:2px; }
.cu-cal > span { display:block; height:44px; border-top:1px solid var(--app-line); font-size:10.5px; color:var(--app-secondary); padding-top:2px; }
.cu-event { position:absolute; left:42px; right:4px; top:46px; height:34px; padding:4px 8px; border-radius:6px; background:#fde4df; box-shadow:inset 3px 0 0 var(--app-accent); font-size:10.5px; line-height:1.3; color:#7a3a32; }
.cu-event b { display:block; font-size:11.5px; font-weight:600; color:#5c2a24; }
.cu-status { position:absolute; right:12px; top:7px; z-index:2; display:flex; align-items:center; gap:5px; padding:5px 10px; border-radius:20px; font-size:10.5px; font-weight:500; white-space:nowrap;
  background:linear-gradient(#ffffffe6, #f2f5f4d9); box-shadow:inset 0 1px 0 #fff, 0 0 0 .5px #0000001c, 0 3px 10px #1c2a2614; }
.cu-status svg { width:11px; height:11px; fill:var(--app-accent); }
.cu-pointer { position:absolute; left:0; top:0; z-index:3; width:24px; height:24px; margin:-3px 0 0 -5px; fill:var(--app-accent); stroke:#fff; stroke-width:1.4; stroke-linejoin:round; filter:drop-shadow(0 2px 3px #00000033); }
.cu-click { position:absolute; left:0; top:0; z-index:2; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; border:2px solid var(--app-accent); opacity:0; scale:.3; }
.cu-click.on { animation:cu-click .45s ease-out; }
@keyframes cu-click { from { opacity:.9; scale:.3; } to { opacity:0; scale:1.4; } }

/* It gets to know you: five illustrated Salmon species, using the News covers' ordered dither and inks. */
.demo-canvas.knows { background:#f8f7f4; color:var(--app-text); }
.knows-person { position:absolute; left:0; right:0; top:0; height:var(--demo-visible, 340px); padding:18px 20px; box-sizing:border-box; overflow:hidden; display:grid; grid-template-columns:215px minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:10px; transition:opacity .45s ease; }
.knows-person[hidden], .knows-person.leaving { display:grid; opacity:0; }
.knows-identity { min-width:0; }
.knows-identity h4 { margin:0; font:400 30px/1.05 ui-serif, "New York", Georgia, serif; letter-spacing:-.035em; opacity:0; transform:translateY(6px); transition:opacity .45s ease, transform .45s ease; }
.knows-identity h4.on { opacity:1; transform:none; }
.knows-label { display:block; margin-top:6px; color:#7c4f47; font-size:10.5px; line-height:1.2; font-weight:650; letter-spacing:.13em; text-transform:uppercase; opacity:0; transition:opacity .4s ease; }
.knows-label.on { opacity:1; }
.knows-art { display:block; width:205px; height:160px; margin:4px 0 0 -2px; object-fit:contain; object-position:left top; opacity:0; transform:translateY(8px) scale(.94); transform-origin:left top; transition:opacity .5s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.knows-art.on { opacity:1; transform:none; }
.knows-story { min-width:0; margin-left:-8px; display:flex; align-items:center; }
/* Keep all four rows in one centered column within the visible tile crop. */
.knows-milestones { list-style:none; display:flex; flex-direction:column; width:100%; height:100%; max-height:240px; margin:0; padding:0; }
.knows-milestones li { flex:1; display:flex; align-items:center; gap:10px; min-height:0; padding:0; box-sizing:border-box; color:#34403b; font-size:18.5px; line-height:1.2; opacity:0; transform:translateY(6px); transition:opacity .35s ease, transform .35s ease; }
.knows-milestones li.on { opacity:1; transform:none; }
.knows-check { flex:none; display:grid; place-items:center; width:23px; height:23px; border:1px solid #d3d8d4; border-radius:6px; background:#fff; color:#bd584a; }
.knows-check svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.knows-check path { stroke-dasharray:20; stroke-dashoffset:20; transition:stroke-dashoffset .35s ease .12s; }
.knows-milestones li.on .knows-check path { stroke-dashoffset:0; }
@media (max-width:639px) {
  .knows-person { padding:26px 22px; grid-template-columns:215px minmax(0,1fr); gap:10px; }
  .knows-identity h4 { font-size:32px; }
  .knows-label { font-size:11.5px; }
  .knows-art { width:230px; height:230px; margin-top:20px; }
  .knows-milestones { max-height:280px; }
  .knows-milestones li { font-size:21px; line-height:1.2; }
  .knows-check { width:27px; height:27px; }
  .knows-check svg { width:20px; height:20px; }
}
@media (prefers-reduced-motion:reduce) { .knows-person, .knows-identity h4, .knows-label, .knows-art, .knows-milestones li, .knows-check path { transition:none; } }

/* Your day, in one place: the Feed (SalmonFeed.swift). */
/* The stream ends where the tile's card stops showing the drawing, so new lines arrive in view. */
.demo-canvas.feed { display:flex; flex-direction:column; box-sizing:border-box; padding-bottom:calc(340px - var(--demo-visible, 340px)); background:var(--app-page); color:var(--app-text); }
.feed-filters { display:flex; gap:6px; padding:16px 18px 7px; font-size:13px; font-weight:500; }
.feed-filters span { padding:4px 12px; border-radius:20px; color:var(--app-secondary); transition:background .25s ease, color .25s ease; }
.feed-filters span.on { background:#eceeed; color:var(--app-text); }
/* The stream (feed.js): new rows grow in at the bottom and push the older ones up under the fade, like a chat. */
.feed-stream { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; padding-bottom:10px; mask-image:linear-gradient(transparent, #000 32px); }
.feed-row { flex:none; display:grid; grid-template-rows:1fr; }
.feed-row > div { min-height:0; overflow:hidden; }
.feed-row.arriving { animation:feed-arrive .65s cubic-bezier(.22,1,.36,1) both; }
@keyframes feed-arrive { from { grid-template-rows:0fr; opacity:0; transform:translateY(8px); } }
.feed-pin { flex:none; display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .5s cubic-bezier(.22,1,.36,1), opacity .4s ease; }
.feed-pin.on { grid-template-rows:1fr; opacity:1; }
.feed-pin > div { min-height:0; overflow:hidden; }
.feed-row p, .feed-pin p { margin:0; padding:6px 18px; font-size:13.5px; line-height:1.45; }
.feed-row.needs p, .feed-pin > div { background:#fdf1ef; box-shadow:inset 3px 0 0 var(--app-accent); }
.feed-pin p { padding-top:9px; }
.feed-badge { display:inline-grid; place-items:center; width:17px; height:17px; margin-right:6px; border-radius:5px; vertical-align:-3px; }
.feed-badge svg { width:12px; height:12px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.feed-stream b, .feed-pin b { font-weight:600; }
.feed-stream em, .feed-pin em { display:inline-flex; align-items:center; gap:2px; font-style:normal; font-size:12px; font-weight:500; white-space:nowrap; vertical-align:-1px; }
.feed-stream em svg, .feed-pin em svg { display:inline-block; width:11px; height:11px; fill:currentColor; }
.feed-actions { display:flex; gap:6px; padding:2px 18px 9px; }
.feed-actions i { margin-top:2px; font-style:normal; font-size:12px; font-weight:600; padding:3px 10px; border-radius:20px; background:#fff; box-shadow:0 0 0 .5px #0000001f; color:var(--app-text); }
.feed-actions i:nth-child(2) { color:#c4513f; }
@media (prefers-reduced-motion: reduce) { .feed-row.arriving { animation:none; } .feed-pin { transition:none; } }

/* See your thoughts connect: the graph view, growing (graph.js draws the notes on a canvas filling the tile). */
.demo-canvas.graph { background:var(--app-page); color:var(--app-text); }
.graph-count { position:absolute; right:14px; top:14px; z-index:1; padding:4px 10px; border-radius:20px; font-size:11px; color:var(--app-secondary); font-variant-numeric:tabular-nums; }
.graph-count b { color:var(--app-text); font-weight:600; }
.graph-canvas { position:absolute; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; }

/* The note card Salmon shows after it changes a note (AssistantPrototype.swift), and a bubble's caption. */
.talk-card { display:none; align-self:flex-start; width:82%; border-radius:16px; background:var(--app-received); overflow:hidden; animation:talk-in .35s cubic-bezier(.3,1.2,.5,1); }
.talk-card.on { display:block; }
.talk-card-head { display:flex; align-items:center; gap:7px; padding:13px 14px 4px; }
.talk-card-head svg { width:19px; height:19px; fill:none; stroke:var(--app-link); stroke-width:1.8; stroke-linejoin:round; }
.talk-card-head em { margin-left:auto; padding:2px 9px; border-radius:20px; background:var(--app-tag); color:var(--app-link); font-style:normal; font-size:.82em; font-weight:500; }
.talk-card p { display:flex; align-items:center; gap:8px; margin:0; padding:2px 14px; }
.talk-card p i { width:12px; height:12px; border:1.3px solid var(--app-secondary); border-radius:2px; }
.talk-card small { display:block; padding:5px 14px 11px; font-size:.78em; color:var(--app-secondary); }
.talk-card-foot { display:flex; border-top:.5px solid #00000014; }
.talk-card-foot span { flex:1; padding:10px 0; text-align:center; }
.talk-card-foot span + span { border-left:.5px solid #00000014; color:var(--app-link); font-weight:600; }
.talk-caption { display:none; align-self:flex-end; margin:-3px 2px 0 0; font-size:.76em; font-weight:500; color:var(--app-secondary); }
.talk-bubble.on + .talk-caption { display:block; }


/* Hero window (demos/window.js): the frame of x.ai/bot's hero (976 × 660, 24px corners, a hairline edge, 48px under the
   headline), and inside it Salmon as the app draws it: the floating glass sidebar (inset 7pt, 12pt corners; an 88pt
   rail on phones), the glass day pill and round buttons, Salmon's bubbles and composer. */
.launch-hero-window { --app-page:#fcfdfd; --app-text:#171c1a; --app-secondary:#434c48; --app-accent:#fa8072; --hw-text:#171c1a; --hw-secondary:#434c48; --hw-muted:#171c1a73; --hw-tertiary:#171c1a59; --hw-page:#fcfdfd; --hw-border:#171c1a1a;
  --hw-sent:#fbcbc5; --hw-received:#e9e9eb; --hw-accent:#b4432c; --hw-side:226px;
  position:relative; z-index:1; width:100%; max-width:976px; height:660px; margin:48px auto 0; border-radius:24px; overflow:hidden; box-shadow:0 0 0 1px #171c1a12;
  color:var(--hw-text); font:400 14px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; letter-spacing:-.15px; text-align:left; -webkit-font-smoothing:antialiased; }
.launch-hero-window::after { content:""; position:absolute; inset:0; z-index:30; border:1px solid #171c1a0f; border-radius:inherit; pointer-events:none; }
.launch-hero-window svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hw-shell { position:relative; height:100%; background:var(--hw-page); }
/* Liquid Glass, as SalmonGlassPanel draws it in light mode. */
.hw-glass { background:linear-gradient(#ffffffeb, #f6f8f7dc); -webkit-backdrop-filter:blur(18px) saturate(180%); backdrop-filter:blur(18px) saturate(180%); box-shadow:inset 0 1px 0 #fff, 0 0 0 .5px #0000001c, 0 4px 14px #1c2a2614; }
/* The sidebar floats on the window, inset 7pt, with 12pt corners. */
.hw-sidebar { position:absolute; z-index:3; left:7px; top:7px; bottom:7px; width:var(--hw-side); display:flex; flex-direction:column; border-radius:12px; overflow:hidden;
  background:linear-gradient(#ffffffe6, #f8faf9e0); -webkit-backdrop-filter:blur(24px) saturate(180%); backdrop-filter:blur(24px) saturate(180%); box-shadow:inset 0 1px 0 #fff, 0 0 0 .5px #00000017, 0 1px 3px #1c2a2610, 0 10px 30px #1c2a261a; }
.hw-top { display:flex; align-items:center; flex-shrink:0; height:40px; padding:0 10px; }
.hw-top .demo-lights { gap:8px; }
.hw-top .demo-lights i { width:12px; height:12px; }
.hw-salmon-button { display:grid; place-items:center; width:30px; height:26px; margin-left:auto; border-radius:8px; color:var(--hw-accent); transition:background-color .2s; }
.hw-salmon-button.shown { background:#fa80721a; }
.hw-salmon-button.press { background:#fa807233; }
.hw-fish { width:24px; height:24px; object-fit:contain; }
.hw-search { display:flex; align-items:center; gap:6px; flex-shrink:0; height:27px; margin:4px 10px 10px; padding:0 8px; border-radius:8px; background:#171c1a0f; color:var(--hw-muted); font-size:13px; }
.hw-search svg { width:12px; height:12px; stroke-width:2.2; }
.hw-tiles { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 10px; }
.hw-tile { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px 4px; padding:8px 10px; border-radius:10px; background:color-mix(in srgb, var(--tile) 16%, transparent); color:color-mix(in srgb, var(--tile) 58%, #000); transition:background-color .2s; }
.hw-tile.shown { background:color-mix(in srgb, var(--tile) 32%, transparent); }
.hw-tile-icon { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--tile); transition:box-shadow .2s, scale .15s; }
.hw-tile, .hw-salmon-button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
.hw-tile.press .hw-tile-icon, .hw-tile:active .hw-tile-icon { scale:.86; }
/* The Feed (feed.js), at the window's size. */
.hw-feed { overflow:hidden; }
.hw-tile-icon svg { width:14px; height:14px; stroke:#fff; stroke-width:2; }
.hw-tile b { font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.hw-tile > span:last-child { grid-column:1 / -1; font-size:12px; line-height:15px; font-weight:500; }
.hw-link { display:flex; align-items:center; gap:8px; height:26px; margin-top:2px; padding:0 14px 0 16px; font-size:13px; }
.hw-link:first-of-type { margin-top:10px; }
.hw-link svg:first-child { width:15px; height:15px; color:var(--hw-secondary); }
.hw-link span { flex:1; }
.hw-link small { font-size:12px; color:var(--hw-muted); font-variant-numeric:tabular-nums; }
.hw-link svg:last-child { width:10px; height:10px; stroke-width:2.6; color:var(--hw-muted); }
.hw-recent { flex:1; min-height:0; overflow:hidden; margin-bottom:48px; padding:4px 6px 0; }
.hw-recent p { margin:8px 0 2px; padding-left:12px; font-size:11px; font-weight:600; color:var(--hw-muted); }
.hw-recent-row { display:flex; align-items:center; gap:9px; height:26px; padding:0 12px; border-radius:7px; font-size:13px; white-space:nowrap; overflow:hidden; }
.hw-recent-row i { flex-shrink:0; width:7px; height:7px; border-radius:50%; box-sizing:border-box; border:1.3px solid #171c1a59; }
.hw-recent-row i[style] { border:0; }
/* The monogram: the accent at 16% behind your initial, in a glass circle. */
.hw-account { position:absolute; left:8px; bottom:8px; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; }
.hw-account b { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#fa807229; color:var(--hw-accent); font-size:13px; font-weight:600; }
.hw-main { position:absolute; top:0; right:0; bottom:0; left:calc(var(--hw-side) + 14px); }
/* The header: the chat's day pill and round buttons, or an open view's tabs. */
.hw-head { position:absolute; z-index:4; left:0; right:0; top:0; height:52px; }
.hw-headset { position:absolute; inset:0; display:none; align-items:center; gap:6px; padding:0 12px 0 10px; }
.hw-headset.shown { display:flex; animation:hw-enter .28s cubic-bezier(.2,.9,.3,1.15) both; }
.hw-day { position:absolute; left:50%; top:9px; translate:-50% 0; display:flex; align-items:center; gap:8px; min-width:0; height:34px; padding:0 16px 0 12px; border-radius:17px; font-size:15px; font-weight:600; letter-spacing:-.25px; white-space:nowrap; transition:min-width .35s cubic-bezier(.3,1.2,.5,1), height .35s cubic-bezier(.3,1.2,.5,1), top .35s ease; }
.hw-day img { width:21px; height:17px; }
.hw-long, .hw-short { transition:opacity .2s ease; }
/* The call: the day pill grows into the call island (talk.js), with bars that follow whoever is talking. */
.hw-day.calling { min-width:236px; height:42px; top:5px; border-radius:21px; }
.hw-day.calling :is(.hw-long, .hw-short) { opacity:0; }
.hw-day.calling :is(.talk-bars, .talk-hangup) { opacity:1; scale:1; }
.hw-day[data-talking="salmon"] .talk-bars b { background:#e9705f; }
.hw-short { display:none; }
.hw-rounds { display:flex; gap:8px; margin-left:auto; }
.hw-round { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border-radius:50%; color:var(--hw-secondary); }
.hw-round svg { width:17px; height:17px; }
.hw-tab { display:flex; align-items:center; gap:7px; height:32px; padding:0 13px; border-radius:16px; color:var(--hw-secondary); font-size:13px; white-space:nowrap; }
.hw-tab.on { color:var(--hw-text); font-weight:500; }
.hw-tab.on svg:first-child { width:14px; height:14px; color:var(--hw-accent); }
.hw-tab.on svg:last-child { width:10px; height:10px; stroke-width:2.4; color:var(--hw-muted); }
.hw-actions { display:flex; align-items:center; height:32px; margin-left:auto; padding:0 4px; border-radius:16px; color:var(--hw-secondary); }
.hw-actions svg { width:30px; height:16px; padding:0 7px; }

/* The four views share the space under the header and cross-fade. */
.hw-view { position:absolute; left:0; right:0; top:52px; bottom:0; display:flex; flex-direction:column; opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s; }
.hw-view.shown { opacity:1; visibility:visible; }
.hw-shell:not(.ready) .hw-view { transition:none; }
.hw-shell.held * { transition:none !important; animation:none !important; }
/* A frozen review scene also skips the outer entrance so its pixels are immediately reviewable. */
.launch-hero-window:has(.hw-shell.held) { animation:none; }
.hw-transcript { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; padding:8px 20px 48px; overflow:hidden; mask-image:linear-gradient(transparent, #000 36px); transition:opacity .4s ease; }
.hw-transcript.opening { justify-content:flex-start; padding-top:64px; }
.hw-transcript.leaving { opacity:0; }
.hw-transcript > * { display:none; flex-shrink:0; }
.hw-transcript > .on { display:block; animation:hw-enter .28s cubic-bezier(.2,.9,.3,1.15) both; }
.hw-transcript > .pre { animation:none; }
@keyframes hw-enter { from { opacity:0; transform:translateY(8px) scale(.97); } }
.hw-time { margin:0 0 -4px; padding:4px 0; text-align:center; color:var(--hw-tertiary); font-size:12px; line-height:16px; }
.hw-note { margin:0; padding:4px 0; color:var(--hw-tertiary); font-size:13px; line-height:16px; white-space:nowrap; }
.hw-transcript > .hw-note.on { display:flex; align-items:center; justify-content:center; gap:6px; }
.hw-note img { width:15px; height:12px; }
.hw-note span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* Salmon's bubbles, with their tails (ChatBubbleGeometry.swift). */
.hw-msg { position:relative; width:fit-content; padding:8px 13px; border-radius:18px; white-space:pre-wrap; }
.hw-msg::before, .hw-msg::after { content:""; position:absolute; bottom:0; height:16px; }
.hw-salmon { max-width:min(520px,86%); margin-left:6px; background:var(--hw-received); }
.hw-salmon::before { left:-6px; width:18px; background:var(--hw-received); border-bottom-right-radius:14px 12px; }
.hw-salmon::after { left:-22px; width:22px; background:var(--hw-page); border-bottom-right-radius:9px; }
.hw-salmon > span { display:block; }
.hw-msg.hw-said > span { display:none; }
.hw-msg.hw-said > span.on { display:inline; }
.hw-salmon b { font-weight:600; }
.hw-you { align-self:flex-end; max-width:min(420px,80%); margin-right:6px; background:var(--hw-sent); }
.hw-you::before { right:-6px; width:18px; background:var(--hw-sent); border-bottom-left-radius:14px 12px; }
.hw-you::after { right:-22px; width:22px; background:var(--hw-page); border-bottom-left-radius:9px; }
/* Salmon's answer to "how big is my graph": a preview of the graph that opens it. */
.hw-graph-card { width:min(320px,92%); border-radius:16px; background:var(--hw-received); overflow:hidden; transition:scale .15s ease; }
.hw-graph-card.tight { margin-top:-8px; }
.hw-graph-card.press { scale:.97; }
.hw-graph-mini { display:block; width:100%; height:128px; background:#fcfdfd; }
.hw-graph-caption { display:flex; align-items:center; gap:8px; padding:8px 12px; }
.hw-graph-caption small { flex:1; color:var(--hw-secondary); font-size:13px; }
.hw-graph-caption em { padding:0 9px; border-radius:999px; font-style:normal; font-size:12px; line-height:21px; font-weight:500; color:var(--hw-accent); background:#fce9e7; }
.hw-transcript > .hw-pending.on { display:flex; align-items:center; gap:10px; padding:4px 2px; }
.hw-transcript > .hw-pending.intro.on { position:relative; align-self:flex-start; justify-content:center; min-width:52px; height:32px; margin-left:6px; padding:0 13px; border-radius:18px; background:var(--hw-received); }
.hw-pending.intro::before,.hw-pending.intro::after { content:""; position:absolute; bottom:0; height:16px; }
.hw-pending.intro::before { left:-6px; width:18px; background:var(--hw-received); border-bottom-right-radius:14px 12px; }
.hw-pending.intro::after { left:-22px; width:22px; background:var(--hw-page); border-bottom-right-radius:9px; }
.hw-pending.intro :is(img,span) { display:none; }
.hw-pending.intro .hw-dots { color:var(--hw-secondary); }
.hw-pending img { width:20px; height:16px; }
.hw-pending span { color:var(--hw-tertiary); font-size:13px; line-height:1; }
.hw-dots { display:flex; gap:3px; color:var(--hw-tertiary); }
.hw-dots b { width:6px; height:6px; border-radius:50%; background:currentColor; animation:hw-dot 1.3s ease-in-out infinite; }
.hw-dots b:nth-child(2) { animation-delay:.18s; }
.hw-dots b:nth-child(3) { animation-delay:.36s; }
@keyframes hw-dot { 0%,55%,100% { opacity:.25; } 25% { opacity:.7; } }
.hw-fade { position:absolute; left:0; right:0; bottom:54px; height:44px; pointer-events:none; background:linear-gradient(to top, var(--hw-page), color-mix(in srgb, var(--hw-page) 60%, transparent) 40%, transparent); }
/* Salmon's composer: + on its own, the glass field (with its suggestion and tab), the voice button on its own. */
.hw-composer { position:relative; z-index:1; display:flex; align-items:center; gap:8px; margin:0 22px 14px; }
.hw-composer .hw-round { width:40px; height:40px; color:var(--hw-text); }
.hw-composer .hw-round svg { width:18px; height:18px; }
.hw-field { flex:1; min-width:0; display:flex; align-items:center; gap:8px; height:40px; padding:0 8px 0 16px; border-radius:20px; font-size:14px; white-space:nowrap; overflow:hidden; }
.hw-placeholder { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; color:var(--hw-tertiary); }
.hw-field kbd { padding:1px 6px; border:.5px solid #171c1a3d; border-radius:5px; font:500 11px/16px -apple-system, sans-serif; color:var(--hw-secondary); }
.hw-typed { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.hw-typed:empty { display:none; }
.hw-field.typing .hw-placeholder, .hw-field.typing kbd { display:none; }
/* The Graph: the vault growing, with the replay's counter; Project River is picked. */
.hw-graph-canvas { flex:1; min-height:0; width:100%; }
.hw-count { position:absolute; left:16px; bottom:14px; color:var(--hw-tertiary); font:11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:0; }
.hw-hub { position:absolute; left:50%; top:46%; width:22px; height:22px; margin:-11px 0 0 -11px; }
.hw-hub i { position:absolute; inset:0; border-radius:50%; border:2px solid #fa8072; opacity:0; scale:.4; transition:opacity .25s, scale .35s cubic-bezier(.2,.9,.3,1.3); }
.hw-hub b { position:absolute; left:50%; top:30px; translate:-50% 0; padding:3px 9px; border-radius:999px; white-space:nowrap; font-size:12px; line-height:16px; font-weight:500; background:#fcfdfd; box-shadow:0 0 0 .5px #0000001c, 0 4px 14px #1c2a261f; opacity:0; transition:opacity .25s; }
.hw-hub.on i { opacity:1; scale:1; box-shadow:0 0 0 6px #fa807233; }
.hw-hub.on b { opacity:1; }
/* The Canvas: Project River's board on a dotted ground, cards popping in, arrows drawing between them. */
.hw-canvas { background:radial-gradient(circle, #171c1a1f 1px, transparent 1.2px) 0 0 / 18px 18px; }
.hw-links { position:absolute; inset:0; width:100%; height:100%; }
.hw-links path { stroke:#171c1a40; stroke-width:1.5; stroke-dasharray:1; stroke-dashoffset:1; }
.hw-board-card { position:absolute; width:36%; padding:10px 12px; border-radius:12px; background:#fcfdfd; box-shadow:0 0 0 .5px #0000001f, 0 6px 18px #1c2a261a; opacity:0; scale:.9; transition:opacity .3s ease, scale .4s cubic-bezier(.2,.9,.3,1.25); }
.hw-board-card.on { opacity:1; scale:1; }
.hw-board-card.press { scale:.97; }
.hw-board-card small { display:block; font-size:11px; line-height:14px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; }
.hw-board-card b { display:block; margin-top:2px; font-weight:600; }
.hw-board-card p { margin:2px 0 0; color:var(--hw-secondary); font-size:13px; line-height:18px; }
.hw-board-card p i { display:inline-block; width:12px; height:12px; margin:4px 5px 0 0; border:1.5px solid #171c1a40; border-radius:3px; }
.hw-board-card p i.done { border-color:#5aa469; background:#5aa469; }
.hw-idea { left:7%; top:12%; } .hw-idea small { color:#fa8072; }
.hw-research { left:57%; top:8%; } .hw-research small { color:#4aa8d8; }
.hw-draft { left:7%; top:62%; } .hw-draft small { color:#e3a33b; }
.hw-launch { left:57%; top:64%; } .hw-launch small { color:#5aa469; }
/* The note: the launch checklist, ticking itself off. */
.hw-note-view { padding:28px 40px; overflow:hidden; }
.hw-note-view h3 { margin:0; font-size:24px; line-height:30px; font-weight:700; letter-spacing:-.4px; }
.hw-note-meta { margin:4px 0 18px; color:var(--hw-tertiary); font-size:13px; }
.hw-task { display:flex; align-items:center; gap:10px; margin:0; padding:7px 0; font-size:15px; transition:color .3s; }
.hw-task i { display:grid; place-items:center; flex-shrink:0; width:20px; height:20px; border:1.5px solid #171c1a40; border-radius:6px; transition:background-color .25s, border-color .25s; }
.hw-task i svg { width:14px; height:14px; stroke:#fff; stroke-width:2.4; opacity:0; scale:.4; transition:opacity .2s, scale .3s cubic-bezier(.22,1,.36,1); }
.hw-task.done { color:var(--hw-tertiary); text-decoration:line-through; text-decoration-color:#171c1a40; }
.hw-task.done i { border-color:#5aa469; background:#5aa469; }
.hw-task.done i svg { opacity:1; scale:1; }
.hw-note-text { margin:18px 0 0; color:var(--hw-secondary); }
/* The pointer that clicks through the tour. */
.hw-pointer { position:absolute; left:0; top:0; z-index:20; width:22px; height:22px; margin:-3px 0 0 -5px; fill:#171c1a !important; stroke:#fff !important; stroke-width:1.4 !important; filter:drop-shadow(0 1px 2px #00000040); opacity:0; transition:opacity .3s, scale .12s; pointer-events:none; }
.hw-pointer.on { opacity:1; }
.hw-pointer.press { scale:.82; }
@media (min-width:640px) and (max-width:1023px) { .launch-hero-window { max-width:min(976px, calc(100% - 16px)); } }
/* Below 768px the sidebar is the app's 88pt rail: lights, the four buttons, the tiles' icons and your monogram. */
@media (max-width:767px) {
  .launch-hero-window { --hw-side:74px; }
  .hw-top { flex-direction:column; height:auto; padding:13px 0 0; gap:14px; }
  .hw-top .demo-lights { gap:6px; }
  .hw-top .demo-lights i { width:11px; height:11px; }
  .hw-search, .hw-tile b, .hw-tile > span:last-child, .hw-link, .hw-recent { display:none; }
  .hw-salmon-button { margin:0; }
  .hw-tiles { grid-template-columns:1fr; justify-items:center; gap:12px; margin:12px 20px 0; padding:14px 0 0; border-top:1px solid #171c1a14; }
  .hw-tile, .hw-tile.shown { display:block; padding:0; background:none; }
  .hw-tile.shown .hw-tile-icon { box-shadow:0 0 0 2px #fff, 0 0 0 3.5px var(--tile); }
  .hw-tile-icon { width:32px; height:32px; }
  .hw-tile-icon svg { width:17px; height:17px; }
  .hw-account { left:19px; }
  .hw-long, .hw-headset .hw-rounds .hw-round:first-child, .hw-tab:not(.on) { display:none; }
  .hw-short { display:inline; }
  .hw-day { position:relative; left:0; top:0; translate:none; margin:0 auto; }
  .hw-day.calling { min-width:188px; top:0; }
  .hw-day.calling + .hw-rounds { display:none; }
  .hw-headset:has(.calling) { padding-left:12px; }
  .hw-headset[data-view="chat"] { padding-left:44px; }
  .hw-composer { margin:0 12px 12px; gap:6px; }
  .hw-composer .hw-round { width:36px; height:36px; }
  .hw-field { height:36px; padding:0 10px 0 12px; font-size:13px; }
  .hw-field kbd { display:none; }
  .hw-transcript { padding-left:14px !important; padding-right:14px !important; }
  .hw-board-card { width:42%; padding:8px 9px; }
  .hw-board-card p { font-size:12px; line-height:16px; }
  .hw-idea, .hw-draft { left:4%; }
  .hw-research, .hw-launch { left:54%; }
  .hw-note-view { padding:22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .hw-transcript > .on, .hw-dots b, .hw-headset.shown { animation:none; } }

/* Native dark appearance: SalmonPalette.swift shares Amolfi's page/ink/bubble grays.
   Salmon's glass uses its page/panel family. Amolfi's separate mapping below uses
   MacChatGlassSurface's active rail/control fills and the native green sent bubble. */
html[data-site-mode="dark"] :is(.salmon-feature-stage,.demo-canvas,.launch-hero-window) {
  --app-page:#101312; --app-panel:#181c1a; --app-text:#f1f3f2; --app-secondary:#9ea9a4;
  --app-line:#262a28; --app-received:#3b3b3d; --app-sent:#79443d;
  --app-accent:#fa8072; --app-link:#ff9c8f; --app-tag:#352523;
  --app-control:#181c1a; --app-rail:#181c1a; --app-muted-line:#f1f3f240;
}
html[data-site-mode="dark"] .demo-canvas { background:var(--app-page); color:var(--app-text); }
html[data-site-mode="dark"] :is(.demo-titlebar,.demo-row,.demo-checks li,.talk-card-foot,.talk-card-foot span+span) { border-color:var(--app-line); }
html[data-site-mode="dark"] :is(.demo-app-name,.demo-body) { color:var(--app-text); }
html[data-site-mode="dark"] .demo-bubble { background:var(--app-received); }
html[data-site-mode="dark"] .demo-compose { background:var(--app-control); border-color:var(--app-line); }
html[data-site-mode="dark"] .demo-compose:not(:has(.on))::before { color:var(--app-secondary); }
html[data-site-mode="dark"] :is(.talk-pill,.hw-day)[data-talking="salmon"] .talk-bars b { background:var(--app-accent); }
html[data-site-mode="dark"] .demo-checks li::before { box-shadow:inset 0 0 0 1.5px var(--app-muted-line); }
html[data-site-mode="dark"] :is(.demo-glass,.dictate-pill,.cu-status) { background:var(--app-control); color:var(--app-text); box-shadow:inset 0 1px 0 #ffffff14,0 0 0 .5px #ffffff1c,0 4px 14px #00000040; }
html[data-site-mode="dark"] .dictate-heard { color:var(--app-secondary); }
html[data-site-mode="dark"] .demo-canvas.cu { background:linear-gradient(160deg,#171c1a,#101312 60%,#181c1a); }
html[data-site-mode="dark"] .cu-window:not(.cu-agent) { box-shadow:0 0 0 .5px #ffffff1f,0 10px 28px #00000040,0 2px 6px #00000030; }
html[data-site-mode="dark"] .cu-event { background:var(--app-sent); color:var(--app-text); }
html[data-site-mode="dark"] .cu-event b { color:var(--app-text); }
html[data-site-mode="dark"] .demo-canvas.knows { background:var(--app-page); }
html[data-site-mode="dark"] .knows-label { color:var(--app-link); }
html[data-site-mode="dark"] .knows-milestones li { color:var(--app-text); }
html[data-site-mode="dark"] .knows-check { background:var(--app-control); color:var(--app-link); border-color:var(--app-muted-line); }
html[data-site-mode="dark"] .feed-filters span.on { background:var(--app-control); }
html[data-site-mode="dark"] :is(.feed-row.needs p,.feed-pin>div) { background:#2c201e; }
html[data-site-mode="dark"] .feed-actions i { background:var(--app-control); box-shadow:0 0 0 .5px #ffffff1f; }
html[data-site-mode="dark"] .feed-actions i:nth-child(2) { color:var(--app-link); }

html[data-site-mode="dark"] .launch-hero-window {
  --hw-page:var(--app-page); --hw-text:var(--app-text); --hw-secondary:var(--app-secondary);
  --hw-muted:var(--app-secondary); --hw-tertiary:#6b7671; --hw-border:var(--app-line);
  --hw-sent:var(--app-sent); --hw-received:var(--app-received); --hw-accent:var(--app-link);
  box-shadow:0 0 0 1px #ffffff12;
}
html[data-site-mode="dark"] .launch-hero-window::after { border-color:#ffffff0f; }
html[data-site-mode="dark"] .hw-glass { background:var(--app-control); box-shadow:inset 0 1px 0 #ffffff14,0 0 0 .5px #ffffff1c,0 4px 14px #00000040; }
html[data-site-mode="dark"] .hw-sidebar { background:var(--app-rail); box-shadow:inset 0 1px 0 #ffffff14,0 0 0 .5px #ffffff17,0 1px 3px #00000030,0 10px 30px #00000040; }
html[data-site-mode="dark"] .hw-search { background:#f1f3f20f; }
html[data-site-mode="dark"] .hw-tile { background:color-mix(in srgb,var(--tile) 36%,transparent); color:color-mix(in srgb,var(--tile) 45%,#fff); }
html[data-site-mode="dark"] .hw-tile.shown { background:color-mix(in srgb,var(--tile) 48%,transparent); }
html[data-site-mode="dark"] .hw-recent-row i { border-color:#f1f3f259; }
html[data-site-mode="dark"] :is(.hw-field kbd,.hw-tiles) { border-color:var(--app-line); }
html[data-site-mode="dark"] .hw-graph-mini { background:var(--app-page); }
html[data-site-mode="dark"] .hw-graph-caption em { background:var(--app-tag); }
html[data-site-mode="dark"] .hw-hub b { background:var(--app-panel); box-shadow:0 0 0 .5px #ffffff1c,0 4px 14px #00000040; }
html[data-site-mode="dark"] .hw-canvas { background:radial-gradient(circle,var(--app-line) 1px,transparent 1.2px) 0 0 / 18px 18px; }
html[data-site-mode="dark"] .hw-links path { stroke:var(--app-muted-line); }
html[data-site-mode="dark"] .hw-board-card { background:var(--app-page); box-shadow:0 0 0 .5px #ffffff1f,0 6px 18px #00000040; }
html[data-site-mode="dark"] .hw-board-card p i:not(.done),html[data-site-mode="dark"] .hw-task:not(.done) i { border-color:var(--app-muted-line); }
html[data-site-mode="dark"] .hw-task.done { text-decoration-color:var(--app-muted-line); }
@media(max-width:767px) {
  html[data-site-mode="dark"] :is(.hw-tile,.hw-tile.shown) { background:none; }
  html[data-site-mode="dark"] .hw-tile.shown .hw-tile-icon { box-shadow:0 0 0 2px var(--app-rail),0 0 0 3.5px var(--tile); }
}

/* Salmon's native clear glass sits over its near-neutral page/panel colors. */
html[data-site-theme="salmon"] .demo-canvas { color:var(--app-text); }
html[data-site-theme="salmon"] .demo-canvas:not(.cu):not(.knows) { background:var(--app-page); }
html[data-site-theme="salmon"][data-site-mode="dark"] .hw-sidebar { background:linear-gradient(#181c1ae6,#101312e0); }
html[data-site-theme="salmon"][data-site-mode="dark"] :is(.hw-glass,.demo-glass,.dictate-pill,.cu-status) { background:linear-gradient(#181c1aeb,#101312dc); }
@media(prefers-reduced-transparency:reduce) {
  html[data-site-theme="salmon"][data-site-mode="dark"] :is(.hw-sidebar,.hw-glass,.demo-glass,.dictate-pill,.cu-status) { background:var(--app-panel); -webkit-backdrop-filter:none; backdrop-filter:none; }
}

/* Amolfi NativePalette + ChatBubblePalette + ChatInteractionStyle, read from Swift.
   Keep the Salmon layout and identity; compare the native app's color roles. */
html[data-site-theme="amolfi"] :is(.salmon-feature-stage,.demo-canvas,.launch-hero-window) {
  --app-page:#fff; --app-line:rgb(0 0 0 / .098039);
  --salmon:#2ab47e; --app-accent:#2ab47e; --app-link:#157552;
  --app-sent:#2acf8b; --app-tag:#e4f2ec;
}
html[data-site-theme="amolfi"][data-site-mode="dark"] :is(.salmon-feature-stage,.demo-canvas,.launch-hero-window) {
  --app-page:#1e1e1e; --app-line:rgb(255 255 255 / .098039);
  --app-control:#232323; --app-rail:#222222; --app-link:#2ab47e; --app-tag:#152d24;
}
html[data-site-theme="amolfi"] .launch-hero-window { --hw-page:var(--app-page); --hw-sent:var(--app-sent); --hw-accent:var(--app-link); }
html[data-site-theme="amolfi"] :is(.hw-board-card,.hw-graph-mini) { background:var(--app-page); }
html[data-site-theme="amolfi"] .demo-canvas { background:var(--app-page); color:var(--app-text); }
html[data-site-theme="amolfi"][data-site-mode="light"] .demo-canvas.cu { background:linear-gradient(160deg,#f0f0f0,#fff 60%,#f6f6f6); }
html[data-site-theme="amolfi"][data-site-mode="dark"] .demo-canvas.cu { background:linear-gradient(160deg,#222,#1e1e1e 60%,#232323); }
html[data-site-theme="amolfi"][data-site-mode="light"] .hw-sidebar { background:linear-gradient(#ffffffe6,#ffffffe0); }
html[data-site-theme="amolfi"][data-site-mode="light"] :is(.hw-glass,.demo-glass,.dictate-pill,.cu-status) { background:linear-gradient(#ffffffeb,#ffffffdc); }
html[data-site-theme="amolfi"] :is(.knows-label,.knows-check) { color:var(--app-link); }
html[data-site-theme="amolfi"] .knows-milestones li { color:var(--app-text); }
html[data-site-theme="amolfi"] :is(.hw-you,.talk-you) { color:#fff; }
html[data-site-theme="amolfi"] .cu-event,html[data-site-theme="amolfi"] .cu-event b { background:var(--app-tag); color:var(--app-text); }
html[data-site-theme="amolfi"] :is(.talk-pill,.hw-day)[data-talking="salmon"] .talk-bars b { background:var(--app-accent); }
html[data-site-theme="amolfi"] .hw-tile[data-part="chat"] { --tile:#2ab47e!important; }
html[data-site-theme="amolfi"] .hw-salmon-button.shown { background:#2ab47e1a; }
html[data-site-theme="amolfi"] .hw-salmon-button.press { background:#2ab47e33; }
html[data-site-theme="amolfi"] .hw-account b { background:#2ab47e29; }
html[data-site-theme="amolfi"] .hw-graph-caption em { background:var(--app-tag); }
html[data-site-theme="amolfi"] .hw-hub i { border-color:var(--app-accent); }
html[data-site-theme="amolfi"] .hw-hub.on i { box-shadow:0 0 0 6px #2ab47e33; }
html[data-site-theme="amolfi"] .hw-idea small { color:var(--app-accent); }
