:root {
    --shell-ink: #081122;
    --shell-brand: #3b6cff;
    --shell-surface: rgba(255, 255, 255, 0.84);
    --shell-surface-strong: rgba(248, 251, 255, 0.96);
    --shell-line: rgba(11, 27, 58, 0.08);
    --shell-shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.05);
    --shell-shadow-strong: 0 24px 60px rgba(22, 35, 72, 0.18);
}

html,
body {
    font-family: 'Aptos', 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(59, 108, 255, 0.18), transparent 28%),
        radial-gradient(circle at top left, rgba(77, 188, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #f7f9fe 0%, #eef4ff 100%);
    color: var(--shell-ink);
}

body {
    min-height: 100vh;
    position: relative;
}

body::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.72), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(147, 197, 253, 0.25), transparent 18%),
        linear-gradient(135deg, rgba(59, 108, 255, 0.04), rgba(14, 26, 52, 0));
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.tracker-app-icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pin-gate-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 96px);
    padding: 2rem 1rem;
}

.pin-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.92));
    border: 1px solid rgba(11, 27, 58, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    max-width: 30rem;
    padding: 2rem;
    width: 100%;
}

.pin-card-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reminder-alert {
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.reminder-alert-warning {
    background: #fff7ed !important;
    border: 1px solid #fdba74;
    color: #9a3412 !important;
}
.reminder-alert-warning .mud-alert-icon,
.reminder-alert-warning .mud-alert-message,
.reminder-alert-warning .mud-typography,
.reminder-alert-warning .mud-chip-root {
    color: #9a3412 !important;
}
.reminder-alert-success {
    background: #ecfdf5 !important;
    border: 1px solid #86efac;
    color: #166534 !important;
}
.reminder-alert-success .mud-alert-icon,
.reminder-alert-success .mud-alert-message,
.reminder-alert-success .mud-typography,
.reminder-alert-success .mud-chip-root {
    color: #166534 !important;
}
.reminder-alert-success .mud-chip-root,
.reminder-alert-warning .mud-chip-root {
    background: transparent !important;
    font-weight: 700;
}

a,
.btn-link {
    color: #305dff;
}

.hero-card {
    background:
        radial-gradient(circle at top right, rgba(113, 161, 255, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(8, 17, 34, 0.97), rgba(37, 65, 125, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    color: #f8fbff;
    padding: 2rem 1.9rem 1.8rem;
}

.workspace-overview,
.dashboard-summary-card {
    box-shadow: var(--shell-shadow-strong);
}

.overview-kicker {
    color: rgba(191, 205, 255, 0.9);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.overview-summary {
    color: rgba(238, 243, 255, 0.88);
    max-width: 46rem;
}

.overview-stats-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    min-height: 92px;
    min-width: 0;
    overflow: hidden;
    padding: 0.9rem 1rem;
}

.overview-stat .mud-secondary-text {
    color: rgba(239, 246, 255, 0.92) !important;
}

.overview-stat .mud-typography-h6,
.overview-stat .mud-typography-body2 {
    color: #ffffff;
}

.dashboard-card-label {
    color: #334155;
    display: block;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.dashboard-card-value {
    color: #0f172a;
    line-height: 1.05;
}

.dashboard-muted-text {
    color: #475569 !important;
}

.surface-card {
    background: var(--shell-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--shell-line);
    border-radius: 24px;
    box-shadow: var(--shell-shadow-soft);
    padding: 1.35rem;
}

.section-shell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-grid .mud-grid-item {
    display: flex;
}

.section-intro-card {
    background:
        radial-gradient(circle at top right, rgba(113, 161, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.94) 100%);
    border: 1px solid rgba(147, 197, 253, 0.34);
    box-shadow: 0 22px 44px rgba(20, 33, 68, 0.08);
    padding: 1.35rem 1.4rem;
}

.section-kicker {
    color: #5b6bff;
    display: block;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.section-summary {
    color: #526075 !important;
    max-width: 52rem;
}

.planner-intro-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.timeline-intro-card {
    background:
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(236, 254, 255, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.resources-intro-card {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(245, 243, 255, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.certification-intro-card {
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.notes-intro-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(240, 253, 244, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.copilot-intro-card {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.content-card,
.editor-card,
.planner-table-card,
.resources-library-card,
.notes-library-card,
.timeline-month-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.planner-focus-stat,
.certification-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    min-height: 104px;
    padding: 1rem;
}

.planner-focus-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.planner-focus-stat-risk,
.certification-summary-warning {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.planner-focus-stat-core,
.certification-summary-primary {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.planner-focus-stat-active,
.certification-summary-info {
    background: linear-gradient(180deg, #ecfeff 0%, #cffafe 100%);
}

.planner-focus-stat-optional {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.planner-focus-stat-urgent {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}

.planner-focus-stat-due {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.planner-focus-stat-events {
    background: linear-gradient(180deg, #ecfeff 0%, #cffafe 100%);
}

.planner-urgent-ramp-card {
    background:
        radial-gradient(circle at top right, rgba(225, 29, 72, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 251, 235, 0.94));
    border: 1px solid rgba(225, 29, 72, 0.2);
    box-shadow: 0 22px 44px rgba(136, 19, 55, 0.1);
}

.planner-sprint-grid .mud-grid-item,
.planner-item-grid .mud-grid-item,
.planner-event-watch-card .mud-grid-item,
.timeline-event-runway-card .mud-grid-item {
    display: flex;
}

.planner-sprint-step,
.planner-event-item {
    appearance: none;
    background: var(--shell-surface-strong);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: 100%;
}

.planner-sprint-step {
    align-items: center;
    border-radius: 16px;
    display: flex;
    gap: 0.75rem;
    min-height: 76px;
    padding: 0.8rem;
}

.planner-sprint-step:hover,
.planner-sprint-step:focus-visible,
.planner-event-item:hover,
.planner-event-item:focus-visible {
    border-color: rgba(59, 108, 255, 0.42);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.planner-sprint-step-number {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
}

.planner-sprint-step-content {
    display: block;
    flex: 1;
    min-width: 0;
}

.planner-sprint-step-active {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: inset 4px 0 0 #2563eb;
}

.planner-sprint-step-complete {
    background: rgba(240, 253, 244, 0.94);
    border-color: rgba(34, 197, 94, 0.24);
}

.planner-sprint-step-blocked {
    background: rgba(254, 242, 242, 0.94);
    border-color: rgba(239, 68, 68, 0.28);
}

.planner-event-watch-card {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.96), rgba(248, 250, 255, 0.94));
    border-color: rgba(8, 145, 178, 0.2);
}

.planner-event-item {
    border-radius: 16px;
    min-height: 116px;
    padding: 1rem;
}

.certification-summary-success {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.certification-goal-card,
.certification-catalog-entry {
    background: var(--shell-surface-strong);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    height: 100%;
    padding: 1.2rem;
}

.certification-goal-card {
    border-left: 4px solid #d97706;
}

.certification-catalog-entry {
    border-left: 4px solid #4f46e5;
}

.certification-summary-grid .mud-grid-item,
.certification-goals-card .mud-grid-item,
.certification-catalog-card .mud-grid-item {
    display: flex;
}

.certification-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.certification-provider-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.certification-provider-filters .mud-button-root {
    border-radius: 999px !important;
}

.dashboard-summary-card,
.dashboard-stat-card,
.dashboard-video-tracker-card,
.dashboard-metric-card,
.dashboard-panel-card {
    width: 100%;
}

.dashboard-stat-card,
.dashboard-video-tracker-card,
.dashboard-metric-card,
.dashboard-panel-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.dashboard-hero-grid .mud-grid-item,
.dashboard-content-grid .mud-grid-item {
    display: flex;
}

.dashboard-summary-card {
    min-height: 100%;
}

.dashboard-side-stack {
    min-height: 100%;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    min-height: 188px;
    padding: 1.55rem 1.5rem 1.4rem;
}

.dashboard-video-tracker-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 188px;
    padding: 1.55rem 1.5rem 1.4rem;
}

.dashboard-metric-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 150px;
    text-align: left;
}

.dashboard-panel-card {
    min-height: 100%;
}

.dashboard-accent-blue {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(226, 238, 255, 0.94) 100%);
}

.dashboard-accent-teal {
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.98) 0%, rgba(220, 252, 247, 0.94) 100%);
}

.dashboard-accent-green {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.94) 100%);
}

.dashboard-accent-sky {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(224, 242, 254, 0.94) 100%);
}

.dashboard-accent-amber {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.94) 100%);
}

.dashboard-accent-rose {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98) 0%, rgba(255, 228, 230, 0.94) 100%);
}

.dashboard-accent-indigo {
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.98) 0%, rgba(224, 231, 255, 0.94) 100%);
}

.dashboard-accent-cyan {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98) 0%, rgba(207, 250, 254, 0.94) 100%);
}

.dashboard-accent-violet {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(237, 233, 254, 0.94) 100%);
}

.dashboard-accent-peach {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(254, 215, 170, 0.32) 100%);
}

.dashboard-accent-slate {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.94) 100%);
}

.dashboard-accent-blue,
.dashboard-accent-teal,
.dashboard-accent-green,
.dashboard-accent-sky,
.dashboard-accent-amber,
.dashboard-accent-rose,
.dashboard-accent-indigo,
.dashboard-accent-cyan,
.dashboard-accent-violet,
.dashboard-accent-peach,
.dashboard-accent-slate {
    position: relative;
    overflow: hidden;
}

.dashboard-accent-blue::before,
.dashboard-accent-teal::before,
.dashboard-accent-green::before,
.dashboard-accent-sky::before,
.dashboard-accent-amber::before,
.dashboard-accent-rose::before,
.dashboard-accent-indigo::before,
.dashboard-accent-cyan::before,
.dashboard-accent-violet::before,
.dashboard-accent-peach::before,
.dashboard-accent-slate::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 24px 0 0 24px;
}

.dashboard-accent-blue::before { background: #2563eb; }
.dashboard-accent-teal::before { background: #0f766e; }
.dashboard-accent-green::before { background: #16a34a; }
.dashboard-accent-sky::before { background: #0284c7; }
.dashboard-accent-amber::before { background: #d97706; }
.dashboard-accent-rose::before { background: #e11d48; }
.dashboard-accent-indigo::before { background: #4f46e5; }
.dashboard-accent-cyan::before { background: #0891b2; }
.dashboard-accent-violet::before { background: #7c3aed; }
.dashboard-accent-peach::before { background: #ea580c; }
.dashboard-accent-slate::before { background: #475569; }

.dashboard-panel-card .mud-secondary-text,
.dashboard-stat-card .mud-secondary-text,
.dashboard-video-tracker-card .mud-secondary-text,
.dashboard-metric-card .mud-secondary-text {
    color: #475569 !important;
}

.dashboard-panel-card .mud-typography-h6,
.dashboard-panel-card .mud-list-item-text-primary,
.dashboard-panel-card .mud-typography-subtitle2,
.dashboard-stat-card .mud-typography-h3,
.dashboard-stat-card .mud-typography-h5,
.dashboard-video-tracker-card .mud-typography-h5,
.dashboard-metric-card .mud-typography-h5 {
    color: #0f172a;
}

.dashboard-panel-card .mud-alert {
    border-radius: 18px;
}

.dashboard-focus-list {
    margin: 0;
    padding: 0;
}

.dashboard-panel-card .mud-list-item {
    border-radius: 16px;
    margin-bottom: 0.5rem;
    padding: 0.85rem 0;
}

.dashboard-panel-card .mud-list-item:hover {
    background: rgba(226, 232, 240, 0.42);
}

.stat-card,
.metric-card,
.resource-card,
.note-card,
.timeline-entry {
    border-radius: 20px;
}

.stat-card {
    min-height: 170px;
}

.metric-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 146px;
    text-align: center;
}

.resource-card,
.note-card,
.timeline-entry,
.chat-message {
    background: var(--shell-surface-strong);
    border: 1px solid rgba(48, 93, 255, 0.08);
    padding: 1.05rem;
}

.resource-card,
.note-card,
.timeline-entry {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-card:hover,
.note-card:hover,
.timeline-entry:hover {
    border-color: rgba(59, 108, 255, 0.18);
    box-shadow: 0 22px 44px rgba(20, 33, 68, 0.10);
    transform: translateY(-2px);
}

.announcement-toolbar {
    align-items: center;
}

.announcement-seen-toggle {
    margin-left: auto;
}

.announcement-feed-list {
    max-height: 52rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.announcement-feed-list > * {
    width: 100%;
}

.announcement-card {
    display: block;
    width: 100%;
}

@media (max-width: 959.98px) {
    .announcement-seen-toggle {
        margin-left: 0;
    }

    .announcement-feed-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

.chat-shell {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 2.2fr) minmax(18rem, 1fr);
}

.chat-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 255, 0.94) 100%);
    min-height: 32rem;
}

.chat-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 34rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.chat-message.user-message {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.14), rgba(124, 77, 255, 0.08));
    border-color: rgba(79, 124, 255, 0.2);
}

.chat-message.assistant-message {
    background: rgba(255, 255, 255, 0.94);
}

.chat-message.system-message {
    background: rgba(15, 23, 42, 0.04);
    border-style: dashed;
}

.chat-input-area {
    border-top: 1px solid rgba(11, 27, 58, 0.08);
    margin-top: 1rem;
    padding-top: 1rem;
}

.chat-sidebar {
    align-self: start;
    display: grid;
    gap: 1rem;
}

.chat-sidebar .surface-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 249, 255, 0.94) 100%);
}

.chat-empty {
    align-items: center;
    color: rgba(8, 17, 34, 0.68);
    display: flex;
    justify-content: center;
    min-height: 20rem;
    text-align: center;
}

.typing-indicator {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@media (max-width: 1100px) {
    .chat-shell {
        grid-template-columns: 1fr;
    }

    .overview-stats-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 1rem;
    }

    .video-summary-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .overview-stats-grid {
        grid-template-columns: 1fr;
    }

    .tracker-tabs .mud-tabs-tabbar {
        padding: 0.35rem;
    }
}

.focus-item {
    border-bottom: 1px solid rgba(11, 27, 58, 0.06);
}

.focus-item:last-child {
    border-bottom: none;
}

.reminder-alert {
    border-radius: 18px;
}

.row-completed {
    background: rgba(34, 197, 94, 0.08);
}

.row-blocked {
    background: rgba(239, 68, 68, 0.08);
}

.row-overdue {
    background: rgba(254, 226, 226, 0.58);
}

.row-due-soon {
    background: rgba(254, 243, 199, 0.42);
}

.row-nice-to-have {
    background: rgba(241, 245, 249, 0.56);
}

.planner-item-card {
    background: var(--shell-surface-strong);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem;
    width: 100%;
}

.planner-item-card.row-completed {
    background: rgba(240, 253, 244, 0.94);
}

.planner-item-card.row-blocked,
.planner-item-card.row-overdue {
    background: rgba(254, 242, 242, 0.94);
}

.planner-item-card.row-due-soon {
    background: rgba(255, 251, 235, 0.94);
}

.planner-item-card.row-nice-to-have {
    background: rgba(248, 250, 252, 0.94);
}

.planner-item-domain {
    color: #526075 !important;
    display: block;
    letter-spacing: 0.04em;
}

.planner-item-progress {
    display: grid;
    gap: 0.45rem;
}

.planner-item-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 0.85rem;
}

.planner-due {
    display: block;
    font-weight: 600;
    margin-top: 0.2rem;
}

.planner-due-overdue {
    color: #b91c1c !important;
}

.planner-due-soon {
    color: #b45309 !important;
}

.flex-1 {
    flex: 1 1 18rem;
}

.tracker-tabs {
    margin-top: 0.75rem;
}

.tracker-tabs .mud-tabs-tabbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 27, 58, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(20, 33, 68, 0.08);
    padding: 0.35rem 0.75rem;
}

.tracker-tabs .mud-tab {
    border-radius: 16px;
    min-height: 3rem;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tracker-tabs .mud-tab:hover {
    background: rgba(59, 108, 255, 0.06);
    transform: translateY(-1px);
}

.tracker-tabs .mud-tab.mud-tab-active {
    background: rgba(59, 108, 255, 0.10);
}

.surface-card .mud-input-control,
.surface-card .mud-select,
.surface-card .mud-picker,
.surface-card .mud-button-root,
.surface-card .mud-alert,
.surface-card .mud-expansion-panel,
.surface-card .mud-table {
    position: relative;
    z-index: 1;
}

.surface-card .mud-input-root {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
}

.surface-card .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.36) !important;
}

.surface-card .mud-input-control .mud-input-label,
.surface-card .mud-input-control .mud-input-adornment,
.surface-card .mud-input-control input,
.surface-card .mud-input-control textarea {
    color: #0f172a;
}

.surface-card .mud-button-root {
    border-radius: 14px;
    letter-spacing: 0.01em;
}

.surface-card .mud-alert {
    border-radius: 18px;
}

.surface-card .mud-table {
    background: transparent;
}

.surface-card .mud-table-container {
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;
    overflow-x: auto;
}

.surface-card .mud-table-head .mud-table-cell {
    background: rgba(241, 245, 249, 0.88);
    color: #334155;
    font-weight: 700;
}

.surface-card .mud-table-body .mud-table-row:hover {
    background: rgba(239, 246, 255, 0.74);
}

.surface-card .mud-expansion-panels {
    gap: 0.8rem;
}

.surface-card .mud-expansion-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;
    overflow: hidden;
}

.surface-card .mud-expansion-panel-header {
    padding: 0.95rem 1rem;
}

.surface-card .mud-expansion-panel-content {
    padding-top: 0.25rem;
}

.video-shell {
    align-items: stretch;
}

.video-shell .mud-grid-item {
    display: flex;
}

.video-sidebar-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.9));
    min-height: 100%;
    padding: 1.4rem;
}

.video-canvas-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.92));
    min-height: 100%;
    padding: 1.4rem;
}

.video-canvas-header {
    background: linear-gradient(135deg, rgba(59, 108, 255, 0.08), rgba(14, 26, 52, 0.02));
    border: 1px solid rgba(59, 108, 255, 0.08);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.video-summary-chips {
    justify-content: flex-end;
}

.video-add-button {
    align-self: stretch;
    box-shadow: 0 12px 26px rgba(59, 108, 255, 0.24);
    min-height: 56px;
}

.video-channel-entry-row {
    align-items: flex-start;
}

.video-channel-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94));
    padding: 1rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    overflow: hidden;
    padding: 1rem;
}

.video-filter-bar {
    align-items: stretch;
}

.video-filter-field {
    flex: 1 1 13rem;
    min-width: 0;
}

.video-card-header {
    gap: 0.9rem;
}

.video-card-header > div {
    min-width: 0;
}

.video-card-actions {
    gap: 0.35rem 0.5rem;
}

.content-card,
.editor-card,
.planner-table-card,
.resources-library-card,
.notes-library-card,
.timeline-month-card,
.video-sidebar-card,
.video-canvas-card {
    width: 100%;
}

.notes-library-card,
.resources-library-card,
.planner-table-card {
    min-height: 100%;
}

.note-card,
.resource-card,
.timeline-entry,
.video-channel-card,
.video-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.video-thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    display: block;
    margin-bottom: 0.35rem;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.overview-action-pill,
.dashboard-action-pill {
    border-radius: 999px !important;
    min-height: 2rem;
}

.overview-stat-button,
.dashboard-metric-button,
.planner-focus-button {
    appearance: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.overview-stat-button {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.overview-stat-button:hover,
.overview-stat-button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.42);
    outline: none;
    transform: translateY(-2px);
}

.overview-stat-label {
    color: rgba(239, 246, 255, 0.86);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.overview-stat-value {
    color: #ffffff;
    display: block;
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    font-weight: 700;
    line-height: 1;
    margin-top: 0.35rem;
}

.overview-stat-action {
    color: rgba(219, 234, 254, 0.92) !important;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.25rem;
}

.dashboard-metric-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-metric-button:hover,
.dashboard-metric-button:focus-visible,
.planner-focus-button:hover,
.planner-focus-button:focus-visible {
    border-color: rgba(59, 108, 255, 0.42);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.dashboard-card-action,
.planner-focus-action {
    color: #305dff !important;
    font-weight: 700;
    margin-top: 0.2rem;
}

.planner-focus-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-history-preview {
    padding: 1.5rem;
}

.dashboard-history-recent {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 18px;
    padding: 1rem;
}

.dashboard-history-event {
    align-items: flex-start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0;
}

.dashboard-history-event:last-child {
    border-bottom: 0;
}

.history-intro-card {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(236, 253, 245, 0.98) 0%, rgba(248, 250, 255, 0.95) 100%);
}

.tools-intro-card {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(248, 250, 255, 0.95) 100%);
}

.history-pride-callout {
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
}

.history-summary-grid .mud-grid-item,
.learning-tools-grid .mud-grid-item {
    display: flex;
}

.history-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding: 1rem;
    width: 100%;
}

.history-summary-blue {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.history-summary-green {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.history-summary-violet {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.history-summary-amber {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.history-heatmap-card,
.history-timeline-card,
.history-empty-card {
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.history-empty-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 18rem;
    justify-content: center;
    text-align: center;
}

.learning-heatmap-shell {
    min-width: 0;
    width: 100%;
}

.learning-heatmap-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.25rem 0.15rem 0.65rem;
    scrollbar-color: rgba(79, 124, 255, 0.55) rgba(226, 232, 240, 0.7);
    width: 100%;
}

.learning-heatmap-grid {
    display: grid;
    gap: 6px;
    grid-auto-columns: 18px;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 18px);
    min-width: max-content;
}

.learning-day-cell {
    border: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 3px;
    display: inline-block;
    height: 18px;
    width: 18px;
}

.learning-day-button {
    appearance: none;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.learning-day-button:hover,
.learning-day-button:focus-visible,
.learning-day-selected {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(59, 108, 255, 0.24);
    outline: none;
}

.learning-day-level-0 {
    background: #e8edf5;
}

.learning-day-level-1 {
    background: #bbf7d0;
}

.learning-day-level-2 {
    background: #4ade80;
}

.learning-day-level-3 {
    background: #16a34a;
}

.learning-day-level-4 {
    background: #166534;
}

.learning-heatmap-compact .learning-heatmap-grid {
    gap: 8px;
    grid-auto-columns: 16px;
    grid-template-rows: repeat(7, 16px);
}

.learning-heatmap-compact .learning-day-cell {
    height: 16px;
    width: 16px;
}

.learning-heatmap-legend {
    gap: 0.3rem !important;
}

.learning-heatmap-scroll-hint {
    display: none;
}

.history-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    min-width: 0;
}

.history-filter-button {
    border-radius: 999px !important;
}

.history-day-detail {
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 1rem;
}

.history-activity-row {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 1rem;
}

.history-month-section {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.history-month-header {
    margin-bottom: 1rem;
}

.learning-tool-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 5px solid #3b6cff;
    border-radius: 22px;
    min-height: 100%;
    padding: 1.3rem;
    width: 100%;
}

.learning-tool-azure {
    border-left-color: #0284c7;
}

.learning-tool-foundry {
    border-left-color: #7c3aed;
}

.learning-tool-github {
    border-left-color: #334155;
}

.learning-tool-workflows {
    border-left-color: #d97706;
}

.learning-tool-icon {
    background: linear-gradient(135deg, #244fcc, #7c3aed) !important;
    color: white !important;
}

.learning-tool-use-case {
    background: rgba(239, 246, 255, 0.8);
    border: 1px solid rgba(59, 108, 255, 0.12);
    border-radius: 16px;
    padding: 0.85rem;
}

.timeline-recovery-card {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 247, 237, 0.94));
    border-color: rgba(244, 63, 94, 0.18);
}

.timeline-optional-backlog-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
}

.timeline-entry-actionable {
    width: 100%;
}

.timeline-event-runway-card {
    background:
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(236, 254, 255, 0.96), rgba(248, 250, 255, 0.94));
    border-color: rgba(8, 145, 178, 0.2);
}

.timeline-event-card {
    background: var(--shell-surface-strong);
    border: 1px solid rgba(8, 145, 178, 0.22);
    border-radius: 18px;
    padding: 1rem;
    width: 100%;
}

.reconnect-modal {
    align-items: center;
    background: rgba(8, 17, 34, 0.72);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1500;
}

.reconnect-modal.components-reconnect-show,
.reconnect-modal.components-reconnect-failed,
.reconnect-modal.components-reconnect-rejected {
    display: flex;
}

.reconnect-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(79, 124, 255, 0.22);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(8, 17, 34, 0.32);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 30rem;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

.reconnect-title {
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0;
}

.reconnect-description {
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.reconnect-button {
    background: #4f7cff;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-top: 0.25rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.2rem;
}

.reconnect-button:hover,
.reconnect-button:focus-visible {
    background: #315de0;
    outline: 3px solid rgba(79, 124, 255, 0.26);
    outline-offset: 2px;
}

@media (max-width: 959.98px) {
    .video-summary-chips {
        justify-content: flex-start;
    }

    .video-card-header {
        flex-direction: column;
    }

    .dashboard-history-recent {
        margin-top: 1rem;
    }

    .history-pride-callout {
        margin-top: 1rem;
    }

    .history-filter-bar {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .workspace-overview {
        padding: 1.4rem 1rem;
    }

    .workspace-overview .mud-typography-h3 {
        font-size: clamp(2rem, 12vw, 3rem);
        line-height: 1.05;
    }

    .overview-stat {
        min-height: 88px;
    }

    .overview-stat-value {
        font-size: 1.85rem;
    }

    .history-heatmap-card {
        padding-inline: 1rem;
    }

    .history-filter-bar,
    .certification-provider-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .history-filter-bar .mud-button-root,
    .certification-provider-filters .mud-button-root {
        min-width: 0;
        padding-inline: 0.55rem;
        width: 100%;
    }

    .learning-heatmap-scroll-hint {
        display: block;
        margin: 0.25rem 0 0.4rem;
    }

    .history-day-detail {
        padding: 0.85rem;
    }

    .history-activity-row {
        padding: 0.85rem;
    }

    .certification-goal-card,
    .certification-catalog-entry {
        padding: 1rem;
    }
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mt-auto {
    margin-top: auto !important;
}

.d-block {
    display: block;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
