:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8faf9;
    --line: #dde5e1;
    --text: #172026;
    --muted: #62716b;
    --brand: #176b5b;
    --brand-strong: #0f5144;
    --blue: #286fb4;
    --amber: #b67822;
    --red: #b84a4a;
    --shadow: 0 16px 40px rgba(23, 32, 38, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

[v-cloak] {
    display: none;
}

#app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: #101820;
    color: #f5f7f8;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e5f4ed;
    color: var(--brand-strong);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #91a29b;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-item {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: #cbd7d3;
    background: transparent;
    border: 0;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: #1f2d35;
    color: #ffffff;
}

.disabled-link {
    opacity: 0.55;
}

.nav-index {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #b9c7c3;
}

.nav-item.active .nav-index {
    background: #e5f4ed;
    color: var(--brand-strong);
    font-weight: 800;
}

.side-tool-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    width: fit-content;
    border-radius: 8px;
    padding: 0 10px;
    color: #91a29b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.side-tool-link:hover,
.side-tool-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.side-status {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.side-author {
    margin-top: auto;
    display: grid;
    gap: 4px;
    color: #dce7e4;
}

.side-author span {
    color: #91a29b;
    font-size: 12px;
}

.side-author strong {
    font-size: 14px;
}

.side-author + .side-status {
    margin-top: 0;
}

.status-label {
    font-size: 12px;
    color: #91a29b;
    margin-bottom: 8px;
}

.status-value {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}

.main-shell {
    min-width: 0;
    padding: 28px;
}

.topbar {
    min-height: 68px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.topbar > * {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

p {
    margin: 0;
    line-height: 1.65;
}

.top-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.primary-button,
.ghost-button {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.compact-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
    width: auto;
}

.primary-button {
    background: var(--brand);
    color: #ffffff;
}

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

.ghost-button {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
}

.primary-button:disabled,
.ghost-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.full {
    width: 100%;
}

.notice {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.notice.error {
    border-color: #ecc7c7;
    color: #8f3131;
    background: #fff6f6;
}

.notice.success {
    border-color: #b9dfcf;
    color: #0f5144;
    background: #f1fbf6;
}

.notice.info {
    border-color: #c9dfef;
    color: #244b68;
    background: #f2f8fc;
}

.product-scope strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.product-scope span {
    display: block;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.compact-notice {
    margin: 12px 0 0;
    font-size: 13px;
}

.workspace-grid,
.content-grid,
.ops-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.interview-layout,
.assistant-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}

.wide-panel {
    grid-column: 1 / -1;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-header p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.jd-panel-header {
    display: block;
    margin-bottom: 6px;
}

.jd-panel-title {
    min-width: 0;
}

.jd-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 28px;
    border-radius: 8px;
    padding: 0 10px;
    background: #edf5f1;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 800;
}

.upload-panel {
    min-height: 360px;
}

.hero-panel {
    min-height: 360px;
}

.upload-panel.dragover {
    border-color: var(--brand);
    background: #f8fcfa;
}

.dropzone {
    height: 188px;
    border: 1px dashed #9fb2ab;
    border-radius: 8px;
    background: var(--surface-soft);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    text-align: center;
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-title {
    max-width: min(420px, 80vw);
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.drop-meta {
    color: var(--muted);
    font-size: 13px;
}

.outcome-panel {
    min-height: 360px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.kpi {
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface-soft);
}

.kpi span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.kpi strong {
    font-size: 28px;
}

.timeline {
    display: grid;
    gap: 10px;
}

.home-actions {
    margin-top: 18px;
}

.next-step-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.next-step-strip article {
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.next-step-strip span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.next-step-strip strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

.timeline-item {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--muted);
    background: #ffffff;
}

.timeline-item.done {
    color: var(--brand-strong);
    border-color: #b9dfcf;
    background: #f1fbf6;
    font-weight: 800;
}

.score-panel {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.score-ring {
    --score: 0;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    justify-items: center;
    background:
        radial-gradient(circle at center, #ffffff 58%, transparent 59%),
        conic-gradient(var(--brand) calc(var(--score) * 1%), #e4ebe8 0);
}

.score-ring strong {
    font-size: 32px;
    line-height: 1;
}

.score-ring span {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    max-width: 96px;
    text-align: center;
}

.summary-text {
    margin: 10px 0 16px;
    color: #33413b;
    overflow-wrap: anywhere;
}

.score-bars {
    display: grid;
    gap: 12px;
}

.score-row {
    display: grid;
    grid-template-columns: 92px minmax(120px, 1fr) 44px;
    gap: 12px;
    align-items: center;
    min-height: 28px;
}

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

.score-row strong {
    text-align: right;
}

.bar-track {
    height: 8px;
    border-radius: 999px;
    background: #e4ebe8;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--blue);
}

.bar-fill.danger {
    background: var(--red);
}

.list-panel {
    min-height: 260px;
}

.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.clean-list li {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface-soft);
    overflow-wrap: anywhere;
}

.compact-clean-list li {
    min-height: auto;
}

.muted {
    color: var(--muted);
}

.voice-summary-panel {
    background: #fbfdfc;
}

.voice-summary-grid {
    display: grid;
    grid-template-columns: 150px 150px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.voice-summary-stat,
.voice-summary-script {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface-soft);
}

.voice-summary-stat span,
.voice-summary-script span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.voice-summary-stat strong {
    font-size: 28px;
}

.voice-summary-script p {
    margin: 0;
    line-height: 1.7;
    color: #33413b;
}

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

.voice-summary-columns h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.suggestion-list,
.feedback-list,
.failure-list {
    display: grid;
    gap: 12px;
}

.suggestion,
.feedback-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface-soft);
    overflow-wrap: anywhere;
}

.feedback-item {
    display: grid;
    gap: 12px;
}

.feedback-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.feedback-section span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.feedback-section p {
    margin: 0;
    line-height: 1.7;
    color: #33413b;
    white-space: pre-wrap;
}

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

.answer-section {
    background: #f7fbff;
    border-color: #c9dfef;
}

.follow-up-section {
    background: #fff8e5;
    border-color: #ead69b;
}

.reference-section {
    background: #f3faf7;
    border-color: #c9e5dc;
}

.key-point-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #33413b;
    line-height: 1.7;
}

.suggestion div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.priority {
    min-width: 30px;
    min-height: 24px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: var(--blue);
}

.priority.high {
    background: var(--red);
}

.priority.medium {
    background: var(--amber);
}

.priority.low {
    background: var(--brand);
}

.jd-input {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    outline: none;
    background: #ffffff;
    color: var(--text);
}

.upload-jd-input {
    min-height: 188px;
}

.field-help {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.jd-input:focus,
.question-panel textarea:focus,
.chat-input textarea:focus,
.filter-grid input:focus,
.filter-grid select:focus,
.number-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.12);
}

.compact-table,
.log-table {
    display: grid;
    gap: 0;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.metric-list {
    display: grid;
    gap: 12px;
}

#app[data-page="ops"] .ops-layout {
    grid-template-columns: 1fr;
}

.ops-health-table {
    display: grid;
    gap: 0;
}

.ops-health-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 1fr) 70px minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(80px, 0.8fr) minmax(170px, 1.2fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.ops-health-row.head {
    min-height: 38px;
    color: var(--muted);
    font-weight: 800;
}

.ops-health-row:last-child {
    border-bottom: 0;
}

.ops-health-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ops-health-row strong {
    display: block;
    font-size: 15px;
}

.ops-health-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.metric-card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.metric-card-main {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.metric-card-main strong,
.metric-card-main span {
    overflow-wrap: anywhere;
}

.metric-card-main span {
    color: var(--muted);
    font-size: 12px;
}

.metric-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
}

.metric-card-stats div {
    min-width: 0;
}

.metric-card-stats dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.metric-card-stats dd {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.panel-footnote {
    margin: 12px 0 0;
    font-size: 12px;
}

.cell-subtext {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    min-width: 0;
}

.table-row p {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 13px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    margin-bottom: 14px;
}

.segmented button {
    min-height: 36px;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
}

.segmented button.active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(23, 32, 38, 0.08);
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.number-input {
    width: 100%;
    min-height: 40px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
}

.interview-tools {
    position: sticky;
    top: 20px;
}

.question-stack {
    display: grid;
    gap: 14px;
}

.question-panel {
    display: grid;
    gap: 12px;
}

.interview-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.interview-progress-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--surface-soft);
}

.interview-progress-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.interview-progress-grid strong {
    font-size: 22px;
}

.interview-tools > .primary-button.full,
.interview-tools > .ghost-button.full {
    margin-bottom: 10px;
}

.question-answer-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
}

.recording-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.question-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.source-badge {
    min-height: 24px;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    background: #edf5f1;
    color: var(--brand-strong);
    font-weight: 800;
}

.source-badge.reference {
    background: #f7f1e8;
    color: #7a4c13;
}

.question-source small {
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.question-panel textarea {
    width: 100%;
    min-height: 136px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    outline: none;
}

.audio-review-box {
    border: 1px solid #c9e5dc;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f3faf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.audio-review-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-strong);
}

.audio-review-box p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.audio-review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.empty-panel {
    min-height: 240px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.assistant-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
}

#app[data-page="assistant"] {
    height: 100vh;
    overflow: hidden;
}

#app[data-page="assistant"] .main-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app[data-page="assistant"] .topbar {
    flex: 0 0 auto;
}

#app[data-page="assistant"] .notice {
    flex: 0 0 auto;
}

#app[data-page="assistant"] .assistant-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#app[data-page="assistant"] .assistant-layout > .panel {
    min-height: 0;
}

.chat-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    overflow: hidden;
}

.message-list {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
    max-height: none;
    scrollbar-gutter: stable;
}

.message {
    max-width: 80%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--surface-soft);
    overflow-wrap: anywhere;
}

.message.user {
    justify-self: end;
    background: #eef6fb;
    border-color: #c9dfef;
}

.message.assistant {
    justify-self: start;
}

.message.system {
    justify-self: center;
    max-width: 92%;
    background: #fff8e5;
    border-color: #ead69b;
    color: #624a00;
}

.message.system .message-role {
    color: #8a6500;
}

.message-role {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.message p {
    white-space: pre-wrap;
}

.empty-chat {
    min-height: 260px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}

.chat-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.quick-prompt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chat-input textarea {
    min-height: 78px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    outline: none;
}

.context-list {
    display: grid;
    gap: 10px;
}

.context-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.context-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.context-list strong {
    overflow-wrap: anywhere;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) 140px 140px;
    gap: 12px;
}

.simple-filter-grid {
    grid-template-columns: minmax(220px, 420px);
}

.filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    outline: none;
    color: var(--text);
    font-weight: 400;
    background: #ffffff;
}

.advanced-box {
    margin-top: 14px;
}

.advanced-box summary {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--brand-strong);
    background: #edf5f1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.advanced-box[open] summary {
    margin-bottom: 14px;
}

.panel.advanced-box {
    box-shadow: none;
    background: #fbfdfc;
}

.panel.advanced-box summary {
    margin: -2px 0;
}

.panel.advanced-box[open] summary {
    margin-bottom: 16px;
}

.advanced-box-body {
    display: grid;
    gap: 14px;
}

.effect-strip {
    display: grid;
    gap: 14px;
}

.effect-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.effect-header p {
    margin: 0;
    color: var(--muted);
}

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

.compact-effect-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.effect-item {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
    display: grid;
    align-content: space-between;
    gap: 8px;
    box-shadow: var(--shadow);
}

.effect-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.effect-item strong {
    font-size: 25px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.effect-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.compact-field {
    min-width: 120px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.compact-field .number-input {
    margin: 4px 0 0;
}

.eval-table {
    display: grid;
    gap: 0;
}

.eval-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 110px 110px 170px 70px 70px 90px minmax(180px, 1.6fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.eval-row.head {
    color: var(--muted);
    font-weight: 800;
}

.eval-row span {
    overflow-wrap: anywhere;
}

.log-row {
    display: grid;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.log-row {
    grid-template-columns: 150px minmax(120px, 1fr) 58px 70px minmax(160px, 1fr);
}

.log-row.model-call-row {
    grid-template-columns: 140px minmax(118px, 1fr) minmax(86px, 0.7fr) 58px minmax(170px, 1.15fr) minmax(190px, 1.1fr) minmax(190px, 1.05fr);
}

.log-row.structured-row {
    grid-template-columns: 150px minmax(120px, 0.8fr) 80px minmax(190px, 1fr) minmax(260px, 1.8fr);
}

.log-row.query-rewrite-row {
    grid-template-columns: 150px 70px minmax(180px, 0.8fr) minmax(320px, 2fr);
}

.log-row.head {
    color: var(--muted);
    font-weight: 800;
}

.log-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.help-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    cursor: help;
}

.failure-list article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.failure-summary-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.failure-summary-list article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface-soft);
}

.failure-summary-list strong {
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.failure-summary-list span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.failure-reason-text {
    min-height: 44px;
    margin-bottom: 10px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.failure-list strong {
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.failure-list p {
    margin-bottom: 10px;
    font-size: 13px;
}

.failure-list span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.empty-line {
    padding: 18px 0;
}

.ok-text {
    color: var(--brand-strong);
    font-weight: 800;
}

.bad-text {
    color: var(--red);
    font-weight: 800;
}

.warn-text {
    color: #9a6700;
    font-weight: 800;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
    #app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 14px;
    }

    .nav-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .side-status {
        display: none;
    }

    .side-author {
        margin-top: 0;
        padding: 0 8px;
    }

    #app[data-page="assistant"] {
        height: auto;
        overflow: visible;
    }

    #app[data-page="assistant"] .main-shell {
        height: auto;
        display: block;
        overflow: visible;
    }

    #app[data-page="assistant"] .assistant-layout {
        overflow: visible;
    }

    #app[data-page="assistant"] .chat-panel {
        height: auto;
        min-height: 640px;
        overflow: visible;
    }

    #app[data-page="assistant"] .message-list {
        max-height: min(52vh, 520px);
    }

    .main-shell {
        padding: 18px;
    }

    .content-grid,
    .workspace-grid,
    .ops-layout,
    .assistant-layout,
    .interview-layout {
        grid-template-columns: 1fr;
    }

    .effect-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-effect-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .interview-tools {
        position: static;
    }
}

@media (max-width: 720px) {
    .topbar,
    .panel-header,
    .top-actions,
    .inline-actions,
    .chat-input {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    h1 {
        font-size: 23px;
    }

    .score-panel {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .kpi-grid,
    .effect-grid,
    .filter-grid,
    .next-step-strip,
    .feedback-grid,
    .voice-summary-grid,
    .voice-summary-columns {
        grid-template-columns: 1fr;
    }

    .metric-row,
    .log-row,
    .eval-row,
    .ops-health-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }

    .metric-row.head,
    .log-row.head,
    .eval-row.head,
    .ops-health-row.head {
        display: none;
    }

    .message {
        max-width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .audio-review-box {
        display: grid;
        grid-template-columns: 1fr;
    }

    .score-row {
        grid-template-columns: 76px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .failure-summary-list {
        grid-template-columns: 1fr;
    }
}
