:root {
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light;
  --bg:#f5f5f5;
  --surface:#fff;
  --soft:#fafafa;
  --rail:#f0f0f0;
  --text:#202020;
  --dim:#626262;
  --line:#e2e2e2;
  --brand:#0e7490;
  --focus:#0e7490;
  --on-brand:#fff;
  --complete:#0369a1;
  --active:#6d28d9;
  --unknown:#626262;
  --red:#b42318;
  --radius:12px;
  --pane:40vw;
  color:var(--text);
  background:var(--surface)}
* {
  box-sizing:border-box}
body {
  margin:0;
  font-size:14px}
button,input,select,textarea {
  font:inherit}
button,a,label.attach,select {
  touch-action:manipulation}
button {
  cursor:pointer;
  color:inherit;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  padding:9px 12px}
button:hover:not(:disabled) {
  background:var(--bg)}
button:disabled {
  cursor:not-allowed;
  opacity:.5}
a {
  color:var(--brand)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role="tab"]:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:3px}
[hidden] {
  display:none!important}
.shell {
  height:calc(100dvh - 60px);
  display:flex;
  overflow:hidden}
.wordmark {
  font-size:22px;
  font-weight:650;
  text-decoration:none;
  color:var(--text);
  letter-spacing:-1px;
  display:flex;
  gap:9px;
  align-items:center}
.wordmark:first-letter {
  color:var(--brand)}
.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.5px;
  color:var(--dim)}
.avatar {
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:var(--on-brand)}
.workspace {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  background:var(--surface)}
header {
  padding:23px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px}
h1 {
  font-size:17px;
  font-weight:550;
  margin:5px 0 0}
h2 {
  font-size:21px;
  font-weight:550;
  letter-spacing:-.5px}
h3 {
  font-size:15px}
.quiet {
  border:0;
  background:transparent;
  color:var(--dim);
  font-size:12px}
.notice {
  margin:0 32px;
  padding:10px 14px;
  font-size:12px;
  background:var(--bg);
  border-radius:8px;
  color:var(--dim)}
.notice.error {
  color:var(--red)}
.timeline {
  overflow:auto;
  flex:1;
  min-height:0;
  padding:22px max(24px,calc((100% - 820px)/2));
  scrollbar-gutter:stable;
  overscroll-behavior:contain}
.welcome {
  padding:10vh 5px 30px;
  text-align:center;
  color:var(--dim)}
.spark {
  font-size:40px;
  color:var(--brand)}
.welcome h2 {
  color:var(--text);
  font-size:28px}
.welcome p {
  line-height:1.8}
.suggestions {
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:25px}
.suggestions button {
  font-size:12px;
  display:flex;
  gap:25px}
.suggestions span {
  color:var(--brand)}
.composer {
  margin:12px auto max(18px,env(safe-area-inset-bottom));
  width:calc(100% - 56px);
  max-width:800px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--soft);
  padding:14px;
  box-shadow:0 6px 20px #10263205;
  flex-shrink:0}
textarea:focus-visible { outline:2px solid var(--focus); outline-offset:2px; border-radius:6px; }
textarea {
  width:100%;
  border:0;
  outline:0;
  resize:none;
  background:transparent;
  color:var(--text);
  min-height:48px;
  max-height:170px;
  line-height:1.6;
  padding:4px}
textarea::placeholder {
  color:var(--dim)}
.composer-tools,.composer-tools>div {
  display:flex;
  align-items:center;
  gap:10px}
.composer-tools {
  justify-content:space-between}
.attach {
  font-size:24px;
  cursor:pointer;
  padding:0 7px}
.attach[aria-disabled=true] {
  opacity:.4;
  cursor:not-allowed}
select {
  max-width:180px;
  border:0;
  background:transparent;
  color:var(--dim);
  padding:7px;
  font-size:12px}
.send {
  border-radius:50%;
  background:var(--brand);
  color:var(--on-brand);
  width:33px;
  height:33px;
  padding:0;
  font-size:20px}
.send:hover:not(:disabled) {
  background:var(--brand)}
.composer-note {
  margin:10px 0 0;
  font-size:10px;
  color:var(--dim)}
.muted {
  color:var(--dim);
  font-size:12px;
  line-height:1.6}
.message {
  margin:0 0 26px;
  line-height:1.75;
  overflow-wrap:anywhere}
.message.user {
  margin-left:12%}
.user-bubble {
  background:var(--rail);
  border:1px solid transparent;
  border-radius:14px;
  padding:12px 16px;
  white-space:pre-wrap}
.message .body {
  white-space:pre-wrap}
.message-label {
  font-size:10px;
  letter-spacing:1px;
  color:var(--dim);
  font-weight:650;
  margin-bottom:6px;
  text-transform:uppercase}
.message footer {
  font-size:11px;
  color:var(--dim);
  margin-top:8px}
.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin-top:12px;
  background:var(--soft)}
.card h3 {
  margin:0 0 8px}
.card p {
  margin:7px 0}
.card button {
  margin:8px 8px 0 0;
  font-size:12px}
.badge {
  font-size:11px;
  border-radius:5px;
  padding:3px 6px;
  background:var(--rail);
  display:inline-block}
.activity {
  margin-top:10px;
  border-left:2px solid var(--line);
  padding:5px 12px;
  font-size:12px}
.activity summary {
  cursor:pointer}
.activity ul {
  padding-left:18px}
.attachments {
  display:flex;
  flex-wrap:wrap;
  gap:8px}
.attachment {
  border:1px solid var(--line);
  padding:6px 8px;
  border-radius:8px;
  font-size:11px;
  max-width:100%;
  overflow-wrap:anywhere}
.attachment button {
  border:0;
  padding:0 5px;
  background:none}
.attachment progress {
  width:80px;
  display:block}
.context {
  width:clamp(280px,var(--pane),calc(100vw - 325px));
  flex-shrink:0;
  background:var(--soft);
  padding:24px;
  overflow:auto;
  border-left:1px solid var(--line)}
.context-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px}
.context h2 {
  font-size:20px}
.context dl {
  font-size:12px}
.context dt {
  color:var(--dim);
  margin-top:14px}
.context dd {
  margin:4px 0;
  overflow-wrap:anywhere}
.splitter {
  width:5px;
  cursor:col-resize;
  background:var(--line);
  touch-action:none}
.splitter:hover {
  background:var(--brand)}
.sr-only,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)}
.skip:focus {
  position:fixed;
  z-index:10;
  background:var(--surface);
  padding:12px}
#older {
  display:block;
  margin:0 auto 20px}
.error-text {
  color:var(--red)}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#0b0e13;
  --surface:#131820;
  --soft:#1a2029;
  --rail:#1a2029;
  --text:#edf0f5;
  --dim:#a3adba;
  --line:#303946;
  --brand:#67e8f9;
  --focus:#67e8f9;
  --red:#fda4af;
  --on-brand:#131820;
  --complete:#7dd3fc;
  --active:#c4b5fd;
  --unknown:#a3adba}
:root[data-theme="dark"] .send,:root[data-theme="dark"] .avatar {
  background:var(--brand);
  color:var(--on-brand)}
@media(max-width:1100px) {
header {
  padding:20px}
.notice {
  margin:0 20px}
}
@media(max-width:800px) {
header {
  padding:16px 20px}
.context {
  position:fixed;
  inset:0 0 0 auto;
  z-index:5;
  width:min(100%,420px);
  box-shadow:-10px 0 40px #0003}
.splitter {
  display:none}
.composer {
  width:calc(100% - 28px);
  margin-bottom:max(10px,env(safe-area-inset-bottom))}
.timeline {
  padding:18px}
.notice {
  margin:0 14px}
.welcome {
  padding-top:5vh}
.composer-tools .muted {
  display:none}
.workspace {
  width:100%}
}
@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto!important;
  animation:none!important;
  transition:none!important}
}
.typed-controls { display:flex; gap:6px; margin-top:6px; }
#typed-form { border-top:1px solid var(--line); margin-top:8px; padding-top:10px; }
#typed-form label { display:block; font-size:12px; margin:12px 0; }
#typed-form label > input, #typed-form label > select { display:block; margin-top:7px; }
#typed-form label[hidden] { display:none; }
#typed-form fieldset label > input { display:inline-block; margin-top:0; }
#typed-form input { width:100%; border:1px solid var(--line); border-radius:6px; padding:8px; background:var(--surface); color:var(--text); }
@media(max-width:800px) {
  header { gap:8px; }
}

#typed-form fieldset { border:1px solid var(--line); border-radius:8px; margin:12px 0; }
#typed-form fieldset input { width:auto; }

/* Compact workflows remain in the page flow, with no nested scroll trap. */
#typed-form.job-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 12px; }
#typed-form.job-form[hidden] { display:none; }
#typed-form.job-form h3 { grid-column:1/-1; margin:0; font-size:14px; }
#typed-form.job-form label { margin:0; min-width:0; }
#typed-form.job-form label > input, #typed-form.job-form label > select { width:100%; margin-top:4px; min-height:36px; }
#typed-form.job-form .job-identity, #typed-form.job-form fieldset, .job-actions { grid-column:1/-1; }
#typed-form.job-form fieldset { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0; padding:6px 10px 9px; }
#typed-form.job-form fieldset label { display:inline-flex; align-items:center; gap:4px; min-height:28px; }
#typed-form.job-form fieldset label > input { width:auto; min-height:0; margin:0; }
.job-actions { display:flex; gap:8px; }
@media(max-width:480px) { #typed-form.job-form { grid-template-columns:minmax(0,1fr); } }

/* Durable stage state, independent coverage and binary identity. */
.report-context {
  margin:16px 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
}
.report-context h3 {
  font-size:13px;
  margin:12px 0 8px;
}
.stage-strip {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:8px;
  padding:0;
  margin:10px 0;
  list-style:none;
}
.stage-step {
  border:1px solid var(--line);
  border-top:3px solid var(--line);
  border-radius:8px;
  padding:9px;
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:11px;
}
.stage-step.is-complete {
  border-top-color:var(--complete);
}
.stage-state {
  display:flex;
  align-items:center;
  gap:5px;
}
.stage-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border:1px solid currentColor;
  border-radius:50%;
  flex-shrink:0;
}
.is-complete .stage-dot {
  background:var(--complete);
  border-color:var(--complete);
}
.is-active .stage-dot {
  background:var(--active);
  border-color:var(--active);

}
.stage-scope,.stage-basis,.stage-detail {
  color:var(--dim);
}
.outcome-counts {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  list-style:none;
  padding:0;
  font-size:12px;
}
.digest-row {
  display:grid;
  gap:8px;
  padding:10px 0;
  font-size:12px;
}
.digest-row button {
  justify-self:start;
  font-size:11px;
}
.digest-heading {
  display:flex;
  gap:9px;
  align-items:center;
}
.fingerprint {
  display:grid;
  grid-template-columns:repeat(5,4px);
  grid-template-rows:repeat(5,4px);
  gap:1px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:4px;
  flex-shrink:0;
}
.fingerprint .filled {
  background:var(--brand);
}
.full-digest code {
  display:block;
  overflow-wrap:anywhere;
  user-select:text;
  margin-top:6px;
}
.component-digests summary,.full-digest summary {
  cursor:pointer;
}
@keyframes stage-pulse {
  50% { opacity:.55; }
}
.live-state .is-active .stage-dot {
  animation:stage-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion:reduce) {
  .live-state .is-active .stage-dot { animation:none; }
}
.report-preview {
  margin:12px 0;
  border-left:2px solid var(--brand);
  padding-left:12px;
  font-size:12px;
}
.compact-outcomes {
  font-weight:600;
}
.mini-stage-strip {
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  padding:0;
  list-style:none;
  color:var(--dim);
  font-size:11px;
}
.compact-digest {
  flex-wrap:wrap;
  font-size:11px;
  margin:8px 0;
}
.report-expanded > summary {
  cursor:pointer;
  color:var(--brand);
}

.admin-tabs,.admin-actions {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.admin-tabs [aria-current] {background:var(--rail);border-color:var(--brand)}
.admin-row {padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.admin-row button {margin:4px 4px 0 0}
.admin-row p {margin:6px 0}
.admin-form {display:grid;gap:12px}
.admin-field {display:grid;gap:6px}
.admin-field input,.admin-form select {width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}
.admin-form fieldset {border:1px solid var(--line);border-radius:8px;display:grid;gap:7px}
.admin-check {display:flex;gap:6px;align-items:center}
.admin-capabilities {font-size:12px;line-height:1.7}
.token-panel {padding:14px;background:var(--soft);border:1px solid var(--brand);border-radius:var(--radius);margin-bottom:14px}

.signal-controls,.signal-heading {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.signal-controls {margin:12px 0}
.signal-controls select {background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:6px}
.signal-row {padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.signal-heading {justify-content:space-between}
.signal-title {display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:6px}
.signal-row p {margin:7px 0}
.signal-risk {color:var(--dim)}
.signal-provenance {margin-top:12px}
.signal-provenance code {display:block;overflow-wrap:anywhere;font-size:11px;margin:6px 0}

#typed-form button.primary, .card button.primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand); font-weight:600; }
#typed-form button.primary:hover:not(:disabled), .card button.primary:hover:not(:disabled) { background:var(--brand); filter:brightness(.92); }
#typed-form button.secondary { background:var(--surface); color:var(--text); border:1px solid var(--line); }
#typed-form > button { margin:8px 8px 0 0; }

/* Shared family banner, with account controls separate from conversation history. */
.top-banner { height:60px; padding:8px 24px; border-bottom:1px solid var(--line); background:var(--rail); position:relative; z-index:10; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); font-weight:650; font-size:17px; }
.brand-mark { width:26px; height:26px; flex-shrink:0; fill:none; stroke:var(--dim); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
:root { --brand-check:#15803d; }
:root[data-theme="dark"] { --brand-check:#4ade80; }
.brand-check { stroke:var(--brand-check); stroke-width:2.5; }
.brand small { font-weight:400; font-size:13px; color:var(--dim); margin-left:8px; }
.account { position:relative; }
.account-toggle { border-radius:50%; padding:3px; display:grid; place-items:center; width:44px; height:44px; }
.account-toggle img,.account-toggle .avatar { width:36px; height:36px; object-fit:cover; border-radius:50%; }
.account-menu { position:absolute; right:0; top:calc(100% + 10px); width:min(360px,calc(100vw - 32px)); padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 8px 24px #0002; max-height:calc(100dvh - 80px); overflow:auto; }
.account-identity { display:grid; gap:4px; padding-bottom:14px; margin-bottom:12px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.account-identity span { font-size:12px; color:var(--dim); }
.account-menu button { width:100%; text-align:left; margin-top:8px; display:flex; align-items:center; justify-content:space-between; }
.account-menu button span { color:var(--dim); font-size:12px; }
.build-details { padding:12px; background:var(--soft); border:1px solid var(--line); border-radius:8px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; font-size:12px; }
.build-details dt { color:var(--dim); }.build-details dd { margin:0; text-align:right; overflow-wrap:anywhere; }
@media(max-width:800px) { .top-banner { padding:8px 16px; }.context { top:60px; }.brand { font-size:16px; } }

/* Context tabs retain independent report/admin state without replacing the conversation. */
.context-bar { display:flex; align-items:center; flex-shrink:0; border-bottom:1px solid var(--line); background:var(--rail); }
.context-tabs { display:flex; overflow-x:auto; min-width:0; flex:1; }
.icon-button { display:inline-grid; place-items:center; min-width:34px; height:34px; padding:6px; flex-shrink:0; }
.tool-choice { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px; }
.worker-outline { width:20px; height:20px; border:1.5px solid currentColor; border-radius:4px; display:inline-block; position:relative; flex-shrink:0; }
.worker-outline::before { content:""; position:absolute; width:5px; height:5px; border:1px solid currentColor; border-radius:50%; top:3px; left:6px; }
.worker-outline::after { content:""; position:absolute; width:10px; height:4px; border:1px solid currentColor; border-radius:4px 4px 0 0; bottom:2px; left:3px; }
.context-tab { display:flex; align-items:center; flex-shrink:0; max-width:230px; border-right:1px solid var(--line); }
.context-tab > [role="tab"] { border:0; border-radius:0; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.context-tab > [aria-selected="true"] { box-shadow:inset 0 -2px var(--focus); background:var(--soft); }
.context-tab-close { border:0; padding:6px; min-width:28px; }
#context-content { min-height:0; overflow:hidden; padding:0; flex:1; }
.context-view { height:100%; overflow:auto; padding:20px; }
.context { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.context-head { flex-shrink:0; margin:0; padding:12px 16px; }

/* Quiet composer, with deterministic workflows behind one familiar action. */
.workflow-picker { position:relative; }
.workflow-menu { position:fixed; max-height:45dvh; overflow-y:auto; min-width:min(220px,calc(100vw - 24px)); max-width:calc(100vw - 24px); padding:5px; z-index:8; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 28px #0002; }
.workflow-menu button { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; text-align:left; padding:10px 12px; border-radius:7px; }
.workflow-menu button:hover:not(:disabled),.workflow-menu button:focus-visible { background:var(--soft); }
.workflow-menu small { color:var(--dim); font-size:11px; }
.composer-tools .attach { width:34px; height:34px; padding:0; line-height:1; border-radius:50%; }
.message .result-card { border:0; border-left:2px solid var(--line); border-radius:0; background:transparent; padding:4px 12px; margin-top:10px; }
.result-card h3 { font-size:14px; margin:0 0 3px; }
.result-card p { margin:3px 0; font-size:13px; }
.result-card button { margin:4px 8px 0 0; }
.result-lineage { font-size:11px; color:var(--dim); }
.activity-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; padding:5px 0; margin:0; background:transparent; border:0; border-radius:0; }
.activity-line h3,.activity-line p { margin:0; font-size:12px; }
.activity-line h3 { min-width:90px; }
.activity-line .badge { margin-left:auto; }

.user-message-tools { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-height:30px; opacity:0; transition:opacity .12s; }
.message.user:hover .user-message-tools, .message.user:focus-within .user-message-tools { opacity:1; }
.copy-message { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:6px; color:var(--dim); background:transparent; border:0; }
.copy-icon { width:11px; height:12px; border:1px solid currentColor; border-radius:2px; position:relative; }
.copy-icon::before { content:""; position:absolute; width:9px; height:10px; top:-4px; left:-4px; border-top:1px solid currentColor; border-left:1px solid currentColor; border-radius:2px; }
.copy-feedback:empty { display:none; }
@media (hover:none) { .user-message-tools { opacity:1; } .copy-message { width:44px; height:44px; } }
@media (prefers-reduced-motion:reduce) { .user-message-tools { transition:none; } }

:root[data-theme="dark"] .user-bubble { background:var(--soft); }

.job-stages .is-complete { border-top-color:var(--complete); }
.job-stages .is-active { border-top-color:var(--active); }
.job-stages .is-failed { border-top-color:var(--red); }
.job-stages .is-idle { border-top-style:dashed; }
.job-stages .stage-detail { margin:0; overflow-wrap:anywhere; }

.workflow-menu button { justify-content:flex-start; border:0; background:transparent; gap:10px; }
.workflow-copy { display:flex; flex-direction:column; gap:2px; }
.workflow-icon { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; color:var(--dim); }
#upload-app .workflow-icon { color:var(--brand); }

.stage-step.is-active { border-top-color:var(--active); }
.stage-step.is-failed { border-top-color:var(--red); }
.stage-step.is-idle { border-top-color:var(--unknown); }
.is-failed .stage-dot { background:var(--red); border-color:var(--red); }

.message.assistant + .message.user { padding-top:0; }
#typed-form input:focus-visible,#typed-form select:focus-visible { outline-offset:2px; }

/* Active conversations keep only the accessible pane control above history. */
.workspace > header { flex-shrink:0; }
.workspace > header.conversation-active { padding:6px 20px; justify-content:flex-end; min-height:56px; }
.pane-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:120px; min-height:44px; flex-shrink:0; padding:10px 12px; font-size:14px; color:var(--text); border:1px solid var(--line); background:var(--surface); }
.pane-toggle svg { width:22px; height:22px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.pane-toggle[aria-expanded="true"] { background:var(--soft); border-color:var(--focus); }

.admin-job { margin:12px 0; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--soft); }
.admin-job-submitted { display:block; margin:8px 0; font-size:12px; }
.admin-job-detail { display:grid; gap:6px; overflow-wrap:anywhere; }
.admin-job-detail[hidden] { display:none; }
.admin-job-detail :is(h3,p,ul) { margin:0; }
.admin-job-detail h3 { font-size:inherit; }
.admin-job-attempt, .admin-job-report, .admin-job-inventory { display:grid; gap:4px; }
.admin-job-inventory[hidden] { display:none; }
.admin-job-detail-line, .admin-job-stage-list { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 10px; }
.admin-job-stage-list { padding:0; list-style:none; }
.admin-job-stage-list li { background:var(--surface); border:1px solid var(--line); border-radius:4px; padding:1px 6px; }
.admin-job-artifact-list { padding-left:20px; max-height:180px; overflow:auto; }
.admin-job-artifact-list:empty, .admin-job-inventory p:empty { display:none; }
.admin-job-technical summary { cursor:pointer; }
.job-chevron { margin-left:7px; }

.running-indicator { display:inline-flex; align-items:center; gap:7px; color:var(--dim); font-size:12px; }
.job-running-spinner { width:12px; height:12px; box-sizing:border-box; flex:none; border:1.5px solid var(--line); border-top-color:var(--brand); border-radius:50%; }
.live-state .job-running-spinner { animation:job-running-turn 1.2s linear infinite; }
.running-current .running-indicator > .job-running-spinner { animation:stage-pulse 1.8s ease-in-out infinite; }
:is(.running-current,.live-state) .running-text { background:linear-gradient(105deg,var(--dim) 40%,var(--text) 50%,var(--dim) 60%) 200% 0/200% 100%; background-clip:text; color:transparent; animation:job-running-highlight 2.5s linear infinite; }
@keyframes job-running-turn { to { transform:rotate(360deg); } }
@keyframes job-running-highlight { to { background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce) {
  .live-state .job-running-spinner,
  .running-current .running-indicator > .job-running-spinner,
  :is(.running-current,.live-state) .running-text { animation:none; }
  :is(.running-current,.live-state) .running-text { background:none; color:var(--dim); }
}

.stage-step.is-coming-soon,.mini-stage-strip .is-coming-soon { color:var(--dim); border-color:var(--line); background:var(--soft); }

.matching-evidence { margin-top:12px; }
.evidence-table-wrap { overflow-x:auto; max-width:100%; }
.evidence-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.evidence-table th { font-weight:500; color:var(--dim); }
.evidence-table th,.evidence-table td { padding:9px 10px; vertical-align:top; border-bottom:1px solid var(--line); }
.evidence-table th:first-child,.evidence-table td:first-child { padding-left:0; }
.evidence-table td { min-width:95px; max-width:360px; }
.evidence-table td:first-child { min-width:180px; }
.evidence-table pre { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; margin:0; font:inherit; }
.evidence-value + .evidence-value { margin-top:7px; }
.evidence-field { display:block; font-size:11px; }
.evidence-table details { max-width:250px; font-size:11px; }
.evidence-table details summary { cursor:pointer; color:var(--dim); }
.context.is-expanded { width:calc(100vw - 325px); }
@media(max-width:800px) { .context.is-expanded { width:100%; } }

.static-risk-score { display:flex; flex-direction:column; align-items:flex-end; gap:3px; padding:9px 12px; margin-left:auto; border:1px solid var(--line); border-radius:14px; background:var(--surface); flex:0 0 auto; }
.static-risk-label { color:var(--dim); font-size:11px; }
.static-risk-score strong { font-size:18px; line-height:1.2; font-variant-numeric:tabular-nums; }
.static-risk-score .muted { font-size:10px; }
@media(max-width:600px) { .report-app-header { flex-wrap:wrap; } .report-app-header .static-risk-score { margin-left:60px; align-items:flex-start; } }
.risk-meter { flex:1; min-width:100px; height:10px; accent-color:var(--brand); }
.risk-meter::-webkit-meter-bar { background:var(--line); border:0; border-radius:6px; }
.risk-meter::-webkit-meter-optimum-value { background:var(--brand); border-radius:6px; }
.severity-badge { border:1px solid currentColor; font-weight:600; }
.severity-critical { color:#9d174d; background:#fce7f3; }
.severity-high { color:#9f1239; background:#ffe4e6; }
.severity-moderate { color:#92400e; background:#fef3c7; }
.severity-low { color:#155e75; background:#cffafe; }
.severity-informational,.severity-unknown { color:var(--dim); background:var(--soft); }
:root[data-theme="dark"] .severity-critical { color:#f9a8d4; background:#4a1736; }
:root[data-theme="dark"] .severity-high { color:#fda4af; background:#4c1726; }
:root[data-theme="dark"] .severity-moderate { color:#fcd34d; background:#422d12; }
:root[data-theme="dark"] .severity-low { color:#67e8f9; background:#123541; }

/* Compact, independently observed store identity. */
.report-app-header { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; margin:12px 0 18px; }
.report-app-header .app-icon,.report-app-header .app-icon-placeholder { width:48px; height:48px; flex:0 0 48px; border-radius:10px; object-fit:cover; }
.report-app-header .app-icon-placeholder { display:grid; place-items:center; background:var(--surface); color:var(--dim); font-size:11px; border:1px solid var(--line); }
.report-app-identity { min-width:0; flex:1 1 180px; }
.report-app-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.report-app-title h3 { margin:0; overflow-wrap:anywhere; }
.report-platform { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--dim); white-space:nowrap; }
.report-platform-icon,.report-store-icon { display:inline-block; width:15px; height:15px; background:currentColor; mask-size:contain; mask-repeat:no-repeat; mask-position:center; }
.platform-android { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5 5 2l1-.6L8 4a10 10 0 0 1 8 0l2-2.6 1 .6-2 3a8 8 0 0 1 4 7H3a8 8 0 0 1 4-7Zm0 3v2h2V8Zm8 0v2h2V8ZM3 13h18v6a2 2 0 0 1-2 2h-1v3h-3v-3H9v3H6v-3H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E"); }
.platform-ios { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1c0 3-2 5-4 5 0-3 2-5 4-5Zm4 16c-1 3-3 6-5 6-1 0-2-1-3-1s-2 1-3 1c-3 0-7-6-7-11 0-4 3-6 6-6 2 0 3 1 4 1s3-1 5-1c2 0 4 1 5 3-5 3-4 6-2 8Z'/%3E%3C/svg%3E"); }
.report-build-store { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; margin-top:3px; font-size:12px; overflow-wrap:anywhere; }
.report-store-link { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-width:28px; min-height:28px; border-radius:5px; color:var(--focus); }
.store-play { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 2 17 10L4 22Z'/%3E%3C/svg%3E"); }
.store-apple { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' d='m8 3 11 19M16 3 5 22M3 16h18'/%3E%3C/svg%3E"); }
.report-app-secondary,.report-app-popularity { margin:4px 0 0; font-size:12px; overflow-wrap:anywhere; }
.workspace > .notice { width:calc(100% - 56px); max-width:800px; margin:0 auto; text-align:center; overflow-wrap:anywhere; }
@media(max-width:800px) { .workspace > .notice { width:calc(100% - 28px); } }

.report-downloads{border-top:1px solid var(--line);padding-top:16px;margin-top:24px;display:flex;gap:8px;flex-wrap:wrap}.report-downloads h3{flex-basis:100%;margin:0 0 4px}.report-downloads a{font-size:12px;text-decoration:none}

.signal-heading {justify-content:flex-start}
.signal-evidence-toggle {margin-left:auto;display:inline-flex;align-items:center;gap:5px;padding:3px 7px;font-size:12px}

/* Flat context tabs share the pane baseline and retain independent close controls. */
.context-tabs { gap:0; padding:0; align-self:stretch; }
.context-tab { border:0; border-right:1px solid var(--line); border-radius:0; color:var(--dim); background:transparent; min-width:0; align-items:stretch; }
.context-tab.is-active { color:var(--text); background:var(--surface); box-shadow:inset 0 2px var(--focus); }
.context-tab > [role="tab"] { display:flex; align-items:center; gap:7px; min-width:0; height:36px; padding:7px 9px; color:inherit; background:transparent; border-radius:0; }
.context-tab > [aria-selected="true"] { box-shadow:none; background:transparent; }
.context-tab-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.context-tab-close { color:inherit; background:transparent; border-radius:0; min-width:28px; padding:5px; }
.context-tab > button:hover { background:var(--soft); }
.context-tab > button:focus-visible { outline:2px solid var(--focus); outline-offset:-3px; }
.context-tab-icon { display:block; flex:0 0 15px; width:15px; height:15px; background:currentColor; mask:var(--tab-icon) center / contain no-repeat; }
.tab-icon-report { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h10l4%204v14H5z%20M14%203v5h5%20M8%2012h8%20M8%2016h8%22%2F%3E%3C%2Fsvg%3E"); }
.tab-icon-artifact { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h10l4%204v14H5z%20M14%203v5h5%22%2F%3E%3C%2Fsvg%3E"); }
.tab-icon-job { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%208v4l3%202%20M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200%22%2F%3E%3C%2Fsvg%3E"); }
.tab-icon-workers { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203h16v7H4z%20M4%2014h16v7H4z%20M7%206.5h.01%20M7%2017.5h.01%20M11%206.5h6%20M11%2017.5h6%22%2F%3E%3C%2Fsvg%3E"); }
.tab-icon-search { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10.5%203a7.5%207.5%200%201%201%200%2015%207.5%207.5%200%200%201%200-15%20M16%2016l5%205%22%2F%3E%3C%2Fsvg%3E"); }
.tab-icon-tools { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16%20M4%2012h16%22%2F%3E%3C%2Fsvg%3E"); }

.worker-hostname{display:block;user-select:all;overflow-wrap:anywhere;font-size:.85rem;margin:.4rem 0}.admin-capabilities summary{cursor:pointer;color:var(--dim)}

/* Fixed icon navigation. Labels float on hover/focus, the rail never expands. */
:root { --navigation-width:64px; }
.navigation-rail { position:fixed; inset:0 auto 0 0; width:var(--navigation-width); z-index:30; background:var(--rail); border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:12px 0; }
.rail-links { display:grid; gap:8px; }
.rail-button { position:relative; display:grid; place-items:center; width:44px; height:44px; padding:10px; border-color:transparent; background:transparent; }
.rail-button svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
.rail-button[aria-current="page"] { color:var(--brand); background:var(--surface); border-color:var(--line); }
.rail-label { pointer-events:none; visibility:hidden; position:absolute; left:calc(100% + 12px); top:50%; transform:translateY(-50%); white-space:nowrap; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:7px 10px; box-shadow:0 3px 12px #0002; font-size:12px; z-index:40; }
.rail-button:hover .rail-label,.rail-button:focus-visible .rail-label,.account-toggle:hover .rail-label,.account-toggle:focus-visible .rail-label { visibility:visible; }
.navigation-rail .account { margin-top:auto; }
.navigation-rail .account-toggle { position:relative; }
.navigation-rail .account-menu { top:auto; bottom:0; left:calc(100% + 12px); right:auto; width:min(360px,calc(100vw - 88px)); max-height:calc(100dvh - 24px); }
.top-banner,.shell,.breachwatch-view { margin-left:var(--navigation-width); }
.breachwatch-view { height:calc(100dvh - 60px); overflow:auto; padding:32px clamp(18px,4vw,64px); }
.breachwatch-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; max-width:1000px; margin:0 auto; }
.breachwatch-heading h1 { margin:8px 0 12px; font-size:28px; }
.breachwatch-heading p,#breachwatch-status { color:var(--dim); line-height:1.5; }
#breachwatch-status,.breachwatch-sources,.breachwatch-stories { max-width:1000px; margin:20px auto; }
.breachwatch-sources { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--dim); font-size:12px; line-height:1.6; }
.breachwatch-stories { display:grid; gap:16px; }
.breachwatch-story { border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--surface); min-width:0; }
.story-metadata { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--dim); font-size:12px; }
.breachwatch-story h2 { margin:12px 0; font-size:19px; line-height:1.45; overflow-wrap:anywhere; }
.breachwatch-story h2 a { color:var(--text); text-decoration:none; }.breachwatch-story h2 a:hover { text-decoration:underline; }
.story-summary { line-height:1.65; color:var(--dim); overflow-wrap:anywhere; }
.story-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }.coming-soon { font-size:12px; color:var(--dim); }
@media(max-width:800px) { .shell .context { left:var(--navigation-width); width:calc(100% - var(--navigation-width)); }.shell .context.is-expanded { width:calc(100% - var(--navigation-width)); } }
@media(max-width:480px) { .breachwatch-heading { flex-wrap:wrap; }.breachwatch-story { padding:18px; }.brand { gap:8px; }.brand small { margin-left:6px; } }

/* Selected helpers stay in workspace flow above the unchanged composer. */
.helper-tray { width:calc(100% - 56px); max-width:800px; flex:0 1 auto; min-height:0; max-height:42dvh; margin:8px auto 0; border:1px solid var(--line); border-radius:14px; background:var(--soft); overflow:auto; overscroll-behavior:contain; }
.helper-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 12px 6px 18px; position:sticky; top:0; background:var(--soft); z-index:1; border-bottom:1px solid var(--line); }
.helper-header h2 { font-size:14px; margin:0; }.helper-header button { width:44px; height:44px; }
.helper-tray #typed-form { margin:0; padding:16px 18px; border-top:0; }
.helper-tray #typed-form > h3 { display:none; }
@media(max-width:800px) { .helper-tray { width:calc(100% - 28px); max-height:38dvh; } }
@media(max-height:550px) { .helper-tray { max-height:32dvh; } }

/* User-selected accents share the existing neutral surfaces and semantic statuses. */
:root[data-palette="azure"] { --brand:#1d4ed8; --focus:#1d4ed8; }
:root[data-palette="indigo"] { --brand:#4338ca; --focus:#4338ca; }
:root[data-palette="violet"] { --brand:#7e22ce; --focus:#7e22ce; }
:root[data-palette="slate"] { --brand:#475569; --focus:#475569; }
:root[data-theme="dark"][data-palette="azure"] { --brand:#93c5fd; --focus:#93c5fd; }
:root[data-theme="dark"][data-palette="indigo"] { --brand:#a5b4fc; --focus:#a5b4fc; }
:root[data-theme="dark"][data-palette="violet"] { --brand:#d8b4fe; --focus:#d8b4fe; }
:root[data-theme="dark"][data-palette="slate"] { --brand:#cbd5e1; --focus:#cbd5e1; }
.account-color { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; }
.account-color select { min-height:36px; min-width:0; max-width:65%; padding:5px 8px; border:1px solid var(--line); border-radius:6px; color:var(--text); background:var(--surface); }

.breachwatch-story { display:flow-root; }
.story-visual { width:136px; height:96px; float:right; margin:0 0 16px 24px; border-radius:8px; overflow:hidden; background:var(--soft); display:grid; place-items:center; }
.story-article-icon { width:32px; height:38px; border:2px solid var(--dim); border-radius:4px; position:relative; opacity:.7; grid-area:1/1; }
.story-article-icon::after { content:""; position:absolute; left:6px; right:6px; top:10px; height:2px; background:var(--dim); box-shadow:0 7px var(--dim),0 14px var(--dim); }
.story-image { width:100%; height:100%; object-fit:cover; grid-area:1/1; }
.story-platform { color:var(--text); background:var(--soft); border:1px solid var(--line); border-radius:5px; padding:1px 6px; }
.story-actions { clear:both; gap:8px; }
.story-actions button:disabled { opacity:1; color:var(--dim); background:var(--soft); }
.story-routing { margin:10px 0 0; color:var(--dim); font-size:12px; line-height:1.5; }
@media(max-width:480px) { .story-visual { width:76px; height:64px; margin-left:12px; }.story-actions button { width:100%; text-align:left; } }

/* The signed-in person stays visible beside the composer workflow control. */
.composer-avatar { display:inline-flex; width:28px; height:28px; flex:0 0 28px; }
.composer-avatar img,.composer-avatar .avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; font-size:11px; }
.composer-avatar[hidden],.composer-avatar [hidden] { display:none; }

.history-sync { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 10px; font-size:12px; color:var(--dim); margin-bottom:8px; }
.history-sync button { min-height:32px; padding:4px 6px; }
.timeline { padding-top:10px; }

.signal-picker { min-width:0; margin:12px 0; }.signal-picker>label { display:block; }
.signal-picker input[type="search"] { width:100%; }
.signal-tags { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }.signal-tags button { max-width:100%; white-space:normal; overflow-wrap:anywhere; font-size:12px; }
.signal-options { max-height:230px; overflow:auto; margin-top:8px; }
#typed-form .signal-options>label { display:flex; align-items:flex-start; gap:8px; margin:0; padding:8px 4px; }
#typed-form .signal-options>label>input[type="checkbox"] { display:block; width:auto; flex:0 0 auto; min-height:0; padding:0; margin:3px 0 0; }
.signal-options strong,.signal-options small { display:block; font-size:12px; }.signal-options small { color:var(--dim); line-height:1.5; }
.signal-picker>select { max-width:100%; }.signal-picker>button { margin:4px; }

.signal-options small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.signal-options>label>span { min-width:0; }
.signal-picker>details { margin:6px 0; }.signal-picker>details>summary { font-size:12px; color:var(--dim); cursor:pointer; }

/* Bounded single-line workflow labels and secondary descriptions. */
.workflow-menu { width:min(430px,calc(100vw - var(--navigation-width,0px) - 24px)); }
.workflow-copy { flex:1; min-width:0; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.workflow-copy > span,.workflow-copy > small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.workflow-copy > span { flex:1; }
.workflow-copy > small { flex:0 1 48%; text-align:right; }

.search-table-scroll { max-width:100%; overflow-x:auto; }
.search-results table { width:100%; min-width:42rem; border-collapse:collapse; }
.search-results th,.search-results td { text-align:left; vertical-align:top; padding:.7rem; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.search-results td:first-child { min-width:9rem; }
.search-results td:last-child { width:1%; white-space:nowrap; }
.search-pagination { display:flex; gap:.5rem; margin-top:.75rem; }

.search-results th { white-space:nowrap; }
.search-results td:nth-child(2) { min-width:5rem; }
.search-results td:nth-child(3) { min-width:6rem; }
.search-results td:nth-child(4) { min-width:8rem; }

.search-table-caption,.search-table-hint { overflow-wrap:anywhere; margin:.4rem 0; }
.search-app-link { border:0; background:none; color:var(--accent); padding:0; text-align:left; font:inherit; font-weight:600; white-space:normal; overflow-wrap:anywhere; cursor:pointer; text-decoration:underline; }

.tab-icon-listing { --tab-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010h16v11H4z%20M3%2010l2-7h14l2%207%20M9%2021v-7h6v7%20M3%2010q3%204%206%200%203%204%206%200%203%204%206%200%22%2F%3E%3C%2Fsvg%3E"); }

/* Browse apps uses the existing context pane and theme tokens. */
.tab-icon-browse { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E"); }
.browse-icon { display:inline-block; width:16px; height:16px; flex:0 0 16px; background:currentColor; mask:var(--tab-icon) center / contain no-repeat; }
.browse-icon.tab-icon-saved { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-popular { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m3 18 6-6 4 3 8-9m-5 0h5v5'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-refresh { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M21 4v6h-6m5.6 0A9 9 0 1 0 20 17'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-binary { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='m12 3 8 5v9l-8 4-8-4V8zm-8 5 8 4 8-4m-8 4v9M8 5l8 5'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-neutral { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' d='M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM8 12h8'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-failed { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' d='M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-4v4m0 4h.01'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-down,.browse-icon.tab-icon-up { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.browse-icon.tab-icon-up { transform:rotate(180deg); }
.browse-icon.tab-icon-submit { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
.browse-apps { container-type:inline-size; }
.browse-toolbar,.browse-filters,.browse-pagination { display:flex; align-items:center; gap:8px; }
.browse-toolbar { justify-content:space-between; margin-bottom:12px; }
.browse-segments { display:inline-flex; padding:2px; gap:2px; background:var(--rail); border:1px solid var(--line); border-radius:10px; }
.browse-segments button,.browse-refresh,.browse-actions button { display:inline-flex; gap:6px; align-items:center; justify-content:center; min-height:38px; }
.browse-segments button { background:transparent; color:var(--dim); border-color:transparent; font-weight:600; }
.browse-segments button[aria-pressed="true"] { background:var(--surface); color:var(--text); border-color:var(--line); }
.browse-segments button[aria-pressed="true"] .browse-icon { color:var(--brand); }
.browse-refresh { width:40px; padding:0; color:var(--dim); }
.browse-refresh > span:last-child { display:none; }
.browse-chart-meta { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:center; gap:4px 8px; margin-bottom:12px; }
.browse-chart-meta h2,.browse-chart-meta p { margin:0; overflow-wrap:anywhere; }
.browse-chart-meta h2 { font-size:17px; }
.browse-chart-meta > p,.browse-chart-meta > button { grid-column:2; }
.browse-chart-meta > button { justify-self:start; }
.browse-chart-meta > .browse-icon { color:var(--dim); }
.browse-chart-meta p,.browse-feedback,.browse-count { font-size:12px; }
.browse-filters { align-items:stretch; flex-wrap:wrap; margin-bottom:10px; }
.browse-filter { display:flex; flex:1 1 148px; align-items:center; min-width:0; gap:6px; padding:0 9px; color:var(--dim); background:var(--soft); border:1px solid var(--line); border-radius:9px; }
.browse-filter input { width:100%; min-width:0; min-height:38px; background:transparent; color:var(--text); border:0; padding:0 1px; }
.browse-filter input:focus-visible { outline-offset:0; }
.browse-filters select { flex:0 1 auto; min-width:0; max-width:100%; padding:6px 8px; min-height:40px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); }
.browse-feedback { margin:8px 0; color:var(--dim); }
.browse-columns,.browse-row-toggle { display:grid; grid-template-columns:minmax(0,1fr) 120px 13px; gap:8px; align-items:center; padding:8px 10px; }
.browse-popular .browse-columns,.browse-popular .browse-row-toggle { grid-template-columns:28px minmax(0,1fr) 120px 13px; }
.browse-columns { color:var(--dim); font-weight:600; font-size:11px; }
.browse-apps:not(.browse-popular) .browse-columns .browse-rank { display:none; }
.browse-rows { list-style:none; padding:0; margin:0; border-top:1px solid var(--line); }
.browse-row { border:1px solid transparent; border-bottom-color:var(--line); }
.browse-quick-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:8px; }
.browse-quick-submit { margin-inline-end:10px; min-height:38px; padding-inline:9px; font-size:12px; font-weight:600; color:var(--brand); }
.browse-row.browse-selected { position:relative; border-color:color-mix(in srgb,var(--brand) 28%,var(--line)); border-radius:9px; background:color-mix(in srgb,var(--brand) 8%,var(--surface)); }
.browse-selected::before { position:absolute; inset:7px auto 7px -1px; width:3px; border-radius:3px; background:var(--brand); content:""; }
.browse-row-toggle { width:100%; text-align:left; border:0; background:transparent; min-height:58px; border-radius:8px; }
.browse-row-toggle:hover:not(:disabled) { background:color-mix(in srgb,var(--brand) 6%,transparent); }
.browse-rank { text-align:center; color:var(--dim); font-variant-numeric:tabular-nums; }
.browse-title { display:flex; align-items:center; min-width:0; gap:9px; }
.app-identity-tile { --identity-size:36px; display:grid; place-items:center; flex:0 0 var(--identity-size); inline-size:var(--identity-size); block-size:var(--identity-size); border-radius:8px; color:#fff; background:linear-gradient(150deg,#375fac,#30417f); font-size:12px; font-weight:700; }
.app-identity-tile-1 { background:linear-gradient(150deg,#674ea3,#443382); }
.app-identity-tile-2 { background:linear-gradient(150deg,#267184,#1d4e63); }
.app-identity-tile-3 { background:linear-gradient(150deg,#985327,#8b4022); }
.app-identity-tile-4 { background:linear-gradient(150deg,#944163,#663862); }
.browse-name { display:grid; min-width:0; gap:2px; }
.browse-name > span { font-size:11px; }
.browse-name > *,.browse-workspace-status { overflow-wrap:anywhere; }
.browse-workspace-status { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:600; max-width:120px; }
.browse-status-report .browse-icon { color:var(--complete); }
.browse-status-job .browse-icon { color:var(--active); }
.browse-status-binary .browse-icon { color:var(--brand); }
.browse-status-failed .browse-icon { color:var(--red); }
.browse-status-neutral,.browse-row-toggle > .browse-icon { color:var(--dim); }
.browse-detail { margin:0 10px 0; padding:10px 0 12px; border-top:1px solid color-mix(in srgb,var(--brand) 22%,var(--line)); overflow-wrap:anywhere; }
.browse-popular .browse-detail { margin-inline-start:46px; }
.browse-evidence { display:flex; justify-content:space-between; gap:9px; flex-wrap:wrap; }
.browse-detail-copy { flex:1 1 160px; min-width:0; }
.browse-detail p { margin:4px 0; font-size:12px; line-height:1.4; }
.browse-actions { display:flex; align-items:flex-start; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.browse-actions a { padding:7px 0; font-size:12px; }
.browse-actions .browse-primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand); font-weight:600; }
.browse-actions .browse-primary:hover:not(:disabled) { background:var(--brand); filter:brightness(.94); }
.browse-pagination { margin-top:8px; }
.browse-count { flex:1; color:var(--dim); }
@container (max-width:380px) {
  .browse-quick-row { grid-template-columns:minmax(0,1fr); }
  .browse-quick-submit { justify-self:end; margin-block:0 8px; }
  .browse-actions { flex:1 1 100%; }
  .browse-actions .browse-primary { flex:1; }
}
@container (max-width:290px) {
  .browse-columns,.browse-row-toggle { grid-template-columns:minmax(0,1fr) 13px; }
  .browse-popular .browse-columns,.browse-popular .browse-row-toggle { grid-template-columns:24px minmax(0,1fr) 13px; }
  .browse-columns > :last-child { display:none; }
  .browse-row-toggle > .browse-icon { grid-column:-2; grid-row:1; }
  .browse-workspace-status { grid-row:2; grid-column:-3; max-width:none; margin-top:-3px; }
  .browse-popular .browse-detail { margin-inline-start:40px; }
}
.market-result-list { display:grid; gap:6px; padding:0; list-style:none; }
.market-result-item,.market-result-identity { display:flex; align-items:center; gap:8px; min-width:0; }
.market-result-identity .app-identity-tile { --identity-size:26px; border-radius:6px; font-size:10px; }
.market-result-caption { display:grid; min-width:0; overflow-wrap:anywhere; }
.market-result-rank { min-width:1.6em; color:var(--dim); font-variant-numeric:tabular-nums; }
.market-result-provenance,.market-result-developer { color:var(--dim); font-size:12px; }
@media(max-width:600px) {
  .context-view:has(.browse-apps) { padding:14px; }
  .browse-apps button { min-height:40px; }
}

/* Conversational turns: compact questions and naturally sized responses. */
.message.user { margin-left:0; display:flex; flex-direction:column; align-items:flex-end; }
.user-bubble { width:fit-content; max-width:min(88%, 660px); text-align:left; }
.turn-time { align-self:center; color:var(--dim); font-size:11px; margin:12px 0 14px; }
.user-message-tools { margin-top:2px; }
.message.assistant { width:100%; min-height:0; }
#messages { padding-bottom:var(--turn-room, 0px); }
.pending-turn { min-height:0; }
.pending-response { padding:0 0 24px; color:var(--dim); }
.thinking { display:inline-block; color:var(--dim); background:linear-gradient(105deg,var(--dim) 25%,var(--text) 50%,var(--dim) 75%); background-size:220% 100%; background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:thinking-shimmer 1.8s linear infinite; }
.service-activity { margin:5px 0 0; }
@keyframes thinking-shimmer { from {background-position:200% 0;} to {background-position:-20% 0;} }
@media (prefers-reduced-motion:reduce) { .thinking { animation:none; background:none; -webkit-text-fill-color:currentColor; } }
.timeline { overflow-anchor:none; }

/* Request steps use the conversation's body type and remain beside their question. */
#developer-trace-option[hidden] { display:none; }
#developer-trace { accent-color:var(--brand); }
.step-history { align-self:stretch; margin:0 0 14px; color:var(--dim); font-size:inherit; line-height:1.75; }
.step-history summary { cursor:pointer; list-style:none; }
.step-history summary::-webkit-details-marker { display:none; }
.step-history summary { display:flex; align-items:baseline; gap:9px; }
.step-history summary::before {
  content:''; display:inline-block; width:6px; height:6px; flex:none;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg);
}
.step-history details[open] > summary::before, .step-history[open] > summary::before { transform:rotate(45deg); }
.step-history summary:focus-visible { outline:2px solid var(--focus); outline-offset:3px; border-radius:3px; }
.step-history-summary { width:fit-content; }
.step-history-list { list-style:none; padding:0 0 0 10px; margin:6px 0 0 2px; border-inline-start:1px solid var(--line); }
.step-history-item { padding:2px 0; }
.step-history-item > .step-history-row { padding-inline-start:15px; }
.step-history-row { display:grid; grid-template-columns:auto minmax(0, 1fr) fit-content(45%); gap:9px; align-items:baseline; flex:1; min-width:0; }
.step-history-indicator { display:inline-flex; gap:5px; align-items:center; align-self:center; color:var(--dim); }
.step-history-indicator svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.step-history-item.active .step-history-indicator { color:var(--brand); }
.step-history-item.active .job-running-spinner { animation:job-running-turn 1.2s linear infinite; }
.step-history-title { color:var(--text); overflow-wrap:anywhere; }
.step-history-status { text-align:end; }
.step-detail-content { padding-inline-start:40px; overflow-wrap:anywhere; }
.step-detail-content p { margin:0; }
.step-trace { margin:4px 0 6px; display:grid; grid-template-columns:auto minmax(0, 1fr); gap:0 12px; }
.step-trace dd { margin:0; color:var(--text); }
@media (prefers-reduced-motion:reduce) { .step-history-item.active .job-running-spinner { animation:none; } }

.admin-queue-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:7px 0}

.admin-priority-form { margin: 12px 0; padding: 12px; border: 1px solid var(--border, #526477); border-radius: 8px; max-width: 40rem; }
.attempt-failure { margin-top:.5rem; padding:.6rem .75rem; border-inline-start:3px solid var(--warning, #b87820); background:rgba(184,120,32,.06); border-radius:.35rem; }
.attempt-failure p { margin:.25rem 0; overflow-wrap:anywhere; }
.failure-caption { display:flex; gap:.4rem; align-items:center; font-size:.85rem; }
.failure-details summary,.listing-blocker-details summary { cursor:pointer; padding:.4rem 0; }

.android-batch { container-type:inline-size; container-name:android-batch; }
.android-batch-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.android-batch-table th,.android-batch-table td { text-align:left; vertical-align:top; padding:.6rem .4rem; border-bottom:1px solid var(--line,#ddd); overflow-wrap:anywhere; }
.android-batch-table thead th:last-child,.android-batch-report { width:1%; }
.android-batch-report button { white-space:nowrap; }
.android-batch-extra { display:none; }
@container android-batch (max-width:450px) {
  .android-batch-worker,.android-batch-blocker,.android-batch-table thead th:nth-child(3),.android-batch-table thead th:nth-child(4) { display:none; }
  .android-batch-extra { display:block; margin-top:.4rem; }
  .android-batch-table thead th:first-child { width:33%; }
}


.report-url-list { padding-left: 1.25rem; }
.report-url-list li { margin: .5rem 0; min-width: 0; overflow-wrap: anywhere; }
.report-url-list strong, .report-url-list code, .report-url-list span { display: block; overflow-wrap: anywhere; white-space: normal; }

/* Compact Jobs overview, with evidence and recovery in a focused disclosure. */
.admin-jobs-scroll { max-width:100%; overflow:auto; }
.admin-jobs-table { width:100%; border-collapse:collapse; font-size:13px; }
.admin-jobs-table th { text-align:left; color:var(--dim); font-weight:500; }
.admin-jobs-table th,.admin-jobs-table td { padding:10px 8px; vertical-align:top; border-bottom:1px solid var(--line); }
.admin-jobs-table p { margin:4px 0; }
.admin-job-app { min-width:125px; max-width:220px; overflow-wrap:anywhere; }
.admin-job-state { min-width:115px; overflow-wrap:anywhere; }
.admin-job-controls { min-width:95px; }
.admin-job-controls > button { margin:0 4px 4px 0; }
.admin-job-controls .admin-priority-form { min-width:210px; }
.admin-job-expanded > td { background:var(--soft); padding:8px 12px; }
.admin-job-expanded[hidden] { display:none; }
.engineering-ticket { color:var(--brand); text-decoration:underline; }

.report-request-origin, .report-request-history p, .admin-job-detail-line { overflow-wrap:anywhere; }

.featured-section,.feed-heading { max-width:1000px; margin:28px auto 16px; }
#featured-investigations { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; }
.featured-investigation { min-width:0; border:1px solid var(--line); border-radius:var(--radius); padding:18px; background:var(--surface); }
.featured-investigation h3 { margin:0 0 10px; font-size:17px; }
.featured-investigation p { line-height:1.5; }
.featured-investigation .story-actions { flex-wrap:wrap; }
.featured-investigation a { display:inline-flex; align-items:center; text-decoration:none; }
.investigation-question { width:100%; min-height:90px; resize:vertical; }

.report-app-title h2 { margin:0; overflow-wrap:anywhere; }
.report-app-actions { display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px; margin-left:auto; max-width:100%; }
.report-app-header .report-app-actions .static-risk-score { margin-left:0; }
.report-observed-date { margin:6px 0 0; font-size:12px; }
.report-introduction { margin-block:0 16px; }
.report-share { position:relative; max-width:100%; }
.share-report-trigger { cursor:pointer; list-style:none; border:1px solid var(--line); border-radius:7px; padding:6px 9px; }
.share-report-trigger::-webkit-details-marker { display:none; }
.report-share[open] { flex-basis:100%; }
.report-share-link { display:block; width:100%; margin-block:8px; }
.share-feedback { display:inline-block; margin-inline-start:8px; font-size:12px; }
.host-map-visual { margin:12px 0; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.host-map-visual svg { width:100%; display:block; }
.host-map-visual figcaption { padding:8px; font-size:12px; }
.world-land { fill:var(--line); stroke:var(--dim); stroke-width:.3; }
.host-map-marker { cursor:pointer; outline:none; }
.host-map-marker circle { fill:var(--brand); stroke:var(--surface); stroke-width:1.5; }
.host-map-marker text { fill:white; font-size:9px; font-weight:700; pointer-events:none; }
.host-map-marker.selected circle,.host-map-marker:focus circle { stroke:#e7a317; stroke-width:4; }
.host-location-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:4px 12px;
  max-height:340px;
  overflow:auto;
  list-style:none;
  padding:0 8px 8px;
  margin:0;
}
.host-location-list li { display:flex; flex-direction:column; gap:2px; min-width:0; padding:4px 0; font-size:12px; }
.host-location-select { text-align:left; overflow-wrap:anywhere; justify-self:start; }
.host-location-select[aria-pressed="true"] { outline:2px solid var(--brand); }
.host-map-controls { display:flex; align-items:center; gap:8px; margin-block:10px; }
.host-map-controls input { width:auto; margin:0; }
.url-host-group { padding:6px 0; border-bottom:1px solid var(--line); min-width:0; }
.url-host-group summary,.more-destination-hosts>summary,.common-destination-hosts>summary { cursor:pointer; overflow-wrap:anywhere; }
.url-host-group>summary { font-size:13px; font-weight:600; }
.more-destination-hosts { margin-top:8px; }
.host-ip-details,.host-abuse-details { margin:6px 0; font-size:12px; overflow-wrap:anywhere; }
.host-ip-observation { display:flex; flex-direction:column; gap:3px; padding:6px 0; }
.host-dns-answers,.network-sources { padding-left:20px; }
.signal-type-icon { display:inline-flex; width:16px; height:16px; color:var(--dim); }
.signal-type-icon svg { width:100%; height:100%; }
@media(max-width:600px) { .report-app-header .report-app-actions { flex-basis:100%; margin-left:60px; max-width:calc(100% - 60px); } }
.studio-panel.narrow .report-app-header .report-app-actions { flex-basis:100%; margin-left:60px; max-width:calc(100% - 60px); }

/* Signed-out entry point. The workspace has no visible or focusable controls until session verification. */
.signed-out > :not(.login) {
  display:none!important}
.login {
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr);
  gap:clamp(24px, 5vw, 80px);
  padding:clamp(16px, 3vw, 48px);
  background:linear-gradient(145deg, #080f21 15%, #152747);
}
.login-panel {
  display:grid;
  place-items:center;
  color:var(--text);
  background:var(--surface);
  border-radius:var(--radius);
  padding:clamp(20px, 5vw, 64px);
}
.login-content {
  width:min(100%, 390px);
}
.login-brand {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 32px;
  font-size:16px;
}
.login-brand strong {
  color:var(--brand);
}
.login-content h1,
.login-context h2 {
  margin:0;
  font-size:clamp(28px, 4vw, 44px);
  line-height:1.12;
  letter-spacing:-.035em;
}
.login-guidance {
  margin:12px 0 24px;
  color:var(--dim);
}
.login-google {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:48px;
  color:#172135;
  background:#fff;
  border-color:#a7b4c9;
  font-weight:650;
}
.login-google:hover:not(:disabled) {
  background:#edf4fc;
}
.login-providers {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px;
  margin-top:10px;
}
.login-providers button {
  padding-inline:2px;
  color:var(--dim);
  background:var(--soft);
  opacity:.7;
}
.login-mode {
  margin:22px 0 0;
  color:var(--dim);
}
.login-mode button {
  padding:6px;
  color:var(--brand);
  border:0;
  background:transparent;
  text-decoration:underline;
  font-weight:650;
}
.login-status {
  color:var(--dim);
  min-height:2.75em;
  margin:12px 0 0;
}
.login-context {
  align-self:center;
  padding-right:clamp(8px, 3vw, 36px);
  color:#f3f7ff;
}
.login-context p {
  max-width:32ch;
  color:#bfcce2;
  font-size:16px;
  line-height:1.6;
}
@media (max-width:700px) {
  .login {
    grid-template-columns:minmax(0, 1fr);
  }
  .login-context {
    display:none;
  }
}

.inventory-view { padding: 1rem; }
.inventory-table-scroll { max-width: 100%; overflow-x: auto; margin: .85rem 0 .45rem; }
.inventory-table-scroll table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inventory-table-scroll caption { text-align: start; font-weight: 650; margin-bottom: .35rem; }
.inventory-table-scroll th, .inventory-table-scroll td { border-bottom: 1px solid var(--line); padding: .4rem; text-align: end; }
.inventory-table-scroll th:first-child { text-align: start; }
.inventory-view details { margin-top: 1rem; }
.saved-inventory dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-variant-numeric: tabular-nums; }
.saved-inventory dd { margin: 0; text-align: end; }
