* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
}

.brand {
    margin-bottom: 32px;
}

.brand-title {
    font-size: 22px;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
}

.nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

.nav a.active {
    background: #2563eb;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 24px;
}

.content {
    flex: 1;
    padding: 32px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
}

.status-pill {
    background: #e0f2fe;
    color: #0369a1;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions form {
    margin: 0;
}

.user-pill {
    background: #f3f4f6;
    color: #374151;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.page-body {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card p {
    color: #6b7280;
    line-height: 1.6;
}

.data-center-intro {
    margin-bottom: 20px;
}

.data-center-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.data-center-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.data-center-card h2,
.data-center-card h3 {
    margin-top: 0;
    color: #111827;
}

.data-center-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.data-center-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.data-center-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.data-center-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.data-center-form .btn {
    width: 100%;
    text-align: center;
}

.data-center-result {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.result-note {
    margin-bottom: 12px;
    padding: 12px 14px;
}

.result-list p,
.placeholder-list p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.placeholder-text,
.placeholder-list {
    color: #9ca3af;
}

.placeholder-list {
    margin-top: 10px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.btn-danger {
    background: #dc2626;
}

.btn-small {
    margin-top: 0;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.full-width {
    width: 100%;
    text-align: center;
}

.notice {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    line-height: 1.7;
}

.muted-notice {
    margin-top: 12px;
    color: #6b7280;
}

.account-sync-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.account-sync-panel h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
}

.account-sync-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.account-sync-panel .btn {
    flex: 0 0 auto;
    margin-top: 0;
}

.account-sync-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    flex-wrap: wrap;
}

.account-sync-actions .btn {
    margin-top: 0;
}

.account-sync-actions .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.account-preview {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.account-preview[hidden] {
    display: none;
}

.account-preview h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 16px;
}

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

.preview-list {
    display: grid;
    gap: 8px;
}

.preview-list-item {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.module-list {
    line-height: 1.9;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.login-brand {
    margin-bottom: 24px;
    color: #111827;
}

.login-panel h1 {
    margin: 0 0 8px;
}

.login-muted {
    margin: 0 0 22px;
    color: #6b7280;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack-form label,
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #ffffff;
    color: #111827;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #2563eb;
}

textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

.alert-error,
.alert-success {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

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

.narrow-form {
    max-width: 420px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form label {
    display: grid;
    gap: 6px;
}

.inline-form span,
.stat-label {
    color: #6b7280;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stat-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.stat-value {
    margin-top: 8px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-value.small {
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
}

details.card summary {
    cursor: pointer;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

details.card[open] summary {
    margin-bottom: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.data-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-ok {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #e5e7eb;
    color: #4b5563;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.source-path,
.source-error {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.source-path {
    color: #6b7280;
}

.source-error {
    color: #991b1b;
}

.mail-center {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mail-center-intro {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mail-center-intro h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.mail-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #374151;
    font-size: 15px;
}

.mail-type-row strong {
    color: #2563eb;
}

.mail-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mail-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mail-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.mail-panel h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 17px;
}

.mail-panel .notice {
    border-radius: 8px;
}

.mail-form .mail-panel:last-of-type,
.mail-form .mail-recipient-panel,
.mail-form .action-row {
    grid-column: 1 / -1;
}

.mail-send-button {
    min-width: 240px;
    min-height: 42px;
    padding-left: 34px;
    padding-right: 34px;
    font-size: 15px;
}

.file-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.file-input span {
    color: #6b7280;
    font-weight: 500;
}

.mail-form-tip {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.checkbox-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.mail-recipient-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mail-recipient-group + .mail-recipient-group {
    margin-top: 16px;
}

.mail-recipient-group strong {
    color: #111827;
    font-size: 14px;
}

.check-option {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.check-option input {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.check-option span {
    line-height: 1.3;
    white-space: nowrap;
}

.recent-panel {
    margin-top: 4px;
}

.empty-state {
    color: #6b7280;
}

.system-center {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.system-intro {
    margin-bottom: 0;
}

.system-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
}

.section-heading span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
}

.system-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.system-stat-card {
    min-width: 0;
    min-height: 108px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.system-stat-wide {
    grid-column: span 2;
}

.system-stat-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.system-stat-card strong {
    display: block;
    margin-top: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.system-table-wrap {
    max-height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.system-table-wrap .data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.text-ok {
    color: #166534 !important;
}

.text-danger {
    color: #991b1b !important;
}

.text-warning {
    color: #92400e !important;
}

@media (max-width: 860px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .page-header,
    .header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .mail-form {
        grid-template-columns: 1fr;
    }

    .mail-form-row {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }

    .section-heading span {
        text-align: left;
    }

    .system-stat-wide {
        grid-column: auto;
    }

    .account-sync-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .account-sync-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-preview-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 1180px) {
    .data-center-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 720px) {
    .content {
        padding: 20px;
    }

    .page-body {
        padding: 20px;
    }

    .data-center-grid {
        grid-template-columns: 1fr;
    }

    .data-center-card {
        min-height: auto;
    }
}

/* Personal Data Compass V3 */
.personal-compass {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.personal-compass .compass-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.personal-compass .compass-hero h2,
.personal-compass .compass-card h3 {
    margin: 0;
    color: #111827;
}

.personal-compass .compass-hero h2 {
    font-size: 24px;
}

.personal-compass .compass-eyebrow {
    margin: 0 0 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.personal-compass .compass-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.personal-compass .compass-meta div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.personal-compass .compass-meta span,
.personal-compass .metric-target,
.personal-compass .chart-note {
    color: #6b7280;
    font-size: 13px;
}

.personal-compass .compass-meta strong {
    display: block;
    margin-top: 5px;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

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

.personal-compass .compass-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.personal-compass .card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.personal-compass .card-heading h3 {
    font-size: 18px;
}

.personal-compass .status-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.personal-compass .status-ok {
    background: #dcfce7;
    color: #166534;
}

.personal-compass .status-warn {
    background: #fef3c7;
    color: #92400e;
}

.personal-compass .satisfaction-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.personal-compass .score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 280px;
    padding: 22px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    text-align: center;
}

.personal-compass .score-panel.status-warn {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.personal-compass .score-ring {
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#16a34a 0 86%, #dcfce7 86% 100%);
    box-shadow: inset 0 0 0 1px #bbf7d0, 0 14px 30px rgba(22, 163, 74, 0.18);
}

.personal-compass .score-panel.status-warn .score-ring {
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#f59e0b 0 82%, #fef3c7 82% 100%);
    box-shadow: inset 0 0 0 1px #fde68a, 0 14px 30px rgba(245, 158, 11, 0.2);
}

.personal-compass .score-ring strong {
    color: #166534;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
}

.personal-compass .score-panel.status-warn .score-ring strong {
    color: #92400e;
}

.personal-compass .score-panel span {
    color: #14532d;
    font-size: 14px;
    font-weight: 800;
}

.personal-compass .score-panel.status-warn span {
    color: #78350f;
}

.personal-compass .score-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
}

.personal-compass .score-panel.status-warn .score-status {
    background: #fef3c7;
    color: #92400e;
}

.personal-compass .score-panel em {
    color: #15803d;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.personal-compass .score-panel.status-warn em {
    color: #b45309;
}

.personal-compass .line-chart-panel {
    min-width: 0;
    overflow-x: auto;
}

.personal-compass .line-chart {
    display: block;
    width: 100%;
    min-width: 620px;
    height: 280px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.personal-compass .metric-card {
    min-height: 188px;
}

.personal-compass .quality-card {
    padding-bottom: 18px;
}

.personal-compass .quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.personal-compass .quality-metric {
    min-height: 132px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.personal-compass .quality-metric span,
.personal-compass .quality-metric em {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.personal-compass .quality-metric strong {
    display: block;
    margin: 10px 0 8px;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.personal-compass .metric-value {
    margin-top: 12px;
    color: #111827;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.personal-compass .metric-target {
    margin-top: 14px;
    font-weight: 700;
}

.personal-compass .bar-chart-card {
    min-height: 330px;
}

.personal-compass .bar-chart-card-wide {
    grid-column: 1 / -1;
    width: 100%;
}

.personal-compass .bar-chart-card h3 strong {
    color: #2563eb;
}

.personal-compass .bar-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    align-items: end;
    gap: 10px;
    height: 210px;
    width: 100%;
    padding: 16px 12px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background:
        linear-gradient(to top, #e5e7eb 1px, transparent 1px) 0 25% / 100% 25%,
        #f9fafb;
}

.personal-compass .bar-chart span {
    position: relative;
    display: block;
    min-height: 2px;
    border-radius: 6px 6px 0 0;
}

.personal-compass .bar-chart .no-task {
    border-top: 2px dashed #94a3b8;
}

.personal-compass .bar-chart em {
    position: absolute;
    left: 50%;
    bottom: -24px;
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    transform: translateX(-50%);
    white-space: nowrap;
}

.personal-compass .chart-note {
    margin: 14px 0 0;
    line-height: 1.6;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.admin-dashboard .compass-eyebrow,
.admin-dashboard .card-heading h3 {
    margin: 0;
}

.admin-dashboard .compass-eyebrow {
    margin: 0 0 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-dashboard .compass-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.admin-dashboard .card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-dashboard .card-heading h3 {
    color: #111827;
    font-size: 18px;
}

.admin-dashboard .status-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-dashboard .status-warn {
    background: #fef3c7;
    color: #92400e;
}

.admin-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-dashboard-hero h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
}

.admin-month-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
}

.admin-month-form label {
    display: grid;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.employee-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.employee-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.employee-chip:hover {
    border-color: #2563eb;
    background: #dbeafe;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.admin-metric-card {
    min-height: 132px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.admin-metric-card span,
.admin-metric-card em {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.admin-metric-card strong {
    display: block;
    margin: 10px 0 8px;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.admin-table-wrap {
    max-height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.admin-table-wrap .data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 860px) {
    .admin-dashboard-hero,
    .admin-month-form {
        align-items: stretch;
        flex-direction: column;
    }

    .personal-compass .compass-meta,
    .personal-compass .metric-grid,
    .personal-compass .quality-grid,
    .personal-compass .satisfaction-layout {
        grid-template-columns: 1fr;
    }

    .personal-compass .score-panel {
        min-height: auto;
    }
}
