@import url("/static/exact-staff.css");

/* Swangz AI Hub — the staff app. The same Obsidian & Gold as the control room, at a calmer density:
   fewer numbers, larger touch targets, one clear action per tool. */

.wordmark { font-weight: 750; font-size: 16px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx-1); }
.wordmark img { width: 30px; height: 30px; }
.wordmark b { color: var(--accent-tx); font-weight: 750; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--r-sm); background: var(--primary); color: var(--on-primary); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* The paused workspace has its own bounded read-only navigation. */
.shell.paused-page { padding-block: var(--s6); }
.paused-header, .paused-actions, .paused-nav { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.paused-header { justify-content: space-between; }
.paused-panel { max-width: 760px; margin: var(--s6) auto; }
.paused-panel h1 { font-size: var(--t-h1); line-height: 1.15; }
.paused-panel p, .paused-panel h1, .paused-content h2, .paused-content h3, .paused-content dd, .paused-list a { overflow-wrap: anywhere; }
.paused-nav { margin-block: var(--s5); }
.paused-content { padding-block: var(--s4); }
.paused-content p { white-space: pre-wrap; }
.paused-list { list-style: none; margin: 0; padding: 0; }
.paused-list li { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.paused-list li p { margin-block: var(--s2); }

/* ------------------------------------------------------------ buttons & fields */

/* Buttons — the Swangz Avenue Bookings system, one size up for touch: an outline by default; the one
   primary action per place is solid off-white and fills with gold from the left on hover. */

.field { display: flex; flex-direction: column; gap: var(--s2); }
.field > span { font-size: var(--t-small); color: var(--tx-2); font-weight: 620; }
.input-wrap { position: relative; display: flex; }
.input { width: 100%; min-height: 44px; padding: 0 var(--s4); background: var(--ink-1); border: 1px solid var(--ink-4); border-radius: var(--r-xs); font-size: var(--t-body);
  transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent); }
.input::placeholder { color: var(--tx-3); }
.input-wrap .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; font-size: var(--t-small); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-2) 50%), linear-gradient(135deg, var(--tx-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input.area { min-height: 110px; padding: var(--s3) var(--s4); resize: vertical; line-height: 1.5; }
.form-error { color: var(--bad-hi); font-size: var(--t-small); min-height: 1.2em; }
.form-error:empty { min-height: 0; }

.eyebrow { font-size: var(--t-micro); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent-tx); }
.muted { color: var(--tx-2); }
.faint { color: var(--tx-3); }
.small { font-size: var(--t-small); }
.mono { font-family: var(--mono); font-size: 13px; }
.grow { min-width: 0; flex: 1; }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.tlink { background: none; border: 0; color: var(--tx-2); font-weight: 600; font-size: var(--t-small); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.tlink:hover { color: var(--tx-1); }
h1, h2, h3 { text-wrap: balance; }

/* ------------------------------------------------------------ sign-in & welcome */

.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); background: var(--ink-1); }
.gate-art { position: relative; overflow: hidden; padding: var(--s7) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); color: #F6F6F4;
  background: radial-gradient(880px 520px at 0% 100%, rgba(245, 179, 43, .18), transparent 62%), linear-gradient(160deg, #18181B 0%, #09090A 100%); }
.gate-art::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 60%, #000 20%, transparent 75%); }
.gate-art > * { position: relative; }
.gate-art .wordmark { color: #fff; }
.gate-art .wordmark b { color: #F5B32B; }
.gate-title { font-size: var(--t-display); line-height: .98; font-weight: 760; letter-spacing: -.035em; margin: 0 0 var(--s5); max-width: 12ch; }
.gate-title em { font-style: normal; background: linear-gradient(180deg, #FFD97A, #E0A020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-lede { font-size: 1.125rem; color: rgba(238, 242, 249, .74); max-width: 44ch; margin: 0; }
.gate-points { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.gate-points li { display: flex; align-items: center; gap: var(--s3); color: rgba(238, 242, 249, .86); }
.gate-points svg { width: 18px; height: 18px; color: #F0C054; flex: none; }
.gate-foot { font-size: var(--t-small); color: rgba(238, 242, 249, .55); display: flex; gap: var(--s4); flex-wrap: wrap; }
.gate-form { position: relative; display: flex; align-items: center; justify-content: center; padding: var(--s7) var(--gutter); background: var(--ink-1); }
.gate-form form { width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--s5); }
.gate-form h2 { font-size: var(--t-h1); font-weight: 720; letter-spacing: -.025em; line-height: 1.08; margin: var(--s2) 0 0; }
.gate-form p { margin: 0; }
.gate-theme { position: absolute; top: 18px; right: 18px; }

/* ------------------------------------------------------------ the app frame */

.topbar { position: sticky; top: 0; z-index: var(--z-nav); background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: var(--s5); }
.topnav { display: flex; gap: 2px; flex: 1; }
.topnav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--tx-2); font-weight: 600; font-size: 14px; position: relative; transition: color var(--d-fast), background var(--d-fast); }
.topnav a:hover { color: var(--tx-1); background: var(--ink-3); }
.topnav a.on { color: var(--tx-1); }
.topnav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--accent); }
.top-right { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-primary);
  font: 700 10.5px/18px var(--font); text-align: center; font-style: normal; }
:root[data-theme="light"] .dot-count { background: var(--accent); color: #1A1406; }
.me-menu { position: relative; }
.me-btn { display: inline-flex; align-items: center; gap: var(--s2); background: none; border: 1px solid transparent; padding: 3px 8px 3px 3px; border-radius: var(--radius-control); cursor: pointer; color: var(--tx-1); }
.me-btn:hover { background: var(--ink-3); }
.me-btn > svg { width: 14px; height: 14px; color: var(--tx-3); }
.me-name { font-weight: 620; font-size: var(--t-small); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--ink-1); border: 1px solid var(--line-hi); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--s2); display: none; z-index: 5; }
.menu.open { display: block; animation: u-enter var(--d-base) var(--e-out); }
.menu .who { padding: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.menu .who div:first-child { font-weight: 650; }
.menu .who div:last-child { color: var(--tx-2); font-size: var(--t-small); }
.menu button, .menu a { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 10px var(--s3); border-radius: var(--r-sm); cursor: pointer; text-decoration: none; font-size: 14px; }
.menu button svg, .menu a svg { width: 16px; height: 16px; color: var(--tx-3); }
.menu button:hover, .menu a:hover { background: var(--ink-3); }
.tabbar { display: none; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell.narrow { max-width: 960px; }
.section { padding: var(--s7) 0 0; }
.section.first { padding-top: var(--s6); }
.section.tight { padding-top: var(--s5); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head + .section-head, * + .section-head { margin-top: var(--s7); }
.section-head:first-child { margin-top: 0; }
.section-head h1 { margin: var(--s2) 0 0; font-size: var(--t-h1); font-weight: 740; letter-spacing: -.03em; line-height: 1.12; }
.section-head h2 { font-size: var(--t-h2); font-weight: 720; letter-spacing: -.015em; margin: var(--s2) 0 0; }
.section-head p { margin: var(--s3) 0 0; color: var(--tx-2); max-width: 68ch; line-height: 1.65; }

/* ------------------------------------------------------------ hero: restrained */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 85% -20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--ink-0); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink-0) 30%, transparent 80%); }
.hero .shell { position: relative; padding-top: var(--s7); padding-bottom: var(--s6); }
.hero h1 { font-size: var(--t-h1); font-weight: 740; letter-spacing: -.03em; line-height: 1.06; margin: var(--s3) 0 var(--s4); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0; color: var(--tx-2); }
.hero-meta b { color: var(--tx-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-meta a { color: inherit; text-decoration: none; }
.hero-meta a:hover { color: var(--tx-1); }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--tx-4); }
.hero .lede { margin: 0; color: var(--tx-2); font-size: 1.0625rem; max-width: 64ch; }
.hero-plain .shell { padding-bottom: var(--s6); }
.meter { height: 6px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--viz-1); border-radius: 0 3px 3px 0; }
.meter.full i { background: var(--bad); }

/* notices */
.notices { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.notice-item { display: flex; align-items: flex-start; gap: var(--s3); padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.notice-item strong { font-weight: 650; }
.notice-item p { margin: 2px 0 0; color: var(--tx-2); font-size: var(--t-small); }
.n-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ink-3); color: var(--tx-2); }
.n-ic svg { width: 16px; height: 16px; }
.n-ok .n-ic { background: var(--ok-soft); color: var(--ok-hi); }
.n-warn .n-ic { background: var(--warn-soft); color: var(--warn-hi); }
.n-bad .n-ic { background: var(--bad-soft); color: var(--bad-hi); }
.n-info .n-ic { background: var(--info-soft); color: var(--info-hi); }
.n-bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.n-warn { border-color: color-mix(in srgb, var(--warn) 25%, var(--line)); }

/* ------------------------------------------------------------ tool tiles */

.cat-parts { display: grid; gap: var(--s6); }
.cat-part { display: grid; gap: var(--s4); }
.cat-part-h { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.cat-part-h h2 { margin: 0; font-size: 1.05rem; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; }
.cat-part-h h2 .n { min-width: 22px; padding: 0 7px; border-radius: var(--radius-chip); background: var(--ink-3); color: var(--tx-2); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.tool-rows { list-style: none; margin: 0; padding: 4px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 32px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tool-row { break-inside: avoid; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.tr-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; cursor: pointer; border-radius: var(--r-sm); }
.tr-main:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tr-main:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tr-text { display: flex; flex-direction: column; min-width: 0; }
.tr-text strong { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--tx-3); overflow-wrap: anywhere; }
.tr-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tx-4); flex: none; }
.tr-sub .u-status { font-size: 12px; }
.tr-act { flex: none; }
.tr-act .requested { font-size: 12px; }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--s4); }
.tile { position: relative; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 210px;
  transition: border-color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out), background var(--d-base); }
.tile:hover { border-color: var(--line-hi); }
.tile-main { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: var(--s3); padding: 20px 20px var(--s3); flex: 1; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tile-main:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tile-top { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.tile-top h3 { margin: 0; font-size: var(--t-h3); font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-top .cat { color: var(--tx-3); font-size: 12.5px; }
.tile-desc { margin: 0; color: var(--tx-2); font-size: var(--t-small); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) 20px var(--s4); border-top: 1px solid var(--line); margin: 0 0; }
.tile-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 100px; }
.how { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 620; color: var(--tx-2); width: fit-content; }
.how svg { width: 13px; height: 13px; color: var(--accent-tx); }
.when { font-size: 12px; color: var(--tx-3); }
.tile-actions { display: flex; align-items: center; gap: var(--s2); }
.tile:not(.s-enabled) .logo { filter: grayscale(.6); opacity: .8; }
.tile.s-locked .logo { filter: grayscale(1); opacity: .5; }
.tile:not(.s-enabled) .tile-foot .how { color: var(--tx-3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile:not(.s-enabled) .tile-foot .how svg { display: none; }
.tile.holding { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 4%, var(--ink-1)); }
.tile.busy { opacity: .78; }
.requested { display: inline-flex; align-items: center; gap: 5px; color: var(--ok-hi); font-weight: 650; font-size: var(--t-small); white-space: nowrap; }
.requested svg { width: 15px; height: 15px; }

.empty { padding: var(--s7) var(--s5); text-align: center; color: var(--tx-2); background: var(--ink-1); border: 1px dashed var(--line-hi); border-radius: var(--r-lg); display: grid; justify-items: center; gap: var(--s3); }
.empty h3 { margin: 0; color: var(--tx-1); font-size: 17px; font-weight: 680; letter-spacing: -.01em; }
.empty p { margin: 0 auto; max-width: 48ch; }
.grid-tiles > .empty { grid-column: 1 / -1; }

/* the catalogue */
.toolbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.search-wrap { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--tx-3); pointer-events: none; }
.search-wrap .input { padding-left: 42px; padding-right: 44px; }
.search-wrap kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--tx-3); border: 1px solid var(--line-hi); border-radius: 5px; padding: 1px 6px; background: var(--ink-1); }
.toolbar .u-seg button { padding: 8px 12px; font-size: 13px; }
.sort .input { min-height: 40px; width: auto; }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.catalog-category-mobile { display: none; }
.chip { background: var(--ink-1); border: 1px solid var(--line); color: var(--tx-2); padding: 6px 14px; border-radius: var(--radius-chip); font-weight: 620; font-size: 13px; cursor: pointer;
  transition: color var(--d-fast), border-color var(--d-fast), background var(--d-fast); }
.chip:hover { color: var(--tx-1); border-color: var(--line-hi); }
.chip.on { background: var(--accent-soft); color: var(--accent-tx); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.count { margin: 0 0 var(--s4); color: var(--tx-3); font-size: var(--t-small); }

/* ------------------------------------------------------------ drawer & dialogs */

.scrim { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); z-index: var(--z-sheet); opacity: 0; transition: opacity var(--d-slow) var(--e-out); }
.scrim.in { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--ink-1); border-left: 1px solid var(--line-hi);
  z-index: calc(var(--z-sheet) + 1); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--d-slow) var(--e-out); box-shadow: var(--shadow-lg); }
.drawer.in { transform: none; }
.drawer header { flex-shrink: 0; padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.drawer header h2 { margin: 2px 0 6px; font-size: var(--t-h2); font-weight: 720; letter-spacing: -.01em; }
.d-id { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.drawer .body { padding: var(--s5) var(--s6) var(--s6); overflow: auto; flex: 1; display: flex; flex-direction: column; gap: var(--s5); }
.drawer .body > * { flex-shrink: 0; }
.drawer footer { padding: var(--s4) var(--s6); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--s3); background: var(--ink-2); flex-wrap: wrap; }
.d-sec h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.d-sec p { margin: 0 0 6px; }
dl.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--tx-3); }
dl.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); counter-reset: p; flex-wrap: wrap; }
.progress li { counter-increment: p; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 620; color: var(--tx-3); padding: 4px 10px 4px 4px; border-radius: var(--radius-chip); background: var(--ink-2); }
.progress li::before { content: counter(p); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--ink-3); }
.progress li.on { color: var(--tx-1); }
.progress li.on::before { background: var(--accent); color: var(--on-primary); }
:root[data-theme="light"] .progress li.on::before { color: #1A1406; }
.progress li.done { color: var(--ok-hi); }
.progress li.done::before { content: "✓"; background: var(--ok-soft); }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s4); }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-weight: 700; font-size: var(--t-small); color: var(--accent-tx); }
.step h3 { margin: 4px 0 var(--s2); font-size: var(--t-h3); font-weight: 680; }
.step p { margin: 0 0 var(--s3); color: var(--tx-2); font-size: var(--t-small); overflow-wrap: anywhere; }
.code { position: relative; }
.code pre { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s4); padding-right: 96px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .btn { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 var(--s3); font-size: 12px; background: var(--ink-1); }
.conn-card { border: 1px solid var(--line-hi); border-radius: var(--r-md); overflow: hidden; }
.conn-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.conn-row:first-child { border-top: 0; }
.conn-row .k { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.conn-row .v { font-weight: 620; min-width: 0; overflow-wrap: anywhere; }
.conn-row.key { background: var(--accent-soft); }
.conn-row code { font-family: var(--mono); font-size: 13px; }
.once { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--warn-hi); font-size: var(--t-small); font-weight: 620; }
.once svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: var(--s4) var(--s5); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); color: var(--warn-hi); border-radius: var(--r-md); }
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); color: var(--ok-hi); }

dialog { max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--ink-1); color: var(--tx-1); border: 1px solid var(--line-hi); border-radius: var(--r-lg); padding: 0; width: min(500px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
dialog .d-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
dialog h2 { margin: 0; font-size: var(--t-h2); font-weight: 720; letter-spacing: -.01em; }
dialog p { margin: 0; color: var(--tx-2); }
dialog .d-actions { display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s4) var(--s6); border-top: 1px solid var(--line); background: var(--ink-2); border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.fields { display: flex; flex-direction: column; gap: var(--s4); }
.profile-id { display: flex; align-items: center; gap: var(--s4); }
.profile-id strong { font-size: 1.1rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink-4); color: var(--tx-1); border: 1px solid var(--line-hi); padding: 12px 18px;
  border-radius: var(--r-md); z-index: var(--z-toast); box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); font-weight: 620; animation: u-enter var(--d-base) var(--e-out); }
.toast.bad { background: var(--bad); color: var(--on-bad); border-color: var(--bad); }

/* the page shown when a tool can't be opened (rendered by the gateway) */
.launch-msg { min-height: 100vh; display: grid; place-items: center; padding: var(--s5); background: var(--ink-0); }
.launch-card { width: min(460px, 100%); background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.launch-card h1 { margin: 0; font-size: var(--t-h2); font-weight: 700; letter-spacing: -.01em; }
.launch-card p { margin: 0; color: var(--tx-2); }

/* ------------------------------------------------------------ devices */

.grid-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.dcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.dcard.s-active { border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); }
.dcard.s-revoked { opacity: .62; }
.dcard-top, .ccard-top { display: flex; align-items: flex-start; gap: var(--s3); }
.dcard h3, .ccard h3 { margin: 0; font-size: var(--t-h3); font-weight: 680; overflow-wrap: anywhere; }
.dcard-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ink-3); color: var(--accent-tx); flex: none; border: 1px solid var(--line-hi); }
.dcard-ic svg { width: 19px; height: 19px; }
.dcard-ic.lg { width: 52px; height: 52px; border-radius: 14px; }
.dcard-ic.lg svg { width: 24px; height: 24px; }
.dcard .facts { font-size: 13.5px; gap: 6px 16px; }
.dcard-foot { display: flex; justify-content: flex-end; margin-top: auto; }
.grid-connect { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.ccard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.ccard p { margin: 0; color: var(--tx-2); font-size: var(--t-small); flex: 1; }
.ccard .btn { align-self: flex-start; }
.old-devices { margin-top: var(--s6); }
.old-devices summary { cursor: pointer; color: var(--tx-2); font-weight: 620; margin-bottom: var(--s4); }

/* requests */
.req-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); overflow: hidden; }
.req-list li { display: flex; align-items: flex-start; gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.req-list li:first-child { border-top: 0; }
.req-reason { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line-hi); color: var(--tx-2); font-size: var(--t-small); }

/* privacy */
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.trust-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); padding: var(--s5) var(--s6); }
.trust-card.wide { grid-column: 1 / -1; display: grid; gap: var(--s3); justify-items: start; }
.trust-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4); font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.trust-card h2 svg { width: 18px; height: 18px; color: var(--accent-tx); }
.trust-card > p { margin: 0 0 var(--s3); }
.trust-card.wide > p { margin: 0; }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.p-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.p-list strong { font-weight: 650; }
.p-list p { margin: 4px 0 0; color: var(--tx-2); font-size: 14px; line-height: 1.65; max-width: 68ch; }
.p-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink-3); color: var(--tx-2); flex: none; }
.p-ic svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ Studio */

.catalog-count .count { margin: 0; }
.studio { width: 100%; max-width: 900px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.studio-panel { padding: var(--s5) var(--s6); }
.studio-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s4); }
.studio-head h2 { margin: 0; font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.studio-head p { margin: 6px 0 0; color: var(--tx-2); font-size: 14px; }
.studio-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: var(--s4); }
.studio-status { margin: 0; color: var(--tx-2); font-size: 13px; }
.studio-status:empty { display: none; }
.studio-form { display: flex; flex-direction: column; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s4); }
.field.inline { flex-direction: row; align-items: center; gap: var(--s3); }
.field.inline .input { min-height: 40px; width: auto; }
.sub-head { font-size: var(--t-h3); font-weight: 680; margin: var(--s6) 0 var(--s4); }
.creations { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.creation { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.creation.fresh { animation: u-enter var(--d-slow) var(--e-out); border-color: var(--accent-dim); }
.creation-media { background: var(--ink-2); min-height: 120px; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--line); }
.creation-media img, .creation-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--r-sm); background: var(--ink-3); }
.creation-media audio { width: 100%; }
.creation-media .btn { align-self: flex-start; }
.creations-more { display: flex; justify-content: center; margin-top: var(--s4); }
.creation-state { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--s3); color: var(--tx-2); font-size: var(--t-small); text-align: center; padding: var(--s4); }
.creation-state.bad { color: var(--bad-hi); }
.creation-meta { padding: var(--s3) var(--s4) var(--s4); }
.creation-prompt { margin: var(--s2) 0 0; font-size: var(--t-small); color: var(--tx-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--ink-4); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ footer */

.foot { margin-top: var(--s9); border-top: 1px solid var(--line); background: var(--ink-1); }
.foot .inner { max-width: var(--shell); margin: 0 auto; padding: var(--s5) var(--gutter); display: flex; justify-content: space-between; gap: var(--s4); color: var(--tx-2); font-size: var(--t-small); flex-wrap: wrap; align-items: center; }
.foot .brandline { display: inline-flex; align-items: center; gap: var(--s2); }
.foot .brandline img { width: 20px; height: 20px; }
.foot-links { display: inline-flex; gap: var(--s4); }
.foot a, .foot button { background: none; border: 0; color: var(--tx-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; font-size: inherit; }

/* Sign in with Google */
.google-box { display: flex; flex-direction: column; gap: var(--s4); }
.google-box:empty { display: none; }
.btn--google { background: #FFFFFF; color: #1F1F1F; border-color: #D5D9E0; min-height: 46px; gap: 12px; font: 600 15px/1 var(--font); letter-spacing: 0; text-transform: none; }
.btn--google:hover { background: #F7F8FA; border-color: #B9C0CC; color: #1F1F1F; }
:root:not([data-theme="light"]) .btn--google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
:root:not([data-theme="light"]) .btn--google:hover { background: #1E1E20; color: #E3E3E3; border-color: #8E918F; }
.or { display: flex; align-items: center; gap: var(--s3); color: var(--tx-3); font-size: var(--t-small); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tx-1); caret-color: var(--tx-1); -webkit-box-shadow: 0 0 0 1000px var(--ink-2) inset; transition: background-color 9999s;
}

/* ------------------------------------------------------------ small screens: 1024, 768, 430, 390 */

@media (max-width: 1024px) {
  .topnav a { padding: 8px 9px; }
}
@media (max-width: 900px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate-art { padding-top: var(--s6); padding-bottom: var(--s6); }
  .gate-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .gate-points { margin-top: var(--s4); }
  .topnav { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); background: var(--glass); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; text-decoration: none; color: var(--tx-3); font-size: 11px; font-weight: 620; border-radius: var(--r-sm); min-height: 52px; justify-content: center; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--accent-tx); background: var(--accent-soft); }
  .tabbar .dot-count { top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: 68px; }
  .foot { margin-top: var(--s7); }
  .me-name { display: none; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer header, .drawer .body, .drawer footer { padding-left: var(--s5); padding-right: var(--s5); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .conn-row { grid-template-columns: minmax(0, 1fr) auto; }
  .conn-row .k { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar .inner { gap: var(--s3); }
  .hero .shell { padding-top: var(--s6); padding-bottom: var(--s5); }
  .grid-tiles, .grid-devices, .grid-connect { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .tile-foot { padding: var(--s3) var(--s4) var(--s4); }
  .tile-main { padding: var(--s4) var(--s4) var(--s3); }
  .tile-actions .btn { min-height: 40px; }
  .input { font-size: 16px; }
  .studio-panel { padding: var(--s4); }
  .studio-submit .btn { width: 100%; }
  .search-wrap { flex-basis: 100%; max-width: none; }
  .search-wrap kbd { display: none; }
  .toolbar .u-seg { order: 2; display: grid; grid-auto-flow: column; grid-auto-columns: auto; width: 100%; }
  .toolbar .u-seg button { padding: 8px 6px; }   /* Everything · Available to me · Others share one row at 390 */
  .section { padding-top: var(--s6); }
  .trust-card { padding: var(--s5); }
  .req-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .req-list li > .u-status { grid-column: 2; justify-self: start; }
  .chips-row { display: none; }
  .catalog-category-mobile { display: grid; gap: 8px; color: var(--tx-2); font-size: 12px; margin-bottom: var(--s4); }
  .tool-rows { padding: 2px 14px; }
}


/* Owner-supplied Oct 9 artwork: let the architecture emerge from the page surface. */
.hero { isolation: isolate; }
.hero .shell { z-index: 2; }
.hero .shell > * { position: relative; }
.hero .shell > .eyebrow { color: var(--accent-tx); }
.hero.art::before { z-index: 1; background:
  linear-gradient(90deg, var(--ink-0) 0%, color-mix(in srgb, var(--ink-0) 94%, transparent) 23%, color-mix(in srgb, var(--ink-0) 55%, transparent) 45%, transparent 70%, var(--ink-0) 100%),
  linear-gradient(0deg, var(--ink-0) 0%, transparent 30%, transparent 72%, var(--ink-0) 100%); }
.hero.art::after { content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: url(/static/home-welcome.webp) no-repeat 74% center / min(900px, 76%) 100%; }
.home-hero .shell > h1, .home-hero .shell > .home-lede, .home-hero .shell > .home-act { max-width: 58%; }
.home-hero .resume { width: min(580px, 58%); }
.gate-art { background: #101416; }
.gate-art::before { background:
  linear-gradient(90deg, rgba(8, 10, 11, .70), rgba(8, 10, 11, .40) 43%, rgba(8, 10, 11, .08) 100%),
  linear-gradient(0deg, rgba(8, 10, 11, .35), transparent 28%, transparent 74%, rgba(8, 10, 11, .24)); mask-image: none; z-index: 1; }
.gate-art::after { content: ""; position: absolute; pointer-events: none; inset: 0;
  background: url(/static/login-welcome.webp) no-repeat 68% center / cover; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 82%, transparent 100%); }
.gate-art > * { z-index: 2; }
@media (prefers-reduced-motion: no-preference) { .hero.art::after, .gate-art::after { animation: art-in 600ms var(--e-out) both; } }
@keyframes art-in { from { opacity: 0; } }
@media (max-width: 900px) {
  .hero.art::after { background-size: min(760px, 72%) 100%; background-position: 84% center; }
  .hero.art::before { background: linear-gradient(90deg, var(--ink-0) 0%, color-mix(in srgb, var(--ink-0) 88%, transparent) 32%, transparent 76%, var(--ink-0) 100%),
    linear-gradient(0deg, var(--ink-0), transparent 30%, transparent 72%, var(--ink-0)); }
  .home-hero .shell > h1, .home-hero .shell > .home-lede, .home-hero .shell > .home-act { max-width: 63%; }
  .home-hero .resume { width: 63%; }
}
@media (max-width: 640px) {
  .home-hero .shell > h1, .home-hero .shell > .home-lede, .home-hero .shell > .home-act { max-width: 100%; }
  .home-hero .resume { width: 100%; }
  .hero.art::after { inset: 0; background-size: auto 100%; background-position: 82% center; opacity: .66; }
  .hero.art::before { background: linear-gradient(90deg, var(--ink-0) 0%, color-mix(in srgb, var(--ink-0) 82%, transparent) 42%, color-mix(in srgb, var(--ink-0) 20%, transparent) 100%),
    linear-gradient(0deg, var(--ink-0), transparent 36%, transparent 68%, var(--ink-0)); }
  .home-hero .shell { position: relative; }
  .gate-art::before { background: linear-gradient(90deg, rgba(8, 10, 11, .68), rgba(8, 10, 11, .35) 60%, rgba(8, 10, 11, .15)); }
  .gate-art::after { background-position: 65% center; }
}

/* ------------------------------------------------------------ views of one page (?view=) */
/* underlined, like the console's page tabs; the boxed segmented control (.u-seg) is a choice inside a view */
.vtabs-wrap { display: grid; gap: var(--s5); }
.vtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs [role=tab] { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 1px 11px; font: inherit; font-weight: 620; font-size: 14px; color: var(--tx-2); cursor: pointer; white-space: nowrap; transition: color var(--d-fast); }
.vtabs [role=tab]:hover { color: var(--tx-1); border-bottom-color: var(--line-hi); }
.vtabs [role=tab][aria-selected="true"] { color: var(--tx-1); border-bottom-color: var(--accent); font-weight: 680; }
.vtabs [role=tab]:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 3px; }
.vt-n { font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; border-radius: var(--radius-chip); background: var(--ink-3); color: var(--tx-2); font-variant-numeric: tabular-nums; }
.vtabs [aria-selected="true"] .vt-n { background: var(--accent-soft); color: var(--accent-tx); }
@media (max-width: 640px) {
  .vtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border: 0; overflow: visible; }
  .vtabs [role=tab] { padding: 10px; min-height: 42px; margin: 0; border: 1px solid var(--line); white-space: normal; text-align: left; }
  .vtabs [role=tab][aria-selected="true"] { background: var(--ink-3); border-color: var(--accent); }
}
.vtab-pane { display: grid; gap: var(--s4); min-width: 0; }
.vtab-pane:focus { outline: none; }
.vtab-pane[hidden] { display: none; }
.view-lede { margin: 0; }
.view-lede p { margin: 0; }
.vtab-pane > .u-seg { justify-self: start; }
.just-head { margin-top: var(--s2); }
.just-head .sub-head { margin: 0; }

/* Privacy: an index beside six sections */
.p-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.p-index { position: sticky; top: 84px; display: grid; gap: var(--s2); }
.p-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.p-index button { background: none; border: 0; padding: 6px 12px; text-align: left; font: inherit; font-size: 13.5px; color: var(--tx-2); cursor: pointer; border-left: 2px solid transparent; margin-left: -1px; }
.p-index button:hover { color: var(--tx-1); border-left-color: var(--line-hi); }
.p-index button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.p-sections { display: grid; gap: var(--s4); min-width: 0; }
.p-sections .trust-card { scroll-margin-top: 84px; }
.p-sections .trust-card:focus { outline: none; }
.p-lead { margin: 0 0 var(--s4); color: var(--tx-2); }
.p-more { margin-top: 6px; }
.p-more summary { cursor: pointer; color: var(--tx-2); font-size: var(--t-small); font-weight: 600; width: fit-content; }
.p-more summary:hover { color: var(--tx-1); }
.p-more p { margin: 6px 0 0; }
@media (max-width: 900px) {
  .p-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .p-index { position: static; }
  .p-index ul { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .p-index button { border: 1px solid var(--line); border-radius: var(--radius-control-sm); margin: 0; padding: 5px 12px; font-size: 13px; }
}

/* ------------------------------------------------------------ Home: a personal launchpad */
/* The hero holds where you stand and the one thing to do next; the tools are the main column; updates and the places
   you need now and then sit beside them, quieter. */
.home-hero .shell { padding-top: var(--s7); padding-bottom: var(--s7); }
/* while access is paused the doorway is dimmed — no light spilling out of a door that won't open */
.home-hero.blocked::after { opacity: .3; filter: grayscale(1); }
.home-hero h1 { max-width: 24ch; font-size: clamp(2rem, 3.6vw, 3rem); margin: var(--s3) 0 var(--s3); text-wrap: balance; }
.home-lede { margin: var(--s4) 0 0; max-width: 56ch; color: var(--tx-2); font-size: 1.0625rem; line-height: 1.55; }
.home-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.hero-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 650; font-size: var(--t-small); color: var(--tx-2); text-decoration: none; }
.hero-link:hover { color: var(--tx-1); }
.hero-link svg { width: 15px; height: 15px; }
/* going back to the tool you used last: the page's one primary action */
.resume { display: flex; align-items: center; gap: var(--s4); width: min(580px, 100%); padding: 14px 14px 14px 16px; border: 1px solid var(--line-hi); border-radius: var(--r-lg);
  background: var(--ink-1); box-shadow: var(--shadow-sm); }
.resume.holding { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.resume-id { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; cursor: pointer; border-radius: var(--r-md); }
.resume-id:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.resume-id:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.resume-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resume-k { font-size: 11px; font-weight: 750; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--tx-3); }
.resume-text strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--tx-3); }
.resume-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tx-4); }
.resume-act { flex: none; display: flex; align-items: center; gap: var(--s2); }
/* the body: tools first, the rest beside them */
.home-body { padding-top: var(--s6); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); align-items: start; }
.home-grid.solo { grid-template-columns: minmax(0, 560px); }
.home-tools { display: grid; gap: var(--s4); min-width: 0; }
.home-tools:focus { outline: none; }
.home-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s3); flex-wrap: wrap; }
.home-h h2 { margin: 0; font-size: var(--t-h2); font-weight: 720; letter-spacing: -.015em; }
.home-h.small h2 { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
.home-h .tlink { display: inline-flex; align-items: center; gap: 4px; }
.home-h .tlink svg { width: 14px; height: 14px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s3); }
.tcard { min-width: 0; display: flex; flex-direction: column; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--d-fast); }
.tcard:hover { border-color: var(--line-hi); }
.tcard.holding { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.tcard-main { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 16px 0; cursor: pointer; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tcard-main:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tcard-main:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tcard-text { display: flex; flex-direction: column; min-width: 0; }
.tcard-text strong { font-size: 15px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-text span { color: var(--tx-3); font-size: 12.5px; }
.tcard-desc { margin: 10px 16px 0; min-height: 3em; color: var(--tx-2); font-size: var(--t-small); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px 16px 14px; }
.tcard-state { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12.5px; }
.tcard-note { color: var(--tx-3); font-size: 12px; line-height: 1.35; }
.tcard-act { flex: none; display: flex; gap: var(--s2); }
.home-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line-hi); border-radius: var(--r-md); color: var(--tx-2); font-size: var(--t-small); line-height: 1.5; }
.home-note > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tx-3); }
.home-note a { color: var(--tx-1); text-underline-offset: 3px; }
.home-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.home-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--line-hi);
  font-size: 12px; font-weight: 700; color: var(--accent-tx); }
.home-steps strong { font-weight: 680; }
.home-steps span { color: var(--tx-2); font-size: var(--t-small); line-height: 1.5; }
/* beside the tools */
.home-aside { display: grid; gap: var(--s4); min-width: 0; }
.home-card { display: grid; gap: var(--s3); padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); }
.home-updates { list-style: none; margin: 0; padding: 0; display: grid; }
.home-update { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.home-update:first-child { border-top: 0; padding-top: 2px; }
.home-update:last-child { padding-bottom: 0; }
.home-update .n-ic { width: 28px; height: 28px; border-radius: 8px; }
.home-update .n-ic svg { width: 14px; height: 14px; }
.home-update strong { font-size: 13.5px; font-weight: 650; }
.home-update p { margin: 4px 0 0; color: var(--tx-2); font-size: 13px; line-height: 1.55; }
.home-update .btn { margin-top: 8px; }
.home-quiet { display: flex; align-items: flex-start; gap: 12px; }
.home-quiet .n-ic { width: 28px; height: 28px; border-radius: 8px; }
.home-quiet .n-ic svg { width: 14px; height: 14px; }
.n-ic.ok { background: var(--ok-soft); color: var(--ok-hi); }
.home-quiet strong { font-size: 13.5px; font-weight: 650; }
.home-quiet p { margin: 2px 0 0; color: var(--tx-3); font-size: 12.5px; line-height: 1.45; }
.home-allow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.home-allow strong { font-size: 1.375rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.home-allow span { color: var(--tx-2); font-size: var(--t-small); }
.home-fine { margin: 0; color: var(--tx-3); font-size: 12px; line-height: 1.45; }
.home-studio { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent) 6%, var(--ink-1)); color: inherit; text-decoration: none; transition: border-color var(--d-fast); }
.home-studio:hover { border-color: var(--accent); }
.home-studio:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.home-studio-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-tx); }
.home-studio-ic svg { width: 20px; height: 20px; }
.home-studio strong { display: block; font-weight: 700; }
.home-studio .grow > span { display: block; margin-top: 2px; color: var(--tx-2); font-size: 12.5px; line-height: 1.45; }
.home-studio > svg { width: 18px; height: 18px; flex: none; color: var(--tx-3); }
.home-links { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); }
.home-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background var(--d-fast); }
.home-links a:first-child { border-top: 0; }
.home-links a:hover { background: var(--ink-2); }
.home-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.home-links a > svg:first-child { width: 17px; height: 17px; flex: none; color: var(--tx-3); }
.home-links a > svg:last-child { width: 15px; height: 15px; flex: none; margin-left: auto; color: var(--tx-4); }
.home-links a > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.home-links strong { font-size: 13.5px; font-weight: 650; }
.home-links span span { color: var(--tx-3); font-size: 12px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); } }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .home-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home-hero .shell { padding-top: var(--s6); padding-bottom: var(--s6); }
  .resume { flex-wrap: wrap; }
  .resume-act { width: 100%; }
  .resume-act .btn { flex: 1; justify-content: center; }
  .tcards { grid-template-columns: minmax(0, 1fr); }
  .tcard-desc { min-height: 0; }
}

/* /device: approving a device that is waiting with a code */
.device-card { width: min(540px, 100%); }
.device-facts { width: 100%; border-collapse: collapse; font-size: var(--t-sm, .875rem); }
.device-facts th { text-align: left; font-weight: 500; color: var(--tx-2); padding: var(--s1, 4px) var(--s3, 12px) var(--s1, 4px) 0; white-space: nowrap; }
.device-facts td { color: var(--tx-1, inherit); padding: var(--s1, 4px) 0; overflow-wrap: anywhere; }
.device-form { display: flex; flex-direction: column; gap: var(--s4); width: 100%; }
.device-form label { display: flex; gap: var(--s2, 8px); align-items: baseline; color: var(--tx-1, inherit); }
.device-form input[type=text], .device-form input:not([type]) { flex: 1; font: inherit; letter-spacing: .12em; text-transform: uppercase; padding: var(--s2, 8px) var(--s3, 12px); background: var(--ink-0, transparent); color: inherit; border: 1px solid var(--line); border-radius: var(--r-sm, 4px); }
.device-form fieldset { border: 1px solid var(--line); border-radius: var(--r-sm, 4px); display: flex; flex-direction: column; gap: var(--s2, 8px); padding: var(--s3, 12px); margin: 0; }
.device-form legend { color: var(--tx-2); padding: 0 var(--s1, 4px); }
.device-actions { display: flex; gap: var(--s3, 12px); justify-content: flex-end; }
.device-warn { color: var(--coral, #ff6b6b) !important; }
.device-note { font-size: var(--t-sm, .875rem); }
