:root {
  color-scheme: dark;
  --bg: #07101c;
  --sidebar: #0c1726;
  --surface: #111e2e;
  --surface-2: #152438;
  --line: #293b51;
  --text: #eef5ff;
  --muted: #93a4ba;
  --accent: #2f8cff;
  --accent-strong: #5ca7ff;
  --green: #58dda0;
  --amber: #f4c54d;
  --red: #ff7378;
  --radius: 10px;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; }
button, input, select { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: var(--sidebar); border-right: 1px solid #1d2c3e; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 4px 10px 28px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-strong); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { color: var(--muted); font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; margin-top: 2px; }
nav { display: grid; gap: 5px; }
.nav-item { min-height: 44px; padding: 0 12px; border-radius: 7px; display: flex; align-items: center; gap: 11px; color: #c5d0df; text-decoration: none; font-size: 14px; }
.nav-item.selected { color: white; background: #173a65; box-shadow: inset 3px 0 var(--accent); }
.nav-item.disabled { color: #7f91a8; cursor: default; }
.nav-item small { margin-left: auto; font-size: 11px; color: #74869d; }
.nav-icon { width: 20px; color: #a9bed9; text-align: center; font-size: 18px; }
.nav-notification-badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 10px; color: white; background: #dd414d; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nav-notification-badge[hidden] { display: none; }
.sidebar-note { margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid var(--line); color: #8294aa; font-size: 12px; line-height: 1.7; }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { color: #aab9cb; margin-bottom: 4px; }

.main-content { width: min(1280px, 100%); margin: 0 auto; padding: 30px 34px 44px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.topbar p { color: var(--muted); margin-top: 9px; font-size: 14px; }
.research-mode { display: inline-flex; align-items: center; gap: 9px; color: var(--amber); border: 1px solid #766124; padding: 9px 13px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.research-mode span { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }

.readiness { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; background: #0c1c2b; }
.readiness-ready { border-color: #237553; background: #0a261f; }
.readiness-blocked { border-color: #813d47; background: #26151d; }
.readiness-attention { border-color: #6f5c26; background: #241f11; }
.readiness-copy { display: flex; align-items: center; gap: 17px; }
.readiness-symbol { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; color: #7190b1; font-size: 27px; font-weight: 800; }
.readiness-ready .readiness-symbol { color: var(--green); }
.readiness-blocked .readiness-symbol { color: var(--red); }
.readiness-attention .readiness-symbol { color: var(--amber); }
.readiness h2 { font-size: 20px; }
.readiness p { margin-top: 7px; color: #a8b7c9; font-size: 13px; }
.primary-button { min-width: 210px; border: 0; border-radius: 7px; padding: 13px 22px; color: white; background: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: #197cf1; transform: translateY(-1px); }
.primary-button:focus-visible { outline: 3px solid rgba(92, 167, 255, .35); outline-offset: 3px; }
.primary-button:disabled { opacity: .68; cursor: wait; transform: none; }
.error-banner { margin: 0 0 18px; border: 1px solid #783a44; color: #ffb2b5; background: #26151d; border-radius: 8px; padding: 12px 15px; font-size: 13px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-heading { min-height: 58px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 16px; }
.panel-heading span { color: var(--muted); font-size: 12px; }
.status-row { min-height: 70px; padding: 12px 17px; display: grid; grid-template-columns: minmax(145px, .75fr) minmax(95px, .6fr) minmax(130px, 1fr); align-items: center; gap: 13px; border-bottom: 1px solid rgba(41, 59, 81, .75); }
.status-row:last-child { border-bottom: 0; }
.status-row > div { display: flex; align-items: center; gap: 10px; }
.status-row strong { font-size: 13px; }
.status-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; text-align: right; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #65758a; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(88, 221, 160, .08); }
.status-dot.bad { background: var(--red); }
.status-dot.warn { background: var(--amber); }
.status-value { color: #bfd0e2; font-size: 12px; }
.model-state { color: #c4d1e1; font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }

.runs-panel { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 16px; border-bottom: 1px solid rgba(41, 59, 81, .72); text-align: left; font-size: 12px; }
th { background: var(--surface-2); color: #aebed1; font-weight: 600; }
td { color: #c7d3e2; }
tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #91b8e9; }
.run-state { font: 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.run-completed { color: var(--green); }
.run-running { color: var(--amber); }
.run-failed { color: var(--red); }
.empty-cell { height: 128px; text-align: center; color: var(--muted); }
.empty-cell strong, .empty-cell span { display: block; }
.empty-cell strong { color: #d2dcea; margin-bottom: 7px; }

.module-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.module-strip div, .module-strip a { padding: 18px; border-right: 1px solid var(--line); color: inherit; text-decoration: none; }
.module-strip div:last-child, .module-strip a:last-child { border-right: 0; }
.module-strip strong, .module-strip span { display: block; }
.module-strip strong { font-size: 14px; }
.module-strip span { color: var(--muted); font-size: 12px; margin-top: 7px; }
.module-strip a:hover { background: var(--surface-2); }
.overview-summary { min-height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.overview-summary > div { padding: 14px 20px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.overview-summary > div:last-child { border-right: 0; }
.overview-summary small { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.overview-summary strong { font-size: 18px; }

.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; }
.candidates-content { width: min(1340px, 100%); }
.research-warning { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 18px; margin-bottom: 16px; border: 1px solid #8a6d18; border-radius: var(--radius); background: #211d0f; }
.research-warning.production-fresh { border-color: #237553; background: #0a261f; }
.research-warning.production-fresh .warning-symbol { stroke: var(--green); }
.research-warning.production-fresh .warning-copy h2 { color: #9af0c4; }
.warning-copy { display: flex; align-items: center; gap: 15px; }
.warning-symbol { width: 45px; height: 45px; flex: 0 0 auto; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.warning-copy h2 { color: #ffe08b; font-size: 20px; }
.warning-copy p { color: #c9c0a7; margin-top: 5px; font-size: 13px; }
.action-banner { margin: 0 0 16px; border: 1px solid #237553; color: #9af0c4; background: #0a261f; border-radius: 8px; padding: 11px 14px; font-size: 13px; }
.action-banner.error { border-color: #783a44; color: #ffb2b5; background: #26151d; }

.message-bell { position: fixed; z-index: 50; right: 22px; bottom: 22px; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #4a83bf; border-radius: 50%; color: white; background: #176fcf; box-shadow: 0 12px 30px rgba(0, 0, 0, .38); cursor: pointer; }
.message-bell:hover { background: #2383e9; transform: translateY(-1px); }
.message-bell.has-unread { animation: message-pulse 2s ease-in-out infinite; }
.message-bell-icon { font-size: 25px; line-height: 1; transform: rotate(180deg); }
.message-badge { position: absolute; top: -4px; right: -4px; min-width: 23px; height: 23px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 12px; color: white; background: #e3424d; font-size: 10px; font-weight: 800; }
.message-badge[hidden] { display: none; }
@keyframes message-pulse { 0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, .38); } 50% { box-shadow: 0 0 0 8px rgba(47, 140, 255, .13), 0 12px 30px rgba(0, 0, 0, .38); } }
.message-center-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 15, .68); }
.message-center-backdrop[hidden] { display: none; }
.message-center { position: fixed; z-index: 61; top: 0; right: 0; width: min(440px, 100%); height: 100vh; display: flex; flex-direction: column; border-left: 1px solid #31506f; color: var(--text); background: #0b1725; box-shadow: -18px 0 40px rgba(0, 0, 0, .42); transform: translateX(102%); transition: transform .2s ease; }
.message-center-open { overflow: hidden; }
.message-center-open .message-center { transform: translateX(0); }
.message-center > header { min-height: 94px; padding: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.message-center > header h2 { font-size: 20px; }
.message-center > header p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.message-center > header > div:last-child { display: flex; align-items: center; gap: 10px; }
.message-center-close { width: 34px; height: 34px; border: 0; border-radius: 6px; color: #dce8f5; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.message-center-close:hover { background: var(--surface-2); }
.message-list { min-height: 0; flex: 1; padding: 14px; overflow-y: auto; }
.message-card { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.message-card.is-unread { border-color: #477eb7; box-shadow: inset 3px 0 var(--accent); }
.message-card.severity-critical { border-color: #a54950; }
.message-card.severity-high { border-color: #815054; }
.message-card-summary { width: 100%; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.message-card-summary > span { min-width: 0; }
.message-card-summary strong, .message-card-summary small { display: block; }
.message-card-summary strong { color: #eef5ff; font-size: 13px; }
.message-card-summary small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.message-card-summary i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #56687d; }
.message-card.is-unread .message-card-summary i { background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(92, 167, 255, .12); }
.message-card-detail { padding: 0 14px 15px; border-top: 1px solid rgba(41, 59, 81, .72); }
.message-card-detail[hidden] { display: none; }
.message-card-detail p { padding: 12px 0; color: #c3d1e0; font-size: 11px; line-height: 1.7; }
.message-card-detail dl { margin: 0 0 13px; }
.message-card-detail dl div { padding: 6px 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 10px; }
.message-card-detail dt { color: var(--muted); }
.message-card-detail dd { margin: 0; color: #dbe7f5; overflow-wrap: anywhere; }
.message-position-link { min-width: 0; padding: 10px 14px; display: flex; justify-content: center; text-decoration: none; font-size: 12px; }
.message-empty { min-height: 180px; display: grid; place-content: center; gap: 8px; padding: 24px; color: var(--muted); text-align: center; }
.message-empty strong { color: #d8e4f1; font-size: 14px; }
.message-empty span { max-width: 300px; font-size: 11px; line-height: 1.7; }
.intraday-toast { position: fixed; z-index: 55; right: 22px; bottom: 92px; width: min(370px, calc(100vw - 32px)); padding: 14px 16px; display: grid; gap: 5px; border: 1px solid #4b83bc; border-radius: 10px; color: #eaf4ff; background: #102943; box-shadow: 0 16px 36px rgba(0, 0, 0, .42); text-align: left; cursor: pointer; }
.intraday-toast[hidden] { display: none; }
.intraday-toast-flag { width: max-content; padding: 3px 7px; border-radius: 10px; color: #06121e; background: var(--green); font-size: 9px; font-weight: 800; }
.intraday-toast strong { font-size: 14px; }
.intraday-toast > span:last-child { color: #b8cce0; font-size: 11px; line-height: 1.5; }

.candidate-meta { min-height: 76px; display: grid; grid-template-columns: 1fr 1.45fr .8fr .9fr; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.candidate-meta > div { padding: 14px 20px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.candidate-meta > div:last-child { border-right: 0; }
.candidate-meta small, .candidate-meta strong { display: block; }
.candidate-meta small { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.candidate-meta strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

.midterm-validation { margin: -2px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #2b5f4d; border-radius: var(--radius); background: #0d211c; overflow: hidden; }
.midterm-validation > div { padding: 13px 16px; border-right: 1px solid #234b3f; }
.midterm-validation > div:nth-child(4) { border-right: 0; }
.midterm-validation small, .midterm-validation strong { display: block; }
.midterm-validation small { margin-bottom: 5px; color: #82ac9d; font-size: 10px; }
.midterm-validation strong { color: #9aebc4; font-size: 13px; }
.midterm-validation p { grid-column: 1 / -1; margin: 0; padding: 9px 16px; border-top: 1px solid #234b3f; color: #8aa69d; font-size: 10px; }
.replacement-notice { margin-bottom: 16px; padding: 13px 16px; border: 1px solid #8a6d18; border-radius: var(--radius); background: #2b240e; }
.replacement-notice > strong { color: #ffe08b; font-size: 12px; }
.replacement-notice p { margin: 7px 0 0; color: #e4d6a4; font-size: 11px; line-height: 1.55; }
.candidate-live-warning { margin: -4px 0 16px; padding: 10px 14px; border: 1px solid #8a6d18; border-radius: 7px; color: #f4c54d; background: #221d0d; font-size: 11px; line-height: 1.5; }

.candidate-toolbar { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(165px, .72fr) minmax(165px, .72fr) auto minmax(225px, .9fr); gap: 10px; margin-bottom: 14px; }
.candidate-toolbar label { min-width: 0; }
.candidate-toolbar input, .candidate-toolbar select, .filter-button, .locked-button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; color: #d8e3f0; background: var(--surface); font-size: 12px; }
.candidate-toolbar input, .candidate-toolbar select { padding: 0 13px; outline: none; }
.candidate-toolbar select { cursor: pointer; }
.candidate-toolbar input:focus, .candidate-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .12); }
.search-control { position: relative; }
.search-control > span { position: absolute; left: 13px; top: 11px; color: #b6c8dc; font-size: 20px; line-height: 1; }
.search-control input { padding-left: 40px; }
.filter-button { width: auto; padding: 0 18px; color: white; background: #173a65; cursor: pointer; font-weight: 700; }
.filter-button:hover { background: #204b7d; }
.locked-button { padding: 0 15px; color: #73869d; background: #0e1927; cursor: not-allowed; }
.freshness-indicator { min-height: 44px; padding: 0 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; color: #aebed1; background: #0e1927; font-size: 11px; white-space: nowrap; }
.freshness-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.candidate-table-panel { margin-bottom: 14px; }
.candidate-table-wrap { max-height: 296px; overflow: auto; }
.candidate-table { min-width: 1180px; table-layout: fixed; }
.candidate-table thead { position: sticky; top: 0; z-index: 2; }
.candidate-table th, .candidate-table td { padding: 11px 12px; }
.candidate-table th:nth-child(1) { width: 50px; }
.candidate-table th:nth-child(2) { width: 150px; }
.candidate-table th:nth-child(3) { width: 70px; }
.candidate-table th:nth-child(4), .candidate-table th:nth-child(5), .candidate-table th:nth-child(6) { width: 80px; text-align: right; }
.candidate-table th:nth-child(7) { width: 135px; }
.candidate-table th:nth-child(8), .candidate-table th:nth-child(9) { width: 80px; text-align: right; }
.candidate-table th:nth-child(10) { width: auto; }
.candidate-table td:nth-child(4), .candidate-table td:nth-child(5), .candidate-table td:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; }
.candidate-table td:nth-child(8), .candidate-table td:nth-child(9) { text-align: right; font-variant-numeric: tabular-nums; }
.candidate-table td { height: 54px; }
.candidate-table tbody tr { cursor: pointer; transition: background .15s ease; }
.candidate-table tbody tr:hover { background: #14273c; }
.candidate-table .selected-row { background: #12467d; box-shadow: inset 3px 0 var(--accent); }
.candidate-table .selected-row:hover { background: #12467d; }
.candidate-table td:nth-child(2) a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.candidate-table td:nth-child(2) strong { font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.candidate-table td:nth-child(2) span { color: #b8c8da; }
.score-cell { color: #f0f6ff; font-weight: 700; }
.grade-tag { display: inline-flex; min-width: 38px; height: 24px; align-items: center; justify-content: center; border: 1px solid #2ba978; border-radius: 6px; color: #7ce5b4; background: #0b3026; font: 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.grade-r2 { border-color: #447db8; color: #96c4f7; background: #102a45; }
.grade-r3 { border-color: #626f81; color: #bdc8d5; background: #202a37; }
.grade-d1 { border-color: #ff7378; color: #ff9b9e; background: #36171e; }
.grade-d2 { border-color: #d3a92d; color: #ffe08b; background: #2b240e; }
.grade-d3 { border-color: #447db8; color: #96c4f7; background: #102a45; }
.pool-tag { display: inline-flex; min-height: 24px; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid #447db8; border-radius: 6px; color: #96c4f7; background: #102a45; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pool-qualified { border-color: #3ea47c; color: #9de8c7; background: #123b31; }
.pool-research { border-color: #b58a45; color: #f2cf8d; background: #3b2f17; }
.candidate-reasons { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.candidate-reasons li + li { margin-top: 5px; }
.component-formula { margin: -2px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.score-bar-secondary { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.score-bar-secondary > span { line-height: 1.25; }
.return-estimate-panel { margin: 0 22px 22px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d1822; }
.return-estimate-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.return-estimate-panel h2 { margin: 0; font-size: 14px; }
.return-estimate-panel header span { color: var(--muted); font-size: 11px; }
.return-estimate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.return-estimate-grid > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); }
.return-estimate-grid > div:last-child { border-right: 0; }
.return-estimate-grid small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.return-estimate-grid strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.estimate-verdict { margin: 0; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.estimate-verdict.qualified { color: #a9ebd0; background: rgba(31, 130, 94, .12); }
.estimate-verdict.research-only { color: #f1d097; background: rgba(181, 138, 69, .12); }
.pool-new { border-color: #2ba978; color: #7ce5b4; background: #0b3026; }
.pool-replacement_in { border-color: #d3a92d; color: #ffe08b; background: #2b240e; }
.candidate-state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #c9d6e5; font: 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.candidate-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.candidate-empty { height: 180px; }
.pagination { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination div { display: flex; align-items: center; gap: 9px; }
.pagination a, .pagination strong { min-height: 31px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: #cbd8e7; text-decoration: none; background: var(--surface-2); }
.pagination a:hover { border-color: var(--accent); }
.pagination strong { color: white; border-color: var(--accent); background: #173a65; }

.candidate-detail { margin-bottom: 14px; }
.candidate-detail > header { min-height: 54px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.candidate-detail > header > div { display: flex; align-items: center; gap: 12px; }
.candidate-detail > header > div > strong { font: 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.candidate-detail > header > div > span:not(.grade-tag) { color: #c9d6e5; font-size: 13px; }
.candidate-detail > header small { color: var(--muted); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.candidate-detail-actions { display: flex; align-items: center; gap: 12px; }
.candidate-detail-actions a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid #356899; border-radius: 6px; color: #bcd9fb; background: #10253d; text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
.candidate-detail-actions a:hover { border-color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; }
.detail-grid > div { min-height: 160px; padding: 16px 18px; border-right: 1px solid var(--line); }
.detail-grid > div:last-child { border-right: 0; }
.detail-grid h2 { margin-bottom: 15px; font-size: 14px; }
.score-bar { display: grid; grid-template-columns: 70px minmax(90px, 1fr) 48px; align-items: center; gap: 10px; margin: 14px 0; color: #bdcad9; font-size: 12px; }
.score-bar > div { height: 9px; overflow: hidden; border-radius: 2px; background: #1c3553; }
.score-bar i { display: block; width: var(--score); height: 100%; background: var(--accent); }
.score-bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.reason-panel ul { margin: 0; padding-left: 18px; color: #bcc9d8; font-size: 12px; line-height: 2; }
.reason-panel dl { margin: 0; display: grid; gap: 10px; }
.reason-panel dl div { display: flex; justify-content: space-between; gap: 16px; color: #aebed0; font-size: 12px; }
.reason-panel dd { margin: 0; color: #d5e0ed; text-align: right; }
.reason-panel p { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.operational-disclaimer { margin: 0 14px 14px; padding: 10px 12px; border: 1px solid #285682; border-radius: 6px; color: #a9c9ec; background: #0d263e; font-size: 11px; }
.evidence-panel dl { margin: 0; display: grid; gap: 10px; }
.evidence-panel dl div { display: flex; justify-content: space-between; gap: 16px; color: #aebed0; font-size: 12px; }
.evidence-panel dd { margin: 0; color: #d5e0ed; text-align: right; }
.evidence-panel .positive { color: var(--green); }
.evidence-panel .warning-text { color: var(--amber); }

/* TDX-11 manual position ledger */
.positions-content { width: min(1340px, 100%); transition: margin-right .2s ease; }
.ledger-warning { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 18px; margin-bottom: 16px; border: 1px solid #8a6d18; border-radius: var(--radius); background: #211d0f; }
.ledger-warning h2 { color: #ffe08b; font-size: 20px; }
.ledger-warning p { color: #c9c0a7; margin-top: 5px; font-size: 13px; }
.ledger-actions { display: flex; gap: 10px; }
.compact-button { min-width: 145px; }
.secondary-button { min-height: 44px; border: 1px solid #356899; border-radius: 7px; padding: 0 18px; color: #bcd9fb; background: #10253d; font-size: 13px; font-weight: 700; cursor: pointer; }
.secondary-button:hover { border-color: var(--accent); background: #153354; }
.secondary-button:focus-visible { outline: 3px solid rgba(92, 167, 255, .3); outline-offset: 2px; }
.secondary-button:disabled { opacity: .65; cursor: wait; }

.holding-summary { min-height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.holding-summary > div { padding: 14px 20px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.holding-summary > div:last-child { border-right: 0; }
.holding-summary small { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.holding-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.attention { color: var(--amber) !important; }

.intraday-panel { margin-bottom: 14px; }
.intraday-panel > header { min-height: 58px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.intraday-panel > header > div:first-child { display: flex; align-items: center; gap: 11px; }
.intraday-panel h2 { font-size: 15px; }
.intraday-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.intraday-actions small { color: var(--muted); font-size: 10px; }
.mini-button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.market-state { min-width: 72px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #42576e; border-radius: 999px; color: #b7c8da; background: #132235; font-size: 10px; font-weight: 700; }
.market-state.state-open { border-color: #2ba978; color: #7ce5b4; background: #0b3026; }
.market-state.state-unavailable { border-color: #a54950; color: #ff969a; background: #32171d; }
.intraday-signal { margin: 14px 16px 0; padding: 12px 14px; border: 1px solid #345573; border-radius: 7px; background: #10263d; }
.intraday-signal strong { display: block; color: #c7dcf3; font-size: 13px; }
.intraday-signal p { margin-top: 5px; color: #aebed0; font-size: 11px; line-height: 1.65; }
.intraday-signal.severity-medium { border-color: #8a6d18; background: #2b240e; }
.intraday-signal.severity-high, .intraday-signal.severity-critical { border-color: #a54950; background: #32171d; }
.intraday-signal.severity-critical strong, .intraday-signal.severity-high strong { color: #ffb0b3; }
.intraday-levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 14px 16px; gap: 1px; }
.intraday-levels > div { min-width: 0; padding: 9px 12px; border-right: 1px solid var(--line); }
.intraday-levels > div:last-child { border-right: 0; }
.intraday-levels small, .intraday-levels strong { display: block; }
.intraday-levels small { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.intraday-levels strong { color: #edf5ff; overflow-wrap: anywhere; font-size: 15px; font-variant-numeric: tabular-nums; }
.intraday-levels .level-sell strong { color: #ff9da1; }
.intraday-levels .level-buy strong { color: #7ce5b4; }
.intraday-levels .level-risk strong { color: #f4c54d; }
.intraday-panel footer { padding: 0 16px 13px; color: var(--muted); font-size: 9px; }
.intraday-empty { padding: 28px 18px; color: var(--muted); text-align: center; font-size: 12px; }

.holding-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto; gap: 10px; margin-bottom: 14px; }
.holding-toolbar input, .holding-toolbar select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; color: #d8e3f0; background: var(--surface); outline: none; font-size: 12px; }
.holding-toolbar input:focus, .holding-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .12); }
.holding-toolbar .search-control input { padding-left: 40px; }

.holding-table-panel { margin-bottom: 14px; }
.holding-table-wrap { max-height: 270px; overflow: auto; }
.holding-table { min-width: 1080px; table-layout: fixed; }
.holding-table thead { position: sticky; top: 0; z-index: 2; }
.holding-table th, .holding-table td { padding: 10px 12px; font-variant-numeric: tabular-nums; }
.holding-table th:nth-child(1) { width: 180px; }
.holding-table th:nth-child(2) { width: 74px; }
.holding-table th:nth-child(3), .holding-table th:nth-child(4) { width: 86px; }
.holding-table th:nth-child(5), .holding-table th:nth-child(6) { width: 94px; }
.holding-table th:nth-child(7) { width: 112px; }
.holding-table th:nth-child(8) { width: 132px; }
.holding-table th:nth-child(9) { width: 140px; }
.holding-row { cursor: pointer; transition: background .15s ease; }
.holding-row:hover { background: #14273c; }
.holding-row.selected-row { background: #12467d; box-shadow: inset 3px 0 var(--accent); }
.holding-row td:first-child a { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.holding-row td:first-child strong { font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.holding-row td:first-child span { color: #b8c8da; }
.holding-score { color: #f0f6ff; font-weight: 800; text-align: center; }
.holding-row td:last-child { display: flex; align-items: center; gap: 8px; }
.live-signal { min-height: 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #42576e; border-radius: 6px; padding: 0 8px; color: #b8c9da; background: #132235; font-size: 10px; font-weight: 700; white-space: nowrap; }
.signal-t_sell_review { border-color: #a54950; color: #ffb0b3; background: #32171d; }
.signal-t_rebuy_review { border-color: #2ba978; color: #7ce5b4; background: #0b3026; }
.signal-risk_exit_review { border-color: #c55760; color: #ffd0d2; background: #421b22; }
.signal-data_unavailable { border-color: #8a6d18; color: #f4c54d; background: #2b240e; }
.holding-state { min-width: 68px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #2ba978; border-radius: 6px; color: #7ce5b4; background: #0b3026; font: 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.state-caution { border-color: #8a6d18; color: #f4c54d; background: #2b240e; }
.state-reduce, .state-sell { border-color: #a54950; color: #ff969a; background: #32171d; }
.state-add { border-color: #3387d5; color: #9acaff; background: #102a45; }
.holding-empty { height: 146px; }
.holding-table-footer { min-height: 45px; padding: 0 16px; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.holding-detail { margin-bottom: 14px; }
.holding-detail > header { min-height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.holding-detail > header > div { display: flex; align-items: center; gap: 11px; }
.holding-detail > header strong { font: 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.holding-detail > header small { color: var(--muted); font-size: 11px; text-align: right; }
.holding-detail > header .position-actions { justify-content: flex-end; }
.sell-button { border-color: #2d7b5e; color: #8ce7bc; background: #102d25; }
.delete-button { border-color: #744149; color: #ffb0b3; background: #28171c; }
.holding-detail-grid { display: grid; grid-template-columns: 1.12fr 1fr .9fr; }
.holding-detail-grid > div { min-height: 158px; padding: 14px 17px; border-right: 1px solid var(--line); }
.holding-detail-grid > div:last-child { border-right: 0; }
.holding-detail-grid h2 { margin-bottom: 11px; font-size: 14px; }
.holding-score-bar { display: grid; grid-template-columns: 72px minmax(75px, 1fr) 50px; align-items: center; gap: 9px; margin: 8px 0; color: #bdcad9; font-size: 11px; }
.holding-score-bar > div { height: 8px; overflow: hidden; border-radius: 2px; background: #1c3553; }
.holding-score-bar i { display: block; width: var(--score); height: 100%; background: var(--accent); }
.holding-score-bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.holding-evidence ul { margin: 0; padding-left: 18px; color: #bcc9d8; font-size: 12px; line-height: 1.9; }
.holding-plan dl { margin: 0; display: grid; gap: 10px; }
.holding-plan dl div { display: flex; justify-content: space-between; gap: 14px; color: #aebed0; font-size: 12px; }
.holding-plan dd { margin: 0; color: #dce7f4; text-align: right; font-variant-numeric: tabular-nums; }

.trade-ledger { margin-bottom: 14px; }
.trade-ledger .panel-heading h2 small { margin-left: 6px; color: var(--muted); font-size: 10px; font-weight: 400; }
.trade-ledger table { min-width: 720px; }
.event-buy { color: var(--green); }
.event-sell { color: var(--red); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(2, 8, 15, .62); }
.drawer-backdrop[hidden] { display: none; }
.trade-drawer { position: fixed; z-index: 21; top: 0; right: 0; width: 348px; height: 100vh; display: flex; flex-direction: column; border-left: 1px solid #28415c; color: var(--text); background: #0d1d2e; box-shadow: -16px 0 36px rgba(0, 0, 0, .32); transform: translateX(102%); transition: transform .2s ease; }
.drawer-open .trade-drawer { transform: translateX(0); }
.trade-drawer > header { min-height: 102px; padding: 22px 24px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.trade-drawer > header h2 { font-size: 21px; }
.trade-drawer > header p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.trade-drawer > header button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #c8d7e8; background: transparent; cursor: pointer; }
.trade-drawer > header button:hover { color: white; background: var(--surface-2); }
.trade-drawer > header svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.trade-drawer form { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 20px 24px 22px; overflow-y: auto; }
.drawer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.drawer-form-grid label { min-width: 0; display: grid; gap: 7px; color: #aebed1; font-size: 11px; }
.drawer-form-grid .full-field { grid-column: 1 / -1; }
.drawer-form-grid input, .drawer-form-grid select, .drawer-form-grid textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; color: #e4edf8; background: #102338; outline: none; font-size: 13px; }
.drawer-form-grid textarea { min-height: 82px; padding-block: 10px; resize: vertical; }
.drawer-form-grid input:focus, .drawer-form-grid select:focus, .drawer-form-grid textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .12); }
.drawer-error { margin-top: 14px; border: 1px solid #783a44; border-radius: 6px; padding: 10px 11px; color: #ffb2b5; background: #26151d; font-size: 12px; }
.drawer-safety { margin-top: auto; padding: 22px 0 14px; display: flex; align-items: center; gap: 9px; color: #9fb2c8; font-size: 11px; }
.drawer-safety span { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: #08111d; background: var(--accent); font-weight: 800; }
.trade-drawer footer { padding-top: 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; border-top: 1px solid var(--line); }
.trade-drawer footer .primary-button { min-width: 0; }

.confirm-modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(2, 8, 15, .78); }
.confirm-modal-backdrop[hidden] { display: none; }
.confirm-modal { width: min(430px, 100%); padding: 24px; border: 1px solid #693b43; border-radius: 10px; color: var(--text); background: #101d2b; box-shadow: 0 22px 60px rgba(0,0,0,.45); }
.confirm-modal h2 { color: #ffb0b3; font-size: 20px; }
.confirm-modal > p { margin-top: 10px; color: #aebed0; font-size: 12px; line-height: 1.7; }
.confirm-modal label { display: grid; gap: 8px; margin-top: 18px; color: #b9c8d8; font-size: 11px; }
.confirm-modal input { width: 100%; min-height: 44px; border: 1px solid #5b3a42; border-radius: 6px; padding: 0 12px; color: #f2f6fb; background: #172535; outline: none; font: 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.confirm-modal input:focus { border-color: #c45d66; box-shadow: 0 0 0 3px rgba(196,93,102,.16); }
.confirm-modal footer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; margin-top: 20px; }
.danger-button { min-height: 44px; border: 1px solid #b54b55; border-radius: 7px; padding: 0 15px; color: #fff; background: #8f3039; font-size: 12px; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: #a63b45; }
.danger-button:disabled { opacity: .65; cursor: wait; }

/* TDX-12 local alert center */
.alerts-content { width: min(1340px, 100%); transition: margin-right .2s ease; }
.alert-warning { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 18px; margin-bottom: 16px; border: 1px solid #8a6d18; border-radius: var(--radius); background: #211d0f; }
.alert-warning h2 { color: #ffe08b; font-size: 20px; }
.alert-warning p { color: #c9c0a7; margin-top: 5px; font-size: 13px; }
.alert-actions { display: flex; gap: 10px; }
.delivery-disabled { color: #6f8197; border-color: #30445b; background: #0e1927; cursor: not-allowed; }

.alert-summary { min-height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.alert-summary > div { padding: 14px 20px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.alert-summary > div:last-child { border-right: 0; }
.alert-summary small { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.alert-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.alert-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 155px 155px auto; gap: 10px; margin-bottom: 14px; }
.alert-toolbar input, .alert-toolbar select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; color: #d8e3f0; background: var(--surface); outline: none; font-size: 12px; }
.alert-toolbar input:focus, .alert-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .12); }
.alert-toolbar .search-control input { padding-left: 40px; }

.alert-table-panel { margin-bottom: 14px; }
.alert-table-wrap { max-height: 284px; overflow: auto; }
.alert-table { min-width: 930px; table-layout: fixed; }
.alert-table thead { position: sticky; top: 0; z-index: 2; }
.alert-table th, .alert-table td { padding: 10px 11px; font-variant-numeric: tabular-nums; }
.alert-table th:nth-child(1) { width: 105px; }
.alert-table th:nth-child(2) { width: 165px; }
.alert-table th:nth-child(3) { width: 100px; }
.alert-table th:nth-child(4) { width: 135px; }
.alert-table th:nth-child(5) { width: 170px; }
.alert-table th:nth-child(6) { width: 140px; }
.alert-table th:nth-child(7) { width: 55px; text-align: center; }
.alert-table th:nth-child(8) { width: 90px; }
.alert-row { cursor: pointer; transition: background .15s ease; }
.alert-row:hover { background: #14273c; }
.alert-row.selected-row { background: #12467d; box-shadow: inset 3px 0 var(--accent); }
.alert-row td:nth-child(2) a { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.alert-row td:nth-child(2) strong { font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.alert-row td:nth-child(2) span { color: #b8c8da; }
.severity { display: inline-flex; align-items: center; gap: 7px; font: 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.severity i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.severity-critical, .severity-text-critical { color: var(--red); font-weight: 800; }
.severity-high, .severity-text-high { color: var(--amber); font-weight: 800; }
.severity-medium, .severity-text-medium { color: var(--accent-strong); }
.severity-info, .severity-text-info { color: #aebed1; }
.value-stack strong, .value-stack small { display: block; }
.value-stack strong { color: #dbe6f3; font-size: 11px; font-weight: 500; }
.value-stack small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.occurrence { text-align: center; font-weight: 700; }
.alert-status { min-width: 62px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #8a6d18; border-radius: 6px; color: var(--amber); background: #2b240e; font-size: 10px; font-weight: 700; }
.status-acknowledged { border-color: #2ba978; color: #7ce5b4; background: #0b3026; }
.status-resolved { border-color: #526176; color: #a9b8c9; background: #202a37; }
.alert-empty { height: 146px; }
.alert-table-footer { min-height: 45px; padding: 0 16px; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.alert-detail { margin-bottom: 14px; }
.alert-detail > header { min-height: 60px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.alert-detail > header > div { display: flex; align-items: center; gap: 11px; }
.alert-detail > header strong { font: 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.alert-detail > header > div > span:nth-child(2) { color: #cbd7e5; font-size: 13px; }
.detail-acknowledge { width: auto; min-width: 110px; padding: 10px 15px; text-align: center; text-decoration: none; font-size: 12px; }
.handled-label { color: var(--muted); font-size: 12px; }
.alert-detail-grid { display: grid; grid-template-columns: 1fr 1.05fr 1.1fr; }
.alert-detail-grid > div { min-height: 180px; padding: 16px 18px; border-right: 1px solid var(--line); }
.alert-detail-grid > div:last-child { border-right: 0; }
.alert-detail-grid h2 { margin-bottom: 14px; font-size: 14px; }
.alert-detail-grid dl, .selected-alert-summary dl { margin: 0; display: grid; gap: 10px; }
.alert-detail-grid dl div, .selected-alert-summary dl div { display: flex; justify-content: space-between; gap: 14px; color: #aebed0; font-size: 12px; }
.alert-detail-grid dd, .selected-alert-summary dd { margin: 0; color: #dce7f4; text-align: right; overflow-wrap: anywhere; }
.alert-detail-grid p { color: #c4d1df; font-size: 12px; line-height: 1.9; }
.alert-detail-grid small { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }

.alert-drawer { position: fixed; z-index: 21; top: 0; right: 0; width: 348px; height: 100vh; display: flex; flex-direction: column; border-left: 1px solid #28415c; color: var(--text); background: #0d1d2e; box-shadow: -16px 0 36px rgba(0, 0, 0, .32); transform: translateX(102%); transition: transform .2s ease; }
.alert-drawer-open .alert-drawer { transform: translateX(0); }
.alert-drawer > header { min-height: 102px; padding: 22px 24px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.alert-drawer > header h2 { font-size: 21px; }
.alert-drawer > header p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.alert-drawer > header button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #c8d7e8; background: transparent; cursor: pointer; }
.alert-drawer > header button:hover { color: white; background: var(--surface-2); }
.alert-drawer > header svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.alert-drawer form { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 20px 24px 22px; overflow-y: auto; }
.selected-alert-summary { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.selected-alert-summary h3 { margin: 0 0 18px; font-size: 14px; }
.selected-alert-summary dl { gap: 14px; }
.ack-note { position: relative; display: grid; gap: 9px; margin-top: 24px; color: #aebed1; font-size: 11px; }
.ack-note textarea { width: 100%; min-height: 108px; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px 26px; color: #e4edf8; background: #102338; outline: none; resize: vertical; font-size: 13px; }
.ack-note textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .12); }
.ack-note small { position: absolute; right: 10px; bottom: 9px; color: #71849b; font-size: 10px; }
.alert-drawer footer { padding-top: 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; border-top: 1px solid var(--line); }
.alert-drawer footer .primary-button { min-width: 0; }

/* TDX-13 model health and final delivery */
.health-content, .settings-content { width: min(1340px, 100%); }
.health-warning, .delivery-ready { min-height: 90px; margin-bottom: 16px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #8a6d18; border-radius: var(--radius); background: #211d0f; }
.health-warning h2 { color: #ffe08b; font-size: 20px; }
.delivery-ready { border-color: #237553; background: #0a261f; }
.delivery-ready h2 { color: #9af0c4; font-size: 20px; }
.health-warning p, .delivery-ready p { margin-top: 6px; color: #c9c9bd; font-size: 12px; }
.health-summary, .settings-summary { min-height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.health-summary > div, .settings-summary > div { padding: 14px 20px; display: flex; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.health-summary > div:last-child, .settings-summary > div:last-child { border-right: 0; }
.health-summary small, .settings-summary small { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.health-summary strong, .settings-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.health-models { margin-bottom: 16px; }
.learning-panel { margin-bottom: 16px; }
.panel-actions { display: flex; align-items: center; gap: 12px; }
.learning-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.learning-summary > div { min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; background: var(--surface); }
.learning-summary small, .table-subline, .muted-copy { color: var(--muted); font-size: 10px; }
.learning-summary strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.learning-note { margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.learning-table { min-width: 1040px; }
.table-subline { display: block; margin-top: 4px; max-width: 280px; white-space: normal; line-height: 1.45; }
.empty-inline { padding: 18px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.health-models table { min-width: 920px; }
.health-models td:last-child { max-width: 320px; }
.model-gate { font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: #aebed1; }
.gate-forward_observing { color: var(--amber); }
.gate-production_eligible { color: var(--green); }
.gate-research_failed { color: var(--red); }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.observation-body { padding: 18px; }
.progress-copy { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.progress-copy strong { font-size: 18px; }
.progress-copy span { color: var(--muted); font-size: 12px; }
.progress-track { height: 8px; border-radius: 10px; overflow: hidden; background: #26384c; }
.progress-track span { display: block; min-width: 0; height: 100%; background: var(--accent); }
.observation-body dl { margin: 18px 0 0; display: grid; gap: 10px; }
.observation-body dl div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.observation-body dd { margin: 0; color: #dce7f4; }
.hash-list > div { min-height: 58px; padding: 10px 17px; display: grid; grid-template-columns: 10px 125px 1fr; align-items: center; gap: 10px; border-bottom: 1px solid rgba(41,59,81,.75); }
.hash-list > div:last-child { border-bottom: 0; }
.hash-list strong { font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hash-list small { color: var(--muted); text-align: right; font-size: 11px; }
.reason-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.reason-list > div { padding: 17px; border-right: 1px solid var(--line); }
.reason-list > div:last-child { border-right: 0; }
.reason-list strong { color: #dce8f5; font-size: 13px; }
.reason-list p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); gap: 16px; }
.settings-main, .settings-rail { display: grid; align-content: start; gap: 16px; }
.config-list { margin: 0; }
.config-list > div { min-height: 55px; padding: 10px 17px; display: grid; grid-template-columns: 155px minmax(0, 1fr); align-items: center; gap: 14px; border-bottom: 1px solid rgba(41,59,81,.75); }
.config-list > div:last-child { border-bottom: 0; }
.config-list dt { color: var(--muted); font-size: 11px; }
.config-list dd { margin: 0; color: #d8e4f1; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.settings-runs table { min-width: 660px; }
.maintenance-actions > button, .restore-note { width: 100%; min-height: 72px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid rgba(41,59,81,.75); color: inherit; background: transparent; text-align: left; }
.maintenance-actions > button { cursor: pointer; }
.maintenance-actions > button:hover { background: var(--surface-2); }
.maintenance-actions > button:disabled { opacity: .55; cursor: wait; }
.maintenance-actions span strong, .maintenance-actions span small { display: block; }
.maintenance-actions span strong { font-size: 13px; }
.maintenance-actions span small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.maintenance-actions b { min-width: 42px; color: var(--accent-strong); font-size: 11px; text-align: right; }
.restore-note b { color: var(--muted); }
.artifact-list > div { padding: 12px 15px; border-bottom: 1px solid rgba(41,59,81,.75); }
.artifact-list > div:last-child { border-bottom: 0; }
.artifact-type { display: inline-block; margin-bottom: 6px; color: var(--accent-strong); font: 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.artifact-list strong, .artifact-list small { display: block; }
.artifact-list strong { overflow: hidden; color: #d4e1ef; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.artifact-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.artifact-empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: 12px; }
.remote-state { color: var(--amber) !important; }
.remote-ready { color: var(--green) !important; }
.remote-body { padding: 16px; }
.remote-body strong, .remote-body a, .remote-body p, .remote-body small { display: block; }
.remote-body strong { color: #dce8f5; font-size: 13px; }
.remote-body a { margin-top: 9px; color: var(--accent-strong); overflow-wrap: anywhere; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.remote-body p { margin-top: 9px; color: #b9c8d8; font-size: 11px; line-height: 1.7; }
.remote-body small { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.settings-safety { margin-top: 16px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); color: #aebed1; background: #0d1927; font-size: 11px; }
.settings-safety > span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #07101c; background: var(--green); font-weight: 800; }
.settings-safety strong { color: #dce8f5; }

@media (min-width: 1451px) {
  .drawer-open .positions-content { width: auto; max-width: none; margin: 0 348px 0 0; }
  .drawer-open .drawer-backdrop { display: none; }
  .drawer-open .positions-content .topbar p { max-width: 520px; }
  .drawer-open .holding-table th, .drawer-open .holding-table td { padding-inline: 9px; }
  .alert-drawer-open .alerts-content { width: auto; max-width: none; margin: 0 348px 0 0; }
  .alert-drawer-open .drawer-backdrop { display: none; }
  .alert-drawer-open .alert-table th, .alert-drawer-open .alert-table td { padding-inline: 8px; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child { display: none; }
  .nav-item:not(.selected) small, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-icon { font-size: 19px; }
  .nav-notification-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 8px; }
  .nav-item { position: relative; }
  .sidebar-note { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .candidate-meta { grid-template-columns: 1fr 1fr; }
  .candidate-meta > div:nth-child(2) { border-right: 0; }
  .candidate-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .candidate-toolbar { grid-template-columns: 1fr 1fr; }
  .search-control, .locked-button { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-grid > div:last-child { border-bottom: 0; }
  .holding-summary { grid-template-columns: 1fr 1fr; }
  .holding-summary > div:nth-child(2) { border-right: 0; }
  .holding-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .holding-toolbar { grid-template-columns: 1fr auto; }
  .holding-toolbar .search-control { grid-column: 1 / -1; }
  .holding-detail-grid { grid-template-columns: 1fr; }
  .holding-detail-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .holding-detail-grid > div:last-child { border-bottom: 0; }
  .intraday-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intraday-levels > div:nth-child(3) { border-right: 0; }
  .intraday-levels > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .alert-summary { grid-template-columns: 1fr 1fr; }
  .alert-summary > div:nth-child(2) { border-right: 0; }
  .alert-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .alert-toolbar { grid-template-columns: 1fr 1fr; }
  .alert-toolbar .search-control { grid-column: 1 / -1; }
  .alert-detail-grid { grid-template-columns: 1fr; }
  .alert-detail-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .alert-detail-grid > div:last-child { border-bottom: 0; }
  .module-strip { grid-template-columns: 1fr 1fr; }
  .module-strip a:nth-child(even) { border-right: 0; }
  .overview-summary, .health-summary, .settings-summary { grid-template-columns: 1fr 1fr; }
  .overview-summary > div:nth-child(2), .health-summary > div:nth-child(2), .settings-summary > div:nth-child(2) { border-right: 0; }
  .overview-summary > div:nth-child(-n+2), .health-summary > div:nth-child(-n+2), .settings-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .health-grid, .settings-grid { grid-template-columns: 1fr; }
  .learning-summary { grid-template-columns: 1fr 1fr; }
  .reason-list { grid-template-columns: 1fr; }
  .reason-list > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .reason-list > div:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 10px 14px; flex-direction: row; align-items: center; overflow-x: auto; }
  .brand { padding: 0 14px 0 0; }
  nav { display: flex; }
  .nav-item { width: 44px; flex: 0 0 44px; }
  .main-content { padding: 22px 16px 36px; }
  .message-bell { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .intraday-toast { right: 16px; bottom: 82px; }
  .message-center { width: 100%; }
  .message-center > header { min-height: 86px; padding: 17px 16px; }
  .message-list { padding: 10px; }
  .topbar { align-items: flex-end; }
  .topbar p { display: none; }
  .candidate-topbar .research-mode { display: none; }
  .readiness { align-items: stretch; flex-direction: column; }
  .research-warning { align-items: stretch; flex-direction: column; }
  .ledger-warning { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .status-row { grid-template-columns: 1fr auto; }
  .status-row small { grid-column: 1 / -1; text-align: left; }
  table { min-width: 0; }
  th, td { padding: 11px 12px; }
  th:nth-child(4), th:nth-child(5), td:nth-child(4), td:nth-child(5) { display: none; }
  .candidate-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .candidate-meta > div { min-width: 0; padding-inline: 14px; border-bottom: 1px solid var(--line); }
  .candidate-meta strong { font-size: 13px; }
  .candidate-meta > div:nth-child(even) { border-right: 0; }
  .candidate-meta > div:nth-child(n+3) { border-bottom: 0; }
  .midterm-validation { grid-template-columns: 1fr 1fr; }
  .midterm-validation > div { border-right: 1px solid #234b3f; border-bottom: 1px solid #234b3f; }
  .midterm-validation > div:nth-child(even) { border-right: 0; }
  .midterm-validation > div:nth-child(n+3) { border-bottom: 0; }
  .candidate-toolbar { grid-template-columns: 1fr; }
  .search-control, .locked-button { grid-column: auto; }
  .candidate-table-wrap { overflow-x: hidden; }
  .candidate-table { width: 100%; min-width: 0; table-layout: fixed; }
  .candidate-table th, .candidate-table td { padding: 9px 4px; font-size: 9px; }
  .candidate-table th:nth-child(2) { width: 35%; }
  .candidate-table th:nth-child(3) { width: 20%; }
  .candidate-table th:nth-child(4) { width: 13%; }
  .candidate-table th:nth-child(5) { width: 15%; }
  .candidate-table th:nth-child(6) { width: 17%; }
  .candidate-table th:nth-child(2), .candidate-table td:nth-child(2),
  .candidate-table th:nth-child(3), .candidate-table td:nth-child(3),
  .candidate-table th:nth-child(4), .candidate-table td:nth-child(4),
  .candidate-table th:nth-child(5), .candidate-table td:nth-child(5),
  .candidate-table th:nth-child(6), .candidate-table td:nth-child(6) { display: table-cell; }
  .candidate-table th:nth-child(1), .candidate-table td:nth-child(1),
  .candidate-table th:nth-child(7), .candidate-table td:nth-child(7),
  .candidate-table th:nth-child(8), .candidate-table td:nth-child(8),
  .candidate-table th:nth-child(9), .candidate-table td:nth-child(9),
  .candidate-table th:nth-child(10), .candidate-table td:nth-child(10) { display: none; }
  .candidate-table td:nth-child(2) a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .candidate-table td:nth-child(2) strong, .candidate-table td:nth-child(2) span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pool-tag { min-height: 0; padding: 4px; white-space: normal; text-align: center; line-height: 1.2; }
  .candidate-detail > header { padding: 13px 16px; align-items: flex-start; flex-direction: column; }
  .candidate-detail > header small { text-align: left; }
  .candidate-detail-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .return-estimate-panel { margin: 0 14px 16px; }
  .return-estimate-panel > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .return-estimate-grid { grid-template-columns: 1fr 1fr; }
  .return-estimate-grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .return-estimate-grid > div:nth-child(even) { border-right: 0; }
  .return-estimate-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .module-strip { grid-template-columns: 1fr; }
  .module-strip div, .module-strip a { border-right: 0; border-bottom: 1px solid var(--line); }
  .module-strip div:last-child, .module-strip a:last-child { border-bottom: 0; }
  .ledger-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .compact-button { min-width: 0; }
  .holding-summary { grid-template-columns: 1fr; }
  .holding-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .holding-summary > div:last-child { border-bottom: 0; }
  .holding-toolbar { grid-template-columns: 1fr; }
  .holding-toolbar .search-control { grid-column: auto; }
  .holding-table-wrap { overflow-x: hidden; }
  .holding-table { width: 100%; min-width: 0; table-layout: fixed; }
  .holding-table th, .holding-table td { padding: 9px 5px; font-size: 10px; }
  .holding-table th:nth-child(1) { width: 38%; }
  .holding-table th:nth-child(4) { width: 18%; }
  .holding-table th:nth-child(5) { width: 18%; }
  .holding-table th:nth-child(8) { width: 26%; }
  .holding-table th:nth-child(4), .holding-table td:nth-child(4),
  .holding-table th:nth-child(5), .holding-table td:nth-child(5) { display: table-cell; }
  .holding-table th:nth-child(2), .holding-table td:nth-child(2),
  .holding-table th:nth-child(3), .holding-table td:nth-child(3),
  .holding-table th:nth-child(6), .holding-table td:nth-child(6),
  .holding-table th:nth-child(7), .holding-table td:nth-child(7),
  .holding-table th:nth-child(9), .holding-table td:nth-child(9) { display: none; }
  .holding-row td:first-child a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .holding-row td:first-child strong, .holding-row td:first-child span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-signal { min-height: 0; padding: 4px 5px; white-space: normal; text-align: center; line-height: 1.25; }
  .holding-detail > header { padding: 13px 16px; align-items: flex-start; flex-direction: column; }
  .holding-detail > header small { text-align: left; }
  .holding-detail > header .position-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .intraday-panel > header { align-items: stretch; flex-direction: column; }
  .intraday-actions { align-items: stretch; flex-direction: column; }
  .intraday-actions small { line-height: 1.6; }
  .intraday-levels { grid-template-columns: 1fr 1fr; }
  .intraday-levels > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .intraday-levels > div:nth-child(even) { border-right: 0; }
  .intraday-levels > div:nth-last-child(-n+2) { border-bottom: 0; }
  .trade-drawer { width: min(100%, 390px); }
  .trade-drawer > header, .trade-drawer form { padding-inline: 18px; }
  .alert-warning { align-items: stretch; flex-direction: column; }
  .alert-actions { display: grid; grid-template-columns: 1fr; }
  .alert-summary { grid-template-columns: 1fr; }
  .alert-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .alert-summary > div:last-child { border-bottom: 0; }
  .alert-toolbar { grid-template-columns: 1fr; }
  .alert-toolbar .search-control { grid-column: auto; }
  .alert-table { min-width: 720px; }
  .alert-table th:nth-child(5), .alert-table td:nth-child(5),
  .alert-table th:nth-child(6), .alert-table td:nth-child(6) { display: none; }
  .alert-detail > header { padding: 13px 16px; align-items: flex-start; flex-direction: column; }
  .alert-detail > header > div { flex-wrap: wrap; }
  .alert-drawer { width: min(100%, 390px); }
  .alert-drawer > header, .alert-drawer form { padding-inline: 18px; }
  .health-warning, .delivery-ready { align-items: stretch; flex-direction: column; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .learning-summary { grid-template-columns: 1fr; }
  .overview-summary, .health-summary, .settings-summary { grid-template-columns: 1fr; }
  .overview-summary > div, .health-summary > div, .settings-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-summary > div:last-child, .health-summary > div:last-child, .settings-summary > div:last-child { border-bottom: 0; }
  .hash-list > div { grid-template-columns: 10px 1fr; }
  .hash-list small { grid-column: 2; text-align: left; }
  .config-list > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.logout-button { margin-top: 10px; padding: 7px 10px; border: 1px solid #31506e; border-radius: 6px; color: #9fb6ca; background: transparent; cursor: pointer; font-size: 11px; }
.logout-button:hover { color: #fff; border-color: #4f83b4; background: #10263a; }

.auth-page { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 20% 12%, #153552 0, #091522 38%, #050d16 78%); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 430px); overflow: hidden; border: 1px solid #294764; border-radius: 16px; background: rgba(10, 25, 39, .96); box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.auth-brand { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.auth-brand > div { display: grid; gap: 2px; }
.auth-brand strong { font-size: 14px; }
.auth-brand small { color: var(--muted); font-size: 10px; }
.auth-copy { padding: 28px 28px 10px; }
.auth-kicker { color: #59a7ff; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.auth-copy h1 { margin: 8px 0; font-size: 30px; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.auth-form { display: grid; gap: 16px; padding: 20px 28px 28px; }
.auth-form label { display: grid; gap: 7px; color: #b8c9d9; font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #31506e; border-radius: 8px; color: #fff; background: #071522; outline: none; }
.auth-form input:focus { border-color: #2f8fff; box-shadow: 0 0 0 3px rgba(47, 143, 255, .14); }
.auth-form .primary-button { width: 100%; min-height: 44px; margin-top: 2px; }
.auth-error { margin: 0; padding: 10px 12px; border: 1px solid #914341; border-radius: 7px; color: #ffaaa5; background: rgba(113, 31, 29, .3); font-size: 11px; }
.auth-card > footer { padding: 13px 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 10px; }

@media (max-width: 680px) {
  .auth-shell { padding: 14px; }
  .auth-copy { padding: 24px 22px 8px; }
  .auth-form { padding: 18px 22px 24px; }
}
