/* curator-portal-mobile.css — one phone app (2026-11-04, specs/2026-11-04_mobile-portal.md)
 *
 * 1. Role layout: which menu parts show for staff (admins + legend crew) and what legend crew never see.
 * 2. The phone tab bar (under 900px, where the side menu becomes a drawer).
 * 3. Event night screens (modules/event-night/, was admin-site/m/) restyled in the Curator Portal design:
 *    4-Prime amber zone, #111 cards, 2px corners, Orbitron labels, square brand-bible buttons.
 *    EVERYTHING in part 3 is scoped under .cen — the global styles.css owns .btn/.btn-primary for the
 *    public site, and these rules must not reach the portal's other pages.
 */

/* ── 1. Role layout ─────────────────────────────────────────────────────── */
body:not(.cp-staff) [data-staff-only] { display: none !important; }
body.cp-staff [data-staff-hide] { display: none !important; }
/* Legend crew: every event, no money, nothing to edit (Izaak, 2026-11-04). Cosmetic — see the spec. */
body.cp-legend [data-legend-hide],
body.cp-legend [data-fin],
body.cp-legend [data-view-as] { display: none !important; }

/* ── 2. Phone tab bar ───────────────────────────────────────────────────── */
.cpm-tabbar { display: none; }
@media (max-width: 900px) {
    .cpm-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001;
        padding: 4px 4px env(safe-area-inset-bottom, 0px);
        background: #0c0c0c; border-top: 1px solid #1e1e1e;
    }
    .cpm-tabbar > a, .cpm-tabbar > button {
        flex: 1 1 0; min-width: 0; min-height: 56px;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        background: none; border: 0; border-top: 2px solid transparent; color: #8a8a8a; text-decoration: none; cursor: pointer;
        font: 600 0.5rem 'Orbitron', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
    }
    .cpm-tabbar i { font-size: 1.05rem; }
    .cpm-tabbar > .active { color: #fff; border-top-color: var(--prime-amber); }
    .cpm-tabbar > .active i { color: var(--prime-amber); }
    .cpm-tabbar > a:focus-visible, .cpm-tabbar > button:focus-visible { outline: 1px solid var(--prime-amber); outline-offset: -3px; }
    /* room for the bar under the page */
    .cps-main #cp-content { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 3. Event night screens ─────────────────────────────────────────────── */
.cen {
    --cen-amber: var(--prime-amber, #FFAA00); --cen-amber-rgb: var(--prime-amber-rgb, 255, 170, 0);
    --cen-card: #111; --cen-elev: #181818; --cen-line: #1e1e1e; --cen-text: #e0e0e0; --cen-muted: #8a8a8a;
    --cen-ok: #4CAF50; --cen-bad: #F44336; --cen-warn: #FF9800;
    color: var(--cen-text); font-family: 'Roboto', sans-serif; font-size: 15px; line-height: 22px;
}
.cen > .cen-view { max-width: 640px; }
.cen[hidden], .cen [hidden] { display: none !important; }
.cen-title { color: #fff; font: 700 1.1rem 'Orbitron', sans-serif; letter-spacing: 1px; margin: 0 0 16px; }
.cen h2, .cen h3 { font-family: 'Orbitron', sans-serif; color: #fff; margin: 0; letter-spacing: .5px; }
.cen a { color: var(--cen-amber); }
.cen .muted { color: var(--cen-muted); }
.cen button { font: inherit; color: inherit; }

/* controls */
.cen input, .cen select, .cen textarea {
    width: 100%; box-sizing: border-box; background: #0a0a0a; color: var(--cen-text);
    border: 1px solid #2a2a2a; border-radius: 2px; padding: 13px 14px; font: inherit; font-size: 16px; /* no iOS zoom */
    outline: none; margin-bottom: 10px;
}
.cen textarea { min-height: 96px; resize: vertical; }
.cen input:focus, .cen select:focus, .cen textarea:focus { border-color: var(--cen-amber); }
/* brand-bible buttons: square 2px, Orbitron, amber = curator zone colour */
.cen .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; margin: 0; border-radius: 2px; border: 1px solid #333;
    background: transparent; color: #ccc; box-shadow: none; text-transform: uppercase; text-decoration: none;
    clip-path: none; /* styles.css .btn cuts the corners — brand-bible portal buttons are square */
    font: 600 0.62rem 'Orbitron', sans-serif; letter-spacing: 2px; line-height: 1; cursor: pointer;
}
.cen .btn-sm { min-height: 44px; padding: 0 14px; }
.cen .btn-primary { background: var(--cen-amber); border-color: var(--cen-amber); color: #000; font-weight: 700; }
.cen .btn-primary:hover { box-shadow: 0 0 20px rgba(var(--cen-amber-rgb), .35); }
.cen .btn-secondary { border-color: var(--cen-amber); color: var(--cen-amber); }
.cen .btn-secondary:hover { background: rgba(var(--cen-amber-rgb), .1); }
.cen .btn-ghost { border-color: transparent; color: var(--cen-text); }
.cen .btn-danger { border-color: var(--cen-bad); color: var(--cen-bad); }
.cen .btn-block { width: 100%; }
.cen .btn:disabled { opacity: .5; cursor: default; }
.cen .btn:focus-visible, .cen .icon-btn:focus-visible, .cen .list-row:focus-visible, .cen .chip:focus-visible,
.cen .seg button:focus-visible, .cen .ctx button:focus-visible, .cen .qa:focus-visible, .cen .check:focus-visible,
.cen .person:focus-visible { outline: 1px solid var(--cen-amber); outline-offset: 2px; }
.cen .icon-btn { width: 44px; height: 44px; border-radius: 2px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--cen-text); }
.cen .field { display: block; margin-bottom: 4px; }
.cen .field-label { display: block; color: var(--cen-muted); font: 600 0.5rem 'Orbitron', sans-serif; letter-spacing: 2px; text-transform: uppercase; margin: 6px 0 8px; }
.cen .field-hint { display: block; font-size: .8rem; color: var(--cen-muted); margin: -4px 0 10px; }
.cen .row { display: flex; gap: 10px; } .cen .row > * { flex: 1; min-width: 0; }
.cen .switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--cen-line); border-radius: 2px; margin-bottom: 10px; }
.cen .switch input, .cen input[type="checkbox"] { width: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--cen-amber); }

/* type */
.cen .t-h3 { font: 600 0.8rem 'Orbitron', sans-serif; letter-spacing: 1px; color: #fff; }
.cen .t-label { color: var(--cen-muted); font: 600 0.5rem 'Orbitron', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
/* section headings: .cen-section, not .section-title (styles.css forces that one to 1.4rem !important on phones) */
.cen .cen-section { margin: 20px 2px 10px; }
/* on a phone the sticky top bar already names the screen */
@media (max-width: 900px) { .cen-title { display: none; } }
.cen .greet { margin: 0 2px 20px; } .cen .greet h2 { font: 700 1.3rem 'Orbitron', sans-serif; } .cen .greet p { margin: 4px 0 0; color: var(--cen-muted); }

/* cards & lists */
.cen .card { background: var(--cen-card); border: 1px solid var(--cen-line); border-radius: 2px; padding: 16px; margin-bottom: 12px; }
.cen .tonight { border-top: 3px solid var(--cen-amber); }
.cen .tonight .count { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.cen .tonight .count b { font: 700 2.6rem/1 'Orbitron', sans-serif; color: var(--cen-amber); }
.cen .tonight .count span { color: var(--cen-muted); }
.cen .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.cen .stat { background: var(--cen-elev); border-radius: 2px; padding: 8px 12px; }
.cen .stat b { display: block; font: 700 1.1rem 'Orbitron', sans-serif; color: #fff; }
.cen .stat small { color: var(--cen-muted); font: 600 0.45rem 'Orbitron', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cen .types { margin-top: 16px; display: grid; gap: 8px; }
.cen .types .row-type { display: flex; justify-content: space-between; font-size: 13px; color: var(--cen-muted); }
.cen .guest { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--cen-line); }
.cen .guest:last-child { border-bottom: 0; }
.cen .guest .grow { flex: 1; min-width: 0; }
.cen .guest b, .cen .list-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.cen .guest small { display: block; color: var(--cen-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cen .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cen-ok); margin-right: 6px; }
.cen .qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.cen .qa { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 104px; padding: 16px; border-radius: 2px; background: var(--cen-card); border: 1px solid var(--cen-line); color: var(--cen-text); text-decoration: none; text-align: left; cursor: pointer; }
.cen .qa .qi { width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(var(--cen-amber-rgb), .1); color: var(--cen-amber); }
.cen .qa b { font: 600 0.7rem 'Orbitron', sans-serif; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.cen .qa small { color: var(--cen-muted); font-size: .8rem; margin-top: -4px; }
.cen .qa-wide { margin-top: 12px; min-height: 0; flex-direction: row; align-items: center; gap: 14px; }
.cen .qa-wide small { margin-top: 0; }
.cen .qa.hot { border-color: rgba(var(--cen-amber-rgb), .55); border-top: 3px solid var(--cen-amber); }
.cen .list-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; min-height: 44px; border: 0; border-bottom: 1px solid var(--cen-line); background: none; width: 100%; text-align: left; cursor: pointer; color: var(--cen-text); text-decoration: none; }
.cen .list-row:last-child { border-bottom: 0; }
.cen .list-row .grow { flex: 1; min-width: 0; }
.cen .list-row small { color: var(--cen-muted); }
.cen .pill { display: inline-block; padding: 4px 9px; border-radius: 2px; border: 1px solid #333; color: var(--cen-muted); font: 600 0.5rem 'Orbitron', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cen .pill.lime { color: var(--cen-amber); border-color: rgba(var(--cen-amber-rgb), .5); }
.cen .pill.ok { color: var(--cen-ok); border-color: var(--cen-ok); }
.cen .pill.bad { color: var(--cen-bad); border-color: var(--cen-bad); }
.cen .pill.warn { color: var(--cen-warn); border-color: var(--cen-warn); }
.cen .bar { height: 6px; border-radius: 1px; background: var(--cen-line); overflow: hidden; margin-top: 8px; }
.cen .bar > i { display: block; height: 100%; background: var(--cen-amber); }
.cen .empty { text-align: center; color: var(--cen-muted); padding: 32px 12px; }
.cen .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cen .chip { min-height: 44px; padding: 0 14px; border-radius: 2px; border: 1px solid #333; background: var(--cen-card); font-size: .9rem; cursor: pointer; color: var(--cen-text); }
.cen .chip.on { background: var(--cen-amber); color: #000; border-color: var(--cen-amber); font-weight: 700; }
.cen .seg { display: flex; background: var(--cen-card); border: 1px solid var(--cen-line); border-radius: 2px; padding: 3px; margin-bottom: 14px; }
.cen .seg button { flex: 1; min-height: 44px; border: 0; background: none; border-radius: 2px; color: var(--cen-muted); cursor: pointer; font: 600 0.55rem 'Orbitron', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cen .seg button.on { background: var(--cen-amber); color: #000; }

/* scan + door context buttons */
.cen .ctx { display: flex; gap: 8px; margin-bottom: 12px; }
.cen .ctx button { flex: 1; min-width: 0; min-height: 52px; text-align: left; padding: 8px 12px; border-radius: 2px; border: 1px solid #333; background: var(--cen-card); cursor: pointer; }
.cen .ctx button small { display: block; color: var(--cen-muted); font: 600 0.45rem 'Orbitron', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cen .ctx button b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: #fff; }
.cen .ctx button.set { border-color: var(--cen-amber); }
.cen #reader { width: 100%; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: #000; border: 1px solid var(--cen-line); }
.cen .manual { display: flex; gap: 8px; margin-top: 12px; } .cen .manual input { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; } .cen .manual .btn { flex: none; min-width: 92px; }
.cen .link { display: inline-block; margin-top: 8px; font-size: .9rem; color: var(--cen-amber); }

/* notes & tasks */
.cen .note p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cen .note .meta { display: flex; align-items: center; gap: 8px; color: var(--cen-muted); font-size: .8rem; }
.cen .note .pin { color: var(--cen-amber); }
.cen .composer { position: sticky; bottom: 8px; background: #0a0a0a; padding-top: 8px; }
@media (max-width: 900px) { .cen .composer { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
.cen .composer .card { margin: 0; display: flex; gap: 8px; align-items: flex-end; }
.cen .composer textarea { margin: 0; min-height: 52px; max-height: 140px; }
.cen .task { display: flex; gap: 12px; align-items: flex-start; }
.cen .check { width: 32px; height: 32px; border-radius: 2px; border: 2px solid #444; background: none; flex: none; margin-top: 2px; cursor: pointer; color: #000; font-weight: 800; }
.cen .check.done { background: var(--cen-ok); border-color: var(--cen-ok); }
.cen .avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; color: #000; }
.cen .people { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cen .person { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px; border-radius: 2px; border: 1px solid #333; background: #0a0a0a; cursor: pointer; color: var(--cen-text); }
.cen .person.on { border-color: var(--cen-amber); background: rgba(var(--cen-amber-rgb), .1); }
.cen .sk { background: linear-gradient(90deg, var(--cen-card), var(--cen-elev), var(--cen-card)); background-size: 200% 100%; animation: cen-sk 1.2s infinite; border-radius: 2px; height: 72px; margin-bottom: 12px; }
@keyframes cen-sk { to { background-position: -200% 0; } }

/* elements appended to <body>: bottom sheet, scan result, toast (all carry .cen) */
.cen.scrim { position: fixed; inset: 0; z-index: 10010; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; }
.cen .sheet { width: 100%; max-width: 640px; max-height: 88dvh; display: flex; flex-direction: column; background: var(--cen-card); border-radius: 2px 2px 0 0; border-top: 3px solid var(--cen-amber); padding-bottom: env(safe-area-inset-bottom, 0px); animation: cen-up .18s ease-out; }
@keyframes cen-up { from { transform: translateY(30px); opacity: .6; } }
.cen .sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #333; margin: 8px auto 0; }
.cen .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; }
.cen .sheet-head h2 { font-size: .85rem; letter-spacing: 1px; }
.cen .sheet-body { overflow-y: auto; padding: 4px 16px 18px; }
.cen.result { position: fixed; inset: 0; z-index: 10020; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; color: #fff; }
.cen.result.ok { background: #062b14; } .cen.result.bad { background: #330a0a; } .cen.result.wait { background: #151515; }
.cen.result .big { font: 800 2rem/1.1 'Orbitron', sans-serif; margin: 12px 0 8px; }
.cen.result .detail { white-space: pre-line; font-size: 1.1rem; color: #dcdcdc; max-width: 22em; }
.cen.result .glyph { font-size: 5rem; line-height: 1; }
.cen.result .btn { margin-top: 28px; min-width: 220px; min-height: 56px; }
.cen.toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 10030; max-width: 520px; margin: 0 auto; padding: 13px 16px; border-radius: 2px; background: #1a1a1a; border: 1px solid #333; color: #fff; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s; text-align: center; font: 15px 'Roboto', sans-serif; }
.cen.toast.show { opacity: 1; transform: none; }
.cen.toast.ok { border-color: var(--cen-ok); } .cen.toast.bad { border-color: var(--cen-bad); }
body.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cen .sheet, .cen .sk, .cen.toast { animation: none; transition: none; } }
