/* Tangelo Mail. One hand-written stylesheet. Self-hosted font, no third-party requests.
   Dark first: the page is the dark the icon glows in. Orange marks only what waits on you. */

@font-face {
  font-family: "Nunito Tangelo";
  src: url(fonts/nunito-var-latin.woff2) format("woff2");
  font-weight: 600 1000;
  font-style: normal;
  font-display: swap;
}
/* Same metrics as Nunito on a system face, so the swap does not move the page. */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 100%;
  descent-override: 35%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark light;
  --bg: #0E0B09;
  --bg-raised: #17120F;
  --bg-sunk: #0A0807;
  --ink: #F5EFE9;
  --muted: #AEA398;
  --faint: #9A8F85;
  --line: rgba(255, 232, 214, .12);
  --tangelo: #FF7A30;
  --tangelo-ink: #FF9A5C;
  --on-tangelo: #1F0E04;
  --ember: #3A1B0B;
  --leaf: #6CC27A;
  --lagoon: #5BA0E8;
  --plum: #C070D8;
  --glow: .95;
  --shadow: 0 40px 90px -36px rgba(0, 0, 0, .85);
  --lift: 0 50px 130px -30px rgba(255, 122, 48, .42), 0 30px 70px -20px rgba(0, 0, 0, .8);
  --display: "Nunito Tangelo", "Nunito Fallback", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.1rem, 4.5vw, 2.75rem);
}

/* Light theme tokens, applied by system preference or by the toggle. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F3EF;
  --bg-raised: #FFFEFC;
  --bg-sunk: #EDE8E2;
  --ink: #1F1A17;
  --muted: #5F564F;
  --faint: #6C625A;
  --line: rgba(40, 20, 8, .13);
  --tangelo: #C94A0A;
  --tangelo-ink: #B8420A;
  --on-tangelo: #FFFFFF;
  --ember: #FDEBDD;
  --leaf: #2F9E44;
  --lagoon: #1C7ED6;
  --plum: #9C36B5;
  --glow: .5;
  --shadow: 0 30px 70px -36px rgba(60, 30, 10, .4);
  --lift: 0 40px 100px -30px rgba(224, 83, 11, .4), 0 24px 60px -24px rgba(60, 30, 10, .3);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F6F3EF;
    --bg-raised: #FFFEFC;
    --bg-sunk: #EDE8E2;
    --ink: #1F1A17;
    --muted: #5F564F;
    --faint: #6C625A;
    --line: rgba(40, 20, 8, .13);
    --tangelo: #C94A0A;
    --tangelo-ink: #B8420A;
    --on-tangelo: #FFFFFF;
    --ember: #FDEBDD;
    --leaf: #2F9E44;
    --lagoon: #1C7ED6;
    --plum: #9C36B5;
    --glow: .5;
    --shadow: 0 30px 70px -36px rgba(60, 30, 10, .4);
  --lift: 0 40px 100px -30px rgba(224, 83, 11, .4), 0 24px 60px -24px rgba(60, 30, 10, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--tangelo-ink); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--tangelo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bg-raised); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; z-index: 30; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--pad), 76rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--pad), 44rem); margin-inline: auto; }

/* Header */
.bar { padding-block: .8rem; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.bar .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -.02em; }
.brand img, .brand .logo-bg { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: .25rem 1.5rem; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tangelo); }
.meter { width: 2.1rem; height: 2.1rem; flex: none; overflow: visible; }
.meter .rind { fill: var(--tangelo); }
.meter .pith { fill: var(--bg); }
.meter .seg { fill: var(--tangelo); opacity: .18; transition: opacity .35s ease; }
.meter .seg.lit { opacity: 1; }
.meter .seg.pulse { animation: pulse .7s ease; transform-box: fill-box; transform-origin: 50% 50%; }
.meter.whole { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--tangelo) 80%, transparent)); }
.theme { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme:hover { border-color: var(--muted); }
.theme i { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Type */
.display { font: 900 clamp(3.1rem, 10.2vw, 8.6rem)/.92 var(--display); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.display span { display: block; }
.h2 { font: 850 clamp(2.2rem, 6vw, 4.6rem)/.98 var(--display); letter-spacing: -.04em; margin: 0 0 1.2rem; text-wrap: balance; }
.lede { font-size: clamp(1.12rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 36rem; margin: 0; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }
kbd { font: 700 .82em/1 var(--display); background: var(--bg-raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .2em .5em; color: var(--ink); white-space: nowrap; }

/* Hero */
.hero { padding-block: clamp(1.6rem, 4vw, 3rem) 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: end; }
.hero .display { font-size: clamp(3rem, 7.4vw, 6.8rem); }
.hero-side .lede { margin: 0; }
.hero-side .status { margin-top: 1.1rem; }
.hero > .wrap, .sect, .band, .coming > .wrap { position: relative; z-index: 1; }
.hero > .wrap { z-index: 2; }
.cta-row { display: flex; align-items: center; gap: 1rem 1.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; background: var(--tangelo); color: var(--on-tangelo); font: 800 1.15rem/1 var(--display); padding: 1rem 1.6rem; border-radius: 999px; text-decoration: none; letter-spacing: -.01em; }
.btn:hover { filter: brightness(1.08); }
.status { margin: 0; color: var(--muted); display: inline-flex; align-items: center; gap: .6rem; font-size: 1rem; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tangelo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tangelo) 25%, transparent); }

.stage { overflow-x: clip; position: relative; z-index: 0; isolation: isolate; margin-top: clamp(1.6rem, 3.5vw, 2.4rem); width: min(100% - 2 * var(--pad), 80rem); margin-inline: auto; }
.glow { position: absolute; pointer-events: none; opacity: var(--glow); z-index: 0; }
.glow img { width: 100%; height: 100%; filter: saturate(1.3) brightness(1.25); }
.stage .glow { left: 50%; top: 50%; width: 122%; height: 122%; translate: -50% -50%; }
.stage .window { box-shadow: var(--lift); }
.window { position: relative; z-index: 1; margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line); box-shadow: var(--shadow); }
.window picture, .window img { width: 100%; }
.window.crop { overflow: hidden; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: .9rem; max-width: 34rem; }
figcaption strong { color: var(--ink); font-weight: 650; }

/* Sections */
.sect { padding-block: clamp(4.5rem, 11vw, 9rem) 0; }
.sect .lede { margin-bottom: 0; }
.link { font-weight: 600; }

/* The inbox you can play with */
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.demo { font-size: 16px; position: relative; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; outline-offset: 5px; text-align: left; line-height: 1.35; color: var(--ink); font-family: var(--text); }
.demo:focus-visible { outline: 3px solid var(--tangelo); }
.demo-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.demo-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); }
.demo-bar b { margin-inline-start: .8rem; font: 800 15px var(--display); color: var(--ink); }
.demo-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 33rem; overflow: hidden; }
.d-list { border-inline-end: 1px solid var(--line); padding: .5rem .6rem 1rem; display: flex; flex-direction: column; gap: 0; height: 100%; min-height: 0; overflow: hidden; }
.d-list > .row:not(.updates) { flex: none; margin-bottom: 2px; }
.d-head { display: flex; align-items: center; gap: .75rem; padding: .7rem .6rem .8rem; }
.d-head svg { width: 3rem; height: 3rem; flex: none; }
.d-head b { font: 850 1.35rem/1 var(--display); letter-spacing: -.025em; display: block; }
.d-head small { color: var(--muted); font-size: 12.5px; }
.d-label { color: var(--muted); font: 700 13px var(--display); padding: .4rem .6rem .35rem; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; padding: .65rem .6rem; border-radius: 10px; cursor: pointer; position: relative; transition: transform .22s ease, opacity .22s ease, max-height .22s ease .1s, padding .22s ease .1s, margin .22s ease .1s; max-height: 5rem; overflow: hidden; }
.row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.row[aria-selected="true"] { background: var(--ember); }
.row.out { transform: translateX(-26px); opacity: 0; max-height: 0; padding-block: 0; margin: 0; }
.av { width: 2.35rem; height: 2.35rem; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); display: grid; place-items: center; font: 750 .8rem var(--display); color: var(--ink); position: relative; flex: none; }
.row.unread .av::after { content: ""; position: absolute; left: -.1rem; top: -.1rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tangelo); border: 2px solid var(--bg-raised); }
.r1 { display: flex; justify-content: space-between; gap: .5rem; }
.r1 b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r1 time { font: 650 12px var(--display); color: var(--muted); flex: none; }
.r2, .r3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r2 { font-size: 14px; }
.r3 { color: var(--muted); font-size: 13px; }
.r3 .ask { color: var(--tangelo-ink); font-weight: 650; }
.row .acct { position: absolute; right: .6rem; bottom: .75rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c, var(--faint)); }
[data-acct="personal"] { --c: var(--leaf); }
[data-acct="icloud"] { --c: var(--lagoon); }
[data-acct="work"] { --c: var(--plum); }
.row.updates { margin-top: auto; background: color-mix(in srgb, var(--ink) 6%, transparent); align-items: center; }
.row.updates .av { border-radius: 10px; }
.row.updates[aria-selected="true"] { background: var(--ember); }

.d-read { padding: 1.5rem 1.6rem; position: relative; display: flex; flex-direction: column; justify-content: safe center; min-width: 0; height: 100%; min-height: 0; overflow-y: auto; }
.d-read h3 { font: 800 1.45rem/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 .5rem; }
.d-read p { margin: 0 0 .8rem; color: var(--muted); }
.d-read .from { font-size: 13px; color: var(--faint); margin-bottom: 1rem; }
.d-read .bubble { background: color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 14px; padding: .9rem 1rem; color: var(--ink); margin: 0 0 1rem; max-width: 26rem; }
.d-read .hint { font-size: 13px; color: var(--faint); }
.d-read .fruit-big { width: min(13rem, 70%); height: auto; aspect-ratio: 1; flex: none; margin: 0 auto 1.1rem; }
.d-read.center { text-align: center; align-items: center; }
.d-list:not(:has(.row:not(.updates):not([hidden]))) .d-label { visibility: hidden; }
.d-read.center p { max-width: 20rem; }
.ask-card { border: 1.5px dashed var(--tangelo); border-radius: 14px; padding: 1.1rem 1.15rem; background: color-mix(in srgb, var(--tangelo) 8%, transparent); }
.ask-card h3 { font-size: 1.15rem; display: flex; gap: .5rem; align-items: center; }
.ask-card .meta { font-size: 13px; color: var(--muted); margin: 0 0 .8rem; }
.ask-card .meta b { color: var(--ink); font-weight: 650; }
.ask-card q { display: block; quotes: none; background: var(--bg-raised); border-radius: 10px; padding: .8rem .9rem; color: var(--ink); margin-bottom: 1rem; border: 1px solid var(--line); }
.ask-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.ask-actions small { color: var(--faint); flex-basis: 100%; }
.dbtn { font: 750 .95rem var(--display); border: 0; border-radius: 999px; padding: .65rem 1.05rem; cursor: pointer; background: color-mix(in srgb, var(--ink) 11%, transparent); color: var(--ink); }
.dbtn:hover { background: color-mix(in srgb, var(--ink) 17%, transparent); }
.dbtn.go { background: var(--tangelo); color: var(--on-tangelo); }
.dbtn.go:hover { filter: brightness(1.08); }
.demo-keys { height: 3.4rem; overflow: hidden; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--bg-sunk); color: var(--muted); font-size: 13px; }
.demo-keys button { font: inherit; display: inline-flex; gap: .45rem; align-items: center; border: 0; background: transparent; color: var(--muted); padding: .35rem .55rem; border-radius: 8px; cursor: pointer; }
.demo-keys button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

/* Fruit: the meter. Each segment is a conversation from people, in its account's colour. */
.fruit { overflow: visible; }
.fruit .rind { fill: var(--tangelo); }
.fruit .div { stroke: var(--bg-raised); stroke-width: 3; stroke-linecap: butt; }
.meter .div { stroke: var(--bg); stroke-width: 6; }
.fruit .pith { fill: var(--bg-raised); }
.fruit .seg { fill: var(--c); opacity: .32; transition: opacity .35s ease; }
.fruit .seg.lit { opacity: 1; }
.fruit .seg.pulse { animation: pulse .7s ease; transform-box: fill-box; transform-origin: 50% 50%; }
.fruit.whole { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tangelo) 70%, transparent)); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* Agents: a band of its own, so the page changes pace here. */
.band { background: var(--bg-raised); border-block: 1px solid var(--line); margin-top: clamp(4.5rem, 11vw, 9rem); padding-block: clamp(4rem, 9vw, 7rem); }
.sect.band { padding-top: clamp(4rem, 9vw, 7rem); }
/* Agents */
.agents-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.lines li { padding-inline-start: 1.5rem; position: relative; color: var(--muted); max-width: 30rem; }
.lines li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tangelo); }
.lines strong { color: var(--ink); font-weight: 650; }

/* Rail of screenshots */

/* Coming soon */
.coming { overflow-x: clip; text-align: center; padding-block: clamp(5rem, 12vw, 10rem) 2rem; position: relative; }
.lamp { position: relative; width: min(18rem, 62vw); margin: 0 auto 2.2rem; aspect-ratio: 1; }
.lamp .glow { left: 50%; top: 50%; translate: -50% -50%; width: 340%; aspect-ratio: 1; opacity: var(--glow); }
.lamp .logo { position: relative; z-index: 1; width: 100%; border-radius: 22.5%; box-shadow: 0 30px 80px -20px rgba(255, 122, 48, .55); }
.coming .h2 { margin-bottom: 1rem; }
.coming p { color: var(--muted); margin: 0 auto .4rem; max-width: 28rem; }

/* Footer */
.foot { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: .93rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: baseline; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Prose pages */
.page-head { padding-block: clamp(2rem, 6vw, 4rem) 0; }
.page-head h1 { font: 900 clamp(2.4rem, 7vw, 4.6rem)/.98 var(--display); letter-spacing: -.04em; margin: 0 0 1.2rem; text-wrap: balance; }
.prose { padding-block: 2rem 0; }
.prose h2 { font: 850 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--display); letter-spacing: -.03em; margin: 3.2rem 0 .8rem; }
.prose h3 { font: 800 1.2rem/1.25 var(--display); letter-spacing: -.015em; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { color: var(--ink); max-width: 40rem; text-wrap: pretty; }
.prose ul, .prose ol { padding-inline-start: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose .muted { color: var(--muted); }
.prose code { font: .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; word-break: break-word; }
pre { margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font: .86rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); }
.prose pre code, pre code { background: none; border: 0; padding: 0; color: inherit; word-break: normal; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 700 .85rem var(--display); color: var(--muted); }
details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; margin-bottom: .7rem; max-width: 44rem; }
summary { cursor: pointer; font: 800 1.05rem/1.3 var(--display); padding: .8rem 0; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; list-style: none; margin: 1.6rem 0 0; }
.shot-page { margin-top: 2.5rem; }
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.error-page .logo-bg { margin: 0 auto 1.5rem; }
.logo-bg { display: inline-block; background: url(img/logo.webp) center / cover no-repeat; flex: none; }
.logo-sm { width: 34px; height: 34px; border-radius: 8px; }
.logo-lg { width: 7rem; height: 7rem; border-radius: 22%; }

/* Motion, only where it answers something or lands the page once. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(.3em); } to { transform: none; } }
  .display span { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .display span:nth-child(2) { animation-delay: .12s; }
  .hero .lede, .hero .cta-row { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .3s both; }
  @supports (animation-timeline: view()) {
    @keyframes dawn { from { opacity: 0; scale: .7; } to { opacity: var(--glow); scale: 1; } }
    .stage .glow, .lamp .glow { animation: dawn linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .toast, .fruit .seg, .meter .seg, .log li,   .log .log-note { transition: none; }
  .fruit .seg.pulse, .meter .seg.pulse, .m.me.sent { animation: none; }
}

@media (forced-colors: active) { .window, .demo, .btn { border: 1px solid CanvasText; } }

/* Small helpers (no inline styles: the site's CSP forbids them) */
.gap-l { margin-top: 1.8rem; }
.gap-m { margin-top: 1.4rem; }
.flush { margin: 0; }
.display.small { font-size: clamp(2.4rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.lede.center { margin-inline: auto; }

/* Touch screens: no keys to press, so the demo speaks in taps. */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kbd-only { display: none; }
  .touch-only { display: inline; }
  .demo-keys kbd { display: none; }
  .demo-keys button { padding: .55rem .8rem; font-size: 14px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
  .demo-keys button[data-act="prev"] { display: none; }
}

/* The inbox at the top: playing by itself until touched */
.stage .demo { z-index: 1; box-shadow: var(--lift); }
.demo-bar .acct-chip { margin-inline-start: auto; font: 650 12px var(--display); color: var(--tangelo-ink); opacity: 0; transition: opacity .3s ease; display: inline-flex; align-items: center; gap: .45rem; }
.demo-bar .chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tangelo); }
.demo.playing .acct-chip { opacity: 1; }
.toast { margin-inline-start: auto; flex: 1 1 14rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; color: var(--muted); font-size: 13px; transition: color .2s ease; }
.toast.on { color: var(--ink); font-weight: 600; }
.toast .dbtn { margin-inline-start: .7rem; padding: .3rem .8rem; font-size: .85rem; }
.demo-keys button.press, .dbtn.press { background: var(--tangelo); color: var(--on-tangelo); }
.dbtn.back { margin-bottom: 1rem; align-self: flex-start; padding: .4rem .8rem; font-size: .85rem; }
.row.sending .r3 { color: var(--tangelo-ink); font-weight: 650; }
.demo-note { color: var(--muted); font-size: .95rem; margin: 1rem 0 0; max-width: 40rem; }

/* The agent's reply */
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.tabs[hidden] { display: none; }
.tabs button { font: 750 .9rem var(--display); padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ember); color: var(--tangelo-ink); border-color: transparent; }
.msgs { display: flex; flex-direction: column; gap: .9rem; min-height: 22rem; justify-content: flex-start; }
.m { display: flex; gap: .7rem; }
.m.them { align-self: flex-start; max-width: 92%; align-items: flex-start; }
.m.them .av { width: 2.2rem; height: 2.2rem; flex: none; }
.m .b { line-height: 1.5; }
.m.them .b { background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 16px; padding: .75rem 1rem; }
.m.me { align-self: flex-end; flex-direction: column; border-radius: 16px; padding: .8rem 1rem 1rem; max-width: 96%; border: 1.5px solid transparent; }
.m.me.ghost { border: 1.5px dashed var(--tangelo); background: color-mix(in srgb, var(--tangelo) 9%, transparent); }
.m.me.ghost.closed { border-color: var(--faint); background: transparent; opacity: .85; }
.m.me.sent { background: var(--ember); animation: solidify .6s ease; }
@keyframes solidify { from { background: transparent; border-color: var(--tangelo); } to { background: var(--ember); border-color: transparent; } }
.gh { font-size: 13px; color: var(--muted); font-weight: 650; margin-bottom: .45rem; }
.gh .spark { color: var(--tangelo-ink); }
.m.sent .gh { color: var(--tangelo-ink); }
.ga { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: .9rem; }
.ga small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.warnbar { border-inline-start: 4px solid #E5645C; background: color-mix(in srgb, #E5645C 15%, transparent); padding: .75rem 1rem; border-radius: 0 12px 12px 0; margin: 0 0 .2rem; font-size: 14px; }
.m mark { background: color-mix(in srgb, #E5645C 30%, transparent); color: inherit; border-bottom: 2px solid #E5645C; border-radius: 3px; padding: 0 .15em; }
.dbtn.warn { background: color-mix(in srgb, #E5645C 24%, var(--bg)); color: var(--ink); }
.dbtn:disabled { opacity: .6; cursor: default; }
.agents-split { align-items: start; }
.agents-split > :first-child { position: sticky; top: 6rem; }

/* Privacy: the one loud moment on the page */
.peak { --peak-bg: #2A1409; --peak-ink: #FBEFE6; --peak-muted: #E3C3AE; --peak-line: rgba(255, 220, 190, .22); background: var(--peak-bg); color: var(--peak-ink); padding-block: clamp(4.5rem, 11vw, 9rem); margin-top: clamp(4.5rem, 11vw, 9rem); }
:root[data-theme="light"] .peak { --peak-bg: #B53A08; --peak-ink: #FFFFFF; --peak-muted: #FFE9DC; --peak-line: rgba(255, 255, 255, .3); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .peak { --peak-bg: #B53A08; --peak-ink: #FFFFFF; --peak-muted: #FFE9DC; --peak-line: rgba(255, 255, 255, .3); } }
.peak .lede, .peak .demo-note { color: var(--peak-muted); }
.peak .link { color: var(--peak-ink); }
.peak :focus-visible { outline-color: var(--peak-ink); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.log { background: #120A06; color: #F5EFE9; border-radius: 18px; padding: 1.2rem 1.4rem 1.1rem; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 220, 190, .18); }
.log { height: 36.4rem; display: flex; flex-direction: column; }
.log ul { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; }
.log-act { flex: none; }
.log-note { flex: none; min-height: 3.2rem; }
.log li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) auto; gap: .2rem 1rem; padding: .85rem .2rem; border-bottom: 1px solid rgba(255, 235, 220, .12); align-items: baseline; }
.log li b { font: 750 1.05rem var(--display); overflow-wrap: anywhere; }
.log li span { color: #C9BBB0; }
.log li em { font-style: normal; color: #B5A89D; font-size: .92rem; text-align: right; }
  .log .log-note { margin: 1rem .2rem .2rem; color: #F5EFE9; }
  .log .log-note b { color: #FF9A5C; font-weight: 700; }
.log .demo-note { color: #B5A89D; margin: .5rem .2rem 0; font-size: .85rem; }
.js .log:not(.in) li, .js .log:not(.in) .log-note { opacity: 0; transform: translateY(8px); }
.log li,   .log .log-note { transition: opacity .5s ease, transform .5s ease; }
.log.in li:nth-child(1) { transition-delay: .1s; } .log.in li:nth-child(2) { transition-delay: .65s; } .log.in li:nth-child(3) { transition-delay: 1.2s; } .log.in li:nth-child(4) { transition-delay: 1.75s; } .log.in .end { transition-delay: 2.5s; }




/* ===== v4: a desktop with Tangelo on it, and live windows ===== */
.sec-head { text-align: center; max-width: 46rem; margin: 0 auto 2.8rem; }
.sec-head .lede { margin-inline: auto; }

.stage .glow { width: 118%; height: 118%; }
.desk { --px: 0; --py: 0; position: relative; isolation: isolate; border-radius: 24px; overflow: hidden; height: 47rem; padding: 3.2rem 1.5rem 6.8rem; display: flex; justify-content: center; align-items: flex-start; background: #130b10; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--lift); color: #fff; }
.wall { position: absolute; inset: -6%; z-index: -1; }
.wall i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.wall .w1 { width: 62%; height: 74%; left: -12%; top: -24%; background: radial-gradient(circle, #6f45c4 0%, rgba(111, 69, 196, 0) 66%); filter: blur(30px); opacity: .6; transform: translate(calc(var(--px) * -30px), calc(var(--py) * -20px)); }
.wall .w2 { width: 78%; height: 84%; right: -18%; bottom: -40%; background: radial-gradient(circle, #ff8a3d 0%, #d5460c 34%, rgba(213, 70, 12, 0) 70%); filter: blur(24px); opacity: .95; transform: translate(calc(var(--px) * -48px), calc(var(--py) * -30px)); }
.wall .w3 { width: 46%; height: 46%; left: 18%; bottom: -26%; background: radial-gradient(circle, #2f7bd6 0%, rgba(47, 123, 214, 0) 70%); filter: blur(26px); opacity: .45; transform: translate(calc(var(--px) * 36px), calc(var(--py) * -16px)); }
.wall .w4 { inset: 0; border-radius: 0; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.6px); background-size: 84px 84px; opacity: .1; transform: translate(calc(var(--px) * 12px), calc(var(--py) * 8px)); }
.menubar { position: absolute; inset: 0 0 auto 0; height: 1.9rem; display: flex; align-items: center; gap: 1.1rem; padding-inline: 1.1rem; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; color: rgba(255, 255, 255, .88); z-index: 4; }
.menubar b { font-weight: 700; color: #fff; }
.menubar .sp { margin-inline-start: auto; }
.desk-window { width: min(100%, 58rem); margin-top: .3rem; transform: perspective(1800px) rotateY(calc(var(--px) * 1.8deg)) rotateX(calc(var(--py) * -1.2deg)); transition: transform .25s ease-out; z-index: 2; }
.desk-window .demo { box-shadow: 0 50px 100px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.stage .demo { box-shadow: none; }
.desk .demo-note { color: inherit; }

.banner { position: absolute; z-index: 6; right: 1.6rem; top: 2.9rem; width: min(22.5rem, calc(100% - 2rem)); display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: .85rem; border-radius: 18px; background: rgba(34, 30, 28, .84); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7); color: #fff; font-size: 14px; }
.banner[hidden] { display: none; }
.banner img { width: 38px; height: 38px; border-radius: 9px; grid-row: span 2; }
.bn-text { display: grid; line-height: 1.3; min-width: 0; }
.bn-text b { font-weight: 700; }
.bn-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-text small { color: rgba(255, 255, 255, .6); font-size: 12px; margin-top: .15rem; }
.bn-act { grid-column: 2; display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.bn-act button { font: 600 12.5px var(--text); border: 0; border-radius: 8px; padding: .38rem .7rem; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.bn-act button:hover { background: rgba(255, 255, 255, .24); }
.banner.in { animation: bn-in .55s cubic-bezier(.2, .8, .2, 1); }
.banner.out { opacity: 0; transform: translateX(1.2rem); transition: opacity .3s ease, transform .3s ease; }
@keyframes bn-in { from { opacity: 0; transform: translateX(2rem) scale(.96); } to { opacity: 1; transform: none; } }

.dock { position: absolute; z-index: 5; bottom: .9rem; left: 50%; translate: -50% 0; display: flex; align-items: flex-end; gap: .7rem; padding: .55rem .8rem; border-radius: 24px; background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .22); }
.dk { position: relative; display: block; width: 3.3rem; height: 3.3rem; border-radius: 14px; flex: none; border: 0; padding: 0; background: none; cursor: default; transition: transform .22s cubic-bezier(.3, .8, .3, 1); transform-origin: 50% 100%; }
.dk:hover { transform: translateY(-.55rem) scale(1.42); z-index: 2; }
.dk:hover + .dk, .dk:has(+ .dk:hover) { transform: translateY(-.25rem) scale(1.18); }
.dk-a { background: linear-gradient(160deg, #6c7a89, #3b4451); } .dk-b { background: linear-gradient(160deg, #4f9bff, #2a55d8); } .dk-c { background: linear-gradient(160deg, #7ee08a, #2f9e44); } .dk-d { background: linear-gradient(160deg, #ffd26a, #e08a1a); } .dk-e { background: linear-gradient(160deg, #b9b9c4, #707080); }
.dk-app { cursor: pointer; } .dk-app img { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.dk-sep { width: 1px; align-self: stretch; margin-block: .35rem; background: rgba(255, 255, 255, .3); }
.badge { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem; border-radius: 999px; background: #ff453a; color: #fff; font: 700 12px/1.35rem var(--text); text-align: center; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.badge[data-n="0"] { display: none; }
.badge.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.5); } 100% { transform: none; } }
.dk .tip { position: absolute; bottom: calc(100% + .9rem); left: 50%; translate: -50% 0; background: rgba(30, 26, 24, .9); color: #fff; font: 600 12px var(--text); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dk:hover .tip { opacity: 1; }
.dk.hop { animation: hop .7s ease; }
@keyframes hop { 25% { transform: translateY(-1.1rem); } 55% { transform: translateY(0); } 75% { transform: translateY(-.5rem); } }

.d-search { display: flex; align-items: center; gap: .55rem; width: calc(100% - 1.2rem); margin: .1rem .6rem .5rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.d-search svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.d-search span { flex: 1; }
.d-search:hover { border-color: var(--faint); color: var(--ink); }
.pal { position: absolute; inset: 0; z-index: 8; display: flex; justify-content: center; align-items: flex-start; padding: 3.2rem 1rem 1rem; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pal[hidden] { display: none; }
.pal-box { width: min(34rem, 100%); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .75); overflow: hidden; animation: pal-in .18s ease-out; }
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.pal-in { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.pal-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.15rem var(--text); outline: 0; }
.pal-res { max-height: 19rem; overflow-y: auto; padding: .4rem .5rem .6rem; }
.pal-g { font: 700 12px var(--display); color: var(--muted); padding: .55rem .6rem .25rem; }
.pal-i { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pal-i[aria-selected="true"] { background: var(--ember); }
.pal-i .av { width: 1.9rem; height: 1.9rem; font-size: .7rem; flex: none; }
.pal-i b { font-weight: 600; } .pal-i small { color: var(--muted); margin-inline-start: auto; font-size: 12.5px; white-space: nowrap; }
.pal-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pal-i mark { background: none; color: var(--tangelo-ink); font-weight: 800; }
.pal-empty { color: var(--muted); padding: 1rem .8rem; font-size: 14px; }
.pal-foot { display: flex; gap: 1.2rem; padding: .6rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: var(--bg-sunk); }
.pal-foot kbd { margin-inline-end: .2rem; font-size: .8em; }

/* A Mac window, used by every live demo below the first screen */
.mac { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; text-align: left; font-size: 15px; line-height: 1.4; color: var(--ink); max-width: 62rem; margin-inline: auto; }
.mac-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mac-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); }
.mac-title { margin-inline-start: .8rem; font: 800 15px var(--display); color: var(--ink); }
.mac-sub { margin-inline-start: auto; }
.mac button { font-family: inherit; }
.ag-h { font: 700 13px var(--display); color: var(--muted); margin: .8rem .7rem .35rem; }
.ag-h small { font-weight: 500; color: var(--muted); margin-inline-start: .3rem; }

.layer { position: relative; margin: 0 auto 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 1.4rem; align-items: start; max-width: 84rem; }
.layer > .agwin { max-width: none; margin: 0; }
.agwin { max-width: 62rem; }
.ag-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 40rem; overflow: hidden; }
.ag-list { border-inline-end: 1px solid var(--line); padding: .5rem .6rem 1rem; display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; }
.ag-item { text-align: left; display: grid; gap: .1rem; padding: .7rem .8rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s ease; }
.ag-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ag-item[aria-pressed="true"] { background: var(--ember); }
.ag-item b { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.ag-item span { color: var(--tangelo-ink); font-size: 13px; }
.ag-item.gone { display: none; }
.ag-empty { color: var(--muted); font-size: 14px; padding: .6rem .8rem; }
.ag-did { list-style: none; margin: 0; padding: 0; }
.ag-did li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; padding: .55rem .8rem; border-radius: 10px; align-items: baseline; }
.ag-did li b { font-size: 14px; font-weight: 600; line-height: 1.3; grid-column: 1 / -1; }
.ag-did li span { color: var(--muted); font-size: 13px; }
.ag-did li.new { animation: did-in .5s ease; background: color-mix(in srgb, var(--tangelo) 10%, transparent); }
@keyframes did-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.undo { font: 700 12.5px var(--text); border: 0; background: transparent; color: var(--tangelo-ink); cursor: pointer; padding: .1rem .3rem; border-radius: 6px; text-decoration: underline; text-underline-offset: .2em; }
.undone b { text-decoration: line-through; color: var(--faint); }
.ag-detail { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; justify-content: safe center; min-width: 0; min-height: 0; overflow-y: auto; }
.ag-detail .m.me { align-self: stretch; max-width: none; }
.fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; margin: .5rem 0 .8rem; font-size: 14px; }
.fields dt { color: var(--muted); margin: 0; } .fields dd { margin: 0; }
.agwin.off .ag-body { opacity: .4; filter: grayscale(1); pointer-events: none; }
.agset { width: 100%; margin: 0; box-shadow: var(--lift); }
@media (max-width: 71rem) { .layer { grid-template-columns: 1fr; max-width: 62rem; } .agset { max-width: 24rem; margin-inline: auto 0; } }
.set-body { padding: .2rem 0 .4rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); font-size: 14px; }
.set-row small { display: block; color: var(--muted); font-size: 12.5px; }
.set-row.master b { font-weight: 700; }
.set-row .pip { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); margin-inline-end: .55rem; }
.set-note { color: var(--muted); font-size: 12.5px; margin: .6rem 1rem .5rem; }
.sw { width: 2.6rem; height: 1.5rem; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--ink) 22%, transparent); position: relative; cursor: pointer; flex: none; transition: background .2s ease; }
.sw::after { content: ""; position: absolute; top: .17rem; left: .17rem; width: 1.16rem; height: 1.16rem; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3, .8, .3, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sw[aria-checked="true"] { background: var(--tangelo); }
.sw[aria-checked="true"]::after { transform: translateX(1.1rem); }
.lines.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 3rem auto 0; max-width: 62rem; }
.lines.row3 li { max-width: none; }

.latwin { max-width: 62rem; }
.lat-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); height: 35rem; overflow: hidden; }
.lat-list { border-inline-end: 1px solid var(--line); padding: .5rem .6rem 1rem; min-height: 0; overflow-y: auto; }
.lrow { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border-radius: 10px; cursor: pointer; transition: opacity .3s ease, transform .3s ease, background .15s ease; }
.lrow:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lrow.on { background: var(--ember); }
.lrow.out { opacity: 0; transform: translateX(-22px); pointer-events: none; }
.lrow.gone { display: none; }
.lrow b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; } .lrow span:not(.av) { color: var(--muted); font-size: 13px; }
.lrow .av { width: 2.2rem; height: 2.2rem; flex: none; }
.sched { list-style: none; margin: 0; padding: 0 .3rem; font-size: 14px; }
.sched li { display: grid; gap: .1rem; padding: .55rem .5rem; border-radius: 10px; background: color-mix(in srgb, var(--tangelo) 9%, transparent); margin-bottom: .35rem; animation: did-in .5s ease; }
.sched li.empty { background: none; color: var(--muted); animation: none; }
.sched li span { color: var(--muted); font-size: 13px; }
.sched .cancel { justify-self: start; font: 700 12.5px var(--text); border: 0; background: none; color: var(--tangelo-ink); cursor: pointer; text-decoration: underline; padding: 0; }
.lat-card { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; min-height: 0; overflow-y: auto; }
.lat-tabs { margin: 0; }
.lat-tabs kbd { margin-inline-start: .35rem; font-size: .75em; }
.tcard { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.tcard h3 { margin: 0; font: 800 1.3rem var(--display); letter-spacing: -.02em; }
.tcard p { margin: 0; color: var(--muted); font-size: 14px; }
.presets { display: grid; gap: .2rem; }
.preset { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem; border-radius: 10px; cursor: pointer; font-size: 15px; transition: background .15s ease; }
.preset:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.preset.on { background: var(--ember); }
.preset span { color: var(--muted); }
.preset kbd { font-size: .75em; }
.custom { display: flex; gap: .6rem; align-items: center; padding: .3rem .9rem; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.custom input { font: 500 15px var(--text); color: var(--ink); background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; color-scheme: inherit; }
.dbtn.wide { width: 100%; padding: .85rem 1rem; font-size: 1rem; }

.subwin { max-width: 62rem; }
.sub-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 31rem; overflow: hidden; }
.sub-foot { height: 3.4rem; overflow: hidden; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; padding-inline: 1rem; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sub-foot small { overflow: hidden; text-overflow: ellipsis; }
.sub-foot span { overflow: hidden; text-overflow: ellipsis; }
.sub-list { border-inline-end: 1px solid var(--line); padding: .5rem .6rem 1rem; min-width: 0; min-height: 0; overflow-y: auto; }
.sub-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .4rem .4rem .8rem; }
.sub-n { font: 800 1.1rem var(--display); letter-spacing: -.01em; }
.sub-tabs { margin: 0; } .sub-tabs button { padding: .35rem .7rem; font-size: .8rem; }
.sub-rows { list-style: none; margin: 0; padding: 0; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; transition: opacity .3s ease, transform .3s ease, background .15s ease; }
.srow:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.srow.on { background: var(--ember); }
.srow.out { opacity: 0; transform: translateX(-22px); }
.srow.gone { display: none; }
.srow b { font-weight: 650; font-size: 14.5px; }
.srow span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 1; }
.srow em { grid-column: 2; grid-row: 1; font: 700 13px var(--display); font-style: normal; color: var(--muted); }
.srow .rd { display: block; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin-top: .25rem; overflow: hidden; }
.srow .rd u { display: block; height: 100%; background: var(--tangelo); border-radius: 2px; text-decoration: none; }
.w0 { width: 4%; } .w20 { width: 20%; } .w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; } .w100 { width: 100%; }
.sub-detail { padding: 1.4rem 1.5rem; min-width: 0; min-height: 0; overflow-y: auto; }
.sub-detail h3 { margin: 0; font: 850 1.6rem var(--display); letter-spacing: -.03em; }
.sd-meta { color: var(--muted); margin: .1rem 0 .8rem; font-size: 14px; overflow-wrap: anywhere; }
.sd-h { font: 700 13px var(--display); color: var(--muted); margin: 1rem 0 .2rem; }
.sub-detail p { margin: 0 0 .3rem; font-size: 14.5px; }
.sub-detail p.sd-h { margin-top: 1rem; }
.radios { display: grid; gap: .1rem; font-size: 14.5px; }
.radios label { display: flex; gap: .55rem; align-items: center; padding: .25rem 0; cursor: pointer; }
.radios input { accent-color: var(--tangelo); width: 1rem; height: 1rem; }
.sub-detail .ga { margin-top: 1.1rem; }
.sub-empty { padding: 2.4rem 1rem; text-align: center; color: var(--muted); }

.log-top { padding: .1rem .2rem .7rem; } .log-sum { font: 800 1.05rem var(--display); }
.log li { transition: background .6s ease; }
.log li.flash { animation: logflash 1.4s ease; }
.log li.fresh { animation: did-in .5s ease; }
@keyframes logflash { 0% { background: rgba(255, 154, 92, .35); } 100% { background: transparent; } }
.log li em u { text-decoration: none; font-variant-numeric: tabular-nums; }
.log-act { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem .2rem 0; }
.log-act button { font: 650 13px var(--text); color: #F5EFE9; border: 1px solid rgba(255, 235, 220, .25); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; transition: background .15s ease; }
.log-act button:hover { background: rgba(255, 255, 255, .16); }
.log-note { margin: 1rem .2rem .2rem; color: #F5EFE9; font-size: .95rem; }
.log-note b { color: #FF9A5C; font-weight: 700; }

/* Windows rise as they arrive (transform only, so nothing is ever left invisible) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes arrive { from { transform: perspective(1800px) rotateX(7deg) translateY(2.5rem) scale(.96); } to { transform: none; } }
    .layer > .mac, .latwin, .subwin { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes arrive-set { from { transform: translateY(3.5rem) rotate(1.5deg); } to { transform: none; } }
    .agset { animation: arrive-set linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes rise-in { from { transform: translateY(1.6rem); } to { transform: none; } }
    .sec-head { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc-row.new, .arow.new, .fruit-acc .seg.new, .ag-item.hit, .banner.in, .banner.out, .dk, .dk.hop, .badge.bump, .pal-box, .desk-window, .ag-did li.new, .sched li, .log li.flash, .log li.fresh, .sw::after { animation: none !important; transition: none !important; }
  .wall i, .desk-window { transform: none !important; }
}


/* ===== v5: accounts and the built-in MCP server ===== */
[data-acct="gmail"] { --c: #2F9E44; } [data-acct="icloud"] { --c: #1C7ED6; } [data-acct="zoho"] { --c: #9C36B5; }
[data-acct="fastmail"] { --c: #D6336C; } [data-acct="yahoo"] { --c: #0C8599; } [data-acct="imap"] { --c: #8A9BAD; }
.accwin, .mcpwin { max-width: 62rem; }
.acc-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 32rem; overflow: hidden; }
.acc-left { border-inline-end: 1px solid var(--line); padding: .5rem .8rem 1rem; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.acc-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .5rem; border-radius: 10px; transition: opacity .3s ease, transform .3s ease; }
.acc-row .pip { width: .75rem; height: .75rem; border-radius: 50%; background: var(--c); flex: none; }
.acc-row span { flex: 1; display: grid; line-height: 1.25; } .acc-row small { color: var(--muted); font-size: 12.5px; }
.acc-row.off { opacity: .55; }
.acc-row.new { animation: did-in .6s ease; background: color-mix(in srgb, var(--tangelo) 10%, transparent); }
.adds { display: flex; flex-wrap: wrap; gap: .45rem; padding-inline: .5rem; }
.add { font: 700 13px var(--text); border: 1px dashed var(--faint); background: transparent; color: var(--ink); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.add:hover { background: var(--ember); transform: translateY(-1px); }
.add.later { cursor: default; color: var(--muted); border-style: solid; border-color: var(--line); }
.add.later:hover { background: transparent; transform: none; }
.add[hidden] { display: inline-block; visibility: hidden; }
.acc-note { margin: auto 0 0; padding: .8rem .5rem 0; color: var(--muted); font-size: 13.5px; min-height: 6.2rem; }
.acc-note b { color: var(--ink); }
.acc-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.acc-top { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); flex: none; height: 9.4rem; }
.acc-top .fruit { width: 7.4rem; height: 7.4rem; flex: none; } .acc-top div { display: grid; gap: .15rem; } .acc-n { font: 850 1.5rem var(--display); letter-spacing: -.02em; } .acc-top small { color: var(--muted); font-size: 13.5px; }
.fruit-acc .seg { fill: var(--c); opacity: 1; transition: opacity .35s ease; }
.fruit-acc .seg.off { opacity: .15; }
.fruit-acc .seg.new { animation: pulse .9s ease; transform-box: fill-box; transform-origin: 50% 50%; }
.acc-list { flex: 1; min-height: 0; overflow-y: auto; padding: .4rem .6rem .8rem; }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; padding: .6rem .5rem; border-radius: 10px; position: relative; transition: background .15s ease; }
.arow:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.arow .acct { position: absolute; right: .6rem; bottom: .7rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); }
.arow .r2 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow.new { animation: did-in .6s ease; background: color-mix(in srgb, var(--tangelo) 10%, transparent); }

.layer-mcp { margin-bottom: 1.8rem; }
.mcp-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); height: 34rem; overflow: hidden; }
.mcp-setup { padding: .5rem 1.2rem 1rem; border-inline-end: 1px solid var(--line); min-height: 0; overflow-y: auto; }
.mcp-p { margin: 0 0 .8rem; font-size: 14.5px; color: var(--muted); } .mcp-p.small { font-size: 13px; margin-top: .8rem; overflow-wrap: anywhere; }
.mcp-tabs { margin: 0 0 .8rem; }
.mcp-code { margin: 0; padding: .9rem 1rem; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.55 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow-x: auto; user-select: all; white-space: pre; min-height: 7.2rem; }
.mcp-code[hidden] { display: none; }
.mcp-term { display: flex; flex-direction: column; background: #0B0807; color: #EDE3DA; min-width: 0; min-height: 0; }
.term-bar { display: flex; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid rgba(255, 235, 220, .12); font-size: 13px; color: #A99D93; flex: none; } .term-bar b { color: #FF9A5C; }
.term { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem 1rem; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.term p { margin: 0 0 .5rem; overflow-wrap: anywhere; } .t-hint { color: #A99D93; }
.t-you { color: #fff; } .t-you::before { content: "> "; color: #FF9A5C; }
.t-call { color: #8FC7FF; } .t-call::before { content: "tool  "; color: #6E7F92; }
.t-res { color: #B9AEA4; padding-inline-start: 1.2rem; }
.t-say { color: #EDE3DA; } .t-wait { color: #FFB07A; font-weight: 700; }
.term-act { flex: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: .8rem 1rem; border-top: 1px solid rgba(255, 235, 220, .12); }
.term-act button { font: 650 12.5px var(--text); color: #EDE3DA; border: 1px solid rgba(255, 235, 220, .25); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.term-act button:hover { background: rgba(255, 255, 255, .16); } .term-act button:disabled { opacity: .4; cursor: default; }
.mcp-note { margin: 0 auto 2.4rem; max-width: 62rem; }
.ag-item.hit { animation: did-in .6s ease; }


/* ===== v6: each section its own shape ===== */
.sec-left { max-width: 40rem; margin-bottom: 2.6rem; }
.sec-left .h2 { text-align: left; }

/* Accounts: the fruit large, accounts as chips around it */
.acc6-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.acc6-copy .h2 { text-align: left; } .acc6-copy .lede { margin: 0 0 1.6rem; }
.acc6-copy .adds { padding: 0; margin-bottom: 1.4rem; }
.acc6-copy .acc-note { margin: 0; padding: 0; height: 8rem; overflow: hidden; }
.acc6-stage { position: relative; height: 37rem; }
.acc-core { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 17rem; display: grid; justify-items: center; text-align: center; gap: .15rem; z-index: 1; }
.acc-core .fruit { width: 14rem; height: 14rem; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--tangelo) 45%, transparent)); }
.acc-core .acc-n { font: 850 1.6rem var(--display); letter-spacing: -.02em; margin-top: .4rem; } .acc-core small { color: var(--muted); }
.acct-chip { position: absolute; display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: center; padding: .65rem 1rem .65rem .85rem; width: 10.5rem; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); cursor: pointer; text-align: left; transition: transform .2s ease, opacity .3s ease, border-color .2s ease; font: inherit; }
.acct-chip:hover { transform: translateY(-3px); border-color: var(--c, var(--tangelo)); }
.acct-chip .pip { grid-row: span 2; width: .85rem; height: .85rem; border-radius: 50%; background: var(--c); } .acct-chip b { font: 800 .98rem var(--display); } .acct-chip small { color: var(--muted); font-size: 12.5px; }
.acct-chip[aria-pressed="false"] { opacity: .45; } .acct-chip.new { animation: did-in .6s ease; }
.c0 { left: 0; top: 2%; } .c1 { right: 0; top: 2%; } .c2 { left: 0; top: 26%; } .c3 { right: 0; top: 26%; } .c4 { left: 0; top: 50%; } .c5 { right: 0; top: 50%; }
.acc6-stage .acc-list { position: absolute; left: 0; right: 0; bottom: 0; height: 12.8rem; overflow: hidden; padding: 0; border-top: 1px solid var(--line); background: linear-gradient(var(--bg), transparent 30%); }
.acc6-stage .arow { padding: .55rem .4rem; }

/* Agents: the contrast at a glance */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 62rem; margin: 0 auto 2.2rem; }
.pair .m.me { max-width: none; align-self: stretch; transition: transform .2s ease; } .pair .m.me:hover { transform: translateY(-3px); }
.pair .dbtn { cursor: default; display: inline-block; }
.pair .warnbar { margin: 0 0 .7rem; }
.pair-a .m.me, .pair-b .m.me { min-height: 11.5rem; }

/* Small things */
#small .h2 { text-align: left; }
.small-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.6rem; margin-top: 2.2rem; align-items: stretch; }
.invite { border: 1px solid var(--line); background: var(--bg-raised); border-radius: 22px; padding: 1.6rem; height: 28.5rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .25s ease; }
.invite:hover { transform: translateY(-4px) rotate(-.4deg); }
.inv-top { display: flex; gap: 1rem; align-items: flex-start; } .inv-top h3 { margin: 0; font: 850 1.35rem/1.15 var(--display); letter-spacing: -.02em; } .inv-when { margin: .3rem 0 0; color: var(--muted); }
.leaf { flex: none; width: 4.2rem; border-radius: 12px; overflow: hidden; text-align: center; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.leaf b { display: block; background: var(--tangelo); color: var(--on-tangelo); font: 800 .7rem var(--display); padding: .2rem 0; text-transform: none; } .leaf span { display: block; font: 850 1.9rem/1.5 var(--display); }
.inv-meta { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; display: grid; gap: .3rem; }
.inv-act { display: flex; gap: .5rem; margin-top: auto; } .inv-act button { font: 750 .95rem var(--display); border: 0; border-radius: 999px; padding: .65rem 1.1rem; background: color-mix(in srgb, var(--ink) 11%, transparent); color: var(--ink); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.inv-act button:hover { background: color-mix(in srgb, var(--ink) 18%, transparent); transform: translateY(-2px); } .inv-act button[aria-pressed="true"] { background: var(--tangelo); color: var(--on-tangelo); }
.inv-say { margin: 0; flex: none; height: 4.6rem; overflow: hidden; color: var(--muted); font-size: 14px; }
.issue { height: 28.5rem; border-radius: 22px; background: #26211F; border: 1px solid var(--line); padding: 1rem 1.2rem 0; overflow: hidden; display: flex; flex-direction: column; gap: .8rem; color: #EDE3DA; }
.iss-bar { display: flex; align-items: center; gap: .3rem .8rem; flex-wrap: wrap; font-size: 13px; height: 4.4rem; align-content: flex-start; flex: none; overflow: hidden; } .iss-bar > span:first-child { font-weight: 800; } .iss-img { color: #B5A89D; margin-inline-end: auto; }
.iss-btn button { font: 650 12.5px var(--text); border: 0; background: rgba(255, 255, 255, .1); color: #EDE3DA; padding: .35rem .7rem; border-radius: 8px; cursor: pointer; margin-inline-start: .3rem; } .iss-btn button:hover { background: rgba(255, 255, 255, .2); }
.sheet { background: #fff; color: #1d1a18; font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; border-radius: 12px 12px 0 0; padding: 1.4rem 1.8rem; flex: 1; overflow: hidden; transform: translateY(0); transition: transform .3s ease; }
.issue:hover .sheet { transform: translateY(-4px); }
.sheet .eyebrow { font: 600 .72rem var(--text); letter-spacing: .1em; text-transform: uppercase; color: #9a6a3a; margin: 0 0 .4rem; } .sheet h3 { font: 700 1.9rem/1.1 Georgia, serif; margin: 0 0 .8rem; letter-spacing: -.01em; }
.photo { height: 6.4rem; border-radius: 6px; margin-bottom: .8rem; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #e8e2da 0 10px, #efeae3 10px 20px); color: #7b7068; font: italic .85rem Georgia, serif; transition: background .4s ease; }
.photo.on { background: linear-gradient(180deg, #cfd8de 0%, #e9eef0 55%, #f2f4f3 100%); } .sheet p { margin: 0; line-height: 1.55; font-size: 1.02rem; }

/* Later: three small cards, each one idea */
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.mini { height: 34rem; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-raised); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; overflow: hidden; transition: transform .25s ease, border-color .2s ease; }
.mini:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tangelo) 55%, var(--line)); }
.mini h3 { margin: 0; font: 850 1.35rem var(--display); letter-spacing: -.02em; } .mini-p { margin: 0; color: var(--muted); font-size: 14.5px; min-height: 4.4rem; }
.mini-stage { display: flex; flex-direction: column; gap: .8rem; height: 15.2rem; }
.mrows { position: relative; height: 9.2rem; display: flex; flex-direction: column; gap: .3rem; }
.mrow { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border-radius: 12px; height: 2.9rem; transition: opacity .4s ease, transform .4s ease, background .4s ease; }
.mrow .av { width: 2rem; height: 2rem; font-size: .68rem; flex: none; } .mrow b { display: block; font-size: 14px; line-height: 1.2; } .mrow small { color: var(--muted); font-size: 12.5px; }
.mrow.lead { background: var(--ember); } .mrow.out { opacity: 0; transform: translateX(-24px); } .mrow.flash { animation: did-in .6s ease; background: color-mix(in srgb, var(--tangelo) 22%, transparent); }
.mini-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.mini-presets button { font: 650 13px var(--text); border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.mini-presets button:hover { background: var(--ember); } .mini-presets button[aria-pressed="true"] { background: var(--tangelo); color: var(--on-tangelo); border-color: transparent; }
.mini-say { margin: auto 0 0; height: 8rem; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; }
.composer { display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--bg-sunk); border: 1px solid var(--line); font-size: 14px; } .composer span { color: var(--muted); }
.mini-presets.seg3 { margin-top: .2rem; }

/* Subscriptions: one big visual moment, on its own paper */
.paper { --pbg: #F2ECE3; --pink: #1F1A17; --pmut: #5C524B; --pline: rgba(40, 20, 8, .16); background: var(--pbg); color: var(--pink); margin-top: clamp(4.5rem, 11vw, 9rem); padding-block: clamp(4rem, 9vw, 7rem); }
:root[data-theme="light"] .paper { --pbg: #17120F; --pink: #F5EFE9; --pmut: #BDB1A7; --pline: rgba(255, 235, 220, .2); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .paper { --pbg: #17120F; --pink: #F5EFE9; --pmut: #BDB1A7; --pline: rgba(255, 235, 220, .2); } }
.subs6 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.paper .h2 { text-align: left; } .paper .lede { color: var(--pmut); }
.bignum { margin: 1.6rem 0 1rem; } .bignum b { display: block; font: 900 clamp(7rem, 17vw, 13rem)/.8 var(--display); letter-spacing: -.06em; color: var(--tangelo); font-variant-numeric: tabular-nums; }
.paper .bignum b { color: #D9480A; } :root[data-theme="light"] .paper .bignum b { color: #FF7A30; } @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .paper .bignum b { color: #FF7A30; } }
.bignum span { display: block; margin-top: .8rem; font: 700 1.1rem var(--display); color: var(--pmut); }
.subs6-say { color: var(--pink); height: 7.4rem; overflow: hidden; font-weight: 600; margin: 0; }
.subs6-bars { display: flex; flex-direction: column; gap: .5rem; }
.sbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) 2rem auto; align-items: center; gap: 1rem; height: 3.7rem; padding: 0 1.1rem; border-radius: 16px; border: 1px solid var(--pline); background: transparent; color: var(--pink); font: inherit; cursor: pointer; text-align: left; transition: opacity .35s ease, transform .35s ease, background .15s ease, border-color .15s ease; }
.sbar:hover, .sbar:focus-visible { background: color-mix(in srgb, var(--pink) 7%, transparent); border-color: var(--pink); }
.sn { font: 800 1.08rem var(--display); display: grid; line-height: 1.15; overflow: hidden; } .sn small { font: 500 .78rem var(--text); color: var(--pmut); }
.rbar { display: block; height: .7rem; border-radius: 99px; background: color-mix(in srgb, var(--pink) 14%, transparent); overflow: hidden; } .rbar u { display: block; height: 100%; background: #D9480A; text-decoration: none; border-radius: 99px; }
:root[data-theme="light"] .rbar u { background: #FF7A30; } @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .rbar u { background: #FF7A30; } }
.sc { font: 800 1rem var(--display); text-align: right; color: var(--pmut); } .sv { font: 700 .8rem var(--text); color: var(--pmut); width: 6.2rem; text-align: right; opacity: 0; transition: opacity .15s ease; } .sbar:hover .sv, .sbar:focus-visible .sv { opacity: 1; }
.sbar.out { opacity: 0; transform: translateX(-30px); pointer-events: none; }
.sub-key { margin: .6rem 0 0; color: var(--pmut); font-size: 13.5px; }
@media (hover: none) { .sv { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .acct-chip, .invite, .issue .sheet, .mini, .mrow, .sbar, .pair .m.me { transition: none !important; } .acct-chip.new, .mrow.flash { animation: none !important; } }


/* ===== v7 ===== */
.pair-card { min-width: 0; } .pair-card.hit { animation: did-in .8s ease; }
.pair-card .pc { height: 17rem; } .pair .m.me { height: 100%; display: flex; flex-direction: column; } .pair .m.me .ga { margin-top: auto; }
.pair .pc .warnbar + .m.me { height: calc(100% - 4.4rem); }
.pair .dbtn { cursor: pointer; } .pair .m.me.sent { align-self: stretch; }
.pair-card:focus-visible { outline-offset: 6px; }
@media (min-width: 52.01rem) { .acc6-stage[data-n="3"] .c2 { left: 50%; right: auto; translate: -50% 0; top: 51%; }
.acc6-stage[data-n="3"] .c0, .acc6-stage[data-n="3"] .c1 { top: 12%; } }
.inv-cal { margin: 0; } .inv-cal button { font: 700 .9rem var(--text); border: 1px solid var(--line); background: transparent; color: var(--ink); padding: .45rem .8rem; border-radius: 10px; cursor: pointer; } .inv-cal button:hover { background: var(--ember); }
.readbtn { display: inline-block; background: #1d1a18; color: #fff; font: 600 .85rem var(--text); padding: .55rem 1rem; border-radius: 6px; } .sheet .btnrow { margin: 0 0 .8rem; }
.agents-live { margin-block: 2.5rem 1rem; } .agents-live .lede { margin-bottom: 1.8rem; }
/* readable small text */
.mcp-p { font-size: 15.5px; } .mcp-p.small { font-size: 14.5px; } .mcp-code { font-size: 14px; } .term { font-size: 14px; } .term-act button { font-size: 14px; } .term-bar { font-size: 14px; }
.demo .r2 { font-size: 15px; } .demo .r3 { font-size: 14px; } .demo .r1 time { font-size: 13px; } .d-read .hint, .d-read .from { font-size: 14px; } .demo-keys { font-size: 14px; } .demo .d-label { font-size: 14px; }
.ag-h { font-size: 14px; }


#agwin:focus { outline: none; } .ag-did li[hidden] { display: none; }


/* ===== v9 ===== */
.codewrap { position: relative; } .codewrap[hidden] { display: none; }
.mcp-code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow-x: visible; padding-right: 5.2rem; }
.copy { position: absolute; top: .55rem; right: .55rem; font: 700 12.5px var(--text); border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); border-radius: 8px; padding: .35rem .65rem; cursor: pointer; max-width: 9rem; }
.copy:hover { background: var(--ember); } .copy.done { background: var(--tangelo); color: var(--on-tangelo); border-color: transparent; }
.minidots { display: none; }
.fruit-big.whole { animation: wholeglow 2.4s ease-out; }
@keyframes wholeglow { 0% { filter: drop-shadow(0 0 0 transparent); transform: scale(.94); } 35% { filter: drop-shadow(0 0 46px var(--tangelo)); transform: scale(1.06); } 100% { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--tangelo) 70%, transparent)); transform: none; } }
@media (prefers-reduced-motion: reduce) { .fruit-big.whole { animation: none; } }


/* v10: the empty inbox, and the Dock never under the window */
.d-list { position: relative; }
.d-list.is-empty .d-label { display: none; }
.d-empty { position: absolute; left: 0; right: 0; top: 7rem; bottom: 5.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; color: var(--muted); font-size: 15px; pointer-events: none; }
.d-empty[hidden] { display: none; }
.d-empty .de-title, .d-empty .de-greet, .d-empty .de-again { display: none; }
.d-empty .de-list { font: 750 1.05rem var(--display); color: var(--ink); }
.desk { height: 50rem; }

/* Phones and small windows: last, so it wins over the component rules above. */
@media (max-width: 52rem) {
  .bar .wrap { flex-wrap: nowrap; gap: .5rem .8rem; }
  .brand { font-size: 1.05rem; gap: .5rem; }
  .brand img, .brand .logo-bg { width: 30px; height: 30px; }
  .nav { margin-inline-start: auto; gap: .2rem .85rem; flex-wrap: nowrap; }
  .nav a { font-size: .9rem; white-space: nowrap; }
  .hero-top { grid-template-columns: 1fr; }
  .hero .display { font-size: clamp(2.9rem, 13.5vw, 4.6rem); }
  .demo-body { grid-template-columns: 1fr; height: 40rem; }
  .d-list { border-inline-end: 0; }
  .demo:not(.reading) .d-read { display: none; }
  .demo.reading .d-list { display: none; }
  .demo.reading .d-read { justify-content: flex-start; }
  .d-list { overflow-y: auto; }
  .d-head svg { width: 3.6rem; height: 3.6rem; }
  .d-empty { pointer-events: auto; } .d-empty .de-title { display: block; font: 850 1.5rem var(--display); color: var(--ink); } .d-empty .de-greet { display: block; max-width: 18rem; } .d-empty .de-again { display: inline-block; pointer-events: auto; margin-top: .6rem; color: var(--ink); }
  .toast { flex-basis: 100%; text-align: left; margin-inline-start: 0; }
  .agents-split, .privacy-grid { grid-template-columns: 1fr; }
  .agents-split > :first-child { position: static; }
    .lamp .glow { width: 230%; }
  .desk { height: auto; padding: .7rem .6rem 1rem; border-radius: 18px; }
  .menubar, .dock { display: none; }
  .desk-window { transform: none !important; margin-top: 0; }
  .banner { top: .5rem; left: .5rem; right: .5rem; width: auto; }
  .ag-body { grid-template-columns: 1fr; height: auto; grid-template-rows: none; overflow: visible; }
  .ag-list { overflow: visible; min-height: 42rem; }
  .ag-did { height: 21.5rem; overflow: hidden; }
  .ag-detail { overflow: visible; min-height: 44rem; justify-content: flex-start; }
  .lat-body { grid-template-columns: 1fr; height: 66rem; grid-template-rows: 16rem minmax(0, 1fr); }
  .sub-body { grid-template-columns: 1fr; height: 46rem; grid-template-rows: 17rem minmax(0, 1fr); }
  .log { height: 53rem; }
  .acc6-grid, .small-grid, .subs6, .pair { grid-template-columns: 1fr; }
  .minis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; margin-inline: calc(-1 * var(--pad)); padding: .2rem var(--pad) .6rem; scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
  .minis .mini { flex: 0 0 88%; scroll-snap-align: center; }
  .minis .mini { height: 37rem; } .minis .mini-say { height: 10.5rem; }
  .minis:focus-visible { outline-offset: -3px; }
  .minidots { display: flex; justify-content: center; gap: .6rem; margin-top: .6rem; }
  .minidots button { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 0; background: transparent; position: relative; cursor: pointer; padding: 0; }
  .minidots button::after { content: ""; position: absolute; inset: .5rem; border-radius: 50%; background: color-mix(in srgb, var(--ink) 30%, transparent); }
  .minidots button[aria-current="true"]::after { background: var(--tangelo); inset: .35rem; }
  .sbar:nth-of-type(n+6) { display: none; }
  .acc6-stage { height: 56rem; display: grid; grid-template-rows: 21rem 15rem 12.8rem; gap: 1rem; align-content: start; }
  .acc6-stage .acc-rows { height: 15rem; overflow: hidden; align-content: flex-start; }
  .acc-core { position: static; translate: none; width: auto; height: 21rem; }
  .acc6-stage .acc-rows { display: flex; flex-wrap: wrap; gap: .5rem; }
  .acct-chip { position: static; width: auto; flex: 1 1 9rem; }
  .acc6-stage .acc-list { position: static; height: 12.8rem; }
  .invite { height: 31rem; } .issue { height: 40rem; } .mini { height: 34rem; }
  .sbar { grid-template-columns: minmax(0, 1fr) 6rem 1.5rem; height: 4.2rem; } .sbar .sv { display: none; }
  .bignum b { font-size: 7rem; }
  .acc-body { grid-template-columns: 1fr; height: 52rem; grid-template-rows: 22rem minmax(0, 1fr); }
  .acc-left { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .mcp-body { grid-template-columns: 1fr; height: 56rem; grid-template-rows: 28rem minmax(0, 1fr); }
  .mcp-setup { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .ag-list, .lat-list, .sub-list { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .agset { max-width: none; margin: 0; }
  .layer { margin-bottom: 1rem; }
  .lines.row3 { grid-template-columns: 1fr; }
  .sub-detail, .ag-detail { padding: 1.1rem; }
  .pal { padding-top: 1rem; }
  .log li { grid-template-columns: minmax(0, 1fr) auto; }
  .log li span { grid-column: 1; grid-row: 2; }
  .log li em { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
@media (max-width: 26rem) {
  .brand { font-size: 0; gap: 0; }
  .brand img, .brand .logo-bg { width: 32px; height: 32px; }
}
