/* TCC Tech Stop — dark theme (shares tokens with the Famous Apps family) */
[hidden] { display: none !important; }
html { color-scheme: dark; }
body.tcc {
  --page: #0f1513; --cream: #161d1a; --paper: #1b2420; --ink: #e9f0eb; --ink-soft: #c4d0c9; --muted: #8f9f96;
  --line: #2b3832; --line-strong: #41524a; --ok: #5dcaa0; --err: #ff8a72; --warn: #f2c35b; --info: #7fb8ff;
  --shadow-soft: 0 2px 10px rgba(0,0,0,.28);
  /* Desktop shell uses most of the window; .wrap is min(--max, 100% - 2rem), so
     mobile and narrow widths stay on the existing 1rem side padding. */
  --max: 1600px;
  background: var(--page); color: var(--ink); min-height: 100vh;
}
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(15,21,19,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: .85rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: .45rem .7rem .45rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); }
.back svg { width: 1rem; height: 1rem; }
.back:hover { border-color: var(--ball); color: var(--ball); }
.header-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; flex: 1; }
.admin-pill { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ball); color: var(--court); padding: .2rem .55rem; border-radius: 999px; }
.link-btn { background: none; border: 0; padding: .4rem .2rem; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

.hero-band { background: radial-gradient(ellipse 70% 90% at 85% 0%, #2a5a6a 0%, transparent 60%), radial-gradient(ellipse 50% 80% at 10% 100%, #1c4332 0%, transparent 60%), #0b1714; color: #f3efe4; padding: 2.1rem 0 2.4rem; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ball); margin-bottom: .5rem; }
.hero-band h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: #fffcf6; }
.hero-band h1 span { color: var(--ball); }
.intro { margin-top: .6rem; color: rgba(243,239,228,.78); max-width: 34rem; }

.tabs { display: flex; gap: .4rem; margin-top: -1.35rem; position: relative; z-index: 2; }
.tab { flex: 1; max-width: 200px; text-align: center; text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-family: var(--display); font-weight: 700; font-size: 1rem; padding: .8rem .6rem; border-radius: 14px; box-shadow: var(--shadow-soft); }
.tab.active { background: var(--ink); color: var(--court); border-color: var(--ink); }

main.wrap { padding: 1.5rem 0 2rem; }
.status { font-size: .9rem; color: var(--muted); min-height: 1.2em; margin-bottom: .5rem; }
.status.err { color: var(--err); font-weight: 600; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { font-size: 1.6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 0; background: var(--ball); color: var(--court); font-weight: 700; cursor: pointer; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ball-hot); }
.btn.sm { min-height: 36px; padding: 0 .9rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line-strong); }
.btn.ghost:hover { background: var(--cream); }
.btn.danger { color: var(--err); border-color: rgba(255,138,114,.35); }
.btn:disabled { opacity: .6; cursor: wait; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .9rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; text-decoration: none; display: block; }
.stat:hover { border-color: var(--line-strong); }
.stat .k { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 1.7rem; font-variant-numeric: tabular-nums; line-height: 1.2; }

.two-col { display: grid; gap: .9rem; margin-bottom: .9rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.25fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow-soft); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.card h3 { font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta p { color: var(--ink-soft); margin: .25rem 0 0; }

.ann { padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.ann:last-child { border-bottom: 0; }
.ann-t { font-weight: 700; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ann-b { color: var(--ink-soft); white-space: pre-wrap; margin-top: .2rem; font-size: .95rem; }
.ann-d { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.pin { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--court); background: var(--ball); padding: .1rem .45rem; border-radius: 999px; }
.edit-link { margin-left: auto; font-size: .78rem; }

.ev { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.ev:last-child { border-bottom: 0; }
.ev-date { flex-shrink: 0; width: 3.4rem; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .3rem 0; line-height: 1.1; }
.ev-date b { display: block; font-family: var(--display); font-size: 1.35rem; }
.ev-date span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ball); }
.ev-main { flex: 1; min-width: 0; }
.ev-t { font-weight: 700; display: flex; gap: .5rem; }
.ev-s { font-size: .86rem; color: var(--ink-soft); }
.ev-d { font-size: .86rem; color: var(--muted); white-space: pre-wrap; }
.empty { color: var(--muted); padding: .8rem 0 .3rem; font-size: .95rem; }

.filters { margin-bottom: 1rem; overflow-x: auto; }
.seg { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-btn { border: 0; background: transparent; color: var(--ink-soft); font-weight: 600; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; min-height: 38px; white-space: nowrap; }
.seg-btn.active { background: var(--ball); color: var(--court); }

.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: .7rem; }
.ticket-top { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.t-ref { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); font-weight: 700; }
.t-title { font-weight: 700; flex: 1; min-width: 12rem; }
.t-meta { font-size: .82rem; color: var(--muted); margin-top: .2rem; display: flex; gap: .35rem .9rem; flex-wrap: wrap; }
.t-desc { white-space: pre-wrap; color: var(--ink-soft); margin-top: .5rem; font-size: .95rem; }
.chip { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap; }
.chip.open { background: #3a2f17; color: var(--warn); border-color: #5c4a1f; }
.chip.in_progress { background: #172a3d; color: var(--info); border-color: #24476a; }
.chip.resolved { background: #163326; color: var(--ok); border-color: #22533c; }
.chip.urgent { background: #3d1c17; color: var(--err); border-color: #6a2a20; }
.chip.high { color: #ffb38a; border-color: #6a4020; }
.notes { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.note { font-size: .88rem; padding: .3rem 0; }
.note b { color: var(--ink-soft); }
.note span { color: var(--muted); font-size: .76rem; margin-left: .3rem; }
.admin-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.admin-row select, .admin-row input { min-height: 38px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); padding: .3rem .6rem; font-size: 15px; }
.admin-row input { flex: 1; min-width: 12rem; }

.inv-meta { font-size: .85rem; color: var(--muted); margin: -.4rem 0 .8rem; }
.inv-tools { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-bottom: .8rem; }
.inv-tools input[type="search"], .inv-tools select { min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); padding: .5rem .75rem; font-size: 16px; }
.inv-tools input[type="search"] { flex: 1 1 16rem; min-width: 0; }
.inv-toolbar { display: flex; gap: .4rem; align-items: stretch; flex: 1 1 auto; min-width: min(100%, 20rem); }
.inv-toolbar #inv-loc { flex: 1 1 auto; min-width: 0; }
.inv-toolbar .filt-btn, .inv-toolbar .cols-wrap { flex: 0 0 auto; }
.inv-toolbar .cols-btn { width: 100%; }
.filt-btn { min-height: 44px; gap: .35rem; padding: 0 .8rem; white-space: nowrap; }
.filt-btn.on { border-color: var(--ball); color: var(--ball); }
.filt-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--ball); color: var(--court); font-size: .7rem; font-weight: 800; }
.inv-filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem .85rem; margin: -.2rem 0 .8rem; }
.filt-grid { display: grid; gap: .65rem .7rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }
.inv-filters .field label { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.inv-filters select {
  width: 100%; min-height: 40px; padding: .4rem .6rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); font-size: 16px; color-scheme: dark;
}
.inv-filters select:focus { outline: none; border-color: var(--ball); box-shadow: 0 0 0 3px rgba(215,234,74,.14); }
.filt-foot { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inv-table th { position: sticky; top: 0; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--cream); padding: .65rem .75rem; cursor: pointer; white-space: nowrap; user-select: none; }
.inv-table th.sorted::after { content: " ▲"; color: var(--ball); }
.inv-table th.sorted.desc::after { content: " ▼"; }
.inv-table td { overflow-wrap: anywhere; padding: .6rem .75rem; border-top: 1px solid var(--line); vertical-align: top; }
.inv-table tr:hover td { background: rgba(255,255,255,.02); }
.inv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-table td.code { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .78rem; width: 6.4rem; max-width: 6.4rem; overflow-wrap: anywhere; word-break: break-all; }
.inv-table th.code { font-size: .68rem; }
.inv-table .cd { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inv-table .qty { width: 1%; }
/* default (auto) mode: lower-priority columns drop off as the screen narrows */
@media (max-width: 1200px) { .inv-table.auto .p5 { display: none; } }
@media (max-width: 1000px) { .inv-table.auto .p4 { display: none; } }
@media (max-width: 800px) { .inv-table.auto .p3 { display: none; } }
@media (max-width: 600px) { .inv-table.auto .p2 { display: none; } }
.cols-wrap { position: relative; }
.cols-btn { min-height: 44px; }
.cols-menu { position: absolute; right: 0; left: auto; top: calc(100% + .4rem); z-index: 30; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; padding: .8rem 1rem; min-width: 14rem; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cols-menu .check { margin-top: .45rem; }
.cols-menu input { accent-color: var(--ball); width: 1.05rem; height: 1.05rem; }
.cols-h { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.cols-mode { font-size: .78rem; color: var(--muted); margin: .7rem 0 .2rem; }
.inv-table .nm { font-weight: 600; }
.inv-table .nt { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.setup { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 1.1rem; color: var(--ink-soft); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.foot { padding: 0 0 2rem; font-size: .8rem; color: var(--muted); }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem .6rem; }
.dlg-head h2 { font-size: 1.35rem; }
.x { border: 0; background: var(--cream); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dlg-body { padding: .2rem 1.25rem 1rem; overflow: auto; display: flex; flex-direction: column; gap: .8rem; }
.dlg-foot { display: flex; gap: .5rem; padding: .85rem 1.25rem 1.1rem; border-top: 1px solid var(--line); }
.spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; }
.hint-inline { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); font-size: 16px; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .inv-tools input:focus { outline: none; border-color: var(--ball); box-shadow: 0 0 0 3px rgba(215,234,74,.14); }
.row2 { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: .5rem; align-items: center; font-size: .9rem; margin-top: .6rem; }
.ann-only, .ev-only { display: flex; flex-direction: column; gap: .8rem; }
#edit-form.announcement .ev-only, #edit-form.event .ann-only { display: none; }
#ticket-form.other .equip-only, #ticket-form.building .equip-only { display: none; }
.form-error { display: none; color: var(--err); font-weight: 600; font-size: .9rem; margin: 0; }
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ok-msg { background: #163326; border: 1px solid #22533c; color: var(--ok); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .8rem; font-weight: 600; }

@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .stat .v { font-size: 1.35rem; }
  .tab { font-size: .9rem; padding: .7rem .3rem; }
  .back span { display: none; }
  .inv-table td, .inv-table th { padding: .55rem .5rem; }
  .inv-table td.code { font-size: .7rem; width: 4.9rem; max-width: 4.9rem; }
  .inv-table td.loc { font-size: .8rem; }
  .inv-table { font-size: .86rem; }
}

@media (max-width: 600px) {
  .inv-tools { flex-direction: column; gap: .45rem; }
  .inv-tools input[type="search"] { width: 100%; flex: none; }
  .inv-toolbar { width: 100%; min-width: 0; flex: none; gap: .35rem; }
  .inv-toolbar select, .inv-toolbar .btn { min-height: 40px; }
  .inv-toolbar .filt-btn, .inv-toolbar .cols-btn { padding: 0 .55rem; font-size: .82rem; }
  .inv-toolbar #inv-loc { padding: .35rem .5rem; }
}

/* inventory management */
.head-btns { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.scan-bar { display: flex; gap: .5rem; margin-bottom: .35rem; }
.scan-bar input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); padding: .5rem .8rem; font-size: 16px; font-variant-numeric: tabular-nums; }
.scan-bar input:focus { outline: none; border-color: var(--ball); box-shadow: 0 0 0 3px rgba(215,234,74,.14); }
.scan-cam { min-height: 48px; border-radius: 12px; padding: 0 1rem; }
.scan-cam svg { width: 1.3rem; height: 1.3rem; }
.scan-msg { font-size: .88rem; color: var(--ok); min-height: 1.2em; margin: 0 0 .5rem; }
.scan-msg.err { color: var(--err); }
.inv-table tbody tr[data-id] { cursor: pointer; }
.inv-table tbody tr[data-id]:focus { outline: 2px solid var(--ball); outline-offset: -2px; }
.low { display: inline-block; margin-left: .3rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); border: 1px solid #5c4a1f; border-radius: 999px; padding: 0 .35rem; vertical-align: middle; }
.qty-row { display: flex; align-items: center; gap: .7rem; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .5rem .8rem; }
.qty-label { flex: 1; font-weight: 600; color: var(--ink-soft); }
.qty-row b { font-family: var(--display); font-size: 1.6rem; min-width: 2.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.qbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.qbtn:hover { border-color: var(--ball); color: var(--ball); }
.pair { display: flex; gap: .4rem; }
#item-form.readonly input, #item-form.readonly textarea { background: transparent; border-color: var(--line); }
#item-form.readonly input:placeholder-shown { color: var(--muted); }
.item-upd { font-size: .8rem; color: var(--muted); margin: 0; }
.item-log { border-top: 1px solid var(--line); padding-top: .6rem; }
.log-line { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.log-line:last-child { border-bottom: 0; }
.log-det { color: var(--ink-soft); }
.log-meta { display: block; font-size: .75rem; color: var(--muted); }
.cam-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; inset: 22% 10%; border: 2px solid var(--ball); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
@media (max-width: 560px) { .panel-head { flex-wrap: wrap; } .head-btns { width: 100%; justify-content: flex-start; } }
.inv-table td.qty { white-space: nowrap; overflow-wrap: normal; }

/* architecture & design */
.tab-lg { }
@media (max-width: 700px) { .tab-lg { display: none; } }
.deck-card { margin-bottom: 1rem; }
.deck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; flex-wrap: wrap; }
.deck-head h3 { font-size: 1.2rem; }
.deck-meta { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.sec-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.chip { text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .7rem; background: var(--cream); }
.chip span { color: var(--muted); font-weight: 500; margin-left: .15rem; }
.chip:hover { border-color: var(--ball); color: var(--ball); }
.sec-h { font-size: 1.05rem; margin: 1.4rem 0 .7rem; color: var(--ink); scroll-margin-top: calc(var(--header-h) + .8rem); }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.slide-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: zoom-in; overflow: hidden; font: inherit; }
.slide-card:hover, .slide-card:focus-visible { border-color: var(--ball); outline: none; }
.slide-card img { width: 100%; height: auto; display: block; background: #fff; aspect-ratio: 16 / 10; object-fit: contain; }
.sc-t { display: flex; gap: .5rem; align-items: baseline; padding: .6rem .75rem .15rem; font-weight: 600; font-size: .92rem; }
.sc-t b { font-family: var(--display); color: var(--ball); font-size: .8rem; min-width: 1.2rem; }
.sc-c { padding: 0 .75rem .65rem 2.45rem; font-size: .8rem; color: var(--muted); }
.sc-t:last-child { padding-bottom: .65rem; }
@media (max-width: 560px) { .slide-grid { grid-template-columns: 1fr 1fr; gap: .55rem; } .sc-c { display: none; } .sc-t { font-size: .8rem; padding: .45rem .5rem .5rem; } }

dialog.viewer { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; background: #0a0f0d; color: #eef3ef; overflow: hidden; }
dialog.viewer[open] { display: flex; flex-direction: column; }
dialog.viewer::backdrop { background: #000; }
.vw-top { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; padding-top: max(.55rem, env(safe-area-inset-top)); border-bottom: 1px solid #1f2a25; }
.vw-title { flex: 1; min-width: 0; display: flex; gap: .6rem; align-items: baseline; }
.vw-title span { color: var(--ball); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.vw-title b { font-family: var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-actions { display: flex; gap: .3rem; }
.vw-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #33423b; background: #141c18; color: #eef3ef; font-size: 1.3rem; cursor: pointer; text-decoration: none; }
.vw-btn svg { width: 18px; height: 18px; }
.vw-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: grab; }
.vw-stage.zoomed { cursor: move; }
.vw-stage img { max-width: 100%; max-height: 100%; background: #fff; transform-origin: center center; user-select: none; -webkit-user-select: none; will-change: transform; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 12px; background: rgba(20,28,24,.72); color: #fff; font-size: 2rem; cursor: pointer; z-index: 2; }
.vw-nav.prev { left: .4rem; } .vw-nav.next { right: .4rem; }
.vw-bottom { padding: .5rem .8rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); border-top: 1px solid #1f2a25; font-size: .85rem; color: #b9c6bf; }
.vw-bottom p { margin: 0; }
#vw-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
#vw-links:not(:empty) { margin-top: .25rem; }
#vw-links a { color: var(--ball); font-weight: 600; }
.vw-tip { color: #7f8f87; font-size: .75rem; margin-top: .25rem !important; }
@media (max-width: 560px) { .vw-nav { width: 36px; height: 52px; font-size: 1.6rem; } }

/* ---------- individual admin logins (Nov 24, 2026) ---------- */
dialog.narrow { width: min(440px, calc(100% - 1.5rem)); }
#admin-btn { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.acct-menu { display: flex; flex-direction: column; gap: .55rem; }
.acct-menu .btn { width: 100%; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.adm-top .hint { margin: 0; }
.adm-list { display: flex; flex-direction: column; gap: .55rem; }
.adm-row { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm, 12px); padding: .7rem .85rem; color: var(--ink); cursor: pointer; font: inherit; }
.adm-row:hover { border-color: var(--line-strong); }
.adm-row.off { opacity: .6; }
.adm-main { flex: 1 1 11rem; min-width: 0; }
.adm-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-main small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.chip.owner { background: var(--ball); color: var(--court); border-color: var(--ball); }
.chip.off { color: var(--err); border-color: rgba(255,138,114,.35); }
.chip.temp { color: var(--warn); border-color: #5c4a1f; }
.pw-gen { display: flex; gap: .5rem; align-items: center; }
.pw-gen input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#adm-form:not(.editing) .adm-edit-only { display: none; }
.adm-row { flex-wrap: wrap; }
@media (max-width: 560px) { .adm-top { flex-direction: column; align-items: stretch; } }
