/* &Deploy screens: home, app detail, deployments, billing. Built on the forge patterns. */
.fs-115 { font-size: 11.5px; }
.faint { color: var(--faint); }

/* Home */
.welcome { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); border: 1px solid var(--border); border-radius: 16px; padding: 36px 36px 28px; }
.welcome .amp-watermark { right: -40px; top: -150px; font-size: 420px; }
.welcome-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.setup-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--row); }
.setup-step:first-child { border-top: 0; padding-top: 0; }
.setup-mark { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; font: 600 12px var(--mono); }
.setup-mark.is-done { border-color: var(--success); background: var(--success); color: var(--surface); }
.snippet { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); background: var(--tint-2); border-radius: 10px; padding: 8px 8px 8px 12px; }
.snippet code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.snippet-dark { background: var(--code-bg); border-color: var(--code-border); color: var(--code-text); }
.waiting { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--warn-ink); }
.waiting .dot { color: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
/* What an upload is doing this moment (imports/_progress) */
.now-doing { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.now-doing > .dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .now-doing > .dot { animation: none; } }
@keyframes pulse { 50% { opacity: 0.3; } }
.app-card { gap: 10px; padding: 20px; }
/* An app waiting on its person's answers (AppStatus :needs_answers), in the apps list and on the home page. */
.table-row.needs-you { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn-border); }
a.table-row.needs-you:hover { background: var(--warn-bg); filter: brightness(0.98); }
.app-card.needs-you { border-color: var(--warn-border); box-shadow: inset 0 3px 0 var(--warn-border); }
.needs-you-note { color: var(--warn-text); font-weight: 600; }
.app-card-foot { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--subtle); padding-top: 10px; border-top: 1px solid var(--row); }
.activity-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--row); }
.conn-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--row); }
.conn-item:first-child { border-top: 0; }
.resize-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--warn-border); background: var(--warn-bg); border-radius: 14px; padding: 16px 20px; }

/* App detail */
.env-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.env-version { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 12.5px; }
.kv dt { font-family: var(--mono); color: var(--subtle); }
.kv dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.finding { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--row); }
.finding:first-child { border-top: 0; }
.finding code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--tint); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; }
.usage-line { display: flex; flex-direction: column; gap: 6px; }
/* Billing: each app's resources this period (billing/_statement) */
.statement-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
.statement-group { padding: 10px 20px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); background: var(--tint-2); }
.statement-line { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; list-style: none; width: 100%; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; }
.statement-line::-webkit-details-marker { display: none; }
.statement-line::after { content: "›"; color: var(--subtle); transition: transform 0.15s; }
div.statement-line { cursor: default; }
div.statement-line::after { content: none; }
.statement-app > .statement-line:hover { background: var(--tint-2); }
.statement-detail { padding: 0; }
.statement-app > .statement-line:focus-visible { outline: 2px solid var(--focus, var(--primary)); outline-offset: -2px; }
.bar > span.is-warn { background: var(--warn); }
.bar > span.is-over { background: var(--danger); }
.danger-zone { border: 1px solid var(--danger-border); background: var(--danger-bg); border-radius: 14px; padding: 18px 20px; }

/* Domains */
.dns-box { border: 1px solid var(--border); border-radius: 10px; background: var(--tint-2); overflow-x: auto; }
.dns-row { display: grid; grid-template-columns: 70px minmax(140px, 1fr) minmax(220px, 2fr); min-width: 480px; border-bottom: 1px solid var(--divider); font-family: var(--mono); font-size: 12.5px; }
.dns-row:last-child { border-bottom: 0; }
.dns-row > span { padding: 10px 14px; overflow-wrap: anywhere; }
.dns-head { font-size: 11px; color: var(--subtle); }

/* Deploy log */
.log { background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-border); border-radius: 14px; padding: 18px 20px; font: 12.5px/1.65 var(--mono); white-space: pre-wrap; overflow-x: auto; margin: 0; }

/* Plans */
.plan-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.radio-option { position: relative; }
.radio-option:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.radio-option:has(input:checked) .radio { border-color: var(--accent); }
.radio-option:has(input:checked) .radio::after { background: var(--accent); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Consent */
.consent-scope { display: flex; gap: 12px; align-items: flex-start; }
.consent-scope input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.qr { width: 180px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; }
.qr img { width: 100%; display: block; }

/* Workspace switcher in the sidebar */
.ws-switch { position: relative; }
.ws-switch summary { list-style: none; cursor: pointer; }
.ws-switch summary::-webkit-details-marker { display: none; }
.ws-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--navy-2); border: 1px solid var(--on-navy-edge); border-radius: 9px; padding: 4px; display: flex; flex-direction: column; z-index: 2; }
.ws-menu form.button_to { display: flex; }
.ws-menu-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 7px 10px; border-radius: 6px; color: var(--sky-text); font: 500 13px var(--font); }
.ws-menu-item:hover { background: var(--on-navy-hover); color: var(--on-navy); }
.promo-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }

/* Landing hero: the connect walkthrough is the front door */
.hero-start { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-start .hero-copy { text-align: left; align-items: flex-start; margin: 0; }
.start-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px 22px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 14px; }
.start-card .setup-step:first-child { border-top: 0; }
@media (max-width: 959px) { .hero-start { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero-start .hero-copy { align-items: center; text-align: center; } }
.hero-start .hero-copy h1 { font-size: clamp(34px, 4.1vw, 48px); }

/* Product pages */
.site-nav a.is-current { color: var(--primary); }
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 48px) 56px; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--divider); }
.page-hero-amp { right: -40px; top: -140px; font-size: 460px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; }
.page-hero h1 .accent { color: var(--primary); }
.page-hero p { font-size: 18px; color: var(--ink-2); line-height: 1.6; max-width: 700px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 56px; align-items: start; }
@media (max-width: 899px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }
.big-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--divider); }
.big-step:first-child { border-top: 0; padding-top: 0; }
.big-step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-solid); color: var(--text-on-primary); display: flex; align-items: center; justify-content: center; font: 600 14px var(--mono); }
.big-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.big-step p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.mock { border: 1px solid var(--border); border-radius: 12px; background: var(--tint-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.mock-bar { font-family: var(--mono); font-size: 11px; color: var(--subtle); letter-spacing: 0.06em; text-transform: uppercase; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.prompt-chip { display: block; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.prompt-chip::before { content: "“"; color: var(--accent); font-family: var(--serif); font-size: 22px; line-height: 0; margin-right: 2px; vertical-align: -6px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.flow-step { padding: 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--divider); position: relative; }
.flow-step:first-child { border-left: 0; }
.flow-step .mono { color: var(--accent); font-size: 12px; }
.flow-step .fw-600 { font-size: 16px; }
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-list span { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.5; }
.check-list span::before { content: "✓"; color: var(--accent); font-weight: 700; }
.soon { font-family: var(--mono); font-size: 10.5px; color: var(--warn-ink); background: var(--warn-soft); border-radius: 999px; padding: 2px 8px; }
.price-big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.estimator { display: flex; flex-direction: column; gap: 14px; }
.estimator input[type=range] { width: 100%; accent-color: var(--primary); }

/* Footer */
.site-footer-full { border-top: 1px solid var(--divider); padding: 48px clamp(20px, 4vw, 48px) 28px; background: var(--tint-2); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)); gap: 32px; }
.footer-brand .amp { font-size: 22px; }
.footer-link { font-size: 14px; color: var(--ink-2); }
.footer-link:hover { color: var(--primary); }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--divider); }
@media (max-width: 859px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Long-form pages */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-layout:not(:has(.doc-toc)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.doc-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.doc-toc a { color: var(--ink-2); }
.doc-toc a:hover { color: var(--primary); }
@media (max-width: 859px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-toc { position: static; } }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-top: 26px; scroll-margin-top: 88px; }
.prose h2:first-child, .prose .notice + h2 { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose code { font-family: var(--mono); font-size: 13.5px; background: var(--tint); border-radius: 5px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; } /* long addresses broke the Docs page on phones */
.prose a { font-weight: 600; }
.prose .snippet code { background: transparent; padding: 0; }
.prose table { border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.06em; }

/* Trust strip and IT details */
.trust { padding: 28px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--divider); background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 28px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.promise-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.promise-card .trust-icon { width: 42px; height: 42px; border-radius: 11px; }
.promise-card .feature-title { font-size: 19px; }
.promise-card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.qa-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 32px; padding: 18px 0; border-top: 1px solid var(--divider); }
.qa-row:first-child { border-top: 0; }
.qa-q { font-size: 16px; font-weight: 600; }
.qa-a { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.qa-a strong { color: var(--success-ink); }
@media (max-width: 759px) { .qa-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.it-details { border: 1px solid var(--border); border-radius: 12px; background: var(--tint-2); }
.it-details summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; color: var(--ink); }
.it-details summary::-webkit-details-marker { display: none; }
.it-details[open] .faq-icon::after { content: "−"; }
.it-list { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 20px; padding: 4px 20px 20px; margin: 0; font-size: 13.5px; }
.it-list dt { font-weight: 600; color: var(--ink); }
.it-list dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 699px) { .it-list { grid-template-columns: minmax(0, 1fr); } .it-list dd { margin-bottom: 8px; } }

/* Stat tiles: a label over one big number */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 12px; }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Column chart (apps/_email_chart): HTML columns, hairline grid, hover tips */
.chart { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 10px; row-gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font: 11px var(--mono); color: var(--subtle); margin: -6px 0; }
.chart-plot { position: relative; }
.chart-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--divider); }
.chart-cols { position: absolute; inset: 0; }
.chart-cols, .chart-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.chart-col { position: relative; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.chart-col:hover, .chart-col:focus-visible { background: var(--tint); border-radius: 4px; }
.chart-stack { width: min(70%, 16px); display: flex; flex-direction: column; gap: 2px; }
.chart-seg { display: block; min-height: 2px; flex-basis: 0; }
.chart-peak { position: absolute; left: 50%; transform: translateX(-50%); width: min(70%, 16px); height: 2px; border-radius: 2px; background: var(--ink); opacity: .55; }
.chart-legend { display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-legend i.chart-legend-peak, .chart-tip i.chart-legend-peak { height: 2px; background: var(--ink); opacity: .55; }
.rank-row { display: flex; flex-direction: column; gap: 4px; }
.rank-bar { display: block; height: 6px; border-radius: 3px; background: var(--row); overflow: hidden; }
.rank-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
.chart-seg:first-child { border-radius: 4px 4px 0 0; }
.chart-tip { display: none; position: absolute; bottom: calc(100% - 24px); left: 50%; z-index: 2; min-width: 168px; flex-direction: column; gap: 4px;
  padding: 10px 12px; background: var(--navy); color: var(--on-navy); border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow-pop); pointer-events: none; }
.chart-tip-left { left: auto; right: 50%; }
.chart-tip span { display: flex; align-items: center; gap: 6px; }
.chart-tip b { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.chart-tip i, .chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
.chart-col:hover .chart-tip, .chart-col:focus-visible .chart-tip { display: flex; }
.chart-x { grid-column: 2; font: 11px var(--mono); color: var(--subtle); white-space: nowrap; }
.chart-x span:last-child { justify-self: end; }
.chart-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-table summary { cursor: pointer; }

/* Database tab: table list beside the rows */
.db-browser { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 859px) { .db-browser { grid-template-columns: minmax(0, 1fr); } }
.db-tables { display: flex; flex-direction: column; padding: 6px; }
.db-table-link { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.db-table-link:hover { background: var(--tint); color: var(--ink); }
.db-table-link.is-active { background: var(--accent-soft, var(--tint)); color: var(--ink); font-weight: 600; }
.data-grid-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.data-grid { border-collapse: collapse; width: 100%; font-size: 13px; }
.data-grid th { position: sticky; top: 0; text-align: left; padding: 9px 12px; background: var(--tint-2); border-bottom: 1px solid var(--divider); white-space: nowrap; font-weight: 600; color: var(--ink); }
.data-grid th small { display: block; font: 400 10.5px var(--mono); color: var(--subtle); }
.data-grid td { padding: 8px 12px; border-bottom: 1px solid var(--row); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.data-grid tr:last-child td { border-bottom: 0; }
.data-grid tbody tr:hover td { background: var(--tint-2); }
.data-grid .is-null { color: var(--subtle); font-style: italic; }
.data-grid td.data-grid-actions { width: 1%; padding: 6px 4px 6px 12px; font-family: var(--font); }
.input:disabled { background: var(--tint-2); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Custom domain setup */
.dns-copy { display: flex; align-items: flex-start; gap: 10px; }
.dns-copy .btn { flex: none; font-family: var(--font); }
.provider-list { border: 1px solid var(--border); border-radius: 10px; }
.provider + .provider { border-top: 1px solid var(--divider); }
.provider summary { padding: 11px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.provider[open] { padding-bottom: 12px; }
.provider-steps { margin: 2px 0 8px; padding: 0 14px 0 34px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.provider-steps li + li { margin-top: 4px; }
.provider > p { margin: 0; padding: 0 14px; }

/* Personal links, one per app */
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--divider); }

/* Activity log */
.activity-filters { margin-bottom: 14px; }
.activity-filters .select, .activity-filters .input { width: auto; flex: 1 1 170px; max-width: 240px; }
.activity-filters .select[name=per] { flex: 0 0 auto; max-width: 140px; }

/* Upload progress */
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.progress-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.progress-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font); border: 1px solid var(--border); color: var(--subtle); background: var(--surface); }
.progress-step.is-done .progress-mark { background: var(--success-soft); border-color: transparent; color: var(--success-ink); }
.progress-step.is-current .progress-mark { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--text-on-primary); }
.progress-step.is-next { opacity: 0.6; }
.log-sm { font-size: 11.5px; padding: 12px 14px; border-radius: 10px; max-height: 160px; }

/* Drag-and-drop upload (shared/_dropzone) */
.dropzone { display: grid; justify-items: center; gap: 14px; padding: 28px 20px; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--tint-2); text-align: center; transition: border-color 0.15s, background 0.15s; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-busy { pointer-events: none; }
.dropzone.is-busy > :not(.upload-bar):not(.busy-status) { opacity: 0.55; }
.dropzone .upload-bar { width: min(360px, 100%); }

/* The steps in the summary modal (apps/_brief_banner) */
/* The summary banner (apps/_brief_banner): the whole banner opens the modal. */
.brief-banner { width: 100%; background: var(--accent-soft); border-color: var(--accent-soft); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.brief-banner:hover { border-color: var(--accent); }
.brief-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brief-banner-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.brief-steps { margin: 0; padding: 0; list-style: none; counter-reset: brief; display: grid; gap: 12px; }
.brief-steps > li { counter-increment: brief; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.brief-steps > li::before { content: counter(brief); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; align-self: flex-start; }
.brief-steps > li.stack { flex-direction: column; padding-left: 34px; position: relative; }
.brief-steps > li.stack::before { position: absolute; left: 0; top: 0; }

/* Busy forms and uploads (busy_controller.js, dropzone_controller.js) */
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; flex: none; }
.busy-status .spinner, [data-busy-target="status"] .spinner { margin-right: 8px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-bar { height: 6px; border-radius: 999px; background: var(--row); overflow: hidden; }
.upload-bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.2s; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .upload-bar > span { transition: none; } }
.dropzone-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.verify-banner { margin-bottom: 18px; align-items: center; }

/* Tweaks (TweaksController): the request, quoted, and the AI's thinking as it streams (imports/_thinking). */
.tweak-ask { margin: 4px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); max-width: 680px; }

/* A change being made (apps/_tweak_live, imports/_tweak_details): what was asked, the steps, and the AI's reasoning. */
.tweak-quote { margin: 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent); line-height: 1.5; }
.tweak-bar { height: 4px; border-radius: 999px; background: var(--row); overflow: hidden; max-width: 420px; }
.tweak-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s ease; }
.tweak-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tweak-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 16px; }
.tweak-step:last-child { padding-bottom: 0; }
.tweak-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--row); }
.tweak-step-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--on-accent, var(--surface)); }
.tweak-step[data-state="done"] .tweak-step-mark { background: var(--success-ink); border-color: var(--success-ink); }
.tweak-step[data-state="done"]:not(:last-child)::before { background: var(--success-ink); }
.tweak-step[data-state="now"] .tweak-step-mark { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tweak-step[data-state="now"] .tweak-step-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.tweak-step[data-state="next"] { opacity: .65; }
.tweak-modal { max-height: calc(100vh - 48px); overflow: hidden; }
.tweak-modal turbo-frame { display: block; min-height: 0; overflow-y: auto; }
.tweak-timing { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.thoughts-box { max-height: 260px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
.thought { padding: 10px 14px; border-radius: 10px; background: var(--tint); display: flex; flex-direction: column; gap: 4px; }
.thought-latest { background: var(--accent-soft); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.thinking p { margin: 0 0 8px; }
.thinking-live { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%); mask-image: linear-gradient(to bottom, transparent, black 30%); display: flex; flex-direction: column; justify-content: flex-end; }

/* The dev view (dev_views/show): the dev copy in a frame under its address bar, with the tweak cart beside it. */
.dev-view-body { margin: 0; background: var(--bg); }
.dev-view { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.dev-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.dev-bar-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; max-width: 220px; }
.dev-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-bar-nav { display: inline-flex; gap: 4px; }
.dev-bar-address { display: flex; align-items: center; flex: 1 1 280px; min-width: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding-left: 10px; }
.dev-bar-address { position: relative; }
.dev-bar-address .input { border: 0; min-width: 0; flex: 1; }
.dev-suggest { position: absolute; top: calc(100% + 4px); left: -1px; right: -1px; z-index: 30; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-modal); padding: 6px; max-height: min(420px, 60vh); overflow-y: auto; }
.dev-suggest[hidden] { display: none; }
.dev-bar-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; align-self: stretch; border: 0; border-left: 1px solid var(--border);
                  background: transparent; color: var(--ink-2); cursor: pointer; border-radius: 0 7px 7px 0; }
.dev-bar-toggle svg { width: 20px; height: 20px; flex: none; }
.dev-bar-toggle:hover, .dev-bar-toggle:focus-visible { color: var(--ink); background: var(--tint); }
.dev-bar-toggle svg { transition: transform .15s ease; }
.dev-bar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dev-suggest-group { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dev-suggest-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.dev-suggest-item[aria-selected="true"], .dev-suggest-item:hover { background: var(--surface-2, var(--bg)); }
.dev-suggest-name { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-suggest-path { font-family: var(--font-mono, monospace); font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.dev-suggest-empty { padding: 10px; font-size: 13.5px; color: var(--muted); }
.dev-bar-host { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.dev-bar-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface); color: var(--primary); font-size: 12px; }
.dev-stage { position: relative; flex: 1; display: flex; min-height: 0; }
.dev-frame { flex: 1; width: 100%; border: 0; background: var(--surface); }
.dev-waking { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); padding: 16px; }
.dev-waking[hidden] { display: none; }
.dev-panel { position: fixed; top: 64px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 88px); overflow: auto; display: flex; flex-direction: column; gap: 10px;
             padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-pop); }
.dev-panel[hidden] { display: none; }
.dev-cart-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.dev-cart-list li { font-size: 14px; color: var(--ink-2); }
.dev-cart-list .dev-cart-path { display: block; font: 500 12px var(--mono, monospace); color: var(--muted); }
.dev-bar-actions { display: inline-flex; gap: 8px; }
.dev-short { display: none; }
/* Phones and tablets: two tidy rows instead of four wrapped ones. The name, Dev, back/reload and the tweak buttons
   on top; the address across the whole width under them, with "open in new tab" as an arrow at its end. Buttons are
   finger-sized, and the address is 16px so iOS doesn't zoom the page when it's tapped. */
@media (max-width: 900px) {
  .dev-bar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .dev-bar-back { flex: 1 1 0; min-width: 0; max-width: none; }
  .dev-bar-address { order: 10; flex: 1 1 calc(100% - 56px); }
  .dev-bar-ext { order: 11; }
  .dev-bar .btn-sm { min-height: 40px; min-width: 40px; justify-content: center; }
  .dev-bar-address .input { font-size: 16px; min-height: 40px; }
  .dev-bar-host { display: none; }
  .dev-long { display: none; }
  .dev-short { display: inline; }
  .dev-bar-ext .dev-short { font-size: 16px; }
  .dev-panel .textarea { font-size: 16px; }
  .dev-suggest { max-height: min(360px, 50vh); }
  .dev-suggest-item { padding: 11px 10px; }
  .dev-panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 75dvh; border-radius: 14px 14px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .dev-bar-name { display: none; }
  .dev-bar-nav { gap: 2px; }
}

/* App page: the tabs and the Dev copy / Production switch share one bar; on a phone the switch sits above the tabs. */
.app-tabs-bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--divider); flex-wrap: wrap-reverse; }
.app-tabs-bar .tabs { border-bottom: 0; min-width: 0; flex: 0 1 auto; }
.app-tabs-bar .seg { margin-bottom: 6px; flex: none; margin-left: auto; }

/* Settings: each event's email and browser boxes. */
.notify-box { width: 16px; height: 16px; accent-color: var(--accent); }

/* Team page: the invite form on one line (stacked on a phone), and what each role can do. */
.team-invite { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; align-items: center; }
.team-invite .input, .team-invite .select, .team-invite .btn { height: 42px; }
.team-invite .select { padding-top: 0; padding-bottom: 0; }
.team-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 14px 18px; border: 1px dashed var(--border); border-radius: 12px; }
.avatar-pending { background: var(--tint); color: var(--muted); border: 1px solid var(--border); }
@media (max-width: 640px) {
  .team-invite { grid-template-columns: 1fr; }
  .team-roles { grid-template-columns: 1fr; }
}

/* Restore to a moment: when, the name to confirm, and the button, on one line (stacked on a phone). */
.restore-form { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 640px) { .restore-form { grid-template-columns: 1fr; } }

/* A change's progress: the bar and step on top, one line of what the AI is on, its reasoning folded away. */
.tweak-progress { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--tint-2); }
.tweak-now { color: var(--ink-2); }
.tweak-thinking > summary::-webkit-details-marker { display: none; }

/* Settings: the people who may put versions live, under "Only the people I choose". */
.go-live-people { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; margin-left: 24px; }
.go-live-people input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

/* "What it's doing": a folded panel under the progress; open, the AI's summarized steps read as short formatted notes. */
.tweak-thinking { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tweak-thinking > summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--ink); }
.tweak-thinking > summary::before { content: "▸"; color: var(--muted); font-size: 12px; }
.tweak-thinking[open] > summary::before { content: "▾"; }
.tweak-thinking-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tweak-thinking-body { padding: 14px 16px 16px; border-top: 1px solid var(--divider); gap: 12px; }
.tweak-thinking .thought { padding: 0; background: none; border: 0; gap: 6px; }
.tweak-thinking .thought h4 { margin: 0; line-height: 1.35; }
.tweak-thinking .thought + .thought { padding-top: 12px; border-top: 1px dashed var(--border); }
.thought-text { line-height: 1.6; }
.thought-text p { margin: 0 0 8px; }
.thought-text p:last-child { margin-bottom: 0; }
.thought-text ul, .thought-text ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.thought-text code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--tint); color: var(--ink); }
.thought-latest h4 { color: var(--accent); }
/* Billing: the three figures at the top. */
.billing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.spending-limits > summary { cursor: pointer; list-style: none; }
.spending-limits > summary::-webkit-details-marker { display: none; }
#credit-history summary { cursor: pointer; }
/* The steps of putting an app on &Deploy (shared/_wizard_steps). */
.wizard-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; }
.wizard-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 12px var(--mono); background: var(--tint-2); color: var(--subtle); flex: none; }
.wizard-step.is-current { border-color: var(--primary); color: var(--ink); font-weight: 600; }
.wizard-step.is-current .wizard-dot { background: var(--primary-solid); color: var(--text-on-primary); }
.wizard-step.is-done { color: var(--ink-2); }
.wizard-step.is-done .wizard-dot { background: var(--accent-soft); color: var(--primary); }
@media (max-width: 640px) { .wizard-step:not(.is-current) .wizard-label { display: none; } }
/* The Overview's last 7 days (apps/_usage_glance). */
.glance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.glance-card { padding: 14px 16px; gap: 8px; border-radius: 12px; }
.glance-bars { flex: none; overflow: visible; }
.glance-bar { fill: var(--series-1); }
.glance-empty { fill: var(--divider); }
.modal .statement-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
/* The app's Settings tab: groups of rows, each with what it's set to and its form folded under Change (apps/_setting). */
.settings-group { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.settings-group-title { padding: 12px 20px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); background: var(--tint-2); border-bottom: 1px solid var(--divider); }
.setting + .setting { border-top: 1px solid var(--divider); }
.setting-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; list-style: none; }
details.setting > .setting-head { cursor: pointer; }
details.setting > .setting-head::-webkit-details-marker { display: none; }
details.setting > .setting-head:hover { background: var(--tint-2); }
.setting-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.setting-value { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.setting-action { font-size: 13.5px; font-weight: 600; color: var(--primary); flex: none; text-decoration: none; }
details.setting[open] > .setting-head .setting-action { color: var(--muted); }
.setting-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.setting.is-danger .setting-name, .setting.is-danger .setting-action { color: var(--danger); }

/* Billing: the tiles' text buttons open dialogs (billing/_dialog). */
.link-button { border: 0; background: none; padding: 0; font-family: inherit; font-size: inherit; line-height: inherit; color: var(--primary); cursor: pointer; text-align: left; }
.link-button:hover { text-decoration: underline; }
.link-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.inline-form { display: inline; margin-left: 6px; }

/* An upload or change paused for tokens (imports/_paused): an alert, not progress. */
.paused-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--warn-border); background: var(--warn-bg); }
/* Buy buttons say what they cost and with which card ("Buy 500 credits for $6 with Visa ending 4242"): they wrap instead
   of running past the card, and on phones each action takes the card's width. */
.paused-actions .btn { white-space: normal; text-align: center; max-width: 100%; }
.paused-actions form { max-width: 100%; }
@media (max-width: 600px) {
  .paused-card { padding: 16px; }
  .paused-actions { flex-direction: column; align-items: stretch; }
  .paused-actions > form, .paused-actions > .btn, .paused-actions form .btn { width: 100%; }
}
.paused-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--warn-ink, var(--ink)); }

/* A change's request on its page (imports/_tweak_ask): a line, the rest folded. */
.tweak-ask-details { max-width: 680px; }
.tweak-ask-details > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tweak-ask-details > summary::-webkit-details-marker { display: none; }
.tweak-ask-toggle { color: var(--primary); }
.tweak-ask-details[open] .tweak-ask-toggle { display: none; }
.tweak-ask-body { margin: 10px 0 0 17px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tweak-ask-list { margin: 0; padding-left: 20px; }

/* A picture of an app's home page (apps/_preview_image): on home page cards, and small in the apps list. */
.app-preview { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--tint-2); margin: -4px -4px 4px; }
.app-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.app-preview.is-small { width: 72px; flex: none; margin: 0; border-radius: 7px; }
.app-preview-empty { width: 100%; height: 100%; display: grid; place-items: center; font: 600 28px var(--display, inherit); color: var(--subtle); }
.app-preview.is-small .app-preview-empty { font-size: 16px; }

/* The Access tab (apps/tabs/_access). */
.access-tab fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.access-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.access-inline-form.is-two { grid-template-columns: minmax(0, 1fr) auto; }
.access-inline-form .select { width: auto; }
@media (max-width: 599px) { .access-inline-form, .access-inline-form.is-two { grid-template-columns: minmax(0, 1fr); } }
.access-pick { margin-left: 24px; }
.access-more > summary { cursor: pointer; color: var(--primary); }
/* What a visitor goes through, in order: numbered steps, each a name and where its rule comes from. */
.visitor-steps { list-style: none; margin: 0; padding: 0; counter-reset: visitor; }
.visitor-steps > li { counter-increment: visitor; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; }
.visitor-steps > li::before { content: counter(visitor); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.access-domains { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--divider); }
.people-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; }
.people-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; min-width: 0; }
.people-row + .people-row { border-top: 1px solid var(--row); }
.row-menu { position: relative; flex: none; }
.row-menu > summary { list-style: none; font-size: 16px; line-height: 1; letter-spacing: 1px; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 260px; max-width: calc(100vw - 32px); padding: 6px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); }
.row-menu-pop form { margin: 0; }
.row-menu-role { padding: 6px; border-bottom: 1px solid var(--row); margin-bottom: 4px; }
.row-menu-role .select { flex: 1; min-width: 0; }
.row-menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.row-menu-item:hover { background: var(--row); }
.row-menu-item.is-danger { color: var(--danger-ink); }
.access-advanced { padding: 0; }
.access-advanced-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.access-advanced-head::-webkit-details-marker { display: none; }
.access-advanced[open] .access-advanced-head .setting-action { visibility: hidden; }
.access-advanced-body { padding: 4px 20px 20px; border-top: 1px solid var(--divider); padding-top: 18px; }

/* Keys the app needs (secrets/_expected_key): each one ready to fill in, with how to get it folded under it. */
.expected-keys { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; }
.expected-key { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.expected-key-row { padding: 14px 16px; }
.expected-key-row + .expected-key-row { border-top: 1px solid var(--row); }
.key-guide > summary { cursor: pointer; color: var(--primary); }
.key-guide-body { margin-top: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.key-guide-steps { margin: 0; padding-left: 20px; }

/* Background workers (apps/tabs/_schedules): each row opens to say what the worker does (AppWorkers.describe). */
.worker-row > summary { list-style: none; cursor: pointer; }
.worker-row > summary::-webkit-details-marker { display: none; }
.worker-row > summary:hover { background: var(--surface-2); }
.worker-row:last-child:not([open]) > summary { border-bottom: 0; }
.worker-caret { color: var(--subtle); font-size: 11px; transition: transform 120ms ease; display: inline-block; }
.worker-row[open] .worker-caret { transform: rotate(90deg); }
.worker-about { padding: 12px 20px 16px 38px; background: var(--surface); }
.worker-row:not(:last-child) .worker-about { border-bottom: 1px solid var(--row); }
.worker-list { margin: 0; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) { .worker-caret { transition: none; } }
