/*
 * Dashboards area: staff home (/admin widgets) and the student / learner portal home (/portal).
 * Institution colours come from --utc-brand (navy), --utc-brand-2 (maroon), --utc-brand-3 (gold),
 * injected by App\Support\Theme. Tints use color-mix() against --utc-card so dark mode follows.
 */

:root {
    --utc-dashboards-navy: var(--utc-brand, #1f2a44);
    --utc-dashboards-maroon: var(--utc-brand-2, #7a1f2b);
    --utc-dashboards-gold: var(--utc-brand-3, #c9a227);
    --utc-dashboards-teal: #0f766e;
    --utc-dashboards-purple: #6d28d9;
    --utc-dashboards-green: #15803d;
    --utc-dashboards-red: #b91c1c;
    --utc-dashboards-blue: #1d4ed8;
    --utc-dashboards-pink: #be185d;
    --utc-dashboards-orange: #c2410c;
    --utc-dashboards-gray: #64748b;
    --utc-dashboards-line: var(--utc-line, #e5e7eb);
    --utc-dashboards-radius: 16px;
}
.dark {
    /* Brighter variants read better on dark cards. */
    --utc-dashboards-navy: #93a8d6;
    --utc-dashboards-maroon: #f0a6b0;
    --utc-dashboards-gold: #f2cf5b;
    --utc-dashboards-teal: #2dd4bf;
    --utc-dashboards-purple: #b69cf8;
    --utc-dashboards-green: #4ade80;
    --utc-dashboards-red: #f87171;
    --utc-dashboards-blue: #93c5fd;
    --utc-dashboards-pink: #f9a8d4;
    --utc-dashboards-orange: #fdba74;
    --utc-dashboards-gray: #a1a1aa;
}

/* ---------- tones: every coloured element reads --t ---------- */
.utc-dashboards-tone-navy { --t: var(--utc-dashboards-navy); }
.utc-dashboards-tone-maroon { --t: var(--utc-dashboards-maroon); }
.utc-dashboards-tone-gold { --t: var(--utc-dashboards-gold); }
.utc-dashboards-tone-teal { --t: var(--utc-dashboards-teal); }
.utc-dashboards-tone-purple { --t: var(--utc-dashboards-purple); }
.utc-dashboards-tone-green { --t: var(--utc-dashboards-green); }
.utc-dashboards-tone-red { --t: var(--utc-dashboards-red); }
.utc-dashboards-tone-blue { --t: var(--utc-dashboards-blue); }
.utc-dashboards-tone-pink { --t: var(--utc-dashboards-pink); }
.utc-dashboards-tone-orange { --t: var(--utc-dashboards-orange); }
.utc-dashboards-tone-gray { --t: var(--utc-dashboards-gray); }

.utc-dashboards-icon { width: 20px; height: 20px; flex: none; }
.utc-dashboards-muted { color: var(--utc-muted); font-size: .8rem; }
.utc-dashboards-empty { color: var(--utc-muted); font-size: .875rem; padding: 10px 0; }
.utc-dashboards-text-ok { color: var(--utc-ok); }
.utc-dashboards-text-warn { color: var(--utc-warn); }
.utc-dashboards-text-err { color: var(--utc-err); }
.utc-dashboards-more { font-size: .8rem; font-weight: 600; color: var(--utc-accent); margin-left: auto; }

/* ---------- card + header ---------- */
.utc-dashboards-card {
    background: var(--utc-card); color: var(--utc-text);
    border: 1px solid var(--utc-line); border-radius: var(--utc-dashboards-radius);
    padding: 18px 20px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    height: 100%;
}
.utc-dashboards-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.utc-dashboards-head-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 38px; height: 38px; border-radius: 12px; background: var(--t); color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--t) 35%, transparent);
}
.dark .utc-dashboards-head-icon { color: #111; }
.utc-dashboards-head-text { min-width: 0; flex: 1; }
.utc-dashboards-head-text h3 { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.25; }
.utc-dashboards-head-text p { color: var(--utc-muted); font-size: .8rem; margin: 2px 0 0; }
.utc-dashboards-head-link { font-size: .8rem; font-weight: 600; color: var(--utc-accent); white-space: nowrap; }
.utc-dashboards-subhead {
    display: flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--utc-muted); margin: 16px 0 8px;
}
.utc-dashboards-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; }

/* ---------- welcome banner ---------- */
.utc-dashboards-banner {
    position: relative; overflow: hidden; color: #fff;
    border-radius: 20px; padding: 22px 24px 26px;
    background:
        radial-gradient(circle at 92% -20%, color-mix(in srgb, var(--utc-brand-3, #c9a227) 55%, transparent) 0, transparent 38%),
        linear-gradient(120deg, var(--utc-brand, #1f2a44) 0%, color-mix(in srgb, var(--utc-brand, #1f2a44) 55%, var(--utc-brand-2, #7a1f2b)) 55%, var(--utc-brand-2, #7a1f2b) 100%);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--utc-brand, #1f2a44) 30%, transparent);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.utc-dashboards-banner::after {
    content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.utc-dashboards-banner-main { display: flex; align-items: center; gap: 16px; min-width: 0; position: relative; z-index: 1; }
.utc-dashboards-banner-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; background: rgba(255, 255, 255, .95); padding: 5px; flex: none; }
.utc-dashboards-banner-avatar {
    width: 58px; height: 58px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; background: var(--utc-brand-3, #c9a227); color: #1b1b1b;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}
.utc-dashboards-eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin: 0; }
.utc-dashboards-banner-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; margin: 2px 0 8px; line-height: 1.2; }
.utc-dashboards-banner-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.utc-dashboards-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600;
    padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}
.utc-dashboards-chip-gold { background: var(--utc-brand-3, #c9a227); color: #1b1b1b; border-color: transparent; }
.utc-dashboards-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.utc-dashboards-action {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .85rem;
    border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px);
    transition: background .15s, transform .15s;
}
.utc-dashboards-action:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.utc-dashboards-action .utc-dashboards-icon { width: 18px; height: 18px; color: var(--utc-brand-3, #c9a227); }
.utc-dashboards-banner-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .12); }
.utc-dashboards-banner-progress span { display: block; height: 100%; background: var(--utc-brand-3, #c9a227); border-radius: 0 4px 4px 0; }

/* ---------- number tiles ---------- */
.utc-dashboards-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.utc-dashboards-tiles-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.utc-dashboards-tile {
    --t: var(--utc-dashboards-navy);
    position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 14px 16px 14px 16px; border-radius: 14px; color: var(--utc-text);
    background: linear-gradient(145deg, color-mix(in srgb, var(--t) 14%, var(--utc-card)) 0%, var(--utc-card) 75%);
    border: 1px solid color-mix(in srgb, var(--t) 22%, var(--utc-line));
    overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.utc-dashboards-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t); }
a.utc-dashboards-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--t) 22%, transparent); }
.utc-dashboards-tile-icon {
    position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--t) 18%, transparent); color: var(--t);
}
.utc-dashboards-tile-label { font-size: .78rem; color: var(--utc-muted); font-weight: 600; padding-right: 40px; }
.utc-dashboards-tile-value { font-size: 1.55rem; font-weight: 800; color: var(--t); line-height: 1.2; overflow-wrap: anywhere; }
:root:not(.dark) .utc-dashboards-tone-gold .utc-dashboards-tile-value { color: #a16207; } /* gold text needs more contrast on white */
.utc-dashboards-tile-detail { font-size: .75rem; color: var(--utc-muted); }
.utc-dashboards-trend-up { color: var(--utc-ok); font-weight: 600; }
.utc-dashboards-trend-down { color: var(--utc-err); font-weight: 600; }

/* ---------- progress meters ---------- */
.utc-dashboards-meter { margin-bottom: 12px; }
.utc-dashboards-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .875rem; }
.utc-dashboards-bar { height: 10px; border-radius: 999px; background: var(--utc-chip); overflow: hidden; margin: 5px 0 3px; }
.utc-dashboards-bar span { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.utc-dashboards-bar-ok { background: linear-gradient(90deg, #22c55e, var(--utc-dashboards-green)); }
.utc-dashboards-bar-warn { background: linear-gradient(90deg, var(--utc-dashboards-gold), #d97706); }
.utc-dashboards-bar-err { background: linear-gradient(90deg, #f87171, var(--utc-dashboards-red)); }
.utc-dashboards-bar-maroon { background: linear-gradient(90deg, color-mix(in srgb, var(--utc-dashboards-maroon) 60%, #fff), var(--utc-dashboards-maroon)); }
.utc-dashboards-bar-navy { background: linear-gradient(90deg, color-mix(in srgb, var(--utc-dashboards-navy) 60%, #fff), var(--utc-dashboards-navy)); }

.utc-dashboards-eval { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--utc-line); }
.utc-dashboards-stars {
    font-size: 1.1rem; letter-spacing: 2px; line-height: 1;
    background: linear-gradient(90deg, var(--utc-dashboards-gold) var(--utc-dashboards-stars, 0%), var(--utc-chip) var(--utc-dashboards-stars, 0%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- results pipeline stacked bar ---------- */
.utc-dashboards-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--utc-chip); gap: 2px; }
.utc-dashboards-stack span { display: block; height: 100%; }
.utc-dashboards-stack-draft { background: #94a3b8; }
.utc-dashboards-stack-submitted { background: var(--utc-dashboards-blue); }
.utc-dashboards-stack-verified { background: var(--utc-dashboards-gold); }
.utc-dashboards-stack-approved { background: var(--utc-dashboards-purple); }
.utc-dashboards-stack-published { background: var(--utc-dashboards-green); }
.utc-dashboards-stack-returned { background: var(--utc-dashboards-red); }
.utc-dashboards-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; padding: 0; list-style: none; font-size: .8rem; }
.utc-dashboards-legend-col { flex-direction: column; }
.utc-dashboards-legend li { display: inline-flex; align-items: center; gap: 6px; }
.utc-dashboards-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

/* ---------- list rows ---------- */
.utc-dashboards-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--utc-line); font-size: .875rem; }
.utc-dashboards-row:last-child { border-bottom: 0; }
.utc-dashboards-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.utc-dashboards-row-main small { color: var(--utc-muted); font-size: .75rem; }
.utc-dashboards-row-main a, .utc-dashboards-card a:not(.utc-btn):not(.utc-dashboards-tile):not(.utc-dashboards-queue-item):not(.utc-dashboards-course) { color: var(--utc-accent); }
a.utc-dashboards-course { color: var(--utc-text); transition: transform .15s, box-shadow .15s; }
a.utc-dashboards-course:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.utc-dashboards-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; background: var(--utc-dashboards-navy); color: #fff;
}
.dark .utc-dashboards-avatar { color: #111; }
.utc-dashboards-pill {
    --t: var(--utc-dashboards-gray);
    display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
    background: color-mix(in srgb, var(--t) 15%, transparent); color: var(--t);
}
.utc-dashboards-pill-navy { --t: var(--utc-dashboards-navy); }
.utc-dashboards-pill-maroon { --t: var(--utc-dashboards-maroon); }
.utc-dashboards-pill-gold { --t: #a16207; }
.dark .utc-dashboards-pill-gold { --t: var(--utc-dashboards-gold); }
.utc-dashboards-pill-teal { --t: var(--utc-dashboards-teal); }
.utc-dashboards-pill-purple { --t: var(--utc-dashboards-purple); }
.utc-dashboards-pill-green { --t: var(--utc-dashboards-green); }
.utc-dashboards-pill-red { --t: var(--utc-dashboards-red); }
.utc-dashboards-pill-blue { --t: var(--utc-dashboards-blue); }
.utc-dashboards-pill-orange { --t: var(--utc-dashboards-orange); }
.utc-dashboards-pill-gray { --t: var(--utc-dashboards-gray); }
.utc-dashboards-pill-urgent { --t: var(--utc-dashboards-red); }
.utc-dashboards-pill-important { --t: var(--utc-dashboards-orange); }
.utc-dashboards-pill-normal { --t: var(--utc-dashboards-blue); }

.utc-dashboards-table td, .utc-dashboards-table th { padding: 7px 8px; }
.utc-dashboards-check { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.utc-dashboards-check small { font-weight: 500; font-size: .7rem; opacity: .8; }
.utc-dashboards-check-ok { background: var(--utc-ok-soft); color: var(--utc-ok); }
.utc-dashboards-check-pending { background: var(--utc-warn-soft); color: var(--utc-warn); }
.utc-dashboards-check-missing { background: var(--utc-err-soft); color: var(--utc-err); }

/* ---------- registrar work queues ---------- */
.utc-dashboards-queue { display: grid; gap: 8px; }
.utc-dashboards-queue-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--utc-text);
    background: color-mix(in srgb, var(--t) 10%, var(--utc-card)); border: 1px solid color-mix(in srgb, var(--t) 25%, var(--utc-line));
    font-size: .85rem;
}
.utc-dashboards-queue-item strong { font-size: 1.3rem; color: var(--t); min-width: 36px; text-align: center; }
a.utc-dashboards-queue-item:hover { border-color: var(--t); }

/* ---------- conic-gradient ring ---------- */
.utc-dashboards-ring-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utc-dashboards-ring {
    --p: 0; --c: var(--utc-dashboards-navy); --size: 112px;
    width: var(--size); height: var(--size); border-radius: 50%; flex: none; position: relative;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--utc-chip) 0);
    display: inline-flex; align-items: center; justify-content: center;
}
.utc-dashboards-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--utc-card); }
.utc-dashboards-ring > span { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.utc-dashboards-ring strong { font-size: 1.35rem; font-weight: 800; color: var(--c); }
.utc-dashboards-ring small { font-size: .68rem; color: var(--utc-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- timetable slots & countdowns ---------- */
.utc-dashboards-slot {
    display: flex; gap: 12px; align-items: center; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; font-size: .875rem;
    background: color-mix(in srgb, var(--utc-dashboards-navy) 7%, var(--utc-card)); border-left: 4px solid var(--utc-dashboards-navy);
}
.utc-dashboards-slot-now { border-left-color: var(--utc-dashboards-gold); background: color-mix(in srgb, var(--utc-dashboards-gold) 16%, var(--utc-card)); }
.utc-dashboards-slot-past { opacity: .55; }
.utc-dashboards-slot-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .8rem; color: var(--utc-dashboards-navy); }
.utc-dashboards-countdown {
    flex: none; min-width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: baseline; justify-content: center;
    padding-top: 9px; font-weight: 800; font-size: 1.1rem;
    background: color-mix(in srgb, var(--utc-dashboards-teal) 14%, var(--utc-card)); color: var(--utc-dashboards-teal);
}
.utc-dashboards-countdown small { font-size: .65rem; margin-left: 1px; }
.utc-dashboards-countdown-soon { background: color-mix(in srgb, var(--utc-dashboards-red) 14%, var(--utc-card)); color: var(--utc-dashboards-red); }
.utc-dashboards-countdown-week { background: color-mix(in srgb, var(--utc-dashboards-orange) 14%, var(--utc-card)); color: var(--utc-dashboards-orange); }
.utc-dashboards-countdown-done { background: var(--utc-ok-soft); color: var(--utc-ok); }

/* ================================================================== portal home */
.utc-dashboards-portal { display: grid; gap: 18px; }
.utc-dashboards-hero { padding-bottom: 22px; }
.utc-dashboards-hero .utc-dashboards-banner-meta { margin-top: 2px; }
.utc-dashboards-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.utc-dashboards-hero-stat {
    min-width: 108px; padding: 10px 14px; border-radius: 14px; text-align: center; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.utc-dashboards-hero-stat strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.utc-dashboards-hero-stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.utc-dashboards-hero-stat a { color: var(--utc-brand-3, #c9a227); font-weight: 700; font-size: .75rem; }
.utc-dashboards-hero-stat-alert { background: rgba(185, 28, 28, .35); border-color: rgba(255, 255, 255, .3); }

.utc-dashboards-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.utc-dashboards-span-4 { grid-column: span 4; }
.utc-dashboards-span-5 { grid-column: span 5; }
.utc-dashboards-span-6 { grid-column: span 6; }
.utc-dashboards-span-7 { grid-column: span 7; }
.utc-dashboards-span-8 { grid-column: span 8; }
.utc-dashboards-span-12 { grid-column: span 12; }
@media (max-width: 1024px) {
    .utc-dashboards-span-4, .utc-dashboards-span-5, .utc-dashboards-span-7, .utc-dashboards-span-8 { grid-column: span 6; }
}
@media (max-width: 720px) {
    .utc-dashboards-grid > * { grid-column: span 12; }
    .utc-dashboards-banner { padding: 18px 16px 22px; }
    .utc-dashboards-banner-main { align-items: flex-start; }
    .utc-dashboards-banner-logo, .utc-dashboards-banner-avatar { width: 46px; height: 46px; }
    .utc-dashboards-action { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .utc-dashboards-hero-stat { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .utc-dashboards-split { grid-template-columns: 1fr; }
}

/* diploma progress rings */
.utc-dashboards-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.utc-dashboards-diploma {
    display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px;
    background: color-mix(in srgb, var(--c) 8%, var(--utc-card)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--utc-line));
}
.utc-dashboards-diploma h4 { margin: 0 0 4px; font-size: .95rem; font-weight: 700; }
.utc-dashboards-diploma dl { display: grid; grid-template-columns: auto auto; gap: 1px 10px; margin: 6px 0 0; font-size: .78rem; }
.utc-dashboards-diploma dt { color: var(--utc-muted); }
.utc-dashboards-diploma dd { margin: 0; font-weight: 600; text-align: right; }

/* GPA sparkline */
.utc-dashboards-gpa { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.utc-dashboards-gpa-value { font-size: 2.2rem; font-weight: 800; color: var(--utc-dashboards-maroon); line-height: 1; }
.utc-dashboards-spark { display: block; width: 100%; max-width: 360px; height: auto; overflow: visible; }
.utc-dashboards-spark-line { fill: none; stroke: var(--utc-dashboards-maroon); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.utc-dashboards-spark-area { fill: color-mix(in srgb, var(--utc-dashboards-gold) 22%, transparent); stroke: none; }
.utc-dashboards-spark-dot { fill: var(--utc-card); stroke: var(--utc-dashboards-maroon); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.utc-dashboards-spark-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--utc-muted); max-width: 360px; }

/* next exam */
.utc-dashboards-exam {
    display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: #fff; margin-top: 10px;
    background: linear-gradient(120deg, var(--utc-brand-2, #7a1f2b), color-mix(in srgb, var(--utc-brand-2, #7a1f2b) 55%, var(--utc-brand, #1f2a44)));
}
.utc-dashboards-exam-days { text-align: center; min-width: 58px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .15); }
.utc-dashboards-exam-days strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.utc-dashboards-exam-days span { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.utc-dashboards-exam small { opacity: .85; display: block; }

/* notices */
.utc-dashboards-notice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--utc-line); font-size: .875rem; }
.utc-dashboards-notice:last-child { border-bottom: 0; }
.utc-dashboards-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--utc-dashboards-blue); }
.utc-dashboards-dot-important { background: var(--utc-dashboards-orange); }
.utc-dashboards-dot-urgent { background: var(--utc-dashboards-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--utc-dashboards-red) 25%, transparent); }
.utc-dashboards-counter {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; background: var(--utc-dashboards-maroon); color: #fff; letter-spacing: 0;
}
.dark .utc-dashboards-counter { color: #111; }

/* fees */
.utc-dashboards-fees { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.utc-dashboards-fees strong { font-size: 1.5rem; font-weight: 800; }
.utc-dashboards-fees-due strong { color: var(--utc-err); }
.utc-dashboards-fees-clear strong { color: var(--utc-ok); }

/* online courses */
.utc-dashboards-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.utc-dashboards-course {
    display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px;
    border: 1px solid var(--utc-line); background: var(--utc-card); position: relative; overflow: hidden;
}
.utc-dashboards-course::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--utc-dashboards-navy), var(--utc-dashboards-maroon), var(--utc-dashboards-gold)); }
.utc-dashboards-course h4 { font-size: .95rem; font-weight: 700; margin: 4px 0 0; }
.utc-dashboards-course .utc-dashboards-bar span { background: linear-gradient(90deg, var(--utc-dashboards-teal), var(--utc-dashboards-green)); }
.utc-dashboards-course-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.utc-dashboards-cert {
    display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: .85rem;
    background: color-mix(in srgb, var(--utc-dashboards-gold) 14%, var(--utc-card)); border: 1px solid color-mix(in srgb, var(--utc-dashboards-gold) 35%, var(--utc-line));
}
.utc-dashboards-cert .utc-dashboards-icon { color: #a16207; }
.dark .utc-dashboards-cert .utc-dashboards-icon { color: var(--utc-dashboards-gold); }

@media (prefers-reduced-motion: reduce) {
    .utc-dashboards-tile, .utc-dashboards-action, .utc-dashboards-bar span { transition: none; }
}
