:root {
  --bg: #050506;
  --panel: #101216;
  --text: #eef2ff;
  --muted: #8d97b2;
  --border: #242936;
  --accent: #4d8dff;
  --active-row: #63a1ff;
}
:root[data-theme="light"] {
  --bg: #eceff4;
  --panel: #f6f7fa;
  --text: #1e2435;
  --muted: #5f6b89;
  --border: #d2d8e6;
  --accent: #2563eb;
  --active-row: #1d4ed8;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 5%, #111826 0%, var(--bg) 40%);
  color: var(--text);
  overflow-x: hidden;
}
:root[data-theme="light"] body { background: radial-gradient(circle at 10% 5%, #e2e8f6 0%, var(--bg) 42%); }
.page-wrap { padding: 12px; min-height: 100vh; }
.page-wrap.narrow { max-width: 1100px; margin: 0 auto; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.toolbar.sticky { position: sticky; top: 0; z-index: 14; background: color-mix(in srgb, var(--bg), transparent 4%); backdrop-filter: blur(8px); padding-top: 8px; }
.left-group, .right-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
h1 { margin: 0; font-size: 18px; }
.left-group h1 { font-size: 20px; line-height: 1.1; max-width: 100%; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.menu-wrap { position: relative; }
.menu-toggle { display: none; min-width: 44px; min-height: 40px; font-size: 18px; line-height: 1; }
.menu-panel { display: flex; }
.mobile-controls { display: block; }
.mobile-separator-toggle,
.mobile-menu-toggle { display: none; }
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px);
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
input, select, textarea, button, .btn { background: #0b101a; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 13px; }
:root[data-theme="light"] input,:root[data-theme="light"] select,:root[data-theme="light"] button,:root[data-theme="light"] .btn { background: #f2f4f8; }
button, .btn { cursor: pointer; text-decoration: none; }
.hidden { display: none !important; }
.muted-link { text-decoration: none; color: var(--muted); }
.muted-link:hover { text-decoration: underline; }
.btn.danger { border-color: #ef4444; color: #fecaca; }
.theme-toggle {
  width: 38px;
  min-width: 38px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.icon-tool {
  width: 38px;
  min-width: 38px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.separator-tool {
  color: #cfe0ff;
}
.separator-icon {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 18px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.separator-icon span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 7px rgba(22, 163, 74, 0.55);
}
.separator-icon::after {
  content: "+";
  position: absolute;
  right: -7px;
  top: -8px;
  font-size: 13px;
  line-height: 1;
  color: #eafff2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.tab { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; white-space: nowrap; }
.tab.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tab[draggable="true"] { user-select: none; }
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 198px);
  border-radius: 12px;
}
table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}
th, td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 6px; vertical-align: top; font-size: 12px; }
td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
th { position: sticky; top: 0; background: color-mix(in srgb, var(--panel), #000 5%); z-index: 6; white-space: nowrap; }
thead th:first-child, tbody td:first-child { border-left: 1px solid var(--border); }
thead th { border-top: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }
.editable-cell {
  padding: 0;
}
.cell-display {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
.cell-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  font: inherit;
  line-height: 1.3;
  min-height: 34px;
  border-radius: 0;
  display: none;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
.editable-cell.cell-editing .cell-display {
  display: none;
}
.editable-cell.cell-editing .cell-input {
  display: block;
}
.cell-input:focus { outline: 1px solid var(--accent); border-radius: 4px; }
.row-shot { background: #1f7a39 !important; color: #e9ffe9; }
.row-color-red { background: #7f1d1d; }
.row-color-yellow { background: #725300; }
.row-color-blue { background: #1e3a8a; }
.row-color-purple { background: #5b21b6; }
.row-color-orange { background: #7c2d12; }
.row-color-gray { background: #374151; }
.row-color-pink { background: #831843; }

/* Keep full-row semantic color fill (including editable cells) in both themes. */
tr.row-shot td,
tr.row-color-red td,
tr.row-color-yellow td,
tr.row-color-blue td,
tr.row-color-purple td,
tr.row-color-orange td,
tr.row-color-gray td,
tr.row-color-pink td {
  background-color: inherit;
  color: inherit;
}
tr.row-shot .cell-input,
tr.row-color-red .cell-input,
tr.row-color-yellow .cell-input,
tr.row-color-blue .cell-input,
tr.row-color-purple .cell-input,
tr.row-color-orange .cell-input,
tr.row-color-gray .cell-input,
tr.row-color-pink .cell-input {
  color: inherit;
  background: transparent !important;
}

/* Light theme: stronger contrast for status/marker rows. */
:root[data-theme="light"] .row-shot { background: #2b8e4a !important; color: #ffffff; }
:root[data-theme="light"] .row-color-red { background: #9c3218; color: #ffffff; }
:root[data-theme="light"] .row-color-yellow { background: #9a7400; color: #ffffff; }
:root[data-theme="light"] .row-color-blue { background: #2d53b0; color: #ffffff; }
:root[data-theme="light"] .row-color-purple { background: #6b3fb8; color: #ffffff; }
:root[data-theme="light"] .row-color-orange { background: #9a4d1f; color: #ffffff; }
:root[data-theme="light"] .row-color-gray { background: #5a6272; color: #ffffff; }
:root[data-theme="light"] .row-color-pink { background: #9d3563; color: #ffffff; }
:root[data-theme="light"] .cell-input { background: transparent !important; color: inherit; }
tr.local-active-row td:not(.col-hidden) {
  box-shadow:
    inset 0 2px var(--active-row),
    inset 0 -2px var(--active-row);
}
tr.local-active-row td[data-col="shot"]:not(.col-hidden) {
  box-shadow:
    inset 4px 0 var(--active-row),
    inset 0 2px var(--active-row),
    inset 0 -2px var(--active-row);
}
td.local-active-cell .cell-input {
  outline: 2px solid var(--active-row);
  outline-offset: -2px;
  border-radius: 0;
  background: color-mix(in srgb, var(--active-row), transparent 86%) !important;
}
td.local-active-cell .cell-input:focus {
  outline: 2px solid var(--active-row);
}
.separator-row td.separator-cell {
  padding: 5px 0;
  height: 18px;
  background: color-mix(in srgb, var(--panel), #000 14%);
  border-right: 0;
  cursor: pointer;
}
.separator-line {
  height: 8px;
  width: 100%;
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.55);
}
.separator-menu {
  position: fixed;
  left: var(--separator-menu-left, 12px);
  top: var(--separator-menu-top, 12px);
  z-index: 3100;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
}
.cell-popover {
  position: absolute;
  left: var(--cell-popover-left, 8px);
  top: var(--cell-popover-top, 8px);
  z-index: 3200;
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: min(520px, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--active-row), transparent 20%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel), #000 8%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  touch-action: manipulation;
}
.cell-popover.hidden {
  display: none !important;
}
#cellPopoverInput {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 16px;
  line-height: 1.25;
  touch-action: manipulation;
}
.cell-popover-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
}
.cell-popover-actions .btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
}
.cell-popover-actions .cell-apply {
  color: #eafff2;
  background: #16803d;
  border-color: #20a454;
}
.shot-toggle { transform: scale(1.2); }
.editable-cell,
.cell-input {
  touch-action: manipulation;
}
.ops-col.hidden,
td.row-op.hidden {
  display: table-cell !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: none;
}
.ops-col.hidden > *,
td.row-op.hidden > * {
  display: none !important;
}
th.col-hidden,
td.col-hidden {
  display: table-cell !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: none;
}
th.col-hidden > *,
td.col-hidden > * {
  display: none !important;
}
.row-op button { width: 24px; height: 24px; padding: 0; }
.col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 12;
}
.col-resizer::before {
  content: "";
  position: absolute;
  right: 1px;
  top: 22%;
  width: 1px;
  height: 56%;
  background: color-mix(in srgb, var(--text), transparent 68%);
}
body.col-resizing {
  user-select: none;
  cursor: col-resize;
}
body.col-resizing .cell-input {
  pointer-events: none;
}
.photo-btn {
  min-width: 34px;
  min-height: 30px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
}
.photo-icon {
  font-size: 17px;
  display: inline-block;
}
.photo-badge {
  position: absolute;
  top: 1px;
  right: 3px;
  min-width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  color: #eaf2ff;
  background: rgba(58, 122, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(8, 14, 26, 0.7);
}
.modal { width: min(94vw, 1000px); border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); }
.modal::backdrop { background: rgba(0,0,0,0.5); }
.modal-inner { padding: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; max-height: 65vh; overflow: auto; margin-bottom: 10px; }
.photo-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: color-mix(in srgb, var(--panel), #000 5%);
}
.photo-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; cursor: zoom-in; display: block; }
.photo-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  font-size: 11px;
  background: rgba(6, 10, 18, 0.85);
}
.modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-viewer-image {
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.photo-viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
  padding: 0;
}
.photo-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 10px;
  font-size: 42px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.photo-viewer-nav.prev { left: 14px; }
.photo-viewer-nav.next { right: 14px; }
.photo-viewer-counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(8, 13, 22, 0.75);
  font-size: 12px;
}
.list { max-height: 62vh; overflow: auto; font-size: 12px; }
.list-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 440px at 0% 0%, rgba(68, 137, 255, 0.22), transparent 60%),
    radial-gradient(820px 420px at 100% 100%, rgba(0, 214, 170, 0.18), transparent 62%),
    linear-gradient(130deg, #0b1022, #101a33 45%, #0d1a2b);
}
:root[data-theme="light"] .auth-backdrop {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(68, 137, 255, 0.24), transparent 58%),
    radial-gradient(720px 360px at 100% 100%, rgba(0, 214, 170, 0.16), transparent 60%),
    linear-gradient(120deg, #edf3ff, #f4f8ff 45%, #eef9f5);
}
.auth-card {
  width: min(94vw, 420px);
  background: rgba(12, 21, 38, 0.72);
  border: 1px solid rgba(166, 192, 243, 0.28);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 70px rgba(5, 10, 22, 0.5);
}
:root[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(151, 173, 219, 0.38);
  box-shadow: 0 24px 56px rgba(16, 26, 52, 0.15);
}
.auth-card-wide { width: min(94vw, 460px); }
.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 2px;
}
.auth-brand h1 {
  font-size: 28px;
  letter-spacing: 0.01em;
}
.auth-brand p {
  margin: 4px 0 0;
  color: var(--muted);
}
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(145deg, #58a4ff, #36e0c0);
  color: #05111f;
}
.auth-logo-alt { background: linear-gradient(145deg, #f59e0b, #fb7185); }
.auth-card label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.auth-card input {
  border-radius: 10px;
  border-color: rgba(133, 161, 219, 0.38);
  min-height: 40px;
}
.auth-submit {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(99, 165, 255, 0.48);
  background: linear-gradient(145deg, #2f6dff, #2f89ff);
  color: #f3f8ff;
  font-weight: 600;
}
.auth-link {
  text-align: center;
  color: #9bc3ff;
}
:root[data-theme="light"] .auth-link {
  color: #1f4fc9;
}
.flash-wrap { position: fixed; right: 12px; top: 12px; z-index: 30; display: grid; gap: 6px; }
.flash { background: var(--panel); border: 1px solid var(--border); padding: 8px 10px; border-radius: 8px; }
.inline { display: inline-flex; gap: 4px; margin-right: 4px; }
.simple-table { width: 100%; border-collapse: collapse; }
.simple-table td, .simple-table th { border: 1px solid var(--border); padding: 6px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 8px; margin-bottom: 10px; }
.grid-4 .span-all { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 6px; }
.presence-lock { outline: 2px solid #f59e0b; border-radius: 4px; }
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  :root {
    --mobile-viewport-top: 0px;
    --mobile-controls-height: 92px;
  }
  table {
    min-width: 1200px;
  }
  .page-wrap {
    padding: 6px;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .toolbar {
    margin: 0;
    gap: 0;
    position: static !important;
    right: auto;
    top: auto;
    left: auto;
    width: 0;
    height: 0;
    z-index: 60;
    pointer-events: none;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    overflow: visible;
  }
  .toolbar.sticky {
    position: static !important;
    padding-top: 0;
    top: auto;
    background: transparent;
    backdrop-filter: none;
  }
  .left-group {
    display: none;
  }
  .menu-wrap {
    position: static !important;
    right: auto;
    top: auto;
    z-index: 0;
    pointer-events: none !important;
    overflow: visible !important;
  }
  .menu-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 42px;
    min-height: 42px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #ecf2ff !important;
    background: #0b101a !important;
    border: 1px solid var(--border) !important;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 6px 20px rgba(4, 10, 22, 0.45);
    position: relative;
    z-index: 121;
  }
  .menu-panel {
    display: none;
    position: fixed;
    right: var(--mobile-menu-right, max(6px, env(safe-area-inset-right)));
    top: var(--mobile-menu-top, calc(max(6px, env(safe-area-inset-top)) + 96px));
    width: min(280px, calc(100vw - 18px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 2600;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
  }
  .menu-wrap.open { pointer-events: auto !important; }
  .menu-wrap.open .menu-panel { display: flex; }
  .menu-panel .btn, .menu-panel button {
    width: 100%;
    text-align: left;
  }
  .mobile-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-right: 56px;
    margin: 0 0 4px;
    overflow: visible;
    position: fixed;
    top: calc(var(--mobile-viewport-top, 0px) + 0px);
    left: 6px;
    right: 6px;
    z-index: 2400;
    background: color-mix(in srgb, var(--bg), transparent 3%);
    backdrop-filter: blur(8px);
  }
  .tabs {
    order: 1;
    margin: 0;
    padding: 0;
    flex: 1 1 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .tab { padding: 7px 10px; }
  .filters {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 46px 46px;
    align-items: center;
    flex: 1 1 calc(100% - 56px);
    gap: 6px;
    margin: 0;
  }
  #f_search {
    width: 100%;
    min-width: 0;
    height: 42px;
  }
  #f_shot {
    width: 132px;
    min-width: 132px;
    height: 42px;
  }
  .mobile-separator-toggle,
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #ecf2ff !important;
    background: #0b101a !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 6px 20px rgba(4, 10, 22, 0.45);
  }
  .menu-panel .separator-tool {
    display: none !important;
  }
  .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    position: relative;
    z-index: 1;
    margin-top: calc(var(--mobile-controls-height, 92px) + 4px);
  }
  th, td {
    font-size: 11px;
  }
  .cell-input,
  input,
  textarea,
  select,
  button,
  .btn {
    font-size: 16px;
  }
  .cell-input {
    min-height: 38px;
    padding: 7px 8px;
  }
  .cell-popover {
    width: min(620px, calc(100vw - 12px));
    left: var(--cell-popover-left, 6px);
    top: var(--cell-popover-top, 6px);
  }
  .photo-viewer {
    padding: 12px;
  }
  .photo-viewer-image {
    max-width: 100%;
    max-height: 86vh;
  }
  .photo-viewer-nav {
    width: 38px;
    height: 52px;
    font-size: 34px;
  }
  .photo-viewer-nav.prev { left: 6px; }
  .photo-viewer-nav.next { right: 6px; }
}

@media (max-width: 1100px) and (orientation: landscape), (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .mobile-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 44px;
    z-index: 2400;
  }
  .tabs {
    flex: 0 0 auto;
    overflow: visible;
  }
  .filters {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }
  #f_search {
    width: clamp(220px, 28vw, 420px);
    min-width: 220px;
  }
  .mobile-menu-toggle { flex: 0 0 46px; }
  .table-wrap {
    margin-top: calc(var(--mobile-controls-height, 44px) + 4px);
  }
}
