/* Zovvar Room — admin panel.
   The dark binding of the class room becomes the side rail; the work happens on warm paper.
   Gilt marks where you are and the main action, turquoise what is live or on, rose what is off. */

.page-panel {
  --nav-bg: #17201c;
  --nav-line: #25312c;
  --nav-txt: #ece7db;
  --nav-txt-2: #98a49b;
  --nav-hover: #1e2924;
  --nav-active: #253129;
  --gilt: #dba54a;
  --gilt-hi: #e5b35e;
  --gilt-ink: #2a1b03;
  --gilt-d: #a77a24;
  --gilt-soft: #f6ebd3;
  --bg: #f2eee4;
  --card: #fffdf8;
  --head: #f8f4eb;
  --rule: #e5ded0;
  --rule-2: #eee8dc;
  --ink: #1d2622;
  --ink-2: #56635c;
  --ink-3: #89948d;
  --tile: #1c8677;
  --tile-soft: #dff1ec;
  --rose: #c0524a;
  --rose-soft: #f8e4e1;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.app .icon, .dlg .icon, .pop .icon { width: 19px; height: 19px; }
.page-panel :focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.page-panel button { cursor: pointer; }
.page-panel bdi.ltr, .page-panel .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- frame: side rail on the right, work area beside it */

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.nav {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--nav-bg); color: var(--nav-txt);
}
.nav-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 17px; border-bottom: 1px solid var(--nav-line); }
.nav-brand .icon { width: 34px; height: 34px; color: var(--gilt); stroke-width: 1.4; flex: none; }
.nav-brand b { display: block; font-size: 16px; line-height: 1.4; }
.nav-brand span { display: block; font-size: 12px; color: var(--nav-txt-2); }
.nav-list { display: grid; gap: 3px; padding: 14px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 11px; color: var(--nav-txt-2); text-decoration: none; font-size: 14.5px;
}
.nav-item .icon { width: 20px; height: 20px; }
.nav-item:hover { background: var(--nav-hover); color: var(--nav-txt); }
.nav-item[aria-current="page"] { background: var(--nav-active); color: var(--nav-txt); font-weight: 500; box-shadow: inset -3px 0 0 var(--gilt); }
.nav-item[aria-current="page"] .icon { color: var(--gilt); }
.nav-foot { margin-top: auto; display: grid; gap: 2px; padding: 14px 18px 18px; border-top: 1px solid var(--nav-line); font-size: 12.5px; color: var(--nav-txt-2); }
.nav-foot a { color: var(--nav-txt-2); }
.nav-foot a:hover { color: var(--nav-txt); }
.nav-scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px;
  background: var(--card); border-bottom: 1px solid var(--rule);
}
.crumb { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1; white-space: nowrap; }
.crumb .icon { color: var(--gilt-d); }
.crumb span { color: var(--ink-3); font-weight: 500; font-size: 15px; }
.crumb .sep { color: var(--rule); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.top .nav-toggle { display: none; }
.content { padding: 24px 28px 48px; display: grid; gap: 18px; align-content: start; }

/* ---------- buttons and fields on paper */

.page-panel .app .btn, .page-panel .dlg .btn, .page-panel .pop .btn {
  min-height: 38px; padding: 0 14px; gap: 7px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); white-space: nowrap;
}
.page-panel .app .btn:hover:not(:disabled), .page-panel .dlg .btn:hover:not(:disabled) { border-color: var(--ink-3); }
.page-panel .app .btn.primary, .page-panel .dlg .btn.primary { background: var(--gilt); border-color: var(--gilt); color: var(--gilt-ink); }
.page-panel .app .btn.primary:hover:not(:disabled), .page-panel .dlg .btn.primary:hover:not(:disabled) { background: var(--gilt-hi); border-color: var(--gilt-hi); }
.page-panel .app .btn.danger, .page-panel .dlg .btn.danger { background: var(--rose); border-color: var(--rose); color: #fff; }
.page-panel .app .btn.danger-text, .page-panel .dlg .btn.danger-text { color: var(--rose); }
.page-panel .btn .icon { width: 17px; height: 17px; }
.tb-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2);
}
.tb-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); }
.tb-btn[aria-pressed="true"] { background: var(--gilt-soft); border-color: var(--gilt); color: var(--gilt-d); }
.tb-btn.plain { border-color: transparent; background: transparent; }
.tb-btn .icon { width: 18px; height: 18px; }
.inp, .sel {
  height: 40px; width: 100%; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.sel { padding-inline-end: 8px; }
.inp:focus-visible, .sel:focus-visible { outline: 2px solid var(--gilt); outline-offset: 0; border-color: var(--gilt); }
.inp.ltr { direction: ltr; text-align: left; }

/* ---------- cards, toolbars and tables */

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 1px 2px rgba(29, 38, 34, .04); overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--head); border-bottom: 1px solid var(--rule); }
.card-h h2 { margin: 0; font-size: 15.5px; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--head); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.toolbar .sel { width: auto; min-width: 140px; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 38px; width: min(280px, 100%); padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-3);
}
.search-box:focus-within { border-color: var(--gilt); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13.5px; }
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--gilt-soft); border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.selbar b { margin-inline-end: 6px; }
.filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--card); }
.filters .fld { min-width: 150px; }
.filters .inp, .filters .sel { height: 36px; }
.chipline { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); font-size: 13px; }
.chip-btn[aria-pressed="true"] { background: var(--gilt-soft); border-color: var(--gilt); color: var(--gilt-d); font-weight: 500; }
.tag-filter { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; padding-inline-start: 12px; border-radius: 999px; background: var(--gilt-soft); color: var(--gilt-d); font-size: 13px; }
.tag-filter button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; }
.tag-filter .icon { width: 14px; height: 14px; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  height: 50px; padding: 0 14px; text-align: start; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--head); border-bottom: 1px solid var(--rule);
}
.tbl th .sort { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 4px 0; color: inherit; font: inherit; }
.tbl th .sort .icon { width: 15px; height: 15px; opacity: .45; }
.tbl th[aria-sort] .sort { color: var(--ink); }
.tbl th[aria-sort] .sort .icon { opacity: 1; color: var(--gilt-d); }
.tbl td { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fbf8f1; }
.tbl tbody tr.sel td { background: #fbf2df; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .c-chk { width: 44px; padding-inline-end: 0; }
.tbl .c-num { width: 52px; color: var(--ink-3); }
.tbl .c-act { width: 52px; text-align: end; padding-inline: 6px 10px; }
.tbl input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gilt-d); cursor: pointer; vertical-align: middle; }
.tbl .strong { font-weight: 500; }
.tbl .sub { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.tbl .wrap { white-space: normal; min-width: 180px; }
.tbl .t-empty td { height: 120px; text-align: center; color: var(--ink-3); white-space: normal; }
.tbl .t-loading td { height: 120px; text-align: center; color: var(--ink-3); }
.cellname { display: flex; align-items: center; gap: 10px; }
.fic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fic .icon { width: 17px; height: 17px; }
.fic.slide { background: var(--gilt-soft); color: var(--gilt-d); }
.fic.video { background: #e6e9fb; color: #4c5bb5; }
.fic.audio { background: var(--tile-soft); color: var(--tile); }
.fic.misc { background: var(--rule-2); color: var(--ink-2); }
.st { font-weight: 500; }
.st.on { color: var(--tile); }
.st.off { color: var(--rose); }
.st.dim { color: var(--ink-3); font-weight: 400; }
.st.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tile); margin-inline-end: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--tile-soft); }
.st.rec-live { color: var(--rose); }
.st.rec-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-inline-end: 6px; vertical-align: 0; box-shadow: 0 0 0 3px var(--rose-soft); animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .35; } }
.notice { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--card); font-size: 13.5px; line-height: 1.8; }
.notice.warn { background: var(--rose-soft); border-color: #efc9c4; color: #7c2e28; }
.rec-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 64vh; border-radius: 10px; background: #0d1210; }
.kind { display: inline-block; padding: 0 9px; line-height: 24px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.kind.webinar { background: var(--gilt-soft); color: var(--gilt-d); }
.kind.meeting { background: var(--tile-soft); color: var(--tile); }
.role-chip { display: inline-block; padding: 0 8px; line-height: 22px; border-radius: 7px; font-size: 12.5px; background: var(--rule-2); color: var(--ink-2); }
.role-chip.operator { background: var(--gilt-soft); color: var(--gilt-d); }
.role-chip.presenter { background: var(--tile-soft); color: var(--tile); }

.tfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--head); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 13px; }
.tfoot .size { display: flex; align-items: center; gap: 8px; }
.tfoot .sel { width: auto; height: 36px; min-width: 70px; }
.tpager { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.tpager .sel { min-width: 70px; }
.tpager .tb-btn { border-radius: 10px; width: 36px; height: 36px; }

/* ---------- status page */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile-stat { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.tile-stat .lbl { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.tile-stat .lbl .icon { width: 17px; height: 17px; color: var(--gilt-d); }
.tile-stat .val { font-size: 26px; font-weight: 700; line-height: 1.3; }
.tile-stat .val small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tile-stat.live .val { color: var(--tile); }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { height: 54px; padding: 0 20px; border-bottom: 1px solid var(--rule-2); text-align: start; font-size: 13.5px; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 34%; font-weight: 500; color: var(--ink-2); }
.meter { display: inline-block; width: 140px; height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; vertical-align: middle; margin-inline-start: 10px; }
.meter i { display: block; height: 100%; background: var(--gilt); }
.meter.warn i { background: var(--rose); }
.usage { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); font-size: 12.5px; color: var(--ink-2); }
.usage .meter { width: 80px; margin: 0; }

/* ---------- dialogs and menus */

.dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(18, 24, 21, .28); }
.dlg.small { width: min(420px, calc(100% - 24px)); }
.dlg.wide { width: min(760px, calc(100% - 24px)); }
.dlg::backdrop { background: rgba(14, 19, 17, .48); }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; padding-inline-start: 20px; border-bottom: 1px solid var(--rule); }
.dlg-h h2 { margin: 0; flex: 1; font-size: 16.5px; }
.dlg-body { display: grid; gap: 14px; padding: 18px 20px; max-height: calc(100vh - 200px); overflow-y: auto; }
.dlg-body p { margin: 0; }
.dlg-error { padding: 0 20px 12px; font-size: 14px; }
.dlg-f { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--head); }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.fld .hint, .dlg .hint { font-size: 12.5px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline .inp { flex: 1; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.tgl b { display: block; font-weight: 500; font-size: 14px; }
.tgl small { display: block; color: var(--ink-3); font-size: 12.5px; }
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--rule); cursor: pointer; transition: background-color .15s; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: inset-inline-start .15s; }
.sw:checked { background: var(--tile); }
.sw:checked::after { inset-inline-start: 21px; }
.modes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card:has(input:checked) { border-color: var(--gilt); background: var(--gilt-soft); }
.mode-card b { font-size: 14px; }
.mode-card small { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.copyrow { display: grid; gap: 6px; }
.copyrow > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.copyrow .inline .inp { font-size: 12.5px; }
.list { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; border-bottom: 1px solid var(--rule-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .sel { width: 150px; height: 34px; }
.list-empty { padding: 18px; text-align: center; color: var(--ink-3); }
.suggest { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.suggest button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--rule-2); background: var(--card); text-align: start; font: inherit; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover { background: var(--head); }
.result { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--head); border: 1px solid var(--rule); }
.result ul { margin: 0; padding-inline-start: 18px; max-height: 180px; overflow-y: auto; color: var(--ink-2); font-size: 13px; }
.progress-line { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--gilt); transition: width .2s; }

.pop { position: fixed; z-index: 60; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 14px 36px rgba(18, 24, 21, .16); }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; text-align: start; }
.pop button:hover, .pop button:focus-visible { background: var(--head); }
.pop button .icon { width: 17px; height: 17px; color: var(--ink-2); }
.pop button.danger, .pop button.danger .icon { color: var(--rose); }
.pop hr { border: 0; border-top: 1px solid var(--rule-2); margin: 4px 2px; }

.page-panel #toasts { inset-inline: auto 24px; bottom: 24px; }

/* ---------- small screens: the rail slides in from the right */

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30; width: 260px; transform: translateX(100%); transition: transform .2s; }
  .app.nav-open .nav { transform: none; }
  .app.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(14, 19, 17, .45); }
  .top .nav-toggle { display: grid; }
  .top { padding: 0 14px; }
  .who { display: none; }
  .content { padding: 16px 12px 40px; }
  .crumb > span, .crumb .sep, .crumb > .icon { display: none; }
  .row2, .modes2 { grid-template-columns: 1fr; }
  .search-box { width: 100%; order: 5; }
}
.kvline { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.kvline > span:first-child { min-width: 88px; color: var(--ink-2); }
.kvline .ltr { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- one class: tabs, form and history */
.pagehead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 2px; border-bottom: 1px solid var(--rule); }
.pagehead a.tb-btn { text-decoration: none; }
.tabs2 { display: flex; gap: 4px; align-self: stretch; }
.tab2 { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 500; }
.tab2[aria-selected="true"] { color: var(--ink); }
.tab2[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gilt); }
.tab2 .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rule-2); color: var(--ink-2); font-size: 12px; display: grid; place-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 20px; }
.form-f { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--head); flex-wrap: wrap; }
.form-f .error { font-size: 13.5px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding-top: 4px; }
.checkline input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gilt-d); flex: none; }
.checkline b { display: block; font-weight: 500; font-size: 14px; }
.checkline small { display: block; color: var(--ink-3); font-size: 12.5px; }
.gilt-d { color: var(--gilt-d); }
.inp-icon { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule); background: #fff; color: var(--ink-3); }
.inp-icon:focus-within { outline: 2px solid var(--gilt); border-color: var(--gilt); }
.inp-icon .inp { border: 0; height: 38px; padding: 0; outline: 0; }
.inp-icon .inp:focus-visible { outline: 0; }
.hist { display: grid; }
.hrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; }
.hrow:last-child { border-bottom: 0; }
.hrow .icon { width: 17px; height: 17px; color: var(--gilt-d); }
.hrow span { color: var(--ink-2); flex: 1; }
.hrow b { font-weight: 500; }
.addbox { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box.wide { width: 100%; }
.pop-suggest { position: absolute; top: 44px; inset-inline: 0; z-index: 20; background: var(--card); box-shadow: 0 12px 30px rgba(18, 24, 21, .14); }
.pop-suggest .ltr { color: var(--ink-3); font-size: 12.5px; }
.tnote { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--rule); background: var(--card); color: var(--ink-2); font-size: 13px; }
.tbl .cell-sel { width: 150px; height: 34px; }
@media (max-width: 1000px) {
  .split, .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.search-box input:focus-visible { outline: 0; }
.form-grid > .fld, .form-grid > label.fld { align-content: start; }

/* nothing on a page may make it wider than the screen (grid items would otherwise grow to fit a wide table) */
.content > * { min-width: 0; }
.main { overflow-x: clip; }
@media (max-width: 900px) {
  .nav { height: auto; overflow-y: auto; overscroll-behavior: contain; }
}
