/* Robelet design layer on top of MudBlazor. Colours come from RobeletTheme.cs through --mud-palette-* variables. */

:root {
    --rb-navy: #154180;
    --rb-sky: #52B4D9;
    --rb-ink: #0F1B2D;
    --rb-muted: #5B6B80;
    --rb-line: #E3E8EF;
    --rb-bg: #F3F6FA;
    --rb-radius: 16px;
    --rb-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
    --rb-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --rb-topbar-h: 56px;
}

html, body {
    background: var(--rb-bg);
    color: var(--rb-ink);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1:focus { outline: none; }

/* ---------- Brand ---------- */
.rb-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--rb-navy);
}
.rb-brand img { height: 22px; width: auto; display: block; }
.rb-brand span { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }

/* ---------- Top bar ---------- */
.rb-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    height: var(--rb-topbar-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rb-line);
}
.rb-topbar__start { justify-self: start; display: flex; align-items: center; gap: 4px; }
.rb-topbar__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.rb-topbar--left-brand { grid-template-columns: auto 1fr auto; gap: 8px; }
.rb-topbar--left-brand .rb-topbar__end { grid-column: 3; }

.rb-user {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; color: var(--rb-muted);
}
.rb-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: #E6EEF8; color: var(--rb-navy);
    font-weight: 700; font-size: .85rem; text-transform: uppercase;
}

/* ---------- Page containers ---------- */
.rb-page {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}
.rb-page--wide { max-width: 1240px; }

.rb-section-title {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 24px 4px 12px;
}
.rb-section-title h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.rb-section-title .rb-count {
    font-size: .75rem; font-weight: 700; color: var(--rb-navy);
    background: #E6EEF8; border-radius: 999px; padding: 2px 10px;
}

.rb-card {
    background: #fff;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    border: 1px solid rgba(15, 27, 45, .04);
}

.rb-eyebrow {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--rb-muted);
}

.rb-muted { color: var(--rb-muted); }

/* ---------- Guest: check-in code ---------- */
.rb-hero {
    padding: 20px 20px 16px;
    text-align: center;
}
.rb-hero__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.rb-hero__lead { color: var(--rb-muted); font-size: .9rem; margin: 0 0 16px; }

.rb-qr {
    width: min(64vw, 240px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 12px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--rb-line);
    display: grid; place-items: center;
}
.rb-qr svg, .rb-qr img { width: 100%; height: 100%; display: block; }
.rb-qr--placeholder { background: linear-gradient(110deg, #F1F4F8 30%, #E6EBF2 50%, #F1F4F8 70%); background-size: 200% 100%; animation: rb-shimmer 1.2s linear infinite; }
@keyframes rb-shimmer { to { background-position: -200% 0; } }

.rb-code {
    display: flex; justify-content: center; gap: 6px;
    margin: 16px 0 12px;
}
.rb-code span {
    width: 36px; height: 44px;
    display: grid; place-items: center;
    font-family: var(--rb-mono); font-size: 1.35rem; font-weight: 700;
    color: var(--rb-navy);
    background: #EEF3FA; border-radius: 10px;
}

.rb-timer {
    display: flex; align-items: center; gap: 10px;
    font-size: .8rem; color: var(--rb-muted);
}
.rb-timer__track { flex: 1; height: 4px; border-radius: 4px; background: #E9EEF4; overflow: hidden; }
.rb-timer__fill { height: 100%; background: var(--rb-sky); border-radius: 4px; transition: width 1s linear; }
.rb-timer__time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--rb-ink); min-width: 34px; text-align: right; }

/* ---------- Guest: tickets ---------- */
.rb-ticket {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    cursor: pointer;
    transition: transform .15s ease;
    overflow: hidden;
}
.rb-ticket:active { transform: scale(.98); }
.rb-ticket + .rb-ticket { margin-top: 12px; }
.rb-ticket__main { flex: 1; padding: 16px 18px; min-width: 0; }
.rb-ticket__rack { font-family: var(--rb-mono); font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--rb-navy); letter-spacing: -0.02em; }
.rb-ticket__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--rb-muted); }
.rb-ticket__stub {
    position: relative;
    width: 96px; flex-shrink: 0;
    display: grid; place-items: center;
    border-left: 2px dashed var(--rb-line);
    padding: 12px;
}
.rb-ticket__stub svg { width: 64px; height: 64px; display: block; }
/* punched notches on the perforation */
.rb-ticket__stub::before, .rb-ticket__stub::after {
    content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--rb-bg);
}
.rb-ticket__stub::before { top: -9px; }
.rb-ticket__stub::after { bottom: -9px; }

.rb-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    background: #E3F5EC; color: #13774F;
}
.rb-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rb-status--pending { background: #FFF4DB; color: #9A6A00; }
.rb-status--neutral { background: #EEF1F5; color: var(--rb-muted); }

.rb-empty {
    text-align: center; padding: 28px 20px;
    border: 1.5px dashed #D3DCE7; border-radius: var(--rb-radius);
    color: var(--rb-muted); font-size: .9rem;
}
.rb-empty .mud-icon-root { color: #A9B7C9; margin-bottom: 6px; }

.rb-footer-link { text-align: center; margin-top: 32px; font-size: .85rem; color: var(--rb-muted); }
.rb-footer-link a { color: var(--rb-navy); font-weight: 600; text-decoration: none; }

/* Full-screen ticket sheet */
.rb-sheet {
    width: min(92vw, 400px);
    background: #fff; border-radius: 24px;
    padding: 24px; text-align: center;
}
.rb-sheet .rb-qr { width: min(72vw, 280px); border: 0; padding: 0; }
.rb-sheet__rack { font-family: var(--rb-mono); font-size: 3rem; font-weight: 800; color: var(--rb-navy); line-height: 1; margin-top: 16px; }

/* ---------- Staff scanner ---------- */
.rb-scanner-page { padding-top: 12px; }
.rb-viewfinder {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0B1422;
    aspect-ratio: 1 / 1;
    max-height: 48vh;
    margin: 0 auto;
}
.rb-viewfinder > .w-100, .rb-viewfinder > div > div { height: 100%; }
.rb-viewfinder video { object-fit: cover !important; width: 100% !important; height: 100% !important; }
.rb-viewfinder__frame {
    pointer-events: none;
    position: absolute; inset: 18%;
    border-radius: 18px;
    --c: rgba(255,255,255,.95);
    background:
        linear-gradient(var(--c), var(--c)) top left / 28px 4px no-repeat,
        linear-gradient(var(--c), var(--c)) top left / 4px 28px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 28px 4px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 4px 28px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 28px 4px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 4px 28px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 28px 4px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 4px 28px no-repeat;
}
.rb-viewfinder__hint {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    background: rgba(11, 20, 34, .72); color: #fff; font-size: .78rem; font-weight: 600;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.rb-state {
    margin-top: -28px; position: relative; z-index: 2;
    margin-left: 12px; margin-right: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 27, 45, .14);
    border-top: 4px solid var(--rb-line);
}
.rb-state--pairing { border-top-color: var(--mud-palette-warning); }
.rb-state--loaded { border-top-color: var(--mud-palette-primary); }
.rb-state--moving { border-top-color: var(--mud-palette-info); }
.rb-state__row { display: flex; align-items: center; gap: 12px; }
.rb-state__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EEF3FA; color: var(--rb-navy); flex-shrink: 0; }
.rb-state--pairing .rb-state__icon { background: #FFF4DB; color: #9A6A00; }
.rb-state--moving .rb-state__icon { background: #E5F0FD; color: #1D64C2; }
.rb-state__title { font-weight: 700; font-size: 1rem; }
.rb-state__text { color: var(--rb-muted); font-size: .85rem; }
.rb-state__rack { font-family: var(--rb-mono); font-size: 3.2rem; font-weight: 800; color: var(--rb-navy); text-align: center; line-height: 1; margin: 12px 0 14px; }
.rb-state__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.rb-state__actions .mud-button-root { height: 48px; border-radius: 12px; }

.rb-search .mud-input-outlined-border { border-radius: 12px; }
.rb-search .mud-input.mud-input-outlined { background: #fff; border-radius: 12px; }

.rb-list { background: #fff; border-radius: var(--rb-radius); box-shadow: var(--rb-shadow); overflow: hidden; }
.rb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px;
    border-bottom: 1px solid #EEF2F6;
}
.rb-row:last-child { border-bottom: 0; }
.rb-row__body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.rb-rack {
    min-width: 56px; height: 40px; padding: 0 10px;
    display: grid; place-items: center;
    font-family: var(--rb-mono); font-weight: 800; font-size: 1rem; color: var(--rb-navy);
    background: #EEF3FA; border-radius: 10px;
}
.rb-rack--empty { color: var(--rb-muted); background: #F1F3F6; font-size: .75rem; font-family: inherit; }
.rb-row__time { font-size: .8rem; color: var(--rb-muted); }
.rb-row__actions { display: flex; gap: 6px; }
.rb-row__actions .mud-button-root { min-width: 0; border-radius: 10px; }

/* ---------- Auth ---------- */
.rb-auth { min-height: calc(100dvh - var(--rb-topbar-h)); display: flex; flex-direction: column; justify-content: center; }
.rb-auth__card { padding: 24px 20px; }
.rb-auth__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.rb-segment {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: #EEF2F7; padding: 4px; border-radius: 12px; margin: 20px 0;
}
.rb-segment button {
    border: 0; background: transparent; border-radius: 9px; height: 40px;
    font: inherit; font-weight: 600; font-size: .9rem; color: var(--rb-muted); cursor: pointer;
}
.rb-segment button[aria-selected="true"] { background: #fff; color: var(--rb-ink); box-shadow: 0 1px 3px rgba(15,27,45,.12); }
.rb-big-button.mud-button-root { height: 52px; border-radius: 14px; font-size: 1rem; }

/* ---------- Venue admin shell ---------- */
.rb-shell { display: flex; min-height: calc(100dvh - var(--rb-topbar-h)); }
.rb-sidebar {
    width: 248px; flex-shrink: 0;
    background: #0F1B2D; color: #C9D4E3;
    padding: 16px 12px;
    position: sticky; top: var(--rb-topbar-h); height: calc(100dvh - var(--rb-topbar-h));
    overflow-y: auto;
}
.rb-sidebar__label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: #6F84A3; padding: 16px 12px 8px; text-transform: uppercase; }
.rb-sidebar .mud-nav-link { border-radius: 10px; color: #C9D4E3; padding: 10px 12px; margin-bottom: 2px; }
.rb-sidebar .mud-nav-link .mud-nav-link-icon { color: #8FA3BF; }
.rb-sidebar .mud-nav-link:hover { background: rgba(255,255,255,.06) !important; }
.rb-sidebar .mud-nav-link.active { background: rgba(82,180,217,.16) !important; color: #fff !important; }
.rb-sidebar .mud-nav-link.active .mud-nav-link-icon { color: var(--rb-sky) !important; }
.rb-sidebar .mud-nav-link-text { font-weight: 600; font-size: .9rem; }
.rb-content { flex: 1; min-width: 0; padding: 16px; }
@media (min-width: 960px) { .rb-content { padding: 32px 40px; } }
.rb-overlay { position: fixed; inset: 0; background: rgba(11, 20, 34, .45); z-index: 1350; }
@media (max-width: 959.98px) {
    .rb-sidebar { position: fixed; top: 0; left: 0; height: 100dvh; z-index: 1400; transform: translateX(-100%); transition: transform .25s cubic-bezier(.4,0,.2,1); padding-top: 24px; }
    .rb-sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
}

.rb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.rb-page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 0; }

.rb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 960px) { .rb-stats { gap: 20px; } }
.rb-stat { padding: 16px; }
@media (min-width: 960px) { .rb-stat { padding: 22px 24px; } }
.rb-stat__label { font-size: .75rem; font-weight: 600; color: var(--rb-muted); }
.rb-stat__value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .rb-stat__value { font-size: 2.4rem; } }
.rb-stat__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; }
@media (max-width: 599.98px) { .rb-stat__icon { display: none; } .rb-stat__label { font-size: .68rem; } }

.rb-panel { padding: 0; overflow: hidden; }
.rb-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #EEF2F6; }
.rb-panel__head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.rb-panel .mud-table { background: transparent; }
.rb-panel .mud-table-head .mud-table-cell { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rb-muted); }
.rb-staffcode { font-family: var(--rb-mono); font-weight: 700; letter-spacing: .06em; background: #EEF3FA; color: var(--rb-navy); border-radius: 8px; padding: 4px 10px; font-size: .85rem; }

.rb-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1200px) { .rb-grid-2 { grid-template-columns: 2fr 1fr; } }

.rb-quick { display: grid; gap: 10px; padding: 16px 20px 20px; }
.rb-quick a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--rb-line); color: var(--rb-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.rb-quick a:hover { background: #F6F8FB; }
.rb-quick a .mud-icon-root { color: var(--rb-navy); }

/* Camera feed (ContinuousQrScanner) */
.rb-scanner { position: relative; width: 100%; height: 100%; }
.rb-scanner__video { width: 100%; height: 100%; background: #0B1422; }
.rb-scanner__video > div, .rb-scanner__video video { width: 100% !important; height: 100% !important; object-fit: cover; border: 0 !important; }
.rb-scanner__notice { position: absolute; inset: 0; display: grid; place-items: center; color: #9FB0C7; font-size: .85rem; }
.rb-scanner__error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #C9D4E3; }
.rb-scanner__error-title { font-weight: 700; color: #fff; }
.rb-scanner__error-text { font-size: .85rem; margin-bottom: 8px; }
.rb-row--pad { padding: 14px 20px; flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 599.98px) { .rb-row--pad { padding: 12px 16px; } .rb-row--pad .rb-row__time { order: 3; flex-basis: 100%; } .rb-row--pad .rb-row__actions { margin-left: auto; } }

/* Staff sign-in: divider and the full-screen QR scanner sheet */
.rb-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--rb-muted); font-size: .8rem; }
.rb-divider::before, .rb-divider::after { content: ""; flex: 1; height: 1px; background: var(--rb-line); }
.rb-code-input input { font-family: var(--rb-mono); letter-spacing: .12em; text-transform: uppercase; }
.rb-scan-sheet {
    position: fixed; inset: 0; z-index: 1500;
    background: #0B1422; color: #fff;
    display: flex; flex-direction: column; gap: 16px;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.rb-scan-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rb-scan-sheet__title { font-weight: 800; font-size: 1.2rem; }
.rb-scan-sheet__text { color: #9FB0C7; font-size: .88rem; margin-top: 2px; }
.rb-viewfinder--sheet { width: 100%; max-width: 480px; max-height: none; margin: auto; }
.rb-scan-sheet__error { background: rgba(214, 69, 69, .18); color: #FFB4B4; border-radius: 12px; padding: 12px 14px; font-size: .9rem; text-align: center; }

/* Venue list (My venues) */
.rb-venue { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #EEF2F6; color: inherit; text-decoration: none; }
.rb-venue:last-child { border-bottom: 0; }
.rb-venue:active { background: #F6F8FB; }
.rb-venue__logo { width: 44px; height: 44px; border-radius: 12px; background: #E6EEF8; color: var(--rb-navy); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; overflow: hidden; flex-shrink: 0; }
.rb-venue__logo img { width: 100%; height: 100%; object-fit: contain; }
.rb-venue__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rb-venue__name { font-weight: 700; }
.rb-venue__city { font-size: .82rem; color: var(--rb-muted); }
.rb-status--danger { background: #FDECEC; color: #B83232; }
.rb-stats--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .rb-stats--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .rb-grid-2--reverse { grid-template-columns: 2fr 1fr; } }
.rb-panel .mud-toolbar { padding: 12px 20px; height: auto; flex-wrap: wrap; gap: 8px; }
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }

/* Small utilities still used by some pages (Bootstrap is not loaded) */
.fw-bold { font-weight: 700; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tabs (Staff page): sentence case, equal width, no scroll arrows on phones */
.rb-tabs .mud-tabs-tabbar { background: #fff; border-radius: 14px; box-shadow: var(--rb-shadow); }
.rb-tabs .mud-tab { text-transform: none; font-weight: 600; letter-spacing: normal; width: 100%; }
@media (max-width: 599.98px) { .rb-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root { flex: 1; } }
.rb-tabs .mud-tabs-scroll-button { display: none; }
.rb-tabs .mud-tabs-panels { padding-top: 16px; }
.staff-card { transition: transform .15s ease; }
.staff-card:active { transform: scale(.99); }
.rb-support { max-width: 640px; margin: 24px auto 0; }

/* ---------- Language switch ---------- */
.rb-lang {
    display: inline-flex; align-items: center; gap: 4px;
    height: 32px; padding: 0 10px;
    border: 1px solid var(--rb-line); border-radius: 999px;
    background: #fff; color: var(--rb-ink);
    font: 600 .78rem/1 inherit; letter-spacing: .04em;
    cursor: pointer;
}
.rb-lang:hover { border-color: var(--rb-sky); }
.rb-lang .mud-icon-root { font-size: 1rem; color: var(--rb-muted); }
/* Phones: keep the top bar from crowding the brand when signed in */
@media (max-width: 599.98px) {
    .rb-topbar__end .rb-user { display: none; }
    .rb-topbar__end .rb-lang { padding: 0 8px; }
    .rb-topbar__end .rb-lang .mud-icon-root { display: none; }
}

/* ---------- Guest ticket extras ---------- */
.rb-ticket__actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rb-coat-state {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 12px;
    font-size: .88rem; line-height: 1.3;
}
.rb-coat-state--waiting { background: #FFF6E5; color: #7A4B00; }
.rb-coat-state--ready { background: #E3F5EC; color: #13774F; font-weight: 600; }
.rb-coat-state .mud-icon-root { flex-shrink: 0; }
.rb-coat-state__cancel { margin-left: auto; background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 34px; padding: 0 12px;
    border: 1px solid var(--rb-line); border-radius: 999px;
    background: #fff; color: var(--rb-ink);
    font: 500 .8rem/1 inherit; text-decoration: none; cursor: pointer;
}
.rb-chip .mud-icon-root { font-size: 1rem; color: var(--rb-navy); }
.rb-chip--on { border-color: var(--rb-navy); background: #E6EEF8; }
.rb-chip--wallet { background: #0F1B2D; border-color: #0F1B2D; color: #fff; }
.rb-chip--wallet .mud-icon-root { color: #fff; }
.rb-chip[disabled] { opacity: .5; cursor: default; }
.rb-hint { font-size: .78rem; color: var(--rb-muted); line-height: 1.4; }
.rb-privacy {
    display: flex; gap: 8px; align-items: flex-start;
    margin-top: 16px; padding: 12px 14px;
    border-radius: 12px; background: #fff; border: 1px dashed var(--rb-line);
    font-size: .8rem; color: var(--rb-muted); line-height: 1.45;
}
.rb-privacy .mud-icon-root { color: #13774F; flex-shrink: 0; }

/* ---------- Staff: coat requests ---------- */
.rb-requests { border: 2px solid #F2B544; }
.rb-request-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px;
    background: #FFF6E5; color: #7A4B00; font-size: .72rem; font-weight: 700;
}
.rb-request-badge--ready { background: #E3F5EC; color: #13774F; }

/* ---------- Venue tools: rack occupancy ---------- */
.rb-occ-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.rb-occ-chips::-webkit-scrollbar { display: none; }
.rb-occ-chip {
    flex-shrink: 0; min-width: 56px; padding: 6px 10px; border-radius: 12px;
    background: #fff; border: 1px solid var(--rb-line); text-align: center; line-height: 1.15;
}
.rb-occ-chip__code { display: block; font-family: var(--rb-mono); font-weight: 800; color: var(--rb-navy); font-size: .85rem; }
.rb-occ-chip__free { display: block; font-size: .72rem; color: #13774F; font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-occ-chip--total { background: #0F1B2D; border-color: #0F1B2D; }
.rb-occ-chip--total .rb-occ-chip__code { color: #fff; font-family: inherit; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.rb-occ-chip--total .rb-occ-chip__free { color: #7FE0B4; font-size: .95rem; }
.rb-occ-chip.is-tight { border-color: #F2B544; background: #FFF8E8; }
.rb-occ-chip.is-tight .rb-occ-chip__free { color: #9A6A00; }
.rb-occ-chip.is-full { border-color: #E39A9A; background: #FDECEC; }
.rb-occ-chip.is-full .rb-occ-chip__free { color: #B83232; }

.rb-occ { padding: 16px 20px 20px; }
.rb-occ__summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rb-occ__big { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rb-occ__meta { text-align: right; font-size: .8rem; color: var(--rb-muted); }
.rb-occ__warn { color: #9A6A00; font-weight: 600; margin-top: 2px; }
.rb-occ__row { display: grid; grid-template-columns: 56px 1fr 64px; align-items: center; gap: 10px; padding: 5px 0; }
.rb-occ__code { font-family: var(--rb-mono); font-weight: 800; color: var(--rb-navy); }
.rb-occ__bar { height: 10px; border-radius: 999px; background: #EEF2F6; overflow: hidden; }
.rb-occ__fill { height: 100%; border-radius: 999px; background: #2FA36B; transition: width .4s ease; }
.rb-occ__fill.is-tight { background: #E0A126; }
.rb-occ__fill.is-full { background: #C94040; }
.rb-occ__count { font-size: .8rem; color: var(--rb-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Venue tools: forms and lists ---------- */
.rb-form { padding: 20px; }
.rb-desc { font-size: .8rem; color: var(--rb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-row__main { flex: 1; min-width: 0; }
.rb-banner {
    display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: #FFF4DB; color: #7A4B00; font-size: .88rem; line-height: 1.4; margin-bottom: 20px;
}
.rb-banner .mud-icon-root { flex-shrink: 0; }
.rb-banner--danger { background: #FDECEC; color: #8F2424; }

/* ---------- Venue tools: busy-hour charts ---------- */
.rb-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 180px; padding: 20px 16px 8px; }
.rb-hours__col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; cursor: default; }
.rb-hours__bar { background: var(--rb-navy); border-radius: 4px 4px 0 0; min-height: 0; }
.rb-hours__col:hover .rb-hours__bar { background: var(--rb-sky); }
.rb-hours__label { font-size: .62rem; color: var(--rb-muted); text-align: center; height: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rb-heat-wrap { overflow-x: auto; padding: 16px; }
.rb-heat { display: grid; grid-template-columns: 36px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 420px; }
.rb-heat__hour { font-size: .62rem; color: var(--rb-muted); text-align: left; }
.rb-heat__day { font-size: .72rem; font-weight: 600; color: var(--rb-muted); align-self: center; }
.rb-heat__cell { aspect-ratio: 1; border-radius: 4px; background: #EEF2F6; }
.rb-heat__cell:hover { outline: 2px solid var(--rb-sky); outline-offset: -1px; }
