/* otab кабинет — мир «Партитура Лабана»
   Бумага, чернила, волосяные линейки. Фактура блока = статус, длина = время,
   кромка/метка = источник. Ноль теней, жёсткие углы, одна серая полоса «сейчас». */

@font-face { font-family:'Golos Text'; font-style:normal; font-weight:400;
  src:url('fonts/GolosText-400-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'Golos Text'; font-style:normal; font-weight:400;
  src:url('fonts/GolosText-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family:'Golos Text'; font-style:normal; font-weight:500;
  src:url('fonts/GolosText-500-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'Golos Text'; font-style:normal; font-weight:500;
  src:url('fonts/GolosText-500-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family:'Golos Text'; font-style:normal; font-weight:600;
  src:url('fonts/GolosText-600-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'Golos Text'; font-style:normal; font-weight:600;
  src:url('fonts/GolosText-600-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400;
  src:url('fonts/JetBrainsMono-400-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400;
  src:url('fonts/JetBrainsMono-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500;
  src:url('fonts/JetBrainsMono-500-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500;
  src:url('fonts/JetBrainsMono-500-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700;
  src:url('fonts/JetBrainsMono-700-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+20BD; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700;
  src:url('fonts/JetBrainsMono-700-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212; }

:root {
  --paper:   #F7F1E6;   /* тёплая бумага партитуры */
  --paper-2: #EEE6D6;   /* глубже: панели, выбор */
  --ink:     #211C15;   /* тёплые чернила текста */
  --ink-2:   #6C6455;   /* поля, вторичный */
  --line:    #CCC3AF;   /* волосяная линейка */
  --line-2:  #E1D9C7;   /* мягкая линейка */
  --now:     rgba(181,84,14,.07);  /* полоса «сейчас» — тёплое стекло */
  --alarm:   #C23B22;   /* единственный чистый красный — офлайн */
  --st-new:     #476E8D;  /* синие чернила: записан */
  --st-cook:    #B5540E;  /* янтарь: готовится, горячее состояние */
  --st-ready:   #4E7A38;  /* зелёные чернила: готов */
  --st-issued-fill: #D9D2C0;
  --st-issued:  #9B9280;  /* кромка выданного */
  --st-cancel:  #A04E3E;  /* кирпичный крест: отменён */
  --bar:        #B7AF9D;  /* закрытый час на станах */
  --now-line:   rgba(181,84,14,.4);
  --alarm-wash: rgba(194,59,34,.05);
  --sans: 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--paper); }

body {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* браузерные поверхности перекрашены в мир */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line); }
*::-webkit-scrollbar-track { background: transparent; }
input, select, textarea { caret-color: var(--ink); }

a { color: inherit; }

/* ── Каркас: навигация как поле партитуры ─────────────────── */

.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }

.margin-nav {
  border-right: 1px solid var(--line);
  padding: 28px 0 24px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  letter-spacing: .02em; padding: 0 24px 26px;
}
.brand .mark { width: 24px; height: 24px; display: block; flex: none;
  background: var(--ink);
  -webkit-mask: url('assets/logo-mark-ink.png') center / contain no-repeat;
  mask: url('assets/logo-mark-ink.png') center / contain no-repeat; }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-section {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 18px 24px 6px;
}

.nav a {
  display: grid; grid-template-columns: 18px 22px 1fr; align-items: center;
  padding: 8px 24px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.nav a .beat { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.nav a .glyph { display: inline-block; width: 9px; height: 9px; border: 1.5px solid var(--ink); background: transparent; }
.nav a:hover { background: var(--paper-2); }
.nav a:hover .glyph { background: var(--line); }
.nav a[aria-current="page"] .glyph { background: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a.is-off .glyph { border-color: var(--alarm); }

.nav-user {
  margin-top: auto; padding: 16px 24px 0; border-top: 1px solid var(--line-2);
}
.nav-user .who { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.nav-user a { display: inline-block; margin-top: 4px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); text-decoration: none; }
.nav-user a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Страница ─────────────────────────────────────────────── */

.page { padding: 34px 44px 44px; max-width: 1280px; min-height: 100vh; display: flex; flex-direction: column; }

.page-h {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); margin-bottom: 30px;
}
.page-h h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; }
.page-h .asof { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ── Капс-подписи и метрика ────────────────────────────────── */

.cap {
  font-size: 11px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-2);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ── Управления: контурные, печатные ───────────────────────── */

.seg { display: inline-flex; border: 1.5px solid var(--ink); }
.seg button {
  font: inherit; font-size: 12.5px; font-weight: 500;
  background: transparent; color: var(--ink);
  border: 0; border-right: 1.5px solid var(--ink);
  padding: 6px 14px; cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--paper-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.btn {
  font: inherit; font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 6px 14px;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--paper-2); }
.btn:active { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn[disabled]:hover { background: transparent; }

.field {
  font: inherit; font-size: 13px; color: var(--ink);
  background: transparent; border: 0;
  border-bottom: 1.5px solid var(--line);
  padding: 5px 2px; min-width: 0;
}
.field:hover { border-color: var(--ink-2); }
.field:focus-visible { outline: 0; border-color: var(--ink); }
select.field { cursor: pointer; }
.field::placeholder { color: var(--ink-2); }

/* ── Нотные блоки: статус = фактура ────────────────────────── */

.nb {
  display: inline-block;
  border: 1.5px solid var(--ink);
  background-repeat: repeat;
  position: relative;
}
.nb-new      { border-color: var(--st-new); }
.nb-cooking  { background-color: var(--st-cook); border-color: var(--st-cook); }
.nb-ready    { border-color: var(--st-ready);
  background-image: repeating-linear-gradient(45deg, var(--st-ready) 0 1.5px, transparent 1.5px 6px); }
.nb-issued   { background-color: var(--st-issued-fill); border-color: var(--st-issued); }
.nb-canceled { border-color: var(--st-cancel);
  background-image:
    repeating-linear-gradient(45deg,  var(--st-cancel) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(-45deg, var(--st-cancel) 0 1.5px, transparent 1.5px 7px); }
.nb-alarm    { border-color: var(--alarm); }

.nb .src {
  position: absolute; top: 2px; left: 4px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1;
  color: var(--paper); letter-spacing: .05em;
}
.nb-new .src { color: var(--st-new); }
.nb-ready .src { color: var(--st-ready); }
.nb-issued .src { color: var(--st-issued); }
.nb-canceled .src { color: var(--st-cancel); }
.nb-new .src, .nb-ready .src, .nb-issued .src, .nb-canceled .src {
  background: var(--paper); padding: 0 1px;
}

/* мини-полоса в строке заказа */
.strip { display: flex; gap: 3px; align-items: flex-end; }
.strip .nb { width: 13px; height: 13px; }

/* ── Стан: вертикальное время ──────────────────────────────── */

.staff {
  position: relative;
  display: grid;
  column-gap: 0;
}
.staff .rule { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }

.now-band {
  position: absolute; left: 0; right: 0; height: 22px;
  background: var(--now);
  border-top: 1px solid var(--now-line);
  pointer-events: none;
}
.now-band .tag {
  position: absolute; right: 0; top: -18px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink);
  background: var(--paper); padding: 1px 4px;
}

@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes creep { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.score-now { animation: creep 120s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Таблицы ───────────────────────────────────────────────── */

.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); text-align: left; padding: 0 12px 8px 0;
  border-bottom: 1.5px solid var(--ink);
}
.tbl td {
  padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-2);
  vertical-align: baseline;
}
.tbl .r { text-align: right; padding-right: 0; }

/* ── Пустые состояния ──────────────────────────────────────── */

.empty {
  border: 1.5px dashed var(--line); padding: 26px 20px;
  color: var(--ink-2); font-size: 13px; text-align: center;
}

.foot-note {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  display: flex; gap: 18px; flex-wrap: wrap;
}

}

/* ── Обзор: итог дня ───────────────────────────────────────── */

.overview-grid { display: grid; grid-template-columns: 300px 1fr 330px; gap: 48px; align-items: start; }

.kpi-hero { font-size: 54px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.metric-rows { border-top: 1.5px solid var(--ink); }
.mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.mrow .num { font-size: 15px; }
.kpi-note { font-size: 12px; color: var(--ink-2); margin-top: 10px; max-width: 36ch; line-height: 1.45; }

/* ── Обзор: стан дня ───────────────────────────────────────── */

.day-staff { position: relative; padding-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.hrow { display: grid; grid-template-columns: 46px 1fr 42px; align-items: center; gap: 12px; height: 28px; }
.hlabel { font-size: 11px; color: var(--ink-2); text-align: right; }
.hbar { height: 20px; display: flex; }
.hbar .bar { display: block; height: 100%; background: var(--bar); }
.hbar .bar.cur { background: var(--st-cook); }
.hrow.future { opacity: .5; }
.hrow.future .hbar { border-bottom: 1.5px dashed var(--line); }
.hcount { font-size: 12.5px; }
.hrow.peak .hcount { font-weight: 700; }
.hrow.peak .hlabel { color: var(--ink); }
.staff-note { font-size: 12px; color: var(--ink-2); margin-top: 14px; max-width: 46ch; }

/* ── Обзор: лента заказов и точки ──────────────────────────── */

.feed { list-style: none; }
.feed a { display: grid; grid-template-columns: 50px 42px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 6px 9px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.feed a:hover { background: var(--paper-2); }
.onum { font-size: 14.5px; font-weight: 500; }
.otime { font-size: 12px; color: var(--ink-2); }
.osum { font-size: 13px; }

.points-mini { display: flex; flex-direction: column; gap: 8px; }
.pm-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px;
  padding: 10px 10px 10px 0; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.pm-row:hover { background: var(--paper-2); }
.pm-name { font-weight: 600; font-size: 14px; }
.pm-meta { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.cap.live { color: var(--ink); }
.cap.off { color: var(--alarm); font-weight: 700; letter-spacing: .1em; }
.pm-row.is-off { outline: 1.5px solid var(--alarm); outline-offset: -1.5px; padding-left: 10px;
  background: var(--alarm-wash); }

/* ── Заказы: фильтры и список ──────────────────────────────── */

.filters { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.filters .cap { line-height: 16px; white-space: nowrap; }
.filters .field { min-height: 30px; }
.filters .f { display: flex; flex-direction: column; gap: 5px; }
.filters .f.grow { flex: 1; min-width: 180px; }

.orders-grid { display: grid; grid-template-columns: minmax(400px, 5fr) 7fr; gap: 48px; align-items: start; }

.order-list { list-style: none; border-top: 1.5px solid var(--ink); }
.oly { display: grid; grid-template-columns: 10px 52px 42px 1fr 78px; align-items: center; gap: 10px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 11px 8px 11px 0; cursor: pointer; }
.oly:hover { background: var(--paper-2); }
.oly .mark { display: inline-block; width: 9px; height: 9px; border: 1.5px solid transparent; }
.oly[aria-current="true"] { background: var(--paper-2); }
.oly[aria-current="true"] .mark { background: var(--ink); border-color: var(--ink); }
.oly[aria-current="true"] .onum { font-weight: 700; }
.oly .opt { font-size: 12px; color: var(--ink-2); }

.more-row { padding: 16px 0 0; display: flex; justify-content: center; }

/* ── Партитура заказа ──────────────────────────────────────── */

.score-panel { border: 1.5px solid var(--ink); padding: 22px 26px 24px; }
.score-h { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2); padding-bottom: 14px; }
.score-h .onum-big { font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.score-h .st { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.score-h .sum { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 18px; }
.score-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0 18px; }
.score-actions .qlink { font-family: var(--mono); font-size: 12px; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.score-actions .qlink:hover { color: var(--ink); border-color: var(--ink); }

.score-wrap { position: relative; padding-left: 58px; overflow-x: auto; }
.score-grid { display: grid; column-gap: 0; }
.sg-axis { position: relative; }
.sg-axis::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ink); }
.sg-colrules { position: absolute; inset: 0; display: grid; pointer-events: none; }
.sg-gridlines { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 29px, var(--line-2) 29px 30px); }
.sg-colrules span { border-left: 1px solid var(--line-2); }
.sg-head { display: grid; gap: 0; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.sg-head .dish { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); text-align: center; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-body { position: relative; display: grid; margin-top: 16px; }
.sg-body.is-closed { border-top: 3px double var(--ink); }
.sg-body .nb { margin: 1.5px 6px; }

.dish-roll { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px;
  font-size: 12px; color: var(--ink-2); }
.dish-roll b { font-weight: 700; color: var(--ink); margin-right: 2px; }
.sg-head .dish.num { font-family: var(--mono); font-weight: 700; color: var(--ink); letter-spacing: 0; }

.time-ruler { position: absolute; left: -8px; transform: translateX(-100%);
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--ink-2);
  white-space: nowrap; }
.time-ruler.is-now { color: var(--ink); font-weight: 700; }

.legend { display: flex; gap: 16px 22px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 14px; }
.legend .li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.legend .li .nb { width: 13px; height: 13px; }
.legend .srcs { font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin-left: auto; }

/* ── Точки ─────────────────────────────────────────────────── */

.point-band { border: 1.5px solid var(--ink); padding: 20px 26px; margin-bottom: 18px; }
.point-band .pb-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.point-band .pb-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.point-band .pb-slug { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.point-band .pb-state { margin-left: auto; }
.point-band .pb-body { display: grid; grid-template-columns: 1fr 260px; gap: 22px; padding-top: 14px; align-items: start; }
.point-band .pb-metrics { display: flex; flex-direction: column; }
.point-band .mrow { font-size: 13px; }
.point-band .pb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.point-band.is-off { border-color: var(--alarm); }
.point-band.is-off .pb-state { color: var(--alarm); }
.mini-staff { border-left: 2px solid var(--ink); padding-left: 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; align-items: end; height: 64px; }
.mini-staff .msb { width: 100%; background: var(--bar); }
.mini-staff .msb.cur { background: var(--st-cook); }
.mini-staff .void { width: 100%; height: 100%; border: 1.5px dashed var(--alarm); }
.mini-staff-cap { font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 1020px) {
  .point-band .pb-body { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .shell { display: block; }
  .margin-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 6px 14px; padding: 12px 20px;
    border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .brand { padding: 0 14px 0 0; font-size: 15px; }
  .brand .mark { width: 20px; height: 20px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .nav a { grid-template-columns: 12px 1fr; padding: 10px 12px; font-size: 13px; }
  .nav a .beat { display: none; }
  .nav a .glyph { width: 8px; height: 8px; }
  .nav-section { padding: 0 6px; font-size: 11px; letter-spacing: .1em; align-self: center; white-space: nowrap; }
  .nav-user { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: baseline; gap: 10px; }
  .nav-user .who { font-size: 11px; }
  .page { padding: 22px 20px 48px; }
  .overview-grid { grid-template-columns: 1fr; gap: 34px; }
  .orders-grid { grid-template-columns: 1fr; gap: 30px; }
  .seg button { padding: 6px 10px; }
  .foot-note span { max-width: 100%; }


/* ── Палитры-кандидаты (переключатель внизу слева, мок-only) ── */

/* базовая, от onlinetab.ru: белый фон, лазурь #229BD7, красный #C20D0D */
[data-palette="otab"] {
  --paper:   #FBFCFD;
  --paper-2: #EDF1F4;
  --ink:     #1B1B1B;
  --ink-2:   #5D6B76;
  --line:    #CFD8DE;
  --line-2:  #E3E9ED;
  --now:     rgba(27,143,196,.08);
  --now-line: rgba(27,143,196,.4);
  --alarm:   #C20D0D;
  --alarm-wash: rgba(194,13,13,.05);
  --st-new:     #1873A6;
  --st-cook:    #0F7FB5;
  --st-ready:   #1E7E34;
  --st-issued-fill: #E9ECEE;
  --st-issued:  #98A4AC;
  --st-cancel:  #C20D0D;
  --bar:        #5C9BC2;
}

[data-palette="board"] {
  --paper:   #241C13;
  --paper-2: #2E2418;
  --ink:     #F1E7D2;
  --ink-2:   #A6946F;
  --line:    #4E4030;
  --line-2:  #3C3122;
  --now:     rgba(224,123,40,.10);
  --now-line: rgba(224,123,40,.45);
  --alarm:   #E25436;
  --alarm-wash: rgba(226,84,54,.08);
  --st-new:     #86ACCB;
  --st-cook:    #E07B28;
  --st-ready:   #83B15E;
  --st-issued-fill: #453A29;
  --st-issued:  #8A7B5F;
  --st-cancel:  #C97761;
  --bar:        #574834;
}

[data-palette="mint"] {
  --paper:   #F3F6F1;
  --paper-2: #E7EEE4;
  --ink:     #1D2723;
  --ink-2:   #5D6B60;
  --line:    #C2CEC2;
  --line-2:  #DBE4D9;
  --now:     rgba(20,120,80,.07);
  --now-line: rgba(20,120,80,.38);
  --alarm:   #C23B22;
  --alarm-wash: rgba(194,59,34,.05);
  --st-new:     #40718F;
  --st-cook:    #C96A15;
  --st-ready:   #2E8A54;
  --st-issued-fill: #D6DED2;
  --st-issued:  #97A598;
  --st-cancel:  #A5503E;
  --bar:        #B4C2B4;
}

[data-palette="sand"] {
  --paper:   #F6EDDD;
  --paper-2: #EFE3CD;
  --ink:     #262017;
  --ink-2:   #6E6250;
  --line:    #D0C1A4;
  --line-2:  #E4D8C0;
  --now:     rgba(194,78,31,.08);
  --now-line: rgba(194,78,31,.42);
  --alarm:   #B8331F;
  --alarm-wash: rgba(184,51,31,.05);
  --st-new:     #4C6E8C;
  --st-cook:    #C24E1F;
  --st-ready:   #6E7D34;
  --st-issued-fill: #E0D4B8;
  --st-issued:  #A99C7E;
  --st-cancel:  #8A4A38;
  --bar:        #C4B394;
}

/* переключатель палитр мока */
.pal-bar {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1.5px solid var(--ink);
  padding: 7px 10px;
}
.pal-bar .cap { margin-right: 2px; }
.pal-bar button {
  width: 20px; height: 20px; border: 1.5px solid var(--ink);
  cursor: pointer; padding: 0; position: relative; background: transparent;
}
.pal-bar button span { position: absolute; inset: 2px; }
.pal-bar button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pal-bar button:hover { opacity: .8; }
