/* ============================================================
   PILAR 2: MISSÃO DO DIA
   ============================================================ */
#module-dashboard,
#module-dashboard * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
}

.dashboard-missao-dia-zone {
    margin-bottom: 16px;
}

.db-missao-card {
    background: linear-gradient(160deg, rgba(8,20,38,0.97) 0%, rgba(6,15,30,0.97) 100%);
    border: 1px solid rgba(46,219,127,0.22);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 0 32px rgba(46,219,127,0.06), 0 4px 24px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.db-missao-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46,219,127,0.4), rgba(0,200,212,0.3), transparent);
    pointer-events: none;
}

/* ============================================================
   EMPTY STATE GENÉRICO
   ============================================================ */
.db-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
}
.db-empty-icon { font-size: 2rem; line-height: 1; }
.db-empty-text { font-size: 0.8rem; color: #6b7280; }
.db-empty-btn {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 0.4rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.db-empty-btn:hover {
    background: rgba(96,165,250,0.2);
    border-color: rgba(96,165,250,0.5);
}

/* ============================================================
   SRS CARD — GAMIFICADO
   ============================================================ */
.db-srs-alert {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    text-align: center;
}
.db-srs-alert--ok {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.25);
    color: #86efac;
}

.db-srs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.db-srs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.25rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}
.db-srs-stat:hover { transform: translateY(-2px); filter: brightness(1.2); }

.db-srs-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.db-srs-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-align: center;
    opacity: 0.85;
}

.db-srs-stat--overdue {
    background: rgba(239,68,68,0.13);
    border-color: rgba(239,68,68,0.3);
    color: #f87171;
}
.db-srs-stat--overdue .db-srs-stat-number { color: #ef4444; }

.db-srs-stat--today {
    background: rgba(251,146,60,0.13);
    border-color: rgba(251,146,60,0.3);
    color: #fdba74;
}
.db-srs-stat--today .db-srs-stat-number { color: #f97316; }
.db-srs-stat--today:not(.db-srs-stat--zero) .db-srs-stat-number {
    animation: srs-pulse 2.2s ease-in-out infinite;
}

.db-srs-stat--soon {
    background: rgba(234,179,8,0.12);
    border-color: rgba(234,179,8,0.28);
    color: #fde68a;
}
.db-srs-stat--soon .db-srs-stat-number { color: #eab308; }

.db-srs-stat--upcoming {
    background: rgba(96,165,250,0.1);
    border-color: rgba(96,165,250,0.25);
    color: #93c5fd;
}
.db-srs-stat--upcoming .db-srs-stat-number { color: #60a5fa; }

/* Pulse no overdue se > 0 */
.db-srs-stat--overdue:not(.db-srs-stat--zero) .db-srs-stat-number {
    animation: srs-pulse 1.8s ease-in-out infinite;
}
@keyframes srs-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.db-srs-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96,165,250,0.08);
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 0.45rem;
    padding: 0.45rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}
.db-srs-cta:hover {
    background: rgba(96,165,250,0.18);
    border-color: rgba(96,165,250,0.45);
    color: #bfdbfe;
}

/* ============================================================
   PROVAS CARD — GAMIFICADO
   ============================================================ */
.db-exam-list { display: flex; flex-direction: column; gap: 0.5rem; }

.db-exam-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    transition: transform 0.15s, filter 0.15s;
}
.db-exam-card:hover { transform: translateX(3px); filter: brightness(1.1); }

.db-exam-card--ok     { background: rgba(139,92,246,0.1);  border-color: rgba(139,92,246,0.3); }
.db-exam-card--soon   { background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.35); }
.db-exam-card--urgent { background: rgba(239,68,68,0.13);  border-color: rgba(239,68,68,0.4); }
.db-exam-card--today  { background: rgba(234,179,8,0.13);  border-color: rgba(234,179,8,0.4);  animation: exam-today-glow 2s ease-in-out infinite; }
.db-exam-card--past   { background: rgba(75,85,99,0.15);   border-color: rgba(75,85,99,0.3); opacity: 0.7; }

@keyframes exam-today-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(234,179,8,0); }
    50% { box-shadow: 0 0 12px rgba(234,179,8,0.35); }
}

.db-exam-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    text-align: center;
}
.db-exam-days {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.db-exam-days--ok     { color: #a78bfa; }
.db-exam-days--soon   { color: #fb923c; }
.db-exam-days--urgent { color: #f87171; }
.db-exam-days--today  { color: #fbbf24; }
.db-exam-days--past   { color: #6b7280; }

.db-exam-days-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: inherit;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.db-exam-info { flex: 1; min-width: 0; }
.db-exam-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-exam-meta {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-exam-date {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

/* ============================================================
   OBJETIVOS CARD — GAMIFICADO
   ============================================================ */
.db-obj-list { display: flex; flex-direction: column; gap: 0.5rem; }

.db-obj-item {
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: transform 0.15s, background 0.15s;
}
.db-obj-item:hover { transform: translateX(2px); background: rgba(255,255,255,0.06); }

.db-obj-item--soon  { border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.06); }
.db-obj-item--today { border-color: rgba(234,179,8,0.4);  background: rgba(234,179,8,0.08);  animation: exam-today-glow 2s ease-in-out infinite; }
.db-obj-item--expired { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }

.db-obj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}
.db-obj-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.db-obj-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.db-obj-badge--ok       { background: rgba(34,197,94,0.15);    color: #4ade80; }
.db-obj-badge--soon     { background: rgba(251,146,60,0.18);   color: #fb923c; }
.db-obj-badge--today    { background: rgba(234,179,8,0.18);    color: #fbbf24; }
.db-obj-badge--expired  { background: rgba(239,68,68,0.15);    color: #f87171; }
.db-obj-badge--neutral  { background: rgba(156,163,175,0.12);  color: #9ca3af; }

.db-obj-meta {
    font-size: 0.68rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}
.db-obj-bar-track {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.db-obj-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}
.db-obj-bar-fill.db-obj-badge--ok      { background: linear-gradient(90deg, #22c55e, #4ade80); }
.db-obj-bar-fill.db-obj-badge--soon    { background: linear-gradient(90deg, #f97316, #fb923c); }
.db-obj-bar-fill.db-obj-badge--today   { background: linear-gradient(90deg, #d97706, #fbbf24); }
.db-obj-bar-fill.db-obj-badge--expired { background: linear-gradient(90deg, #dc2626, #f87171); }
.db-obj-bar-fill.db-obj-badge--neutral { background: #4b5563; }



/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1.35rem;
    align-items: start;
}

.dashboard-priority-zone {
    margin-bottom: 1.25rem;
}

.dashboard-left-column > .dashboard-priority-zone {
    margin-bottom: 0;
}

.dashboard-left-column,
.dashboard-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    min-width: 0;
}

#module-dashboard #weekly-grind-widget {
    margin-bottom: 0;
}

#dashboard-snapshot-card .dashboard-card-body {
    padding-top: 0.95rem;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 45%);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.06),
        transparent 28%,
        transparent 72%,
        rgba(255, 255, 255, 0.03)
    );
}

.dashboard-card-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.dashboard-card-body {
    position: relative;
    z-index: 1;
    padding: 1rem 1.1rem 1.1rem;
}

.dashboard-card--hero {
    border-color: rgba(34, 211, 238, 0.2);
    background:
        linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 44%);
    box-shadow:
        0 22px 48px rgba(2, 6, 23, 0.34),
        0 0 28px rgba(34, 211, 238, 0.08);
}

.dashboard-card-header--hero {
    padding: 1.05rem 1.2rem 0.85rem;
    border-bottom-color: rgba(34, 211, 238, 0.12);
}

.dashboard-card-title--hero {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.dashboard-card-body--hero {
    padding: 1.1rem 1.2rem 1.25rem;
}

.dashboard-card--onboarding {
    border-color: rgba(251, 191, 36, 0.16);
    background:
        linear-gradient(180deg, rgba(55, 48, 18, 0.18), rgba(15, 23, 42, 0.92)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 42%);
}

.dashboard-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dashboard-quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.14);
    color: #dbeafe;
}

.dashboard-kpis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-kpis-grid .dashboard-kpi-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.dashboard-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 5.8rem;
    padding: 1rem 1.05rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 45%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.dashboard-kpi-card:hover {
    border-color: rgba(148, 163, 184, 0.28);
    transform: translateY(-1px);
}

.dashboard-kpi-card:hover:has(.dashboard-kpi-icon--green) {
    border-color: rgba(46, 219, 127, 0.28);
}

.dashboard-kpi-card:hover:has(.dashboard-kpi-icon--teal) {
    border-color: rgba(0, 200, 212, 0.28);
}

.dashboard-kpi-card:hover:has(.dashboard-kpi-icon--blue) {
    border-color: rgba(59, 130, 246, 0.28);
}

.dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    flex-shrink: 0;
}

.dashboard-kpi-icon--green {
    background: rgba(46, 219, 127, 0.12);
    border: 1px solid rgba(46, 219, 127, 0.22);
    color: #2edb7f;
    box-shadow: 0 0 16px rgba(46, 219, 127, 0.08);
}

.dashboard-kpi-icon--teal {
    background: rgba(0, 200, 212, 0.12);
    border: 1px solid rgba(0, 200, 212, 0.22);
    color: #00c8d4;
    box-shadow: 0 0 16px rgba(0, 200, 212, 0.08);
}

.dashboard-kpi-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #60a5fa;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.08);
}

.dashboard-kpi-icon .lucide {
    width: 1.25rem;
    height: 1.25rem;
}

.dashboard-kpi-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-kpi-value {
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
}

.dashboard-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin: -0.15rem 0 1.2rem;
}

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.74)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 50%);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dashboard-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.3);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 52%);
    color: #f8fafc;
}

.dashboard-action-btn[data-state="active"] {
    border-color: rgba(74, 222, 128, 0.34);
    background:
        linear-gradient(180deg, rgba(6, 78, 59, 0.9), rgba(20, 83, 45, 0.82)),
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.18), transparent 52%);
    color: #ecfdf5;
}

.dashboard-progress-bar-container {
    margin-top: 0.75rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.95);
    overflow: hidden;
}

.dashboard-progress-bar {
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.db-mission-shell,
.db-plan-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-mission-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.db-panel-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #67e8f9;
}

.db-panel-title {
    margin: 0.35rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.015em;
}

.db-panel-subtitle {
    margin-top: 0.4rem;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
}

.db-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.db-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.db-pill--cyan {
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(8, 47, 73, 0.85);
    color: #a5f3fc;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.db-pill--emerald {
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(6, 78, 59, 0.78);
    color: #a7f3d0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.14);
}

.db-pill--amber {
    border-color: rgba(251, 191, 36, 0.26);
    background: rgba(120, 53, 15, 0.72);
    color: #fde68a;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.14);
}

.db-pill--slate {
    color: #cbd5e1;
}

.db-mission-orbit {
    --db-mission-progress: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.6rem;
    height: 8.6rem;
    border-radius: 999px;
    padding: 0.8rem;
    background:
        radial-gradient(circle at center, rgba(8, 145, 178, 0.12), rgba(8, 145, 178, 0) 58%),
        conic-gradient(from 210deg, #22d3ee 0%, #10b981 var(--db-mission-progress), rgba(30, 41, 59, 0.96) var(--db-mission-progress), rgba(30, 41, 59, 0.96) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(125, 211, 252, 0.16),
        0 0 28px rgba(34, 211, 238, 0.16),
        0 18px 34px rgba(2, 6, 23, 0.42);
}

.db-mission-orbit-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.22), rgba(15, 23, 42, 0.96) 70%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.db-mission-orbit-core strong {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.db-mission-orbit-core span {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #67e8f9;
}

.db-mission-metrics,
.db-plan-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.db-metric-card {
    min-width: 0;
    padding: 0.9rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.76)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 52%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(2, 6, 23, 0.28);
}

.db-metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.db-metric-value {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-metric-value--wrap {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.35;
}

.db-metric-value--success {
    color: #86efac;
}

.db-metric-value--warning {
    color: #fcd34d;
}

.db-metric-value--accent {
    color: #67e8f9;
}

.db-mission-mix {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.db-mission-mix-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
}

.db-mission-next,
.db-plan-briefing {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.72)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 48%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 24px rgba(59, 130, 246, 0.08);
}

.db-mission-next-label,
.db-plan-briefing-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #93c5fd;
}

.db-mission-next-title,
.db-plan-briefing-title {
    margin-top: 0.38rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.db-mission-next-meta,
.db-plan-briefing-meta {
    margin-top: 0.3rem;
    color: #94a3b8;
    font-size: 0.79rem;
    line-height: 1.45;
}

.db-mission-metrics--hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.db-mission-why {
    border-radius: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 48%);
    overflow: hidden;
}

.db-mission-why summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.db-mission-why summary::-webkit-details-marker {
    display: none;
}

.db-mission-why summary::after {
    content: "+";
    color: #67e8f9;
    font-size: 1rem;
    line-height: 1;
}

.db-mission-why[open] summary::after {
    content: "-";
}

.db-mission-why-list {
    display: grid;
    gap: 0.85rem;
    padding: 0 1rem 1rem;
}

.db-mission-why-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.56);
}

.db-mission-why-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #67e8f9;
    flex-shrink: 0;
}

.db-mission-why-icon .lucide {
    width: 1rem;
    height: 1rem;
}

.db-mission-why-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
}

.db-mission-why-text {
    margin-top: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #94a3b8;
}

.db-onboarding-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-onboarding-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.db-onboarding-title {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.db-onboarding-subtitle {
    margin-top: 0.32rem;
    max-width: 42rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #94a3b8;
}

.db-onboarding-progress {
    min-width: 11rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.db-onboarding-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #cbd5e1;
}

.db-onboarding-progress-copy strong {
    color: #fde68a;
}

.db-onboarding-progress-bar {
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.95);
    overflow: hidden;
}

.db-onboarding-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #facc15 55%, #22d3ee);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.18);
    transition: width 0.35s ease;
}

.db-onboarding-steps {
    display: grid;
    gap: 0.8rem;
}

.db-onboarding-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.58);
}

.db-onboarding-step--done {
    border-color: rgba(16, 185, 129, 0.18);
    background: rgba(6, 78, 59, 0.16);
}

.db-onboarding-step--current {
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.db-onboarding-step-index {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.94);
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.db-onboarding-step--done .db-onboarding-step-index {
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(6, 78, 59, 0.72);
}

.db-onboarding-step-copy {
    min-width: 0;
}

.db-onboarding-step-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.db-onboarding-step-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
}

.db-onboarding-step-text {
    margin-top: 0.26rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #94a3b8;
}

.db-onboarding-step-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.db-onboarding-step-status--done {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #86efac;
}

.db-onboarding-step-status--pending {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.db-onboarding-step-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(30, 41, 59, 0.88);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.db-onboarding-step-action:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 41, 59, 1);
}

.db-onboarding-step-action--primary {
    border-color: rgba(250, 204, 21, 0.22);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(59, 130, 246, 0.18));
    color: #fef3c7;
}

.db-onboarding-step-action--primary:hover {
    border-color: rgba(250, 204, 21, 0.4);
}

.db-onboarding-map {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.db-onboarding-map-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.db-onboarding-map-link:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.28);
    color: #e2e8f0;
}

.db-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.db-panel-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.db-panel-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(16, 185, 129, 0.14));
    color: #ccfbf1;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.db-panel-link:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.38);
    filter: brightness(1.08);
}

.db-panel-link--ghost {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
}

.db-panel-link--ghost:hover {
    border-color: rgba(148, 163, 184, 0.32);
}

.db-plan-progress {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.db-plan-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.db-plan-progress strong {
    color: #67e8f9;
}

.db-plan-progress-bar {
    height: 0.6rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.94);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.6);
}

.db-plan-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #10b981 55%, #f59e0b);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.2);
    transition: width 0.35s ease;
}

.db-empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.2rem 0.4rem;
}

.db-empty-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #67e8f9;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.db-empty-panel-icon .lucide {
    width: 1.35rem;
    height: 1.35rem;
}

.db-empty-panel-title {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.db-empty-panel-text {
    max-width: 28rem;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.ux-celebration-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ux-celebration-modal.hidden {
    display: none;
}

.ux-celebration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.ux-celebration-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    padding: 1.4rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(250, 204, 21, 0.24);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 36%);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.5),
        0 0 32px rgba(250, 204, 21, 0.08);
}

.ux-celebration-close {
    appearance: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
}

.ux-celebration-close .lucide {
    width: 1rem;
    height: 1rem;
}

.ux-celebration-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fde68a;
}

.ux-celebration-title {
    margin-top: 0.45rem;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.ux-celebration-text {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.ux-celebration-metrics {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.ux-celebration-metric {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.68);
}

.ux-celebration-metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ux-celebration-metric-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fef3c7;
    letter-spacing: -0.015em;
}

.ux-celebration-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.14);
    background: rgba(8, 47, 73, 0.34);
    color: #bae6fd;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ux-celebration-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ux-celebration-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.8rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.82rem;
    font-weight: 800;
    transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.ux-celebration-btn:hover {
    transform: translateY(-1px);
}

.ux-celebration-btn--primary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(34, 211, 238, 0.22));
    border-color: rgba(250, 204, 21, 0.3);
    color: #fef3c7;
}

.ux-celebration-btn--ghost {
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.ux-tour-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.ux-tour-modal.hidden {
    display: none;
}

.ux-tour-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 30%),
        rgba(2, 6, 23, 0.58);
    pointer-events: none;
}

.ux-tour-spotlight {
    position: fixed;
    z-index: 1;
    border-radius: 1.2rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow:
        0 0 0 999px rgba(2, 6, 23, 0.24),
        0 0 0 1px rgba(34, 211, 238, 0.24),
        0 18px 42px rgba(8, 145, 178, 0.14);
    background: rgba(34, 211, 238, 0.03);
    transition:
        top 0.22s ease,
        left 0.22s ease,
        width 0.22s ease,
        height 0.22s ease,
        opacity 0.18s ease;
    pointer-events: none;
}

.ux-tour-spotlight.hidden {
    display: none;
}

.ux-tour-card {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    width: min(100%, 24rem);
    padding: 1.25rem;
    border-radius: 1.3rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 36%);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.55),
        0 0 30px rgba(34, 211, 238, 0.08);
    pointer-events: auto;
}

.ux-tour-goals.hidden,
#ux-tour-steps-panel.hidden {
    display: none;
}

.ux-tour-goal-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.ux-tour-goal-btn {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ux-tour-goal-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.26);
    background: rgba(12, 22, 39, 0.92);
}

.ux-tour-goal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(8, 145, 178, 0.12);
    color: #67e8f9;
    flex-shrink: 0;
}

.ux-tour-goal-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.ux-tour-goal-copy strong {
    font-size: 0.93rem;
    font-weight: 800;
    color: #f8fafc;
}

.ux-tour-goal-copy small {
    color: #94a3b8;
    font-size: 0.77rem;
    line-height: 1.45;
}

.ux-tour-close {
    appearance: none;
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
}

.ux-tour-close .lucide {
    width: 1rem;
    height: 1rem;
}

.ux-tour-step-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-right: 2.4rem;
}

.ux-tour-step-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #67e8f9;
}

.ux-tour-step-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
}

.ux-tour-title {
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.015em;
}

.ux-tour-text {
    margin-top: 0.7rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
}

.ux-tour-hint {
    margin-top: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.68);
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.5;
}

.ux-tour-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1rem;
}

.ux-tour-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
    width: auto;
    min-width: 0;
    flex: 1 1 calc(50% - 0.35rem);
}

.ux-tour-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.ux-tour-btn--ghost {
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
}

.ux-tour-btn--secondary {
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(8, 145, 178, 0.14);
    color: #a5f3fc;
}

.ux-tour-btn--primary {
    border-color: rgba(34, 211, 238, 0.24);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(16, 185, 129, 0.18));
    color: #ccfbf1;
}

body.ux-celebration-open {
    overflow: hidden;
}

body.ux-tour-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .db-mission-hero,
    .db-plan-metrics {
        grid-template-columns: 1fr;
    }

    .db-mission-metrics,
    .db-mission-metrics--hero,
    .db-plan-metrics,
    .dashboard-kpis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-card {
        border-radius: 0.95rem;
    }

    .dashboard-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .dashboard-card-header,
    .dashboard-card-body {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .dashboard-card-body--hero {
        padding-bottom: 1rem;
    }

    .db-onboarding-head {
        flex-direction: column;
    }

    .db-onboarding-progress {
        width: 100%;
    }

    .db-onboarding-step {
        grid-template-columns: 1fr;
    }

    .ux-celebration-actions {
        flex-direction: column;
    }

    .db-panel-actions {
        width: 100%;
    }

    .db-mission-orbit {
        width: 7.4rem;
        height: 7.4rem;
        margin: 0 auto;
    }

    .dashboard-kpi-card {
        min-height: 0;
        padding: 0.9rem;
        align-items: flex-start;
    }

    .dashboard-kpi-icon {
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 0.8rem;
    }

    .dashboard-kpi-value {
        font-size: 1.35rem;
    }

    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin: 0 0 1rem;
    }

    .dashboard-action-btn {
        min-height: 3.6rem;
        justify-content: flex-start;
        text-align: left;
        line-height: 1.25;
        padding: 0.85rem 0.9rem;
    }

    .db-metric-card {
        padding: 0.85rem 0.9rem;
    }

    .db-metric-value {
        font-size: 1.02rem;
    }

    .db-mission-why-list {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .db-mission-why-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .db-mission-why-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.7rem;
    }

    .db-onboarding-step-action,
    .ux-celebration-btn,
    .db-panel-link,
    .ux-tour-btn {
        width: 100%;
    }

    .ux-celebration-metrics {
        grid-template-columns: 1fr;
    }

    .ux-tour-card {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }

    .ux-tour-actions {
        flex-direction: column-reverse;
    }

    .ux-tour-goal-btn {
        padding: 0.85rem 0.9rem;
    }
}

@media (max-width: 520px) {
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-kpis-grid,
    .db-mission-metrics,
    .db-mission-metrics--hero,
    .db-plan-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-action-btn {
        min-height: 3.25rem;
    }

    .db-mission-orbit {
        width: 6.8rem;
        height: 6.8rem;
    }
}

/* ── Evolução Semanal de Acertos (sessões de estudo) ── */
.db-weekly-acc {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.db-weekly-acc-chart-wrap {
    position: relative;
    height: 160px;
}

.db-weekly-acc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #475569;
}

/* ── Evolução de Acertos (dashboard sparkline — provas) ── */
.db-accuracy-trend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.db-accuracy-trend-meta {
    display: flex;
    gap: 1.2rem;
    align-items: flex-end;
}

.db-accuracy-trend-avg {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #818cf8;
    letter-spacing: -0.04em;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.db-accuracy-trend-avg-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.db-accuracy-trend-delta {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.db-accuracy-trend-delta.is-up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.db-accuracy-trend-delta.is-down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.db-accuracy-trend-delta-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.db-accuracy-trend-chart-wrap {
    position: relative;
    height: 80px;
}

.db-accuracy-trend-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #475569;
}

.db-accuracy-trend-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.68rem;
    color: #818cf8;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.db-accuracy-trend-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}
