/* AnyFlow website: pitch black, rose neon from the prism logo. */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-1: #070507;
  --bg-2: #0d0a0c;
  --line: #1f1a1d;
  --line-2: #2c2428;
  --text: #f5f3f4;
  --text-2: #b4adb1;
  --text-3: #7a7277;
  --rose: #cf5976;
  --rose-2: #e98aa1;
  --rose-3: #f3b8c6;
  --wine: #a3365c;
  --grad: linear-gradient(90deg, #f0c3cd 0%, #e98aa1 45%, #cf5976 100%);
  --glow: 0 0 24px rgba(233, 138, 161, .35), 0 0 64px rgba(207, 89, 118, .18);
  --radius: 18px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--rose-2); text-decoration: none; }
a:hover { color: var(--rose-3); }
::selection { background: rgba(207, 89, 118, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose-2); margin-bottom: 16px;
}
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 30px; object-fit: cover; mix-blend-mode: screen; }
.brand .word { display: inline-flex; }
.brand b { font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; font: 600 15px/1 var(--font); cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; border-color: var(--rose); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn-primary:hover { color: #fff; background: #d96683; box-shadow: var(--glow); }
.btn-outline { background: transparent; color: var(--rose-2); border-color: var(--rose); }
.btn-outline:hover { color: var(--rose-3); background: rgba(207, 89, 118, .08); box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: #4a3d43; background: rgba(255,255,255,.03); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 68% 42%, rgba(207, 89, 118, .16), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--text-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓"; color: var(--rose-2); margin-right: 7px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art img {
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 104px 0; }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.section-head p { font-size: 18px; color: var(--text-2); margin: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Prompt demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.console {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px;
  box-shadow: 0 40px 120px -40px rgba(207, 89, 118, .35);
}
.console-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2226; }
.ask {
  display: flex; align-items: center; gap: 12px; background: #000; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; font-size: 15px; min-height: 54px;
}
.ask .caret { width: 2px; height: 20px; background: var(--rose-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask svg { flex: none; color: var(--rose-2); }
.flow { margin-top: 18px; display: grid; gap: 10px; }
.node {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #0a0709;
  border: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.node.on { opacity: 1; transform: none; }
.node .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-2); width: 64px; flex: none; }
.node.when { border-color: rgba(207, 89, 118, .55); box-shadow: inset 3px 0 0 var(--rose); }
.node-line { width: 2px; height: 10px; background: var(--line-2); margin-left: 46px; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(207, 89, 118, .45); background: var(--bg-2); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--rose-2);
  border: 1px solid rgba(207, 89, 118, .4); background: rgba(207, 89, 118, .07);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #000); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: block; font: 700 14px/1 var(--mono); color: var(--rose-2); letter-spacing: .1em; margin-bottom: 22px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--text-2); }

/* Chips */
.chips-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chips-cols .card:hover { transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: #000; }

/* AI section */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chat { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; display: grid; gap: 12px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.msg.me { justify-self: end; background: var(--rose); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: #141013; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg small { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.pill b { color: var(--text); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--rose); background: radial-gradient(circle, var(--rose-2) 0 3px, transparent 4px); }

/* Cross-device diagram */
.mesh { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; }
.mesh-map { position: relative; aspect-ratio: 4 / 3; }
.mesh-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mesh-line { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-dasharray: 6 8; opacity: .8; animation: stream 1.4s linear infinite; vector-effect: non-scaling-stroke; }
.mesh-line:nth-child(2) { animation-duration: 1.1s; stroke: var(--rose-2); }
.mesh-line:nth-child(3) { animation-duration: 1.7s; stroke: var(--wine); }
.mesh-line:nth-child(4) { animation-duration: 1.25s; }
@keyframes stream { to { stroke-dashoffset: -28; } }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px;
  padding: 14px 16px 10px; border-radius: 18px; background: #000; border: 1.5px solid var(--rose); box-shadow: var(--glow);
}
.hub img { width: 64px; height: 48px; object-fit: cover; mix-blend-mode: screen; }
.hub span { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.device {
  position: absolute; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 14px; background: #0d090b; border: 1px solid var(--line-2); min-width: 150px;
}
.device svg { grid-row: span 2; color: var(--rose-2); }
.device b { font-size: 14px; line-height: 1.2; }
.device small { font-size: 12px; color: var(--text-3); line-height: 1.2; }
.d1 { left: 17.5%; top: 20.7%; } .d2 { left: 82.5%; top: 20.7%; } .d3 { left: 17.5%; top: 79.3%; } .d4 { left: 82.5%; top: 79.3%; }
.mesh-log { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mesh-log li {
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2);
  padding: 10px 12px; border-radius: 12px; background: #000; border: 1px solid var(--line);
}
.mesh-log b { color: var(--text); font-weight: 600; }
.mesh-log .when { font: 600 12px var(--mono); color: var(--rose-2); }
.mesh-log .arrow { color: var(--rose-2); }

/* Privacy band */
.band {
  border: 1px solid var(--line-2); border-radius: 26px; padding: 56px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(207, 89, 118, .14), transparent 60%), var(--bg-1);
}
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }

/* CTA */
.cta { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(207, 89, 118, .22), transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.035em; margin: 0 0 18px; line-height: 1.05; font-weight: 800; }
.cta p { color: var(--text-2); font-size: 18px; margin: 0 auto 34px; max-width: 520px; }
.cta .hero-cta { justify-content: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
details summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--rose-2); border-bottom: 2px solid var(--rose-2); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details .ans { padding: 0 0 22px; color: var(--text-2); }
details .ans p { margin: 0 0 10px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 90% at 85% 0%, rgba(207, 89, 118, .14), transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 14px; font-weight: 800; position: relative; }
.page-hero p { color: var(--text-2); font-size: 18px; max-width: 640px; margin: 0; position: relative; }

/* ---------- Docs / legal layout ---------- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 100px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.toc a { display: block; padding: 7px 12px; margin-left: -12px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--rose-2); border-left-color: var(--rose); }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; letter-spacing: -.02em; margin: 64px 0 14px; scroll-margin-top: 92px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 34px 0 10px; scroll-margin-top: 92px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font: 14px var(--mono); background: #120d10; border: 1px solid var(--line-2); padding: 2px 7px; border-radius: 6px; color: var(--rose-3); word-break: break-all; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-1); }
.prose td { color: var(--text-2); }
.table-wrap { overflow-x: auto; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--rose); background: var(--bg-1); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.callout p { margin: 0; }
.callout.warn { border-left-color: #e0a84a; }
.kbd { font: 600 13px var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: #0d0a0c; color: var(--text); white-space: nowrap; }
.copy-box { display: flex; gap: 10px; align-items: center; background: #000; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 16px; margin: 14px 0; }
.copy-box code { flex: 1; background: none; border: 0; padding: 0; font-size: 15px; }
.legal-meta { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -1px; }
.support-grid .card { display: flex; flex-direction: column; }
.support-grid .card .btn { margin-top: auto; align-self: flex-start; }
.support-grid .card p { margin-bottom: 22px; }

.crumbs { position: relative; font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; margin: 0 6px; color: var(--text-3); }
.link-cards .card { display: flex; flex-direction: column; color: var(--text); }
.link-cards .card:hover { color: var(--text); }
.link-cards .card h3 { margin-top: 10px; }
.link-cards .more { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; color: var(--rose-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: #000; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.foot-grid a { display: block; color: var(--text-2); font-size: 15px; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--text-3); font-size: 14px; max-width: 300px; margin: 14px 0 0; }
.tagline { font-size: 11px; letter-spacing: .32em; color: var(--text-3); text-transform: uppercase; margin-top: 10px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* ---------- Intro video ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center;
  transition: opacity .7s ease, visibility .7s;
}
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .5s; }
.intro.playing video { opacity: 1; }
.intro-skip {
  position: absolute; right: 22px; bottom: 22px; z-index: 2; height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); font: 600 14px var(--font); cursor: pointer;
}
.intro-skip:hover, .intro-sound:hover { border-color: var(--rose); color: var(--rose-3); }
.intro-sound {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; height: 40px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .6); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); font: 600 14px var(--font); cursor: pointer;
}
.intro-sound[hidden] { display: none; }

/* Scroll-built flow behind the home page (drawn by flow-bg.js) */
.flow-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* No z-index here: the prism image must blend with the canvas so the beams leave its rays. */
main, .site-footer { position: relative; }
body.intro-open { overflow: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .node { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .demo, .ai, .band-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .grid-3, .steps, .support-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin-top: 14px; border-bottom: 1.5px solid var(--rose); }
  .section { padding: 72px 0; }
  .grid-3, .steps, .support-grid, .chips-cols { grid-template-columns: 1fr; }
  .band { padding: 32px 22px; }
  .hero-cta .btn { flex: 1; }
  .prose h2 { font-size: 26px; }
  .device { min-width: 0; padding: 8px 10px; column-gap: 8px; }
  .device b { font-size: 12px; }
  .device small { display: none; }
  .device svg { grid-row: auto; }
  .mesh { padding: 14px; }
  .mesh-log li { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .mesh-log .when { width: 100%; }
  .d1, .d3 { left: 24%; } .d2, .d4 { left: 76%; }
  .hub { padding: 10px 12px 8px; } .hub img { width: 48px; height: 36px; }
}
