:root {
    color-scheme: dark;
    --bg: #101113;
    --panel: #191b1f;
    --panel-alt: #202328;
    --border: #292c31;
    --text: #f5f5f5;
    --muted: #989ba3;
    --green: #46d889;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid #aaa;
    outline-offset: 3px;
}

[hidden] { display: none !important; }

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #141518;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 28px;
    font-size: 13px;
    letter-spacing: .04em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 24px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

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

.desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.desktop-nav button {
    border: 0;
    padding: 13px 15px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    text-align: left;
}

.desktop-nav button.active,
.desktop-nav button:hover {
    color: var(--text);
    background: var(--panel-alt);
}

.sidebar-bottom {
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    padding: 12px;
}

.main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 36px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .09em;
    color: var(--muted);
}

h1 {
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 650;
    letter-spacing: -.045em;
    margin: 8px 0;
}

h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.025em;
}

p { line-height: 1.5; }

.header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 25px;
}

.status {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 18px;
}

.status.connected { color: var(--green); }
.status.error { color: #f1b674; }

.finance-card, .card, .metric {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.finance-card {
    margin-bottom: 16px;
    background: linear-gradient(
        125deg, #22252a, #191b1f
    );
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.hero-number {
    font-size: 44px;
    font-weight: 650;
    margin: 10px 0;
    letter-spacing: -.045em;
}

.finance-card p {
    font-size: 13px;
    color: var(--muted);
}

.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #35383e;
    padding-top: 18px;
    margin-top: 22px;
    gap: 15px;
}

.finance-grid strong {
    display: block;
    font-size: 24px;
    margin-top: 7px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric strong {
    display: block;
    font-size: 30px;
    margin: 14px 0 8px;
    letter-spacing: -.04em;
}

.metric small {
    color: var(--muted);
    font-size: 11px;
}

.card { margin-bottom: 16px; }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.text-button {
    border: 0;
    background: transparent;
    color: #aaaeb6;
    font-size: 13px;
}

.booking {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.booking:last-child { border-bottom: 0; }

.booking-time {
    flex: 0 0 65px;
    text-align: center;
    border-radius: 12px;
    padding: 11px 6px;
    background: var(--panel-alt);
}

.booking-time strong {
    font-size: 15px;
}

.booking-time small,
.booking-details small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.booking-details {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.booking-status {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.progress-track {
    height: 6px;
    background: #35383e;
    border-radius: 10px;
    margin-top: 18px;
}

.primary-button {
    color: #141414;
    background: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 22px;
    font-weight: 550;
}

footer {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    padding: 15px;
}

.mobile-nav { display: none; }

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

@media (max-width: 700px) {
    .layout { display: block; }
    .sidebar { display: none; }

    .main {
        padding: 24px 16px 105px;
    }

    .finance-card, .card, .metric {
        padding: 17px;
        border-radius: 16px;
    }

    .metric strong { font-size: 27px; }
    .hero-number { font-size: 38px; }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-around;
        padding: 10px 5px
            calc(10px + env(safe-area-inset-bottom));
        background: #17191c;
        border-top: 1px solid var(--border);
    }

    .mobile-nav button {
        border: 0;
        background: none;
        color: var(--muted);
        font-size: 10px;
        min-width: 55px;
        padding: 4px;
    }

    .mobile-nav button span {
        display: block;
        font-size: 23px;
        margin-bottom: 4px;
    }

    .mobile-nav button.active {
        color: #fff;
    }
}
