/* ============================================================================
   FlashFix report body — dark, token-driven reproduction of the report mockups.
   Everything is namespaced under .rpt so it never collides with the app shell.
   Colours come exclusively from the theme tokens in app.css (:root / .light),
   so the reports track the dark/light toggle and the accent (--brass).
   ============================================================================ */

.rpt { --rpt-radius: 12px; color: var(--text); }
.rpt .grotesk { font-family: 'Space Grotesk', sans-serif; }
.rpt .mono { font-family: 'JetBrains Mono', monospace; }

.rpt-stack { display: flex; flex-direction: column; gap: 18px; }

/* Standard uppercase micro-label used across tiles and panels. */
.rpt-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.07em;
    display: block; margin-bottom: 0.35rem;
}

/* ---------- Cards ---------- */
.rpt-card {
    background: var(--panel);
    border: 1px solid var(--steel);
    border-radius: var(--rpt-radius);
    padding: 1.15rem 1.25rem;
}
.rpt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.rpt-card-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700;
    color: var(--text); display: flex; align-items: center; gap: 8px;
}
.rpt-card-title i { color: var(--brass); }
.rpt-card-sub { font-size: 0.66rem; color: var(--muted); margin-top: 3px; }
.rpt-chip {
    font-size: 0.6rem; font-weight: 700; color: var(--muted);
    background: color-mix(in srgb, var(--steel), transparent 35%);
    padding: 2px 8px; border-radius: 6px; letter-spacing: 0.04em; white-space: nowrap;
}

/* ---------- Forecast strip ---------- */
.rpt-strip {
    display: flex; align-items: center; gap: 26px;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--steel);
    border-radius: var(--rpt-radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bg), #000 45%), var(--panel) 70%);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--brass), transparent 88%);
    overflow: hidden; flex-wrap: wrap;
}
.rpt-strip-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rpt-strip-brand i { color: var(--green); }
.rpt-strip-brand .t {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.12em;
}
.rpt-live {
    font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em;
    background: color-mix(in srgb, var(--green), transparent 82%);
    color: var(--green); padding: 2px 7px; border-radius: 6px;
}
.rpt-strip-div { width: 1px; height: 26px; background: var(--steel); flex-shrink: 0; }
.rpt-strip-block { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 190px; }
.rpt-strip-block .v {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
    color: var(--text); line-height: 1;
}
.rpt-strip-block .cap { font-size: 0.56rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; display: block; margin-bottom: 3px; }
.rpt-strip-prog { flex: 1; min-width: 110px; }
.rpt-strip-prog .row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.rpt-strip-prog .row span:first-child { font-size: 0.56rem; font-weight: 700; color: var(--muted); }
.rpt-strip-kpis { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.rpt-strip-kpis .k { text-align: center; }
.rpt-strip-kpis .k .cap { font-size: 0.56rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.rpt-strip-kpis .k .v { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* ---------- View tab bar ---------- */
.rpt-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rpt-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--steel), transparent 45%); }
.rpt-tab {
    border: 0; background: transparent; color: var(--muted);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700;
    padding: 6px 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px;
    transition: color .15s ease, background-color .15s ease;
}
.rpt-tab:hover { color: var(--text); }
.rpt-tab.active { background: var(--brass); color: #1c1503; box-shadow: 0 2px 10px color-mix(in srgb, var(--brass), transparent 65%); }
.rpt-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--steel), transparent 45%); }
.rpt-seg button { border: 0; background: transparent; color: var(--muted); font-size: 0.64rem; font-weight: 700; padding: 4px 11px; border-radius: 6px; }
.rpt-seg button.active { background: var(--brass); color: #1c1503; }
.rpt-mini-label { font-size: 0.62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Metric tiles ---------- */
.rpt-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1400px) { .rpt-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .rpt-tiles { grid-template-columns: repeat(2, 1fr); } }
.rpt-tile {
    position: relative; overflow: hidden;
    background: var(--panel); border: 1px solid var(--steel);
    border-radius: var(--rpt-radius); padding: 1.05rem 1.15rem;
    transition: transform .15s ease, border-color .15s ease;
}
.rpt-tile:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brass), transparent 60%); }
.rpt-tile::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.rpt-tile.green::after  { background: linear-gradient(90deg, var(--green), #16a34a); }
.rpt-tile.blue::after   { background: linear-gradient(90deg, var(--blue), #35506b); }
.rpt-tile.amber::after  { background: linear-gradient(90deg, var(--brass), #b9832d); }
.rpt-tile.navy::after   { background: linear-gradient(90deg, #35506b, var(--blue)); }
.rpt-tile.purple::after { background: linear-gradient(90deg, var(--purple), #7c5cf0); }
.rpt-tile.teal::after   { background: linear-gradient(90deg, #2dd4bf, #14b8a6); }
.rpt-tile .val { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.rpt-tile .val b { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1; }
.rpt-tile .val b small { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.rpt-tile .sub { font-size: 0.58rem; color: var(--muted); margin-top: 6px; }
.rpt-delta { font-size: 0.62rem; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; margin-bottom: 1px; }
.rpt-delta.up { color: var(--green); }
.rpt-delta.down { color: var(--red); }
.rpt-delta.warn { color: var(--orange); }

/* ---------- Progress bars ---------- */
.rpt-track { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--steel), transparent 20%); overflow: hidden; }
.rpt-track.slim { height: 4px; }
.rpt-fill { height: 100%; border-radius: 99px; }
.rpt-fill.green { background: linear-gradient(90deg, var(--green), #16a34a); }
.rpt-fill.amber { background: linear-gradient(90deg, var(--brass), #b9832d); }
.rpt-fill.purple { background: linear-gradient(90deg, var(--purple), #7c5cf0); }
.rpt-fill.blue { background: linear-gradient(90deg, var(--blue), #5a7ea3); }
.rpt-fill.red { background: var(--red); }

/* ---------- Split layout ---------- */
.rpt-split { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; }
@media (max-width: 1200px) { .rpt-split { grid-template-columns: 1fr; } }

/* ---------- KPI / column / bento layouts ---------- */
.rpt-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .rpt-kpis { grid-template-columns: repeat(2, 1fr); } }
.rpt-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .rpt-cols3 { grid-template-columns: 1fr; } }
.rpt-bento { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1200px) { .rpt-bento { grid-template-columns: 1fr; } }

/* ---------- Funnel ---------- */
.rpt-legend { display: flex; align-items: center; gap: 12px; font-size: 0.6rem; font-weight: 700; color: var(--muted); }
.rpt-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.rpt-funnel { display: flex; flex-direction: column; gap: 8px; }
.rpt-stage { display: flex; align-items: center; gap: 12px; }
.rpt-stage .count { width: 96px; flex-shrink: 0; text-align: right; }
.rpt-stage .count b { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); display: block; line-height: 1.1; }
.rpt-stage .count.won b { color: var(--green); }
.rpt-stage .count span { font-size: 0.56rem; color: var(--muted); font-weight: 700; }
.rpt-stage .barwrap { flex: 1; }
.rpt-bar {
    height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; min-width: 90px;
}
.rpt-bar .name { font-family: 'Space Grotesk', sans-serif; font-size: 0.64rem; font-weight: 700; color: #fff; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-bar .meta { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.7); }
.rpt-fb-1 { background: linear-gradient(90deg, #2a4058, #3f5f80); }
.rpt-fb-2 { background: linear-gradient(90deg, #3f5f80, #4f79a1); }
.rpt-fb-3 { background: linear-gradient(90deg, var(--blue), #5f86ad); }
.rpt-fb-4 { background: linear-gradient(90deg, var(--brass), #c79235); }
.rpt-fb-5 { background: linear-gradient(90deg, #2ea36a, var(--green)); }
.rpt-fb-6 { background: linear-gradient(90deg, #16a34a, var(--green)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green), transparent 55%); }
.rpt-stage .conv { width: 74px; flex-shrink: 0; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; font-weight: 700; color: var(--muted); }
.rpt-stage .conv.won { color: var(--green); }
.rpt-dropoff { display: flex; align-items: center; gap: 12px; }
.rpt-dropoff .count, .rpt-dropoff .conv { flex-shrink: 0; }
.rpt-dropoff .line { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.rpt-dropoff .line .rule { flex: 1; border-top: 1px dashed var(--steel); }
.rpt-dropoff-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.56rem; font-weight: 700;
    color: var(--red); background: color-mix(in srgb, var(--red), transparent 86%);
    border: 1px solid color-mix(in srgb, var(--red), transparent 60%);
    padding: 2px 7px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.rpt-dropoff-badge.flat {
    color: var(--muted); background: color-mix(in srgb, var(--steel), transparent 40%);
    border-color: var(--steel);
}
.rpt-funnel-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--steel); }
.rpt-funnel-foot .c { text-align: center; }
.rpt-funnel-foot .c .l { font-size: 0.56rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rpt-funnel-foot .c .v { font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem; font-weight: 700; margin-top: 3px; }

/* ---------- TTV cards ---------- */
.rpt-ttv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rpt-ttv {
    background: color-mix(in srgb, var(--steel), transparent 55%);
    border: 1px solid var(--steel); border-radius: 10px; padding: 0.85rem 0.95rem;
}
.rpt-ttv .val { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; }
.rpt-ttv .val b { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1; }
.rpt-ttv .val b small { font-size: 0.8rem; color: var(--muted); }
.rpt-ttv .sub { font-size: 0.56rem; color: var(--muted); margin-top: 5px; }

/* ---------- Chart host ---------- */
.rpt-chart { width: 100%; }

/* ---------- Tables ---------- */
.rpt-table-wrap { overflow-x: auto; }
.rpt-table { width: 100%; border-collapse: collapse; text-align: left; }
.rpt-table th {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.58rem; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em;
    padding: 0.55rem 0.7rem; white-space: nowrap; user-select: none;
    background: color-mix(in srgb, var(--steel), transparent 55%);
}
.rpt-table td { padding: 0.6rem 0.7rem; font-size: 0.72rem; vertical-align: middle; border-bottom: 1px solid var(--steel); color: var(--text); }
.rpt-table tbody tr:last-child td { border-bottom: 0; }
.rpt-table tbody tr:hover { background: color-mix(in srgb, var(--steel), transparent 70%); }
.rpt-table .r { text-align: right; }
.rpt-table .c { text-align: center; }
.rpt-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.6rem; font-weight: 700; color: #1c1503;
    background: linear-gradient(135deg, var(--brass), #b9832d); }
.rpt-rep { display: flex; align-items: center; gap: 9px; }
.rpt-rep b { font-size: 0.72rem; font-weight: 700; color: var(--text); display: block; line-height: 1.15; }
.rpt-rep span { font-size: 0.56rem; color: var(--muted); }

/* ---------- Badges ---------- */
.rpt-badge { font-size: 0.58rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; display: inline-block; }
.rpt-badge.green { background: color-mix(in srgb, var(--green), transparent 82%); color: var(--green); }
.rpt-badge.amber { background: color-mix(in srgb, var(--brass), transparent 82%); color: var(--brass); }
.rpt-badge.red { background: color-mix(in srgb, var(--red), transparent 82%); color: var(--red); }
.rpt-badge.navy { background: color-mix(in srgb, var(--blue), transparent 78%); color: color-mix(in srgb, var(--blue), var(--text) 45%); }
.rpt-pill { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; display: inline-block; }
.rpt-pill.win { background: color-mix(in srgb, var(--green), transparent 82%); color: var(--green); border: 1px solid color-mix(in srgb, var(--green), transparent 62%); }
.rpt-pill.loss { background: color-mix(in srgb, var(--red), transparent 84%); color: var(--red); border: 1px solid color-mix(in srgb, var(--red), transparent 62%); }
.rpt-pill.neutral { background: color-mix(in srgb, var(--steel), transparent 35%); color: var(--muted); }

/* ---------- Table foot ---------- */
.rpt-table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--steel); }
.rpt-table-foot .stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.6rem; font-weight: 700; color: var(--muted); }
.rpt-table-foot .stats .sep { width: 1px; height: 12px; background: var(--steel); }

/* ---------- Footer strip ---------- */
.rpt-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 0.7rem 1.1rem; border: 1px solid var(--steel); border-radius: var(--rpt-radius);
    background: color-mix(in srgb, var(--panel), transparent 15%); }
.rpt-footer .l, .rpt-footer .r { display: flex; align-items: center; gap: 16px; }
.rpt-footer span { font-size: 0.62rem; color: var(--muted); }
.rpt-footer .secure { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.rpt-footer .secure i { color: var(--brass); margin-right: 5px; }
.rpt-dotlive { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: rpt-pulse 2s ease-in-out infinite; }
@keyframes rpt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Filter toolbar ---------- */
.rpt-filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rpt-filter-spacer { flex: 1 1 auto; }

/* Branch selector — bare, no leading label */
.rpt-branch { position: relative; display: inline-flex; align-items: center; }
.rpt-branch > .lead { position: absolute; left: 12px; font-size: 0.72rem; color: var(--brass); pointer-events: none; }
.rpt-branch > .caret { position: absolute; right: 11px; font-size: 0.6rem; color: var(--muted); pointer-events: none; }
.rpt-branch select {
    appearance: none; -webkit-appearance: none;
    height: 38px; min-width: 176px; padding: 0 30px 0 32px;
    border: 1px solid var(--steel); border-radius: 10px;
    background: var(--panel); color: var(--text);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: border-color .15s ease;
}
.rpt-branch select:hover { border-color: color-mix(in srgb, var(--brass), transparent 55%); }
.rpt-branch select:focus { outline: none; border-color: var(--brass); }

/* Control pill (date range / granularity / apply) */
.rpt-ctrl {
    display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px;
    border: 1px solid var(--steel); border-radius: 10px; background: var(--panel); color: var(--text);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease;
}
.rpt-ctrl:hover:not(:disabled) { border-color: color-mix(in srgb, var(--brass), transparent 55%); }
.rpt-ctrl:disabled { opacity: 0.6; cursor: default; }
.rpt-ctrl .lead { font-size: 0.74rem; color: var(--brass); }
.rpt-ctrl .caret { font-size: 0.6rem; color: var(--muted); margin-left: 2px; }
.rpt-ctrl.primary { background: var(--brass); border-color: transparent; color: #1c1503; font-weight: 700; }
.rpt-ctrl.primary .lead { color: #1c1503; }
.rpt-ctrl.primary:hover:not(:disabled) { filter: brightness(1.05); }

/* Popover */
.rpt-pop { position: relative; display: inline-flex; }
.rpt-pop-backdrop { position: fixed; inset: 0; z-index: 90; background: transparent; }
.rpt-pop-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
    background: var(--panel); border: 1px solid var(--steel); border-radius: 12px;
    padding: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.45);
    display: flex; flex-direction: column; gap: 10px; min-width: 150px;
}
.rpt-pop-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rpt-preset {
    border: 1px solid var(--steel); background: color-mix(in srgb, var(--steel), transparent 55%);
    color: var(--text); border-radius: 8px; padding: 7px 10px;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600; text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}
.rpt-preset:hover:not(:disabled) { border-color: var(--brass); background: color-mix(in srgb, var(--brass), transparent 85%); }
.rpt-pop-dates { display: flex; gap: 10px; }
.rpt-pop-dates label { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rpt-pop-dates .rpt-label { margin-bottom: 0; }
.rpt-date {
    height: 34px; padding: 0 10px; border: 1px solid var(--steel); border-radius: 8px;
    background: color-mix(in srgb, var(--steel), transparent 55%); color: var(--text);
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
}
.rpt-date:focus { outline: none; border-color: var(--brass); }
.rpt-pop-apply {
    border: 0; border-radius: 8px; background: var(--brass); color: #1c1503;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem; font-weight: 700; padding: 8px 12px;
}
.rpt-pop-apply:hover:not(:disabled) { filter: brightness(1.05); }
.rpt-pop-item {
    border: 0; background: transparent; color: var(--text); text-align: left;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.76rem; font-weight: 600;
    padding: 8px 12px; border-radius: 8px; transition: background-color .15s ease;
}
.rpt-pop-item:hover { background: color-mix(in srgb, var(--steel), transparent 40%); }
.rpt-pop-item.active { color: var(--brass); background: color-mix(in srgb, var(--brass), transparent 88%); }

/* ---------- Header-mounted filters ---------- */
.rpt-hdr-filters { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Airline-style dual-month range picker ---------- */
.rpt-cal-pop {
    /* Fixed to the viewport's right edge so the wide two-month panel never clips off-screen,
       regardless of where the trigger sits inside the right-aligned header. */
    position: fixed; top: 56px; right: 16px; z-index: 200;
    background: var(--panel); border: 1px solid var(--steel); border-radius: 16px;
    padding: 20px 22px; box-shadow: 0 22px 54px rgba(0,0,0,.55);
    width: 720px; max-width: calc(100vw - 32px);
}
.rpt-cal-grid { display: grid; grid-template-columns: 30px minmax(0,1fr) minmax(0,1fr) 30px; gap: 18px; align-items: center; }
.rpt-cal { align-self: start; }
.rpt-cal-title { text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.rpt-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.rpt-cal-dow { margin-bottom: 6px; }
.rpt-cal-dow span { text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 0.66rem; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.rpt-cal-day {
    height: 38px; display: grid; place-items: center; border: 0; background: transparent;
    color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 500;
    border-radius: 9px; cursor: pointer; transition: background-color .12s ease;
}
.rpt-cal-day:hover:not(.empty):not(.sel) { background: color-mix(in srgb, var(--steel), transparent 35%); }
.rpt-cal-day.empty { visibility: hidden; cursor: default; }
.rpt-cal-day.inrange { background: color-mix(in srgb, var(--brass), transparent 82%); border-radius: 0; }
.rpt-cal-day.sel { background: var(--brass); color: #1c1503; font-weight: 700; }
.rpt-cal-day.sel.start { border-radius: 9px 0 0 9px; }
.rpt-cal-day.sel.end { border-radius: 0 9px 9px 0; }
.rpt-cal-day.sel.single { border-radius: 9px; }
.rpt-cal-nav {
    align-self: center; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--steel); background: var(--panel); color: var(--muted);
    display: grid; place-items: center; font-size: 0.7rem; transition: border-color .15s ease, color .15s ease;
}
.rpt-cal-nav:hover { border-color: var(--brass); color: var(--text); }
.rpt-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--steel); }
.rpt-cal-presets { display: flex; gap: 8px; }
.rpt-cal-presets .rpt-preset { min-width: 52px; }
.rpt-cal-actions { display: flex; align-items: center; gap: 10px; }
.rpt-cal-clear {
    border: 1px solid color-mix(in srgb, var(--brass), transparent 40%); background: transparent; color: var(--brass);
    border-radius: 99px; padding: 9px 22px; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
    transition: background-color .15s ease;
}
.rpt-cal-clear:hover { background: color-mix(in srgb, var(--brass), transparent 88%); }
.rpt-cal-continue {
    border: 0; background: var(--brass); color: #1c1503; border-radius: 99px; padding: 9px 26px;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 700;
}
.rpt-cal-continue:hover:not(:disabled) { filter: brightness(1.05); }
.rpt-cal-continue:disabled { opacity: 0.5; cursor: default; }

.rpt-num { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.rpt-t-green { color: var(--green); }
.rpt-t-red { color: var(--red); }
.rpt-t-text { color: var(--text); }
