:root {
    --bg: #070c14;
    --sidebar: #0a111c;
    --panel: #101a28;
    --panel-2: #142131;
    --panel-3: #19283a;
    --line: rgba(148, 163, 184, .14);
    --text: #f4f7fb;
    --muted: #8998aa;
    --accent: #f04b23;
    --accent-soft: rgba(240, 75, 35, .15);
    --success: #31c48d;
    --warning: #f5b942;
    --danger: #ef5a67;
    --radius: 16px;
    --shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        var(--bg);
    background-size: 36px 36px;
    font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
    letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 20;
    display: flex; flex-direction: column; padding: 22px 16px 18px;
    background: rgba(10, 17, 28, .96); border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
    background: var(--accent); color: white; font-weight: 800; box-shadow: 0 8px 24px rgba(240,75,35,.25);
}
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .15em; margin-top: 3px; }
.nav { display: grid; gap: 6px; }
.nav a { position: relative; display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 0 14px; color: #7f8d9e; border-radius: 11px; transition: .2s ease; }
.nav a:hover { color: #dce4ec; background: rgba(255,255,255,.035); }
.nav a.active { color: #ff6945; background: var(--accent-soft); }
.nav a.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-icon { width: 22px; text-align: center; font-size: 15px; }
.account { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); color: #ff8061; font-weight: 700; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.account-copy small { color: var(--muted); font-size: 11px; }
.logout { color: var(--muted); padding: 8px; }
.logout:hover { color: var(--accent); }

.main { grid-column: 2; min-width: 0; padding: 28px 32px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; }
.page-subtitle { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(240,75,35,.45); }
.btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 24px rgba(240,75,35,.2); }
.btn-danger { color: #ff8791; border-color: rgba(239,90,103,.28); background: rgba(239,90,103,.08); }

.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.card { background: linear-gradient(145deg, rgba(20,33,49,.98), rgba(14,24,37,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric { min-height: 148px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.metric::after { content: ""; position: absolute; right: -26px; bottom: -36px; width: 96px; height: 96px; border-radius: 50%; border: 16px solid rgba(240,75,35,.06); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.metric-note { color: #627285; font-size: 11px; }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head span { color: var(--muted); font-size: 12px; }

.table-wrap { overflow: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { padding: 12px 14px; color: #7f8fa2; background: #0d1724; font-size: 11px; text-align: left; font-weight: 600; letter-spacing: .08em; }
td { padding: 14px; border-top: 1px solid var(--line); color: #dce4ec; font-size: 13px; vertical-align: middle; }
tbody tr { background: rgba(255,255,255,.012); transition: .16s ease; }
tbody tr:hover { background: rgba(240,75,35,.035); }
.cell-main { font-weight: 650; color: var(--text); }
.cell-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.link { color: #ff7656; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 11px; border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.success { color: var(--success); background: rgba(49,196,141,.09); border-color: rgba(49,196,141,.18); }
.pill.warning { color: var(--warning); background: rgba(245,185,66,.09); border-color: rgba(245,185,66,.18); }
.pill.danger { color: var(--danger); background: rgba(239,90,103,.09); border-color: rgba(239,90,103,.18); }
.pill.accent { color: #ff7656; background: var(--accent-soft); border-color: rgba(240,75,35,.2); }
.pill.muted { color: #8a9aac; background: rgba(138,154,172,.08); border-color: var(--line); }

.progress { width: 110px; height: 5px; overflow: hidden; border-radius: 999px; background: #0a111b; margin-top: 7px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 22px; }
.stage { padding: 13px 14px; background: #0d1724; border-radius: 11px; border: 1px solid var(--line); }
.stage strong { display: block; font-size: 20px; }
.stage span { color: var(--muted); font-size: 11px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #b7c2ce; font-size: 12px; }
.input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #0b1521; outline: none; transition: .2s ease; }
.input { height: 42px; padding: 0 13px; }
.textarea { min-height: 112px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus { border-color: rgba(240,75,35,.65); box-shadow: 0 0 0 3px rgba(240,75,35,.09); }
.hint { color: #657588; font-size: 11px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check label { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #0b1521; cursor: pointer; color: #94a3b4; }
.check label::before { content: ""; width: 14px; height: 14px; border: 1px solid #46566a; border-radius: 4px; }
.check input:checked + label { color: #ff7958; border-color: rgba(240,75,35,.4); background: var(--accent-soft); }
.check input:checked + label::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #142131; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; color: #ff9ca4; background: rgba(239,90,103,.1); border: 1px solid rgba(239,90,103,.2); font-size: 13px; }

.project-form { display: grid; gap: 16px; }
.config-section { padding: 24px; }
.config-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.config-heading h2 { margin: 0; font-size: 18px; }
.config-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.config-index { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; color: #ff7958; background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; }
.choice-row.compact { grid-template-columns: repeat(2, minmax(0, 160px)); }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: flex; min-height: 64px; padding: 12px 14px; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 11px; color: #aeb9c6; background: #0b1521; }
.choice-card small { color: var(--muted); font-size: 10px; }
.choice-card input:checked + span { color: #ff7958; border-color: rgba(240,75,35,.48); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.nested-settings { padding: 16px; border: 1px dashed rgba(148,163,184,.2); border-radius: 12px; background: rgba(5,11,18,.3); }
.model-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-config-card { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(2, minmax(100px, 130px)); align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b1521; }
.model-config-card > div { align-self: center; }
.model-config-card strong, .model-config-card span { display: block; }
.model-config-card span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.model-config-card label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.count-input { height: 36px; }
.textarea.tall { min-height: 170px; }
.compact-textarea { min-height: 90px; }
.inline-setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b1521; }
.inline-setting label, .inline-setting .hint { display: block; }
.inline-setting .hint { margin-top: 5px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-row > input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; flex: 0 0 42px; height: 24px; border-radius: 999px; background: #263648; transition: .2s ease; }
.switch-ui::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #a4b0bd; transition: .2s ease; }
.switch-row > input:checked + .switch-ui { background: var(--accent); }
.switch-row > input:checked + .switch-ui::after { left: 21px; background: white; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
#sentimentSettings { margin-top: 18px; }
.extra-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border: 1px solid rgba(240,75,35,.24); border-radius: 14px; background: rgba(10,17,28,.94); box-shadow: 0 18px 50px rgba(0,0,0,.34); backdrop-filter: blur(18px); }
.sticky-actions strong, .sticky-actions span { display: block; }
.sticky-actions span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3,7,12,.82); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: min(920px, 100%); max-height: min(760px, calc(100vh - 48px)); padding: 20px; overflow: auto; }
.question-model-rows { display: grid; gap: 9px; }
.question-model-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) 2fr; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #0b1521; }
.question-model-row > strong { font-size: 12px; line-height: 1.5; }
.question-model-choices { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.question-model-choices label { display: flex; align-items: center; gap: 6px; color: #aeb9c6; font-size: 11px; }
.question-model-choices input { accent-color: var(--accent); }
.modal-actions { justify-content: flex-end; margin-top: 16px; }
.synced-project-card .config-heading { align-items: center; }
.synced-project-card .config-heading .pill { margin-left: auto; }
.readonly-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.readonly-item { min-height: 78px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b1521; }
.readonly-item span, .readonly-item strong { display: block; }
.readonly-item span, .readonly-block > span { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.readonly-item strong { margin-top: 10px; font-size: 13px; line-height: 1.4; }
.readonly-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.readonly-block { min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,21,33,.7); }
.readonly-block.full { grid-column: 1 / -1; }
.readonly-list { display: grid; gap: 6px; max-height: 190px; margin-top: 10px; overflow: auto; color: #c7d0da; font-size: 12px; line-height: 1.5; scrollbar-width: thin; scrollbar-color: #56677a transparent; }
.readonly-list::-webkit-scrollbar { width: 8px; }
.readonly-list::-webkit-scrollbar-track { margin: 7px 0; border-radius: 999px; background: transparent; }
.readonly-list::-webkit-scrollbar-thumb { min-height: 34px; border: 2px solid #0b1521; border-radius: 999px; background: #56677a; }
.readonly-list::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.readonly-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-list span { padding: 5px 8px; border-radius: 7px; color: #9eacbb; background: #101e2d; font-size: 10px; }
.tag-list .empty-tag, .muted-copy { color: #607186; }
.config-detail-list { display: grid; gap: 9px; margin-top: 10px; }
.config-detail-row { display: grid; grid-template-columns: minmax(150px, .8fr) 2fr; align-items: start; gap: 14px; padding: 10px 12px; border-radius: 9px; background: #0a1420; }
.config-detail-row > strong { padding-top: 5px; color: #c2ccd7; font-size: 11px; line-height: 1.5; }
.config-detail-row .tag-list { margin-top: 0; }
.query-count-grid { display: grid; gap: 10px; }
.query-count-card { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 180px; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #0b1521; }
.query-model strong, .query-model span, .target-count span, .target-count strong { display: block; }
.query-model span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.target-count { padding-left: 18px; border-left: 1px solid var(--line); }
.target-count span { color: var(--muted); font-size: 10px; }
.target-count strong { margin-top: 5px; font-size: 19px; }
.query-count-card label { display: grid; gap: 6px; color: #aeb9c6; font-size: 10px; }
.query-count-input { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.query-count-form { margin-top: 16px; }
.query-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.query-actions > span { color: var(--muted); font-size: 11px; }
.project-filters { display: grid; grid-template-columns: minmax(320px, 560px) 190px 170px auto; align-items: end; justify-content: start; gap: 12px; padding: 16px; margin-bottom: 16px; }
.filter-field { display: grid; gap: 7px; }
.filter-field label, .filter-label { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.filter-actions, .project-row-actions { display: flex; align-items: center; gap: 9px; }
.project-row-actions { min-width: 116px; }
.project-progress { min-width: 110px; }
.project-progress strong, .project-progress > span { display: block; }
.project-progress strong { color: #dce5ef; font-size: 12px; }
.project-progress > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-progress .progress { margin-top: 6px; }
.custom-select { position: relative; min-width: 0; }
.custom-select-trigger { display: flex; width: 100%; height: 40px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #0b1521; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.custom-select-trigger:hover, .custom-select-trigger[aria-expanded="true"] { border-color: rgba(240,75,35,.45); box-shadow: 0 0 0 3px rgba(240,75,35,.08); }
.custom-select-arrow { width: 7px; height: 7px; border-right: 1.5px solid #718096; border-bottom: 1.5px solid #718096; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.custom-select-trigger[aria-expanded="true"] .custom-select-arrow { transform: rotate(225deg) translate(-2px, -2px); }
.custom-select-menu { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: 100%; max-height: 260px; padding: 6px; overflow-y: auto; border: 1px solid rgba(90,112,136,.32); border-radius: 11px; background: #101d2c; box-shadow: 0 18px 44px rgba(0,0,0,.46); scrollbar-width: thin; scrollbar-color: #56677a transparent; }
.custom-select-menu::-webkit-scrollbar { width: 8px; }
.custom-select-menu::-webkit-scrollbar-track { margin: 7px 0; border-radius: 999px; background: transparent; }
.custom-select-menu::-webkit-scrollbar-thumb { min-height: 34px; border: 2px solid #101d2c; border-radius: 999px; background: #56677a; }
.custom-select-menu::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.custom-select-menu::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.custom-select-menu button { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 0 10px; border: 0; border-radius: 7px; color: #aeb9c6; background: transparent; cursor: pointer; text-align: left; }
.custom-select-menu button:hover, .custom-select-menu button:focus-visible { color: white; outline: none; background: rgba(240,75,35,.12); }
.custom-select-menu button[aria-selected="true"] { color: #ff7958; background: rgba(240,75,35,.1); }
.project-setting-button { min-height: 30px; padding: 0 12px; border-color: rgba(240,75,35,.32); color: #ff7958; background: rgba(240,75,35,.08); font-size: 11px; }
.status-button { min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; background: transparent; font-size: 11px; }
.status-button.close { color: #ff8791; border-color: rgba(239,90,103,.25); background: rgba(239,90,103,.08); }
.status-button.start { color: var(--success); border-color: rgba(49,196,141,.25); background: rgba(49,196,141,.08); }
.status-button:hover { filter: brightness(1.18); }

/* 中等宽度下将模型次数移至第二排，优先保持项目进度和操作信息可读。 */
@media (min-width: 761px) and (max-width: 1600px) {
    .project-table { min-width: 0; }
    .project-table thead tr,
    .project-table tbody tr { display: grid; grid-template-columns: minmax(120px, 1.25fr) 70px minmax(115px, 1fr) minmax(112px, 1fr) 86px 140px; }
    .project-table th,
    .project-table td { min-width: 0; }
    .project-table th { white-space: nowrap; }
    .project-table th:nth-child(1), .project-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
    .project-table th:nth-child(3), .project-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
    .project-table th:nth-child(4), .project-table td:nth-child(4) { grid-column: 3; grid-row: 1; }
    .project-table th:nth-child(5), .project-table td:nth-child(5) { grid-column: 4; grid-row: 1; }
    .project-table th:nth-child(6), .project-table td:nth-child(6) { grid-column: 5; grid-row: 1; }
    .project-table th:nth-child(7), .project-table td:nth-child(7) { grid-column: 6; grid-row: 1; }
    .project-table th:nth-child(2), .project-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .project-table th:nth-child(2) { display: none; }
    .project-table td:nth-child(2) { padding-top: 8px; border-top: 0; }
    .project-table td:nth-child(2) .pill { margin: 2px 4px 2px 0 !important; }
    .project-table .project-row-actions { min-width: 0; flex-wrap: nowrap; white-space: nowrap; }
    .project-table .project-progress { min-width: 0; }
}

.score { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: #ff7958; font-weight: 800; }
.field-dots { display: flex; flex-wrap: wrap; gap: 5px; max-width: 300px; }
.field-dot { padding: 3px 7px; border-radius: 6px; color: #738296; background: #0b1521; font-size: 10px; }
.field-dot.hit { color: var(--success); background: rgba(49,196,141,.09); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font-size: 12px; }
.tab.active { color: #ff7656; border-color: rgba(240,75,35,.35); background: var(--accent-soft); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.login-shell { width: min(980px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.login-visual { position: relative; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; background: #0b1420; }
.login-visual::after { content: ""; position: absolute; width: 280px; height: 280px; border: 46px solid rgba(240,75,35,.1); border-radius: 50%; right: -120px; bottom: -100px; }
.login-visual h1 { max-width: 440px; font-size: 48px; }
.login-visual p { color: var(--muted); max-width: 420px; line-height: 1.8; }
.signal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; width: 240px; align-items: end; height: 62px; }
.signal span { background: var(--accent); border-radius: 5px 5px 2px 2px; opacity: .9; animation: signal 1.8s ease-in-out infinite alternate; }
.signal span:nth-child(1) { height: 22%; }.signal span:nth-child(2) { height: 48%; animation-delay: .2s }.signal span:nth-child(3) { height: 88%; animation-delay: .4s }.signal span:nth-child(4) { height: 60%; animation-delay: .6s }.signal span:nth-child(5) { height: 34%; animation-delay: .8s }
@keyframes signal { to { filter: brightness(1.45); transform: scaleY(.72); transform-origin: bottom; } }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 52px; background: #101a28; }
.login-form h2 { font-size: 24px; margin: 0 0 8px; }.login-form > p { color: var(--muted); margin: 0 0 28px; font-size: 13px; }
.login-form .field { margin-bottom: 14px; }.login-form .btn { margin-top: 8px; width: 100%; }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } .check-grid { grid-template-columns: repeat(2, 1fr); } .model-config-grid { grid-template-columns: 1fr; } .project-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
    .shell { display: block; }.sidebar { position: static; width: auto; min-height: auto; }.nav { grid-template-columns: repeat(4, 1fr); }.nav a { justify-content: center; padding: 0 8px; }.nav a span:last-child { display: none; }.account { display: none; }
    .main { padding: 22px 16px 40px; }.page-head { align-items: flex-start; flex-direction: column; }.stats { grid-template-columns: repeat(2, 1fr); }.form-grid { grid-template-columns: 1fr; }.check-grid { grid-template-columns: 1fr; }.pipeline { grid-template-columns: repeat(2, 1fr); }
    .config-section { padding: 18px; }.choice-row, .choice-row.compact, .extra-settings-grid { grid-template-columns: 1fr; }.model-config-card, .question-model-row { grid-template-columns: 1fr; }.inline-setting, .sticky-actions { align-items: stretch; flex-direction: column; }.sticky-actions .actions { width: 100%; }.sticky-actions .btn { flex: 1; }
    .readonly-grid, .readonly-columns { grid-template-columns: 1fr; }.readonly-block.full { grid-column: auto; }.config-detail-row, .query-count-card { grid-template-columns: 1fr; gap: 12px; }.target-count { padding: 0; border: 0; }.query-actions { align-items: stretch; flex-direction: column; }.query-actions .actions { width: 100%; }.query-actions .btn { flex: 1; }
    .project-filters { grid-template-columns: 1fr; }.filter-actions .btn { flex: 1; }
    .login-shell { grid-template-columns: 1fr; }.login-visual { display: none; }.login-form { padding: 36px 24px; }
}
