@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/*
|==============================================================================
| GESTIONALE MONTENETTO STABLES — design system
|==============================================================================
| Non è il layout "a card" del portale pubblico iscrizioni: qui il
| contenuto è davvero cronologico (le lezioni di un giorno), quindi
| la struttura è una linea del tempo verticale, non una griglia di
| card identiche. Un solo colore d'accento (l'oro del brand); gli
| stati (vuota / non pagata / chiusa) usano toni terrosi distinti,
| mai rosso/verde semaforo.
*/

:root {
    --gd-ink: #211f1f;
    --gd-ink-2: #322e2d;
    --gd-ink-gradient: linear-gradient(155deg, #292625 0%, #1a1818 100%);
    --gd-paper: #f7f3ec;
    --gd-panel: #ffffff;
    --gd-gold: #b9955d;
    --gd-gold-soft: rgba(185, 149, 93, .16);
    --gd-line: rgba(33, 31, 31, .12);
    --gd-text: #211f1f;
    --gd-muted: #7a7168;

    --gd-full: #4b6b4f;
    --gd-full-soft: rgba(75, 107, 79, .14);
    --gd-empty: #9b5348;
    --gd-empty-soft: rgba(155, 83, 72, .10);
    --gd-unpaid: #a6762d;
    --gd-unpaid-soft: rgba(166, 118, 45, .14);
    --gd-closed: #8a8378;
    --gd-closed-soft: rgba(138, 131, 120, .12);

    --gd-radius: 16px;
    --gd-radius-sm: 10px;
    --gd-shadow: 0 10px 28px rgba(33, 25, 18, .07);
    --gd-shadow-hover: 0 14px 32px rgba(33, 25, 18, .13);
    --gd-shadow-lg: 0 24px 60px rgba(20, 16, 12, .22);

    --gd-sidebar-w: 244px;
    --gd-transition: .16s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body.gd-body {
    margin: 0;
    min-height: 100%;

    background: var(--gd-paper);
    color: var(--gd-text);

    font-family: 'Inter', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--gd-ink);
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }

p { margin: 0; }

.gd-muted { color: var(--gd-muted); font-size: .88rem; line-height: 1.5; }

.gd-eyebrow {
    margin: 0 0 4px;
    font-size: .78rem;
    color: var(--gd-muted);
}

/*
|------------------------------------------------------------------
| SHELL
|------------------------------------------------------------------
*/

.gd-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.gd-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 14px;
}

@media (min-width: 900px) {
    .gd-app {
        margin-left: var(--gd-sidebar-w);
        padding-bottom: 48px;
    }

    .gd-container {
        max-width: 1080px;
        padding: 0 40px;
    }
}

/*
|------------------------------------------------------------------
| TOPBAR (giorno / titolo pagina)
|------------------------------------------------------------------
*/

.gd-topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    background: var(--gd-ink-gradient);
    color: #fff;

    padding: max(14px, env(safe-area-inset-top)) 14px 14px;
}

.gd-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    max-width: 640px;
    margin: 0 auto;
}

.gd-topbar__brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--gd-gold);
}

.gd-topbar__link {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    transition: color var(--gd-transition);
}

.gd-topbar__link:hover { color: #fff; }

@media (min-width: 900px) {
    .gd-topbar {
        position: static;
        margin: 24px 40px 0;
        padding: 22px 28px;
        border-radius: var(--gd-radius);
        box-shadow: var(--gd-shadow);
    }

    .gd-topbar__row, .gd-daynav__label { max-width: none; }

    .gd-topbar__brand { display: none; }
}

/* Header specifico della vista Oggi: navigazione tra i giorni */
.gd-daynav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 10px;
}

.gd-daynav__arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.2rem;
}

.gd-daynav__label {
    flex: 1 1 auto;
    text-align: center;
}

.gd-daynav__date {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}

.gd-daynav__weekday {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
}

.gd-daynav__today {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    text-align: center;
    color: var(--gd-gold);
}

/*
|------------------------------------------------------------------
| TIMELINE (vista lezioni del giorno)
|------------------------------------------------------------------
*/

.gd-timeline {
    position: relative;
    margin: 18px 0 0;
    padding-left: 26px;
}

.gd-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--gd-line);
}

.gd-timeline-entry {
    position: relative;
    display: block;
    padding: 0 0 22px;
}

.gd-timeline-entry:last-child { padding-bottom: 4px; }

.gd-timeline-entry__dot {
    position: absolute;
    left: -26px;
    top: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;

    background: var(--gd-panel);
    border: 3px solid var(--gd-closed);
}

.gd-timeline-entry__dot--full { border-color: var(--gd-full); }
.gd-timeline-entry__dot--partial { border-color: var(--gd-gold); }
.gd-timeline-entry__dot--empty { border-color: var(--gd-empty); }
.gd-timeline-entry__dot--closed { border-color: var(--gd-closed); background: var(--gd-closed-soft); }

.gd-timeline-entry__time {
    font-family: 'Inter', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gd-ink);
}

.gd-timeline-entry__body {
    margin-top: 4px;
    padding: 12px 14px;

    background: var(--gd-panel);
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-sm);

    transition: box-shadow var(--gd-transition), border-color var(--gd-transition), transform var(--gd-transition);
}

a.gd-timeline-entry:hover .gd-timeline-entry__body {
    box-shadow: var(--gd-shadow-hover);
    border-color: rgba(185, 149, 93, .35);
    transform: translateY(-1px);
}

.gd-timeline-entry__body--empty { background: var(--gd-empty-soft); border-color: rgba(155,83,72,.25); }
.gd-timeline-entry__body--closed { background: var(--gd-closed-soft); border-color: transparent; }

.gd-timeline-entry__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gd-timeline-entry__corso {
    font-weight: 700;
    font-size: .95rem;
}

.gd-timeline-entry__names {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--gd-muted);
}

.gd-timeline-entry__names--empty-text {
    font-style: italic;
}

/*
|------------------------------------------------------------------
| TAG / BADGE
|------------------------------------------------------------------
*/

.gd-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 600;

    background: var(--gd-gold-soft);
    color: var(--gd-gold);
}

.gd-tag--muted { background: var(--gd-closed-soft); color: var(--gd-muted); }

.gd-count {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.gd-count--full { background: var(--gd-full-soft); color: var(--gd-full); }
.gd-count--partial { background: var(--gd-gold-soft); color: var(--gd-gold); }
.gd-count--empty { background: var(--gd-empty-soft); color: var(--gd-empty); }
.gd-count--closed { background: var(--gd-closed-soft); color: var(--gd-muted); }

/*
|------------------------------------------------------------------
| TAB BAR (navigazione principale, fissa in basso)
|------------------------------------------------------------------
*/

.gd-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;

    display: flex;

    background: var(--gd-panel);
    border-top: 1px solid var(--gd-line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.gd-tabbar__item {
    flex: 1 1 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    padding: 4px 2px;
    border-radius: 12px;

    font-size: .68rem;
    color: var(--gd-muted);

    transition: color var(--gd-transition), background var(--gd-transition);
}

.gd-tabbar__item svg { width: 21px; height: 21px; transition: transform var(--gd-transition); }

.gd-tabbar__item--active {
    color: var(--gd-gold);
}

.gd-nav-brand { display: none; }
.gd-tabbar__spacer { display: none; }
.gd-tabbar__logout { display: none; }

@media (min-width: 900px) {

    .gd-tabbar {
        top: 0; right: auto;
        width: var(--gd-sidebar-w);

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 3px;

        background: var(--gd-ink-gradient);
        border-top: none;
        border-right: 1px solid rgba(255,255,255,.06);
        box-shadow: var(--gd-shadow-lg);

        padding: 28px 16px;
    }

    .gd-nav-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 0 10px 26px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .gd-nav-brand img { width: 30px; height: 30px; object-fit: contain; }

    .gd-nav-brand span {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
    }

    .gd-tabbar__item {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 13px;

        padding: 11px 12px;
        border-radius: 11px;

        font-size: .89rem;
        font-weight: 500;
        color: rgba(255,255,255,.6);
    }

    .gd-tabbar__item svg { width: 19px; height: 19px; }

    .gd-tabbar__item:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

    .gd-tabbar__item--active {
        background: rgba(185, 149, 93, .14);
        color: var(--gd-gold);
        box-shadow: inset 3px 0 0 var(--gd-gold);
    }

    .gd-tabbar__spacer { display: block; flex: 1 1 auto; }

    .gd-tabbar__logout {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px 12px;
        border-radius: 11px;
        font-size: .89rem;
        color: rgba(255,255,255,.45);
        border-top: 1px solid rgba(255,255,255,.08);
        margin-top: 10px;
        padding-top: 18px;
    }

    .gd-tabbar__logout:hover { color: #fff; }
    .gd-tabbar__logout svg { width: 17px; height: 17px; }
}

/*
|------------------------------------------------------------------
| CARD / LISTE GENERICHE (slot, chiusure, iscrizioni)
|------------------------------------------------------------------
*/

.gd-section {
    padding: 16px 0 4px;
}

.gd-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gd-card {
    padding: 16px;
    margin-bottom: 12px;

    background: var(--gd-panel);
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius);
    box-shadow: var(--gd-shadow);
}

.gd-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-list-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 14px;

    background: var(--gd-panel);
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-sm);

    transition: box-shadow var(--gd-transition), border-color var(--gd-transition), transform var(--gd-transition);
}

a.gd-list-row:hover {
    box-shadow: var(--gd-shadow-hover);
    border-color: rgba(185, 149, 93, .35);
    transform: translateY(-1px);
}

.gd-list-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.gd-list-row__title {
    font-weight: 600;
    font-size: .92rem;
}

.gd-list-row__sub {
    margin-top: 2px;
    font-size: .8rem;
    color: var(--gd-muted);
}

.gd-list-row__chevron {
    flex: 0 0 auto;
    color: var(--gd-muted);
    font-size: 1rem;
}

/*
|------------------------------------------------------------------
| PERSONE IN UNA LEZIONE (dettaglio)
|------------------------------------------------------------------
*/

.gd-person-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 0;
    border-bottom: 1px solid var(--gd-line);
}

.gd-person-row:last-child { border-bottom: none; }

.gd-person-row__name {
    flex: 1 1 auto;
    font-weight: 600;
    font-size: .92rem;
}

.gd-person-row__note {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--gd-muted);
    font-weight: 400;
}

.gd-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
}

.gd-switch input {
    position: absolute;
    opacity: 0;
    width: 100%; height: 100%;
    margin: 0;
    cursor: pointer;
}

.gd-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--gd-unpaid-soft);
    border: 1px solid rgba(166,118,45,.35);
    transition: background .15s, border-color .15s;
}

.gd-switch__track::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--gd-unpaid);
    transition: transform .15s;
}

.gd-switch input:checked + .gd-switch__track {
    background: var(--gd-full-soft);
    border-color: rgba(75,107,79,.4);
}

.gd-switch input:checked + .gd-switch__track::before {
    transform: translateX(18px);
    background: var(--gd-full);
}

.gd-icon-btn {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: var(--gd-empty);
    font-size: .95rem;
}

/*
|------------------------------------------------------------------
| FORM
|------------------------------------------------------------------
*/

.gd-field { margin-bottom: 14px; }

.gd-label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gd-ink);
}

.gd-input, .gd-select, .gd-textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;

    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-sm);
    background: var(--gd-panel);
    color: var(--gd-text);

    font-size: 16px;
    min-width: 0;
    max-width: 100%;

    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.gd-input:focus, .gd-select:focus, .gd-textarea:focus {
    border-color: var(--gd-gold);
    box-shadow: 0 0 0 4px var(--gd-gold-soft);
}

input[type="date"].gd-input,
input[type="time"].gd-input {
    -webkit-appearance: none;
    appearance: none;
}

.gd-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 14px;
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-sm);
    background: var(--gd-panel);
}

/*
|------------------------------------------------------------------
| BOTTONI
|------------------------------------------------------------------
*/

.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 48px;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: var(--gd-radius-sm);

    font-size: .92rem;
    font-weight: 600;

    cursor: pointer;
    transition: transform var(--gd-transition), box-shadow var(--gd-transition), background var(--gd-transition), border-color var(--gd-transition), opacity var(--gd-transition);
}

.gd-btn--primary { background: var(--gd-ink); color: #fff; }
.gd-btn--primary:hover { box-shadow: var(--gd-shadow-hover); transform: translateY(-1px); }

.gd-btn--gold { background: var(--gd-gold); color: #fff; }
.gd-btn--gold:hover { box-shadow: 0 10px 24px rgba(185, 149, 93, .35); transform: translateY(-1px); }

.gd-btn--ghost { background: transparent; border-color: var(--gd-line); color: var(--gd-text); }
.gd-btn--ghost:hover { background: var(--gd-paper); border-color: rgba(33,31,31,.22); }

.gd-btn--danger { background: transparent; border-color: rgba(155,83,72,.4); color: var(--gd-empty); }
.gd-btn--danger:hover { background: var(--gd-empty-soft); }

.gd-btn:active { transform: translateY(0) scale(.98); }

.gd-btn--block { width: 100%; }

.gd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.gd-fab {
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 25;

    width: 54px; height: 54px;
    border-radius: 50%;

    background: var(--gd-ink);
    color: var(--gd-gold);

    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    line-height: 1;

    box-shadow: var(--gd-shadow);
    transition: box-shadow var(--gd-transition), transform var(--gd-transition);
}

.gd-fab:hover {
    box-shadow: var(--gd-shadow-lg);
    transform: translateY(-2px) scale(1.04);
}

@media (min-width: 900px) {
    .gd-fab { right: 40px; bottom: 40px; }
}

/*
|------------------------------------------------------------------
| PAGINE STANDALONE (login, errore, conferma)
|------------------------------------------------------------------
*/

.gd-standalone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;

    background: var(--gd-ink-gradient);
}

.gd-standalone__card {
    width: 100%;
    max-width: 380px;
    padding: 28px 24px;

    background: var(--gd-panel);
    border-radius: 20px;
    box-shadow: var(--gd-shadow-lg);
}

.gd-standalone__card--error { border-top: 4px solid var(--gd-empty); }

.gd-standalone__logo {
    display: block;
    width: 130px;
    margin: 0 auto 20px;
}

.gd-error-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--gd-muted);
    font-size: .88rem;
    line-height: 1.6;
}

/*
|------------------------------------------------------------------
| MISC
|------------------------------------------------------------------
*/

.gd-empty-state {
    padding: 30px 16px;
    text-align: center;
    color: var(--gd-muted);
    font-size: .9rem;
}

.gd-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.gd-stat {
    padding: 16px 14px;
    background: var(--gd-panel);
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-sm);
    text-align: center;

    transition: box-shadow var(--gd-transition), transform var(--gd-transition), border-color var(--gd-transition);
}

a.gd-stat:hover {
    box-shadow: var(--gd-shadow-hover);
    border-color: rgba(185, 149, 93, .35);
    transform: translateY(-2px);
}

.gd-stat__num {
    font-family: 'Inter', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--gd-ink);
}

.gd-stat__label {
    margin-top: 2px;
    font-size: .74rem;
    color: var(--gd-muted);
}

@media (min-width: 760px) {
    .gd-container { padding: 0 24px; }
}

/*
|==============================================================================
| PLANNER PONY — estensioni read-only
|==============================================================================
*/

body.gd-body { min-height: 100vh; }

.gd-app.planner-app {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.planner-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.planner-logout {
    font-size: .80rem;
    color: rgba(255,255,255,.62);
}

.planner-logout:hover { color: #fff; }

.planner-summary {
    margin: 15px 0 2px;
    text-align: center;
    font-size: .76rem;
    color: var(--gd-muted);
}

.planner-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gd-full-soft);
    color: var(--gd-full);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .035em;
    white-space: nowrap;
}

.planner-confirmed::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.planner-names {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.planner-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    color: var(--gd-text);
    font-size: .88rem;
    font-weight: 600;
}

.planner-name__avatar {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gd-gold-soft);
    color: #8e7044;
    font-size: .70rem;
    font-weight: 800;
    text-transform: uppercase;
}

.planner-empty {
    margin-top: 18px;
    padding: 38px 20px;
    text-align: center;
    background: rgba(255,255,255,.55);
    border: 1px dashed rgba(33,31,31,.16);
    border-radius: var(--gd-radius);
}

.planner-empty__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gd-ink);
}

.planner-empty__text {
    margin-top: 5px;
    font-size: .82rem;
    color: var(--gd-muted);
    line-height: 1.5;
}

.planner-login-title { margin-top: 2px; }

.planner-login-subtitle {
    margin: 7px auto 0;
    max-width: 265px;
    text-align: center;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--gd-muted);
}

@media (min-width: 900px) {
    .gd-app.planner-app {
        margin-left: 0;
        padding-bottom: 48px;
    }

    .planner-topbar__row { max-width: none; }
}

/*
|==============================================================================
| PLANNER PONY — header logo + giorni in sequenza
|==============================================================================
*/

.planner-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: #363434;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    box-shadow: 0 4px 16px rgba(20, 16, 12, .13);
}

.planner-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.planner-header__logo {
    display: block;
    height: 100%;
    max-width: 30vw;
    object-fit: contain;
}

.planner-header .planner-logout {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.planner-days {
    padding-top: 4px;
}

.planner-day {
    padding: 22px 0 8px;
    border-bottom: 1px solid var(--gd-line);
}

.planner-day:last-child {
    border-bottom: 0;
    padding-bottom: 22px;
}

.planner-day__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.planner-day__weekday {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.42rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--gd-ink);
}

.planner-day__date {
    margin-top: 3px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gd-muted);
}

.planner-day__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--gd-gold-soft);
    color: #8e7044;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.planner-day .gd-timeline {
    margin-top: 15px;
}

@media (min-width: 760px) {
    .planner-header__inner {
        max-width: 760px;
    }

    .planner-header__logo {
        height: 48px;
    }
}

@media (min-width: 900px) {
    .planner-header {
        position: sticky;
        margin: 0;
        border-radius: 0;
    }

    .planner-header__inner {
        max-width: 1080px;
    }

    .planner-days {
        max-width: 760px;
        padding-top: 12px;
    }
}
