/* The dashboard's frame and pages, and the status page. Tokens and components come from dezzi.css, loaded first. */

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* The frame: a sidebar, and the page beside it. */
.app-frame { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.mobile-bar, .nav-scrim { display: none; }

.sidebar { grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px 14px 16px; background: var(--gray-1); border-right: 2px solid var(--line); }
.sidebar > .logo { padding: 0 8px; }
/* The app switcher: the current app as a button, and the others in a menu under it. */
.switcher { position: relative; border: 0; border-radius: 0; background: none; }
.switcher > summary::before { content: none; }
.switcher > .switcher-menu { margin: 0; }
.switcher > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); font-weight: 700; cursor: pointer; transition: box-shadow 0.12s; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover, .switcher[open] > summary { box-shadow: 3px 3px 0 var(--hard); }
.switcher > summary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--butter); }
.switcher-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher > summary .icon { flex: none; transition: transform 0.15s; }
.switcher[open] > summary .icon { transform: rotate(180deg); }
.switcher-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; padding: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); box-shadow: 4px 4px 0 var(--hard); }
.switcher-menu a { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border-radius: var(--r-sm); color: var(--gray-10); text-decoration: none; font-weight: 600; }
.switcher-menu a > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher-menu a:hover, .switcher-menu a:focus-visible { outline: none; background: var(--gray-2); }
.switcher-menu a[aria-current='true'] { background: var(--butter); color: var(--on-color); font-weight: 700; }
.switcher-menu .icon, .switcher-gap { flex: none; width: 16px; }
.switcher-menu hr { margin: 4px 2px; }
.switcher-add { color: var(--gray-9); }
@media (prefers-reduced-motion: reduce) { .switcher > summary .icon { transition: none; } }

/* Every other choice in a form uses the switcher's menu, sized like the fields beside it. Its options are radio buttons. */
.dropdown { min-width: 0; }
.row > .dropdown { flex: 0 1 auto; }
.dropdown > summary { min-height: 42px; padding: 0 10px 0 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
td .dropdown > summary { min-height: 36px; font-size: 14px; }
.dropdown > .switcher-menu { right: auto; min-width: 100%; width: max-content; max-width: min(440px, calc(100vw - 24px)); }
.dropdown-option { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--gray-10); font-weight: 600; cursor: pointer; }
.dropdown-option > span { min-width: 0; }
.dropdown-option .icon { visibility: hidden; }
.dropdown-option:hover, .dropdown-option:has(input:focus-visible) { background: var(--gray-2); }
.dropdown-option:has(input:checked) { background: var(--butter); color: var(--on-color); font-weight: 700; }
.dropdown-option:has(input:checked) .icon { visibility: visible; }
.dropdown-option:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--hard); }

.side-nav ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-heading { margin: 16px 12px 4px; font-size: 12.5px; font-weight: 700; color: var(--gray-8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav > .nav-heading:first-child { margin-top: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: var(--r-md); border: 2px solid transparent; color: var(--gray-9); text-decoration: none; font-weight: 500; transition: background-color 0.12s, color 0.12s; }
.side-nav a .icon { flex: none; }
.side-nav a:hover { background: var(--surface); color: var(--gray-10); }
.side-nav a[aria-current='page'] { background: var(--tomato); border-color: var(--hard); color: var(--on-color); font-weight: 700; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.side-nav a[aria-current='page'] .nav-count { background: #1a1a2e; color: #fff; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
/* The Developer plan's card: the month's resolutions as a bar, and Upgrade. */
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); }
.plan-card p { margin: 0; }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.plan-card-top strong { font-weight: 800; }
.plan-card-tag { flex: none; padding: 1px 8px; border: 1.5px solid var(--hard); border-radius: 999px; background: var(--mint); color: var(--on-color); font-size: 11.5px; font-weight: 800; }
.plan-card progress { appearance: none; display: block; width: 100%; height: 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--gray-3); overflow: hidden; }
.plan-card progress::-webkit-progress-bar { background: var(--gray-3); }
.plan-card progress::-webkit-progress-value { background: var(--tomato); }
.plan-card progress::-moz-progress-bar { background: var(--tomato); }
.plan-card .plan-card-numbers { display: flex; justify-content: space-between; gap: 8px; margin-top: -2px; font-size: 12.5px; color: var(--gray-9); font-variant-numeric: tabular-nums; }
.plan-card-numbers b { color: var(--gray-10); }
.plan-card-full { font-size: 12.5px; font-weight: 600; color: var(--bad); }
.plan-card .button { width: 100%; justify-content: center; gap: 8px; min-height: 40px; font-size: 14px; }
/* Plan and billing: the plan now, what the next ones add, the plan finder and the cap. */
progress.meter { appearance: none; display: block; width: 100%; height: 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--gray-3); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--gray-3); }
progress.meter::-webkit-progress-value { background: var(--tomato); }
progress.meter::-moz-progress-bar { background: var(--tomato); }
progress.meter.full::-webkit-progress-value { background: var(--butter); }
progress.meter.full::-moz-progress-bar { background: var(--butter); }
.bill-now { display: flex; flex-wrap: wrap; margin-bottom: 36px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-xl); box-shadow: 4px 4px 0 var(--hard); overflow: hidden; }
.bill-now-main { flex: 3 1 380px; display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; }
.bill-now-main > *, .bill-month > *, .bill-plan > *, .bill-tile > *, .bill-cap p, .bill-scale p { margin: 0; }
.bill-now-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--gray-8); }
.bill-now h2 { font-size: 30px; }
.bill-now h2 span { color: var(--gray-8); font-weight: 700; }
.bill-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.bill-meter { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bill-meter > span:first-child { font-size: 13px; font-weight: 700; color: var(--gray-9); }
.bill-month { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; background: var(--gray-2); border-left: 2px solid var(--line); font-size: 14px; }
.bill-month h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gray-9); }
.bill-month dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; }
.bill-month dt, .bill-month dd { margin: 0; }
.bill-month dd { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bill-month .muted { font-size: 13px; }
.bill-section { margin-bottom: 36px; }
.bill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bill-head h2 { margin: 0; }
.bill-head a { font-size: 14px; font-weight: 700; }
.bill-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(260px, calc(50% - 10px)), 1fr)); gap: 20px; }
.bill-plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-xl); }
.bill-plan.featured { box-shadow: 4px 4px 0 var(--hard); }
.bill-plan-top, .bill-tile-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.bill-plan-top h3, .bill-tile-top h3 { flex: 1; margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 800; }
.bill-price { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bill-price small { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--gray-8); }
.bill-quota { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-block: 2px solid var(--line); }
.bill-quota strong { font-size: 16px; }
.bill-quota span { font-size: 13px; color: var(--gray-8); }
.bill-plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bill-plan li { display: flex; align-items: flex-start; gap: 8px; }
.bill-plan li .icon { flex: none; margin-top: 2px; color: var(--ok); }
.bill-plan li em { font-style: normal; color: var(--gray-8); }
.bill-plan form { margin-top: auto; }
.bill-plan button { width: 100%; min-height: 46px; }
.bill-scale { margin-top: 16px; padding: 16px 20px; background: var(--lilac); color: var(--on-color); border: 2px solid var(--hard); border-radius: var(--r-lg); font-size: 14px; line-height: 1.5; }
.bill-section > p.muted { margin: 0 0 14px; }
.bill-slider { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 20px 22px; background: var(--butter); color: var(--on-color); border: 2px solid var(--hard); border-radius: var(--r-lg); }
.bill-slider label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.bill-slider output { font-family: var(--display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bill-slider input[type='range'] { width: 100%; min-height: 28px; margin: 0; padding: 0; border: 0; background: none; accent-color: var(--tomato); }
.bill-marks { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.bill-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 14px; }
.bill-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--gray-1); border: 2px solid var(--line); border-radius: var(--r-lg); }
.bill-tile.best { background: var(--surface); box-shadow: 4px 4px 0 var(--hard); }
.bill-tile-top h3 { font-size: 16px; }
.bill-cost { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bill-tile .muted { font-size: 13px; }
.bill-cap { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 24px; padding: 24px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-xl); }
.bill-cap > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.bill-cap > div h2 { margin: 0; }
.bill-cap > form, .bill-cap > p { flex: 1 1 280px; margin: 0; }

.side-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: var(--r-md); color: var(--gray-9); text-decoration: none; font-weight: 500; }
.side-link:hover { background: var(--surface); color: var(--gray-10); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0 8px; }
.me form { margin: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--butter); border: 2px solid var(--hard); color: var(--on-color); font-size: 13px; font-weight: 800; }
.me-email { flex: 1; min-width: 0; font-size: 13px; color: var(--gray-9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: transparent; color: var(--gray-9); border: 0; }
.icon-button:hover { background: var(--surface); color: var(--gray-10); box-shadow: none; transform: none; }

/* A page. */
.content { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; max-width: 1180px; padding: 30px 40px 72px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.02; }
.crumbs { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--gray-8); }
.crumbs a { color: var(--gray-9); text-decoration: none; }
.crumbs a:hover { color: var(--gray-10); text-decoration: underline; }
.page-about { margin: 8px 0 0; max-width: 68ch; color: var(--gray-9); font-size: 16px; }
.content form.stack { max-width: 720px; }
.content .card form.stack, .content details form.stack { max-width: none; }
.content form.stack > button, .content form.stack > .button { align-self: flex-start; }
.dash p.stat { display: block; margin: 4px 0 6px; font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--gray-10); }
.dash .grid .card > h3:first-child { margin: 0 0 4px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--gray-9); letter-spacing: 0; }
.content h2[id] { scroll-margin-top: 72px; }

/* The Inbox: what to set up next, then three columns of what waits. The setup card is a checklist beside the one
   line to paste, the step that makes the chat live. */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; margin-bottom: 28px; padding: 28px; border-radius: var(--r-xl); }
.setup-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.setup-head h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.setup-head p { margin: 0; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.setup-steps li { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0; }
.setup-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--gray-6); color: var(--on-color); }
.setup-steps li.done .setup-mark { border: 2px solid var(--hard); background: var(--mint); }
.setup-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.setup-text .muted { font-size: 14px; }
.setup-steps li.done strong { color: var(--gray-9); font-weight: 500; }
.setup-paste { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 22px; background: var(--gray-1); border: 2px solid var(--line); border-radius: var(--r-lg); }
.setup-paste > * { margin: 0; }
.setup-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); }
.setup-paste h3 { font-size: 18px; }
.setup-paste pre { white-space: pre-wrap; word-break: break-all; }
.setup-paste .row { align-items: center; gap: 14px; flex-wrap: wrap; }
.setup-later { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1.5px dashed var(--gray-5); font-size: 14px; }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.install-section.first { margin-top: 8px; }
.install-more { margin-top: 12px; }
.install-more > * + * { margin-top: 10px; }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; align-items: start; }
/* Each column is a quiet panel; its colour is only a small mark, and its count fills in when something waits. */
.column { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-xl); background: var(--gray-2); border: 1.5px solid var(--gray-4); }
.column-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; }
.column-head h2 { flex: 1; margin: 0; font-size: 20px; }
.column-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--on-color); }
.column.approve .column-mark { background: var(--butter); }
.column.team .column-mark { background: var(--sky); }
.column.bugs .column-mark { background: var(--lilac); }
.column-head .tag { min-width: 30px; justify-content: center; }
.tag.quiet { background: transparent; border-color: var(--gray-5); color: var(--gray-8); }
.column-empty { margin: 0; padding: 0 4px 6px; color: var(--gray-8); font-size: 14px; line-height: 1.5; }
.item { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); color: var(--gray-10); border: 1.5px solid var(--gray-5); border-radius: var(--r-lg); }
.item-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--gray-8); }
.item-meta span:first-child { min-width: 0; overflow-wrap: anywhere; }
.item-meta span:last-child { flex: none; }
.item-meta code { font-size: 12px; }
.item .item-note { padding: 8px 10px; border-radius: var(--r-sm); background: var(--gray-1); color: var(--gray-9); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.item-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.item-title a { text-decoration: none; }
.item-title a:hover { text-decoration: underline; }
.item p { margin: 0; }
.security-waiting { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 4px 4px 0 var(--tomato); }
.security-waiting span { flex: 1; }
/* Feedback and security: each part is one column with one gap, so the heading, the words, the boxes and the list
   sit evenly apart and every box spans the same width. */
.report-part { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.report-part > * { margin: 0; }
.report-part + .report-part { margin-top: 48px; }
.report-part > p.muted { max-width: 70ch; }
.report-part .empty { padding: 24px 20px; }
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.report.security { border-color: var(--line); box-shadow: 4px 4px 0 var(--tomato); }
.report-filters { gap: 16px; flex-wrap: wrap; }
.report-done .report-list { margin-top: 16px; }
.dependency-scan { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border: 2px dashed var(--gray-6); border-radius: var(--r-lg); }
.dependency-scan p { flex: 1; min-width: 260px; margin: 0; max-width: 70ch; }
.dependency-scan > :last-child { margin-left: auto; }
.item-top .row { gap: 6px; }

/* A conversation's messages. */
.answer-alt { margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--gray-5); max-width: 720px; }
.messages { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; padding: 22px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-xl); }
.message { max-width: min(78%, 620px); padding: 10px 14px; border-radius: 20px; border: 2px solid var(--hard); color: var(--on-color); }
.message .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { align-self: flex-start; background: var(--gray-1); color: var(--gray-10); border-color: var(--line); border-top-left-radius: 6px; }
.message.assistant { align-self: flex-end; background: var(--lilac); border-top-right-radius: 6px; }
.message.support { align-self: flex-end; background: var(--sky); border-top-right-radius: 6px; }
.message .who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; opacity: 0.75; }
.message img { display: block; max-width: 240px; margin-top: 8px; border-radius: var(--r-md); border: 2px solid var(--hard); }

/* Pages for people not signed in: the form on one side, what Dezzi does on the other. */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; justify-content: center; gap: 28px; width: 100%; max-width: 460px; margin: 0 auto; padding: 40px 24px; }
.auth-card h1 { font-size: 40px; margin-bottom: 10px; line-height: 1; }
.auth-card .lead-in { color: var(--gray-9); font-size: 16px; }
.auth-card form { margin-top: 20px; }
.auth-card .block { width: 100%; justify-content: center; min-height: 48px; font-size: 15.5px; }
.auth-card .google { margin-top: 20px; gap: 10px; text-decoration: none; }
.google-mark { flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 13px; font-weight: 600; color: var(--gray-8); }
.or::before, .or::after { content: ''; flex: 1; border-top: 2px dashed var(--gray-5); }
.or + form { margin-top: 14px; }
.auth-foot { margin: 0; font-size: 13px; color: var(--gray-8); }
.auth-foot a { color: var(--gray-9); }
.auth-side { order: -1; display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--sky); border-right: 2px solid var(--hard); color: var(--on-color); }
.auth-side-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.auth-quote { margin: 0; font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.auth-chat { display: flex; flex-direction: column; gap: 10px; }
.auth-bubble { margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 20px; border: 2px solid #1a1a2e; font-size: 15px; }
.auth-bubble.me { align-self: flex-end; background: #1a1a2e; color: #fff; border-bottom-right-radius: 6px; }
.auth-bubble.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.auth-proposal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; border-radius: var(--r-xl); background: var(--butter); border: 2px solid #1a1a2e; box-shadow: 6px 6px 0 #1a1a2e; transform: rotate(-1.5deg); }
.auth-proposal .tag { background: #fff; color: #1a1a2e; border-color: #1a1a2e; }
.auth-proposal-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.auth-proposal-buttons { display: flex; gap: 8px; }
.auth-approve, .auth-decline { padding: 8px 16px; border-radius: 999px; border: 2px solid #1a1a2e; font-weight: 700; font-size: 14px; }
.auth-approve { background: #1a1a2e; color: #fff; }
.auth-decline { background: #fff; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .icon { flex: none; box-sizing: content-box; padding: 3px; border-radius: 50%; background: #fff; border: 2px solid #1a1a2e; }

/* The status page. */
main.plain { max-width: 540px; margin: 72px auto; padding: 30px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-xl); box-shadow: 6px 6px 0 var(--hard); }
main.plain .logo { margin-bottom: 20px; }
.status { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.status li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--hard); color: var(--on-color); font-weight: 600; }
.status li.ok { background: var(--mint); }
.status li.bad { background: var(--blush); }
.status li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #1a1a2e; }
.status li.ok::before { background: #1f9d55; }
.status li.bad::before { background: #d93a1e; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* Phones and small tablets: the sidebar becomes a drawer behind the Menu button, which works without the script. */
@media (max-width: 860px) {
  .app-frame { display: block; }
  .mobile-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--gray-1); border-bottom: 2px solid var(--line); }
  .mobile-bar label { cursor: pointer; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw); transform: translateX(-105%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
  .nav-toggle:checked ~ .sidebar { transform: none; visibility: visible; box-shadow: 6px 0 0 var(--hard); }
  .nav-toggle:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(26 26 46 / 0.45); }
  .nav-toggle:focus-visible ~ .mobile-bar label { outline: 3px solid var(--focus); outline-offset: 2px; }
  .content { padding: 20px 16px 56px; }
  .message { max-width: 92%; }
  .setup-steps li { flex-wrap: wrap; row-gap: 10px; align-items: flex-start; }
  .setup-text { flex-basis: calc(100% - 40px); }
  .setup-steps li .button { margin-left: 40px; }
}

/* Install: one spacing scale for the whole page. 12px inside a step or a section, 24px between steps, 40px
   between sections; the keys sit closer, 6px from label to box and 14px apart. Children drop their own margins so only these gaps count. */
.install-steps { display: flex; flex-direction: column; gap: 24px; margin: 24px 0 0; padding-left: 24px; }
.install-steps > li > *, .install-section > * { margin: 0; }
.install-steps > li > * + *, .install-section > * + * { margin-top: 12px; }
.install-steps > li > button { display: block; width: fit-content; }
.install-section { margin-top: 40px; }
.install-keys { display: flex; flex-direction: column; gap: 14px; }
.install-keys .field { gap: 6px; }
