/* ==========================================================
   CONTEST JUDGE — THEME
   Charcoal / teal / cyan, condensed type, square panels.
   Change colours here and every screen follows.
   ========================================================== */

@font-face {
  font-family: "AppSans";
  src: url("fonts/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #1b1a1b;          /* charcoal page            */
  --panel: #151515;       /* cards, bars              */
  --panel-2: #202020;     /* rows, raised surfaces    */
  --panel-3: #262626;     /* buttons                  */
  --field: #0f0f0f;       /* inputs                   */
  --line: #2a2a2a;
  --line-2: #333;
  --text: #f2f4f5;
  --muted: #9aa3a6;
  --dim: #6b7276;

  --teal: #17706d;        /* active / selected        */
  --teal-dark: #0e4846;
  --teal-deep: #12302f;
  --cyan: #5ccbe9;        /* accent lines, labels     */
  --cyan-ink: #0b2630;    /* text on cyan             */
  --cyan-soft: #d8f4fb;

  --ok: #2fbf71;
  --warn: #f0a020;
  --bad: #e5484d;
  --live: #c62828;

  --tap: 48px;
  --font: "AppSans", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh; font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(92, 203, 233, .07), transparent 55%),
    url("hex.svg");
  background-size: auto, 80px 138px;
  background-attachment: fixed;
}
a { color: var(--cyan); }

/* condensed display type — headings, labels, buttons, numbers */
.cond, h1, h2, h3, .btn, .chip, .badge, .nav a, .tabbar a, .tabbar button, .sync, th,
label.field > span, .tile .v, .tile .l, .item .num, .stage-clock, .crit .val, .total-bar .t,
.kicker, .scale button, .rank {
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
}

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.1; font-weight: 800; }
h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
h3::after { content: ""; flex: 1; height: 1px; background: rgba(92, 203, 233, .3); }
.row > h3, .row.between > h3 { flex: 1; margin-bottom: 0; }
.row.between > h3 + * { margin-left: 12px; }
.kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .75rem; }
.hidden { display: none !important; }

/* ---------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: stretch; gap: 0;
  min-height: 56px; padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  background: rgba(21, 21, 21, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0;
  font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .05em;
  font-stretch: 75%; font-variation-settings: "wdth" 75;
}
.brand img { width: 28px; height: 28px; flex: 0 0 auto; }
.brand { max-width: 40vw; }
#ev-name { display: block; }
/* contest picker (only for people with 2+ contests): styled like the title it replaces */
.contest-pick { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; cursor: pointer; }
.contest-pick .kicker { margin: 0; }
.contest-pick select {
  min-height: 0; height: auto; padding: 0 26px 0 0; width: auto; max-width: 320px;
  background-color: transparent; border: 0; border-radius: 0; box-shadow: none;
  font: 800 19px var(--font); font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: .05em; text-transform: uppercase; color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 3px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
  cursor: pointer; text-overflow: ellipsis;
}
.contest-pick:hover select, .contest-pick select:focus { color: var(--cyan); }
.contest-pick select:focus { box-shadow: none; border: 0; outline: none; }
.contest-pick select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.contest-pick select option { background: var(--panel); color: var(--text); text-transform: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap;
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-top: 2px solid transparent; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); border-top-color: var(--line-2); }
.nav a.active { color: #fff; background: linear-gradient(180deg, rgba(23, 112, 109, .55), rgba(23, 112, 109, .2)); border-top-color: var(--cyan); }
.nav .ico svg { width: 18px; height: 18px; }
.nav a { padding: 0 12px; }
.nav a.nav-icon { padding: 0 12px; }
.nav a.nav-icon svg { width: 20px; height: 20px; }
@media (max-width: 1279px) { body.multi-contest .brand-text { display: none; } body.multi-contest .brand { padding-right: 6px; } }
.topbar-right { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; margin-left: auto; }
.sync {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; cursor: pointer; white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--panel-3); color: var(--muted); border: 0;
}
.sync.online { background: var(--teal); color: #fff; }
.sync.offline { background: #4a3410; color: #ffd38a; }
.sync.auth { background: #5a1d1d; color: #ffb4b4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: 0 0 auto; }
.sync.syncing .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.userbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line-2);
  font: 700 14px var(--font);
}
.userbtn:hover { border-color: var(--cyan); }
.userbtn svg { width: 18px; height: 18px; color: var(--cyan); }
.ico { display: inline-flex; }
.ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { padding: 18px; max-width: 1400px; margin: 0 auto; padding-bottom: 4rem; }

/* ---------------------------------------------------------- bottom tab bar (phones, portrait tablets) */
.tabbar { display: none; }
@media (max-width: 1159px) {
  .topbar .nav { display: none; }
  .brand { max-width: calc(100vw - 130px); }
  body.multi-contest .brand-text { display: none; }          /* phones: logo + picker */
  body.multi-contest .brand { padding-right: 8px; }
  .contest-pick { flex: 1; padding: 0 8px 0 10px; }
  .contest-pick select { max-width: 100%; font-size: 17px; }
  body.has-tabs .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(21, 21, 21, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; padding: 6px 2px; text-decoration: none; color: var(--muted); cursor: pointer;
    background: none; border: 0; border-top: 2px solid transparent;
    font: 800 11px var(--font); letter-spacing: .1em; text-transform: uppercase;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a.active, .tabbar button.active {
    color: #fff; border-top-color: var(--cyan);
    background: linear-gradient(180deg, rgba(23, 112, 109, .45), transparent);
  }
  .tabbar a.active svg, .tabbar button.active svg { color: var(--cyan); }
  body.has-tabs main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.has-tabs #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .brand { padding: 0 12px; font-size: 17px; }
  .brand img { width: 24px; height: 24px; }
  .sync .lbl { display: none; }
  .sync { padding: 8px; }
  .topbar .sync .count { display: inline; }
  .userbtn .who { display: none; }
  .userbtn { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .topbar-right { padding-right: 10px; gap: 6px; }
  main { padding: 12px; }
  h2 { font-size: 20px; }
}
.sync .count { display: none; }

/* ---------------------------------------------------------- panels */
.panel {
  background: var(--panel); border-top: 2px solid var(--line-2); padding: 16px;
}
.panel.accent { border-top-color: var(--cyan); }
.panel + .panel { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: minmax(280px, 380px) 1fr; }
.cols-stage { grid-template-columns: minmax(320px, 440px) 1fr; }
@media (max-width: 860px) { .cols-2, .cols-stage { grid-template-columns: minmax(0, 1fr); } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tile { background: var(--panel); border-top: 2px solid var(--line-2); padding: 12px 14px; }
.tile.on { border-top-color: var(--cyan); }
.tile .v { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .v.word { font-size: 22px; text-transform: uppercase; letter-spacing: .06em; padding-top: 6px; }
.tile .l { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } .tile .v { font-size: 28px; } }

/* ---------------------------------------------------------- forms */
label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: 0;
  background: var(--field); border: 1px solid var(--line-2); outline: none; color: var(--text);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
input::placeholder, textarea::placeholder { color: var(--dim); }
select { -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); }

/* ---------------------------------------------------------- buttons */
.btn {
  min-height: var(--tap); padding: 8px 16px; cursor: pointer; border: 0; border-top: 2px solid var(--line-2);
  background: var(--panel-3); color: #e6e9ea; border-radius: 0;
  font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  touch-action: manipulation; user-select: none; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.2); border-top-color: var(--cyan); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; border-top-color: var(--line-2); }
.btn.primary { background: var(--cyan); color: var(--cyan-ink); border-top-color: var(--cyan-soft); }
.btn.ok { background: var(--teal); color: #fff; border-top-color: var(--cyan); }
.btn.warn { background: var(--warn); color: #1a1200; border-top-color: #ffd38a; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(229, 72, 77, .6); border-top: 2px solid var(--bad); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); border-top-width: 2px; }
.btn.big { min-height: 64px; font-size: 20px; padding: 10px 20px; }
.btn.sm { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 38px; padding: 6px 12px; cursor: pointer; border: 0; border-top: 2px solid var(--line-2);
  background: var(--panel-3); color: var(--muted);
  font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.chip:hover { border-top-color: var(--cyan); color: var(--text); }
.chip.on { background: var(--teal); color: #fff; border-top-color: var(--cyan); }
.quicknotes { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.quicknotes .head { margin-bottom: .6rem; }
.chip.qn { min-height: 44px; text-transform: none; letter-spacing: .01em; font-weight: 700; font-size: 15px; }
.chip.qn:disabled { cursor: default; opacity: .6; }
.note-tally { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.qtag { display: inline-block; padding: 1px 7px; font-size: 12px; color: var(--text); background: var(--panel-3); border-left: 2px solid var(--cyan); white-space: nowrap; }
.qtag b { color: var(--cyan); }

.badge {
  display: inline-block; padding: 2px 7px; white-space: nowrap; vertical-align: middle;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--panel-3); color: var(--muted);
}
.badge.registered { background: #262626; color: var(--muted); }
.badge.checked_in { background: rgba(23, 112, 109, .45); color: #bff0ec; }
.badge.on_stage { background: var(--live); color: #fff; }
.badge.done { background: rgba(92, 203, 233, .14); color: var(--cyan); }
.badge.no_show { background: rgba(229, 72, 77, .16); color: #ff9da0; }
.badge.draft { background: rgba(240, 160, 32, .16); color: #ffcf7a; }
.badge.next { background: rgba(240, 160, 32, .16); color: #ffcf7a; }
.badge.submitted { background: rgba(23, 112, 109, .45); color: #bff0ec; }
.badge.tie { background: rgba(240, 160, 32, .2); color: #ffcf7a; }

/* ---------------------------------------------------------- lists & tables */
.list { display: flex; flex-direction: column; gap: 4px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 62px; cursor: pointer;
  background: var(--panel-2); border-left: 3px solid transparent;
}
.item:hover { background: #242424; border-left-color: var(--line-2); }
.item.sel { background: var(--teal-deep); border-left-color: var(--cyan); }
.item .num { font-weight: 800; font-size: 22px; min-width: 2.4ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--cyan); }
.item .who { flex: 1; min-width: 0; }
.item .who .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .who .c { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .who .c .badge { margin-right: 6px; }
.item.dim { opacity: .5; }
.item .who .c .badge.mobile { display: none; }
.item .tools { display: flex; gap: 2px; }
.item .tools .btn.sm { min-width: 38px; padding: 4px 6px; }
@media (max-width: 600px) {
  .item { gap: 10px; padding: 10px; }
  .item .num { font-size: 19px; min-width: 2ch; }
  .item > .badge { display: none; }            /* status moves under the name on phones */
  .item .who .c .badge.mobile { display: inline-block; }
}

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--cyan); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.edit-table td { padding: 6px 4px; }
.access-add { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; }
.item.access-row .role-select { width: 300px; flex: 0 0 auto; }
@media (max-width: 700px) {
  .access-add { grid-template-columns: 1fr; }
  .item.access-row { flex-wrap: wrap; }
  .item.access-row .who { flex: 1 1 100%; }
  .item.access-row .role-select { flex: 1 1 0; width: auto; min-width: 0; }
}
.edit-table input[type=text] { min-width: 150px; }
.edit-table input[type=number] { min-width: 72px; }
.edit-table select { min-width: 140px; }
.edit-table td:last-child { white-space: nowrap; }
.rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; font-weight: 800; font-size: 17px; background: var(--panel-3); color: var(--text); }
.rank.r1 { background: #d4a72c; color: #1a1300; }
.rank.r2 { background: #a9b3b8; color: #111; }
.rank.r3 { background: #b06a3b; color: #1a0c03; }

/* ---------------------------------------------------------- judging */
.crit { padding: 14px 0; border-bottom: 1px solid var(--line); }
.crit:last-of-type { border-bottom: 0; }
.crit .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.crit .head b { font-size: 16px; }
.crit .val { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cyan); min-width: 2ch; text-align: right; }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 4px; margin-top: 10px; }
.scale button {
  min-height: 54px; cursor: pointer; touch-action: manipulation; border: 0; border-top: 2px solid var(--line-2);
  background: var(--panel-3); font-size: 20px; font-weight: 800; color: #e6e9ea;
}
.scale button:hover { border-top-color: var(--cyan); }
.scale button.on { background: var(--teal); border-top-color: var(--cyan); color: #fff; }
.scale button:disabled { cursor: default; filter: none; }
@media (max-width: 600px) { .scale { grid-template-columns: repeat(6, 1fr); } }
.judge-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.judge-nav .pos { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-stretch: 75%; font-variation-settings: "wdth" 75; }
.judge-nav .btn { min-width: 96px; }
#scoreform { scroll-margin-top: 68px; }
.total-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 14px 16px; margin-top: 14px; background: var(--panel-2); border-left: 3px solid var(--cyan); }
.total-bar .t { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.banner { padding: 10px 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--panel-2); border-left: 4px solid var(--line-2); }
.banner .tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-stretch: 75%; font-variation-settings: "wdth" 75; }
.banner.stage { background: #3a1414; border-left-color: var(--live); }
.banner.stage .tag { color: #ff9da0; }
.banner.warn { background: rgba(240, 160, 32, .08); border-left-color: var(--warn); }
.banner.warn .tag { color: #ffcf7a; }
.banner.bad { background: rgba(229, 72, 77, .1); border-left-color: var(--bad); }
.banner.bad .tag { color: #ff9da0; }
.banner.info { background: var(--teal-deep); border-left-color: var(--cyan); }
.banner.info .tag { color: var(--cyan); }

/* ---------------------------------------------------------- stage control */
.stage-clock { font-size: clamp(64px, 11vw, 116px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: .95; letter-spacing: -.01em; }
.stage-clock.warn { color: var(--warn); }
.stage-clock.over { color: var(--bad); }
.progress { height: 8px; background: var(--teal-dark); overflow: hidden; }
.progress > div { height: 100%; background: var(--cyan); transition: width .2s linear; }
.progress.warn > div { background: var(--warn); }
.progress.over > div { background: var(--bad); }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.controls .btn { white-space: normal; line-height: 1.1; }
@media (max-width: 600px) { .controls { grid-template-columns: 1fr 1fr; } .controls .btn.big { font-size: 17px; min-height: 58px; padding: 8px; white-space: normal; } }
.onstage-state { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-stretch: 75%; font-variation-settings: "wdth" 75; }

/* ---------------------------------------------------------- confidence monitor */
.monitor {
  position: fixed; inset: 0; display: flex; flex-direction: column; gap: 2vh; padding: 3vh 4vw;
  background: #000; color: #fff; cursor: default; user-select: none;
  font-stretch: 75%; font-variation-settings: "wdth" 75;
}
.monitor .top { display: flex; justify-content: space-between; align-items: center; font-size: 2.4vh; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.monitor .top .conn { color: var(--warn); }
.monitor .who { text-align: center; }
.monitor .who .num { font-size: 5vh; font-weight: 800; color: var(--cyan); letter-spacing: .04em; }
.monitor .who .name { font-size: 8vh; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.monitor .who .char { font-size: 4vh; color: #bbb; margin-top: .6vh; text-transform: uppercase; letter-spacing: .06em; }
.monitor .clock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.monitor .clock .t { font-size: min(38vh, 30vw); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.monitor .clock .s { font-size: 5vh; font-weight: 800; letter-spacing: .3em; margin-top: 1vh; min-height: 5.5vh; color: var(--cyan); }
.monitor.warn .clock .t { color: var(--warn); }
.monitor.warn .clock .s { color: var(--warn); }
.monitor.over { animation: flash 1s steps(2) infinite; }
.monitor.over .clock .t, .monitor.over .clock .s { color: #fff; }
@keyframes flash { 0% { background: #b0001a; } 50% { background: #5a000d; } }
.monitor .bar { height: 2vh; background: var(--teal-dark); overflow: hidden; }
.monitor .bar > div { height: 100%; background: var(--cyan); }
.monitor.warn .bar > div { background: var(--warn); }
.monitor .next { text-align: center; font-size: 3.2vh; color: #999; text-transform: uppercase; letter-spacing: .08em; }
.monitor .next b { color: #fff; }
.monitor .tools { position: fixed; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; opacity: 0; transition: opacity .3s; }
.monitor:hover .tools, .monitor .tools:focus-within { opacity: 1; }

/* ---------------------------------------------------------- sign in */
.login { max-width: 420px; margin: 9vh auto; padding: 0 16px; }
.login .logo { text-align: center; margin-bottom: 22px; }
.login .logo img { width: 64px; height: 64px; }
.login .logo h1 { margin: 12px 0 4px; font-size: 34px; }
.login .panel { border-top-color: var(--cyan); padding: 20px; }
.recent { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------- modal & toast */
.modal-back { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; background: rgba(0, 0, 0, .7); }
.modal { width: min(640px, 100%); padding: 20px; background: var(--panel); border-top: 3px solid var(--cyan); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .modal .actions { justify-content: stretch; }
  .modal .actions .btn { flex: 1; }
}
.sheet-list { display: flex; flex-direction: column; gap: 4px; }
.sheet-list a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; min-height: 56px; text-decoration: none; color: var(--text); background: var(--panel-2); border-left: 3px solid transparent;
  font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; font-stretch: 75%; font-variation-settings: "wdth" 75; }
.sheet-list a.active { border-left-color: var(--cyan); background: var(--teal-deep); }
.sheet-list svg { width: 22px; height: 22px; color: var(--cyan); }
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; width: min(560px, 92vw); }
.toast { width: 100%; padding: 12px 14px; background: var(--panel-2); border-left: 4px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast.ok { border-left-color: var(--cyan); }
.toast.warn { border-left-color: var(--warn); }
.toast.bad { border-left-color: var(--bad); }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .tabbar, .no-print { display: none !important; }
  .panel, .tile { background: #fff; border-color: #999; }
  th { color: #000; }
}

/* ---------------------------------------------------------- tech & emcee */
.cols-show { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cols-show { grid-template-columns: minmax(0, 1fr); } }
.show-now { border-top-width: 3px; }
.show-name { font-size: clamp(28px, 4vw, 44px); margin: 4px 0 2px; }
.show-next-name { font-size: 22px; margin: 4px 0 2px; color: var(--text); letter-spacing: .02em; }
.show-next-name::after { display: none; }
.show-clock { font-size: clamp(56px, 8vw, 96px); margin: 10px 0 0; }
.show-fields { display: grid; gap: 12px; margin-top: 14px; }
.show-field { padding: 10px 12px; background: var(--panel-2); border-left: 3px solid var(--teal); }
.show-field .v { font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.show-field.big .v { font-size: 22px; font-weight: 600; }
.show-field.intro .v { font-size: 17px; }
.show-field.intro.big .v { font-size: 24px; line-height: 1.5; font-weight: 500; }

/* ---------------------------------------------------------- reference photos */
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb { width: 96px; height: 96px; padding: 0; border: 0; border-top: 2px solid var(--line-2); background: var(--panel-3); cursor: zoom-in; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-top-color: var(--cyan); }
.thumb.missing { cursor: default; background: repeating-linear-gradient(45deg, var(--panel-3), var(--panel-3) 6px, var(--panel-2) 6px, var(--panel-2) 12px); }
.thumb-wrap { position: relative; }
.thumb-del { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border: 0; background: rgba(0, 0, 0, .75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.thumb-del:hover { background: var(--bad); }
@media (max-width: 600px) { .thumb { width: 76px; height: 76px; } }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; cursor: zoom-out; }
.lb-bar { display: flex; align-items: center; gap: 10px; }
.lb-bar .kicker { margin: 0 6px; }

/* ---------------------------------------------------------- after the event */
.danger-zone { border-top-color: var(--bad); }
.danger-zone h3 { color: #ff9da0; }
.danger-zone h3::after { background: rgba(229, 72, 77, .3); }

/* Judge: running order / my ranking */
.judge-tabs { display: flex; gap: 2px; margin: .5rem 0 .6rem; }
.judge-tabs button {
  flex: 1; min-height: 42px; cursor: pointer; border: 0; border-top: 2px solid var(--line-2);
  background: var(--panel-3); color: var(--muted); font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.judge-tabs button:hover { color: var(--text); border-top-color: var(--cyan); }
.judge-tabs button.on { background: var(--teal); color: #fff; border-top-color: var(--cyan); }
.item .num.rank { color: var(--cyan); }
.rank-div { margin: .8rem 0 .3rem; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.my-rank { margin-top: 2px; color: var(--cyan); font-weight: 700; }
.item .num.unranked { color: var(--dim); }

/* Heats & finals */
.round-pick { display: flex; flex-wrap: wrap; gap: 2px; margin: .5rem 0 .4rem; }
.round-pick button {
  flex: 1 1 auto; min-height: 42px; padding: 0 12px; cursor: pointer; border: 0; border-top: 2px solid var(--line-2);
  background: var(--panel-3); color: var(--muted); font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.round-pick button:hover:not(:disabled) { color: var(--text); border-top-color: var(--cyan); }
.round-pick button.on { background: var(--teal); color: #fff; border-top-color: var(--cyan); }
.round-pick button:disabled { opacity: .45; cursor: default; }
.round-pick .n { margin-left: 6px; font-size: 11px; opacity: .75; }
.results-rounds { margin: 0; }
.results-rounds button { min-height: 48px; font-size: 15px; }
.btn.star { min-width: 40px; font-size: 18px; letter-spacing: 0; color: var(--dim); }
.btn.star.on { color: var(--warn); }
.finalists .list { margin-top: .6rem; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium .place { text-align: center; border-top: 3px solid var(--line-2); }
.podium .place.p1 { border-top-color: #e8c35a; padding-top: 28px; }
.podium .place.p2 { border-top-color: #c9d1d6; }
.podium .place.p3 { border-top-color: #c98b5a; }
.podium.classic .place.p1 { order: 2; } .podium.classic .place.p2 { order: 1; } .podium.classic .place.p3 { order: 3; }
.podium .pname { margin: .3rem 0 .2rem; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.podium .medal { font-weight: 900; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.podium .place.p1 .medal { color: #e8c35a; font-size: 34px; }
.podium .score { margin-top: .4rem; font-size: 26px; font-weight: 900; }
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } .podium .place { order: 0 !important; } }
@media print { .round-pick { display: none; } }

/* Heat capacity on check-in */
.heat-cap { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 1rem; }
.heat-tile { text-align: left; padding: 10px 12px; cursor: pointer; border: 0; border-top: 2px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; }
.heat-tile:hover { border-top-color: var(--cyan); }
.heat-tile.on { background: var(--teal-deep); border-top-color: var(--cyan); }
.heat-tile .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.heat-tile .v { font-size: 26px; font-weight: 900; line-height: 1.1; }
.heat-tile .l { font-size: 12px; color: var(--muted); }
.heat-tile .bar { height: 4px; margin-top: 6px; background: var(--panel-3); }
.heat-tile .bar span { display: block; height: 100%; background: var(--teal); }
.heat-tile.regfull .bar span { background: var(--warn); }
.heat-tile.full .bar span { background: var(--bad); }
.heat-tile.full .v { color: var(--bad); }

/* Judge medals: their own current top 3 */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%;
  font-size: 11px; font-weight: 900; color: #1b1a1b; vertical-align: 1px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.medal.m1 { background: #e8c35a; } .medal.m2 { background: #c9d1d6; } .medal.m3 { background: #c98b5a; }
.medal.big { width: 34px; height: 34px; font-size: 16px; margin-right: 0; flex: none; }
.item .num.rank.m1 { color: #e8c35a; } .item .num.rank.m2 { color: #c9d1d6; } .item .num.rank.m3 { color: #c98b5a; }
.top3 { display: grid; gap: 6px; }
.top3-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; cursor: pointer; border: 0; border-left: 3px solid var(--line-2);
  background: var(--panel-3); color: var(--text); font: inherit; }
.top3-card:hover { background: var(--panel-2); }
.top3-card.m1 { border-left-color: #e8c35a; } .top3-card.m2 { border-left-color: #c9d1d6; } .top3-card.m3 { border-left-color: #c98b5a; }
.top3-card .who { flex: 1; min-width: 0; } .top3-card .n { font-weight: 800; } .top3-card .c { font-size: 13px; color: var(--muted); }
.top3-card .t { font-size: 22px; font-weight: 900; }

/* Local server */
.local-addr { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel-3); border-left: 3px solid var(--cyan); }
.local-addr code { flex: 1; font-size: 18px; font-weight: 700; color: var(--text); word-break: break-all; }
ol.steps { margin: 0; padding-left: 1.3rem; } ol.steps li { margin: .2rem 0; }

/* Transfer files */
.transfer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.check-list { display: grid; gap: 4px; }
.transfer-row { align-items: flex-start; padding: 8px 10px; background: var(--panel-3); }
.transfer-row input { margin-top: 4px; }
.dl-list { gap: 6px; } .dl-list .btn { font-size: 12px; }

/* Events */
.event-row .event-name { width: 100%; max-width: 420px; padding: 6px 8px; font-weight: 800; font-size: 16px; background: transparent; border: 1px solid transparent; }
.event-row .event-name:hover, .event-row .event-name:focus { border-color: var(--line-2); background: var(--panel); }
tr.event-head td { padding-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); border-bottom: 1px solid var(--line-2); }
select.move-event { width: auto; max-width: 160px; padding: 4px 26px 4px 8px; font-size: 12px; }

/* Organizations */
.org-field span { font-size: 12px; }
.chip .org-tag { margin-left: 6px; padding: 0 5px; font-size: 10px; letter-spacing: .08em; background: var(--panel); color: var(--muted); }
pre.handover { margin: 0; padding: 12px; white-space: pre-wrap; font: 600 14px/1.6 ui-monospace, Menlo, Consolas, monospace; background: var(--panel-3); border-left: 3px solid var(--cyan); }

/* Sign-ups */
.badge.pending { background: #5a4410; color: #ffd27a; }
.badge.withdrawn, .badge.declined { background: var(--panel-3); color: var(--dim); text-decoration: line-through; }
.src-tag { margin-left: 6px; padding: 0 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-2); }
.row.nowrap { flex-wrap: nowrap; gap: 6px; }

.signup-link { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { flex: none; background: #fff; padding: 6px; line-height: 0; }
.qr-box svg { display: block; }
.sg-settings summary { cursor: pointer; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--cyan); padding: 6px 0; }
.sg-fields { display: grid; gap: 6px; }
.sg-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 120px 40px; gap: 6px; align-items: center; padding: 6px; background: var(--panel-3); }
.sg-field.off { opacity: .5; }
.sg-field .sg-options { grid-column: 1 / -1; }
.sg-field .sg-kind { padding-left: 4px; }
@media (max-width: 700px) { .sg-field { grid-template-columns: 1fr 1fr; } }
/* Public sign-up pages */
.signup-page { max-width: 560px; margin: 0 auto; padding: 24px 16px 60px; }
.signup-page .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.signup-page .logo img { width: 34px; height: 34px; }
.signup-head h1 { margin: .2rem 0 1rem; font-size: 30px; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; }
.signup-msg { margin: 0; padding: 10px 12px; background: var(--panel-3); border-left: 3px solid var(--cyan); white-space: pre-wrap; }
.signup-page label.field > span { font-size: 13px; }
.signup-photos > span:first-child { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.signup-photos input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.signup-photos p { margin: 4px 0 8px; }
.req { color: var(--cyan); }
.err { color: var(--bad); min-height: 1em; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-thumb { position: relative; width: 84px; height: 84px; }
.signup-thumb img { width: 100%; height: 100%; object-fit: cover; }
.signup-thumb button { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; cursor: pointer; }
.big-num { font-size: 64px; font-weight: 900; line-height: 1; color: var(--cyan); }
.consent span { white-space: pre-wrap; }
.btn.big { min-height: 52px; font-size: 18px; }
.signup-photos .signup-thumbs:not(:empty) { margin-bottom: 8px; }
[hidden] { display: none !important; }

.support-bar { display: flex; gap: 12px; align-items: center; padding: 8px 18px; background: #3a2a0a; border-bottom: 2px solid var(--warn, #f0a020); color: #ffe2a8; font-size: 14px; position: sticky; top: var(--topbar-h, 0); z-index: 5; }
.support-bar b { color: #fff; }

/* ---------- printing: feedback sheets and paper score cards */
#print-root { display: none; }
@media print {
  /* Only the printout: nothing else on the page (not even empty containers, which would start a blank page). */
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  html.printing, body.printing { background: #fff !important; color-scheme: light !important; }
  @page { margin: 10mm; }
}
.sheet { color: #111; background: #fff; font-family: 'Roboto', Arial, sans-serif; page-break-after: always; break-after: page; }
.sheet:last-child { page-break-after: auto; break-after: auto; }
.fb-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #18b4c9; padding-bottom: 8px; margin-bottom: 12px; }
.fb-kicker { font-size: 11pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0f8a9b; }
.sheet h1 { font-size: 22pt; margin: 2px 0 0; text-transform: none; letter-spacing: 0; color: #111; }
.fb-num { font-size: 36pt; font-weight: 900; color: #0f8a9b; line-height: 1; }
.fb-who { font-size: 15pt; margin-bottom: 14px; }
.fb-round-name { font-size: 14pt; margin: 14px 0 6px; color: #111; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
.fb-total { margin: 6px 0 12px; }
.fb-total-n { font-size: 30pt; font-weight: 900; }
.fb-total-of { font-size: 13pt; color: #444; }
.fb-total-l { font-size: 10pt; text-transform: uppercase; letter-spacing: .1em; color: #555; }
.fb-cats { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.fb-cats td { padding: 6px 4px; border-bottom: 1px solid #ddd; font-size: 12pt; color: #111; }
.fb-cats td.r { text-align: right; white-space: nowrap; width: 90px; }
.fb-bar { width: 40%; }
.fb-bar span { display: block; height: 10px; background: #18b4c9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fb-sec { margin: 10px 0; }
.fb-h { font-size: 10pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0f8a9b; margin-bottom: 6px; }
.fb-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-note { border: 1px solid #18b4c9; padding: 4px 10px; font-size: 11pt; color: #0b5f6b; }
.fb-comment { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid #18b4c9; background: #f3f6f7; font-size: 11.5pt; white-space: pre-wrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fb-foot { font-size: 10pt; color: #555; margin-top: 16px; }
/* the same feedback on the contestant's (dark) entry page */
.fb-public { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.fb-public .fb-total-n { color: var(--cyan); }
.fb-public .fb-total-of, .fb-public .fb-total-l { color: var(--muted); }
.fb-public .fb-cats td { color: var(--text); border-color: var(--line-2); }
.fb-public .fb-comment { background: var(--panel-3); color: var(--text); }
.fb-public .fb-note { color: var(--cyan); }
.fb-public .fb-round-name { color: var(--text); border-color: var(--line-2); }

/* paper score cards */
.pc-page { display: flex; flex-direction: column; gap: 5mm; }
.pc-card { border: 1.5px solid #222; padding: 4mm 6mm; height: 127mm; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; break-inside: avoid; }
.pc-page.one .pc-card { height: auto; min-height: 120mm; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #18b4c9; padding-bottom: 1.5mm; margin-bottom: 2mm; gap: 10mm; }
.pc-kicker { font-size: 9pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f8a9b; }
.pc-title { font-size: 14pt; font-weight: 800; color: #111; }
.pc-judge { font-size: 11pt; color: #111; white-space: nowrap; }
.pc-who { font-size: 12.5pt; color: #111; margin-bottom: 1.5mm; }
.pc-num { font-size: 16pt; font-weight: 900; color: #0f8a9b; }
.pc-heat { color: #555; font-size: 10.5pt; }
.pc-line { display: inline-block; border-bottom: 1px solid #333; height: 1em; vertical-align: bottom; }
.pc-line.w10 { width: 10mm; } .pc-line.w20 { width: 25mm; } .pc-line.w30 { width: 35mm; } .pc-line.w40 { width: 45mm; } .pc-line.w45 { width: 50mm; }
.pc-crits { width: 100%; border-collapse: collapse; }
.pc-crits td { border-bottom: 1px solid #bbb; padding: 1mm 1mm; font-size: 11pt; color: #111; vertical-align: middle; }
.pc-desc { font-size: 8.5pt; color: #555; }
.pc-crits .pc-desc { display: inline; margin-left: 2mm; }
.pc-score { text-align: right; white-space: nowrap; width: 38mm; }
.pc-box { display: inline-block; width: 13mm; height: 7mm; border: 1.5px solid #222; vertical-align: middle; }
.pc-box.wide { width: 18mm; }
.pc-w { font-size: 9pt; color: #555; }
.pc-total td { border-bottom: 0; padding-top: 1.5mm; }
.pc-h { font-size: 8.5pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f8a9b; margin: 1.5mm 0 1mm; }
.pc-note-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6mm 3mm; }
.pc-note { font-size: 9pt; color: #111; display: flex; align-items: center; gap: 1.5mm; }
.pc-tick { display: inline-block; width: 3.2mm; height: 3.2mm; border: 1px solid #222; flex: none; }
.pc-lines { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; min-height: 14mm; }
.pc-lines div { border-bottom: 1px solid #999; height: 6mm; }
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th { font-size: 9.5pt; color: #111; text-align: left; border-bottom: 2px solid #222; padding: 1.5mm; vertical-align: bottom; }
.pc-table th.c, .pc-table td.c { text-align: center; }
.pc-max { font-weight: 400; color: #555; font-size: 8.5pt; }
.pc-table td { border-bottom: 1px solid #999; height: 9mm; padding: 0 1.5mm; font-size: 10.5pt; color: #111; }
.pc-table td.pc-cell { border-left: 1px solid #ccc; width: 17mm; }
.pc-table td.pc-notes-cell { border-left: 1px solid #ccc; width: 55mm; }
.pc-table tr { break-inside: avoid; }
.pc-sign { margin-top: 6mm; font-size: 10.5pt; color: #111; }
/* Judge sheets print landscape where the browser supports named pages (Chrome, Edge); otherwise portrait still fits. */
.pc-sheet { page: pc-landscape; }
@page pc-landscape { size: letter landscape; margin: 10mm; }
