/* InternPortal.net — Main styles (adapted from CVtoWebsite/css/auth.css) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-bg: #eff6ff;
    --error-bg: #fff5f5;
    --error-border:#fecaca;
    --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--white);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

.nav {
    position: sticky;
    top: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 28px;
}

.nav-logo {
    flex: 0 0 auto;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 2px;
    margin: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 8px 11px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }

.nav-user {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--muted);
    padding: 8px 11px;
    white-space: nowrap;
}

.nav-cta {
    background: var(--text) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    margin-left: 8px;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 7px 10px;
    color: var(--text);
}

.nav-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.nav-drawer.open { display: block; }

.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }

.drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-brand { font-family: "DM Serif Display", Georgia, serif; font-size: 1.1rem; }
.drawer-close { background: none; border: none; cursor: pointer; color: var(--muted); }

.drawer-panel a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.975rem;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 8px;
}

.drawer-panel a:hover { background: var(--surface); }

.drawer-cta {
    margin-top: 12px;
    background: var(--text) !important;
    color: var(--white) !important;
    text-align: center;
    font-weight: 600 !important;
}

.page-main { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.page-main-wide { max-width: 860px; }

.page-eyebrow {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.page-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.page-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 52ch; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group .hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { min-height: 110px; resize: vertical; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.checkbox-label a { color: var(--accent); font-weight: 600; }

.agreements-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.agreements-legend { font-weight: 600; font-size: 0.9rem; padding: 0 6px; }
.agreements-note { margin-bottom: 16px; }
.agreement-item { margin-bottom: 12px; }
.agreement-item:last-child { margin-bottom: 0; }

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--text);
    color: var(--white);
    font-size: 0.975rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.form-footer { margin-top: 20px; text-align: center; font-size: 0.875rem; color: var(--muted); }
.form-footer a, .inline-link { color: var(--accent); font-weight: 600; text-decoration: none; }

.required { color: #dc2626; }

.auth-shell { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 24px 0 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-top: 24px; }
.auth-card { margin-top: 0; }

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }

.dashboard-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.dashboard-card-muted { background: var(--surface); }
.card-heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }

.profile-dl div { margin-bottom: 16px; }
.profile-dl dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.profile-dl dd { font-size: 0.95rem; }
.profile-text { line-height: 1.6; }

.coming-soon-list { margin: 0 0 16px 20px; color: var(--muted); }
.coming-soon-list li { margin-bottom: 6px; }

.legal-main { max-width: 800px; }
.legal-meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }
.legal-body h2 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { color: var(--muted); font-size: 0.925rem; margin-bottom: 12px; }
.legal-body ul { margin-left: 20px; }
.legal-body a { color: var(--accent); }

/* Dashboard stats */
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 600; margin-bottom: 8px; }
.stat-value-sm { font-size: 1rem; font-weight: 500; }
.stat-link { font-size: 0.85rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }

.checklist { list-style: none; }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.925rem; }
.checklist-item:last-child { border-bottom: none; }
.checklist-item.done { color: var(--text); }
.checklist-item:not(.done) { color: var(--muted); }
.check-icon { font-weight: 700; color: var(--accent); width: 20px; }

.quick-links { display: flex; flex-direction: column; gap: 8px; }
.quick-link { display: block; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.9rem; }
.quick-link:hover { border-color: var(--accent); color: var(--accent); }

.page-actions { margin-bottom: 20px; }
.updates-list { display: flex; flex-direction: column; gap: 16px; }
.update-card { margin-bottom: 0; }
.update-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.update-date { font-size: 1.05rem; font-weight: 600; }
.update-meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.update-dl div { margin-bottom: 12px; }
.update-dl dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.update-dl dd { font-size: 0.925rem; line-height: 1.6; }
.update-card-inner { padding: 16px 0; border-bottom: 1px solid var(--border); }
.update-card-inner:last-child { border-bottom: none; padding-bottom: 0; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-edit { background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.badge-readonly { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.badge-active { background: #f0fdf4; color: #166534; }
.badge-inactive { background: #fff5f5; color: #991b1b; }

.btn-secondary { display: inline-block; padding: 12px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.btn-inline { width: auto; }
.btn-danger { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }
.btn-link { background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 0.85rem; padding: 0; }
.btn-link.btn-danger { color: #dc2626; }

/* Admin */
.admin-toolbar { margin-bottom: 20px; }
.search-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-form .form-input { flex: 1; min-width: 200px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: none; }
.table-empty { text-align: center; color: var(--muted); padding: 32px !important; }
.table-actions { white-space: nowrap; }
.inline-form { display: inline; margin-left: 8px; }

.email-history-cell { min-width: 148px; vertical-align: top; }
.email-history-count { display: block; font-weight: 650; }
.email-history-meta { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.email-history { margin-top: 6px; }
.email-history summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    list-style: none;
}
.email-history summary::-webkit-details-marker { display: none; }
.email-history-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-width: 280px;
}
.email-history-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    line-height: 1.4;
}
.email-history-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.email-history-date { display: block; color: var(--muted); }
.email-history-subject { display: block; color: var(--text); margin: 2px 0 2px; }

/* Admin sub-navigation */
.admin-subnav {
    display: flex;
    gap: 8px;
    padding: 0 40px 16px;
    max-width: 1180px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.admin-subnav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--white);
}
.admin-subnav a:hover, .admin-subnav a.active {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.overview-page.page-main-wide { max-width: 1180px; }
.overview-total-line { margin: 0 0 24px; color: var(--muted); max-width: none; }
.overview-grid,
.overview-grid.dashboard-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    align-items: stretch;
}
a.overview-tile,
div.overview-tile,
.overview-tile.stat-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--white);
    text-decoration: none !important;
    color: inherit !important;
    min-height: 168px;
}
a.overview-tile:link,
a.overview-tile:visited,
a.overview-tile:hover,
a.overview-tile:active {
    color: inherit !important;
    text-decoration: none !important;
}
a.overview-tile:hover { border-color: var(--accent) !important; }
.overview-tile-label,
.overview-tile .stat-label { font-size: 0.8rem; font-weight: 650; color: var(--text); text-transform: none; margin: 0; }
.overview-tile-count,
.overview-tile .stat-value { font-size: 2.35rem; font-weight: 750; line-height: 1; margin: 4px 0 2px; }
.overview-tile-def { font-size: 0.78rem; color: var(--muted); flex: 1; }
.overview-tile-link { font-size: 0.75rem; font-weight: 650; color: var(--accent); text-decoration: none !important; }
.overview-bar { display: block; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.overview-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.overview-section { border-top: 4px solid #1e3a8a; }
.overview-section--navy .overview-tile { background: #f8fafc !important; }
.overview-section--navy .overview-bar-fill { background: #1e3a8a; }
.overview-section--navy .overview-tile-count,
.overview-section--navy .overview-tile .stat-value { color: #1e3a8a; }
.overview-section--violet .overview-tile { background: #faf5ff !important; }
.overview-section--violet .overview-bar-fill { background: #6d28d9; }
.overview-section--violet .overview-tile-count,
.overview-section--violet .overview-tile .stat-value { color: #6d28d9; }
.overview-section--indigo .overview-tile { background: #eef2ff !important; }
.overview-section--indigo .overview-bar-fill { background: #4338ca; }
.overview-section--indigo .overview-tile-count,
.overview-section--indigo .overview-tile .stat-value { color: #4338ca; }
.overview-section--green .overview-tile { background: #f0fdf4 !important; }
.overview-section--green .overview-bar-fill { background: #15803d; }
.overview-section--green .overview-tile-count,
.overview-section--green .overview-tile .stat-value { color: #15803d; }
.overview-section--teal .overview-tile { background: #f0fdfa !important; }
.overview-section--teal .overview-bar-fill { background: #0f766e; }
.overview-section--teal .overview-tile-count,
.overview-section--teal .overview-tile .stat-value { color: #0f766e; }
.overview-section--cyan .overview-tile { background: #ecfeff !important; }
.overview-section--cyan .overview-bar-fill { background: #0e7490; }
.overview-section--cyan .overview-tile-count,
.overview-section--cyan .overview-tile .stat-value { color: #0e7490; }
.overview-section--amber .overview-tile { background: #fffbeb !important; }
.overview-section--amber .overview-bar-fill { background: #b45309; }
.overview-section--amber .overview-tile-count,
.overview-section--amber .overview-tile .stat-value { color: #b45309; }
.overview-omitted { margin: 0; padding-left: 20px; color: var(--muted); }
.overview-omitted li { margin-bottom: 8px; }

@media (max-width: 768px) {
    .overview-grid,
    .overview-grid.dashboard-stats { grid-template-columns: 1fr !important; }
}

.dashboard-stats-4 { grid-template-columns: repeat(4, 1fr); }
.dashboard-stats-5 { grid-template-columns: repeat(5, 1fr); }

.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.project-list { list-style: none; }
.project-list-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.project-list-item:last-child { border-bottom: none; }
.project-link { display: block; font-size: 0.85rem; color: var(--accent); margin-top: 4px; }
.project-desc { margin-top: 6px; }

.badge-status-active { background: #f0fdf4; color: #166534; }
.badge-status-completed { background: #eff6ff; color: #1d4ed8; }
.badge-status-archived { background: var(--surface); color: var(--muted); }

.form-input-sm { max-width: 160px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { padding: 14px 0 14px 20px; border-left: 2px solid var(--border); margin-left: 8px; position: relative; }
.timeline-item::before {
    content: '';
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: -6px; top: 18px;
}
.timeline-date { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.timeline-label { font-size: 0.925rem; }

.compact-updates .update-card-inner { padding: 12px 0; }

.rich-text { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.rich-text-sm { font-size: 0.875rem; }

.form-textarea-lg { min-height: 180px; }

.project-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.project-website-link { font-size: 0.9rem; }

.badge-category { background: #faf5ff; color: #6b21a8; }
.badge-inline { margin-left: 8px; vertical-align: middle; font-size: 0.7rem; }
.badge-resource { background: var(--surface); color: var(--muted); font-size: 0.75rem; }

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.skill-tag {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.resource-item:last-child { border-bottom: none; }
.resource-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.resource-title { font-weight: 600; color: var(--accent); text-decoration: none; }
.resource-title:hover { text-decoration: underline; }
.resource-desc { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }

.project-overview-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.card-subheading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    cursor: pointer;
}

.search-form-wide { flex-wrap: wrap; }
.search-form-wide .form-input { min-width: 140px; }

.project-previous-updates { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

@media (max-width: 1279px) {
    .nav { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .page-main { padding: 32px 16px 64px; }
    .card { padding: 24px 16px; }
    .footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; row-gap: 10px; }
    .auth-main { grid-template-columns: 1fr; gap: 24px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-stats-4, .dashboard-stats-5 { grid-template-columns: 1fr; }
    .admin-subnav { padding: 0 16px 16px; }
    .nav-links { gap: 0; }
    .project-workspace-grid { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Intern dashboard — presentation only (scoped; no functional impact)
   ========================================================================== */
.dashboard-page.page-main {
    max-width: 800px;
    padding-top: 28px;
    padding-bottom: 64px;
}

.dashboard-page > .page-eyebrow {
    margin-bottom: 10px;
    padding: 4px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    border-radius: 8px;
}

.dashboard-page > .page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.dashboard-page > .page-sub {
    font-size: 0.98rem;
    margin-bottom: 20px;
    max-width: 48ch;
}

.dashboard-page > .card {
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
}

.dashboard-page > .card .card-heading {
    margin-bottom: 12px;
}

.dashboard-assignment-card {
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06), 0 8px 24px rgba(37, 99, 235, 0.06);
}

.dashboard-assignment-card > .page-eyebrow {
    margin-bottom: 6px;
}

.dashboard-assignment-card .dashboard-grid {
    gap: 12px 20px;
    align-items: start;
}

.dashboard-assignment-card .dashboard-progress-block .section-header {
    align-items: flex-start;
    row-gap: 4px;
}

.dashboard-assignment-card .progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-assignment-card .progress-fill {
    border-radius: 999px;
    background: var(--accent, #2563eb);
}

.dashboard-page .dashboard-continue-btn.btn-primary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-radius: 10px;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dashboard-page .dashboard-continue-btn.btn-primary:hover {
    opacity: 0.92;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.dashboard-page .dashboard-continue-btn.btn-primary:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 3px;
}

.dashboard-page .dashboard-continue-btn.btn-primary:active {
    transform: translateY(1px);
    opacity: 0.88;
}

.dashboard-page .dashboard-stats {
    margin-top: 4px;
    gap: 14px;
}

@media (max-width: 768px) {
    .dashboard-page.page-main {
        padding-top: 20px;
        padding-bottom: 48px;
    }

    .dashboard-page > .card {
        padding: 16px;
    }

    .dashboard-assignment-card .dashboard-progress-block .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-page .dashboard-continue-btn.btn-primary {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .dashboard-page > .page-title {
        font-size: 1.55rem;
    }

    .dashboard-page > .page-sub {
        font-size: 0.92rem;
    }
}
