:root {
    --bg: #f4f8fc;
    --surface: #ffffff;
    --surface-soft: #edf5ff;
    --text: #1c2430;
    --muted: #667085;
    --line: #d8e3f0;
    --primary: #1163ff;
    --primary-dark: #0b49c7;
    --success: #169b62;
    --warning: #c98900;
    --danger: #d14343;
    --info: #2676f6;
    --dark: #0f172a;
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.05);
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 55px rgba(15, 23, 42, 0.12);
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 26px;
    --container: 1180px;
    --transition: 0.22s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216, 227, 240, 0.8);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #79a4ff);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(17, 99, 255, 0.24);
}

.brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 0.12rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--muted);
    font-weight: 700;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(17, 99, 255, 0.07);
}

/* ===== Buttons ===== */
.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.35rem;
    min-height: 48px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.14);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4b7bff);
    color: #fff;
    box-shadow: 0 14px 30px rgba(31, 94, 255, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-outline {
    background: #fff;
    border: 1px solid rgba(31, 94, 255, 0.16);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(31, 94, 255, 0.05);
}

.btn-soft {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    color: var(--primary);
}

.btn-danger-outline {
    background: #fff;
    color: var(--danger);
    border: 1px solid rgba(209, 67, 67, 0.18);
}

.btn-danger-outline:hover {
    background: rgba(209, 67, 67, 0.06);
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.hero-actions,
.button-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ===== Sections ===== */
.section {
    padding: 2.4rem 0;
}

.section.light {
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(237,245,255,0.75));
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading h1,
.section-heading h2,
.page-header h2,
.auth-card h1,
.hero-grid h1 {
    margin: 0 0 0.9rem;
    line-height: 1.12;
}

.section-heading p,
.page-header p,
.lead,
.hero-text {
    margin: 0;
    color: var(--muted);
}

.section-heading.small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading.narrow,
.auth-wrap {
    max-width: 860px;
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: rgba(17, 99, 255, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ===== Hero ===== */
.hero-section {
    padding: 4.8rem 0 2.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.75rem;
    align-items: center;
}

.hero-grid h1 {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    max-width: 11.5ch;
}

.hero-text {
    font-size: 1.08rem;
    max-width: 62ch;
}

.hero-card {
    padding: 1.7rem;
}

.hero-contact {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.8rem;
}

.hero-contact p {
    margin: 0;
    padding: 0.95rem 1rem;
    background: var(--surface-soft);
    border-radius: 16px;
    border: 1px solid rgba(17, 99, 255, 0.07);
}

.stats-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stats-inline > div {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(216, 227, 240, 0.75);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    min-width: 145px;
    box-shadow: var(--shadow-sm);
}

.stats-inline strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}

.stats-inline span {
    color: var(--muted);
    font-size: 0.93rem;
}

.stats-inline.stacked {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* ===== Cards ===== */
.card,
.hero-card,
.stat-card,
.note-card,
.cta-box,
.auth-card,
.form-card,
.message-card,
.timeline-content,
.invoice-sheet {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 240, 0.7);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.card,
.stat-card {
    padding: 1.25rem;
}

.hero-card,
.note-card,
.cta-box,
.auth-card,
.form-card,
.message-card,
.invoice-sheet {
    padding: 1.6rem;
}

.card h2,
.card h3,
.card h4,
.hero-card h3,
.auth-card h1,
.page-header h2 {
    margin-top: 0;
}

.card:hover,
.hero-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09);
}

.card-grid {
    display: grid;
    gap: 1.15rem;
}

.card-grid.one {
    grid-template-columns: 1fr;
}

.card-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.compact-gap {
    gap: 0.8rem;
}

.service-card .card-top,
.record-head,
.message-meta,
.message-head,
.page-header,
.filter-grid,
.topbar-user,
.footer-grid,
.inline-search,
.inline-form,
.checkbox-row {
    display: flex;
    gap: 0.85rem;
}

.card-top,
.record-head,
.message-head,
.page-header {
    justify-content: space-between;
    align-items: flex-start;
}

/* ===== Badges ===== */
.tag,
.badge,
.price,
.mini-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.tag {
    background: rgba(17, 99, 255, 0.09);
    color: var(--primary);
}

.price {
    background: rgba(22, 155, 98, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(201, 137, 0, 0.12);
    color: var(--warning);
}

.badge-success {
    background: rgba(22, 155, 98, 0.12);
    color: var(--success);
}

.badge-danger {
    background: rgba(209, 67, 67, 0.12);
    color: var(--danger);
}

.badge-info {
    background: rgba(38, 118, 246, 0.12);
    color: var(--info);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(22, 155, 98, 0.11);
    color: var(--success);
    border-color: rgba(22, 155, 98, 0.18);
}

.alert-danger {
    background: rgba(209, 67, 67, 0.1);
    color: var(--danger);
    border-color: rgba(209, 67, 67, 0.18);
}

.flash-stack {
    padding-top: 1rem;
}

/* ===== Lists ===== */
.feature-list {
    padding-left: 1.2rem;
    margin: 0;
}

.feature-list.clean {
    list-style: none;
    padding-left: 0;
}

.feature-list.clean li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
}

.feature-list.clean li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

/* ===== Forms ===== */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid label {
    display: grid;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 700;
}

.form-grid label span,
.filter-grid label span {
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7e1ee;
    border-radius: 14px;
    background: #fff;
    padding: 0.9rem 1rem;
    color: var(--text);
     transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #bfd0ea;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(17, 99, 255, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.full-width {
    grid-column: 1 / -1;
}

.checkbox-row {
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}

.checkbox-inline input {
    width: auto;
}

/* ===== Tables ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    text-align: left;
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    background: rgba(255,255,255,0.7);
}

.table th {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    background: #f8fbff;
}

.table-compact th,
.table-compact td {
    padding: 0.8rem 0.65rem;
}

/* ===== Small helpers ===== */
.muted,
.table small,
.mini-card span,
.record-card.minimal p,
.message-item small,
.top-space {
    color: var(--muted);
}

.top-space {
    margin-top: 1rem;
}

.surface-soft {
    background: var(--surface-soft);
}

.stack-panel {
    display: grid;
    gap: 1rem;
}

.align-center {
    align-items: center;
}

.compact-top {
    margin-top: 1rem;
}

.section-divider {
    height: 1px;
    background: var(--line);
    margin: 0.25rem 0;
}

/* ===== Layouts ===== */
.two-col,
.dashboard-grid.two-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.two-col.align-start,
.dashboard-grid.align-start {
    align-items: start;
}

.auth-section {
    padding: 3rem 0 4rem;
}

.auth-wrap {
    display: flex;
    justify-content: center;
}

.auth-wrap.wide {
    max-width: 1000px;
}

.auth-card {
    width: 100%;
    max-width: 620px;
}

.auth-card.large {
    max-width: 780px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-section {
    padding-bottom: 3.8rem;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 2rem;
    padding: 2.4rem 0 1rem;
    background: #101827;
    color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-bottom {
    padding-top: 1.4rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== Dashboard ===== */
.dashboard-body {
    background: #eef3fa;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #0f172a, #111c33);
    color: rgba(255,255,255,0.92);
    padding: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.brand-sidebar {
    margin-bottom: 1.7rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.sidebar-nav a {
    padding: 0.82rem 0.95rem;
    border-radius: 13px;
    color: rgba(255,255,255,0.74);
    font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}

.mini-count {
    margin-left: 0.35rem;
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.dashboard-main {
    padding: 1.5rem;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.dashboard-topbar p,
.page-header p,
.section-heading p {
    margin: 0;
    color: var(--muted);
}

.dashboard-content {
    display: grid;
    gap: 1rem;
}

.message-stack,
.record-list,
.timeline-day,
.invoice-preview,
.invoice-items-box,
.invoice-items-container {
    display: grid;
    gap: 1rem;
}

.message-item,
.record-card.minimal {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.message-item:last-child,
.record-card.minimal:last-child {
    border-bottom: 0;
}

.message-item.unread,
.message-card.unread {
    border-left: 4px solid var(--primary);
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.record-card p,
.message-card p,
.about-card p,
.timeline-content p {
    margin: 0.42rem 0;
}

.appointment-highlight {
    display: grid;
    gap: 0.4rem;
}

.mini-card {
    min-height: 100%;
}

.note-card {
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.cabinet-highlight,
.about-card {
    min-height: 100%;
}

/* ===== Timeline ===== */
.timeline-day.compact {
    gap: 0.75rem;
}

.timeline-slot {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-time {
    background: var(--surface-soft);
    border: 1px solid rgba(17, 99, 255, 0.12);
    border-radius: 14px;
    padding: 0.95rem 0.8rem;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ===== Invoice ===== */
.invoice-item-row {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 120px 140px 110px;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.item-row-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.invoice-totals {
    display: grid;
    gap: 0.7rem;
}

.invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--surface-soft);
}

.invoice-totals .grand-total {
    background: linear-gradient(135deg, rgba(17, 99, 255, 0.12), rgba(121, 164, 255, 0.12));
    border: 1px solid rgba(17, 99, 255, 0.14);
}

.file-card {
    display: grid;
    gap: 0.5rem;
}

.empty-state {
    padding: 1.6rem;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

/* ===== Print ===== */
.print-body {
    background: #f4f7fb;
    min-height: 100vh;
}

.print-shell {
    width: min(980px, calc(100% - 2rem));
    margin: 1.25rem auto 2.5rem;
}

.print-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.invoice-header-side {
    text-align: right;
}

.invoice-header-side p,
.invoice-sheet p {
    margin: 0.35rem 0;
}

.card-top.align-center {
    align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .hero-grid,
    .two-col,
    .dashboard-grid.two-main,
    .card-grid.four,
    .card-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-shell {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 960px) {
    .invoice-item-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-row-actions {
        justify-content: stretch;
    }

    .timeline-slot,
    .invoice-header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .invoice-header-side {
        text-align: left;
    }
}

@media (max-width: 860px) {
    .nav-wrap,
    .cta-box,
    .dashboard-topbar,
    .message-head,
    .record-head,
    .page-header,
    .section-heading.small {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .two-col,
    .dashboard-grid.two-main,
    .card-grid.two,
    .card-grid.three,
    .card-grid.four,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-shell,
    .patient-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .main-nav {
        width: 100%;
        gap: 0.5rem;
    }

    .main-nav a {
        width: 100%;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
    }
}

@media (max-width: 720px) {
    .timeline-slot,
    .invoice-item-row,
    .print-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .timeline-time {
        text-align: left;
    }
}

@media (max-width: 580px) {
    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .hero-section {
        padding-top: 2.6rem;
        padding-bottom: 1.6rem;
    }

    .hero-grid h1 {
        font-size: 2rem;
        max-width: 100%;
    }

    .btn,
    .main-nav .btn,
    .hero-actions .btn,
    .button-row .btn {
        width: 100%;
    }

    .stats-inline.stacked {
        grid-template-columns: 1fr;
    }

    .card,
    .hero-card,
    .auth-card,
    .form-card,
    .cta-box,
    .message-card,
    .invoice-sheet {
        padding: 1rem;
        border-radius: 16px;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.55rem;
        font-size: 0.92rem;
    }
}

@media print {
    .no-print,
    .sidebar,
    .dashboard-topbar,
    .site-footer,
    .site-header {
        display: none !important;
    }

    body,
    .print-body {
        background: #fff;
    }

    .print-shell {
        width: 100%;
        margin: 0;
    }

    .invoice-sheet {
        border: 0;
        box-shadow: none;
    }
}
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(17, 99, 255, 0.08), rgba(121, 164, 255, 0.08));
    border: 1px solid rgba(17, 99, 255, 0.12);
}

.dashboard-hero h2 {
    margin: 0.2rem 0 0.5rem;
    font-size: 2rem;
}

.dashboard-hero p {
    margin: 0;
    max-width: 780px;
    color: var(--muted);
}

.stats-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card-pro {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-pro span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.stat-card-pro strong {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0.4rem 0;
}

.stat-card-pro small {
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-card-pro::after {
    content: "";
    position: absolute;
    top: -18px;
    right: -18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(17, 99, 255, 0.07);
}

.stat-card-pro.highlight {
    background: linear-gradient(135deg, rgba(17, 99, 255, 0.08), rgba(121, 164, 255, 0.12));
    border-color: rgba(17, 99, 255, 0.15);
}

.stat-card-pro.warning {
    background: linear-gradient(135deg, rgba(201, 137, 0, 0.08), rgba(201, 137, 0, 0.12));
    border-color: rgba(201, 137, 0, 0.14);
}

.stat-card-pro.danger {
    background: linear-gradient(135deg, rgba(209, 67, 67, 0.08), rgba(209, 67, 67, 0.12));
    border-color: rgba(209, 67, 67, 0.14);
}

.dashboard-grid-pro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}

.dashboard-panel {
    min-height: 100%;
}

.dashboard-panel .section-heading h3 {
    margin: 0.15rem 0 0;
}

.message-card {
    border-left: 4px solid transparent;
}

.message-card.unread {
    border-left-color: var(--danger);
}

.message-card + .message-card {
    margin-top: 0.75rem;
}

@media (max-width: 1200px) {
    .stats-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid-pro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid-pro {
        grid-template-columns: 1fr;
    }

    .dashboard-hero h2 {
        font-size: 1.6rem;
    }
}