:root {
    --ink: #21334b;
    --muted: #718096;
    --blue: #376bd5;
    --line: #e7ecf3;
    --surface: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fb;
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible, input:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 10;
    background: white;
    padding: 12px;
}

.skip-link:focus {
    top: 12px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 22px;
    background: white;
    border-right: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -1.3px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 31px;
    line-height: 1;
}

.brand-dot {
    color: var(--blue);
    margin-left: -10px;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: #8995a5;
    margin: 48px 14px 14px;
}

nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 9px;
    color: #66768b;
    font-weight: 600;
}

.nav-item > span:first-child {
    font-size: 20px;
    width: 22px;
    text-align: center;
}

.nav-item:hover {
    background: #f5f7fb;
}

.nav-item.active {
    background: #edf3ff;
    color: #3263c5;
}

.nav-count {
    margin-left: auto;
    background: #eaf0fa;
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 11px;
}

.sidebar-note {
    margin: auto 12px 24px;
    padding-top: 32px;
    font-size: 12px;
    color: #6c7d91;
}

.sidebar-note p {
    padding-left: 15px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #59ad96;
    margin-right: 6px;
}

.profile {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar {
    background: #e9effa;
    color: #47669b;
    padding: 10px;
    border-radius: 50%;
    font-weight: 700;
}

.profile strong {
    font-size: 12px;
}

.profile small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.main-content {
    max-width: 1630px;
    margin-left: 230px;
    padding: 34px 38px 22px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
}

h1 {
    font-size: 29px;
    letter-spacing: -.8px;
    font-weight: 650;
    margin-top: 5px;
}

.demo-badge {
    border: 1px solid #dce5f2;
    background: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    color: #718096;
    font-size: 11px;
    white-space: nowrap;
}

.welcome-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 230px;
    padding: 28px 36px;
    border: 1px solid #dce8f8;
    border-radius: 16px;
    background: linear-gradient(110deg, #eaf1ff, #e7f2f8);
    overflow: hidden;
}

.welcome-tag {
    font-size: 11px;
    font-weight: 600;
    color: #557caf;
}

.welcome-text h2 {
    font-size: clamp(23px, 2.4vw, 34px);
    letter-spacing: -1px;
    font-weight: 650;
    margin: 8px 0;
}

.welcome-text h2 span {
    color: #e2b15b;
    font-size: 24px;
}

.welcome-text p {
    color: #617b99;
    font-size: 13px;
    line-height: 1.7;
}

.primary-link {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    background: var(--blue);
    color: white;
    padding: 10px 15px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px #376bd520;
}

.primary-link:hover {
    background: #2859bd;
}

.welcome-image {
    width: 31%;
    max-width: 290px;
    height: 200px;
    object-fit: contain;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.card, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 3px 14px #21334b04;
    min-width: 0;
}

.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 21px 18px;
    flex-wrap: wrap;
}

.metric-label {
    font-size: 12px;
    color: #697b90;
    font-weight: 500;
}

.metric {
    display: block;
    font-size: 34px;
    letter-spacing: -1px;
    font-weight: 650;
    margin: 5px 0;
    line-height: 1.2;
}

.metric-note {
    font-size: 10px;
    color: var(--muted);
}

.positive {
    color: #29846e;
}

.amber-text {
    color: #9a722d;
}

.card > div {
    flex: 1 1 100px;
}

.card img {
    width: 110px;
    height: 120px;
    max-width: 100%;
    flex-shrink: 0;
    object-fit: contain;
}

.dashboard-details {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
}

.panel {
    padding: 24px;
    scroll-margin-top: 24px;
}

.panel-header, .schedule-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

h2 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.35px;
}

.panel-header h2 {
    margin-top: 5px;
}

.count-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0f4fa;
    color: #6b7e98;
    font-size: 10px;
    white-space: nowrap;
}

.panel-description {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 19px;
}

ul, ol {
    list-style: none;
}

.task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid #eef1f6;
}

.task-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 0;
}

.task-list input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.task-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.task-copy small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.task-list input:checked + .task-copy strong {
    text-decoration: line-through;
    color: var(--muted);
}

.badge {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    background: #edf3fe;
    color: #537bbc;
    padding: 4px 7px;
    border-radius: 5px;
}

.badge.urgent {
    background: #fff1ea;
    color: #ba704c;
}

.badge.soft {
    background: #ecf6f2;
    color: #528b78;
}

.task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: var(--muted);
}

progress {
    width: 120px;
    height: 5px;
    border: 0;
    border-radius: 10px;
    accent-color: #649b89;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: #edf1f6;
}

progress::-webkit-progress-value {
    background: #649b89;
}

.date-heading {
    text-align: center;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.date-heading p {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
}

.date-heading .eyebrow {
    font-size: 8px;
}

.schedule-title h2 {
    font-size: 15px;
}

.schedule-list {
    margin-top: 24px;
}

.schedule-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding-bottom: 24px;
}

.schedule-list li:last-child {
    padding-bottom: 0;
}

.schedule-list time {
    font-size: 10px;
    color: var(--muted);
    padding-top: 2px;
}

.schedule-list li > div {
    border-left: 2px solid #d7e5ff;
    padding-left: 12px;
}

.schedule-list li:nth-child(2) > div {
    border-color: #e9d9b5;
}

.schedule-list strong {
    font-size: 11px;
    font-weight: 600;
}

.schedule-list p {
    font-size: 10px;
    color: var(--muted);
    margin: 3px 0 7px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
    font-size: 10px;
    color: #8c99aa;
}

@media (min-width: 1860px) {
    .main-content {
        margin-inline: auto;
        padding-left: 268px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 28px 24px;
    }

    .card {
        padding: 16px 12px;
    }

    .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-details {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 16px;
    }

    .panel {
        padding: 18px;
    }
}

@media (max-width: 1000px) {
    .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-details {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: auto;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .brand {
        font-size: 25px;
        padding: 0;
    }

    .nav-label, .sidebar-note, .profile {
        display: none;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 16px;
    }

    .nav-item {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .nav-item > span:first-child {
        font-size: 15px;
        width: auto;
    }

    .main-content {
        margin: 0;
        padding: 24px 16px;
    }

    .welcome-container {
        padding: 24px;
    }

    .welcome-image {
        width: 28%;
        height: 140px;
    }

    .eyebrow {
        font-size: 8px;
    }
}

@media (max-width: 440px) {
    .welcome-image {
        display: none;
    }

    .card-container {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-label {
        font-size: 11px;
    }

    .metric-note {
        font-size: 9px;
    }

    .task-list li {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .task-list li > .badge {
        margin-left: 29px;
    }

    .demo-badge {
        font-size: 9px;
        padding: 5px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
