/* The sections below the first screen. No generic cards: every section is a living picture on the dot paper (viz.js) */
.sec { scroll-margin-top: 40px; position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(90px, 13vh, 150px) var(--side) 0; }
.sec-head { max-width: 860px; margin-bottom: clamp(32px, 5vh, 56px); }
.kicker { margin: 0 0 14px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
h2 { margin: 0; font: 700 clamp(30px, 4vw, 58px)/1.04 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
h3 { margin: 0; font: 700 18px/1.2 var(--display); letter-spacing: -0.02em; }
.sec-lead { margin: 18px 0 0; max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.pick-label { margin: 0 0 12px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.2em; margin-left: 2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.swap { animation: swap .45s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* A small agent: a live character drawn by characters.js; its size must be set here (see world.css) */
canvas.mini { width: 64px; height: 64px; display: block; }
canvas.mini.huge { width: min(260px, 60vw); height: min(260px, 60vw); }

/* Engineering details, folded */
.deep { margin-top: 28px; border-top: 1px dashed var(--faint); }
.deep summary { list-style: none; cursor: pointer; padding: 16px 0; font: 500 13px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.deep summary::-webkit-details-marker { display: none; }
.deep summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sheet); transition: transform .3s; }
.deep[open] summary::before { transform: rotate(45deg); }
.deep-body { padding: 0 0 8px 32px; max-width: 900px; color: var(--muted); font-size: 15px; }
.deep-body p { margin: 0 0 10px; }

/* 01 The demo: requests on the left; a detailed Mac and Sena's phone app on the right */
.demo { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.asks { list-style: none; margin: 0; padding: 0; }
.asks li {
  display: flex; gap: 16px; align-items: baseline; padding: 15px 0; cursor: pointer; border-bottom: 1px solid var(--line);
  font: 500 clamp(16px, 1.3vw, 20px)/1.25 var(--display); letter-spacing: -0.02em; color: var(--faint); transition: color .3s, padding .4s var(--ease-out);
}
.asks li b { font: 500 11px var(--mono); color: var(--faint); }
.asks li:hover { color: var(--muted); }
.asks li.on { color: var(--ink); padding-left: 10px; }
.asks li.on b { color: var(--ink); }
.screens { position: relative; padding: 0 130px 110px 0; }   /* room on the right, so the phone only touches the Mac's edge */
.mac { position: relative; padding: 12px 12px 18px; border-radius: 22px 22px 10px 10px; background: #1b1a19; box-shadow: 0 50px 90px -50px #3a2d1699, inset 0 0 0 1px #ffffff12; }
.mac::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -14px; height: 14px; border-radius: 0 0 16px 16px; background: linear-gradient(#cfc8bb, #a9a194); }
.mac-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; font-family: var(--sans);
  background: radial-gradient(120% 90% at 20% 10%, #f2b93b55, transparent 55%), radial-gradient(90% 80% at 90% 90%, #7A5CE677, transparent 60%), linear-gradient(140deg, #2b2a4a, #1a2236 55%, #11161f); }
.menubar { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 10px; background: #11121a99; backdrop-filter: blur(12px); color: #fffcf6e6; font-size: 11px; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 12px; }
.mb-left span { color: #fffcf6b0; }
.mb-leaf { width: 13px; height: 12px; fill: var(--leaf); }
.mb-right svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mb-right circle { fill: currentColor; stroke: none; }
.mb-bat { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid #fffcf6b0; padding: 1px; } .mb-bat i { display: block; width: 70%; height: 100%; border-radius: 1px; background: #fffcf6e6; }
@keyframes spin { to { transform: rotate(360deg); } }
.window { position: absolute; z-index: 2; left: 6%; top: 12%; width: 76%; height: 72%; border-radius: 10px; overflow: hidden; background: #fbf8f2; box-shadow: 0 24px 50px -20px #000c; transform: translateY(8px) scale(.98); opacity: 0; transition: opacity .35s, transform .45s var(--ease-out); display: flex; flex-direction: column; }
.window.show { opacity: 1; transform: none; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 24px; padding: 0 10px; background: #ece6da; font-size: 10.5px; color: #5d574d; flex: none; }
.tl { display: flex; gap: 5px; } .tl i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .tl i:nth-child(2) { background: #febc2e; } .tl i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; margin-right: 37px; font-weight: 500; }
.win-body { flex: 1; overflow: hidden; font-size: 11px; color: var(--ink); }
.banner { position: absolute; z-index: 6; right: 10px; top: 34px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; width: 230px; border-radius: 12px; background: #fbf8f2ee; box-shadow: 0 12px 30px -10px #0009; font-size: 11px; transform: translateX(120%); transition: transform .5s var(--ease-out); }
.banner.on { transform: none; }
.banner svg { width: 22px; height: 20px; fill: var(--leaf); flex: none; }
.banner span { display: grid; } .banner em { font-style: normal; color: var(--muted); }
.dock { position: absolute; z-index: 3; left: 50%; bottom: 5px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 13px; background: #ffffff2e; backdrop-filter: blur(16px) saturate(1.4); border: 1px solid #ffffff26; box-shadow: 0 8px 20px -10px #0008; }
.dock i { position: relative; width: 25px; height: 25px; display: block; filter: drop-shadow(0 1px 1.5px #0006); transition: transform .25s var(--ease-out); }
.dock i:hover { transform: translateY(-4px) scale(1.15); }
.dock i svg { width: 100%; height: 100%; display: block; }
.dock-sep { width: 1px; height: 22px; background: #ffffff40; margin: 0 2px; }
.d-sena::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #fff; }
/* the apps inside the window: drawn like the real ones, small */
.window.bare .win-bar { display: none; }
.win-body { position: relative; }
/* a Chrome-like browser */
.cr { display: flex; flex-direction: column; height: 100%; background: #fff; }
.cr-tabs { display: flex; align-items: flex-end; gap: 2px; height: 26px; padding: 0 8px 0 58px; background: #dfe3e8; position: relative; }
.cr-tabs::before { content: ""; position: absolute; left: 10px; top: 9px; width: 40px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, #ff5f57 4.2px, transparent 4.6px), radial-gradient(circle at 18.5px 4.5px, #febc2e 4.2px, transparent 4.6px), radial-gradient(circle at 32.5px 4.5px, #28c840 4.2px, transparent 4.6px); }
.cr-tabs span { display: flex; align-items: center; gap: 5px; height: 21px; max-width: 150px; padding: 0 8px; border-radius: 7px 7px 0 0; font-size: 9px; color: #444; white-space: nowrap; overflow: hidden; }
.cr-tabs span.on { background: #fff; color: #111; }
.cr-tabs span b { margin-left: auto; font-weight: 400; color: #888; }
.cr-tabs em { font-style: normal; color: #666; padding: 0 6px 4px; }
.fav { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.cr-bar { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-bottom: 1px solid #e3e3e3; }
.cr-bar .nav { font-size: 11px; color: #777; letter-spacing: 4px; }
.omni { flex: 1; display: flex; align-items: center; gap: 6px; height: 18px; padding: 0 10px; border-radius: 999px; background: #f1f3f4; font: 500 9px var(--sans); color: #333; }
.lock { width: 7px; height: 8px; border: 1.4px solid #5f6368; border-radius: 2px; position: relative; } .lock::before { content: ""; position: absolute; left: 0.5px; top: -4px; width: 3px; height: 3px; border: 1.4px solid #5f6368; border-bottom: 0; border-radius: 3px 3px 0 0; }
.star { margin-left: auto; color: #888; }
.ava { width: 16px; height: 16px; border-radius: 50%; background: #7A5CE6; color: #fff; font: 600 8px/16px var(--sans); text-align: center; }
.sf { flex: 1; padding: 8px 10px; overflow: hidden; background: #f7f8fb; }
.sf-head { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; font-size: 9px; }
.sf-head b { font: 800 12px var(--display); color: #1F5BD8; margin-right: 6px; }
.sf-head span { padding: 4px 7px; border-radius: 6px; background: #fff; border: 1px solid #e3e6ee; }
.sf-head u { text-decoration: none; margin-left: auto; padding: 4px 10px; border-radius: 6px; background: #ff7a29; color: #fff; font-weight: 600; }
.sf-chips { display: flex; gap: 4px; margin-bottom: 7px; } .sf-chips span { padding: 2px 8px; border-radius: 999px; border: 1px solid #d9dde6; font-size: 8.5px; color: #555; } .sf-chips span.on { background: #1F5BD8; border-color: #1F5BD8; color: #fff; }
.sf-list { display: grid; gap: 4px; }
.fl { display: grid; grid-template-columns: 22px 1.3fr 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1.5px solid #e9ecf2; font-size: 9px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, border-color .2s, background .2s; }
.fl.in { opacity: 1; transform: none; } .fl.scan { border-color: #1F5BD8; background: #f0f5ff; } .fl.best { border-color: #E8B547; background: #fff8e6; }
.air { width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 700 7px/22px var(--sans); font-style: normal; text-align: center; }
.tm { display: flex; align-items: center; gap: 4px; } .tm b { font-weight: 700; font-size: 10px; } .tm s { flex: 1; height: 1px; background: #c9cdd6; position: relative; } .tm s::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #c9cdd6; }
.fl .dur { color: #777; } .fl em { font-style: normal; font-weight: 800; font-size: 11px; } .fl u { text-decoration: none; padding: 3px 8px; border-radius: 6px; background: #1F5BD8; color: #fff; font-weight: 600; font-size: 8.5px; }
.fl.best em::after { content: " ★"; color: #E8B547; }
/* a video page */
.vp { flex: 1; display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 8px; background: #0f0f0f; color: #fff; overflow: hidden; }
.vp-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(#1a2a4a, #2a4a7a); }
.vp-sky { position: absolute; right: 18%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: #f2b93b; box-shadow: 0 0 30px #f2b93b88; }
.vp-hill { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; border-radius: 50%; background: #18324f; }
.vp-cap { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 2px 6px; background: #000a; font-size: 8.5px; white-space: nowrap; }
.vp-big { position: absolute; left: 50%; top: 42%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #000a; opacity: 0; transition: opacity .3s; }
.vp-big::before, .vp-big::after { content: ""; position: absolute; top: 10px; width: 4px; height: 14px; border-radius: 2px; background: #fff; left: 11px; } .vp-big::after { left: 19px; }
.vp.paused .vp-big { opacity: 1; }
.vp-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px 5px; background: linear-gradient(transparent, #000c); }
.vp-bar { display: block; height: 3px; border-radius: 3px; background: #ffffff40; position: relative; margin-bottom: 5px; }
.vp-bar s { position: absolute; left: 0; top: 0; height: 100%; width: 52%; background: #ff2b2b; border-radius: 3px; animation: grow 30s linear infinite; }
.vp-bar i { position: absolute; left: 0; top: 0; height: 100%; width: 70%; background: #ffffff40; border-radius: 3px; }
.vp.paused .vp-bar s { animation-play-state: paused; }
.vp-row { display: flex; align-items: center; gap: 8px; font: 500 8.5px var(--sans); }
.vp-btn { width: 8px; height: 10px; background: #fff; clip-path: polygon(0 0, 0 100%, 35% 100%, 35% 0, 65% 0, 65% 100%, 100% 100%, 100% 0); } .vp.paused .vp-btn { clip-path: polygon(0 0, 0 100%, 100% 50%); }
.vp-next { width: 8px; height: 9px; background: #fff; clip-path: polygon(0 0, 70% 50%, 0 100%, 0 0, 80% 0, 100% 0, 100% 100%, 80% 100%, 80% 0); }
.vp-vol { width: 10px; height: 9px; background: #fff; clip-path: polygon(0 30%, 30% 30%, 70% 0, 70% 100%, 30% 70%, 0 70%); }
.vp-time { font-style: normal; } .vp-cc { margin-left: auto; font-style: normal; font-size: 7px; padding: 0 2px; border: 1px solid #fff; border-radius: 2px; }
.vp-full { width: 9px; height: 9px; border: 1.5px solid #fff; border-radius: 1px; }
.vp-title { margin: 6px 0 2px; font-size: 10.5px; font-weight: 600; } .vp-meta { margin: 0; font-size: 8.5px; color: #aaa; }
.vp-side { display: grid; gap: 6px; align-content: start; }
.vp-side p { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 5px; font-size: 8px; color: #ddd; }
.vp-side i { height: 26px; border-radius: 4px; background: linear-gradient(135deg, hsl(var(--h) 60% 45%), hsl(var(--h) 60% 25%)); }
.vp-side em { display: block; font-style: normal; color: #999; margin-top: 2px; }
/* a code editor */
.vs { display: grid; grid-template-columns: 20px 96px 1fr; grid-template-rows: 1fr 16px; height: 100%; background: #1f1f24; color: #cfd3dc; font: 500 9px/1.55 var(--mono); }
.vs-act { grid-row: 1; background: #18181c; display: grid; align-content: start; gap: 10px; padding-top: 8px; justify-items: center; }
.vs-act i { width: 11px; height: 11px; border-radius: 3px; background: #4a4d57; } .vs-act i.on { background: #e8e8e8; }
.vs-side { background: #1b1b1f; padding: 6px 0; overflow: hidden; } .vs-side p { margin: 0; padding: 0 8px; white-space: nowrap; color: #a7abb5; }
.vs-h { font-size: 7.5px; color: #777 !important; margin-bottom: 4px !important; } .vs-side .i1 { padding-left: 16px; } .vs-side .i2 { padding-left: 24px; }
.vs-side .f::before { content: ""; display: inline-block; width: 6px; height: 7px; margin-right: 5px; border-radius: 1px; background: #4b8bbe; } .vs-side .on { background: #37373d; color: #fff; }
.vs-main { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.vs-tabs { display: flex; background: #18181c; } .vs-tabs span { padding: 4px 10px; color: #888; border-right: 1px solid #111; } .vs-tabs span.on { background: #1f1f24; color: #fff; border-top: 1px solid #2f8ff0; }
.vs-tabs b { color: #ccc; font-weight: 400; }
.vs-crumb { margin: 0; padding: 2px 10px; color: #7d818b; font-size: 8px; }
.vs-code { padding: 2px 0; overflow: hidden; }
.vs-code p { margin: 0; display: block; white-space: pre; padding-right: 8px; overflow: hidden; }   /* block, not flex: flex would drop the spaces between highlighted words */
.vs-code .ln { display: inline-block; width: 26px; text-align: right; padding-right: 6px; color: #5a5e68; } .vs-code .mk { display: inline-block; width: 3px; height: 1.3em; vertical-align: middle; margin-right: 6px; }
.vs-code k { color: #c586c0; } .vs-code f { color: #dcdcaa; } .vs-code t { color: #4ec9b0; } .vs-code c { color: #6a9955; } .vs-code n { color: #b5cea8; }
.vs-code .add { display: none; background: #2ea04326; } .vs-code .add .mk { background: #2ea043; }
.vs.diff .vs-code .del { background: #f8514926; text-decoration: line-through; color: #ffa198; } .vs.diff .vs-code .del .mk { background: #f85149; } .vs.diff .vs-code .add { display: block; }
.vs-panel { border-top: 1px solid #2a2c33; background: #18181c; }
.vs-ptabs { display: flex; gap: 12px; margin: 0; padding: 3px 10px; font-size: 7.5px; color: #777; } .vs-ptabs .on { color: #fff; border-bottom: 1px solid #fff; }
.vs-term { margin: 0; padding: 2px 10px 6px; white-space: pre-wrap; min-height: 52px; color: #cfd3dc; font: inherit; }
.vs-term .bad { color: #ff7b72; } .vs-term .ok { color: #7ee787; }
.vs-status { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 0 8px; background: #2f6fd1; color: #fff; font-size: 7.5px; }
.vs-status .cc { margin-left: auto; color: #ffe08a; }
/* a messenger */
.tgm { display: grid; grid-template-columns: 150px 1fr; height: 100%; font-size: 9px; }
.tgm-list { background: #fff; border-right: 1px solid #e7e7e7; padding: 26px 6px 6px; overflow: hidden; position: relative; }
.tgm-list::before { content: ""; position: absolute; left: 10px; top: 8px; width: 40px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, #ff5f57 4.2px, transparent 4.6px), radial-gradient(circle at 18.5px 4.5px, #febc2e 4.2px, transparent 4.6px), radial-gradient(circle at 32.5px 4.5px, #28c840 4.2px, transparent 4.6px); }
.tgm-search { margin: 0 0 6px; padding: 4px 8px; border-radius: 999px; background: #f1f1f4; color: #999; }
.tg-chat-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 5px; border-radius: 8px; }
.tg-chat-row.on { background: #3d8fe0; color: #fff; }
.tg-chat-row i, .tgm-head i { width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 600 9px/22px var(--sans); font-style: normal; text-align: center; }
.tg-chat-row span { min-width: 0; display: grid; } .tg-chat-row b { font-weight: 600; } .tg-chat-row em { font-style: normal; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-chat-row.on em { color: #e6f0ff; } .tg-chat-row time { font-size: 7.5px; color: #999; display: grid; justify-items: end; gap: 2px; } .tg-chat-row.on time { color: #e6f0ff; }
.tg-chat-row u { text-decoration: none; min-width: 13px; padding: 0 3px; border-radius: 999px; background: #3d8fe0; color: #fff; font-size: 7.5px; text-align: center; } .tg-chat-row.on u { background: #fff; color: #3d8fe0; }
.tgm-chat { display: flex; flex-direction: column; background: #dbe6d2 linear-gradient(160deg, #e4eed9, #cfe0c6); }
.tgm-head { display: flex; align-items: center; gap: 7px; padding: 5px 10px; background: #fff; } .tgm-head span { display: grid; } .tgm-head em { font-style: normal; color: #888; font-size: 8px; }
.tgm-msgs { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; overflow: hidden; }
.tgm-msgs .day { align-self: center; margin: 0 0 2px; padding: 1px 8px; border-radius: 999px; background: #0002; color: #fff; font-size: 7.5px; }
.tgm-msgs .in, .tgm-msgs .out { position: relative; margin: 0; max-width: 72%; padding: 5px 9px 5px; border-radius: 10px; background: #fff; }
.tgm-msgs .out { align-self: flex-end; background: #e3fbd1; }
.tgm-msgs time { margin-left: 8px; font-size: 7px; color: #8a9a85; }
.sena-draft { align-self: flex-end; width: 62%; padding: 6px 8px; border-radius: 10px; background: #161617; color: #f3f1ec; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.sena-draft.on { opacity: 1; transform: none; }
.sd-head { display: flex; align-items: center; gap: 5px; margin: 0 0 3px; font-size: 7.5px; color: var(--leaf); } .sd-head svg { width: 10px; height: 9px; fill: var(--leaf); }
.sd-text { margin: 0; min-height: 1.4em; }
.sd-act { display: flex; gap: 6px; margin: 5px 0 0; opacity: 0; transition: opacity .3s; } .sd-act.on { opacity: 1; }
.sd-act b { padding: 2px 9px; border-radius: 999px; background: #f3f1ec; color: #161617; } .sd-act span { padding: 2px 6px; color: #a9a69e; }
.tgm-input { display: flex; align-items: center; gap: 7px; padding: 5px 10px; background: #fff; color: #aaa; }
.tgm-input .clip { width: 11px; height: 11px; fill: none; stroke: #999; stroke-width: 2; stroke-linecap: round; }
.tgm-input .mic { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: #3d8fe0; font-style: normal; }
/* the Sena app on the Mac */
.sapp { display: grid; grid-template-columns: 110px 1fr; height: 100%; background: #f7f5f0; font-size: 9px; }
.sapp-side { padding: 8px 6px; background: #ece8df; display: grid; align-content: start; gap: 2px; }
.sapp-side p { margin: 0; padding: 4px 8px; border-radius: 7px; color: #555; } .sapp-side p.on { background: #161617; color: #fff; }
.sapp-side .logo { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font: 700 11px var(--display); color: #161617; } .sapp-side .logo svg { width: 13px; height: 12px; fill: var(--leaf); }
.sapp-main { padding: 10px 12px; overflow: hidden; }
.sapp-title { margin: 0 0 6px; font: 700 14px var(--display); }
.sapp-search { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e0dbd0; }
.sapp-search i { width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid #888; }
.sapp-tabs { display: flex; gap: 4px; margin: 7px 0; } .sapp-tabs span { padding: 2px 9px; border-radius: 999px; color: #666; } .sapp-tabs span.on { background: #161617; color: #fff; }
.sapp-rows p { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 0 0 4px; padding: 6px 9px; border-radius: 9px; background: #fff; border: 1px solid #ebe6db; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s; }
.sapp.found .sapp-rows p { opacity: 1; transform: none; }
.sapp.found .sapp-rows p:nth-child(2) { transition-delay: .12s; } .sapp.found .sapp-rows p:nth-child(3) { transition-delay: .24s; } .sapp.found .sapp-rows p:nth-child(4) { transition-delay: .36s; }
.sapp-rows b { padding: 1px 7px; border-radius: 999px; color: #fff; font: 500 7.5px var(--mono); } .sapp-rows em { font: 500 8px var(--mono); font-style: normal; color: #999; }
/* a calendar, week view */
.calw { display: flex; flex-direction: column; height: 100%; background: #fff; font-size: 8.5px; }
.cal-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 58px; background: #f6f6f6; border-bottom: 1px solid #e5e5e5; position: relative; }
.cal-bar::before { content: ""; position: absolute; left: 10px; top: 10px; width: 40px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, #ff5f57 4.2px, transparent 4.6px), radial-gradient(circle at 18.5px 4.5px, #febc2e 4.2px, transparent 4.6px), radial-gradient(circle at 32.5px 4.5px, #28c840 4.2px, transparent 4.6px); }
.cal-bar .seg { display: flex; border-radius: 6px; background: #e6e6e6; padding: 1px; } .cal-bar .seg i { font-style: normal; padding: 2px 8px; border-radius: 5px; color: #555; } .cal-bar .seg i.on { background: #fff; color: #111; box-shadow: 0 1px 2px #0002; }
.cal-bar b { font: 700 11px var(--sans); } .cal-bar .arr { margin-left: auto; color: #666; }
.cal-week { flex: 1; display: grid; grid-template-columns: 30px repeat(5, 1fr); position: relative; }
.hours { display: grid; grid-auto-rows: 26px; padding-top: 18px; } .hours i { font-style: normal; color: #aaa; font-size: 7px; text-align: right; padding-right: 4px; transform: translateY(-5px); }
.day { position: relative; border-left: 1px solid #eee; background: repeating-linear-gradient(transparent 0 25px, #f0f0f0 25px 26px); background-position: 0 18px; }
.day b { display: block; height: 18px; padding: 3px 6px; font-weight: 600; color: #333; background: #fff; }
.day.today b { color: #f25c54; }
.day em { position: absolute; left: 3px; right: 3px; padding: 2px 5px; border-radius: 4px; border-left: 2.5px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); font-style: normal; font-size: 7.5px; color: #333; overflow: hidden; }
.day em.new { background: #f25c54; color: #fff; border-left-color: #b8352b; font-weight: 600; transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.calw.set .day em.new { transform: none; opacity: 1; }

/* the Mac's notch shelf, as the app draws it: grey glass under the notch, agents left, the tabs right, black task cards */
.hw-notch { position: absolute; z-index: 6; left: 50%; top: 0; transform: translateX(-50%); width: 14%; height: 26px; background: #000; border-radius: 0 0 11px 11px; }
.shelf {
  position: absolute; z-index: 5; left: 50%; top: 0; width: 40%; transform: translateX(-50%); padding: 0 8px 8px; overflow: hidden;   /* the app's width: the notch plus two side blocks, about 2.7 notches */
  border-radius: 0 0 18px 18px; background: linear-gradient(#5f6463ee, #4c514fee); backdrop-filter: blur(18px) saturate(1.2);
  clip-path: inset(0 32.5% 100% 32.5%);   /* closed: nothing of the glass shows around the notch */ transition: clip-path .55s var(--ease-out);
  box-shadow: 0 18px 40px -16px #000a;
}
.shelf.open { clip-path: inset(0 0 0 0 round 0 0 18px 18px); }
.sh-top { display: grid; grid-template-columns: 1fr 35% 1fr; align-items: center; height: 26px; margin: 0 -8px; }   /* two side blocks and the notch between them, as the app lays it out */
.sh-faces { display: flex; gap: 2px; justify-content: flex-end; padding-right: 6px; }
.sh-faces canvas.mini { width: 16px; height: 16px; }
.sh-icons { grid-column: 3; display: flex; gap: 7px; align-items: center; padding-left: 6px; }
.sh-icons svg { width: 13px; height: 13px; fill: #0b0b0c; }
.sh-icons .cut { fill: none; stroke: #5a5f5e; stroke-width: 2; stroke-linecap: round; }
.sh-cards { display: grid; gap: 5px; margin-top: 4px; align-content: start; }
.sh-card { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 12px; background: #000; color: #fff; animation: swap .35s var(--ease-out); }
.sh-card div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sh-card b { font: 600 11px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card span { font-size: 9.5px; color: #9a9893; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card em { font-style: normal; }
.sh-leaf { width: 20px; height: 18px; flex: none; } .sh-leaf svg { width: 100%; height: 100%; fill: var(--c); }
.sh-card u { text-decoration: none; padding: 3px 9px; border-radius: 7px; background: #fff; color: #000; font: 500 9.5px var(--sans); }

/* the phone: Sena's Android app — dark header with a big title, a light sheet, the step line, a round button, the floating menu */
.phone { position: absolute; z-index: 7; right: 0; bottom: 0; width: min(232px, 35%); aspect-ratio: 9 / 19.5; padding: 4px; border-radius: 36px; background: #0d0d0e; box-shadow: 0 0 0 1.5px #44423f, 0 44px 70px -30px #3a2d16bb; }
.ph-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; background: #141415; font-family: var(--sans); }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 16px; color: #f3f1ec; font: 500 9.5px var(--sans); position: relative; }
.ph-cam { position: absolute; left: 50%; top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1.5px #2a2a2c; }
.ph-ic { display: flex; gap: 4px; align-items: center; } .ph-ic svg { width: 10px; height: 10px; fill: #f3f1ec; } .ph-ic b { font-weight: 600; }
.ph-header { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 4px; color: #f3f1ec; }
.ph-back { width: 17px; height: 17px; fill: none; stroke: #f3f1ec; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ph-title { flex: 1; margin: 0; font: 700 14px/1 var(--sans); letter-spacing: -0.01em; }
.ph-more { width: 15px; height: 15px; fill: #f3f1ec; }
.ph-sheet { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 10px 10px 18px; border-radius: 22px 22px 0 0; background: #f3f0ea; }
.ph-day { margin: 0 0 4px; text-align: center; font: 500 8.5px var(--sans); color: #8c877d; }
.phone-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden; }
.bub { margin: 0; max-width: 84%; padding: 7px 10px; border-radius: 15px; font-size: 10.5px; line-height: 1.35; animation: swap .35s var(--ease-out); }
.bub.me { align-self: flex-end; background: #161617; color: #f3f1ec; border-bottom-right-radius: 5px; }
.bub.her { align-self: flex-start; background: #fff; border: 1px solid #e6e1d7; border-bottom-left-radius: 5px; }
.ph-step { display: flex; align-items: center; gap: 5px; align-self: flex-start; max-width: 100%; margin: 7px 0 0; padding: 4px 9px; border-radius: 999px; background: #e7e2d8; font-size: 9px; color: #66625a; opacity: 0; transition: opacity .3s; white-space: nowrap; overflow: hidden; }
.ph-step span { overflow: hidden; text-overflow: ellipsis; }
.ph-step i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); flex: none; animation: blink 1s steps(1) infinite; }
.phone.working .ph-step { opacity: 1; }
.ph-composer { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 4px 4px 12px; border-radius: 14px; background: #fff; border: 1px solid #e6e1d7; font-size: 10px; color: #a09a8f; }
.ph-round { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #161617; transition: background .3s; }
.ph-round svg { width: 13px; height: 13px; grid-area: 1 / 1; fill: none; stroke: #f3f1ec; stroke-width: 2; stroke-linecap: round; transition: opacity .2s; }
.ph-round .i-stop { fill: #fff; stroke: none; opacity: 0; }
.phone.working .ph-round { background: #e5533d; } .phone.working .i-mic { opacity: 0; } .phone.working .i-stop { opacity: 1; }
.ph-gesture { position: absolute; left: 50%; bottom: 5px; width: 34%; height: 3px; margin-left: -17%; border-radius: 3px; background: #16161788; }

/* 02 The team's orbit, after the Luma site: a turning ring of agents that stay upright, a beam to each one that works,
   the request line in the middle with ag_sena on it, the results coming out as cards */
.team2 { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.o2-results .sec-head { margin-bottom: 28px; }
.o2-results { align-self: center; }
.o2-hint { margin: 18px 0 0; font: 500 12px var(--mono); color: var(--faint); }
/* the ring fits the screen's height, so no agent is ever cut off at the bottom */
.orbit2 { --size: min(620px, 78vh, calc(100vw - 32px)); --R: calc(var(--size) * 0.40); position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.o2-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, #f2b93b33, transparent 65%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
.o2-ring { position: absolute; left: calc(50% - var(--R)); top: calc(50% - var(--R)); width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%; border: 1.5px dashed #cfc6b5; }
.o2-ring.inner { left: calc(50% - var(--R) * .64); top: calc(50% - var(--R) * .64); width: calc(var(--R) * 1.28); height: calc(var(--R) * 1.28); border: 1px solid var(--line); }
.o2-spin { position: absolute; inset: 0; animation: orbitSpin 90s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.orb-beam {
  position: absolute; left: -1.5px; bottom: 0; width: 3px; height: calc(var(--R) - 42px); border-radius: 3px;
  background: linear-gradient(to top, transparent, var(--c)); box-shadow: 0 0 14px var(--c);
  transform: scaleY(0); transform-origin: 50% 100%; opacity: 0; transition: transform .35s var(--ease-out), opacity .5s;
}
.orb.lit .orb-beam { transform: scaleY(1); opacity: 1; }
.orb-at { position: absolute; left: 0; top: 0; transform: translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); }
.orb-up {
  position: absolute; left: 0; top: 0; translate: -50% -36px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  animation: orbitSpin 90s linear infinite reverse; transform-origin: 50% 36px;
}
.orb-up canvas.mini { width: 72px; height: 72px; transition: transform .45s var(--ease-out), filter .45s; }   /* no rounding: it would cut the thought bubble at the corner */
.orb.lit .orb-up canvas.mini { transform: scale(1.16); filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 18px color-mix(in srgb, var(--c) 70%, transparent)); }   /* the glow follows the body's shape */
.orb-up code { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--paper); font: 600 12px var(--mono); }
.orb.lit .orb-up code { background: var(--ink); color: var(--sheet); }
.orb-up span { font-size: 11px; color: var(--muted); }
.o2-core { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.o2-sena { position: absolute; left: 50%; top: 50%; width: 88px !important; height: 88px !important; translate: -50% calc(-100% - 28px); pointer-events: auto; cursor: pointer; }   /* sits on the request line */
.o2-input {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: calc(var(--R) * 1.3); display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 7px 14px; border-radius: 19px; background: var(--sheet); border: 1.5px solid var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.3;
  box-shadow: 0 24px 50px -24px #3a2d1680, 0 0 0 6px #f2b93b22; transition: box-shadow .4s, transform .3s var(--ease-out);
}
.o2-input svg { width: 15px; height: 13px; fill: var(--leaf); flex: none; }
.o2-input .caret { margin-left: -8px; flex: none; }
.o2-input.sent { transform: scale(.97); box-shadow: 0 24px 50px -24px #3a2d1680, 0 0 0 10px #f2b93b55, 0 0 50px #f2b93b77; }
.o2-cards { display: flex; flex-direction: column; gap: 8px; min-height: 196px; }
.oc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -20px #3a2d1666; animation: ocIn .6s var(--ease-out) backwards; transition: opacity .35s, transform .35s var(--ease-out), filter .35s; }
@keyframes ocIn { from { opacity: 0; transform: translateY(-30px) scale(.6); filter: blur(6px); } }
.oc.gone { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(4px); }
.oc-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c); flex: none; }
.oc-ic svg { width: 17px; height: 15px; fill: var(--ink); }
.oc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-t small { font: 500 10.5px var(--mono); color: var(--muted); }
.oc-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-v { flex: none; font: 600 12.5px var(--mono); }
.o-pop { position: absolute; z-index: 6; width: 300px; padding: 18px; border-radius: 18px; background: var(--ink); color: var(--sheet); box-shadow: 0 30px 60px -30px #000a; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.o-pop.on { opacity: 1; pointer-events: auto; transform: none; }
.o-pop code { font: 500 12px var(--mono); color: var(--leaf); }
.o-pop h3 { font-size: 22px; margin: 6px 0 8px; } .o-pop p { margin: 0; font-size: 14px; color: #fffcf6cc; }
.o-pop .oi-ex { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ffffff33; color: #fffcf699; font-size: 13px; }

/* 03 The engineering cases: text and a chart in each row */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.row:nth-child(even) .row-text { order: 2; }
.case-tag { margin: 0 0 10px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.row h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.row-text p:last-child { margin: 0; color: var(--muted); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart-fig { margin: 0; }
.chart-cap { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.c-label { font: 500 13px var(--mono); fill: var(--ink); }
.c-label.win { font-weight: 700; }
.c-small { font: 500 11px var(--mono); fill: var(--muted); opacity: 0; transition: opacity .5s; }
.c-small.on { opacity: 1; }
.c-label.red, .c-small.red { fill: #d9493a; }
.c-thr { stroke: #d9493a; stroke-width: 1.5; stroke-dasharray: 5 5; }
.c-path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-dot { fill: var(--ink); } .c-bad { fill: #d9493a; }
.c-back { fill: none; stroke: #d9493a; stroke-width: 2; stroke-dasharray: 5 5; }
/* On a phone a 600-wide chart is drawn at ~0.6 scale: its small labels came out about 6 px. Larger there (the label lengths
   were checked against the free room), except the wake-word line, which is long and stays as it is */
@media (max-width: 640px) {
  .c-label { font-size: 15px; } .c-small { font-size: 16px; }
  #chWake .c-label { font-size: 13px; }
  #chCost .c-small.red { text-anchor: end; }
}

/* 04 The attack track and the exam log */
.track { position: relative; }
.track-svg { width: 100%; height: 160px; display: block; }
.t-road { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.t-gate { fill: var(--line); transition: fill .3s; } .t-gate.hit { fill: #d9493a; }
.attack { position: absolute; left: 0; top: 80px; transform: translate(0, -50%); z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--sheet); border: 1.5px dashed #d9493a; font: 500 12px var(--mono); white-space: nowrap; color: #b23a2e; transition: background .3s, color .3s; }
.attack.stopped { background: #d9493a; color: #fff; border-style: solid; }
.gates { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gates li { padding-top: 12px; border-top: 2px solid var(--line); transition: border-color .3s; }
.gates li b { font: 500 11px var(--mono); color: var(--muted); }
.gates li h3 { font-size: 15px; margin: 6px 0; }
.gates li p { margin: 0; font-size: 13px; color: var(--muted); }
.gates li.hit { border-color: #d9493a; }
.gates li.hit h3 { color: #b23a2e; }
.term { margin-top: 36px; border-radius: 16px; background: var(--ink); color: #fffcf6cc; overflow: hidden; font: 500 13px/1.7 var(--mono); }
.term-head { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; background: #ffffff0f; }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff30; }
.term-head span { margin-left: 10px; color: #fffcf699; }
.term-body { padding: 12px 16px; min-height: 190px; }
.term-body p { margin: 0; animation: swap .3s var(--ease-out); }
.t-g { color: var(--leaf); } .t-m { color: #fffcf666; }

/* 05 The memory graph: nodes with labels on plates, links curving behind them */
.mem { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.mem-ask { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--sheet); font-size: 16px; width: fit-content; min-width: 340px; }
.mem-q { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--leaf); }
.mem-ask .caret { background: var(--sheet); }
.mem-graph { padding: 18px 20px 16px; border-radius: 26px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px #3a2d1666; }   /* its own sheet: the dot paper doesn't mix with the graph */
.mem-svg { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.m-edge { fill: none; stroke: #c9bea9; stroke-width: 3; stroke-linecap: round; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.m-edge.hot { stroke: var(--ink); stroke-width: 4.5; stroke-dasharray: 10 8; animation: flow .8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.m-node { animation: float 6s ease-in-out infinite; transition: opacity .35s; }
@keyframes float { 50% { translate: 0 -5px; } }
.m-dot { stroke: #fff; stroke-width: 4; }
.m-ring { fill: none; stroke-width: 3; opacity: 0; }
.m-node.hot .m-ring { opacity: 1; animation: ping2 1.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ping2 { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.m-plate { stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.m-text { font: 600 20px var(--sans); fill: var(--ink); transition: fill .3s; }
.m-node.hot .m-plate { fill: var(--ink); stroke: var(--ink); }
.m-node.hot .m-text { fill: var(--sheet); }
.mem-svg.asking .m-node:not(.hot) { opacity: .3; }
.mem-svg.asking .m-edge:not(.hot) { opacity: .25; }
.mem-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mem-legend span { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); font: 500 12px var(--sans); color: var(--ink); }
.mem-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mem-hits { list-style: none; margin: 0; padding: 0; min-height: 300px; }
.mem-hits li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: swap .4s var(--ease-out); }
.mem-hits i { width: fit-content; font: 500 11px var(--mono); font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--c); color: #fff; }
.mem-hits span { grid-column: 1; } .mem-hits b { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 12px var(--mono); color: var(--faint); }

/* 06 Home and cloud: two places as panels, the jobs' queue between them */
.hc { display: grid; grid-template-columns: 1fr minmax(220px, 280px) 1fr; gap: 20px; align-items: stretch; }
.hc-side { display: flex; flex-direction: column; padding: 18px; border-radius: 24px; transition: filter .5s, opacity .5s; }
.hc-home { background: linear-gradient(160deg, #23211f, #141312); color: #f3f1ec; box-shadow: 0 30px 60px -36px #000a; }
.hc-cloud { background: linear-gradient(160deg, #2f6af0, #1a47c4); color: #fff; box-shadow: 0 30px 60px -36px #1a47c4aa; position: relative; }
.hc-cloud.down { filter: grayscale(1) brightness(.85); opacity: .55; }
.hc-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.hc-head svg { width: 22px; height: 20px; fill: var(--leaf); } .hc-cloud .hc-head svg { fill: #fff; }
.hc-head b { font: 700 18px var(--display); letter-spacing: -0.02em; }
.hc-free, .hc-down { margin-left: auto; padding: 3px 10px; border-radius: 999px; font: 500 11px var(--mono); background: #ffffff1a; }
.hc-down { display: none; background: #fff; color: #1a47c4; } .hc-cloud.down .hc-down { display: block; }
.hc-models { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.hc-models li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff10; }
.hc-models span { font: 600 13px var(--sans); } .hc-models em { font-style: normal; font-size: 11.5px; opacity: .7; text-align: right; }
.hc-models i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: #ffffff1c; overflow: hidden; }
.hc-models s { display: block; height: 100%; width: 8%; border-radius: 4px; background: var(--leaf); transition: width 1.6s ease-out; }
.hc-cloud .hc-models s { background: #fff; }
.hc-models li.busy s { width: 100%; transition: width .25s ease-out; animation: settle 1.6s ease-out .3s forwards; }
@keyframes settle { to { width: 8%; } }
.hc-models li.busy { background: #ffffff22; }
.hc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; min-height: 150px; align-content: start; }
.hc-log li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #ffffff0d; font-size: 12.5px; animation: swap .4s var(--ease-out); }
.hc-log time { font: 500 10.5px var(--mono); opacity: .55; } .hc-log span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-log em { font: 600 11.5px var(--mono); font-style: normal; } .hc-log u { text-decoration: none; padding: 1px 7px; border-radius: 999px; background: var(--leaf); color: var(--ink); font: 500 10px var(--mono); }
.hc-total { margin: auto 0 0; padding-top: 12px; font-size: 13px; opacity: .8; } .hc-total b { font: 700 15px var(--display); }
.hc-mid { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.hc-mid .pick-label { text-align: center; }
.hc-queue { display: grid; gap: 8px; }
.hj { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 14px 30px -20px #3a2d1666; font-size: 13.5px; font-weight: 500; animation: swap .4s var(--ease-out); }
.hj:first-child { border-color: var(--ink); box-shadow: 0 0 0 4px #f2b93b33, 0 14px 30px -20px #3a2d1666; }
.hj .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.hj.fly { position: fixed; z-index: 30; margin: 0; pointer-events: none; }
.lock { position: relative; width: 9px; height: 8px; margin-top: 4px; border-radius: 2px; background: #3fb36b; flex: none; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 6px; height: 6px; border: 1.6px solid #3fb36b; border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.hc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--sheet); font: 600 14px var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.hc-btn i { width: 10px; height: 10px; border-radius: 50%; background: #3fb36b; } .hc-btn.on i { background: #d9493a; }
.hc-btn:hover, .hc-btn.on { background: var(--ink); color: var(--sheet); }
.hc-note { margin: 4px 0 0; text-align: center; font: 500 11.5px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 1000px) { .hc { grid-template-columns: minmax(0, 1fr); } .hc-mid { order: -1; } }

/* 07 The git graph of a self-change */
.git-svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-main { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.g-branch, .g-branch-line { fill: none; stroke: #7A5CE6; stroke-width: 4; stroke-linecap: round; transition: opacity .5s, stroke .5s; }
.g-branch.dead, .g-branch-line.dead { stroke: #d9493a; opacity: .35; }
.g-commit { fill: var(--ink); stroke: var(--paper); stroke-width: 3; } .g-commit.hot { fill: #7A5CE6; }
.g-bad { fill: #d9493a; stroke: var(--paper); stroke-width: 3; }
.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.limits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 36px; }
.limits li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.limits li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: #7A5CE6; }

/* 08 Faces: the picker on paper */
.faces { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 28px; align-items: center; }
.faces-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.faces-say { margin: 0; text-align: center; font-weight: 500; min-height: 3em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips button {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 500 14px var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--sheet) 70%, transparent); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.chips button:hover { transform: translateY(-2px); border-color: var(--ink); }
.chips button.on { background: var(--ink); color: var(--sheet); border-color: var(--ink); }

/* 09 Server-drawn screens: the JSON in an editor, a bridge, the Mac app and the Android app — all one height */
.sd2 { --h: 460px; display: grid; grid-template-columns: minmax(0, 1.05fr) 70px minmax(0, 1.35fr); align-items: stretch; }
.sd2-code { height: var(--h); display: flex; flex-direction: column; border-radius: 16px; background: #1e1f24; color: #d7dae0; overflow: hidden; box-shadow: 0 30px 60px -36px #000a; }
.sd2-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; background: #18181c; font: 500 11px var(--mono); color: #9aa0ab; }
.sd2-path b { color: #7ee787; font-weight: 600; margin-right: 4px; } .sd2-size { margin-left: auto; color: #6b707b; }
.sd2-lines { flex: 1; padding: 10px 0; overflow: hidden; font: 500 11.5px/1.75 var(--mono); }
.sd2-lines p { margin: 0; display: flex; gap: 0; padding-right: 10px; white-space: pre; animation: typeLine .18s steps(12) both; border-left: 2px solid transparent; }
@keyframes typeLine { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sd2-lines p.cur { background: #2f6ff01a; border-left-color: #2f8ff0; }
.sd2-lines .ln { width: 34px; flex: none; text-align: right; padding-right: 12px; color: #555a64; }
.sd2-lines code { font: inherit; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.sd2-lines k { color: #9cdcfe; } .sd2-lines s { color: #ce9178; text-decoration: none; } .sd2-lines n { color: #b5cea8; } .sd2-lines b { color: #569cd6; font-weight: 500; }
.sd2-lines .hit { animation: hit 1s ease-out; border-radius: 3px; }
@keyframes hit { 0% { background: #f2b93b; color: #141312; } 100% { background: transparent; } }
.sd2-foot { display: flex; justify-content: space-between; margin: 0; padding: 5px 12px; background: #2f6fd1; color: #fff; font: 500 10.5px var(--mono); }
.sd2-live { color: #ffe08a; }
.sd2-bridge { position: relative; height: var(--h); }
.sd2-bridge svg { width: 100%; height: 100%; }
.sd2-wire { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.sd2-pkt { position: absolute; left: 0; top: 50%; translate: -50% -50%; padding: 3px 9px; border-radius: 999px; background: var(--leaf); font: 600 10px var(--mono); white-space: nowrap; opacity: 0; z-index: 3; }
.sd2-pkt.back { background: var(--ink); color: var(--sheet); }
.sd2-devices { display: grid; grid-template-columns: 1fr auto; gap: 16px; height: var(--h); }
.sd2-mac { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #f6f5f2; box-shadow: 0 0 0 1px #d9d4c9, 0 30px 60px -36px #3a2d1688; }
.m2-title { position: relative; display: flex; align-items: center; justify-content: center; height: 30px; margin: 0; background: linear-gradient(#ecebe8, #e3e1dc); border-bottom: 1px solid #d3cfc6; font: 600 12px var(--sans); color: #444; }
.m2-title .tl { position: absolute; left: 12px; }
.m2-body { flex: 1; display: grid; grid-template-columns: 132px 1fr; min-height: 0; }
.m2-side { padding: 10px 8px; background: #e9e6e0; border-right: 1px solid #d9d4c9; font-size: 11.5px; color: #3d3a35; }
.m2-side p { margin: 0 0 1px; padding: 4px 8px; border-radius: 6px; }
.m2-side p.on { background: #c9c4ba; color: #141312; font-weight: 600; }
.m2-logo { display: flex; align-items: center; gap: 6px; font: 700 13px var(--display) !important; margin-bottom: 6px !important; } .m2-logo svg { width: 15px; height: 13px; fill: var(--leaf); }
.m2-sec { margin-top: 8px !important; font: 600 9.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #8a857b; }
.m2-main { padding: 14px 16px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.sd2-phone { width: 214px; height: var(--h); padding: 4px; border-radius: 34px; background: #0d0d0e; box-shadow: 0 0 0 1.5px #44423f, 0 30px 60px -30px #3a2d16bb; }
.p2-screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: #141415; }
.p2-sheet { flex: 1; display: grid; gap: 8px; align-content: start; padding: 14px 12px; border-radius: 22px 22px 0 0; background: #f3f0ea; overflow: hidden; }
/* the panel's blocks, drawn by each app in its own way */
.pb2.flash { animation: flashIn .6s var(--ease-out); }
@keyframes flashIn { 0% { opacity: 0; transform: translateY(8px) scale(.98); box-shadow: 0 0 0 3px #f2b93b; } 60% { box-shadow: 0 0 0 3px #f2b93b; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pb2 { border-radius: 10px; }
.pb2-head b { display: block; font: 700 17px var(--display); letter-spacing: -0.02em; } .pb2-head span { font-size: 11.5px; color: var(--muted); }
.pb2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb2-stats p { margin: 0; padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid #e3ded3; }
.pb2-stats b { display: block; font: 700 17px var(--display); } .pb2-stats span { font-size: 10.5px; color: var(--muted); }
.pb2-items { display: grid; gap: 6px; }
.pb2-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid #e3ded3; }
.pb2-row p { margin: 0; display: grid; } .pb2-row b { font-size: 12px; } .pb2-row span { font-size: 10.5px; color: var(--muted); }
.pb2-row em { font-style: normal; font-size: 10.5px; padding: 3px 9px; border-radius: 6px; border: 1px solid #d3cdc1; } .pb2-row.warn em { background: var(--ink); color: #fff; border-color: var(--ink); }
.pb2-row i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: #ece7dd; overflow: hidden; } .pb2-row s { display: block; height: 100%; background: #1F5BD8; border-radius: 4px; transition: width .3s; } .pb2-row.warn s { background: #E8B547; }
.pb2-switch { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; background: #fff; border: 1px solid #e3ded3; font-size: 12px; }
.sw { position: relative; width: 32px; height: 19px; border-radius: 10px; background: #cfc9bd; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .25s var(--ease-out); }
.sw.on { background: #3fb36b; } .sw.on::after { transform: translateX(13px); }
.pb2-buttons u { display: block; text-decoration: none; text-align: center; padding: 8px; border-radius: 8px; border: 1.5px solid #d9493a; color: #c23a2c; font-weight: 600; font-size: 12px; transition: background .2s, color .2s; }
.pb2-buttons u.press { background: #d9493a; color: #fff; }
/* on the phone the same blocks are Android cards */
.p2-sheet .pb2-stats p, .p2-sheet .pb2-row, .p2-sheet .pb2-switch { border-radius: 18px; padding: 10px 12px; }
.p2-sheet .pb2-head span { font-size: 11px; }
.p2-sheet .pb2-buttons u { border-radius: 999px; background: #d9493a; color: #fff; border: 0; padding: 10px; }
.p2-tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #14131244; pointer-events: none; opacity: 0; }
.p2-tap.on { animation: tap .6s ease-out; }
@keyframes tap { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.sd2-dialog { position: absolute; left: 50%; top: 50%; z-index: 4; width: 250px; translate: -50% -50%; display: grid; gap: 4px; justify-items: center; padding: 16px; border-radius: 12px; background: #f6f5f2f2; backdrop-filter: blur(10px); box-shadow: 0 20px 50px -10px #0007, 0 0 0 1px #d3cfc6; text-align: center; font-size: 12px; opacity: 0; transform: scale(.9); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none; }
.sd2-dialog.on { opacity: 1; transform: none; }
.sd2-dialog span { color: var(--muted); font-size: 11px; } .sd2-dialog p { display: flex; gap: 6px; margin: 8px 0 0; width: 100%; }
.sd2-dialog i { flex: 1; font-style: normal; padding: 5px; border-radius: 6px; background: #fff; border: 1px solid #d3cfc6; } .sd2-dialog i.danger { background: #d9493a; color: #fff; border-color: #d9493a; }
.channels { margin: 26px 0 0; color: var(--muted); }
@media (max-width: 1100px) { .sd2 { grid-template-columns: minmax(0, 1fr); --h: 420px; } .sd2-bridge { display: none; } }
@media (max-width: 640px) { .sd2-devices { grid-template-columns: minmax(0, 1fr); height: auto; } .sd2-mac { height: 420px; } .sd2-phone { justify-self: center; } .m2-side { display: none; } .m2-body { grid-template-columns: minmax(0, 1fr); } }

/* 10 Numbers, the layer stack and the CI run */
.counts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.count { padding: 22px 20px 26px 0; }
.count + .count { padding-left: 20px; border-left: 1px solid var(--line); }
.count b { display: block; font: 700 clamp(34px, 4vw, 60px)/1 var(--display); letter-spacing: -0.04em; }
.count span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.eng { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 44px; }
.stack-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stack-layers li { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--sheet) 80%, transparent); }
.stack-layers li:last-child { background: var(--ink); color: var(--sheet); }
.stack-layers li + li::before {   /* the dependency arrow, pulsing downward */
  content: ""; position: absolute; left: 40px; top: -15px; width: 2px; height: 14px; background: var(--ink);
  animation: down 1.6s ease-in-out infinite; transform-origin: top;
}
.stack-layers li:nth-child(3)::before { animation-delay: .2s; } .stack-layers li:nth-child(4)::before { animation-delay: .4s; } .stack-layers li:nth-child(5)::before { animation-delay: .6s; }
@keyframes down { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.stack-layers b { width: 130px; flex: none; font: 700 14px var(--display); }
.stack-layers span { font-size: 14px; color: var(--muted); }
.stack-layers li:last-child span { color: #fffcf6b3; }
.ci-jobs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.ci-jobs li { display: grid; grid-template-columns: 1fr 80px; gap: 6px 10px; align-items: center; font: 500 13px var(--mono); }
.ci-jobs i { grid-column: 1 / 2; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.ci-jobs s { display: block; height: 100%; width: 0; background: var(--leaf); }
.ci-jobs li.run s { width: 100%; transition: width 1.6s ease-in-out; }
.ci-jobs li.ok s { background: #3fb36b; }
.ci-jobs em { grid-row: 1 / 3; grid-column: 2; font-style: normal; text-align: right; color: var(--faint); transition: color .3s; }
.ci-jobs li.ok em { color: #2f8a52; }
.ci-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ci-facts li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* 11 The author: the handwritten "asto" large on the left, who and how to reach on the right */
.sec.author { max-width: 1280px; overflow: hidden; padding-top: 200px; padding-bottom: 90px; margin-top: 60px; }
.author .field { z-index: 0; }
.au-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.au-logo { display: block; overflow: hidden; }
.au-logo img { display: block; width: 132.2%; margin: -16.1%; filter: brightness(0); }   /* cut to its letters (the svg has room round them), in ink: it was drawn white for a dark page */
.author-body { display: grid; justify-items: start; }
.au-name { font-size: clamp(30px, 3.2vw, 46px); }
.au-role { margin: 10px 0 0; font: 500 14px var(--mono); color: var(--ink); }
.author .sec-lead { max-width: 560px; }
.author .cta { margin-top: 26px; }
@media (max-width: 1000px) { .au-grid { grid-template-columns: minmax(0, 1fr); } }
/* the portfolio button, as on the Luma site: a yellow pill with an arrow that leans out on hover */
.site-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--leaf); color: var(--ink); font: 600 15px var(--sans); transition: filter .25s, transform .35s var(--ease-out); }
.site-btn:hover { filter: brightness(1.06); }
.site-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.site-btn:hover svg { transform: translate(2px, -2px); }

/* 11 Download: a card per device with a big button; the Mac's card types the install commands */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }   /* minmax: a long terminal line must not widen a card */
.dl-card { display: grid; grid-template-rows: auto 1fr auto auto; justify-items: start; gap: 18px; padding: 24px; border-radius: 24px; border: 1.5px solid var(--ink); background: var(--sheet); }
.dl-top { display: flex; align-items: center; gap: 14px; }
.dl-top b { display: block; font: 700 22px var(--display); letter-spacing: -0.02em; }
.dl-top span { font-size: 14px; color: var(--muted); }
.dl-ic { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.dl-ic rect { fill: var(--leaf); }
.dl-term { margin: 0; width: 100%; }
.dl-term .term-body { min-height: 150px; }
.dl-term .term-body p { margin: 0; white-space: pre-wrap; } .dl-term .t-m { color: #fffcf666; }
.dl-term .cur { display: inline-block; width: 7px; height: 1.1em; vertical-align: -2px; background: var(--leaf); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dl-pair { list-style: none; counter-reset: p; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; align-content: start; }
.dl-pair li { counter-increment: p; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; transition: border-color .3s, background .3s; }
.dl-pair li::before { content: counter(p); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--line); font: 600 12px var(--mono); transition: background .3s; }
.dl-pair li.on { border-color: var(--ink); background: color-mix(in srgb, var(--leaf) 18%, var(--sheet)); }
.dl-pair li.on::before { background: var(--leaf); }
.dl-card .site-btn { height: 56px; padding: 0 26px; font-size: 16px; }
.dl-meta { font: 500 12px var(--mono); color: var(--faint); }
.dl-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-steps li { display: flex; gap: 14px; }
.dl-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: var(--sheet); font: 600 14px var(--mono); }
.dl-steps b { font: 700 17px var(--display); }
.dl-steps p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .dl, .dl-steps { grid-template-columns: minmax(0, 1fr); } }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 26px var(--side); font: 500 12px var(--mono); color: var(--faint); border-top: 1px solid var(--line); }

/* Tablet and phone */
@media (max-width: 1000px) {
  .demo, .team2, .row, .mem, .faces, .sdui, .eng, .author-body { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row-text { order: 0; }
  .gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count:nth-child(3) { padding-left: 0; border-left: 0; }
  .sdui-arrow { width: 2px; height: 40px; justify-self: center; } .sdui-arrow span { animation: none; }
  .limits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .orb-up canvas.mini { width: 46px; height: 46px; } .orb-up span { display: none; } .orb-up { translate: -50% -23px; transform-origin: 50% 23px; }
  .o2-sena { width: 58px !important; height: 58px !important; translate: -50% calc(-100% - 22px); }
  .o2-input { font-size: 12px; min-height: 44px; padding: 8px 12px; } .oc-t b { font-size: 12px; } .o-pop { width: 240px; }
  .screens { padding: 0 0 150px 0; }
  .phone { width: 44%; }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attack { font-size: 10px; white-space: normal; max-width: 64%; line-height: 1.35; }
  .mem-ask { min-width: 0; width: 100%; }
  .sdui-apps { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: minmax(0, 1fr); }
  .count + .count { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sec.author { padding-top: 170px; }
  .author .cta .btn { flex: 1 1 40%; }
}
/* the phone's column is narrow: denser cards, so the whole panel fits */
.p2-sheet { gap: 6px; padding: 10px 9px; }
.p2-sheet .pb2-stats p, .p2-sheet .pb2-row, .p2-sheet .pb2-switch { padding: 7px 10px; border-radius: 14px; }
.p2-sheet .pb2-stats b { font-size: 14px; } .p2-sheet .pb2-row b, .p2-sheet .pb2-switch { font-size: 11px; }
.p2-sheet .pb2-row span, .p2-sheet .pb2-stats span { font-size: 9.5px; } .p2-sheet .pb2-row em { font-size: 9.5px; padding: 2px 7px; }
.p2-sheet .pb2-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p2-sheet .pb2-row p { min-width: 0; }
.p2-sheet .pb2-buttons u { padding: 8px; font-size: 11px; }
