      .page {
        padding: 16px 16px 16px 0;
      }
      .history-toolbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        margin-bottom: var(--space);
        gap: 12px;
      }
      .history-toolbar h2 {
        margin: 0;
        grid-column: 2;
        justify-self: center;
        text-align: center;
      }
      .history-toolbar-right {
        grid-column: 3;
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }
      .history-page-size {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: var(--muted);
        white-space: nowrap;
        flex-shrink: 0;
      }
      .history-page-size select {
        width: auto;
        min-width: 70px;
        padding: 4px 8px;
        text-align: center;
      }
      .history-summary {
        font-size: 13px;
        color: var(--muted);
      }
      .history-footer {
        display: flex;
        justify-content: center;
        margin-top: var(--space);
      }
      .pagination {
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .pagination button {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.15s;
      }
      .pagination button:hover:not(:disabled):not(.active) {
        border-color: var(--primary);
        color: var(--primary);
      }
      .pagination button.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
      }
      .pagination button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }
      .history-action {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 999px;
      }
      .output {
        display: grid;
        gap: 14px;
      }
      .report-shell {
        display: grid;
        gap: 16px;
      }
      .report-overview {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
      }
      .report-overview-card {
        background: #fff;
        border: 1px solid #dce8fb;
        border-radius: 14px;
        padding: 16px;
      }
      .report-overview-label {
        font-size: 12px;
        color: var(--muted);
      }
      .report-overview-value {
        margin-top: 6px;
        font-size: 24px;
        font-weight: 700;
        color: var(--text);
      }
      .report-overview-value.primary {
        color: var(--primary);
      }
      .report-status {
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(47, 126, 247, 0.06);
        border: 1px solid rgba(47, 126, 247, 0.12);
        color: #334155;
        font-size: 14px;
      }
      .report-group {
        display: grid;
        gap: 10px;
      }
      .report-group-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary);
      }
      .report-table-wrap {
        overflow-x: auto;
      }
      .report-table {
        margin-top: 0;
      }
      .report-item-title {
        font-weight: 600;
        color: var(--text);
      }
      .report-item-desc {
        margin-top: 4px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6;
      }
      .report-score {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 54px;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid transparent;
      }
      .report-score.positive {
        color: #15803d;
        background: rgba(34, 197, 94, 0.1);
        border-color: rgba(34, 197, 94, 0.18);
      }
      .report-score.negative {
        color: #b91c1c;
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.16);
      }
      .report-score.neutral {
        color: #475569;
        background: rgba(148, 163, 184, 0.14);
        border-color: rgba(148, 163, 184, 0.18);
      }
      .report-ref,
      .report-unit,
      .report-hint {
        color: #475569;
        line-height: 1.7;
        white-space: pre-wrap;
        word-break: break-word;
      }
      .report-conclusion-grid {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 12px;
      }
      .report-conclusion-card {
        background: #ffffff;
        border: 1px solid #dce8fb;
        border-radius: 14px;
        padding: 16px;
      }
      .report-conclusion-label {
        font-size: 12px;
        color: var(--muted);
      }
      .report-conclusion-value {
        margin-top: 8px;
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
      }
      .report-conclusion-text {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.8;
        color: #475569;
        white-space: pre-wrap;
        word-break: break-word;
      }
      .summary-section {
        display: grid;
        gap: 12px;
      }
      .summary-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--primary);
      }
      .summary-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .summary-card {
        background: #ffffff;
        border: 1px solid #e6edf7;
        border-radius: var(--radius);
        padding: 14px;
      }
      .summary-card-label {
        color: var(--muted);
        font-size: 12px;
      }
      .summary-card-value {
        margin-top: 6px;
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
      }
      .summary-signals {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .summary-signal {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(47, 126, 247, 0.08);
        border: 1px solid rgba(47, 126, 247, 0.16);
        color: var(--primary);
        font-size: 12px;
      }
      .report-shell {
        gap: 12px;
        background: #fff;
        border: 1px solid #9bb7d7;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      }
      .report-paper-header {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) 240px;
        align-items: center;
        gap: 16px;
        padding-bottom: 14px;
        border-bottom: 2px solid #7ea6d8;
      }
      .report-paper-logo {
        width: 72px;
        height: 72px;
        object-fit: contain;
      }
      .report-paper-title {
        text-align: center;
      }
      .report-paper-title h1 {
        margin: 0;
        font-size: 24px;
        line-height: 1.2;
        color: #1f2d3d;
      }
      .report-paper-subtitle {
        margin-top: 6px;
        font-size: 13px;
        color: #475569;
        letter-spacing: 1px;
      }
      .report-paper-side {
        display: grid;
        gap: 6px;
        justify-items: end;
        font-size: 12px;
        color: #475569;
      }
      .report-paper-side strong {
        color: #1f2d3d;
      }
      .report-basic-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        border: 1px solid #b8cbe2;
        border-top: none;
      }
      .report-basic-item {
        min-height: 44px;
        padding: 10px 12px;
        border-top: 1px solid #b8cbe2;
        border-right: 1px solid #b8cbe2;
        background: #fff;
        font-size: 13px;
        color: #334155;
      }
      .report-basic-item:nth-child(4n) {
        border-right: none;
      }
      .report-basic-label {
        margin-right: 6px;
        font-weight: 700;
        color: #1f2d3d;
      }
      .report-section-table {
        border: 1px solid #7ea6d8;
      }
      .report-section-caption {
        padding: 10px 16px;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
        color: #2f5f98;
        background: #f2f7fd;
        border-bottom: 1px solid #7ea6d8;
      }
      .report-table {
        min-width: 0;
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
      }
      .report-table th,
      .report-table td {
        border: 1px solid #c1d0e0;
        padding: 8px 10px;
        font-size: 13px;
        text-align: center;
        vertical-align: middle;
      }
      .report-table th {
        background: #f7f9fc;
        color: #1f2d3d;
      }
      .report-table td:first-child {
        text-align: left;
      }
      .report-category-row td {
        background: #f2f7fd;
        color: #2f5f98;
        font-weight: 700;
        text-align: left;
      }
      .report-item-title {
        font-size: 13px;
        font-weight: 600;
        color: #1f2d3d;
      }
      .report-item-desc {
        margin-top: 4px;
        font-size: 12px;
        color: #64748b;
        line-height: 1.6;
      }
      .report-score {
        min-width: 48px;
        padding: 0;
        border: none;
        background: transparent;
        border-radius: 0;
        font-size: 13px;
      }
      .report-score.positive,
      .report-score.negative,
      .report-score.neutral {
        background: transparent;
        border-color: transparent;
      }
      .report-status {
        border-radius: 0;
        border-color: #b8cbe2;
        background: #f8fbff;
        color: #334155;
      }
      .summary-section {
        border: 1px solid #7ea6d8;
        padding: 14px;
        background: #fff;
      }
      .summary-title {
        color: #2f5f98;
      }
      .summary-card {
        border-radius: 0;
        border-color: #c1d0e0;
      }
      .report-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        border: 1px solid #7ea6d8;
      }
      .report-summary-block {
        min-height: 120px;
        padding: 14px 16px;
        border-right: 1px solid #7ea6d8;
      }
      .report-summary-block:last-child {
        border-right: none;
      }
      .report-summary-title {
        margin-bottom: 10px;
        font-size: 15px;
        font-weight: 700;
        color: #2f5f98;
      }
      .report-summary-text {
        font-size: 14px;
        line-height: 1.9;
        color: #334155;
        white-space: pre-wrap;
        word-break: break-word;
      }
      .report-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 10px;
        border-top: 1px solid #b8cbe2;
        color: #475569;
        font-size: 12px;
        flex-wrap: wrap;
      }
      .report-footer-note {
        width: 100%;
        color: #64748b;
      }
      .detail-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10010;
        padding: 20px;
        backdrop-filter: blur(4px);
      }
      .detail-modal-overlay.active {
        display: flex;
      }
      .history-embedded {
        min-height: 100vh;
        background: #f8fafc;
      }
      .history-embedded .topbar,
      .history-embedded .page {
        display: none;
      }
      .history-embedded .detail-modal-overlay {
        position: static;
        display: flex;
        min-height: 100vh;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
      }
      .history-embedded .detail-modal {
        width: 100%;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 24px;
      }
      .detail-modal {
        width: min(96vw, 1280px);
        max-height: 88vh;
        overflow: auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        padding: 28px;
      }
      .detail-modal-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
      }
      .detail-modal-title {
        grid-column: 2;
        justify-self: center;
        text-align: center;
        font-size: var(--text-xl);
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
      }
      .detail-modal-actions {
        grid-column: 3;
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .detail-view-switch {
        grid-column: 1;
        justify-self: start;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
      }
      .detail-view-switch button {
        border: 0;
        background: transparent;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 999px;
        cursor: pointer;
        color: var(--muted);
        transition: all 0.15s;
        white-space: nowrap;
      }
      .detail-view-switch button.active {
        background: rgba(47, 126, 247, 0.12);
        color: var(--primary);
      }
      .detail-view-switch button:hover:not(.active) {
        color: var(--text);
      }
      .quarter-analysis-screen {
        display: grid;
        gap: 16px;
      }
      .quarter-analysis-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        align-items: start;
        padding: 18px 20px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
      }
      .quarter-analysis-title {
        font-size: 22px;
        font-weight: 800;
        color: var(--text);
      }
      .quarter-analysis-subtitle {
        margin-top: 6px;
        font-size: 13px;
        color: var(--muted);
      }
      .quarter-analysis-badges {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .quarter-meta-badge {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 12px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
      }
      .quarter-meta-badge.primary {
        background: rgba(47, 126, 247, 0.08);
        border-color: rgba(47, 126, 247, 0.16);
        color: var(--primary);
      }
      .quarter-switch-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }
      .quarter-chip {
        min-width: 108px;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        color: var(--muted);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s ease;
      }
      .quarter-chip.supported {
        border-color: rgba(34, 197, 94, 0.22);
      }
      .quarter-chip.limited {
        border-color: rgba(148, 163, 184, 0.28);
      }
      .quarter-chip.active {
        background: rgba(47, 126, 247, 0.12);
        color: var(--primary);
      }
      .quarter-analysis-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
        gap: 16px;
      }
      .quarter-list-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }
      .quarter-card,
      .quarter-empty-card {
        border-radius: 18px;
        border: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
      }
      .quarter-card {
        padding: 18px 20px;
      }
      .quarter-empty-card {
        padding: 36px 24px;
        text-align: center;
      }
      .quarter-empty-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--text);
      }
      .quarter-empty-desc {
        margin-top: 8px;
        color: var(--muted);
        line-height: 1.8;
      }
      .quarter-card-top {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: start;
      }
      .quarter-card-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--text);
      }
      .quarter-card-subtitle {
        margin-top: 6px;
        font-size: 13px;
        color: var(--muted);
      }
      .quarter-state-pill {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid transparent;
      }
      .quarter-state-pill.supported {
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(34, 197, 94, 0.2);
        color: #15803d;
      }
      .quarter-state-pill.limited {
        background: rgba(148, 163, 184, 0.12);
        border-color: rgba(148, 163, 184, 0.2);
        color: var(--muted);
      }
      .quarter-section + .quarter-section,
      .quarter-side-block + .quarter-side-meta {
        margin-top: 16px;
      }
      .quarter-section-label {
        font-size: 13px;
        font-weight: 800;
        color: var(--primary);
      }
      .quarter-section-text {
        margin-top: 8px;
        color: var(--text);
        font-size: 14px;
        line-height: 1.85;
        white-space: pre-wrap;
        word-break: break-word;
      }
      .quarter-side-meta {
        display: grid;
        gap: 10px;
      }
      .quarter-side-meta-item {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        background: #f8fbff;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
      }
      .quarter-side-meta-item strong {
        color: var(--text);
      }
      .quarter-list {
        display: grid;
        gap: 10px;
        margin-top: 10px;
      }
      .quarter-list-item,
      .quarter-list-empty {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #f8fbff;
        color: var(--text);
        font-size: 13px;
        line-height: 1.7;
      }
      .quarter-list-empty {
        color: var(--muted);
      }
      @media (max-width: 1180px) {
        .quarter-analysis-header,
        .quarter-analysis-grid,
        .quarter-list-grid {
          grid-template-columns: 1fr;
        }
        .quarter-analysis-badges {
          justify-content: flex-start;
        }
      }
      @media (max-width: 720px) {
        .quarter-analysis-header,
        .quarter-card,
        .quarter-empty-card {
          padding: 16px;
        }
        .quarter-chip {
          min-width: calc(50% - 5px);
        }
      }
      .detail-close {
        border: 0;
        background: transparent;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        color: var(--muted);
      }
      .detail-close:hover {
        color: var(--text);
      }
      .detail-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 16px;
      }
      .detail-meta-item {
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #ffffff;
      }
      .detail-meta-label {
        font-size: 12px;
        color: var(--muted);
      }
      .detail-meta-value {
        margin-top: 6px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        word-break: break-word;
      }
      .field-checkbox-label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        padding: 8px 0;
      }
      .field-checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
        flex-shrink: 0;
      }
      .field-checkbox-label span {
        font-size: 14px;
        color: var(--text);
      }
      .key-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1300;
        padding: 20px;
        backdrop-filter: blur(4px);
      }
      .key-modal-overlay.active {
        display: flex;
      }
      .key-modal {
        width: min(92vw, 480px);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        padding: 28px;
      }
      .key-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
      }
      .key-modal-title {
        font-size: var(--text-xl);
        font-weight: 700;
      }
      .key-modal-close {
        border: 0;
        background: transparent;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        color: var(--muted);
      }
      .key-modal-close:hover {
        color: var(--text);
      }
      .key-modal-body {
        display: grid;
        gap: 14px;
      }
      @media (max-width: 980px) {
        .detail-meta {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .report-overview {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .report-conclusion-grid {
          grid-template-columns: 1fr;
        }
      }
      .progress-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1200;
        padding: 20px;
        backdrop-filter: blur(4px);
      }
      .progress-modal-overlay.active {
        display: flex;
      }
      .progress-modal {
        width: min(92vw, 400px);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        padding: 28px;
      }
      .progress-modal-header {
        margin-bottom: 16px;
      }
      .progress-modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
      }
      .progress-modal-body {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--muted);
        font-size: 14px;
      }
      .progress-spinner {
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 3px solid rgba(47, 126, 247, 0.2);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
      }
      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      @media (max-width: 560px) {
        .history-embedded .detail-modal {
          padding: 16px 12px 20px;
        }
        .history-toolbar {
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .history-toolbar h2 {
          grid-column: 1;
          justify-self: center;
        }
        .history-toolbar-right {
          grid-column: 1;
          justify-self: stretch;
          justify-content: space-between;
        }
        .detail-modal-header {
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .detail-view-switch {
          grid-column: 1;
          justify-self: center;
        }
        .detail-modal-title {
          grid-column: 1;
          justify-self: center;
        }
        .detail-modal-actions {
          grid-column: 1;
          justify-self: center;
        }
        .page {
          padding-left: 0;
          padding-right: 0;
        }
        .panel {
          padding-left: 12px;
          padding-right: 12px;
          border-radius: 0;
          border-left: none;
          border-right: none;
        }
        .summary-grid,
        .detail-meta,
        .report-overview {
          grid-template-columns: 1fr;
        }
      }

      /* 历史记录卡片布局 */
      .history-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
      }
      .history-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: all 0.2s ease;
      }
      .history-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
      }
      .history-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
      }
      .history-card-file {
        font-weight: 600;
        font-size: 14px;
        color: var(--text);
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .history-card-score {
        font-size: 16px;
        font-weight: 800;
        color: var(--primary);
        white-space: nowrap;
        flex-shrink: 0;
      }
      .history-card-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 12px;
        color: var(--muted);
      }
      .history-card-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 4px;
      }
      .history-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px solid #f0f3f8;
        gap: 8px;
      }
      .history-card-time {
        font-size: 11px;
        color: var(--muted);
      }
      .history-card-actions {
        display: flex;
        gap: 4px;
      }
      .history-card-actions .btn {
        padding: 3px 8px;
        font-size: 11px;
      }

      /* "报表"大屏视图（浅色系，适配主色调） */
      .dashboard-screen {
        position: relative;
        border-radius: 18px;
        background: linear-gradient(180deg, #f8faff 0%, #eef3ff 65%, #e8effd 100%);
        border: 1px solid #dce8fb;
        box-shadow: 0 8px 32px rgba(31, 61, 120, 0.08);
        padding: 16px;
        color: #334155;
        overflow: hidden;
      }
      .dashboard-topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 14px;
        margin-bottom: 14px;
      }
      .dashboard-title {
        font-size: 24px;
        font-weight: 800;
        letter-spacing: 0.5px;
        color: #1f2d3d;
      }
      .dashboard-subtitle {
        margin-top: 6px;
        font-size: 12px;
        color: #6b7280;
      }
      .dashboard-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: end;
        flex-wrap: wrap;
      }
      .dash-btn {
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid #dce8fb;
        background: #fff;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
      }
      .dash-btn:hover {
        border-color: #6cb2ff;
        background: rgba(47, 126, 247, 0.06);
      }
      .dash-btn.primary {
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(34, 197, 94, 0.22);
        color: #15803d;
      }
      .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 14px;
      }
      .dash-card {
        background: #fff;
        border: 1px solid #e6edf7;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 2px 8px rgba(31, 61, 120, 0.04);
      }
      .dash-kpi {
        grid-column: span 3;
        min-height: 104px;
        display: grid;
        gap: 8px;
      }
      .dash-kpi-label {
        font-size: 12px;
        color: #6b7280;
      }
      .dash-kpi-value {
        font-size: 26px;
        font-weight: 900;
        line-height: 1;
      }
      .dash-kpi-meta {
        font-size: 12px;
        color: #6b7280;
      }
      .dash-kpi-value.money { color: #059669; }
      .dash-kpi-value.count-blue { color: #2563eb; }
      .dash-kpi-value.count-orange { color: #d97706; }
      .dash-kpi-value.count-purple { color: #7c3aed; }
      .dash-panel {
        grid-column: span 8;
        min-height: 260px;
      }
      .dash-panel.small {
        grid-column: span 4;
        min-height: 260px;
      }
      .dash-panel-title {
        font-size: 14px;
        font-weight: 800;
        color: #1f2d3d;
        margin-bottom: 10px;
      }
      .dash-legend {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 6px;
      }
      .dash-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #6b7280;
      }
      .dash-dot {
        width: 10px;
        height: 10px;
        border-radius: 99px;
        background: #059669;
      }
      .dash-dot.blue { background: #2563eb; }
      .dash-chart {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e6edf7;
        overflow: hidden;
      }
      .dash-chart-empty,
      .dash-chart-empty-text {
        width: 100%;
        height: 100%;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(148, 163, 184, 0.9);
        font-size: 13px;
      }
      .dash-chart-pie-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 8px;
      }
      .dash-chart-pie {
        flex: 0 0 136px;
        width: 136px;
        height: 136px;
      }
      .dash-chart-legend {
        flex: 1 1 auto;
        display: grid;
        gap: 10px;
        min-width: 0;
      }
      .dash-chart-bar {
        padding: 12px 12px 0;
        box-sizing: border-box;
      }
      .dash-bottom {
        grid-column: span 4;
        min-height: 220px;
      }
      .dash-list {
        display: grid;
        gap: 10px;
      }
      .dash-alert-row {
        display: grid;
        grid-template-columns: 56px 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e6edf7;
      }
      .dash-alert-tag {
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.5px;
        border: 1px solid transparent;
      }
      .dash-alert-tag.red {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.18);
        color: #b91c1c;
      }
      .dash-alert-tag.yellow {
        background: rgba(217, 119, 6, 0.1);
        border-color: rgba(217, 119, 6, 0.18);
        color: #b45309;
      }
      .dash-alert-tag.pink {
        background: rgba(190, 24, 93, 0.1);
        border-color: rgba(190, 24, 93, 0.18);
        color: #9d174d;
      }
      .dash-alert-main {
        display: grid;
        gap: 4px;
      }
      .dash-alert-title {
        font-size: 13px;
        font-weight: 800;
        color: #1f2d3d;
      }
      .dash-alert-desc {
        font-size: 12px;
        color: #6b7280;
      }
      .dash-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 900;
        border: 1px solid #e6edf7;
        background: #fff;
        color: #334155;
        white-space: nowrap;
      }
      .dash-pill.blue { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.18); color: #1d4ed8; }
      .dash-pill.green { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.18); color: #047857; }
      .dash-pill.red { background: rgba(185, 28, 28, 0.08); border-color: rgba(185, 28, 28, 0.18); color: #991b1b; }
      .dash-pill.orange { background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.18); color: #b45309; }
      .dash-pill.purple { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.18); color: #6d28d9; }
      .dash-pill.gray { background: rgba(107, 114, 128, 0.08); border-color: rgba(107, 114, 128, 0.18); color: #4b5563; }
      .dash-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .dash-kv {
        display: grid;
        gap: 6px;
        padding: 10px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e6edf7;
      }
      .dash-kv-label { font-size: 12px; color: #6b7280; }
      .dash-kv-value { font-size: 18px; font-weight: 900; color: #1f2d3d; }
      @media (max-width: 980px) {
        .dash-kpi { grid-column: span 6; }
        .dash-panel { grid-column: span 12; }
        .dash-panel.small { grid-column: span 12; }
        .dash-bottom { grid-column: span 12; }
      }
      @media (max-width: 560px) {
        .dashboard-title { font-size: 18px; }
        .dash-kpi { grid-column: span 12; }
      }
