:root {
    color-scheme: light;
    --bg: #f6f7f4;
    --surface: #ffffff;
    --text: #20242a;
    --muted: #667085;
    --line: #dfe4dc;
    --primary: #116b5f;
    --primary-dark: #0a4d45;
    --accent: #c45a2d;
    --warning: #946200;
    --danger: #b42318;
    --success: #067647;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

nav {
    display: flex;
    gap: 8px;
}

.layout {
    width: min(1180px, calc(100vw - 32px));
    margin: 24px auto 48px;
    display: grid;
    gap: 18px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 18px;
    letter-spacing: 0;
}

.forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.forms > form {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfa;
}

.document-classification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.document-classification-grid > div:last-child {
    grid-column: 1 / -1;
}

.help-text,
.file-list {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.file-list {
    margin: 14px 0 0;
    overflow-wrap: anywhere;
}

.fault-import-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

form label,
.label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form.compact {
    justify-content: flex-start;
    margin-top: 12px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cad2c6;
    border-radius: 6px;
    padding: 9px 11px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

input[type="file"] {
    padding: 7px;
}

input[type="number"] {
    width: 110px;
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 108px;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

button.danger {
    background: var(--danger);
}

button.danger:hover {
    background: #912018;
}

.button.secondary {
    background: #eef4ef;
    color: var(--primary-dark);
    border: 1px solid #cbd9d2;
}

.button.secondary:hover {
    background: #ddece4;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
}

.section-head span {
    color: var(--muted);
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 2px 9px;
    background: #eef1f4;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.badge.COMPLETED {
    background: #dcfae6;
    color: var(--success);
}

.badge.PROCESSING,
.badge.PENDING {
    background: #fff4cc;
    color: var(--warning);
}

.badge.FAILED {
    background: #fee4e2;
    color: var(--danger);
}

.alert {
    margin-bottom: 16px;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 600;
}

.alert.success {
    background: #dcfae6;
    color: var(--success);
}

.alert.error {
    background: #fee4e2;
    color: var(--danger);
}

.alert.warning {
    margin-top: 14px;
    background: #fff4cc;
    color: var(--warning);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.chunk,
.result {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.ready-index {
    border-top: 1px solid var(--line);
    padding: 16px 0 4px;
}

.ready-index:first-of-type {
    border-top: 0;
}

.ready-index header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ready-index header small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.activation-form {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
}

.chunk:first-of-type,
.result:first-of-type {
    border-top: 0;
}

.chunk header,
.result header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.chunk header span,
.result header span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.result header div {
    display: grid;
    gap: 4px;
}

.result header .match-score {
    justify-items: end;
    min-width: 170px;
}

.result header .match-score small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

pre {
    margin: 0;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: 6px;
    padding: 12px;
    background: #f8faf7;
    color: #2b3036;
    font: 14px/1.6 "Cascadia Mono", Consolas, monospace;
}

pre.answer {
    max-height: none;
    background: #f5fbf9;
    border-left: 4px solid var(--primary);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.empty {
    padding: 22px 12px;
    color: var(--muted);
    text-align: center;
}

.search-form {
    display: grid;
    gap: 8px;
}

.gap-solution-form,
.gap-publish-form {
    display: grid;
    gap: 8px;
    min-width: 280px;
}

.gap-publish-form input {
    min-height: 36px;
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .forms,
    .detail-grid,
    .activation-form,
    .fault-import-form {
        grid-template-columns: 1fr;
    }

    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .document-classification-grid {
        grid-template-columns: 1fr;
    }

    .document-classification-grid > div:last-child {
        grid-column: auto;
    }

    button,
    .button,
    input[type="number"] {
        width: 100%;
    }
}


/* Search workspace -------------------------------------------------------- */

.search-page {
    --search-canvas: #f5f7f7;
    --search-surface: #ffffff;
    --search-ink: #18212a;
    --search-muted: #66727c;
    --search-faint: #5d6971;
    --search-line: #e2e7e6;
    --search-line-strong: #cbd5d2;
    --search-brand: #0f766e;
    --search-brand-strong: #0b5f59;
    --search-brand-soft: #eef8f6;
    --search-warning: #a15c08;
    background: var(--search-canvas);
    color: var(--search-ink);
}

.search-page .search-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 68px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(213, 220, 218, 0.92);
    background: rgba(255, 255, 255, 0.96);
    color: var(--search-ink);
    box-shadow: 0 1px 3px rgba(24, 33, 42, 0.03);
}

.search-page .brand-lockup {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-left: 13px;
    border-left: 3px solid var(--search-brand);
}

.search-page .brand-lockup h1 {
    margin: 0;
    color: var(--search-ink);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.search-page .brand-lockup p {
    margin: 1px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-page .index-state {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-right: 16px;
    border-right: 1px solid var(--search-line);
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .index-state strong {
    color: #34434b;
    font-size: 12px;
    font-weight: 650;
}

.search-page .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--search-brand-strong);
    font-weight: 700;
    white-space: nowrap;
}

.search-page .status-indicator i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12a57f;
    box-shadow: 0 0 0 3px rgba(18, 165, 127, 0.11);
}

.search-page .index-state.unavailable .status-indicator {
    color: #9b6515;
}

.search-page .index-state.unavailable .status-indicator i {
    background: #d09a3c;
    box-shadow: 0 0 0 3px rgba(208, 154, 60, 0.12);
}

.search-page .search-topbar nav {
    display: flex;
}

.search-page .nav-button {
    min-height: 42px;
    border-color: var(--search-line-strong);
    border-radius: 9px;
    padding: 9px 15px;
    background: var(--search-surface);
    color: #34434b;
    font-size: 13px;
    font-weight: 650;
    box-shadow: none;
}

.search-page .nav-button:hover {
    border-color: #aab9b5;
    background: #f8faf9;
    color: var(--search-ink);
    text-decoration: none;
}

.search-page .search-layout {
    width: min(1180px, calc(100vw - 40px));
    margin: 30px auto 56px;
    gap: 20px;
}

.search-page .panel,
.search-page .management-disclosure {
    border: 1px solid var(--search-line);
    border-radius: 14px;
    background: var(--search-surface);
    box-shadow: 0 1px 2px rgba(24, 33, 42, 0.025);
}

.search-page .search-workspace {
    padding: 28px 30px 0;
}

.search-page .workspace-head {
    display: block;
}

.search-page .workspace-head h2 {
    margin: 0;
    color: var(--search-ink);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.search-page .workspace-head p {
    margin: 6px 0 0;
    color: var(--search-muted);
    font-size: 14px;
}

.search-page .search-form {
    display: block;
    margin-top: 22px;
}

.search-page .search-form > label {
    display: block;
    margin-bottom: 8px;
    color: #3d4a52;
    font-size: 13px;
    font-weight: 650;
}

.search-page .query-composer {
    overflow: hidden;
    border: 1px solid var(--search-line-strong);
    border-radius: 13px;
    background: var(--search-surface);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-page .query-composer:focus-within {
    border-color: var(--search-brand);
    box-shadow: 0 0 0 2px var(--search-brand);
}

.search-page .query-composer textarea {
    display: block;
    min-height: 118px;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 17px 18px;
    background: transparent;
    color: var(--search-ink);
    font-size: 16px;
    line-height: 1.65;
    box-shadow: none;
    resize: vertical;
}

.search-page .query-composer textarea:focus {
    outline: 0;
    box-shadow: none;
}

.search-page .query-composer textarea::placeholder {
    color: var(--search-muted);
}

.search-page .unified-filter-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.25fr 1.25fr 1fr;
    gap: 12px;
    border-top: 1px solid #edf0ef;
    padding: 14px 16px;
    background: #fff;
}

.search-page .filter-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.search-page .filter-field label {
    color: #4e5c64;
    font-size: 12px;
    font-weight: 650;
}

.search-page .filter-field select {
    width: 100%;
    min-height: 42px;
    border-color: var(--search-line-strong);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.search-page .filter-field select[multiple] {
    min-height: 104px;
    padding: 5px;
}

.search-page .filter-field select[multiple] option {
    border-radius: 5px;
    padding: 5px 7px;
}

.search-page .management-domain-field {
    border-left: 1px dashed var(--search-line-strong);
    padding-left: 12px;
}

.search-page .search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    border-top: 1px solid #edf0ef;
    padding: 10px 11px 10px 16px;
    background: #fafbfb;
}

.search-page .search-hint {
    color: var(--search-faint);
    font-size: 12px;
}

.search-page .search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-page .result-limit {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--search-muted);
    font-size: 12px;
    white-space: nowrap;
}

.search-page .result-limit label {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
}

.search-page .result-limit input {
    width: 54px;
    min-height: 40px;
    border-color: var(--search-line-strong);
    border-radius: 8px;
    padding: 7px 5px;
    background: #fff;
    text-align: center;
}

.search-page .result-limit select {
    width: auto;
    min-width: 110px;
    min-height: 40px;
    border-color: var(--search-line-strong);
    border-radius: 8px;
    padding: 7px 30px 7px 10px;
    background: #fff;
}

.search-page input:focus,
.search-page select:focus {
    outline: 2px solid var(--search-brand-strong);
    outline-offset: 1px;
    border-color: var(--search-brand);
}

.search-page button:focus-visible,
.search-page a:focus-visible,
.search-page summary:focus-visible {
    outline: 2px solid var(--search-brand-strong);
    outline-offset: 3px;
}

.search-page .search-button {
    gap: 9px;
    min-width: 112px;
    min-height: 42px;
    border-radius: 8px;
    padding: 9px 18px;
    background: var(--search-brand);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.search-page .search-button:hover {
    background: var(--search-brand-strong);
}

.search-page .search-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-page .search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.search-page .knowledge-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 22px;
    border-top: 1px solid var(--search-line);
}

.search-page .metric {
    min-width: 0;
    padding: 17px 15px 18px;
    border-right: 1px solid var(--search-line);
}

.search-page .metric:first-child {
    padding-left: 0;
}

.search-page .metric:last-child {
    border-right: 0;
}

.search-page .metric strong,
.search-page .metric span {
    display: block;
}

.search-page .metric strong {
    color: #2c3b43;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.2;
}

.search-page .metric span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--search-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-page .warning-metric strong {
    color: var(--search-warning);
}

.search-page .results-panel {
    overflow: hidden;
    padding: 0;
}

.search-page .results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-bottom: 1px solid var(--search-line);
    padding: 19px 24px;
}

.search-page .results-head h2 {
    margin: 0;
    color: var(--search-ink);
    font-size: 18px;
    font-weight: 720;
}

.search-page .result-count,
.search-page .ready-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f0f3f2;
    color: #59666d;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.search-page .empty-state {
    display: grid;
    min-height: 190px;
    padding: 34px 20px;
    place-items: center;
    align-content: center;
    color: var(--search-muted);
    text-align: center;
}

.search-page .empty-state strong {
    margin-top: 13px;
    color: #3a4850;
    font-size: 14px;
}

.search-page .empty-state p {
    margin: 4px 0 0;
    font-size: 13px;
}

.search-page .empty-visual {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #dae2e0;
    border-radius: 12px;
    background: #f6f9f8;
}

.search-page .empty-visual::before {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 14px;
    height: 14px;
    border: 2px solid #8aa39f;
    border-radius: 50%;
    content: "";
}

.search-page .empty-visual::after {
    position: absolute;
    top: 27px;
    left: 25px;
    width: 8px;
    height: 2px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: #8aa39f;
    content: "";
}

.search-page .assistant-result {
    display: grid;
    gap: 16px;
    padding: 22px 24px 26px;
}

.search-page .assistant-summary,
.search-page .answer-card,
.search-page .source-section,
.search-page .candidate-section {
    border: 1px solid var(--search-line);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.search-page .scene-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-page .reason-codes {
    margin: 10px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .answer-card {
    border-left: 3px solid var(--search-brand);
    background: #f4faf8;
}

.search-page .answer-card pre,
.search-page .answer-card p {
    margin: 0;
    color: #173d39;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.search-page .answer-card.follow-up {
    border-left-color: #d69a34;
    background: #fffaf0;
}

.search-page .active-version-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .active-version-list span,
.search-page .candidate-list span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #eff5f3;
    color: var(--search-brand-strong);
}

.search-page .source-section h3,
.search-page .candidate-section h3 {
    margin: 0 0 12px;
    color: var(--search-ink);
    font-size: 14px;
}

.search-page .source-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px dashed var(--search-line);
    padding: 10px 0;
}

.search-page .source-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.search-page .source-card div {
    display: grid;
    gap: 4px;
}

.search-page .source-card span,
.search-page .source-card small {
    color: var(--search-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.search-page .candidate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.search-page .result {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--search-line);
    border-radius: 0;
    padding: 22px 24px;
    background: var(--search-surface);
    transition: background-color 140ms ease;
}

.search-page .result:last-of-type {
    border-bottom: 0;
}

.search-page .result:hover {
    border-color: var(--search-line);
    background: #fbfcfc;
    box-shadow: none;
}

.search-page .result header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    border: 0;
    padding: 0;
}

.search-page .result-heading {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
}

.search-page .result-index {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--search-brand-soft);
    color: var(--search-brand-strong);
    font-size: 11px;
    font-weight: 750;
}

.search-page .result-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.search-page .result-title-line h3 {
    margin: 2px 0 0;
    color: #1b2931;
    font-size: 17px;
    font-weight: 720;
    line-height: 1.4;
}

.search-page .type-badge {
    border: 1px solid #e2e7e6;
    background: #f6f8f8;
    color: #5b686f;
    font-size: 11px;
}

.search-page .keyword-line {
    margin: 5px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .match-score {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    color: var(--search-muted);
}

.search-page .match-score .evidence-badge {
    border: 0;
    background: var(--search-brand-soft);
    color: var(--search-brand-strong);
}

.search-page .match-score small {
    color: var(--search-muted);
    font-size: 11px;
}

.search-page .result-body {
    display: grid;
    gap: 13px;
    margin-left: 42px;
    padding: 15px 0 0;
}

.search-page .knowledge-block,
.search-page .solution-block {
    min-width: 0;
}

.search-page .block-label {
    display: block;
    margin-bottom: 6px;
    color: #5b686f;
    font-size: 12px;
    font-weight: 700;
}

.search-page .result pre {
    max-height: 280px;
    margin: 0;
    overflow: auto;
    border: 0;
    border-radius: 8px;
    padding: 13px 15px;
    background: #f6f8f8;
    color: #2e3c44;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.search-page .result pre.answer {
    max-height: none;
    border: 0;
    border-left: 3px solid var(--search-brand);
    background: #f1f8f6;
    color: #173d39;
    font-size: 14px;
}

.search-page .no-solution {
    margin: 0;
    border: 1px solid #eadab8;
    border-radius: 8px;
    background: #fff9ed;
    color: #83530e;
    font-size: 13px;
}

.search-page .result-source {
    margin: 13px 0 0 42px;
    border: 0;
    border-top: 1px dashed #e1e6e5;
    padding: 10px 0 0;
    color: var(--search-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.search-page .result-source small {
    margin-right: 7px;
    color: #59666d;
    font-weight: 700;
}

.search-page .management-disclosure {
    overflow: hidden;
}

.search-page .management-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    margin: 0;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.search-page .management-heading::-webkit-details-marker {
    display: none;
}

.search-page .management-copy,
.search-page .management-title,
.search-page .management-description {
    display: block;
}

.search-page .management-title {
    margin: 0;
    color: var(--search-ink);
    font-size: 17px;
    font-weight: 700;
}

.search-page .management-description {
    margin: 3px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .management-summary-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-page .disclosure-icon {
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    border-right: 2px solid #7b878d;
    border-bottom: 2px solid #7b878d;
    transition: transform 150ms ease;
}

.search-page .management-disclosure[open] .disclosure-icon {
    transform: rotate(225deg);
}

.search-page .management-panel {
    border: 0;
    border-top: 1px solid var(--search-line);
    border-radius: 0;
    padding: 0 22px 20px;
    box-shadow: none;
}

.search-page .compact-empty {
    min-height: 150px;
}

.search-page .ready-empty::before {
    top: 12px;
    left: 13px;
    width: 17px;
    height: 20px;
    border: 1.5px solid #8aa39f;
    border-radius: 3px;
}

.search-page .ready-empty::after {
    top: 18px;
    left: 18px;
    width: 8px;
    height: 1.5px;
    transform: none;
    background: #8aa39f;
    box-shadow: 0 5px 0 #8aa39f, 0 10px 0 #8aa39f;
}

.search-page .ready-index {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--search-line);
    border-radius: 0;
    padding: 20px 0;
}

.search-page .ready-index:last-child {
    border-bottom: 0;
}

.search-page .ready-index header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.search-page .ready-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.search-page .version-mark {
    display: grid;
    min-width: 46px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--search-brand-soft);
    color: var(--search-brand-strong);
    font-size: 13px;
    font-weight: 750;
}

.search-page .ready-title strong,
.search-page .ready-title small {
    display: block;
}

.search-page .ready-title strong {
    color: #2b3941;
    font-size: 14px;
}

.search-page .ready-title small {
    margin-top: 2px;
    color: var(--search-muted);
    font-size: 11px;
}

.search-page .ready-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f7f9f8;
    color: #647178;
    font-size: 12px;
}

.search-page .warning-text {
    color: var(--search-warning);
}

.search-page .activation-form {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(250px, 1.5fr) minmax(190px, 1fr) auto;
    align-items: end;
    gap: 11px;
    margin-top: 16px;
    border-top: 1px dashed #dfe5e3;
    padding-top: 16px;
}

.search-page .activation-form label {
    margin-bottom: 6px;
    font-size: 12px;
}

.search-page .activation-form input {
    min-height: 42px;
    border-color: var(--search-line-strong);
    border-radius: 8px;
}

.search-page .activation-form button {
    min-height: 42px;
    border-radius: 8px;
    box-shadow: none;
}

.search-page .alert {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 13px;
}

.search-page .alert.success {
    border-color: #bce0d4;
    background: #eff9f5;
}

.search-page .alert.error {
    border-color: #efc5c2;
    background: #fff3f2;
}

.search-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.search-page .search-workspace {
    padding-bottom: 28px;
}

.search-page .conversation-composer {
    border-color: #9abbb5;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(28, 77, 70, 0.06);
}

.search-page .conversation-composer textarea {
    min-height: 148px;
    padding: 20px 22px 12px;
    font-size: 17px;
}

.search-page .composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px 12px 20px;
}

.search-page .conversation-send {
    min-width: 100px;
    border-radius: 12px;
}

.search-page .retrieval-details {
    overflow: hidden;
    border: 1px solid var(--search-line);
    border-radius: 10px;
    background: #fafbfb;
}

.search-page .retrieval-details > summary {
    padding: 12px 15px;
    color: var(--search-muted);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.search-page .retrieval-details-body {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--search-line);
    padding: 14px;
}

.search-page .retrieval-details .assistant-summary {
    border: 0;
    padding: 0;
    background: transparent;
}

.search-page .index-admin-context {
    overflow: hidden;
    padding: 22px 24px 0;
}

.search-page .index-admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.search-page .section-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--search-brand-strong);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.search-page .index-admin-head h2 {
    margin: 0;
    color: var(--search-ink);
    font-size: 18px;
}

.search-page .index-admin-head p {
    margin: 5px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .index-domain-form {
    display: grid;
    min-width: 220px;
    gap: 6px;
}

.search-page .index-domain-form label {
    color: var(--search-muted);
    font-size: 12px;
    font-weight: 650;
}

.search-page .index-domain-form select {
    min-height: 42px;
    border-color: var(--search-line-strong);
    border-radius: 9px;
    background: #fff;
}

.search-page .index-admin-state {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    border-top: 1px solid var(--search-line);
    padding-top: 14px;
    color: var(--search-muted);
    font-size: 12px;
}

.search-page .index-admin-state strong {
    color: #34434b;
}

.search-page .index-admin-context .knowledge-metrics {
    margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .search-page *,
    .search-page *::before,
    .search-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 920px) {
    .search-page .unified-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page .management-domain-field {
        border-left: 0;
        padding-left: 0;
    }

    .search-page .knowledge-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-page .metric:nth-child(3) {
        border-right: 0;
    }

    .search-page .metric:nth-child(-n + 3) {
        border-bottom: 1px solid var(--search-line);
    }

    .search-page .metric:nth-child(4) {
        padding-left: 0;
    }

    .search-page .activation-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page .activation-form button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .search-page .search-topbar {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        min-height: 62px;
        padding: 9px 16px;
    }

    .search-page .brand-lockup h1 {
        font-size: 16px;
    }

    .search-page .brand-lockup p {
        display: none;
    }

    .search-page .header-actions {
        gap: 9px;
    }

    .search-page .index-state {
        gap: 7px;
        padding-right: 9px;
    }

    .search-page .index-state strong {
        display: none;
    }

    .search-page .nav-button {
        min-height: 40px;
        padding: 8px 11px;
    }

    .search-page .search-layout {
        width: calc(100vw - 24px);
        margin: 16px auto 36px;
        gap: 14px;
    }

    .search-page .panel,
    .search-page .management-disclosure {
        border-radius: 12px;
    }

    .search-page .search-workspace {
        padding: 20px 18px 0;
    }

    .search-page .workspace-head h2 {
        font-size: 21px;
    }

    .search-page .query-composer textarea {
        min-height: 108px;
        padding: 15px;
        font-size: 15px;
    }

    .search-page .composer-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 8px 12px 12px;
    }

    .search-page .conversation-send {
        width: 100%;
    }

    .search-page .index-admin-context {
        padding: 18px 18px 0;
    }

    .search-page .index-admin-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .search-page .index-domain-form {
        min-width: 0;
    }

    .search-page .unified-filter-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .search-page .assistant-result {
        padding: 16px 18px 20px;
    }

    .search-page .source-card {
        flex-direction: column;
        gap: 5px;
    }

    .search-page .search-actions {
        padding: 9px;
    }

    .search-page .search-hint {
        display: none;
    }

    .search-page .search-controls {
        width: 100%;
        justify-content: space-between;
    }

    .search-page .result-limit {
        flex: 1;
    }

    .search-page .search-button {
        min-height: 44px;
    }

    .search-page .knowledge-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page .metric,
    .search-page .metric:first-child,
    .search-page .metric:nth-child(4) {
        padding: 13px 11px;
        border-right: 1px solid var(--search-line);
        border-bottom: 1px solid var(--search-line);
    }

    .search-page .metric:nth-child(even) {
        border-right: 0;
    }

    .search-page .metric:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .search-page .metric:nth-child(odd) {
        padding-left: 0;
    }

    .search-page .results-head {
        padding: 16px 18px;
    }

    .search-page .result {
        padding: 18px;
    }

    .search-page .result header {
        flex-direction: column;
        gap: 10px;
    }

    .search-page .match-score {
        align-items: flex-start;
        margin-left: 42px;
    }

    .search-page .result-body,
    .search-page .result-source {
        margin-left: 0;
    }

    .search-page .result-body {
        padding-top: 14px;
    }

    .search-page .management-heading {
        min-height: 68px;
        padding: 14px 18px;
    }

    .search-page .management-panel {
        padding: 0 18px 16px;
    }

    .search-page .activation-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .search-page .brand-lockup {
        padding-left: 9px;
    }

    .search-page .status-indicator {
        font-size: 11px;
    }

    .search-page .nav-button {
        font-size: 12px;
    }

    .search-page .search-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .search-page .result-limit {
        min-height: 38px;
    }

    .search-page .search-button {
        width: 100%;
    }

    .search-page .result-title-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .search-page .match-score {
        align-items: flex-start;
        margin-left: 0;
    }

    .search-page .management-description {
        display: none;
    }
}

/* OneOS knowledge workspace ------------------------------------------------ */
.app-body {
    --ink: #172321;
    --ink-soft: #566562;
    --canvas: #f3f5f2;
    --card: #ffffff;
    --line: #dfe6e2;
    --line-strong: #c9d5d0;
    --accent: #0c7567;
    --accent-strong: #075e54;
    --accent-soft: #e6f3f0;
    --nav: #102421;
    --nav-soft: #18332e;
    --danger: #b43b42;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.55;
}

.app-body *, .app-body *::before, .app-body *::after { box-sizing: border-box; }
.app-body a { color: inherit; }
.app-body button, .app-body input, .app-body select, .app-body textarea { font: inherit; }
.app-body button, .app-body a, .app-body summary, .app-body input, .app-body select, .app-body textarea { outline: none; }
.app-body :focus-visible { outline: 3px solid rgba(12, 117, 103, .28); outline-offset: 2px; }

.app-frame { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.app-sidebar {
    position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px;
    display: flex; flex-direction: column; background: var(--nav); color: #d8e4e1;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 25px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e6f3f0; color: var(--accent-strong); font-weight: 800; }
.brand strong, .brand small, .operator-chip strong, .operator-chip small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { color: #fff; font-size: 16px; letter-spacing: .02em; }
.brand small { color: #8fa8a2; font-size: 12px; }
.side-nav { display: grid; gap: 5px; }
.side-nav p { margin: 18px 12px 6px; color: #66827b; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.side-nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 11px; color: #abc0bb; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .16s ease, color .16s ease; }
.side-nav a span { width: 20px; color: #6f958c; text-align: center; }
.side-nav a:hover { background: rgba(255,255,255,.055); color: #fff; }
.side-nav a.active { background: var(--nav-soft); color: #fff; box-shadow: inset 3px 0 0 #60c4b1; }
.side-nav a.active span { color: #75d0bf; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 12px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot strong { color: #c9d8d5; font-size: 12px; }.sidebar-foot small { color: #6f8b84; font-size: 11px; }
.system-dot, .safe-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4ec0a8; box-shadow: 0 0 0 4px rgba(78,192,168,.12); }

.app-main { min-width: 0; }
.app-header { min-height: 88px; padding: 20px clamp(24px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.app-header h1 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.025em; }
.app-header p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; }
.operator-chip { display: flex; align-items: center; gap: 10px; padding: 6px 11px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.operator-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; }
.operator-chip strong { font-size: 12px; }.operator-chip small { color: var(--ink-soft); font-size: 10px; }

.page-content { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 64px; display: grid; gap: 22px; }
.upload-card, .content-card, .app-body .panel { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 9px 30px rgba(28, 54, 48, .045); }
.upload-card { overflow: hidden; }
.section-intro { padding: 30px 34px 22px; border-bottom: 1px solid #edf1ef; }
.eyebrow, .app-body .section-eyebrow { display: block; margin-bottom: 5px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-intro h2, .section-head h2 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.015em; }
.section-intro p { max-width: 720px; margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.upload-form { padding: 24px 34px 28px; }
.drop-zone { min-height: 220px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1.5px dashed #9ebdb5; border-radius: 15px; background: #f8fbfa; cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.upload-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 25px; font-weight: 300; }
.drop-zone strong { font-size: 17px; }.drop-zone > span:not(.upload-symbol) { color: var(--ink-soft); font-size: 13px; }
.drop-zone small { margin-top: 7px; color: #7c8a87; font-size: 11px; }.drop-zone em { min-height: 22px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--accent-strong); font-size: 12px; font-style: normal; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.advanced-settings { margin-top: 17px; border-top: 1px solid #edf1ef; }
.advanced-settings summary { min-height: 48px; display: flex; align-items: center; gap: 8px; color: #40514d; cursor: pointer; font-size: 13px; font-weight: 700; }
.advanced-settings summary span { padding: 2px 7px; border-radius: 999px; background: #eef3f1; color: #73827f; font-size: 10px; }
.advanced-settings > p { margin: 0 0 14px; color: var(--ink-soft); font-size: 12px; }
.field-grid { display: grid; gap: 14px; }.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-body label { color: #42524f; font-size: 12px; font-weight: 700; }
.app-body input:not([type="file"]), .app-body select, .app-body textarea { width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.app-body textarea { min-height: 100px; resize: vertical; }
.app-body input:focus, .app-body select:focus, .app-body textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12,117,103,.1); }
.upload-actions { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.upload-actions p { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.primary-action, .app-body button:not(.secondary):not(.danger) { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 750; box-shadow: 0 7px 18px rgba(12,117,103,.16); }
.primary-action:hover, .app-body button:not(.secondary):not(.danger):hover { background: var(--accent-strong); }
.content-card { padding: 26px 28px; }.section-head { margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.draft-version-state, .draft-actions { display: flex; align-items: center; gap: 10px; }.draft-version-state > span:first-child { color: var(--muted); font-size: 13px; font-weight: 700; }.system-owned-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr); gap: 12px; margin: 18px 0; }.system-owned-fields > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft, #f6f9f8); }.system-owned-fields span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }.draft-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.draft-fields-grid label, .review-action-form label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }.draft-fields-grid input, .review-action-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); box-sizing: border-box; }.draft-fields-grid input:focus, .review-action-form input:focus { border-color: var(--primary); outline: 3px solid rgba(17, 126, 105, .12); }.draft-fields-grid .wide-field { grid-column: 1 / -1; }.cylinder-editor { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(242, 248, 246, .6); }.cylinder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.cylinder-head h3 { margin: 0; font-size: 16px; }.cylinder-head span { color: var(--muted); font-size: 12px; }.draft-actions { justify-content: flex-end; margin-top: 18px; }.draft-warning-list { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff8e8; color: #765b16; }.draft-warning-list ul { margin: 8px 0 0; padding-left: 20px; }.review-action-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 18px; }.review-panel, .review-complete-state { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft, #f6f9f8); }.review-panel > p, .review-complete-state p { margin: 0; color: var(--muted); }.reject-form { margin-top: 12px; }.vehicle-draft-card { overflow: hidden; }
.batch-record-list { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf9; }.batch-record-list > h3 { margin: 0 0 12px; font-size: 15px; }.batch-record-list details { border-top: 1px solid #e5ece9; }.batch-record-list details:first-of-type { border-top: 0; }.batch-record-list summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; cursor: pointer; color: var(--text); }.batch-record-list summary span { color: var(--muted); font-size: 12px; }.batch-record-list details > .draft-fields-grid, .batch-record-list details > ul { margin: 0 4px 12px; }.batch-record-list details p { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; }.batch-record-list details p span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }.batch-record-list details ul { padding-left: 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.count-pill { padding: 5px 10px; border-radius: 999px; background: #eef3f1; color: #60706c; font-size: 11px; font-weight: 700; }
.asset-list { display: grid; }.asset-row { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 24px; align-items: center; gap: 14px; padding: 10px 8px; border-top: 1px solid #edf1ef; text-decoration: none; }
.asset-row:hover { background: #f8faf9; }.file-icon { display: grid; place-items: center; width: 38px; height: 42px; border: 1px solid #c9ddd7; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 9px; font-weight: 800; }
.asset-main strong, .asset-main small { display: block; }.asset-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.asset-main small { margin-top: 3px; color: #7a8885; font-size: 11px; }
.row-arrow { color: #8ea09b; }.status-badge, .app-body .badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: #eef2f1; color: #5d6d69; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-badge.COMPLETED, .status-badge.APPLIED, .app-body .badge.COMPLETED { background: #e7f5ee; color: #247553; }.status-badge.PROCESSING, .status-badge.RUNNING { background: #e9f1f8; color: #32688f; }.status-badge.FAILED, .app-body .badge.FAILED { background: #fbeaec; color: #a3373d; }
.empty-state { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); text-align: center; }.empty-state > span { color: #83a49c; font-size: 28px; }.empty-state strong { margin-top: 8px; color: var(--ink); }.empty-state p { margin: 5px 0 0; font-size: 12px; }.empty-state.compact { min-height: 150px; }
.alert { padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; }.alert.success { background: #eaf6f1; border-color: #b9dfd1; color: #1e6a4f; }.alert.error { background: #fff0f1; border-color: #f1c5c8; color: #99353b; }.alert.warning { background: #fff8e8; border-color: #ead6a5; color: #72571a; }

.back-link { width: fit-content; color: var(--accent-strong); text-decoration: none; font-size: 13px; font-weight: 700; }.progress-card { padding-bottom: 20px; }
.progress-steps { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }.progress-steps li { position: relative; min-width: 0; padding: 0 14px 0 40px; display: grid; }
.progress-steps li::before { content: ""; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: #e0e7e4; }.progress-steps li:first-child::before { left: 20px; width: calc(100% - 20px); }.progress-steps li > span { position: absolute; z-index: 1; top: 0; left: 7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8eeec; color: #72817d; font-size: 11px; font-weight: 800; }
.progress-steps li.done::before { background: #8dcabd; }.progress-steps li.done > span { background: var(--accent); color: #fff; }.progress-steps li.active > span { background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.progress-steps strong { font-size: 12px; }.progress-steps small { margin-top: 2px; color: #7e8c88; font-size: 10px; }.live-status { margin: 25px 0 0; padding-top: 14px; border-top: 1px solid #edf1ef; color: var(--ink-soft); font-size: 12px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.classification-result { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; }.confidence-ring { display: grid; place-items: center; width: 72px; height: 72px; border: 7px solid #bce0d7; border-top-color: var(--accent); border-radius: 50%; color: var(--accent-strong); font-size: 16px; font-weight: 800; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }.recovery-actions form { margin: 0; }.secondary-action, .danger-action { min-height: 40px; border-radius: 10px; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer; }.secondary-action { border: 1px solid var(--border); background: #fff; color: var(--ink); }.danger-action { border: 1px solid #f1b8b8; background: #fff5f5; color: #a22b2b; }
.classification-result p { margin: 5px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }.classification-result p span { color: var(--ink-soft); }.classification-result ul { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px 12px 12px 30px; border-radius: 10px; background: #f6f9f8; color: #52625e; font-size: 12px; }
.confirmation-form { display: grid; gap: 13px; }.confirmation-form button { margin-top: 4px; }.resolved-state { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.resolved-state > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e3f4ed; color: #21805a; font-size: 22px; }.resolved-state strong { margin-top: 10px; }.resolved-state p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.content-section { padding: 18px 0; border-top: 1px solid #edf1ef; }.content-section h3 { margin: 0 0 8px; font-size: 14px; }.content-section p { margin: 0; color: #4b5a57; font-size: 13px; white-space: pre-wrap; }

.app-body .panel { padding: 26px 28px; }.app-body .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }.app-body table { width: 100%; border-collapse: collapse; background: #fff; }.app-body th { padding: 11px 13px; background: #f5f8f7; color: #667671; font-size: 11px; text-align: left; white-space: nowrap; }.app-body td { padding: 13px; border-top: 1px solid #e8eeeb; color: #42514e; font-size: 12px; vertical-align: top; }.app-body pre { margin: 0; white-space: pre-wrap; font: inherit; }
.app-body .button.secondary { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: #40514d; text-decoration: none; font-size: 12px; font-weight: 700; }.app-body button.danger { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--danger); color: #fff; font-weight: 750; }
.app-body .search-workspace, .app-body .results-panel { width: auto; max-width: none; margin: 0; }.app-body .search-workspace { background: #fff; }.app-body .query-composer { border-color: var(--line-strong); box-shadow: none; }.app-body .answer-card { border-color: var(--line); background: #fbfcfb; }.app-body .source-card { border-color: var(--line); }.app-body .answer { color: var(--ink); font-family: inherit; line-height: 1.75; }
.app-body .source-card { color: inherit; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.app-body .source-card:hover { border-color: #9fc5bc; background: #f7fbfa; transform: translateY(-1px); }
.app-body .assistant-summary { margin-top: 18px; }
.answer-feedback { margin-top: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.answer-feedback > span { margin-right: auto; color: #40514d; font-size: 13px; font-weight: 700; }
.feedback-actions { display: flex; gap: 8px; }
.app-body .feedback-actions button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line-strong); background: #fff; color: #465651; box-shadow: none; font-size: 12px; }
.app-body .feedback-actions button:hover, .app-body .feedback-actions button.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.feedback-status { min-width: 150px; margin: 0; color: var(--ink-soft); font-size: 11px; }

@media (max-width: 900px) {
    .app-frame { grid-template-columns: 76px minmax(0, 1fr); }.app-sidebar { padding-inline: 10px; }.brand { justify-content: center; padding-inline: 0; }.brand > span:last-child, .side-nav p, .side-nav a:not(.active) > span + *, .sidebar-foot span:last-child { display: none; }.side-nav a { justify-content: center; padding: 0; font-size: 0; }.side-nav a span { font-size: 15px; }.sidebar-foot { justify-content: center; }.page-content { width: min(100% - 34px, 1040px); }.detail-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .app-frame { display: block; padding-bottom: 66px; }.app-sidebar { position: fixed; z-index: 30; top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 64px; padding: 7px 10px; display: block; border-top: 1px solid rgba(255,255,255,.1); }.brand, .side-nav p, .sidebar-foot { display: none; }.side-nav { height: 100%; grid-template-columns: repeat(4, 1fr); gap: 4px; }.side-nav a { min-height: 50px; flex-direction: column; gap: 1px; border-radius: 9px; font-size: 9px; }.side-nav a span { font-size: 15px; }.side-nav a.active { box-shadow: inset 0 3px 0 #60c4b1; }.app-header { min-height: 78px; padding: 16px 18px; }.app-header p { max-width: 260px; }.operator-chip { display: none; }.page-content { width: calc(100% - 24px); padding-top: 18px; }.section-intro, .upload-form, .content-card, .app-body .panel { padding: 20px; }.drop-zone { min-height: 190px; }.two-columns, .detail-columns, .draft-fields-grid, .system-owned-fields, .review-action-form { grid-template-columns: 1fr; }.upload-actions { align-items: stretch; flex-direction: column; }.upload-actions button { width: 100%; }.progress-steps { grid-template-columns: 1fr; gap: 15px; }.progress-steps li { min-height: 42px; }.progress-steps li::before { top: 20px; left: 21px !important; width: 2px !important; height: calc(100% + 15px); }.progress-steps li:last-child::before { display: none; }.asset-row { grid-template-columns: 38px minmax(0,1fr) auto; }.asset-row .status-badge { grid-column: 2; width: fit-content; }.row-arrow { display: none; }.answer-feedback { align-items: stretch; flex-direction: column; }.feedback-actions button { flex: 1; }.feedback-status { min-width: 0; }.cylinder-head { align-items: flex-start; flex-direction: column; }.draft-actions button, .review-action-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .app-body *, .app-body *::before, .app-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.navigation-choice-section {
    margin-top: 16px;
}

.navigation-choice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.navigation-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line, #dbe5e1);
    border-radius: 12px;
    background: #f7faf9;
}

.navigation-choice strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: #087f71;
}
