@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
    --ink: #102a56;
    --muted: #6e7e97;
    --line: #dbe4f0;
    --paper: #f4f8fc;
    --white: #fff;
    --green: #123b78;
    --lime: #7dd3e8;
    --orange: #2d78c8;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, sans-serif;
}
button {
    font: inherit;
    cursor: pointer;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 248px;
    background: var(--green);
    color: #f2f7f2;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px 37px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 17px;
}
.brand-mark {
    width: 42px;
    height: 28px;
    background: var(--lime);
    color: var(--green);
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.02em;
}
.nav-label {
    color: #95b4a6;
    font:
        500 10px "DM Mono",
        monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 13px 10px;
}
.nav {
    display: grid;
    gap: 4px;
}
.nav a {
    color: #c8d8d0;
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav a.active,
.nav a:hover {
    color: var(--green);
    background: var(--lime);
}
.nav-icon {
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
}
.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #387465;
    padding: 20px 12px 0;
    color: #bbd1c8;
    font-size: 11px;
    line-height: 1.6;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3b381;
    color: #60321d;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
}
.main {
    flex: 1;
    min-width: 0;
    padding: 27px clamp(20px, 4vw, 56px) 50px;
    max-width: 1500px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
}
.eyebrow {
    color: var(--muted);
    font:
        500 10px "DM Mono",
        monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(26px, 3vw, 37px);
    line-height: 1.12;
    letter-spacing: -0.06em;
    margin: 8px 0 0;
}
.top-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}
.icon-btn,
.add-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 7px;
    height: 38px;
}
.icon-btn {
    width: 38px;
    font-size: 16px;
}
.add-btn {
    padding: 0 15px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.metric {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border: 1px solid #e5ecf3;
    border-radius: 14px;
    padding: 22px 24px;
    min-height: 125px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 42, 86, 0.06);
    transition: all 0.3s ease;
}
.metric:hover {
    border-color: #d0dfe9;
    box-shadow: 0 8px 20px rgba(16, 42, 86, 0.12);
    transform: translateY(-3px);
}
.metric:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -28px;
    bottom: -32px;
    background: #e8f1eb;
    border-radius: 50%;
    opacity: 0.6;
}
.metric-label {
    color: #6e7e97;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.metric-value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.06em;
    margin: 12px 0 6px;
    color: #102a56;
}
.metric-note {
    color: #2367a8;
    font:
        600 10px "DM Mono",
        monospace;
    letter-spacing: 0.01em;
}
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
    gap: 16px;
}
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.section-link {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}
.project-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) 0.8fr 0.8fr 0.75fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #e5ecf3;
    transition: all 0.2s ease;
}
.project-row:hover {
    background: #f8fbfd;
    padding-left: 4px;
    padding-right: 4px;
}
.project-name {
    font-size: 12px;
    font-weight: 800;
    color: #102a56;
    line-height: 1.4;
}
.client {
    margin-top: 5px;
    color: #6e7e97;
    font-size: 10px;
    line-height: 1.5;
}
.type {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #ecf3ed;
    color: #2d7a4f;
    font:
        600 9px "DM Mono",
        monospace;
    border: 1px solid #d8ebe2;
    transition: all 0.2s ease;
}
.type:hover {
    background: #dfe9e3;
    border-color: #c8ddd5;
}
.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.progress-head {
    display: flex;
    justify-content: space-between;
    color: #536982;
    font:
        600 9px "DM Mono",
        monospace;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.progress-bar {
    height: 6px;
    background: #e5ecf3;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(16, 42, 86, 0.08);
}
.progress-bar span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #2d7a4f 0%, #3a9261 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(45, 122, 79, 0.3);
}
.date {
    color: #6e7e97;
    font:
        500 10px "DM Mono",
        monospace;
    text-align: right;
}
.contract {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 11px;
}
.contract strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
}
.contract span {
    color: var(--muted);
}
.side-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}
.calendar {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.calendar .section-title {
    color: #fff;
}
.month {
    display: flex;
    justify-content: space-between;
    color: #b7d3c7;
    font:
        500 10px "DM Mono",
        monospace;
    margin: 19px 0 12px;
}
.month strong {
    color: #fff;
}
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    font:
        500 9px "DM Mono",
        monospace;
    color: #98b9ab;
}
.days span {
    padding: 5px 0;
}
.days .date-active {
    color: var(--green);
    background: var(--lime);
    border-radius: 50%;
}
.activity {
    display: grid;
    gap: 17px;
    margin-top: 18px;
}
.activity-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.45;
}
.activity-icon {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #edf5ef;
    color: var(--green);
}
.activity small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font:
        500 9px "DM Mono",
        monospace;
}
.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    padding: 13px 16px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.25s;
}
.toast.show {
    opacity: 1;
    transform: none;
}
@media (max-width: 900px) {
    .sidebar {
        width: 68px;
        padding: 22px 10px;
    }
    .brand span,
    .nav-label,
    .nav a span:not(.nav-icon),
    .sidebar-bottom {
        display: none;
    }
    .nav a {
        justify-content: center;
        padding: 12px;
    }
    .main {
        padding: 25px 20px 40px;
    }
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .topbar {
        align-items: flex-start;
        margin-bottom: 28px;
    }
    .top-actions .icon-btn {
        display: none;
    }
    .metrics {
        gap: 8px;
    }
    .metric {
        padding: 14px;
        min-height: 104px;
    }
    .metric-value {
        font-size: 22px;
    }
    .project-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }
    .project-row > :nth-child(2),
    .project-row > :nth-child(4) {
        display: none;
    }
    .project-row > :nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }
    .panel {
        padding: 16px;
    }
}
