@font-face { font-family: Golos; src: url("fonts/golos-cyr.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Golos; src: url("fonts/golos-lat.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2191-2193,U+2212; }
@font-face { font-family: Unbounded; src: url("fonts/unbounded-cyr.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Unbounded; src: url("fonts/unbounded-lat.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F; }
@font-face { font-family: Plex; src: url("fonts/plex-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --deep: #0a111d;
  --field: #101a2a;
  --panel: #111d30;
  --lift: #1c2b44;
  --line: #283954;
  --subtle: #22324b;
  --ink: #f0f6ff;
  --muted: #a7b7cf;
  --blue: #62ceff;
  --sky: #a8e7ff;
  --good: #68e6ba;
  --warn: #ffd294;
  --bad: #ff9daf;
  --flow: linear-gradient(165deg, #99e9ff, #49aafa 54%, #377df3);
  --font: Golos, system-ui, sans-serif;
  --display: Unbounded, Golos, system-ui, sans-serif;
  --mono: Plex, ui-monospace, monospace;
  --panel-fill: linear-gradient(155deg, #152239, #101a2b 75%);
  --surface-shadow: inset 0 1px 0 #a7ddff0d, 0 9px 25px #040a183f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  background: radial-gradient(ellipse 850px 475px at 72% 0%, #152743, transparent 82%), var(--deep);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h2 { font-size: 17px; line-height: 1.25; font-weight: 700; }
svg.icon { display: block; width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { max-width: 1380px; min-width: 0; margin: auto; padding: 20px 30px max(28px, env(safe-area-inset-bottom)); }
.bar, .dialog-bar, .panel-heading, .overview-bar, .connection-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.bar { padding-bottom: 15px; border-bottom: 1px solid var(--subtle); margin-bottom: 23px; }
.bar-actions { display: flex; flex: 0 0 auto; gap: 6px; align-items: flex-start; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-sign {
  width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 12px; border: 1px solid #39668d;
  background: linear-gradient(148deg, #254972 0%, #142841 65%);
  box-shadow: inset 0 1px 0 #b5dfff20, 0 6px 16px #060f24a0;
}
.brand-sign img { width: 34px; height: 34px; }
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: clamp(13px, 2vw, 22px); line-height: 1; letter-spacing: -.075em;
  color: #e8f6ff; background: linear-gradient(#f7fbff 8%, #bfd7fb 48%, #f5faff 53%, #83aedf 100%);
  background-clip: text; -webkit-text-fill-color: transparent;
}
.quiet, .primary {
  min-height: 44px; padding: 8px 12px; border: 1px solid #3d5c82; border-radius: 10px;
  background: linear-gradient(#25405d, #1b304a); color: var(--ink);
  font-size: 13px; font-weight: 650; line-height: 1.2;
  box-shadow: inset 0 1px 0 #b4ddff13;
  transition: border-color .16s, background-color .16s, filter .16s, transform .16s;
}
.quiet:hover { border-color: #629cd0; }
.quiet[aria-pressed="true"] { color: var(--sky); border-color: #65beff; background: #204e76; }
.primary {
  width: 100%; min-height: 52px; border-color: #a0e9ff; border-bottom-color: #3376f4; border-radius: 11px;
  background: var(--flow); color: #07182e; font-size: 15px; font-weight: 800;
  box-shadow: inset 0 1px 0 #e4fbff9c, inset 0 -1px 0 #0a389b5e, 0 6px 20px #1672ff35;
}
.primary:hover { filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(1px); }
#help, .icon-button { width: 44px; display: grid; place-items: center; padding: 0; }
.text-button {
  min-height: 44px; padding: 5px 3px; border: 0; background: none; color: var(--sky); font-size: 13px;
  font-weight: 650; line-height: 1.25; text-align: left;
}
.text-button:hover { text-decoration: underline; }
.masthead { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; min-width: 0; }
h1 { font-family: var(--display); font-size: clamp(26px, 4.2vw, 44px); line-height: 1.13; letter-spacing: -.075em; font-weight: 800; }
.subtitle { color: var(--muted); margin-top: 6px; font-size: 13px; line-height: 1.4; }
.connection-tools { flex: 0 0 auto; padding-bottom: 1px; }
.connection { display: inline-flex; align-items:center; gap: 7px; padding: 6px 8px; border: 1px solid #385777; border-radius: 7px; color: var(--muted); background: #142740; font-size: 11px; white-space: nowrap; }
.connection::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7c9abd; }
.connection.online { color: #b9f7e1; background: #173545; border-color: #306466; }
.connection.online::before { background: var(--good); box-shadow: 0 0 8px #68e6ba80; }
.connection[data-state="offline"]::before { background: var(--warn); }
.workspace-nav {
  display: flex; gap: 4px; padding: 7px; margin: 0 0 14px; border: 1px solid var(--subtle);
  border-radius: 14px; background: #101a2ce8;
}
.workspace-link { display: flex; gap: 10px; align-items: center; justify-content: flex-start; min-height: 43px; border: 1px solid transparent; border-radius: 8px; padding: 7px 11px; background: none; color: var(--muted); font-size: 13px; font-weight: 650; text-align:left; }
.workspace-link .icon { width: 18px; height: 18px; }
.workspace-link:hover { color: var(--ink); background: #1a2a41; }
.workspace-link[aria-current="page"], .workspace-link.current { color: #e1f2ff; border-color: #375b88; background: linear-gradient(135deg, #233d62, #192d4b); }
.workspace-link[aria-current="page"] .icon { color: #91deff; }
.nav-label { padding: 12px 11px 2px; color: #8fa3bf; font-weight: 650; font-size: 11px; }
.nav-mobile { display: none; }
.home-hero {
  grid-column: 1 / -1; isolation:isolate; position: relative; display:grid; align-items:center;
  overflow:hidden; min-height:276px; padding:32px 37px; border:1px solid #3b648f; border-radius:19px;
  background:
    radial-gradient(ellipse at 77% 45%, #316ba3 0%, #1a386a 31%, transparent 66%),
    linear-gradient(115deg, #111e38 10%, #152c50 65%, #101f37);
  box-shadow: inset 0 1px 0 #b5dfff29, 0 18px 32px #050d1e58;
}
.home-hero::before {
  content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(circle,#a9d3ff29 1px,transparent 1.6px) 0 0/17px 17px;
  mask-image:linear-gradient(90deg,transparent 29%,#000 80%);
}
.home-hero-content { position:relative; z-index:1; max-width:66%; }
.home-hero h2 { font: 800 clamp(30px,4.05vw,51px)/1.1 var(--display); letter-spacing:-.075em; text-shadow:0 3px 22px #0816289e; }
.home-hero h2 span { white-space:nowrap; }
.home-hero h2 strong { color:#98dcff; }
.home-hero p { margin:13px 0 0; color:#c5d8ef; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.home-hero .overview-action { margin-top:17px; }
.home-hero .primary { width:auto; min-height:44px; padding-inline:18px; }
.hero-emblem {
  position:absolute; display:grid; place-items:center; top:50%; right:9%;
  width:clamp(155px,25vw,245px); aspect-ratio:1; transform:translateY(-50%) rotate(-9deg);
  border:1px solid #94dcff58; border-radius:50%; box-shadow:0 0 58px #2e75d326,inset 0 0 46px #69bbff1c;
}
.hero-emblem::before, .hero-emblem::after { content: ""; position: absolute; inset: 10px; border: 1px dashed #91d6ff72; border-radius: 50%; }
.hero-emblem::after { inset: -20px; opacity: .56; border-style: solid; box-shadow: 0 0 30px #4296ff25; }
.hero-emblem img { width: 83%; height: auto; z-index: 1; transform: rotate(8deg); filter: drop-shadow(0 9px 11px #142746a0) drop-shadow(0 0 17px #59beff82); }
.layout, .parse-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.parse-layout:has(.parse-card[hidden]) { grid-template-columns: 1fr; }
.steps, .launch, .parse-card, .invite-journal { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-fill); box-shadow: var(--surface-shadow); }
.section-heading { display: flex; align-items: center; min-height: 45px; padding: 9px 14px; border-bottom: 1px solid var(--subtle); }
.section-heading h2 { font-size: 14px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 13px; }
.step + .step, .pace { border-top: 1px solid var(--subtle); }
.symbol { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #41638b; border-radius: 8px; color: #a4dfff; background: #203a5a; }
.step[data-state="ready"] .symbol { border-color: #4d84ad; color: var(--sky); background: #244d70; }
.step-copy h2 { font-size: 14px; }
.step-copy p, .view-text, .field-note { color: var(--muted); overflow-wrap: anywhere; }
.step-copy p { font-size: 12px; line-height: 1.35; margin-top: 3px; }
.step-actions { display: flex; justify-content: end; align-items: center; gap: 7px; flex-wrap: wrap; }
.pace { padding: 4px 13px 6px; }
.pace summary { font-size: 13px; font-weight: 650; }
#pace-summary { color: var(--sky); margin-left: 5px; font-size: 11px; }
.pace[open] { padding-bottom: 10px; }
.pace-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.pace-fields label { display: grid; gap: 5px; line-height: 1.22; }
.launch, .parse-side {
  padding: 15px; display: grid; gap: 11px;
  background: radial-gradient(ellipse at 93% -12%, #316397a6, transparent 72%), linear-gradient(147deg, #203e65, #162b46 66%);
}
.launch-label { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.launch-label h2 { font-size: 17px; }
.launch-tools { display: none; }
.launch-tools:has(#stop:not([hidden]), #results:not([hidden])) { display: flex; align-items: start; gap: 12px; flex-wrap: wrap; }
#job-detail { color: #c8dbf2; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
#stop { color: var(--bad); }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 11px; line-height: 1.25; border: 1px solid #486c94; border-radius: 7px; color: #d0e6ff; background: #132940; overflow-wrap: anywhere; }
.status-tag[data-state="running"] { color: #ade9ff; border-color: #509dd1; background: #205074; }
.status-tag[data-state="done"], .status-tag[data-result="ok"] { color: var(--good); border-color: #347470; background: #164044; }
.status-tag[data-state="paused"], .status-tag[data-result="privacy"], .status-tag[data-result="unknown"] { color: var(--warn); border-color: #655c54; background: #443b43; }
.status-tag[data-result="unavailable"], .status-tag[data-result="unconfirmed"] { color: var(--bad); border-color: #725166; background: #402d46; }
.queue-progress { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.queue-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--sky); }
#queue-count { font: 500 clamp(26px, 5vw, 42px)/1.1 var(--mono); letter-spacing: -.09em; color: #effaff; }
#queue-percent { font: 500 15px var(--mono); }
progress { appearance: none; display: block; width: 100%; height: 7px; border: 0; border-radius: 20px; overflow: hidden; background: #112239; }
progress::-webkit-progress-bar { background: #112239; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #477af8, #8be4ff); border-radius: 20px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #477af8, #8be4ff); border-radius: 20px; }
.overview, .invite-journal { margin-top: 12px; }
.overview-bar { margin-bottom: 4px; }
.metrics { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.metrics div { padding: 10px 12px; display: grid; align-content: space-between; gap: 3px; background: #14263d; color: var(--muted); font-size: 12px; }
.metrics strong, .parse-total strong { color: var(--ink); font: 500 clamp(19px, 3vw, 28px)/1.2 var(--mono); letter-spacing: -.07em; overflow-wrap: anywhere; }
.metrics div:nth-child(4) strong { color: var(--good); }
.metrics div:last-child { grid-column: span 2; }
.invite-journal { padding: 13px; display: grid; gap: 5px; }
#journal-filters { display: flex; gap: 9px; align-items: center; justify-content: flex-start; }
#journal-filters select { min-height: 42px; width: auto; max-width: 100%; }
.journal-list, .group-picker, .account-list, .access-results ul { list-style: none; margin: 0; padding: 0; }
.journal-list li, .account-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--subtle); overflow-wrap: anywhere; }
.journal-list li:last-child, .account-list li:last-child { border-bottom: 0; }
.journal-list small { display:block; color: var(--muted); font-size: 11px; }
.journal-list .status-tag { max-width: 48%; flex: 0 0 auto; }
.parse-card { padding: 14px; }
#parse-form { gap: 12px; }
.field-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.panel-heading { flex-wrap: wrap; }
.eyebrow { color: var(--sky); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.parse-report { padding: 10px; border: 1px solid #36597c; border-radius: 10px; background: #152a45; }
.parse-report progress { margin-top: 8px; }
.parse-total { display: grid; gap: 3px; padding-top: 7px; border-top: 1px solid var(--subtle); color: var(--muted); font-size: 13px; }
.parse-total strong { color: var(--sky); }
.account-workspace { display:grid; gap:9px; }
.library-total { color: var(--ink); font-size: clamp(32px, 8vw, 52px); font-weight: 750; line-height: 1.05; }
.library-sources > li { align-items: center; }
.library-sources .library-name { min-width: 0; overflow-wrap: anywhere; }
.library-sources .described-control { flex: 0 0 auto; }
.library-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.library-actions .primary { grid-column:1/-1; }
.library-actions .quiet { width:100%; }
.account-search { display:grid; gap:5px; }
#accounts-page > .panel-heading .primary { width:auto; min-height:43px; font-size:13px; }
.compact-options { padding:0 10px 5px; border:1px solid var(--line); border-radius:9px; }
.compact-options[open] { padding-bottom:10px; }
#account-select-all { justify-self:start; min-height:34px; }
.danger { color: #ff9fa9; }
.quiet.danger { border-color: #885160; }
.quiet.danger:hover { border-color: #ff9fa9; }
.pairing-code { display: block; max-width: 100%; height: auto; margin: 4px auto; border: 8px solid white; border-radius: 10px; }
#pairing-session { -webkit-text-security:disc; }
.pick-check, .account-workspace input[type="checkbox"], #base-records input[type="checkbox"] { width:1em; min-width:1em; min-height:1em; margin:0 4px 0 0; accent-color:#73c8ff; }
#task-list li > span, #group-results li > span, #account-list li > div { min-width:0; overflow-wrap:anywhere; }
.overview-metrics { grid-column:1/-1; }
#home-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; border:0; border-radius:0; background:none; overflow:visible; }
.metric-tile {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; min-width:0; padding:12px 13px;
  text-align:left; color:var(--muted); border:1px solid var(--line); background:var(--panel-fill); border-radius:12px;
}
.metric-tile:hover { border-color:#4c77a5; color:#d8e9fc; }
.metric-tile .icon { grid-column:2; grid-row:1; color:#8ab4e6; width:17px; height:17px; }
.metric-tile > span { grid-row:1; grid-column:1; font-size:12px; font-weight:650; }
.metric-tile strong { grid-column:1/-1; font-size:27px; font-variant-numeric:tabular-nums; }
.metric-tile small { grid-column:1/-1; color:var(--muted); font-size:11px; }
#home-warning { margin-top:9px; }
#invite-workers li { display:grid; }
.overview-action { margin-top: 10px; }
.overview-tools { display:grid; grid-template-columns:1fr; gap:8px; min-width:0; }
.overview-tools h2 { padding:0 1px 3px; }
.entry-card { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:10px 12px; color:var(--ink); background:var(--panel-fill); border:1px solid var(--line); border-radius:11px; text-align:left; }
.entry-card:hover { border-color:#608cbc; background:#1a2c48; }
.entry-card small, .activity-link small { display:block; color:var(--muted); font-size:12px; line-height:1.35; }
.entry-glyph { display:grid; place-items:center; color:#9bcaff; width:37px; height:37px; border:1px solid #385681; border-radius:9px; background:#1a304e; }
.entry-arrow { color:#779bc4; }
.home-activity { align-self:start; margin-top:29px; }
.home-activity .text-button { min-height:35px; }
#overview-jobs li { padding:0; }
.activity-link { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; color:var(--ink); background:transparent; border:0; text-align:left; padding:10px 2px; min-height:44px; }
.activity-link:hover strong { color:var(--sky); }
.activity-link small { margin-top:2px; }
.activity-link .status-tag { flex:0 0 auto; }
.campaign-tabs { display:flex; align-items:center; gap:4px; margin-bottom:13px; border-bottom:1px solid var(--line); overflow-x:auto; }
.campaign-tabs button { min-height:43px; padding:7px 13px; background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-weight:650; font-size:13px; white-space:nowrap; }
.campaign-tabs button[aria-pressed="true"] { color:var(--ink); border-color:#77c8ff; }
#campaign-queue-badge { display:inline-block; margin-left:3px; min-width:1.4em; padding:0 5px; border-radius:5px; background:#253f61; color:#d1ebff; font-size:11px; }
#campaign-workspace[data-view="queue"] { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; align-items:start; }
#campaign-workspace[data-view="queue"] .layout { display:contents; }
#campaign-workspace[data-view="queue"] .overview { margin-top:0; }
#campaign-workspace[data-view="journal"] .layout { display:none; }
.command-search { display:flex; gap:9px; align-items:center; color:var(--sky); }
.command-search input { flex:1; }
.command-grid .quiet { width:100%; text-align:left; }
.access-results { display:grid; gap:5px; }
.access-results ul, .group-picker { max-height: 37dvh; overflow:auto; }
.access-results label, .group-picker label { display:flex; align-items:center; gap:9px; min-height: 44px; border-bottom:1px solid var(--subtle); padding: 6px 1px; overflow-wrap: anywhere; color: var(--ink); }
.access-results small { display:block; color: var(--muted); }
.access-results input, .group-picker input { width: 17px; height:17px; flex:0 0 17px; accent-color: #65c0ff; }
.notice { color: #ffdaaa; background: #28314a; border: 1px solid #55506a; padding: 8px 10px; margin: 0 0 9px; border-radius: 8px; overflow-wrap: anywhere; font-size: 13px; }
.busy { cursor: progress; }

dialog {
  width: min(540px, calc(100% - 22px)); max-height: calc(100% - 25px); max-height: calc(100dvh - 25px);
  overflow: auto; padding: 14px; color: var(--ink); border: 1px solid #4a729a; border-radius: 14px;
  background: linear-gradient(158deg, #213d61, #14263e 55%); box-shadow: 0 18px 70px #0309149e;
}
dialog::backdrop { background: #081426a8; }
.dialog-bar { margin-bottom: 11px; }
.dialog-bar h2 { overflow-wrap: anywhere; }
#close { width: 44px; padding: 0; font-size: 24px; }
.dialog-content, .actions, .tool-list, form, .form-field { display: grid; gap: 8px; }
.tool-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.inline-actions, .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.action-row .quiet { flex:1 1 132px; }
.inline-actions .field-note { margin-left: auto; }
summary { min-height: 35px; padding: 6px 0; color: var(--muted); cursor: pointer; }
.view-text { white-space: pre-wrap; line-height: 1.45; }
.view-text b, .view-text strong { color: var(--ink); }
label, .field-note { font-size: 12px; color: var(--muted); }
input, textarea, select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 9px; color: var(--ink); background: var(--field); border: 1px solid #39597d; border-radius: 8px; font-size:16px; box-shadow: inset 0 1px 5px #07162c5e; }
input::placeholder, textarea::placeholder { color:#a1b4cb; opacity:1; }
textarea { resize:vertical; }
.file-control { position:relative; display:inline-flex; align-items:center; cursor:pointer; }
.file-control input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.file-control:focus-within { outline: 2px solid var(--sky); outline-offset:3px; }

.described-control { display: contents; }
.control-help { display: none; }
.show-help .described-control { display: grid; gap: 4px; min-width: 0; }
.show-help .described-control:has(> [hidden]) { display:none; }
.show-help .action-row .described-control { flex:1 1 130px; }
.show-help .bar-actions .described-control { max-width: 112px; }
.show-help .control-help { display:block; color:var(--muted); font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.show-help .step > .control-help { grid-column: 2 / -1; }

.boot { position: fixed; inset:0; z-index: 6; min-height:100dvh; display:grid; justify-items:center; align-content:center; gap: 11px; background: radial-gradient(ellipse at 50% 42%, #244e85, #0f1b30 64%); color: var(--sky); }
.boot img { filter: drop-shadow(0 0 22px #31b7ff92); }
.boot .wordmark { font-size: clamp(23px, 6vw, 43px); }
.boot p { font-size:13px; margin-bottom: 7px; }
.boot-line { width:132px; height: 3px; border-radius: 6px; background:#26476f; overflow:hidden; }
.boot-line::after { content: ""; display:block; width:42%; height:100%; border-radius:6px; background:#79d9ff; animation: loading .85s ease-in-out infinite alternate; }
@keyframes loading { from { transform:translateX(-35%); } to { transform:translateX(170%); } }

@media (min-width: 801px) {
  .shell { display:grid; grid-template-columns: 201px minmax(0, 1fr); column-gap: 24px; }
  .shell > .bar { grid-column:1/-1; }
  .shell > section, .shell > #notice { grid-column:2; }
  .workspace-nav { grid-column:1; grid-row:2/span 3; align-self:start; flex-direction:column; position:sticky; top:16px; }
}
@media (min-width: 801px) and (max-width: 1050px) {
  .shell { grid-template-columns:174px minmax(0,1fr); column-gap:15px; padding-inline:16px; }
  .workspace-link { padding-inline:7px; gap:7px; }
  .home-hero { padding-inline:24px; }
  .hero-emblem { right:5%; width:clamp(145px,20vw,200px); }
  .metric-tile .icon { display:none; }
}
@media (max-width: 800px) {
  .workspace-nav .workspace-link:not([data-mobile]), .workspace-nav .described-control:has(> .workspace-link:not([data-mobile])) { display:none; }
  .nav-label, .nav-desktop { display:none; }
  .nav-mobile { display:inline; }
  #nav-more { display:flex; }
  .shell { padding: 12px 14px calc(91px + env(safe-area-inset-bottom)); }
  .bar { padding-bottom:9px; margin-bottom:13px; }
  .brand-sign { width:40px; height:40px; }
  .brand-sign img { width:29px; height:29px; }
  .bar-actions .quiet { min-height:44px; }
  .masthead { margin-bottom:10px; align-items:flex-start; }
  h1 { font-size:clamp(23px,5vw,34px); }
  .subtitle { font-size:12px; margin-top:4px; }
  .connection { font-size:10px; gap:5px; }
  .connection-tools { flex-wrap:wrap; justify-content:end; }
  .workspace-nav { position:fixed; z-index:3; inset:auto max(9px, env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); margin:0; border-radius:14px; padding:4px; background:#121e32f7; box-shadow:0 6px 24px #030913a0; }
  .workspace-link { flex:1; min-width:0; flex-direction:column; justify-content:center; gap:3px; min-height:48px; padding:4px; font-size:11px; }
  .workspace-link .icon { width:17px; height:17px; }
  .show-help .workspace-nav .described-control { flex:1; }
  .show-help .workspace-nav .control-help { display:none; }
  .home-hero { min-height:212px; padding:14px 15px; border-radius:15px; }
  .home-hero-content { max-width:64%; }
  .home-hero h2 { font-size:clamp(17px,4.8vw,37px); }
  .home-hero p { font-size:12px; margin-top:9px; }
  .home-hero .overview-action { margin-top:11px; }
  .home-hero .primary { font-size:13px; padding-inline:11px; }
  .hero-emblem { width:clamp(116px,32vw,195px); right:4%; }
  .hero-emblem::before { inset:8px; }
  .hero-emblem::after { inset:-11px; }
  .layout, .parse-layout, #campaign-workspace[data-view="queue"] { grid-template-columns:1fr; gap:10px; }
  .parse-layout[data-state="done"] .parse-side { grid-row:1; }
  .section-heading { min-height:39px; padding:6px 10px; }
  .step { padding:7px 10px; grid-template-columns:29px minmax(0,1fr) auto; gap:7px; }
  .symbol { width:29px; height:29px; border-radius:7px; }
  .symbol .icon { width:15px; height:15px; }
  .step-button { padding:4px 8px; font-size:11px; }
  .step-actions { display:grid; gap:0; }
  .step-actions .text-button { text-align:center; min-height:30px; font-size:11px; }
  .pace { padding:1px 7px 2px; }
  .pace summary { font-size:12px; }
  #pace-summary { font-size:10px; }
  .launch, .parse-card, .invite-journal { padding:12px; gap:9px; }
  .launch-label h2 { font-size:15px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metrics div { padding:7px 9px; }
  #home-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .metric-tile { padding:8px 10px; }
  .metric-tile strong { font-size:24px; }
  .home-activity { margin-top:0; }
  .overview-tools { margin-top:3px; }
  .entry-card { padding:8px 10px; }
  .entry-glyph { width:32px; height:32px; }
  dialog { position:fixed; inset:auto 0 0; width:100%; max-width:550px; margin:0 auto; border-radius:18px 18px 0 0; padding:12px 14px max(15px,env(safe-area-inset-bottom)); }
  .dialog-bar { position:sticky; top:-12px; z-index:2; padding:4px 0; background:#172840; }
}
@media (max-width: 420px) { .field-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
