:root {
  color-scheme: light;
  --bg: #edf0f3;
  --panel: #f9fafb;
  --line: #17212d22;
  --ink: #11151a;
  --muted: #48535f;
  --dim: #5a6672;
  --rose: #78547c;
  --ice: #345480;
  --error: #942d3a;
  --field: #fff;
  --field-border: #b0b8c2;
  --primary: #13171d;
  --primary-hover: #313943;
  --primary-ink: #fff;
  --radius: 26px;
  --spring: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Content panels sit on the shared light page canvas. */
.story-panel, .sample-card, .coverage-row, .setup-steps li, .site-dock,
.auth-card, .auth-visual, .lead, .sidebar-panel, .settings-card,
.empty-state, .source-row, .dialog {
  color-scheme: dark;
  --panel: #141518;
  --line: #ffffff26;
  --ink: #f7f8fa;
  --muted: #c1c6cd;
  --dim: #a4adb8;
  --rose: #e1abd3;
  --ice: #d7e4ff;
  --error: #f5b5bb;
  --field: #101216;
  --field-border: #454b54;
  --primary: #f6f7f8;
  --primary-hover: #dfe5ec;
  --primary-ink: #13171d;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
::selection { color: #080808; background: var(--rose); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 630; }
p { line-height: 1.55; }
small { color: var(--dim); }
.frame { max-width: 1330px; margin-inline: auto; padding-inline: 52px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 650; letter-spacing: -.05em; }
.brand img { flex: 0 0 auto; display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 630;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.button:active { transform: translateY(1px); }
.button-sm { min-height: 39px; padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.button-primary { color: var(--primary-ink); background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--field-border); }
.button-quiet:hover { background: var(--panel); border-color: var(--muted); }
.button-danger { color: #161010; background: #f2adae; }
.live-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #496da9; box-shadow: 0 0 10px #668ec440; }
.source-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; color: white; font-size: 20px; font-weight: 550; }
.telegram { --material: linear-gradient(180deg,#82cee9 0%,#2aabee 22%,#229ed9 38%,#1b6294 54%,#113855 69%,#0b1c2d 93%);
  --highlight: #a0e4fa; --shine: #54b7ee; }
.web { --material: linear-gradient(166deg,#9aa8b6,#7a8a9b 40%,#58687a 61%,#424f62 80%,#2b3544);
  --highlight: #a6b0bc75; --shine: #607087; }
.max { --material: linear-gradient(178deg,#429fe2,#4280d3 37%,#6142c5 64%,#6e1aff 87%,#8c4ed6);
  --highlight: #79c7f5; --shine: #9500ff70; }
.vk { --material: linear-gradient(168deg,#6bb5ff,#2686ef 41%,#1259a8 72%,#112c51);
  --highlight: #b6dcff; --shine: #5da6ff; }
.whatsapp { --material: linear-gradient(168deg,#57d69d,#1ba775 34%,#136b53 68%,#103b31);
  --highlight: #9ce8bd; --shine: #56ce9e; }
.source-icon, .lead-symbol {
  background: radial-gradient(52% 47% at 29% 24%,var(--highlight),transparent 90%),
              radial-gradient(45% 36% at 70% 41%,var(--shine),transparent 100%),
              var(--material);
  box-shadow: inset 0 1px 5px #fff3, 0 7px 21px #0005;
}

.site-header, .auth-header { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-nav, .top-actions { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.site-nav a, .top-login { color: var(--muted); }
.site-nav a:hover, .top-login:hover { color: var(--ink); }
.product-devices { position: relative; perspective: 1050px; }
.floating-device {
  position: absolute;
  container-type: inline-size;
  isolation: isolate;
  filter: drop-shadow(0 15px 20px #18233048);
  transform: translate3d(var(--depth-x,0px), calc(var(--depth-y,0px) + var(--scroll-depth,0px)), 0)
             rotateX(calc(var(--tilt-x,0deg) + var(--depth-rx,0deg)))
             rotateY(calc(var(--tilt-y,0deg) + var(--depth-ry,0deg)))
             rotateZ(var(--tilt-z,0deg));
  transition: transform .6s var(--spring);
}
.screen-plane { position: absolute; overflow: hidden; background: #090909; }
.screen-plane img { display: block; width: 100%; height: 100%; }
.device-lid { position: relative; }

.floating-phone {
  --tilt-x: 4deg;
  --tilt-y: -12deg;
  --tilt-z: 8deg;
  aspect-ratio: 389 / 800;
}
.phone-bezel {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(.85) brightness(.83);
}
.floating-phone .screen-plane {
  inset: 1.72% 4.1% 1.55%;
  border-radius: 12% / 6%;
  color: #f7f8fa;
}
.floating-phone .screen-plane img {
  position: absolute;
  bottom: 0;
  height: 94%;
}
.phone-status {
  position: absolute;
  z-index: 1;
  top: 2.5%;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 4cqw;
  line-height: 1;
  font-weight: 650;
}
.phone-status::after {
  content: "";
  width: 5.8cqw;
  height: 2.7cqw;
  border: 1px solid #fff9;
  border-radius: .6cqw;
  background: #e6e6e6;
  box-shadow: inset 0 0 0 .45cqw #090909;
}

.floating-mac { --tilt-x: 5deg; --tilt-y: -8deg; --tilt-z: 4deg; }
.floating-mac .device-lid {
  aspect-ratio: 310.8 / 207;
  border-radius: 2.55cqw 2.55cqw .9cqw .9cqw;
  background: linear-gradient(135deg,#353535,#101010 13% 79%,#3b3b3b);
  box-shadow: inset 0 0 0 max(1px,.26cqw) #646464, inset 0 0 0 .62cqw #080808;
}
.floating-mac .screen-plane {
  inset: 2.03% 1.35%;
  border-radius: 1.6cqw 1.6cqw .55cqw .55cqw;
}
.floating-mac .screen-plane img {
  position: absolute;
  inset-block: 4.75% 0;
  height: 95.25%;
  object-fit: contain;
}
.floating-mac .screen-plane::after {
  content: "";
  position: absolute;
  inset: .94% auto auto 50%;
  width: 3.9%;
  aspect-ratio: 1.9;
  translate: -50% 0;
  border-radius: 99px;
  background: radial-gradient(circle,#263039 0 5%,#14191c 6% 9%,#050505 10%);
}
.macbook-base { position: relative; width: 108.6%; margin: -.45cqw -4.3% 0; }
.macbook-base img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(3.94% 0,96.06% 0,100% 100%,0 100%);
  filter: grayscale(1) brightness(.84);
}
.macbook-base::after {
  content: "";
  display: block;
  height: 1.38cqw;
  margin-top: -.09cqw;
  border-radius: 0 0 2.4cqw 2.4cqw;
  background: radial-gradient(ellipse at 50% 0,#151515 0 7%,transparent 7.5%),
              linear-gradient(180deg,#626262,#393939 28%,#242424 72%,#151515);
}

.floating-tablet {
  --tilt-x: 7deg;
  --tilt-y: -9deg;
  --tilt-z: -3deg;
  position: relative;
  width: min(94%,560px);
  margin: 20px auto 8px;
}
.floating-tablet .device-lid {
  aspect-ratio: 281.6 / 215.5;
  border-radius: 4.55cqw;
  background: linear-gradient(145deg,#f3f3f3,#bababa 52%,#dedede 73%,#a9a9a9);
  box-shadow: inset 0 0 0 max(1px,.11cqw) #25252540, .24cqw .43cqw 0 #a1a1a1;
}
.floating-tablet .device-lid::before {
  content: "";
  position: absolute;
  inset: max(1px,.48cqw);
  border-radius: 4.07cqw;
  background: #0c0c0c;
}
.floating-tablet .device-lid::after {
  content: "";
  position: absolute;
  top: 1.94%;
  left: 50%;
  width: .54cqw;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle,#414141,#181818 50%,#050505 66%);
}
.floating-tablet .screen-plane {
  inset: 50% auto auto 50%;
  width: 94.02%;
  aspect-ratio: 4 / 3;
  translate: -50% -50%;
  border-radius: 2.35cqw;
}

.section-label { color: var(--dim); font-size: 12px; font-weight: 610; margin-bottom: 15px; }
.section-intro h2, .pilot h2, .site-cta h2 { font-size: clamp(33px,4vw,51px); line-height: 1.035; letter-spacing: -.048em; text-wrap: balance; }
.section-intro > p:last-child, .pilot p, .site-cta p { max-width: 475px; color: var(--muted); margin-top: 15px; }
.coverage-list { display: grid; gap: 16px; }
.coverage-list article {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) 98px;
  grid-template-areas: "copy tile" "status tile";
  align-items: center;
  align-content: center;
  column-gap: 22px;
  row-gap: 9px;
  min-height: 123px;
  padding: 12px 12px 9px 23px;
}
.coverage-list article:nth-child(even) {
  grid-template-columns: 98px minmax(0,1fr);
  grid-template-areas: "tile copy" "tile status";
  padding-inline: 12px 20px;
}
.coverage-list article::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px 2px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 2px 4px #ffffff08;
}
.coverage-list article > div { grid-area: copy; align-self: end; padding-top: 5px; }
.coverage-list .availability { grid-area: status; justify-self: start; align-self: start; }
.coverage-list .source-icon {
  grid-area: tile;
  align-self: center;
  width: 98px;
  height: 98px;
  border-radius: 26% / 24%;
  transform: translateY(-4px);
}
.coverage-list h3 { font-size: 16px; letter-spacing: -.025em; }
.coverage-list p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.availability { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 4px 7px; font-size: 11px; white-space: nowrap; }
.availability.ready { border-color: #3c473e; color: #c0d0b6; }
.pilot { display: grid; grid-template-columns: .64fr 1.36fr; gap: 25px; }
.pilot-flag { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; padding: 17px 0; font-size: 15px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 18px 0; color: var(--muted); font-size: 14px; }
.site-cta { margin-bottom: 49px; padding: 35px 52px; border: 1px solid var(--line); background: var(--panel); border-radius: 23px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.site-cta h2 { font-size: clamp(29px,3vw,42px); }
.site-cta p { margin-top: 9px; }
.site-footer { padding-block: 17px 31px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 19px; align-items: center; font-size: 13px; color: var(--dim); }
.site-footer a:hover { color: var(--ink); }

.auth-header { border-bottom: 1px solid var(--line); }
.auth-layout { display: grid; align-items: center; grid-template-columns: minmax(320px,.74fr) minmax(0,1.1fr); gap: clamp(36px,6.6vw,104px); min-height: calc(100dvh - 74px); padding-block: 46px; }
.auth-card { max-width: 440px; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 28px; }
.auth-copy h1 { font-size: clamp(30px,3.8vw,46px); letter-spacing: -.05em; line-height: 1.09; text-wrap: balance; }
.auth-copy > p:last-child { color: var(--muted); margin-top: 14px; font-size: 15px; text-wrap: pretty; }
.auth-form { display: grid; gap: 16px; margin-top: 30px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 550; }
input, textarea, select { width: 100%; color: var(--ink); background: var(--field); border: 1px solid var(--field-border); border-radius: 10px; padding: 11px 12px; font-weight: 450; }
input, select { min-height: 44px; }
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.auth-form .button { margin-top: 3px; width: 100%; }
.form-feedback { color: var(--error); font-size: 13px; overflow-wrap: anywhere; }
.auth-switch { margin-top: 17px; color: var(--muted); font-size: 14px; }
.auth-switch a { text-decoration: underline; text-underline-offset: 3px; color: var(--ice); }
.auth-visual { min-width: 0; }
.auth-visual-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 15px; }
.auth-visual-title h2 { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: -.035em; }
.auth-visual-title a { color: var(--ice); font-size: 12px; white-space: nowrap; }

.portal { min-height: 100dvh; display: grid; grid-template-columns: 218px minmax(0,1fr); }
.portal-nav { display: flex; flex-direction: column; min-width: 0; padding: 26px 15px 20px; border-right: 1px solid var(--line); background: var(--panel); }
.portal-nav > .brand { margin: 0 9px 35px; }
.workspace-chip { display: flex; align-items: center; gap: 9px; padding: 10px 8px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 11px; }
.workspace-chip > div:last-child { min-width: 0; }
.workspace-chip strong, .workspace-chip small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-chip strong { font-size: 13px; font-weight: 600; }
.workspace-chip small { font-size: 10px; margin-top: 2px; }
.workspace-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; background: #dfe7f3; color: #263d62; }
.workspace-nav, .nav-footer { display: grid; gap: 5px; }
.nav-link { display: flex; gap: 8px; align-items: center; appearance: none; border: 1px solid transparent; background: none; color: var(--muted); border-radius: 8px; text-align: left; padding: 9px 10px; font-size: 13px; }
.nav-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: #e7ebf0; border-color: var(--line); }
.nav-footer { margin-top: auto; padding-top: 38px; }
.nav-footer a { padding-inline: 10px; font-size: 12px; color: var(--dim); }
.workspace-main { min-width: 0; }
.workspace-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 66px; padding: 9px 28px; border-bottom: 1px solid var(--line); }
.workspace-top-right { display: flex; gap: 13px; align-items: center; }
.workspace-section { color: var(--muted); font-size: 13px; }
.status-time { color: var(--muted); white-space: nowrap; font-size: 12px; }
.mobile-brand { display: none; }
#workspace-content { max-width: 1120px; margin-inline: auto; padding: 28px 30px 52px; }
.workspace-notice { margin: 14px 30px 0; color: #234573; background: #e3ebf7; border: 1px solid #7691b84d; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.portal-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.portal-title h1 { font-size: clamp(28px,4vw,45px); letter-spacing: -.065em; line-height: 1.04; }
.portal-title p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.demo-pill { display: inline-block; border-radius: 7px; padding: 4px 7px; font-size: 10px; background: #dce5f3; color: #253b60; margin-bottom: 7px; }
.inbox-layout { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 18px; align-items: start; }
.cards { display: grid; gap: 9px; }
.lead {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) 72px 35px;
  grid-template-areas: "text tile go";
  gap: 13px;
  min-height: 91px;
  padding: 7px 12px 6px 15px;
  align-items: center;
}
.lead:nth-child(even) {
  grid-template-columns: 72px minmax(0,1fr) 35px;
  grid-template-areas: "tile text go";
  padding-left: 9px;
}
.lead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px 3px #ffffff0a;
}
.lead-symbol {
  grid-area: tile;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 26% / 24%;
  color: white;
  font-size: 24px;
  transform: translateY(-4px);
}
.lead > .lead-link { grid-area: go; }
.lead-content { grid-area: text; min-width: 0; }
.lead-text { text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.35; }
.lead-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); margin-top: 6px; font-size: 11px; }
.lead-meta strong { color: #cedaf3; font-weight: 550; }
.lead-link, .icon-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #3a3b45; background: #191a1e; color: white; }
.lead:nth-child(even) .lead-link { background: #eff0f0; color: #101018; }
.lead-link:hover, .icon-button:hover { border-color: #afb8d7; }
.sidebar-panel, .settings-card, .empty-state { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 16px; }
.sidebar-panel h2, .settings-card h2 { font-size: 16px; letter-spacing: -.035em; }
.sidebar-panel h2 { margin-bottom: 13px; }
.sidebar-panel p, .settings-card p { color: var(--muted); font-size: 13px; }
.sidebar-panel ul { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.sidebar-panel li { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.sidebar-panel li .live-dot { width: 5px; height: 5px; }
.empty-state { padding: 26px; }
.empty-state h2 { font-size: 22px; letter-spacing: -.04em; }
.empty-state p { margin-block: 7px 13px; color: var(--muted); font-size: 14px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.62fr); gap: 18px; align-items: start; }
.settings-card { padding: 20px; }
.settings-card h2 { margin-bottom: 12px; }
.settings-card form, .dialog form { display: grid; gap: 14px; }
.settings-card .button { justify-self: start; }
.preset-list { display: flex; flex-wrap: wrap; gap: 7px; }
.preset-pill { border: 1px solid var(--field-border); background: var(--field); color: var(--muted); border-radius: 8px; padding: 7px 9px; font-size: 12px; }
.preset-pill[aria-pressed="true"] { border-color: #758db0; background: #dfe9f8; color: #1e3a65; }
.check-label { display: flex; align-items: center; gap: 9px; }
.check-label input { width: 17px; min-height: 17px; accent-color: #406aab; flex: 0 0 auto; }
.helper { font-size: 12px !important; color: var(--muted); }
.example-card { margin-top: 13px; }
.example-card .lead { grid-template-columns: minmax(0,1fr) 48px 34px; grid-template-areas: "text tile go"; padding: 12px; }
.example-card .lead-symbol { width: 48px; height: 48px; }
.source-list { display: grid; gap: 8px; }
.source-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 21px; }
.source-row h2 { font-size: 15px; overflow-wrap: anywhere; }
.source-row p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.source-row p a:hover { text-decoration: underline; }
.source-actions { display: flex; gap: 5px; }
.source-actions .button { min-height: 32px; border-radius: 7px; padding: 5px 8px; }
.source-state { font-size: 11px; color: #deb7d8; }
.source-state.active { color: #bbcca9; }
.dialog { width: min(94vw,480px); padding: 22px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 70px #0009; }
.dialog::backdrop { background: #000a; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin-bottom: 16px; }
.dialog h2 { font-size: 22px; letter-spacing: -.04em; }
.dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }

@media (max-width: 1000px) {
  .frame { padding-inline: 24px; }
  .auth-layout { gap: clamp(22px,4vw,42px); }
  .portal { grid-template-columns: 184px minmax(0,1fr); }
  .inbox-layout { grid-template-columns: minmax(0,1fr) 170px; }
}
@media (max-width: 750px) {
  .site-header, .auth-header { height: 62px; }
  .site-nav { display: none; }
  .top-actions { gap: 16px; }
  .pilot-flag { margin-bottom: 0; }
  .auth-layout { grid-template-columns: minmax(0,1fr); gap: 23px; align-content: start; padding-block: 34px; }
  .auth-card { margin-inline: auto; padding: 22px; }
  .auth-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .auth-visual-title { margin-bottom: 9px; }
  .portal { grid-template-columns: minmax(0,1fr); padding-bottom: 70px; }
  .portal-nav {
    position: fixed;
    z-index: 3;
    left: 50%;
    bottom: max(11px,env(safe-area-inset-bottom));
    width: max-content;
    transform: translateX(-50%);
    border: 1px solid #ffffff27;
    border-radius: 999px;
    padding: 4px;
    background: #171b20ec;
    box-shadow: inset 0 1px 6px #ffffff18, 0 8px 26px #000a;
    backdrop-filter: blur(20px);
  }
  .portal-nav > .brand, .workspace-chip, .nav-footer { display: none; }
  .workspace-nav { display: flex; align-items: center; gap: 1px; }
  .workspace-nav button { display: grid; place-items: center; color: #e0e5eb; width: 49px; height: 49px; border-radius: 50%; padding: 0; text-align: center; }
  .workspace-nav button:is(:hover,[aria-current="page"]) { color: white; background: #ffffff1b; border-color: #ffffff28; box-shadow: inset 0 1px 6px #ffffff18; }
  .workspace-nav .nav-icon { width: 20px; height: 20px; }
  .workspace-nav .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-top { padding-inline: 16px; min-height: 59px; }
  .mobile-brand { display: inline-flex; font-size: 17px; }
  .workspace-section, .status-time { display: none; }
  #workspace-content { padding: 19px 16px 21px; }
  .workspace-notice { margin: 11px 16px 0; }
  .inbox-layout, .settings-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .portal-title { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .portal-title select { width: auto; min-height: 34px; padding: 6px 9px; font-size: 13px; }
  .source-actions { grid-column: 2; justify-self: start; flex-wrap: wrap; }
  .source-row { align-items: start; }
  .cards { gap: 13px; }
  .lead, .lead:nth-child(even) { gap: 8px 12px; padding: 14px; }
  .lead-text { line-height: 1.42; text-wrap: pretty; }
  .lead-meta { margin-top: 8px; gap: 2px 7px; line-height: 1.45; }
  .lead-meta time { white-space: nowrap; }
  .lead-divider { display: none; }
}
@media (max-width: 540px) {
  .lead {
    grid-template-columns: minmax(0,1fr) 58px;
    grid-template-areas: "text tile" "text go";
  }
  .lead:nth-child(even) {
    grid-template-columns: 58px minmax(0,1fr);
    grid-template-areas: "tile text" "go text";
  }
  .lead-symbol { width: 58px; height: 58px; transform: none; }
  .lead > .lead-link { justify-self: center; }
}
@media (max-width: 390px) {
  .frame { padding-inline: 16px; }
  .coverage-list article { grid-template-columns: minmax(0,1fr) 78px; padding-left: 16px; column-gap: 12px; }
  .coverage-list article:nth-child(even) { grid-template-columns: 78px minmax(0,1fr); padding-right: 14px; }
  .coverage-list .source-icon { width: 78px; height: 78px; }
  .site-footer { align-items: flex-start; }
  .site-footer > div { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.portal-title select { width: auto; min-width: 130px; }
.mobile-logout { display: none; }
@media (max-width: 750px) {
  .mobile-logout:not([hidden]) { display: grid; }
  .workspace-top-right { gap: 7px; }
  input, textarea { font-size: 16px; }
}
.source-icon svg, .lead-symbol svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The public site uses the MiniApp's raised source tiles inside scrollable chapters. */
html:has(body[data-page="index"]) { overflow-x: clip; }
.site-story {
  --story-edge: clamp(10px,2.1vw,32px);
  --story-inset: clamp(24px,4.2vw,66px);
  --story-radius: clamp(26px,3.8vw,52px);
  --story-gap: clamp(25px,4.1vw,60px);
  max-width: 1650px;
  margin-inline: auto;
  padding: clamp(10px,1.5vw,22px) var(--story-edge) 0;
}
.story-section {
  --scene-cover: clamp(78px,11vw,168px);
  position: relative;
  scroll-margin-top: 12px;
}
.story-panel {
  position: relative;
  margin-block-end: var(--story-gap);
  padding: clamp(36px,6vw,86px) var(--story-inset);
  border: 1px solid var(--line);
  border-radius: var(--story-radius);
  background: var(--panel);
  box-shadow: 0 12px 40px #2235470b;
}
.opening { --scene-cover: clamp(110px,13vw,200px); }
.opening-panel {
  padding-top: 0;
  padding-bottom: 25px;
  margin-bottom: calc(var(--story-gap) + 52px);
  background: radial-gradient(65% 77% at 91% 43%,#244055 0%,#152535 34%,transparent 100%), #101215;
}
.site-header { min-width: 0; }
.site-header .brand { letter-spacing: -.055em; font-size: 24px; }
.site-nav {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff10;
  box-shadow: inset 0 1px 5px #ffffff18;
}
.opening-copy { padding-top: clamp(36px,4.6vw,74px); }
.opening-copy h1 {
  font-size: clamp(42px,7vw,112px);
  font-weight: 635;
  line-height: 1.035;
  letter-spacing: -.05em;
  word-spacing: .025em;
  text-wrap: balance;
}
.opening-copy h1 span, .story-head h2 span { display: inline-block; max-width: 100%; }
.opening-deck {
  margin-top: 23px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 19px 30px;
}
.opening-deck p { max-width: 47ch; font-size: clamp(15px,1.35vw,19px); color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-actions .button-quiet { background: #090c1350; }
.hero-actions .button-quiet:hover { background: #ffffff18; }
.opening-media {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(22px,6vw,100px);
  position: relative;
  margin-top: clamp(32px,3.3vw,54px);
  min-height: clamp(385px,31vw,510px);
}
.feed-preview { position: relative; z-index: 1; width: min(100%,520px); margin-bottom: 18px; }
.feed-heading { margin-bottom: 16px; font-size: clamp(20px,2.25vw,35px); letter-spacing: -.055em; }
.sample-card {
  --tile-size: clamp(102px, 11vw, 168px);
  --card-radius: clamp(22px,3vw,40px);
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: var(--tile-size);
  grid-template-columns: minmax(0,1fr) var(--tile-size);
  grid-template-areas: "arrow tile" "copy tile";
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
  padding-left: 17px;
  margin-bottom: 14px;
  border-radius: var(--card-radius);
}
.sample-card:nth-of-type(even) {
  grid-template-columns: var(--tile-size) minmax(0,1fr);
  grid-template-areas: "tile arrow" "tile copy";
  padding: 0 14px 0 0;
}
.sample-card::before {
  content: "";
  position: absolute;
  inset: 12px 0 0;
  z-index: -1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: inherit;
  box-shadow: inset 0 1px 4px #ffffff12, 0 9px 26px #22354728;
}
.sample-text { grid-area: copy; display: grid; align-self: end; gap: 4px; padding: 0 0 15px; line-height: 1.23; }
.sample-text strong { font-size: clamp(14px,1.3vw,19px); font-weight: 620; }
.sample-text > span { font-size: clamp(12px,1.03vw,15px); color: var(--muted); }
.sample-arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 23px;
  width: 35px;
  height: 35px;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  color: #fff;
  background: #141414;
  box-shadow: inset 0 0 5px #ffffff24;
  transition: transform .24s var(--spring);
}
.sample-card:nth-of-type(even) .sample-arrow { justify-self: end; color: #101010; background: #fff; }
.sample-card:hover .sample-arrow { transform: translate(2px,-2px); }
.sample-tile {
  grid-area: tile;
  height: var(--tile-size);
  align-self: center;
  border-radius: 27% / 25%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #fff;
  font-size: clamp(12px,1.35vw,18px);
  letter-spacing: -.028em;
  background: radial-gradient(61% 54% at 24% 18%,var(--highlight),transparent),
              radial-gradient(66% 52% at 55% 40%,var(--shine),transparent),
              var(--material);
  box-shadow: inset 0 1px 7px #ffffff38, inset 0 -2px 6px #ffffff17, 0 9px 24px #0005;
  transform: translateY(-4px);
}
.sample-tile > svg:first-child { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sample-count { width: 41px; height: 39px; }
.site-story [data-showcase] { perspective: 1150px; }
.phone-stage, .mac-stage { position: relative; min-width: 0; }
.phone-stage { align-self: stretch; }
.phone-stage .floating-phone { width: clamp(220px,21vw,350px); left: 14%; right: auto; top: -25px; }
.mac-stage .floating-mac { width: 96%; left: 0; top: 0; }

.story-head {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  align-items: end;
  justify-content: space-between;
  gap: 20px clamp(35px,8vw,135px);
  margin-bottom: 32px;
}
.story-head h2 { font-size: clamp(36px,5.25vw,81px); line-height: 1.055; letter-spacing: -.051em; word-spacing: .025em; text-wrap: balance; }
.story-head > p { max-width: 340px; justify-self: end; color: var(--muted); font-size: clamp(15px,1.25vw,19px); line-height: 1.55; text-wrap: pretty; }
.setup-panel { background: radial-gradient(80% 130% at 116% 46%,#303b4a,transparent 71%), #15171a; }
.setup-media { display: grid; grid-template-columns: minmax(0,.61fr) minmax(0,1fr); gap: clamp(19px,5vw,90px); min-height: clamp(300px,32vw,495px); }
.setup-steps { display: grid; gap: 12px; align-content: center; padding: 0; margin: 0; z-index: 1; list-style: none; counter-reset: steps; }
.setup-steps li {
  counter-increment: steps;
  padding: 15px 15px 15px 52px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  position: relative;
}
.setup-steps li::before {
  content: counter(steps);
  position: absolute;
  top: 14px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  font-size: 13px;
}
.setup-steps h3 { font-size: 16px; line-height: 1.28; letter-spacing: -.022em; text-wrap: balance; text-align: left; }
.setup-steps p { color: var(--muted); font-size: 14px; margin-top: 6px; text-wrap: pretty; }
.coverage { background: #0d0e10; }
.coverage-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 30px; }
.pilot { background: #15181b; }
.pilot-flag { align-self: start; }
.faq { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 38px; }
.site-cta.story-panel { margin-inline: 0; background: radial-gradient(104% 240% at 100% -30%,#222c3b,transparent 75%),#121316; }
.site-dock {
  position: fixed;
  z-index: 8;
  bottom: max(14px,env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 5px;
  border: 1px solid #ffffff29;
  border-radius: 999px;
  background: #1b1d21e8;
  box-shadow: inset 0 1px 6px #ffffff18, 0 9px 30px #0009;
  backdrop-filter: blur(18px);
}
.dock-demo { display: grid; place-items: center; min-height: 39px; padding-inline: 15px; border-radius: 999px; font-size: 13px; }
.dock-demo:hover { background: #ffffff16; }
@media (prefers-reduced-motion: no-preference) {
  .story-section[data-pinned] { margin-bottom: calc(-1 * var(--scene-cover)); }
  .story-section[data-pinned]::after {
    content: "";
    display: block;
    height: var(--scene-cover);
    pointer-events: none;
  }
  .story-section[data-pinned] > .story-panel {
    position: sticky;
    top: var(--scene-top);
  }
  .story-panel:focus-within { z-index: 3; }
  .story-section:has(:focus-visible) > .story-panel { position: relative; top: auto; }
}
@media (min-width: 751px) and (max-width: 1060px) {
  .setup-media { grid-template-columns: minmax(0,.82fr) minmax(0,1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .opening-media { gap: 22px; }
  .phone-stage .floating-phone { left: 8%; }
  .story-head { grid-template-columns: minmax(0,1fr) minmax(0,.64fr); }
}
@media (max-width: 750px) {
  .opening-panel { margin-bottom: calc(var(--story-gap) + 35px); }
  .site-header .brand { font-size: 20px; }
  .opening-copy { padding-top: 25px; }
  .opening-copy h1 { font-size: clamp(38px,10.8vw,62px); }
  .opening-deck { margin-top: 17px; gap: 18px; }
  .hero-actions .button { padding-inline: 11px; gap: 7px; min-height: 44px; font-size: 13px; }
  .opening-media {
    --phone-width: clamp(158px,49vw,270px);
    --phone-top: clamp(153px,40vw,171px);
    min-height: calc(var(--phone-top) + var(--phone-width) * 1.95);
    grid-template-columns: minmax(0,1fr);
    align-items: start;
    margin-top: 30px;
  }
  .phone-stage {
    position: absolute;
    z-index: 0;
    inset: -12px calc(-1 * var(--story-inset)) 0 0;
    overflow-x: clip;
    pointer-events: none;
  }
  .phone-stage .floating-phone {
    --tilt-z: 7deg;
    width: var(--phone-width);
    top: var(--phone-top);
    left: auto;
    right: clamp(22px,6vw,32px);
    transition-duration: .24s;
  }
  .feed-preview { width: min(100%,356px); margin-bottom: 0; }
  .feed-heading { margin-bottom: 15px; }
  .sample-card {
    --tile-size: clamp(70px,16vw,113px);
    width: min(87%,300px);
    gap: 7px 10px;
    margin-bottom: 14px;
    padding-left: 11px;
  }
  .sample-card:nth-of-type(even) {
    --tile-size: clamp(55px,15vw,80px);
    width: min(57%,195px);
    padding-right: 11px;
  }
  .sample-text { padding-bottom: 13px; line-height: 1.37; }
  .sample-text strong { font-size: 12.5px; text-wrap: pretty; }
  .sample-text > span { font-size: 11px; }
  .sample-arrow { margin-top: 15px; width: 26px; height: 26px; font-size: 13px; }
  .sample-tile { gap: 3px; }
  .sample-tile > svg:first-child { width: 15px; height: 15px; }
  .sample-count { width: 25px; height: 22px; }
  .story-head, .setup-media, .coverage-list, .pilot, .faq { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .story-head { margin-bottom: 27px; }
  .story-head h2 { font-size: clamp(32px,8.1vw,54px); }
  .story-head > p { justify-self: start; }
  .setup-media { min-height: 0; }
  .setup-steps { align-content: start; gap: 14px; }
  .mac-stage { aspect-ratio: 1.18; margin-top: 8px; }
  .mac-stage .floating-mac { --tilt-z: 2deg; top: 0; left: 5%; width: 90%; }
  .site-cta { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 750px) and (prefers-reduced-motion: no-preference) {
  .opening-panel { margin-bottom: calc(var(--story-gap) + 90px); }
}
@media (max-width: 360px) {
  .site-header { gap: 10px; }
  .site-header .top-actions { gap: 10px; }
  .site-story { --story-inset: 17px; }
  .sample-card { --tile-size: 55px; }
  .sample-card:nth-of-type(even) { --tile-size: 50px; width: min(64%,190px); }
  .sample-text { overflow-wrap: anywhere; }
  .sample-text strong { font-size: 11.5px; }
  .sample-tile { gap: 2px; }
  .sample-tile > svg:first-child { width: 14px; height: 14px; }
  .sample-count { height: 18px; }
  .hero-actions .button { padding-inline: 9px; }
}

/* Sign-in and sign-up use the same miniature screen and rounded dark surface. */
.auth-card { box-shadow: inset 0 1px 5px #ffffff12; }
.auth-visual {
  border-radius: clamp(24px,3.8vw,48px);
  border: 1px solid var(--line);
  background: radial-gradient(75% 88% at 91% 36%,#23394b,transparent 95%),#101215;
  padding: clamp(16px,2.4vw,36px);
}

.settings-side { display: grid; gap: 14px; }
.platform-controls { display: grid; gap: 11px; margin-block: 14px; }
.platform-controls small { display: block; margin-top: 2px; font-size: 11px; }
#platform-feedback:empty { display: none; }
.threads { --material: linear-gradient(160deg,#788597,#343d4a 56%,#141925); --highlight: #b7c3d2; --shine: #616d80; }
.x { --material: linear-gradient(160deg,#555e6d,#252c37 54%,#0a0d14); --highlight: #a7b3c5; --shine: #475264; }
