@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --espresso: #3d2a1e;
  --dark: #7f5539;
  --brown: #9c6644;
  --mid: #b08968;
  --tan: #ddb892;
  --sand: #e6ccb2;
  --light: #ede0d4;
  --cream: #f3ece5;
  --paper: #fbf7f3;
  --white: #ffffff;
  --ink: #2b211b;
  --muted: #7a6656;
  --line: #e4d5c6;
  --line-strong: #cdb39b;

  --ok-bg: #dcefd3; --ok-fg: #2f6b1f; --ok-dot: #6aa84f;
  --miss-bg: #f8d7d4; --miss-fg: #b42318;
  --new-bg: #fbe0c4; --new-fg: #8a4a0b;
  --vac-bg: #dbe8f6; --vac-fg: #1c4587;
  --off-bg: #e5dff1; --off-fg: #4a2f8a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(61, 42, 30, .04), 0 8px 24px -12px rgba(61, 42, 30, .18);
  --shadow-pop: 0 18px 50px -12px rgba(61, 42, 30, .35), 0 2px 6px rgba(61, 42, 30, .08);
  --display: 'Comfortaa', ui-rounded, system-ui, sans-serif;
  --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: var(--espresso);
  color: #f3e6da;
  padding: 22px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brown), var(--dark)); font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-title { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 11.5px; color: #c4ab95; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: #e6d3c2; text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.nav a svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: #f3e6da; color: var(--espresso); }
.nav a.active svg { opacity: 1; }
.nav .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 99px; }
.nav a.active .count { background: var(--sand); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.sync-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.sync-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.sync-sub { font-size: 11.5px; color: #c4ab95; margin-top: 4px; line-height: 1.35; word-break: break-word; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: #8f7a68; flex: none; }
.dot.ok { background: #7dc06a; box-shadow: 0 0 0 3px rgba(125,192,106,.2); }
.dot.wait { background: #f0b45b; animation: pulse 1.2s infinite; }
.dot.err { background: #f0675b; }
@keyframes pulse { 50% { opacity: .35; } }
.sync-actions { display: flex; gap: 6px; margin-top: 10px; }
.btn-fix {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 9px; padding: 8px 10px; font-weight: 700; font-size: 12.5px;
  background: var(--tan); color: var(--espresso);
}
.btn-fix:hover { background: #e8c7a2; }
.btn-ghost-dark { border: 1px solid rgba(255,255,255,.14); background: transparent; color: #f3e6da; border-radius: 9px; padding: 8px 10px; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.06); }
.btn-fix svg, .btn-ghost-dark svg { width: 15px; height: 15px; }

.user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 12.5px; }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--brown); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user .name { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user a { color: #c4ab95; font-size: 11.5px; text-decoration: none; }
.user a:hover { color: #fff; }

.main { min-width: 0; padding: 26px 32px 60px; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin-top: 6px; font-weight: 500; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 9px 14px;
  border: 1px solid var(--line-strong); background: var(--white); font-weight: 700; font-size: 13px;
  transition: background .15s, border-color .15s, transform .05s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn.primary:hover { background: #6d4830; }
.btn.danger { color: var(--miss-fg); border-color: #f0c2bd; }
.btn.danger:hover { background: var(--miss-bg); }
.btn.small { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 6px; }
.kpi-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent { background: linear-gradient(150deg, var(--brown), var(--dark)); color: #fff; border-color: transparent; }
.kpi.accent .kpi-label, .kpi.accent .kpi-note { color: #f1dccb; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { position: relative; flex: 0 1 280px; }
.search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--white); padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.chip.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.legend { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- shift cards ---------- */
.shifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 760px), 1fr)); gap: 16px; }
.shift { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shift-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--light); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.shift-no {
  font-family: var(--display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px;
}
.shift-no .badge-time { font-family: var(--ui); font-size: 12px; font-weight: 800; color: var(--dark); background: var(--white); border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 99px; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; }
.kind svg { width: 13px; height: 13px; }
.kind.k-night { background: #3d2a1e; color: #f3e6da; }
.kind.k-day { background: #fbe9c9; color: #8a5a10; }
.people { display: flex; gap: 6px; flex-wrap: wrap; }
.person-chip { height: 28px; line-height: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.person-chip .role { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #fff; background: var(--mid); border-radius: 99px; padding: 2px 6px; }
.person-chip.sub .role { background: var(--tan); color: var(--espresso); }
.person-chip.is-empty { color: var(--muted); font-weight: 600; border-style: dashed; }
.person-chip:hover { border-color: var(--mid); }
.shift-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rate { font-weight: 800; font-size: 12.5px; background: var(--ok-bg); color: var(--ok-fg); padding: 4px 9px; border-radius: 8px; border: 0; }
.shift-total { font-family: var(--display); font-weight: 700; font-size: 15px; }
.shift-total small { font-family: var(--ui); font-weight: 600; color: var(--muted); font-size: 11.5px; margin-right: 4px; }

.grid { width: 100%; border-collapse: separate; border-spacing: 0; }
.grid th { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); background: var(--white); }
.grid th.left, .grid td.left { text-align: left; }
.grid th .date { display: block; width: fit-content; margin: 2px auto 0; font-size: 11px; color: var(--ink); letter-spacing: 0; margin-top: 1px; font-weight: 700; }
.grid th.today { color: var(--dark); }
.grid th.today .date { background: var(--dark); color: #fff; border-radius: 6px; padding: 1px 5px; }
.grid td { padding: 5px 4px; border-bottom: 1px solid #f1e7dd; text-align: center; vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid tr:hover td { background: #fdfaf7; }
.grid td.idx { width: 34px; color: var(--muted); font-weight: 700; font-size: 12px; }
.who { display: flex; flex-direction: column; min-width: 0; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.who:hover { background: var(--cream); }
.who b { font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.who span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid td.pay { font-weight: 800; font-size: 13.5px; width: 76px; }
.grid td.flags { width: 120px; }
.flagset { display: inline-flex; gap: 4px; }
.flag { font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--cream); color: var(--muted); }
.flag.warn { background: var(--miss-bg); color: var(--miss-fg); }
.flag.vac { background: var(--vac-bg); color: var(--vac-fg); }
.flag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.flag.todo { background: var(--new-bg); color: var(--new-fg); }

.day {
  width: 100%; min-width: 58px; height: 32px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 800; font-size: 12.5px; background: #faf6f2; color: #b9a492;
  display: grid; place-items: center; transition: transform .08s, box-shadow .12s;
}
.day:hover { box-shadow: 0 0 0 2px var(--tan); }
.day:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--dark); }
.day.ok { background: var(--ok-bg); color: var(--ok-fg); }
.day.miss { background: var(--miss-bg); color: var(--miss-fg); }
.day.new { background: var(--new-bg); color: var(--new-fg); font-size: 11.5px; }
.day.vac { background: var(--vac-bg); color: var(--vac-fg); font-size: 11.5px; }
.day.off { background: var(--off-bg); color: var(--off-fg); font-size: 11.5px; }
.day.today-col { border-color: var(--tan); }
.add-row td { padding: 8px 10px; }
.add-btn { border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); font-weight: 700; border-radius: 9px; padding: 7px 12px; width: 100%; text-align: left; display: flex; align-items: center; gap: 7px; }
.add-btn:hover { background: var(--cream); color: var(--ink); }
.add-btn svg { width: 15px; height: 15px; }
.empty-shift { padding: 14px; color: var(--muted); font-size: 13px; }

/* ---------- popover ---------- */
.pop { position: fixed; z-index: 50; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 10px; width: 236px; }
.pop-title { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 4px 8px; }
.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pop-grid .day { height: 34px; cursor: pointer; }
.pop-input { display: flex; gap: 6px; margin-top: 8px; }
.pop-input input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 9px; }
.pop-hint { font-size: 11px; color: var(--muted); margin: 8px 4px 0; }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(43, 33, 27, .38); z-index: 40; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); z-index: 41; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; background: var(--white); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.drawer-body { padding: 18px 22px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--white); }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; animation: fade .15s; }
.modal.narrow { width: min(460px, calc(100vw - 32px)); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea { border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; background: var(--white); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .pop-input input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(127, 85, 57, .15); }
.field .hint { font-size: 12px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 34px; height: 36px; font-size: 16px; font-weight: 800; color: var(--dark); }
.stepper button:hover { background: var(--cream); }
.stepper span { flex: 1; text-align: center; font-weight: 800; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.toggle input { display: none; }
.toggle .track { width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--dark); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-strip .day { min-width: 0; }
.week-strip .wd { font-size: 10.5px; text-align: center; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.stat-line { display: flex; gap: 10px; }
.stat-line > div { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat-line b { display: block; font-family: var(--display); font-size: 18px; }
.stat-line span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.history-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.section-label { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; margin: 4px 0 -6px; }

/* ---------- generic tables / panels ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--light); }
.panel-head h3 { margin: 0; font-family: var(--display); font-size: 16px; }
.panel-head .sub { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 14px 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 6px 10px; border-bottom: 1px solid #f1e7dd; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { white-space: nowrap; }
.two-col.wide-left { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.disc-table .cell-input.mono { min-width: 160px; }
.disc-table .cell-input[data-bind$=':nick'] { min-width: 130px; }
.disc-table select.cell-input { min-width: 112px; }
.disc-table input[type=date] { min-width: 132px; }
.table .group-cell { font-family: var(--display); font-weight: 700; color: var(--dark); background: var(--cream); width: 72px; text-align: center; }
.cell-input { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; min-width: 60px; }
.cell-input:hover { border-color: var(--line); background: var(--white); }
.cell-input:focus { outline: none; border-color: var(--dark); background: var(--white); }
.cell-input.mono { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.cell-input.money { text-align: right; font-weight: 800; max-width: 110px; }
.cb { width: 18px; height: 18px; accent-color: var(--dark); cursor: pointer; }
.totals-row td { background: var(--cream); font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 22px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.notice.err { background: var(--miss-bg); border-color: #f0c2bd; color: var(--miss-fg); }
.notice.warn { background: var(--new-bg); border-color: #f2c99a; color: var(--new-fg); }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; max-height: 300px; overflow: auto; }

/* ---------- fix docs modal ---------- */
.fix-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fix-step { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fix-step b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fix-step b i { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--dark); color: #fff; font-style: normal; font-size: 11.5px; }
.fix-step p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sheet-preview-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 360px; background: #e6ccb2; }
.sheet-preview { border-collapse: collapse; font-family: var(--display); transform-origin: 0 0; }
.sheet-preview td { padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: clip; text-align: center; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-pop); font-weight: 600; font-size: 13px; animation: fade .2s; max-width: min(560px, 90vw); }
.toast.err { background: #8f1d14; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; z-index: 30; }
  .brand, .side-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 4px; }
  .nav a .count { display: none; }
  .main { padding: 18px 16px 90px; }
  .shift { overflow-x: auto; }
  .grid { min-width: 720px; }
  .fix-steps { grid-template-columns: 1fr; }
  .legend { margin-left: 0; }
}
