/* /Components/HoleShotOverview.razor.rz.scp.css */
.hole-overview[b-wnmkxnuqbz] {
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(40, 34, 20, 0.18), inset 0 0 0 1px rgba(176, 138, 60, 0.3);
}

.hole-overview svg[b-wnmkxnuqbz] {
    width: 100%;
    height: auto;
    display: block;
}

.ho-rough[b-wnmkxnuqbz] {
    fill: #98a06a;
    stroke: #77804d;
    stroke-width: 2;
}

.ho-fairway[b-wnmkxnuqbz] {
    fill: #d8dcae;
    stroke: #a3ad74;
    stroke-width: 2;
}

.ho-fringe[b-wnmkxnuqbz] {
    fill: #c2cb8c;
    stroke: #8f9a5c;
    stroke-width: 2;
}

.ho-green[b-wnmkxnuqbz] {
    fill: #c9d597;
    stroke: #8f9a5c;
    stroke-width: 2;
}

.ho-guide[b-wnmkxnuqbz] {
    stroke: rgba(74, 63, 42, 0.32);
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
}

.ho-tee[b-wnmkxnuqbz] {
    fill: #fbf5e7;
    stroke: #a3ad74;
    stroke-width: 2;
}

.ho-pin line[b-wnmkxnuqbz] {
    stroke: #2b2517;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.ho-pin path[b-wnmkxnuqbz] {
    fill: #b23a2e;
}

.ho-pin circle[b-wnmkxnuqbz] {
    fill: #2b2517;
}

/* Rendered above the plotted shots but kept translucent so a marker sitting on the pin still reads. */
.ho-pin-overlay[b-wnmkxnuqbz] {
    opacity: 0.55;
}

.ho-scale-break[b-wnmkxnuqbz] {
    stroke: rgba(176, 138, 60, 0.55);
    stroke-width: 1.3;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
}

.ho-path[b-wnmkxnuqbz] {
    stroke: rgba(74, 63, 42, 0.7);
    stroke-width: 2.5;
    stroke-dasharray: 9 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* /Components/ShotTargetSelector.razor.rz.scp.css */
.target-selector[b-6mailpjqj8] {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid var(--rf-panel-border, #e0d0ac);
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at 20% 8%, rgba(255, 251, 238, 0.6), transparent 45%),
        linear-gradient(180deg, #fbf5e7, #f3e9d1);
    box-shadow: inset 0 0 0 1px rgba(176, 138, 60, 0.22), 0 6px 18px rgba(60, 46, 20, 0.1);
}

.target-selector-header[b-6mailpjqj8] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.target-selector-header h3[b-6mailpjqj8] {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
}

.target-header-info[b-6mailpjqj8] {
    flex: 1 1 auto;
    min-width: 0;
}

.target-selector-header p[b-6mailpjqj8] {
    margin: 0;
    color: #52675e;
}

.target-header-controls[b-6mailpjqj8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.target-zoom-controls[b-6mailpjqj8] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.target-zoom-level[b-6mailpjqj8] {
    min-width: 3.1rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5c4a28;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.target-zoom-toggle[b-6mailpjqj8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #bcd3c6;
    border-radius: 0.5rem;
    background: #fff;
    color: #29483b;
    cursor: pointer;
}

.target-zoom-toggle svg[b-6mailpjqj8] {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.target-zoom-toggle:disabled[b-6mailpjqj8] {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

.target-mode-switch[b-6mailpjqj8] {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background: #ecdfc2;
    border: 1px solid rgba(176, 138, 60, 0.3);
}

.target-mode-switch button[b-6mailpjqj8] {
    padding: 0.3rem 0.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5c4a28;
    font-size: 0.85rem;
    font-weight: 700;
}

.target-mode-switch button.active[b-6mailpjqj8] {
    background: #fbf5e7;
    box-shadow: 0 2px 8px rgba(60, 46, 20, 0.18);
    color: var(--rf-brand-dark, #17352a);
}

.target-canvas[b-6mailpjqj8] {
    width: min(100%, 36rem);
    margin: 0 auto;
}

.target-canvas svg[b-6mailpjqj8] {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
    filter: drop-shadow(0 10px 18px rgba(40, 34, 20, 0.22));
    touch-action: none;
    user-select: none;
    /* iOS Safari needs the -webkit- prefixed properties to suppress the drag-selection
       highlight and the long-press callout menu when tapping/dragging on the target. */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.rough-zone[b-6mailpjqj8] {
    fill: #98a06a;
    stroke: #77804d;
    stroke-width: 3;
}

.fringe-zone[b-6mailpjqj8] {
    fill: #c2cb8c;
    stroke: #8f9a5c;
    stroke-width: 3;
}

.green-zone[b-6mailpjqj8] {
    fill: #c9d597;
    stroke: #8f9a5c;
    stroke-width: 3;
}

.green-surface[b-6mailpjqj8] {
    fill: url(#greenSurfaceGradient);
    stroke: #8f9a5c;
    stroke-width: 3;
}

.fairway-zone[b-6mailpjqj8] {
    fill: #d8dcae;
    stroke: #a3ad74;
    stroke-width: 2.5;
}

.center-fairway[b-6mailpjqj8] {
    fill: #e3e6be;
    stroke: #b7bf86;
    stroke-width: 2;
}

.fairway-divider[b-6mailpjqj8] {
    stroke: rgba(74, 63, 42, 0.28);
    stroke-width: 1.2;
    stroke-dasharray: 3 6;
}

.distance-guide[b-6mailpjqj8] {
    stroke: rgba(74, 63, 42, 0.3);
    stroke-width: 1.3;
    stroke-dasharray: 2 8;
    stroke-linecap: round;
}

.distance-chip[b-6mailpjqj8] {
    fill: #fbf5e7;
    stroke: rgba(176, 138, 60, 0.6);
    stroke-width: 1.1;
}

.zone-chip[b-6mailpjqj8] {
    fill: rgba(251, 245, 231, 0.85);
    stroke: rgba(176, 138, 60, 0.5);
    stroke-width: 1;
}

.target-axis[b-6mailpjqj8],
.distance-guide[b-6mailpjqj8] {
    stroke: rgba(74, 63, 42, 0.5);
    stroke-width: 1.5;
    stroke-dasharray: 6 7;
}

.distance-label[b-6mailpjqj8],
.zone-label[b-6mailpjqj8],
.direction-label[b-6mailpjqj8] {
    fill: #4a3f2a;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-weight: 600;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(251, 245, 231, 0.9);
    stroke-width: 3.5px;
    stroke-linejoin: round;
}

.zone-label[b-6mailpjqj8],
.direction-label[b-6mailpjqj8] {
    letter-spacing: 0.1em;
}

.distance-label[b-6mailpjqj8] {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.zone-label[b-6mailpjqj8] {
    font-size: 16px;
}

.direction-label[b-6mailpjqj8] {
    font-size: 18px;
}

.rough-label[b-6mailpjqj8] {
    fill: #f7efd8;
    stroke: rgba(58, 49, 32, 0.6);
}

.pin line[b-6mailpjqj8] {
    stroke: #2b2517;
    stroke-width: 4;
}

.pin path[b-6mailpjqj8] {
    fill: #b23a2e;
    stroke: #7a241b;
    stroke-width: 2;
}

.pin circle[b-6mailpjqj8] {
    fill: #2b2517;
}

.shot-marker-halo[b-6mailpjqj8] {
    fill: rgba(251, 245, 231, 0.95);
}

.shot-marker[b-6mailpjqj8] {
    fill: #c23a2c;
    stroke: #fbf5e7;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 3px rgba(90, 20, 12, 0.45));
}

.shot-path[b-6mailpjqj8] {
    fill: none;
    stroke: rgba(74, 63, 42, 0.75);
    stroke-width: 2.5;
    stroke-dasharray: 9 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.previous-shot-marker[b-6mailpjqj8] {
    fill: rgba(251, 245, 231, 0.92);
    stroke: #8a7d5f;
    stroke-width: 2;
}

.previous-shot-label[b-6mailpjqj8] {
    fill: #6a5b3f;
    font-size: 12px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
}

.target-hit-area[b-6mailpjqj8] {
    fill: transparent;
    cursor: crosshair;
    pointer-events: all;
}

.marker-tooltip[b-6mailpjqj8] {
    pointer-events: none;
}

.marker-tooltip-bg[b-6mailpjqj8] {
    fill: rgba(43, 37, 23, 0.94);
    stroke: rgba(216, 189, 126, 0.4);
    stroke-width: 1;
}

.marker-tooltip-text[b-6mailpjqj8] {
    fill: #f6efdd;
    font-size: 17px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.marker-tooltip-primary[b-6mailpjqj8] {
    font-weight: 800;
    fill: #ffffff;
}

.target-selection-summary[b-6mailpjqj8] {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.4rem;
    min-height: 2rem;
    color: #6a5b3f;
}

.target-selection-summary strong:first-child[b-6mailpjqj8] {
    font-family: var(--rf-serif, Georgia, serif);
    font-size: 1.45rem;
    color: var(--rf-brand-dark, #17352a);
}

.target-selection-separator[b-6mailpjqj8] {
    color: #b7a67e;
}

@media (max-width: 767.98px) {
    .target-selector[b-6mailpjqj8] {
        padding: 0.6rem;
        gap: 0.55rem;
    }
}

@media (max-width: 540px) {
    .target-selector[b-6mailpjqj8] {
        padding: 0.65rem;
    }
}
/* /Components/SyncStatusChip.razor.rz.scp.css */
/*
    The chip lives in the dark topbar, so its palette is built from the topbar's own parchment/gold
    accents rather than Bootstrap's alert colours. Only the attention state is allowed to read as an
    error: being out of coverage on a course is normal, and a red badge for it would train the player to
    ignore the one colour that matters.
*/

.sync-chip-host[b-8o5gmccuk0] {
    position: relative;
    display: flex;
    align-items: center;

    /* Pushes the chip and everything after it in the topbar to the right, leaving the brand on the left. */
    margin-left: auto;
}

.sync-chip[b-8o5gmccuk0] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    /* A 2.5rem-tall target with the topbar's own padding: comfortably tappable with a glove on, and the
       same height as the menu button beside it. */
    min-height: 2.5rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(216, 189, 126, 0.45);
    border-radius: 999px;
    background: rgba(216, 189, 126, 0.12);
    color: #f0e6cd;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.sync-chip:hover[b-8o5gmccuk0] {
    background: rgba(216, 189, 126, 0.22);
}

.sync-chip:focus-visible[b-8o5gmccuk0] {
    outline: 2px solid #f7edd2;
    outline-offset: 2px;
}

.sync-chip-glyph[b-8o5gmccuk0] {
    display: inline-flex;
    flex: 0 0 auto;
}

.sync-chip-glyph svg[b-8o5gmccuk0] {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Synced is deliberately the quietest state in the bar: reassurance, not an announcement. */
.sync-chip-synced[b-8o5gmccuk0] {
    border-color: rgba(216, 189, 126, 0.3);
    background: transparent;
    color: #f0e6cd;
    font-weight: 500;
}

/* Offline and pending are informational. */
.sync-chip-offline[b-8o5gmccuk0],
.sync-chip-pending[b-8o5gmccuk0],
.sync-chip-syncing[b-8o5gmccuk0] {
    border-color: rgba(216, 189, 126, 0.6);
    background: rgba(216, 189, 126, 0.16);
    color: #f7edd2;
}

.sync-chip-syncing .sync-chip-glyph svg[b-8o5gmccuk0] {
    animation: sync-spin-b-8o5gmccuk0 1.1s linear infinite;
}

@keyframes sync-spin-b-8o5gmccuk0 {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sync-chip-syncing .sync-chip-glyph svg[b-8o5gmccuk0] {
        animation: none;
    }
}

/* Something the player has to do, but nothing is lost: amber, not red. */
.sync-chip-auth[b-8o5gmccuk0] {
    border-color: #d9ad4e;
    background: rgba(217, 173, 78, 0.24);
    color: #ffeec2;
}

/* The one state that earns red. */
.sync-chip-attention[b-8o5gmccuk0] {
    border-color: #e08b7f;
    background: rgba(224, 139, 127, 0.24);
    color: #ffe2dc;
}

.sync-detail-backdrop[b-8o5gmccuk0] {
    position: fixed;
    inset: 0;

    /* Under the panel, over the page. The topbar itself sits at 30. */
    z-index: 35;
}

.sync-detail[b-8o5gmccuk0] {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 40;
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    padding: 0.9rem 1rem 1rem;
    background: var(--rf-panel, #fbf5e7);
    color: var(--rf-text, #2c2517);
    border: 1px solid var(--rf-panel-border, #e0d0ac);
    border-radius: var(--rf-radius, 0.85rem);
    box-shadow: 0 0.9rem 2rem rgba(18, 41, 31, 0.32);
    text-align: left;

    /* The topbar sets a nowrap chip; the panel's prose has to be free to wrap. */
    white-space: normal;
}

.sync-detail-header[b-8o5gmccuk0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sync-detail-title[b-8o5gmccuk0] {
    margin: 0;
    font-size: 1.05rem;
    color: var(--rf-brand-dark, #17352a);
}

.sync-detail-close[b-8o5gmccuk0] {
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rf-text-muted, #6a5b3f);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sync-detail-close:focus-visible[b-8o5gmccuk0] {
    outline: 2px solid var(--rf-gold, #b08a3c);
    outline-offset: 2px;
}

.sync-detail-summary[b-8o5gmccuk0] {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.88rem;
    color: var(--rf-text, #2c2517);
}

.sync-detail-note[b-8o5gmccuk0] {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--rf-text-muted, #6a5b3f);
}

.sync-detail-note-attention[b-8o5gmccuk0] {
    color: var(--rf-danger, #9c2a1e);
    font-weight: 600;
}

.sync-detail-action[b-8o5gmccuk0] {
    width: 100%;
    min-height: 2.5rem;
}

.sync-detail-actions[b-8o5gmccuk0] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.sync-detail-actions .btn[b-8o5gmccuk0] {
    min-height: 2.5rem;
}

.sync-detail-subtitle[b-8o5gmccuk0] {
    margin: 1rem 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rf-text-muted, #6a5b3f);
}

.sync-detail-subtitle-attention[b-8o5gmccuk0] {
    color: var(--rf-danger, #9c2a1e);
}

.sync-detail-list[b-8o5gmccuk0] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sync-detail-item[b-8o5gmccuk0] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.6rem;
    background: var(--rf-panel-2, #f6eeda);
    border: 1px solid var(--rf-rule, #d9c7a0);
    border-left: 3px solid var(--rf-gold-soft, #d8bd7e);
    border-radius: var(--rf-radius-sm, 0.6rem);
}

/* A thicker left edge as well as the colour, so the distinction survives a greyscale screen. */
.sync-detail-item-attention[b-8o5gmccuk0] {
    border-left-width: 5px;
    border-left-color: var(--rf-danger, #9c2a1e);
}

.sync-detail-item-what[b-8o5gmccuk0] {
    font-size: 0.85rem;
    font-weight: 600;
}

.sync-detail-item-when[b-8o5gmccuk0] {
    font-size: 0.75rem;
    color: var(--rf-text-faint, #8a795a);
    font-variant-numeric: tabular-nums;
}

.sync-detail-item-error[b-8o5gmccuk0] {
    font-size: 0.75rem;
    color: var(--rf-danger, #9c2a1e);
}

/*
    Mobile portrait: the chip has to stay readable next to the menu button without pushing it off the bar,
    and the panel is easier to read as a full-width sheet under the topbar than as a narrow popover.
*/
@media (max-width: 767.98px) {
    .sync-chip[b-8o5gmccuk0] {
        min-height: 2.75rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .sync-chip-text[b-8o5gmccuk0] {
        max-width: min(12rem, 45vw);
        white-space: normal;
    }

    /*
        Dropping the host out of the positioned flow makes the sticky topbar the panel's containing block,
        so it drops as a full-width sheet directly beneath the bar - the same shape as the collapsed nav -
        with no hard-coded topbar height to drift.
    */
    .sync-chip-host[b-8o5gmccuk0] {
        position: static;
    }

    .sync-detail[b-8o5gmccuk0] {
        top: calc(100% + 0.35rem);
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-height: 65vh;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-xibidpsttm] {
    min-height: 100vh;
    /* The bar is out of flow (see .app-topbar), so the shell reserves its height instead. The
       variable is measured by roundForgeTopbar and only falls back to the value in app.css. */
    padding-top: var(--rf-topbar-height, 3.4rem);
}

/* Fixed rather than sticky: iOS Safari does not repaint a sticky header during momentum
   scrolling, so it blinks out mid-flick - and mid-round the distance readout and sync chip are
   exactly what a player is looking at. Fixed is composited and stays put. */
.app-topbar[b-xibidpsttm] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 1.15rem;
    background:
        radial-gradient(circle at 12% -40%, rgba(216, 189, 126, 0.16), transparent 60%),
        linear-gradient(180deg, #1c3d30 0%, #16342a 100%);
    color: #f6efdd;
    border-bottom: 2px solid #b08a3c;
    box-shadow: 0 0.3rem 1.1rem rgba(18, 41, 31, 0.28);
}

.brand-block[b-xibidpsttm] {
    min-width: 0;
    justify-self: start;
}

.topbar-center[b-xibidpsttm] {
    grid-column: 2;
    display: grid;
    grid-template-columns: 4.25rem 7.5rem;
    align-items: baseline;
    justify-self: center;
    width: 11.75rem;
    white-space: nowrap;
}

.topbar-center span[b-xibidpsttm] {
    color: #d8bd7e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-center strong[b-xibidpsttm] {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.18rem;
    width: 7.5rem;
    color: #fffaf0;
    line-height: 1.15;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.topbar-center strong b[b-xibidpsttm] {
    display: inline-block;
    width: 5.8ch;
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
}

.topbar-center strong small[b-xibidpsttm] {
    color: #e5dcc5;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 600;
}

.topbar-end[b-xibidpsttm] {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 1rem;
    min-width: 0;
}

.brand[b-xibidpsttm] {
    color: #f7edd2;
    text-decoration: none;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.brand-tag[b-xibidpsttm] {
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(216, 189, 126, 0.82);
}

.topbar-collapse[b-xibidpsttm] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar-version[b-xibidpsttm] {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: rgba(216, 189, 126, 0.72);
    white-space: nowrap;
}

/* Hamburger button: shown only on narrow viewports; the nav is inline otherwise. */
.nav-toggle[b-xibidpsttm] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(216, 189, 126, 0.5);
    border-radius: 0.55rem;
    background: rgba(216, 189, 126, 0.1);
    color: #f7edd2;
    cursor: pointer;
}

.nav-toggle svg[b-xibidpsttm] {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-toggle.open[b-xibidpsttm] {
    background: rgba(216, 189, 126, 0.22);
    border-color: #b08a3c;
}

.app-main[b-xibidpsttm] {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .app-main[b-xibidpsttm] {
        padding: 1.5rem;
    }
}

@media (max-width: 1399.98px) {
    .app-topbar[b-xibidpsttm] {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        padding: 0.45rem 0.85rem;
    }

    .brand[b-xibidpsttm] {
        font-size: 1.15rem;
    }

    .brand-tag[b-xibidpsttm] {
        display: none;
    }

    .topbar-center[b-xibidpsttm] {
        position: absolute;
        left: 50%;
        grid-column: auto;
        grid-template-columns: 1fr;
        width: 6.5rem;
        transform: translateX(-50%);
    }

    .topbar-center span[b-xibidpsttm] {
        display: none;
    }

    .topbar-center strong[b-xibidpsttm] {
        width: 6.5rem;
    }

    .topbar-center strong b[b-xibidpsttm] {
        font-size: 1.35rem;
    }

    .topbar-center strong small[b-xibidpsttm] {
        font-size: 0.7rem;
    }

    .topbar-end[b-xibidpsttm] {
        grid-column: 2;
        gap: 0.45rem;
    }

    .nav-toggle[b-xibidpsttm] {
        display: inline-flex;
    }

    /* Nav collapses into a dropdown panel anchored under the topbar. */
    .topbar-collapse[b-xibidpsttm] {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, #1c3d30 0%, #17352a 100%);
        border-bottom: 2px solid #b08a3c;
        box-shadow: 0 0.6rem 1.2rem rgba(18, 41, 31, 0.35);
    }

    .topbar-collapse.open[b-xibidpsttm] {
        display: flex;
    }

    .topbar-collapse .topbar-nav[b-xibidpsttm] {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .topbar-collapse .topbar-nav a[b-xibidpsttm] {
        padding: 0.7rem 0.4rem;
        border-bottom: 1px solid rgba(216, 189, 126, 0.18);
        font-size: 1.05rem;
    }

    .topbar-collapse .topbar-user[b-xibidpsttm] {
        justify-content: space-between;
        padding-top: 0.6rem;
    }

    .topbar-collapse .topbar-version[b-xibidpsttm] {
        margin-top: 0.15rem;
        padding-top: 0.5rem;
        text-align: right;
        border-top: 1px solid rgba(216, 189, 126, 0.18);
    }
}

@media (max-width: 479.98px) {
    .topbar-center[b-xibidpsttm] {
        left: 48%;
        width: 5.5rem;
    }

    .topbar-center strong[b-xibidpsttm] {
        width: 5.5rem;
    }

    .topbar-center strong b[b-xibidpsttm] {
        font-size: 1.15rem;
    }

    .topbar-center strong small[b-xibidpsttm] {
        font-size: 0.62rem;
    }
}
