:root {
  --ink: #10263b;
  --navy: #0b243e;
  --blue: #165b8f;
  --blue-soft: #eaf3f8;
  --red: #d94136;
  --paper: #f4f5f2;
  --card: rgba(255, 255, 255, .88);
  --line: #dce2e5;
  --muted: #6c7b86;
  --success: #167562;
  --shadow: 0 22px 70px rgba(24, 43, 57, .09);
}

.gpu-card { margin-top: 18px; }
.field-grid.gpu-grid { grid-template-columns: 1fr; }
.gpu-grid .password-field { grid-column: auto; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 38, 59, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 59, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  animation: fadeIn .5s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; }
.ambient-one { width: 460px; height: 460px; right: -210px; top: 120px; background: radial-gradient(circle, rgba(89, 159, 197, .16), transparent 68%); }
.ambient-two { width: 520px; height: 520px; left: -300px; bottom: -220px; background: radial-gradient(circle, rgba(217, 65, 54, .08), transparent 70%); }

.topbar {
  height: 60px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: white; background: var(--navy); border-radius: 12px 4px 12px 4px;
  font: 700 18px/1 Georgia, serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 14px; letter-spacing: .08em; }
.brand-copy small { font-size: 8px; color: #89959c; letter-spacing: .18em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 24px; }
.account-link { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgba(11,36,62,.22); }
.account-link:hover { color: var(--blue); border-color: var(--blue); }
.privacy { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #61727e; }
.privacy i, .model-state i { width: 7px; height: 7px; border-radius: 50%; background: #26a679; box-shadow: 0 0 0 4px rgba(38,166,121,.1); }
.quiet-button, .text-button, .icon-button { border: 0; background: transparent; cursor: pointer; }
.quiet-button { font-size: 12px; color: #7f8b92; padding: 9px 0; border-bottom: 1px solid transparent; }
.quiet-button:hover { color: var(--ink); border-color: var(--ink); }

.account-menu { position: relative; display: flex; align-items: center; align-self: stretch; }
.account-menu-panel { position: absolute; top: calc(100% - 2px); right: -14px; z-index: 30; width: 154px; padding: 8px; border: 1px solid #d9e2e5; border-radius: 14px 4px 14px 4px; background: rgba(255,255,255,.98); box-shadow: 0 18px 50px rgba(11,36,62,.16); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px); transition: opacity .14s ease .55s, transform .14s ease .55s, visibility 0s linear .69s; }
.account-menu:hover .account-menu-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: .55s, .55s, .55s; }
.account-menu:focus-within .account-menu-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.account-menu-panel a { display: block; padding: 10px 12px; border: 0; border-radius: 9px 3px 9px 3px; color: #536873; font-size: 11px; font-weight: 700; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.account-menu-panel a:hover, .account-menu-panel a:focus, .account-menu-panel a.active { outline: 0; color: var(--blue); background: #edf5f7; }
.account-menu-panel a[hidden] { display: none; }
.logout-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(11,36,62,.44); backdrop-filter: blur(5px); }
.logout-dialog[hidden] { display: none; }
.logout-dialog-card { width: min(420px, 100%); padding: 32px; border: 1px solid #dbe3e6; border-radius: 20px 7px 20px 7px; background: white; box-shadow: 0 28px 80px rgba(11,36,62,.22); text-align: center; }
.logout-dialog-mark { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: #c4483e; background: #fff0ee; font: 700 24px/1 Georgia, serif; box-shadow: 0 0 0 9px rgba(196,72,62,.06); }
.logout-dialog h3 { margin: 0 0 10px; color: var(--ink); font-size: 20px; }
.logout-dialog p { margin: 0; color: #74838b; font-size: 11px; line-height: 1.65; }
.logout-dialog-actions { margin-top: 24px; display: flex; gap: 10px; }
.logout-dialog-actions button { flex: 1; min-height: 42px; border: 1px solid #d2dde1; border-radius: 10px 3px 10px 3px; color: var(--ink); background: white; font-family: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.logout-dialog-actions button.danger { color: white; border-color: #bd4940; background: #bd4940; }
.logout-dialog-actions button:disabled { opacity: .55; cursor: wait; }

.app-breadcrumbs { max-width: 1280px; min-height: 30px; margin: 0 auto; padding: 2px 42px 8px; display: flex; align-items: center; gap: 9px; color: #9aa5aa; font-size: 9px; line-height: 1.4; }
.app-breadcrumbs a { color: #72818a; text-decoration: none; transition: color .16s ease; }
.app-breadcrumbs a:hover { color: var(--blue); }
.app-breadcrumbs span[aria-current="page"] { color: var(--blue); font-weight: 750; }
.app-breadcrumbs i { color: #c1c9cd; font-style: normal; }

.page-shell { max-width: 1280px; margin: 0 auto; padding: 4px 42px 62px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr); align-items: end; gap: 48px; margin-bottom: 24px; }
.eyebrow, .side-kicker, .process-kicker { font-size: 9px; letter-spacing: .22em; font-weight: 750; color: var(--blue); }
.hero h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.02; margin: 8px 0 12px; letter-spacing: -.045em; font-weight: 720; }
.hero h1 em { color: var(--blue); font-style: normal; font-family: "Songti SC", "STSong", serif; font-weight: 600; }
.hero-copy p { max-width: 680px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 3px; }
.hero-metrics div { min-height: 72px; padding: 0 14px; border-left: 1px solid #ccd5d9; display: flex; flex-direction: column; justify-content: space-between; }
.hero-metrics strong { color: var(--red); font: 600 14px/1 Georgia, serif; }
.hero-metrics span { font-size: 11px; line-height: 1.45; color: #65737d; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: stretch; }
.main-card, .side-card { background: var(--card); border: 1px solid rgba(208,217,221,.84); box-shadow: var(--shadow); }
.main-card { min-height: 620px; padding: 32px; border-radius: 24px 8px 24px 8px; }
.side-card { padding: 34px 30px; border-radius: 8px 24px 8px 24px; background: rgba(11,36,62,.975); color: white; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-heading > div { display: flex; align-items: center; gap: 12px; }
.card-heading h2 { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px 3px 9px 3px; background: var(--navy); color: white; font: 700 10px/1 Georgia, serif; }
.step-number svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.model-state { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 100px; background: #edf7f2; color: #35715f; font-size: 11px; }
.model-state.warning { background: #fff2e5; color: #9b5b20; }
.model-state.warning i { background: #e49645; box-shadow: 0 0 0 4px rgba(228,150,69,.12); }

.dropzone {
  width: 100%; min-height: 208px; border: 1.5px dashed #a9bbc5; border-radius: 18px 5px 18px 5px;
  background: linear-gradient(135deg, rgba(234,243,248,.52), rgba(255,255,255,.72));
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  transition: .22s ease; position: relative; overflow: hidden;
}
.dropzone::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(22,91,143,.045); border-radius: 13px 3px 13px 3px; pointer-events: none; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: #edf6fb; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22,91,143,.08); }
.upload-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; margin-bottom: 14px; box-shadow: 0 9px 24px rgba(11,36,62,.2); }
.upload-icon b { font-size: 24px; font-weight: 400; transform: translateY(-1px); }
.drop-title { font-size: 16px; font-weight: 700; }
.drop-subtitle { margin-top: 6px; color: #77858d; font-size: 12px; }
.file-types { position: absolute; right: 18px; bottom: 14px; font-size: 9px; letter-spacing: .16em; color: #9aa8af; }

.selected-files { display: grid; gap: 10px; }
.selected-file { min-height: 76px; border: 1px solid #d9e4e9; background: #f7fbfc; padding: 11px 16px; border-radius: 14px 4px 14px 4px; display: flex; align-items: center; gap: 14px; }
.file-icon { width: 46px; height: 52px; border-radius: 8px 2px 8px 2px; display: grid; place-items: center; background: #1f7359; color: white; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.file-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-copy span { font-size: 11px; color: #7b898f; }
.icon-button { width: 32px; height: 32px; border-radius: 50%; color: #738189; font-size: 20px; }
.icon-button:hover { background: #e7eef1; color: var(--ink); }

.add-dropzone { width: 100%; min-height: 66px; margin-top: 10px; padding: 11px 16px; display: flex; align-items: center; gap: 13px; border: 1px dashed #a9c1ce; border-radius: 12px 3px 12px 3px; background: #fbfdfe; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.add-dropzone:hover, .add-dropzone.dragging { border-color: var(--blue); background: var(--blue-soft); }
.add-dropzone > b { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e5f1f7; color: var(--blue); font-size: 19px; font-weight: 400; }
.add-dropzone > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.add-dropzone strong { font-size: 12px; }
.add-dropzone small { color: #7b898f; font-size: 9.5px; }
.add-dropzone em { color: #96a3a9; font-size: 8.5px; font-style: normal; letter-spacing: .12em; }

.topic-field { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.topic-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.topic-field strong { font-size: 12px; }
.topic-field small { color: #87949a; font-size: 9.5px; }
.topic-field input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid #d6e1e5; border-radius: 10px 3px 10px 3px; background: #fff; color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 600; outline: none; transition: .18s ease; }
.topic-field input::placeholder { color: #a2adb2; font-weight: 400; }
.topic-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,105,154,.1); }

.advanced { margin-top: 18px; border-top: 1px solid #e4e8ea; }
.advanced summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 16px 2px 8px; cursor: pointer; font-size: 11px; font-weight: 700; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "+"; color: var(--blue); font-size: 16px; }
.advanced[open] summary::before { content: "−"; }
.advanced summary span { color: #96a0a5; font-weight: 400; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 10px; padding: 6px 0 2px; }
.advanced label { display: flex; flex-direction: column; gap: 7px; font-size: 9px; color: #73828a; letter-spacing: .04em; }
.advanced input, .advanced select { width: 100%; height: 38px; border: 1px solid #d9e0e3; border-radius: 7px; padding: 0 10px; color: var(--ink); background: #fff; font-size: 10px; outline: none; }
.advanced input:focus, .advanced select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,91,143,.08); }

.primary-button, .secondary-button { min-height: 52px; border-radius: 12px 3px 12px 3px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; text-decoration: none; transition: .2s ease; }
.primary-button { width: 100%; margin-top: 22px; padding: 0 20px; color: white; background: var(--navy); box-shadow: 0 12px 25px rgba(11,36,62,.17); }
.primary-button span { font-weight: 700; font-size: 13px; }
.primary-button b { font-size: 20px; font-weight: 300; }
.primary-button:hover:not(:disabled) { background: #123756; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(11,36,62,.2); }
.primary-button:disabled { background: #c7ced1; box-shadow: none; cursor: not-allowed; }
.primary-button.compact { width: auto; min-width: 205px; margin: 0; gap: 30px; }
.secondary-button { padding: 0 22px; border: 1px solid #cfd8dc; background: white; font-size: 12px; font-weight: 650; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }

.side-kicker { color: #71b7dc; }
.side-card h3 { font-size: 23px; line-height: 1.38; margin: 12px 0 28px; letter-spacing: -.03em; }
.workflow-list { list-style: none; margin: 0; padding: 0; }
.workflow-list li { display: flex; gap: 13px; position: relative; padding: 0 0 25px; opacity: .5; transition: .2s ease; }
.workflow-list li::after { content: ""; position: absolute; left: 13px; top: 28px; width: 1px; height: calc(100% - 26px); background: rgba(255,255,255,.18); }
.workflow-list li:last-child::after { display: none; }
.workflow-list li.active, .workflow-list li.done { opacity: 1; }
.workflow-list li.done i { background: #2d8c78; border-color: #2d8c78; color: white; }
.workflow-list i { flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px 2px 8px 2px; display: grid; place-items: center; font: normal 700 9px/1 Georgia, serif; color: #86bdd9; background: var(--navy); z-index: 1; }
.workflow-list div { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.workflow-list strong { font-size: 12px; font-weight: 650; }
.workflow-list span { color: #8fa0ae; font-size: 9.5px; line-height: 1.45; }
.privacy-note { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; gap: 12px; }
.privacy-note > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(111,185,222,.13); color: #78bddf; font-style: normal; }
.privacy-note p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.privacy-note strong { font-size: 10px; }
.privacy-note span { font-size: 9px; color: #8fa0ae; line-height: 1.5; }

.process-view, .result-view, .error-view { min-height: 515px; padding: 52px 34px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.process-orbit { width: 132px; height: 132px; border: 1px solid #b9d1dd; border-radius: 50%; display: grid; place-items: center; margin-bottom: 27px; position: relative; }
.process-orbit::before, .process-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed #d6e3e8; }
.process-orbit::before { inset: 10px; }
.process-orbit::after { inset: -9px; border-color: rgba(22,91,143,.15); }
.process-orbit span { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; font: 600 24px/1 Georgia, serif; box-shadow: 0 14px 35px rgba(11,36,62,.2); }
.process-view h2, .result-view h2, .error-view h2 { font-size: 26px; margin: 12px 0 9px; letter-spacing: -.03em; }
.process-view p, .result-view > p, .error-view p { margin: 0; color: var(--muted); font-size: 12px; min-height: 19px; max-width: 560px; line-height: 1.6; }
.progress-track { width: min(100%, 560px); height: 5px; border-radius: 10px; background: #e2e8ea; margin-top: 36px; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #55a0c8); border-radius: inherit; transition: width .35s ease; }
.process-meta { width: min(100%, 560px); display: flex; justify-content: space-between; margin-top: 10px; color: #849097; font-size: 9px; }
.text-button { margin-top: auto; padding: 8px 4px; color: var(--blue); font-size: 11px; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: #a85a52; }

.success-mark, .error-mark { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; margin-bottom: 22px; }
.success-mark { background: #e5f4ef; color: var(--success); box-shadow: 0 0 0 11px rgba(22,117,98,.05); }
.error-mark { background: #fff0ee; color: var(--red); box-shadow: 0 0 0 11px rgba(217,65,54,.05); font-family: Georgia, serif; }
.process-kicker.success { color: var(--success); }
.process-kicker.error { color: var(--red); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 530px); margin: 33px 0 30px; border: 1px solid #dde5e8; border-radius: 14px 4px 14px 4px; overflow: hidden; }
.result-stats div { padding: 19px 14px; display: flex; flex-direction: column; gap: 7px; background: #f8faf9; border-right: 1px solid #dde5e8; }
.result-stats div:last-child { border-right: 0; }
.result-stats strong { font: 600 25px/1 Georgia, serif; color: var(--blue); }
.result-stats span { font-size: 9px; color: #7c898f; }
.event-explorer { width: 100%; margin: 5px 0 30px; text-align: left; border-top: 1px solid #e1e7e9; padding-top: 28px; }
.event-explorer-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.event-explorer-heading > div { display: flex; align-items: baseline; gap: 12px; }
.event-explorer-heading span { color: var(--blue); font-size: 8px; font-weight: 750; letter-spacing: .2em; }
.event-explorer-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.event-explorer-heading small { color: #89959b; font-size: 9px; }
.event-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 11px; scrollbar-width: thin; }
.event-tab { flex: 0 0 190px; min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #dce3e6; border-radius: 11px 3px 11px 3px; background: white; text-align: left; cursor: pointer; transition: .18s ease; }
.event-tab:hover { border-color: #9cb5c3; transform: translateY(-1px); }
.event-tab.active { color: white; background: var(--navy); border-color: var(--navy); box-shadow: 0 9px 20px rgba(11,36,62,.14); }
.event-tab b { font: 650 9px/1 Georgia, serif; color: var(--red); }
.event-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }
.event-tab small { font-size: 8px; color: #8b989f; }
.event-tab.active small { color: #99acba; }
.event-detail { padding: 22px 23px 8px; background: linear-gradient(145deg, #f7fafb, #fff); border: 1px solid #dce5e8; border-radius: 15px 4px 15px 4px; }
.event-detail-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.event-badges { display: flex; align-items: center; gap: 6px; }
.event-badges b, .event-badges span { padding: 5px 8px; border-radius: 20px; font-size: 8px; }
.event-badges b { color: white; background: var(--navy); letter-spacing: .06em; }
.event-badges span { color: #366b85; background: #e5f1f7; }
.event-badges span:last-child { color: #24715f; background: #e5f3ef; }
.event-detail-top > small { color: #849198; font-size: 8.5px; }
.event-detail > h3 { margin: 16px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.event-detail > p { margin: 0; max-width: 720px; color: #697982; font-size: 11px; line-height: 1.7; }
.event-facts { display: grid; grid-template-columns: 120px 1fr; gap: 1px; margin: 19px 0 23px; border: 1px solid #e0e7e9; background: #e0e7e9; border-radius: 9px 3px 9px 3px; overflow: hidden; }
.event-facts div { min-height: 54px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; background: white; }
.event-facts span { color: #8b979d; font-size: 8px; }
.event-facts strong { font-size: 10px; font-weight: 650; line-height: 1.45; }
.timeline-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.timeline-heading span { font-size: 10px; font-weight: 720; }
.timeline-heading i { height: 1px; flex: 1; background: #e0e6e8; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: grid; grid-template-columns: 13px 108px minmax(0, 1fr); gap: 10px; position: relative; padding: 15px 0; }
.timeline-item::after { content: ""; position: absolute; left: 5px; top: 29px; bottom: -15px; width: 1px; background: #d8e1e4; }
.timeline-item:last-child::after { display: none; }
.timeline-item > i { width: 11px; height: 11px; margin-top: 3px; border: 3px solid #dbe9ef; border-radius: 50%; background: var(--blue); z-index: 1; }
.timeline-item.official > i { background: var(--success); border-color: #d9eee8; }
.timeline-item.rising > i { background: var(--red); border-color: #f5deda; }
.timeline-item.repost > i { background: #85949b; border-color: #e4eaec; }
.timeline-item time { color: #6f7f87; font: 500 9px/1.55 Georgia, "PingFang SC", sans-serif; }
.timeline-item > div { min-width: 0; }
.timeline-item > div > div { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.timeline-item > div b { color: var(--blue); font-size: 8px; }
.timeline-item.official > div b { color: var(--success); }
.timeline-item.rising > div b { color: var(--red); }
.timeline-item > div span { color: #8b979d; font-size: 8px; }
.timeline-item h4 { margin: 0 0 5px; font-size: 11px; line-height: 1.45; }
.timeline-item p { margin: 0; color: #75848b; font-size: 9px; line-height: 1.55; }
.result-actions { display: flex; gap: 10px; }
.error-view p { padding: 18px 22px; background: #fff6f4; border-radius: 10px; color: #8c514b; margin: 12px 0 28px; }

footer { max-width: 1280px; margin: 0 auto; padding: 0 42px 28px; display: flex; justify-content: space-between; color: #9aa4a9; font-size: 8px; letter-spacing: .15em; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: white; background: var(--navy); padding: 12px 18px; border-radius: 9px; font-size: 11px; box-shadow: 0 12px 34px rgba(11,36,62,.24); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.closed { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.closed div { padding: 58px 70px; background: white; border: 1px solid var(--line); border-radius: 24px 8px 24px 8px; box-shadow: var(--shadow); }
.closed span { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #e5f4ef; color: var(--success); font-size: 28px; }
.closed h1 { margin: 0 0 10px; font-size: 28px; }
.closed p { margin: 0; color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-metrics { max-width: 600px; }
  .workspace { grid-template-columns: 1fr; }
  .side-card { order: -1; padding: 24px; }
  .side-card h3, .privacy-note { display: none; }
  .workflow-list { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
  .workflow-list li { padding: 0 7px; flex-direction: column; }
  .workflow-list li::after { top: 13px; left: 34px; width: calc(100% - 27px); height: 1px; }
}

@media (max-width: 680px) {
  .app-breadcrumbs { padding: 2px 20px 8px; overflow-x: auto; white-space: nowrap; }
  .topbar { height: 60px; padding: 0 20px; }
  .privacy { display: none; }
  .page-shell { padding: 8px 18px 46px; }
  .hero { margin-bottom: 24px; }
  .hero h1 { font-size: 34px; }
  .hero h1 br { display: none; }
  .hero-metrics div { padding: 0 10px; }
  .main-card { min-height: auto; padding: 22px 17px; }
  .card-heading { align-items: flex-start; }
  .model-state { max-width: 145px; }
  .topic-field > span { align-items: flex-start; flex-direction: column; gap: 3px; }
  .advanced-grid { grid-template-columns: 1fr; }
  .side-card { overflow-x: auto; }
  .workflow-list { min-width: 620px; }
  .process-view, .result-view, .error-view { min-height: 500px; padding: 42px 8px 18px; }
  .result-actions { width: 100%; flex-direction: column; }
  .event-explorer-heading { align-items: flex-start; }
  .event-explorer-heading > div { flex-direction: column; gap: 4px; }
  .event-detail { padding: 18px 15px 5px; }
  .event-detail-top { align-items: flex-start; flex-direction: column; }
  .event-facts { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 13px 82px minmax(0, 1fr); gap: 7px; }
  .primary-button.compact, .secondary-button { width: 100%; }
  footer { padding: 0 18px 20px; flex-direction: column; gap: 8px; }
}
