:root {
  color-scheme: dark;
  --page: #09111d; --surface: #111d2d; --surface-hover: #18283d;
  --line: #26394e; --text: #edf3fb; --muted: #9aaec5; --faint: #748aa3;
  --accent: #76d7da; --accent-soft: #143239; --gold: #efb660;
  --green: #99d9b7; --red: #ffb3b7; --shadow: 0 30px 100px #0006;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --page: #f5f7fa; --surface: #fff; --surface-hover: #eef3f8;
    --line: #d8e1eb; --text: #182a40; --muted: #52677e; --faint: #62758a;
    --accent: #176c73; --accent-soft: #e4f3f3; --gold: #936019;
    --green: #256647; --red: #a43744; --shadow: 0 30px 100px #182a4026; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
button { min-height: 36px; padding: 8px 12px; }
button:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--accent); }
button:disabled { cursor: default; opacity: .45; }
input, select { min-height: 38px; padding: 8px 10px; }
input::placeholder { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { max-width: 1680px; margin: auto; padding: 0 36px 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 600; }
.mark { color: var(--gold); font-size: 29px; font-weight: 500; }
.brand-label { color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; font-weight: 400; font-size: 13px; }
.operator { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.section-nav { display: flex; gap: 8px; padding-top: 24px; }
.section-nav a { display: inline-block; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; }
.section-nav a:hover { background: var(--surface-hover); border-color: var(--accent); }
.section-nav a.primary { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.row-actions { display: flex; gap: 8px; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-window { white-space: nowrap; font-variant-numeric: tabular-nums; }
.memory-title { display: block; min-width: 180px; max-width: 340px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.5; }
.cost-incomplete { color: var(--gold); }
.intro { margin: 36px 0 24px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; }
h1 { margin: 8px 0 10px; font-size: 30px; letter-spacing: -.04em; font-weight: 600; }
h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
h3 { margin: 0; font-size: 14px; font-weight: 600; }
p { color: var(--muted); line-height: 1.6; }
.intro p { margin: 0; font-size: 13px; }
.quiet { color: var(--faint); font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); }
.account-input { width: 230px; }
.actions { display: flex; gap: 12px; align-items: center; }
.check { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.check input { min-height: initial; accent-color: var(--accent); }
.primary { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.policy-form { padding: 24px; }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.policy-grid input { width: 100%; }
.policy-form .actions { flex-wrap: wrap; margin-top: 20px; }
.policy-history { margin-top: 24px; }
.policy-change { margin-bottom: 6px; white-space: nowrap; }
.policy-empty { padding: 4px 24px 20px; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.panel-top { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-top span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 550; color: var(--faint); padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-hover); }
.cell-main { display: block; white-space: nowrap; font-weight: 500; }
.cell-sub { display: block; color: var(--faint); font-size: 11px; margin-top: 5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.state { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; background: var(--page); border: 1px solid var(--line); padding: 5px 7px; font-size: 10px; white-space: nowrap; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.state.good { color: var(--green); }.state.good::before { background: var(--green); }
.state.wait { color: var(--gold); }.state.wait::before { background: var(--gold); }
.state.bad { color: var(--red); }.state.bad::before { background: var(--red); }
.state.active { color: var(--accent); }.state.active::before { background: var(--accent); }
.row-open { padding: 5px 9px; min-height: 29px; font-size: 12px; }
.empty { padding: 62px 24px; text-align: center; }
.empty h2 { margin-bottom: 8px; }.empty p { margin: 0; font-size: 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.pager-buttons { display: flex; gap: 8px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 7px; padding: 12px 16px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 20%, var(--accent-soft), transparent 55%); }
.signin-card { width: 100%; max-width: 400px; padding: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.signin-card .brand { margin-bottom: 44px; }.signin-card h1 { font-size: 27px; }.signin-card p { font-size: 13px; margin-bottom: 28px; }
.signin-status { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signin-card .quiet { display: block; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; line-height: 1.6; }
.overlay { position: fixed; inset: 0; z-index: 10; background: #07101c88; display: flex; justify-content: flex-end; }
.detail { background: var(--page); width: min(820px, 100%); height: 100%; overflow-y: auto; box-shadow: var(--shadow); padding: 24px 30px 40px; }
.detail-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-heading { margin: 28px 0 20px; }.detail-heading h1 { font-size: 23px; }.detail-heading p { margin: 0; font-size: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-bottom: 30px; }
.fact-label { display: block; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-size: 10px; margin-bottom: 6px; }
.fact-value { font-size: 12px; overflow-wrap: anywhere; }
.section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; margin-left: 5px; padding: 0 0 24px 24px; border-left: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline li:last-child { border: 0; padding-bottom: 0; }.timeline time { display: block; color: var(--faint); margin-top: 6px; font-size: 11px; }
.unit { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; background: var(--surface); }
.unit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.unit p { font-size: 12px; margin: 8px 0; }.unit .facts { margin: 14px 0 0; }
.attempts { margin-top: 16px; }.attempts td, .attempts th { padding: 10px 8px; }.attempts th:first-child, .attempts td:first-child { padding-left: 0; }
.processing-backends { min-width: 850px; }
.detail:has(.technical-details[open]) { width: min(1100px, 100%); }
.processing-model, .processing-clock { display: block; overflow-wrap: anywhere; line-height: 1.5; margin-top: 5px; }
.error-code { display: block; color: var(--red); font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.state.wait + .error-code { color: var(--gold); }
.footnote { color: var(--faint); font-size: 11px; line-height: 1.6; margin: 20px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 950px) { .shell { padding: 0 20px 28px; }.toolbar { align-items: start; flex-direction: column; }.actions { width: 100%; justify-content: space-between; }.intro { align-items: start; }.account-input { width: 220px; } }
@media (max-width: 550px) { .shell { padding: 0 14px 20px; }.topbar { min-height: 72px; }.brand-label { display: none; }.operator { gap: 8px; }.operator-email { display: none; }.intro { margin-top: 28px; }.intro h1 { font-size: 27px; }.intro > .quiet { display: none; }.field { flex: 1; }.account-input { width: 100%; }.filters { width: 100%; }.filters > button { width: 100%; }.detail { padding: 18px; }.facts { gap: 16px; }.signin-card { padding: 28px; }.pager { align-items: start; }.panel-top { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.memory-open { text-align: left; color: var(--accent); border: 0; background: transparent; padding: 0; min-height: 30px; white-space: normal; }
.memory-open:hover { text-decoration: underline; }
.memory-detail { width: min(1100px, 100%); }
.upload-stages { list-style: none; margin: 28px 0; padding: 0; }
.upload-stage { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.upload-stage:last-child { padding-bottom: 0; }
.upload-stage:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.stage-number { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 13px; }
.stage-number.good { border-color: var(--green); color: var(--green); }
.stage-number.active { border-color: var(--accent); color: var(--accent); }
.stage-number.wait { border-color: var(--gold); color: var(--gold); }
.stage-number.bad { border-color: var(--red); color: var(--red); }
.stage-content { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 18px; }
.stage-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.stage-heading h2 { margin: 0; }
.stage-content p { font-size: 12px; margin: 10px 0 0; }
.technical-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.technical-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.technical-details[open] > summary { color: var(--text); margin-bottom: 18px; }
.technical-details > .facts { margin-top: 20px; }
@media (max-width: 550px) { .stage-heading { align-items: start; flex-direction: column; gap: 10px; }.stage-content { padding: 14px; }.upload-stage { gap: 12px; } }
.trace-axis { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.trace-scroll { overflow: auto; max-height: 600px; border: 1px solid var(--line); border-radius: 8px; }
.trace { min-width: 740px; table-layout: fixed; }
.trace th:first-child { width: 44%; }
.trace td { padding: 12px 16px; }
.trace .trace-depth-1 { padding-left: 26px; }
.trace .trace-depth-2 { padding-left: 42px; }
.trace-group { background: var(--surface); }
.trace-label { display: block; overflow-wrap: anywhere; line-height: 1.5; }
.trace-group .trace-label { font-weight: 600; font-size: 11px; }
.trace .state { margin-top: 6px; }
.trace-note, .trace-clock { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.trace-track { height: 18px; position: relative; margin-right: 5px; background: repeating-linear-gradient(to right, var(--line) 0, var(--line) 1px, transparent 1px, transparent 25%); }
.trace-mark { position: absolute; top: 5px; background: var(--accent); }
.trace-mark.bar { height: 8px; min-width: 3px; border-radius: 3px; }
.trace-mark.point { height: 8px; width: 8px !important; border-radius: 50%; transform: translateX(-50%); }
.processing-graph { list-style: none; margin: 18px 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.processing-node { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; }
.processing-node::before { content: ''; position: absolute; left: -23px; top: 23px; width: 10px; height: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; }
.processing-node h3 { margin: 0; font-size: 13px; }
.processing-node p { font-size: 11px; line-height: 1.6; margin: 8px 0 0; overflow-wrap: anywhere; }
.stage-execution { color: var(--accent); }
.stage-dependency { font-weight: 600; }
.recorded-transitions > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
@media (max-width: 550px) { .trace-axis { flex-wrap: wrap; font-size: 10px; }.trace-axis span:nth-child(2) { display: none; } }
