@font-face {
  font-family: 'OSC';
  src: url('/assets/fonts/OpenSans_Condensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b2160;
  --blue: #1d428a;
  --blue-2: #2a56ad;
  --red: #c8102e;
  --red-dark: #a50d26;
  --ink: #0e1f4d;
  --muted: #66729a;
  --line: #e4e7f1;
  --field: #f3f5fa;
  --soft: #e9eefb;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.14);
  --ok: #24b36b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(5, 15, 60, 0.2), 0 12px 32px rgba(2, 10, 45, 0.3);
  --font: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --display: 'OSC', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 18, 64, 0.55), rgba(6, 18, 64, 0.82)), url('/assets/bg.jpg') center / cover no-repeat;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- header -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: rgba(8, 24, 74, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--glass-line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .logo { height: 46px; width: auto; display: block; }
.brand .script { height: 34px; width: auto; display: block; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #b9c6ea; margin-top: 2px; }

.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); margin-left: 8px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.tab.active { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45); }

.spacer { flex: 1; }
.status { display: flex; align-items: center; gap: 10px; }
.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c6ea; flex: none; }
.chip-status[data-s='live'] .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(36, 179, 107, 0.2); }
.chip-status[data-s='connecting'] .dot { background: #f5b83d; }
.chip-status[data-s='offline'] .dot, .chip-status[data-s='error'] .dot { background: var(--red); }
.chip-status[data-s='saving'] .dot { background: #f5b83d; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: #fff;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.sm .ico { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ layout -- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 600px);
  gap: 24px;
  padding: 24px;
  align-items: start;
  max-width: 2300px;
  margin: 0 auto;
}
.main { min-width: 0; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; text-transform: uppercase; }
.view-head .sub { margin: 6px 0 0; color: #c3cdec; max-width: 70ch; line-height: 1.45; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: rgba(255, 255, 255, 0.16); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35); }
.btn.primary:hover { background: var(--red-dark); }
.btn.quiet { background: var(--field); color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: #e8ebf4; }
.btn.danger { background: #fff1f2; color: var(--red-dark); border-color: #ffd0d6; }
.btn.danger:hover { background: #ffe2e6; }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 30px; }
.card-head h3 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1; text-transform: uppercase; }
.card-head .grow { flex: 1; }
.muted { color: var(--muted); }

.field {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--field);
  color: var(--ink);
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field::placeholder { color: #a3abc6; font-weight: 400; }
.field:hover { background: #eceff7; }
.field:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 66, 138, 0.14); }
select.field { padding-right: 6px; }

/* ------------------------------------------------------------- matches -- */
.ko-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ko-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.ko-col > h4 { margin: 0 0 -2px; font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; color: #dfe6fb; }

.mcard { padding: 12px 12px 10px; position: relative; }
.mcard.final { box-shadow: 0 0 0 3px var(--red), var(--shadow); }
.mcard.next::before {
  content: 'Následuje';
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 28px; }
.mhead .lbl { flex: none; max-width: 60%; font-family: var(--display); font-size: 19px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead .meta { min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead .grow { flex: 1; }
.mhead .state { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.tool {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.tool .ico { width: 16px; height: 16px; }
.tool:hover { background: var(--field); color: var(--ink); }
.tool.on { background: var(--blue); color: #fff; }
.tool.clear { opacity: 0; }
.mcard:hover .tool.clear, .tool.clear:focus-visible { opacity: 1; }
.tool.clear:hover { color: var(--red); }

.mrows { display: grid; gap: 6px; }
.mrow {
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  padding: 5px;
  border-radius: 12px;
  background: var(--field);
  transition: background 0.2s, opacity 0.2s;
}
.mrow.win { background: #fde8ec; }
.mrow.lose { opacity: 0.55; }
.mrow .tlogo { width: 36px; height: 36px; display: grid; place-items: center; }
.mrow .tlogo img { max-width: 100%; max-height: 100%; }
.tname { min-width: 0; line-height: 1.15; }
.tname b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname.ph { color: #99a2bf; font-style: italic; font-size: 13px; }
.mrow.win .tname b { color: var(--red-dark); }

/* quarter-final slot: whole name area is the picker button */
.slot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 1.5px dashed #c3cbe2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.slot-btn:hover { border-color: var(--blue); background: #f8faff; }
.slot-btn.filled { border-style: solid; border-color: transparent; background: transparent; padding: 0; }
.slot-btn.filled:hover { background: #fff; border-color: var(--line); padding: 0 6px; }
.slot-btn .plus { color: var(--blue); font-weight: 600; font-size: 13px; }

.score {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  padding: 0;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.score:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 66, 138, 0.16); }
.score:disabled { background: transparent; border-style: dashed; }
.pick {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pick .ico { width: 15px; height: 15px; }
.pick:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pick.on { background: var(--red); border-color: var(--red); color: #fff; }
.pick:disabled { opacity: 0.3; cursor: default; }
.mhint { margin: 8px 2px 0; font-size: 12px; color: var(--red-dark); line-height: 1.4; }

/* standings card */
.stand-list { display: grid; gap: 4px; }
.srow { display: grid; grid-template-columns: 54px 30px minmax(0, 1fr) 56px; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 10px; }
.srow:nth-child(odd) { background: var(--field); }
.srow .pl { font-family: var(--display); font-size: 18px; color: var(--blue); }
.srow[data-rank='1'] .pl { color: #b8860b; }
.srow .tlogo { width: 28px; height: 28px; display: grid; place-items: center; }
.srow .tlogo img { max-width: 100%; max-height: 100%; }
.srow .mv { display: inline-flex; gap: 2px; justify-content: flex-end; }
.srow .mv button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.srow .mv button:hover:not(:disabled) { background: #fff; color: var(--ink); }
.srow .mv button:disabled { opacity: 0.2; cursor: default; }
.srow .mv .ico { width: 15px; height: 15px; }
.seg-light { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); }
.seg-light button { border: 0; background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.seg-light button:hover { color: var(--ink); }
.seg-light button.on { background: var(--blue); color: #fff; }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ------------------------------------------------------------ team picker -- */
.picker {
  position: fixed;
  z-index: 60;
  width: 400px;
  max-height: min(520px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 31, 77, 0.08);
  overflow: hidden;
  animation: pop 0.14s ease-out;
}
.picker .search { padding: 10px; border-bottom: 1px solid var(--line); }
.picker .list { overflow: auto; padding: 6px; }
.picker .opt {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.picker .opt:hover, .picker .opt.hl { background: var(--soft); }
.picker .opt img { max-width: 30px; max-height: 30px; }
.picker .opt .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 6px; border-radius: 6px; background: var(--field); color: var(--muted); white-space: nowrap; }
.picker .opt .tag.used { background: #fff3cd; color: #8a6200; }
.picker .opt.clear-opt { grid-template-columns: 1fr; color: var(--red-dark); font-weight: 600; }
.picker .empty { padding: 18px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------------- teams -- */
.teams-card { padding: 6px 16px 10px; }
.trow-h, .trow-t { display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 12px; align-items: center; }
.trow-h { padding: 12px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.trow-t { padding: 7px 0; border-bottom: 1px solid var(--line); }
.trow-t:last-child { border-bottom: 0; }
.trow-t .tlogo { width: 36px; height: 36px; display: grid; place-items: center; }
.trow-t .tlogo img { max-width: 100%; max-height: 100%; }
.trow-t .fr b { display: block; font-family: var(--display); font-size: 17px; text-transform: uppercase; }
.trow-t .fr small { display: block; font-size: 11px; color: var(--muted); }
.school { position: relative; }
.school .in-final {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  pointer-events: none;
}
.custom-row { display: grid; grid-template-columns: 40px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) 110px 32px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.custom-row:last-child { border-bottom: 0; }
.search-in { width: 260px; background: rgba(255, 255, 255, 0.95); }

/* ---------------------------------------------------------------- preview -- */
.preview { position: sticky; top: 84px; display: grid; gap: 16px; }
.pv { background: rgba(8, 22, 70, 0.62); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pv-head h3 { margin: 0; font-family: var(--display); font-size: 21px; text-transform: uppercase; line-height: 1; }
.pv-head .live { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; background: var(--red); padding: 3px 6px; border-radius: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); gap: 2px; }
.seg button { border: 0; background: transparent; color: rgba(255, 255, 255, 0.78); padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.seg button.on { background: #fff; color: var(--ink); }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0a1f5c; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4); }
.frame iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.url { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 12px/1.3 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #b9c6ea; word-break: break-all; }
.vs-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #c3cdec; }
.vs-ctl select { flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.1); color: #fff; padding: 0 8px; }
.vs-ctl select option { color: var(--ink); }

/* ----------------------------------------------------------------- modals -- */
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 40, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); padding: 24px; animation: pop 0.18s ease-out; }
.modal.wide { width: min(1500px, 100%); background: #0a1f5c; color: #fff; padding: 16px; }
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.modal h3 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; text-transform: uppercase; line-height: 1; }
.modal p { color: var(--muted); line-height: 1.5; margin: 6px 0 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.set-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.set-sec:first-of-type { border-top: 0; padding-top: 8px; }
.set-sec h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; cursor: pointer; }
.toggle > span { font-weight: 500; }
.toggle small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.toggle input[type='checkbox'] { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #d6dae8; position: relative; cursor: pointer; transition: background 0.15s; flex: none; margin: 0; }
.toggle input[type='checkbox']::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.toggle input[type='checkbox']:checked { background: var(--blue); }
.toggle input[type='checkbox']:checked::after { transform: translateX(18px); }
.lbl-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.prog-row { display: grid; grid-template-columns: minmax(0, 1fr) 124px 150px; gap: 8px; margin-bottom: 6px; }
.halls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ login -- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .card { width: min(380px, 100%); text-align: center; padding: 30px 28px; background: #0c2565; color: #fff; border: 1px solid var(--glass-line); }
.login img.logo { height: 80px; margin: 0 auto 10px; display: block; }
.login img.script { height: 56px; margin: 0 auto 6px; display: block; }
.login p { color: #c3cdec; margin: 8px 0 20px; }
.pin {
  width: 100%;
  height: 64px;
  text-align: center;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  border-radius: 14px;
  border: 1.5px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.pin:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
.login .btn { width: 100%; margin-top: 14px; height: 48px; font-size: 15px; }
.login .err { color: #ff9aa9; font-weight: 600; min-height: 20px; margin-top: 10px; font-size: 13px; }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; }
.toast { padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); animation: pop 0.18s ease-out; }
.toast.err { background: var(--red); color: #fff; }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1500px) {
  .ko-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .preview { position: static; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .brand .script { display: none; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tab { flex: 1; justify-content: center; }
  .layout { padding: 14px; gap: 16px; }
  .ko-grid { grid-template-columns: minmax(0, 1fr); }
  .mhead .grow { display: none; }
  .mhead .meta { flex: 1; }
  .chip-status .lbl { display: none; }
  .trow-h { display: none; }
  .trow-t { grid-template-columns: 36px 1fr; }
  .trow-t .school { grid-column: 1 / -1; }
  .custom-row { grid-template-columns: 36px 1fr 32px; }
  .custom-row > :nth-child(3), .custom-row > :nth-child(4), .custom-row > :nth-child(5) { grid-column: 1 / -1; }
  .search-in { width: 100%; }
  .picker { left: 8px !important; right: 8px; width: auto; }
}
