.dashboard {
    --dashboard-navy: #173c65;
    --dashboard-blue: #246b9d;
    --dashboard-teal: #147f77;
    --dashboard-ink: #24364a;
    --dashboard-muted: #637487;
    --dashboard-line: #dce5ed;
    color: var(--dashboard-ink);
    padding-bottom: 32px;
}

.dashboard-hero {
    margin-bottom: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: linear-gradient(125deg, #173c65, #246b9d 65%, #16847b);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(30, 65, 96, .14);
}

.dashboard-hero-passport { background: linear-gradient(125deg, #214265, #286d91 58%, #177e76); }
.dashboard-eyebrow { display: block; margin-bottom: 4px; color: #b6eee7; font-size: 12px; font-weight: 700; letter-spacing: .11em; }
.dashboard-view-title { margin: 0; color: #fff; font-size: 30px; font-weight: 700; }
.dashboard-hero p { margin: 7px 0 0; color: rgba(255,255,255,.86); }
.dashboard-year-select { min-width: 160px; }
.dashboard-year-select label { display: block; margin-bottom: 5px; color: #fff; }
.dashboard-year-select .form-control { color: #20364c; background: #fff; }
.dashboard-year-status { display: block; margin-top: 5px; color: rgba(255,255,255,.9); font-size: 12px; }

.dashboard-summary {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-summary-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.summary-card {
    min-height: 118px;
    padding: 17px 19px;
    background: #fff;
    border: 1px solid var(--dashboard-line);
    border-radius: 12px;
}

.summary-card span, .summary-card small { display: block; color: var(--dashboard-muted); }
.summary-card strong { display: block; margin: 2px 0; color: var(--dashboard-navy); font-size: 27px; line-height: 1.3; }

.dashboard-panel {
    margin-bottom: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--dashboard-line);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(30,65,96,.04);
}

.dashboard-panel-tint { background: linear-gradient(145deg, #f5faff, #f4fbf9); }
.dashboard-panel-heading { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-panel-heading h3 { margin: 0; color: var(--dashboard-navy); font-size: 20px; }
.dashboard-panel-heading p { margin: 4px 0 0; color: var(--dashboard-muted); font-size: 14px; }

.status-badge { display: inline-flex; padding: 3px 9px; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-info { color: #195886; background: #e8f2fa; }
.status-success { color: #10665d; background: #e5f6f2; }
.status-danger { color: #933737; background: #fdeceb; }
.status-muted { color: #566679; background: #edf1f4; }

.activity-card-list { display: grid; gap: 13px; }
.activity-card { padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--dashboard-line); border-radius: 11px; }
.activity-card-main { min-width: 0; flex: 1; }
.activity-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.activity-card h4 { margin: 0 0 9px; color: var(--dashboard-navy); font-size: 17px; }
.activity-card-compact p { margin: 0; color: var(--dashboard-muted); }

.activity-meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.activity-meta div { min-width: 0; }
.activity-meta dt { color: var(--dashboard-muted); font-size: 12px; font-weight: 500; }
.activity-meta dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.dashboard-action { min-height: 44px; }
.dashboard-link { min-height: 44px; padding: 9px 10px; }

.dashboard-table { margin-bottom: 0; }
.dashboard-table caption { color: var(--dashboard-ink); }
.dashboard-table th { color: var(--dashboard-navy); white-space: nowrap; }
.dashboard-recent-panel { padding-bottom: 12px; }
.dashboard-recent-table th:first-child, .dashboard-recent-table td:first-child { width: 150px; }
.dashboard-recent-table th:last-child, .dashboard-recent-table td:last-child { width: 110px; text-align: right; white-space: nowrap; }
.table-secondary { display: block; margin-top: 3px; color: var(--dashboard-muted); font-size: 12px; font-weight: 400; }
.dashboard-empty { padding: 22px; color: var(--dashboard-muted); background: #f6f8fa; border: 1px dashed #cbd6df; border-radius: 9px; text-align: center; }
.dashboard-limit-note { margin: 14px 0 0; color: var(--dashboard-muted); font-size: 13px; }

.dashboard-progress { height: 9px; margin-bottom: 16px; overflow: hidden; background: #e5ebf0; border-radius: 99px; }
.dashboard-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--dashboard-blue), var(--dashboard-teal)); border-radius: inherit; }
.requirement-list { display: grid; gap: 11px; }
.requirement-card { padding: 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--dashboard-line); border-radius: 10px; }
.requirement-card h4 { margin: 0; color: var(--dashboard-navy); font-size: 16px; }
.requirement-card p { margin: 3px 0 0; color: var(--dashboard-muted); font-size: 13px; }
.requirement-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.requirement-done { color: #fff; background: var(--dashboard-teal); }
.requirement-open { color: #81520f; background: #fff0d8; }

.activity-context { margin: 15px 0; padding: 16px; border: 1px solid var(--dashboard-line); border-radius: 10px; }
.activity-context h2 { margin: 0 0 8px; color: var(--dashboard-navy); font-size: 18px; }
.activity-context p { margin: 0; }
.activity-context-danger { background: #fff7f6; border-left: 4px solid #b74b4b; }
.activity-context-info { background: #f2f8fc; border-left: 4px solid var(--dashboard-blue); }
.activity-context-list { margin: 10px 0 0; padding-left: 20px; }
.alternative-grid { margin-top: 12px; display: grid; gap: 10px; }
.alternative-card { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--dashboard-line); border-radius: 9px; }
.alternative-card h3 { margin: 0 0 4px; color: var(--dashboard-navy); font-size: 16px; }
.alternative-card p { color: var(--dashboard-muted); font-size: 13px; }

@media (max-width: 900px) {
    .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .dashboard-hero { padding: 22px 18px; align-items: stretch; flex-direction: column; }
    .dashboard-view-title { font-size: 26px; }
    .dashboard-year-select { width: 100%; }
    .dashboard-summary { gap: 8px; }
    .summary-card { min-height: 104px; padding: 13px; }
    .summary-card strong { font-size: 23px; }
    .dashboard-recent-table th:first-child, .dashboard-recent-table td:first-child { width: auto; }
    .dashboard-panel { padding: 16px; }
    .dashboard-panel-heading, .activity-card, .alternative-card { align-items: stretch; flex-direction: column; }
    .activity-card-heading { flex-direction: column; }
    .activity-meta { grid-template-columns: 1fr; }
    .requirement-card { grid-template-columns: 32px 1fr; }
    .requirement-card .status-badge { grid-column: 2; justify-self: start; }
    .dashboard-action { width: 100%; }
}
