:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-soft: #333336;
  --muted: #6e6e73;
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-on-dark: #2997ff;
  --blue-soft: #eef6ff;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --black: #000000;
  --dark: #1d1d1f;
  --line: rgba(0, 0, 0, .08);
  --line-strong: #d2d2d7;
  --success: #248a5a;
  --warning: #a96700;
  --danger: #b42318;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  font-family: "SF Pro Text", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--parchment);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--parchment); }
body { min-width: 320px; margin: 0; background: var(--parchment); color: var(--ink); line-height: 1.47; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: var(--blue); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.auth-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 32px;
  background: var(--black);
  color: #fff;
}
.site-header::after,
.auth-nav::after { content: ""; position: absolute; right: 32px; bottom: 0; left: 32px; height: 1px; background: var(--blue-on-dark); opacity: .85; transform: scaleX(.28); transform-origin: left; animation: header-line 4.5s ease-in-out infinite; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; background: var(--blue); }
.header-nav { display: flex; align-items: center; gap: 22px; color: #a1a1a6; font-size: 12px; }
.header-nav .is-active { color: #fff; }
.header-spacer { flex: 1; }
.header-meta { display: flex; align-items: center; gap: 16px; }
.account-label { max-width: 220px; overflow: hidden; color: #a1a1a6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.header-status { display: inline-flex; align-items: center; gap: 7px; color: #a1a1a6; font-size: 12px; white-space: nowrap; }
.auth-nav { justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.auth-nav-meta { color: #a1a1a6; font-size: 11px; letter-spacing: .08em; }

.page-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 80px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: "SF Pro Display", "SF Pro Text", system-ui, -apple-system, sans-serif; font-size: 44px; font-weight: 600; letter-spacing: 0; line-height: 1.1; }
h2 { margin-bottom: 0; font-family: "SF Pro Display", "SF Pro Text", system-ui, -apple-system, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
h3 { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.page-lede { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:active { transform: scale(.97); }
.button:focus-visible, input:focus-visible, .file-drop:focus-within { outline: 2px solid var(--blue-focus); outline-offset: 2px; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-focus); }
.button-secondary { border-color: var(--line-strong); background: var(--canvas); color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.button-dark { border-color: rgba(255, 255, 255, .2); background: var(--dark); color: #fff; }
.button-dark:hover { border-color: rgba(255, 255, 255, .5); }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.button-icon { width: 40px; min-width: 40px; padding: 0; border-radius: var(--radius-pill); }
.button-icon span { font-size: 17px; line-height: 1; }

.panel { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--canvas); }
.panel::before { content: ""; position: absolute; top: -1px; left: 24px; width: 46px; height: 2px; background: var(--blue); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.status-ready { background: var(--success); }
.status-pending { background: var(--warning); }
.status-failed { background: var(--danger); }
.status-done { background: var(--blue); }
.inline-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.status-badge.is-error { background: #fff0ef; color: var(--danger); }
.status-badge.is-pending { background: #fff7e8; color: var(--warning); }
.form-message { min-height: 22px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }

/* Login */
.auth-page { min-height: 100vh; background: var(--black); color: #fff; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: 80px; align-items: center; width: min(1180px, calc(100% - 64px)); min-height: calc(100vh - 52px); margin: 0 auto; padding: 64px 0; }
.auth-intro { max-width: 600px; }
.auth-intro .eyebrow { color: #2997ff; }
.auth-intro h1 { margin-bottom: 24px; font-size: 60px; line-height: 1.03; }
.auth-intro h1 span { color: #2997ff; }
.auth-display { display: flex; align-items: flex-end; gap: 14px; width: min(470px, 100%); height: 64px; margin: 0 0 24px; color: #6e6e73; }
.display-index { align-self: flex-start; color: #2997ff; font-size: 11px; letter-spacing: .08em; }
.display-rule { width: 1px; height: 48px; background: rgba(255, 255, 255, .2); }
.display-bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.display-bars i { display: block; width: 5px; height: 20px; background: #2997ff; transform-origin: bottom; animation: bar-breathe 2.8s ease-in-out infinite; }
.display-bars i:nth-child(2) { height: 34px; animation-delay: .15s; }
.display-bars i:nth-child(3) { height: 27px; animation-delay: .3s; }
.display-bars i:nth-child(4) { height: 45px; animation-delay: .45s; }
.display-bars i:nth-child(5) { height: 31px; animation-delay: .6s; }
.display-bars i:nth-child(6) { height: 40px; animation-delay: .75s; }
.display-caption { align-self: flex-end; color: #6e6e73; font-size: 10px; letter-spacing: .08em; }
.intro-copy { max-width: 490px; margin-bottom: 40px; color: #a1a1a6; font-size: 18px; line-height: 1.55; }
.intro-meta { display: inline-flex; align-items: center; gap: 9px; color: #f5f5f7; font-size: 13px; }
.auth-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 28px; margin-top: 72px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.auth-signal { display: grid; gap: 5px; }
.auth-signal span { color: #6e6e73; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.auth-signal strong { color: #f5f5f7; font-size: 13px; font-weight: 600; }
.auth-spectrum { width: min(520px, 100%); margin-top: 42px; padding: 13px 0 11px; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.spectrum-head, .spectrum-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #6e6e73; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.spectrum-head span:last-child, .spectrum-foot span:last-child { color: #2997ff; }
.spectrum-plot { display: flex; align-items: center; gap: 10px; height: 70px; margin: 7px 0 8px; }
.spectrum-axis { color: #6e6e73; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
.spectrum-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 5px; width: 100%; height: 60px; padding: 0 0 5px 10px; border-bottom: 1px solid rgba(255, 255, 255, .2); border-left: 1px solid rgba(255, 255, 255, .2); }
.spectrum-bars i { display: block; height: 28%; background: #2997ff; transform-origin: bottom; animation: spectrum-breathe 2.2s ease-in-out infinite; }
.spectrum-bars i:nth-child(2) { height: 58%; animation-delay: .08s; }
.spectrum-bars i:nth-child(3) { height: 42%; animation-delay: .16s; }
.spectrum-bars i:nth-child(4) { height: 78%; animation-delay: .24s; }
.spectrum-bars i:nth-child(5) { height: 34%; animation-delay: .32s; }
.spectrum-bars i:nth-child(6) { height: 66%; animation-delay: .4s; }
.spectrum-bars i:nth-child(7) { height: 46%; animation-delay: .48s; }
.spectrum-bars i:nth-child(8) { height: 88%; animation-delay: .56s; }
.spectrum-bars i:nth-child(9) { height: 53%; animation-delay: .64s; }
.spectrum-bars i:nth-child(10) { height: 72%; animation-delay: .72s; }
.spectrum-bars i:nth-child(11) { height: 39%; animation-delay: .8s; }
.spectrum-bars i:nth-child(12) { height: 61%; animation-delay: .88s; }
.auth-panel { padding: 40px; color: var(--ink); }
.auth-panel .panel-heading { align-items: flex-end; margin-bottom: 34px; }
.auth-panel h2 { font-size: 30px; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border-radius: var(--radius-pill); background: var(--parchment); }
.segment { min-height: 32px; padding: 0 13px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 12px; }
.segment.is-active { background: var(--blue); color: #fff; }
.stack-form { display: grid; gap: 9px; }
.stack-form label { margin-top: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.stack-form input, .tool-form input[type="text"] { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--pearl); color: var(--ink); font-size: 15px; }
.stack-form input::placeholder, .tool-form input::placeholder { color: #8b8b91; }
.stack-form input:focus, .tool-form input:focus { border-color: var(--blue); outline: 0; }
.stack-form .button { width: 100%; margin-top: 18px; }

/* Workspace */
.workspace-signalbar { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto; gap: 18px; align-items: center; min-height: 50px; margin-bottom: 38px; padding: 0 16px; border: 1px solid #2d2d30; border-radius: var(--radius-md); background: var(--dark); color: #fff; }
.signalbar-lead { display: inline-flex; align-items: center; gap: 9px; color: #f5f5f7; font-size: 10px; font-weight: 600; letter-spacing: .1em; white-space: nowrap; }
.live-indicator { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-on-dark); box-shadow: 0 0 0 4px rgba(41, 151, 255, .14); animation: live-pulse 1.8s ease-in-out infinite; }
.signalbar-track { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .14); border-left: 1px solid rgba(255, 255, 255, .14); }
.signalbar-track i { display: block; width: 100%; max-width: 10px; height: 7px; background: var(--blue-on-dark); opacity: .55; animation: signal-scan 2.4s ease-in-out infinite; }
.signalbar-track i:nth-child(2), .signalbar-track i:nth-child(7), .signalbar-track i:nth-child(12) { height: 15px; }
.signalbar-track i:nth-child(3), .signalbar-track i:nth-child(9), .signalbar-track i:nth-child(15) { height: 20px; }
.signalbar-track i:nth-child(2) { animation-delay: .12s; }
.signalbar-track i:nth-child(3) { animation-delay: .24s; }
.signalbar-track i:nth-child(4) { animation-delay: .36s; }
.signalbar-track i:nth-child(5) { animation-delay: .48s; }
.signalbar-track i:nth-child(6) { animation-delay: .6s; }
.signalbar-track i:nth-child(7) { animation-delay: .72s; }
.signalbar-track i:nth-child(8) { animation-delay: .84s; }
.signalbar-track i:nth-child(9) { animation-delay: .96s; }
.signalbar-track i:nth-child(10) { animation-delay: 1.08s; }
.signalbar-track i:nth-child(11) { animation-delay: 1.2s; }
.signalbar-track i:nth-child(12) { animation-delay: 1.32s; }
.signalbar-track i:nth-child(13) { animation-delay: 1.44s; }
.signalbar-track i:nth-child(14) { animation-delay: 1.56s; }
.signalbar-track i:nth-child(15) { animation-delay: 1.68s; }
.signalbar-track i:nth-child(16) { animation-delay: 1.8s; }
.signalbar-readout { display: grid; gap: 2px; min-width: 62px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .14); }
.signalbar-readout span { color: #6e6e73; font-size: 9px; letter-spacing: .1em; }
.signalbar-readout strong { color: #f5f5f7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 500; }
.signalbar-readout:first-of-type strong { color: var(--blue-on-dark); }
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.hero-status { min-width: 188px; padding: 15px 18px; border-left: 1px solid var(--line-strong); }
.hero-status span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-status strong { display: flex; align-items: center; gap: 8px; margin: 5px 0 2px; font-size: 14px; font-weight: 600; }
.hero-status small { color: var(--muted); font-size: 12px; }
.signal-meter { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 14px; }
.signal-meter i { display: block; width: 4px; height: 8px; background: var(--blue); animation: signal-breathe 1.8s ease-in-out infinite; }
.signal-meter i:nth-child(2) { height: 14px; animation-delay: .1s; }
.signal-meter i:nth-child(3) { height: 10px; animation-delay: .2s; }
.signal-meter i:nth-child(4) { height: 19px; animation-delay: .3s; }
.signal-meter i:nth-child(5) { height: 12px; animation-delay: .4s; }
.signal-meter i:nth-child(6) { height: 17px; animation-delay: .5s; }
.signal-meter i:nth-child(7) { height: 8px; animation-delay: .6s; }
.signal-meter i:nth-child(8) { height: 15px; animation-delay: .7s; }
.signal-caption { display: block !important; margin-top: 2px; color: var(--muted) !important; font-size: 9px !important; letter-spacing: .08em; }
.metrics-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--canvas); }
.metric { min-height: 104px; padding: 20px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.metric-index { color: var(--line-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.metric strong { display: block; font-family: "SF Pro Display", "SF Pro Text", system-ui, -apple-system, sans-serif; font-size: 28px; font-weight: 600; line-height: 1; }
.metric-track { width: 100%; height: 3px; margin-top: 15px; background: #ececf0; }
.metric-track span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .45s ease; }
.metric small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.tool-form { padding: 28px; }
.tool-form .panel-heading { margin-bottom: 24px; }
.tool-form-grid { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(280px, 1.45fr) auto; gap: 16px; align-items: end; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.file-drop { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 5px 8px 5px 12px; border: 1px dashed #b8b8be; border-radius: var(--radius-md); background: var(--pearl); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.file-drop:hover { border-color: var(--blue); background: var(--blue-soft); }
.file-drop.has-file { border-style: solid; border-color: var(--blue); background: #f7fbff; }
.file-drop-icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; line-height: 1; }
.file-drop-copy { display: grid; min-width: 0; gap: 1px; }
.file-drop-copy strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-drop-copy small { color: var(--muted); font-size: 11px; }
.file-status { flex: 0 0 auto; color: #8b8b91; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .06em; }
.file-status.is-ready { color: var(--blue); }
.file-status.is-busy { color: var(--warning); animation: status-blink 1.1s ease-in-out infinite; }
.file-drop-action { margin-left: auto; padding: 8px 12px; border-radius: var(--radius-pill); background: #fff; color: var(--blue); font-size: 12px; font-weight: 600; }
.tool-form-grid .button { min-height: 50px; white-space: nowrap; }
.tool-form .form-message { margin-top: 16px; }
.analysis-path { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 10px; margin: -4px 0 25px; padding: 12px 14px; border: 1px solid var(--line); background: #fbfbfd; }
.analysis-step { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.analysis-step > span { grid-row: 1 / span 2; color: var(--line-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.analysis-step strong { overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; text-overflow: ellipsis; letter-spacing: .08em; }
.analysis-step small { overflow: hidden; color: #8b8b91; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-step.is-active strong { color: var(--blue); }
.analysis-step.is-active > span { color: var(--blue); }
.analysis-step.is-complete strong { color: var(--success); }
.analysis-step.is-complete > span { color: var(--success); }
.analysis-connector { height: 1px; background: var(--line-strong); }
.task-section { margin-top: 48px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin-top: 0; }
.section-heading p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.section-tools { display: flex; align-items: center; gap: 12px; }
.last-refresh { color: var(--muted); font-size: 11px; white-space: nowrap; }
.table-panel { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--canvas); }
.table-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fbfbfd; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .08em; }
.table-panel-head > span:last-child { color: var(--blue); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.data-table th { background: var(--parchment); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfbfd; }
.data-table .right { text-align: right; }
.data-table a { font-weight: 600; text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.empty-state { padding: 56px 20px !important; color: var(--muted); text-align: center !important; font-size: 13px; }
.error-cell { max-width: 360px; color: var(--danger); line-height: 1.5; white-space: normal !important; }

/* Report shell */
.report-hero { margin-bottom: 24px; }
.report-hero h1 { font-size: 40px; }
.report-state { min-width: 150px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.report-state strong { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; margin-bottom: 16px; padding: 0 4px; }
.report-toolbar-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.report-marker { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.report-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.report-toolbar .button { white-space: nowrap; }
.report-command-strip { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto auto; gap: 18px; align-items: center; min-height: 50px; margin-bottom: 16px; padding: 0 16px; border: 1px solid #2d2d30; border-radius: var(--radius-md); background: var(--dark); color: #fff; }
.command-strip-lead { display: grid; gap: 2px; padding-left: 15px; border-left: 1px solid rgba(255, 255, 255, .14); }
.command-strip-lead > span:not(.live-indicator) { color: #6e6e73; font-size: 9px; letter-spacing: .1em; }
.command-strip-lead { position: relative; }
.command-strip-lead .live-indicator { position: absolute; top: 5px; left: 0; }
.command-strip-lead strong { color: #f5f5f7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 500; }
.command-strip-wave { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .14); border-left: 1px solid rgba(255, 255, 255, .14); }
.command-strip-wave i { display: block; width: 100%; max-width: 12px; height: 6px; background: var(--blue-on-dark); animation: signal-scan 2.2s ease-in-out infinite; }
.command-strip-wave i:nth-child(2), .command-strip-wave i:nth-child(5), .command-strip-wave i:nth-child(8) { height: 15px; }
.command-strip-wave i:nth-child(3), .command-strip-wave i:nth-child(6), .command-strip-wave i:nth-child(10) { height: 21px; }
.command-strip-wave i:nth-child(2) { animation-delay: .15s; }
.command-strip-wave i:nth-child(3) { animation-delay: .3s; }
.command-strip-wave i:nth-child(4) { animation-delay: .45s; }
.command-strip-wave i:nth-child(5) { animation-delay: .6s; }
.command-strip-wave i:nth-child(6) { animation-delay: .75s; }
.command-strip-wave i:nth-child(7) { animation-delay: .9s; }
.command-strip-wave i:nth-child(8) { animation-delay: 1.05s; }
.command-strip-wave i:nth-child(9) { animation-delay: 1.2s; }
.command-strip-wave i:nth-child(10) { animation-delay: 1.35s; }
.command-strip-readout { display: grid; gap: 2px; min-width: 78px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .14); }
.command-strip-readout span { color: #6e6e73; font-size: 9px; letter-spacing: .1em; }
.command-strip-readout strong { color: #f5f5f7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 500; }
.command-strip-readout:last-child strong { color: var(--blue-on-dark); }
.report-stage { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--canvas); }
.report-stage-bar { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fbfbfd; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .08em; }
.stage-bar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: live-pulse 1.8s ease-in-out infinite; }
.stage-bar-time { margin-left: auto; color: #8b8b91; }
.report-frame { display: block; width: 100%; min-height: 860px; border: 0; background: var(--canvas); }

@keyframes bar-breathe {
  0%, 100% { opacity: .45; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes signal-breathe {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

@keyframes header-line {
  0%, 100% { opacity: .28; transform: scaleX(.22); }
  45%, 65% { opacity: .95; transform: scaleX(.72); }
}

@keyframes spectrum-breathe {
  0%, 100% { opacity: .35; transform: scaleY(.75); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes signal-scan {
  0%, 100% { opacity: .28; transform: scaleY(.72); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes live-pulse {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes status-blink {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 44px; align-content: center; padding: 56px 0; }
  .auth-intro { max-width: 680px; }
  .auth-signals { margin-top: 40px; }
  .tool-form-grid { grid-template-columns: 1fr 1fr; }
  .tool-form-grid .button { grid-column: 1 / -1; }
  .hero-status { min-width: 165px; }
  .workspace-signalbar { grid-template-columns: auto minmax(120px, 1fr) auto; }
  .signalbar-readout:last-child { display: none; }
  .report-command-strip { grid-template-columns: auto minmax(120px, 1fr) auto; }
  .command-strip-readout:last-child { display: none; }
}

@media (max-width: 640px) {
  .site-header, .auth-nav { min-height: 52px; padding: 0 16px; }
  .header-nav, .header-status, .account-label, .auth-nav-meta { display: none; }
  .page-shell { width: min(100% - 32px, 1240px); padding-top: 32px; }
  .site-header::after, .auth-nav::after { right: 16px; left: 16px; }
  .page-hero, .report-toolbar { align-items: flex-start; flex-direction: column; }
  .page-hero { gap: 20px; margin-bottom: 26px; }
  h1 { font-size: 36px; }
  .report-hero h1 { font-size: 34px; }
  .hero-status, .report-state { width: 100%; min-width: 0; padding: 12px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .signal-meter { margin-top: 12px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { min-height: 0; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .tool-form { padding: 22px 20px; }
  .tool-form .panel-heading { flex-direction: column; gap: 8px; }
  .panel-note { white-space: normal; }
  .file-status { display: none; }
  .tool-form-grid { grid-template-columns: 1fr; }
  .tool-form-grid .button { grid-column: auto; width: 100%; }
  .workspace-signalbar { grid-template-columns: 1fr auto; gap: 12px; min-height: 0; padding: 13px 14px; }
  .signalbar-track { grid-column: 1 / -1; grid-row: 2; padding: 0; border-right: 0; border-left: 0; }
  .signalbar-readout { min-width: 58px; }
  .analysis-path { grid-template-columns: 1fr; gap: 8px; }
  .analysis-connector { width: 1px; height: 12px; margin-left: 11px; }
  .report-command-strip { grid-template-columns: 1fr auto; gap: 12px; min-height: 0; padding: 13px 14px; }
  .command-strip-wave { grid-column: 1 / -1; grid-row: 2; padding: 0; border-right: 0; border-left: 0; }
  .command-strip-readout { min-width: 65px; }
  .report-stage-bar { padding: 0 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-tools { width: 100%; justify-content: space-between; }
  .report-toolbar { min-height: 0; padding: 0; }
  .report-toolbar-actions { width: 100%; }
  .report-toolbar-actions .button { flex: 1; }
  .report-frame { min-height: 720px; }
}

@media (max-width: 480px) {
  .auth-layout { width: min(100% - 32px, 1180px); padding: 40px 0 48px; }
  .auth-intro h1 { font-size: 48px; }
  .intro-copy { font-size: 16px; }
  .auth-panel { padding: 28px 22px; }
  .auth-spectrum { margin-top: 34px; }
  .auth-panel .panel-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .data-table { min-width: 780px; }
}
