﻿@charset "UTF-8";
/* ===== 红旗一号 — 视觉对齐 OS 5.0 / 哨兵A（白底侧栏 + 青绿主色 + 黑体） ===== */
@font-face {
    font-family: 'SimHei';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/simhei.ttf') format('truetype');
}
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('fonts/material-icons.woff2') format('woff2');
}

:root {
    --ws-teal: #004b4d;
    --ws-teal-dark: #003a3c;
    --ws-teal-soft: #e8f4f4;
    --ws-ink: #1F2933;
    --ws-muted: #5a6b7a;
    --ws-line: #d9e2ec;
    --ws-bg: #f4f7f9;
    --ws-card: #FFFFFF;
    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-base: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 24px;
    --fs-kpi: 28px;
    --font: "SimHei", "黑体", "Heiti SC", "STHeiti", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    --md-primary: var(--ws-teal);
    --md-primary-dark: var(--ws-teal-dark);
    --md-primary-light: var(--ws-teal-soft);
    --md-red: #C81E1E;
    --md-green: #1E8E5A;
    --md-yellow: #C96E28;
    --md-orange: #C96E28;
    --md-bg: var(--ws-bg);
    --md-surface: var(--ws-card);
    --md-sidebar: #FFFFFF;
    --md-text: var(--ws-ink);
    --md-text-secondary: var(--ws-muted);
    --md-text-muted: #8291A0;
    --md-border: var(--ws-line);
    --md-divider: var(--ws-line);
    --md-shadow: none;
    --md-shadow-hover: none;
    --md-radius: 0;
    --md-radius-sm: 0;
    --sidebar-width: 240px;
    --transition: 0.15s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    font-synthesis: none;
    background: var(--ws-bg);
    color: var(--md-text);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.menu-item, .menu-group-hdr, .logo-text, .section-header h1, .card h3, .btn, table, th, td, label, p, span, div {
    font-family: var(--font);
}
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.menu-icon.material-icons {
    font-size: 20px;
    width: 22px;
    height: 22px;
    overflow: hidden;
}
.app-container { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--ws-line);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
}
.sidebar-header { position: relative; }
.sidebar-brand {
    background: var(--ws-teal);
    color: #fff;
    padding: 18px 16px 16px;
}
.sidebar-brand-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}
.sidebar-brand-sub {
    font-size: var(--fs-sm);
    font-weight: 400;
    opacity: 0.92;
    margin-top: 4px;
    line-height: 1.4;
}
.sidebar-header .sidebar-toggle {
    position: absolute;
    top: 12px;
    right: 8px;
    color: #fff;
}
.sidebar-meta {
    display: none;
}
.version-tag, .status-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 0;
    background: var(--ws-teal-soft);
    color: var(--ws-teal);
    border: 1px solid var(--ws-line);
}
.status-tag.ok { background: #E6F6EE; color: var(--md-green); }
.status-tag.err { background: #FDECEC; color: var(--md-red); }
.logo-icon {
    width: 32px; height: 32px;
    background: var(--ws-teal-soft);
    color: var(--ws-teal);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(10,85,99,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.logo-text { font-size: 15px; font-weight: 700; color: var(--ws-teal); letter-spacing: 0.5px; }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--md-text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}
.sidebar-toggle:hover { background: var(--md-divider); }
.sidebar-menu { flex: 1; padding: 8px 0 16px; overflow-y: auto; }
.sidebar .menu-icon { display: none; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    color: var(--ws-ink);
    font-size: var(--fs-base);
    font-weight: 400;
    transition: background var(--transition), color var(--transition);
    margin-right: 0;
    position: relative;
    border-left: 4px solid transparent;
}
.menu-item:hover { background: #eef4f6; color: var(--ws-teal); }
.menu-item.active {
    background: #eef4f6;
    color: var(--ws-teal);
    font-weight: 600;
    border-left-color: var(--ws-teal);
}
.menu-label { font-size: var(--fs-base); line-height: 1.5; }
.sidebar-footer { display: none; }
.auth-panel { display: none !important; }
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 24px 28px;
    min-height: 100vh;
    max-width: none;
    background: var(--ws-bg);
}
.main-content h2,
.main-content h3 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--ws-teal);
    margin: 16px 0 8px;
}
.main-content .data-table,
.main-content table {
    font-size: var(--fs-base);
}
.main-content .text-muted {
    font-size: var(--fs-sm);
    color: var(--ws-muted);
}
.section { display: none; }
.section.active { display: block; }
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ws-line);
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h1 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--ws-teal);
    letter-spacing: 0;
    line-height: 1.3;
}
.section-header .page-sub,
.section-subtitle {
    font-size: var(--fs-sm);
    color: var(--ws-muted);
    font-weight: 400;
    margin-top: 4px;
    width: 100%;
}
.section-header + .ov-banner,
.section-header + .dashboard-grid,
.section-header + .card {
    margin-top: 16px;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--ws-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: var(--fs-base); font-weight: 700; color: var(--ws-teal); }
.card-body { padding: 16px 18px; }
.card-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px;
}
.card-wide { grid-column: 1 / -1; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.card {
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 0;
    overflow: hidden;
    transition: border-color var(--transition);
    box-shadow: none;
}
.card:hover { border-color: var(--ws-teal); box-shadow: none; }
.stat-card {
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 0;
    padding: 16px 18px;
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--ws-teal); box-shadow: none; }
.attention-box {
    background: var(--ws-teal-soft);
    border-left: 4px solid var(--ws-teal);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0;
}
.attention-box h3, .attention-box h4 { color: var(--ws-teal-dark); margin-bottom: 8px; }
.resilience-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.cro-subtabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.appetite-edit input { width: 72px; padding: 4px 6px; }
.appetite-edit select.form-select-sm { width: auto; min-width: 64px; padding: 4px 6px; font-size: 13px; }
.form-input-sm { width: auto; padding: 4px 6px; font-size: 13px; }
.treatment-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.reminder-summary { margin-bottom: 12px; padding: 10px 14px; background: #fff8e6; border-left: 4px solid #f59e0b; border-radius: 4px; }
.badge-overdue { color: #991b1b; font-weight: 600; margin-right: 12px; }
.badge-due-soon { color: #b45309; font-weight: 600; margin-right: 12px; }
.badge-pending { color: var(--ws-teal-dark); font-weight: 600; }
.row-due-soon { background: #fffbeb; }
.reminder-box { border-left-color: #f59e0b; }
.sev-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-right: 4px; }
.sev-low { background: #ecfdf5; color: #047857; }
.sev-medium { background: #fffbeb; color: #b45309; }
.sev-high { background: #fef2f2; color: #991b1b; }
.sev-critical { background: #450a0a; color: #fff; }
.tolerance-help { font-size: 13px; color: #5f6368; margin-bottom: 12px; padding: 8px 12px; background: #fafafa; border-radius: 4px; }
.notification-form .form-row { margin-bottom: 12px; }
.notification-form .form-row label { display: block; margin-bottom: 4px; }
.notification-form .form-actions { margin-top: 16px; display: flex; gap: 8px; }
.row-overdue { background: #fde8e8; }
.cal-month { margin: 16px 0 8px; font-size: 1rem; color: #334; border-bottom: 1px solid #e0e4ea; padding-bottom: 4px; }
.workflow-diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.workflow-step { background: #e8f0fe; color: #1a56db; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.workflow-arrow { color: #888; font-weight: bold; }
.wf-palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.wf-palette-item { background: #f0f4ff; border: 1px dashed #93b4fd; color: #1a56db; padding: 8px 14px; border-radius: 8px; cursor: grab; font-size: 13px; user-select: none; }
.wf-palette-item:active { cursor: grabbing; }
.wf-dropzone { min-height: 52px; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fafafa; transition: border-color 0.15s, background 0.15s; }
.wf-dropzone.wf-over { border-color: #1a56db; background: #eef4ff; }
.wf-chip { background: #e8f0fe; color: #1a56db; padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: grab; display: inline-flex; align-items: center; gap: 4px; }
.wf-chip:active { cursor: grabbing; }
.wf-remove { background: none; border: none; color: #888; cursor: pointer; font-size: 14px; padding: 0 2px; line-height: 1; }
.wf-remove:hover { color: #c00; }
.wf-card { margin-bottom: 12px; }
.copilot-history { max-height: 280px; overflow: auto; margin-bottom: 8px; border: 1px solid #eee; border-radius: 8px; padding: 8px; background: #fafafa; }
.copilot-msg-user { margin-bottom: 8px; padding: 6px 8px; background: #fff; border-radius: 6px; }
.copilot-msg-bot { margin-bottom: 8px; padding: 6px 8px; color: #555; }
.report-row { padding: 8px 0; border-bottom: 1px solid var(--md-divider); }
.stat-card .sv { font-size: var(--fs-kpi); font-weight: 700; color: var(--ws-ink); letter-spacing: 0; line-height: 1.2; }
.stat-card .sl { font-size: var(--fs-sm); color: var(--ws-ink); margin-top: 6px; font-weight: 400; }
.stat-card .stat-label { font-size: var(--fs-sm); font-weight: 400; color: var(--ws-ink); }
.stat-card .stat-value { font-size: var(--fs-kpi); font-weight: 700; color: var(--ws-ink); }
.stat-card .stat-sub { font-size: var(--fs-xs); color: var(--ws-muted); margin-top: 4px; }
.stat-card .hint { font-size: var(--fs-xs); }
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}
.chart-container canvas { width: 100% !important; height: 100% !important; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--md-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 0;
    color: var(--md-text);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--ws-teal);
    box-shadow: none;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ws-teal);
    color: #fff;
    border-color: var(--ws-teal);
}
.btn-primary:hover {
    background: var(--ws-teal-dark);
    border-color: var(--ws-teal-dark);
    box-shadow: none;
}
.btn-secondary {
    background: #fff;
    color: var(--ws-teal);
    border: 1px solid var(--ws-line);
}
.btn-secondary:hover {
    background: var(--ws-teal-soft);
    border-color: var(--ws-teal);
}
.btn-danger {
    background: var(--md-red);
    color: white;
}
.btn-danger:hover { background: #c5221f; }
.btn-sm { height: 28px; padding: 0 16px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 32px; font-size: 16px; }
.w-full { width: 100%; }
.table-container {
    overflow-x: auto;
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--md-divider);
}
th {
    color: var(--md-text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--md-sidebar);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--md-primary-light); }
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, Arial, sans-serif;
}
.badge-critical { background: #fce8e6; color: var(--md-red); }
.badge-high { background: #fef7e0; color: var(--md-orange); }
.badge-medium { background: var(--md-primary-light); color: var(--md-primary); }
.badge-low { background: #e6f4ea; color: var(--md-green); }
.badge-stable { background: var(--md-primary-light); color: var(--md-primary); }
.badge-worsening { background: #fce8e6; color: var(--md-red); }
.badge-improving { background: #e6f4ea; color: var(--md-green); }
.module-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.kri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.kri-card {
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
    padding: 16px 20px;
    transition: box-shadow var(--transition);
}
.kri-card:hover { box-shadow: var(--md-shadow-hover); }
.kri-card .kri-name { font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--md-text); }
.kri-card .kri-value { font-size: 28px; font-weight: 400; margin-bottom: 4px; }
.kri-card .kri-unit { font-size: 12px; color: var(--md-text-muted); }
.kri-card .kri-thresholds { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.kri-card .kri-trend { margin-top: 8px; font-size: 12px; }
.stress-results { padding: 8px 0; }
.stress-metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--md-divider);
}
.stress-metric:last-child { border-bottom: none; }
.stress-metric .metric-label { color: var(--md-text-secondary); font-size: 14px; }
.stress-metric .metric-value { font-weight: 500; font-size: 16px; }
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.loading-overlay.show { display: flex; }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--md-divider);
    border-top-color: var(--md-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { color: var(--md-text-secondary); font-size: 14px; }
#toastContainer {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 24px;
    border-radius: var(--md-radius-sm);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--md-shadow);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.toast-info { background: var(--md-primary); color: white; }
.toast-success { background: var(--md-green); color: white; }
.toast-error { background: var(--md-red); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--md-text-muted);
}
.empty-state p { font-size: 16px; }
.tabs {
    display: flex;
    border-bottom: 1px solid var(--md-divider);
    margin-bottom: 20px;
    gap: 0;
}
.tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, Arial, sans-serif;
}
.tab:hover { color: var(--md-text); background: var(--md-sidebar); }
.tab.active { color: var(--md-primary); border-bottom-color: var(--md-primary); }
.progress-bar {
    height: 8px;
    background: var(--md-divider);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-fill.good { background: var(--md-green); }
.progress-fill.warn { background: var(--md-yellow); }
.progress-fill.bad { background: var(--md-red); }
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--md-shadow); }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; padding: 16px; }
    .card-grid { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* 风险概览指挥台 — 哨兵A 模块条 */
.ov-banner{
    display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
    padding:14px 18px;margin-bottom:16px;border-radius:0;
    background:var(--ws-teal);
    border:1px solid var(--ws-teal);
    color:#fff;
}
.ov-banner-title{font-size:var(--fs-md);font-weight:700;color:#fff}
.ov-banner-sub{font-size:var(--fs-sm);color:rgba(255,255,255,0.88);margin-top:4px}
.ov-ver{
    font-size:var(--fs-xs);padding:4px 10px;border-radius:0;white-space:nowrap;
    background:rgba(255,255,255,0.12);color:#fff;border:1px solid rgba(255,255,255,0.25);font-weight:600;
}
.ov-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}
.ov-act{
    background:#fff;border:1px solid var(--ws-line);border-radius:0;
    padding:14px 16px;cursor:pointer;transition:all .15s;
}
.ov-act:hover{border-color:var(--ws-teal);transform:none;box-shadow:none;background:var(--ws-teal-soft)}
.ov-act-h{font-size:14px;font-weight:600;color:var(--ws-ink);margin-bottom:6px}
.ov-act-d{font-size:12px;color:var(--ws-muted);line-height:1.5}
.ov-act-meta{margin-top:10px;font-size:11px;color:var(--ws-teal);font-weight:600}
.stat-card .hint{font-size:11px;margin-top:6px;color:#64748b}
.stat-card .hint.warn{color:#b45309}.stat-card .hint.danger{color:#991b1b}.stat-card .hint.ok{color:#047857}
.stat-card.clickable{cursor:pointer}
.ov-todo-card .card-body{padding:16px 18px}
.ov-todo-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--ws-line)}
.ov-todo-item:last-child{border-bottom:none}
.ov-pri{font-size:10px;font-weight:700;padding:2px 8px;border-radius:0;flex-shrink:0;margin-top:2px}
.ov-pri.p1{background:#fef2f2;color:#991b1b}
.ov-pri.p2{background:#fffbeb;color:#b45309}
.ov-pri.p3{background:var(--ws-teal-soft);color:var(--ws-teal)}
.btn-sm{padding:4px 10px;font-size:12px}
.enterprise-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.enterprise-card{
    background:#fff;border:1px solid var(--ws-line);border-radius:0;
    padding:16px;cursor:pointer;transition:all .15s;
}
.enterprise-card:hover{border-color:var(--ws-teal);box-shadow:none;transform:none;background:var(--ws-teal-soft)}
.enterprise-card.active{border-color:var(--ws-teal);background:var(--ws-teal-soft)}
.enterprise-card h4{margin:0 0 6px;font-size:15px;color:var(--ws-ink)}
.enterprise-card .ent-actions{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}
.kri-card-alert{border-color:var(--ws-teal) !important;box-shadow:none}
.module-summary.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}

/* 引导与模块深度标注 */
.hq-onboard{margin-bottom:16px;border-radius:0;border:1px solid var(--ws-line);background:linear-gradient(135deg,rgba(10,85,99,0.05),rgba(214,230,234,0.35));padding:14px 18px}
.hq-onboard-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.hq-onboard-sub{font-size:12px;color:var(--ws-muted);margin-top:6px;line-height:1.5}
.hq-onboard-actions{display:flex;gap:8px;flex-wrap:wrap}
.hq-module-hint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:14px;border-radius:0;font-size:12px;border:1px solid var(--ws-line);background:#fff}
.hq-module-hint.depth-full{border-color:rgba(30,142,90,0.35);background:rgba(30,142,90,0.06)}
.hq-module-hint.depth-thin{border-color:rgba(201,110,40,0.35);background:rgba(201,110,40,0.06)}
.hq-module-hint.depth-shell{border-color:rgba(130,145,160,0.35);background:rgba(148,163,184,0.08)}
.hq-hint-text{color:var(--ws-ink);flex:1;min-width:200px}
.hq-hint-warn{color:#C96E28;font-weight:600}
.depth-badge{display:inline-block;font-size:10px;font-weight:700;padding:2px 8px;border-radius:0;letter-spacing:.03em}
.depth-badge.depth-full{background:#d1fae5;color:#047857}
.depth-badge.depth-thin{background:#fef3c7;color:#b45309}
.depth-badge.depth-shell{background:#e2e8f0;color:#475569}
.menu-group{margin-bottom:2px}
.menu-group-hdr{
    width:100%;text-align:left;border:none;background:transparent;
    color:var(--ws-teal);font-size:var(--fs-sm);font-weight:700;
    padding:14px 16px 6px;margin-top:4px;cursor:pointer;letter-spacing:0;
    border-top:1px solid var(--ws-line);
}
.menu-group:first-child .menu-group-hdr{border-top:none;margin-top:0;padding-top:8px}
.menu-group-hdr:hover{color:var(--ws-teal-dark)}
.menu-group.collapsed .menu-group-body{display:none}
.menu-depth{margin-left:auto;font-size:10px;opacity:.85}
.menu-item .menu-depth.depth-full{color:#047857}
.menu-item .menu-depth.depth-thin{color:#b45309}
.menu-item .menu-depth.depth-shell{color:#94a3b8}
.hq-tier-filter{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 12px 10px;border-bottom:1px solid var(--ws-line)}
.hq-tier-label{font-size:10px;color:var(--ws-muted);letter-spacing:.04em;margin-right:4px}
.hq-tier-btn{font-size:10px;padding:3px 8px;border:1px solid var(--ws-line);background:#fff;color:var(--ws-muted);cursor:pointer;border-radius:0}
.hq-tier-btn.active,.hq-tier-btn:hover{border-color:var(--ws-teal);color:var(--ws-teal-dark);background:rgba(10,85,99,0.06)}
.menu-group-preview>.menu-group-hdr{color:var(--ws-muted)}
.sidebar-ecosystem{display:flex;gap:8px;margin-top:6px}
.sidebar-ecosystem a{font-size:10px;color:var(--ws-teal-dark);text-decoration:none;border:1px solid var(--ws-line);padding:2px 6px}
.sidebar-ecosystem a:hover{border-color:var(--ws-teal);background:rgba(10,85,99,0.06)}
.sidebar-search-wrap{padding:8px 10px 4px}
.sidebar-search-wrap .form-input{width:100%;font-size:12px;padding:8px 10px}
.hq-empty-cta{margin-left:8px;vertical-align:middle}

