/* Гараж на час — кабинет партнёра. Мир «Талон ГСК» (DESIGN.md): сталь как фон, бумага как рабочая
   поверхность, PT Mono для значений из базы, фиолетовый штемпель — отметка, жёлтая разметка — действие. */
@font-face { font-family: "PT Sans Narrow"; src: url("../landing/fonts/ptsansnarrow-700-cyrillic.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; src: url("../landing/fonts/ptsansnarrow-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url("../landing/fonts/golostext-var-cyrillic.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("../landing/fonts/golostext-var-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; src: url("../landing/fonts/ptmono-400-cyrillic.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Mono"; src: url("../landing/fonts/ptmono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --steel-950: #141618; --steel-900: #1b1e21; --steel-850: #212529; --steel-800: #282d31;
  --steel-600: #48505a; --steel-400: #8c949c; --steel-200: #c9ced2; --steel-100: #e6e9eb;
  --paper: #ece4cf; --paper-2: #e2d8bf; --paper-edge: #cfc3a4;
  --ink: #1f1d1a; --ink-2: #4b4638; --rule: rgba(31, 29, 26, .28);
  --violet: #5a3e9e; --violet-ink: rgba(90, 62, 158, .88);
  --signal: #e4b726; --signal-deep: #a9840f;
  --alarm: #9b2d20;          /* ошибка на бумаге: красный карандаш, не цвет действия */
  --display: "PT Sans Narrow", "Arial Narrow", "Golos Text", sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --typed: "PT Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sheet-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75), 0 3px 8px -3px rgba(0, 0, 0, .4);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --concrete: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--steel-600) var(--steel-950); }
body {
  margin: 0; min-height: 100vh; color: var(--steel-100);
  background: var(--concrete), var(--steel-850);
  font: 400 1rem/1.55 var(--text); -webkit-font-smoothing: antialiased; caret-color: var(--signal);
}
::selection { background: var(--violet); color: var(--paper); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h1, h2 { text-transform: uppercase; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--signal); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript, .boot { padding: 48px var(--gutter); color: var(--steel-200); }
.typed { font-family: var(--typed); font-variant-numeric: tabular-nums; }

/* ── Шапка: сталь, знак, вкладки-штемпели на стали ── */
.bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  padding: 10px var(--gutter); background: rgba(20, 22, 24, .92);
  border-bottom: 1px solid rgba(201, 206, 210, .1);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.mark { display: inline-flex; align-items: baseline; gap: .38em; text-decoration: none; font: 700 1.32rem/1 var(--display); letter-spacing: .05em; white-space: nowrap; }
.mark-a { color: var(--steel-100); }
.mark-b { color: var(--ink); background: var(--signal); padding: .06em .32em .02em; border-radius: 2px; }
.bar-sub { color: var(--steel-400); font-size: .86rem; letter-spacing: .04em; }
.tabs-steel { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs-steel::-webkit-scrollbar { display: none; }
.tab-s {
  flex: none; min-height: 36px; padding: 6px 11px 4px; border: 1.5px solid var(--steel-600); border-radius: 3px;
  background: transparent; color: var(--steel-100); font: 500 .9rem/1.2 var(--text); cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tab-s:hover { border-color: var(--steel-200); }
.tab-s[aria-current="page"] { background: var(--signal); border-color: var(--signal); color: var(--ink); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.tab-s .dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--violet); vertical-align: 1px; }
.bar-out { background: none; border: 0; color: var(--steel-200); font-size: .9rem; cursor: pointer; padding: 6px 0; border-bottom: 2px solid transparent; }
.bar-out:hover { color: #fff; border-bottom-color: var(--signal); }
@media (max-width: 860px) {
  .bar-sub { display: none; }
  .tabs-steel { order: 3; width: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .bar-out { margin-left: auto; }
}

/* ── Рабочее поле ── */
.main { width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 96px; outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 3vw, 28px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #f3f4f5; }
.page-head p { color: var(--steel-200); max-width: 40rem; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.stack { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Лист бумаги на стали ── */
.sheet {
  position: relative; background: var(--paper-grain), var(--paper); color: var(--ink);
  border-radius: 3px; padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--sheet-shadow);
  animation: sheet-in .28s var(--ease-out) both;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(6px); } }
.sheet + .sheet { margin-top: clamp(16px, 2.4vw, 28px); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.sheet-head h2 { font-size: 1.45rem; letter-spacing: .03em; }
.sheet-head .aside { color: var(--ink-2); font-size: .9rem; }
.sheet-note { color: var(--ink-2); font-size: .94rem; margin: 12px 0 2px; max-width: 62ch; }
.sheet a { color: var(--violet); font-weight: 600; }
.sheet h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }

/* Строки «ключ / значение» — квитанция */
.rows { margin: 0; }
.row { display: grid; grid-template-columns: minmax(7.4rem, 12rem) 1fr; gap: 4px 18px; align-items: baseline; padding: 11px 0 9px; border-bottom: 1px solid var(--rule); }
.row:last-child { border-bottom: 0; }
.k { font: 600 .74rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.v { font-family: var(--typed); font-variant-numeric: tabular-nums; font-size: 1rem; overflow-wrap: anywhere; }
.v.text { font-family: var(--text); }
.v .sub { display: block; font-family: var(--text); font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* Крупные цифры сводки */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; }
.fig { padding: 14px 16px 12px 0; border-right: 1px solid var(--rule); }
.fig + .fig { padding-left: 16px; }
.fig:last-child { border-right: 0; }
.fig-n { font: 700 clamp(2.2rem, 3.6vw, 3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.fig-n small { font-size: .5em; margin-left: 2px; }
.fig-l { font: 600 .74rem/1.25 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 720px) { .figures { grid-template-columns: 1fr 1fr; } .fig:nth-child(2) { border-right: 0; } .fig:nth-child(3) { padding-left: 0; } .fig:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ── Клавиши-штемпели ── */
.press {
  --bg: var(--signal); --fg: var(--ink); --edge: var(--signal-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.15em .62em; border: 0; border-radius: 4px;
  background: var(--bg); color: var(--fg); border-bottom: 3px solid var(--edge);
  font: 600 1rem/1.1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55);
  transition: transform .12s var(--ease-out), border-bottom-width .12s var(--ease-out), background-color .2s, box-shadow .12s;
}
.press:hover { --bg: #f0c63a; }
.press:active { transform: translateY(2px); border-bottom-width: 1px; box-shadow: 0 2px 6px -4px rgba(0, 0, 0, .6); }
.press--ink { --bg: transparent; --fg: var(--ink); --edge: var(--ink); border: 1.5px solid var(--ink); border-bottom-width: 3px; box-shadow: none; }
.press--ink:hover { --bg: rgba(31, 29, 26, .07); }
.press--steel { --bg: transparent; --fg: var(--steel-100); --edge: var(--steel-400); border: 1.5px solid var(--steel-400); border-bottom-width: 3px; box-shadow: none; }
.press--steel:hover { --bg: rgba(255, 255, 255, .06); }
.press--sm { min-height: 40px; padding: .5em .9em .45em; font-size: .94rem; }
.press--wide { width: 100%; }
.press[disabled], .press[aria-busy="true"] { opacity: .55; transform: none; border-bottom-width: 1px; pointer-events: none; }
.press[aria-busy="true"]::after { content: ""; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-act { background: none; border: 0; padding: 0; color: var(--violet); font: 600 .95rem/1.3 var(--text); cursor: pointer; text-decoration: underline dashed 1px; text-underline-offset: .22em; }
.link-act:hover { text-decoration-style: solid; }
.link-act--danger { color: var(--alarm); }

/* Вкладки-штемпели на бумаге */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.tab {
  min-height: 36px; padding: 6px 11px 4px; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent;
  color: var(--ink); font: 500 .9rem/1.2 var(--text); cursor: pointer; transition: background-color .15s, color .15s;
}
.tab:hover { background: rgba(31, 29, 26, .06); }
.tab[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: var(--paper); transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.tab .n { font-family: var(--typed); margin-left: 5px; opacity: .8; }

/* ── Поля: только нижняя линейка ── */
.form { display: grid; gap: 0; }
.field { display: grid; gap: 4px; padding: 13px 0 11px; border-bottom: 1px solid var(--rule); }
.field:last-of-type { border-bottom: 0; }
.field > label, .field > .k { font: 600 .74rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: .84rem; color: var(--ink-2); }
.field .err { font-size: .88rem; color: var(--alarm); font-weight: 600; }
.inp, .sel, .area {
  width: 100%; min-height: 44px; padding: 8px 0 6px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.06rem/1.4 var(--typed); font-variant-numeric: tabular-nums;
  caret-color: var(--violet);
}
.area { font-family: var(--text); font-size: 1rem; line-height: 1.5; resize: vertical; min-height: 92px; }
.inp::placeholder, .area::placeholder { color: rgba(75, 70, 56, .55); }
.inp:focus, .sel:focus, .area:focus { outline: none; border-bottom: 2px solid var(--signal-deep); box-shadow: 0 2px 0 0 var(--signal); }
.inp[aria-invalid="true"] { border-bottom-color: var(--alarm); }
.sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1d1a' stroke-width='1.8'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.pair .field { border-bottom: 1px solid var(--rule); }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }
.inp--code { font-size: 2rem; letter-spacing: .5em; text-align: center; max-width: 11rem; }

/* Галочки и переключатели — штемпельный квадрат */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 12px; height: 7px; border: 2.5px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after { opacity: 1; }
.check b { font-weight: 600; }
.check span { display: block; font-size: .88rem; color: var(--ink-2); }

/* ── Штемпель статуса (без удара в списках) ── */
.stamp {
  display: inline-block; padding: 3px 8px 1px; border: 2px solid var(--violet-ink); border-radius: 4px;
  outline: 1px solid var(--violet-ink); outline-offset: 2px;
  color: var(--violet-ink); font: 700 .82rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase;
  mix-blend-mode: multiply; transform: rotate(-3deg); white-space: nowrap;
}
.stamp--muted { border-color: rgba(75, 70, 56, .65); outline-color: rgba(75, 70, 56, .65); color: rgba(75, 70, 56, .8); }
.stamp--alarm { border-color: rgba(155, 45, 32, .85); outline-color: rgba(155, 45, 32, .85); color: rgba(155, 45, 32, .9); }
.stamp--hit { animation: stamp-hit .42s var(--ease-out) both; }
@keyframes stamp-hit { 0% { opacity: 0; transform: rotate(-3deg) scale(1.7); filter: blur(3px); } 70% { opacity: 1; transform: rotate(-3deg) scale(.96); filter: none; } 100% { transform: rotate(-3deg) scale(1); } }

/* ── Список броней — строки квитанции ── */
.list { margin: 0; padding: 0; list-style: none; }
.li { display: grid; grid-template-columns: 6.6rem 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.li:last-child { border-bottom: 0; }
.li-when { font-family: var(--typed); font-size: .96rem; line-height: 1.3; }
.li-when b { display: block; font-weight: 400; font-size: 1.05rem; }
.li-main { min-width: 0; }
.li-main .t { display: block; font-weight: 600; overflow-wrap: anywhere; }
.li-main .s { display: block; font-size: .88rem; color: var(--ink-2); }
.li-main .s .typed { color: var(--ink); }
.li-end { display: grid; justify-items: end; gap: 6px; text-align: right; }
.li-sum { font-family: var(--typed); font-size: 1.02rem; }
@media (max-width: 560px) { .li { grid-template-columns: 1fr auto; } .li-when { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; } .li-when b { display: inline; } }
.empty { padding: 26px 0 14px; color: var(--ink-2); }
.empty b { display: block; font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.more { margin-top: 12px; }

/* ── Лента талонов: гаражи ── */
.tape { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 360px); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 26px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .35)); scrollbar-width: thin; }
.talon { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper-grain), var(--paper); color: var(--ink); border-right: 2px dotted var(--paper-edge); }
.talon:first-child { border-radius: 3px 0 0 3px; }
.talon:last-child { border-right: 0; border-radius: 0 3px 3px 0; }
.talon-stub { background: var(--paper-2); padding: 16px 20px 12px; border-bottom: 2px dashed var(--paper-edge); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.talon-price { font: 700 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.talon-price small { font-size: .42em; margin-left: 3px; }
.talon-body { padding: 14px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.talon-title { font: 700 1.45rem/1.02 var(--display); overflow-wrap: anywhere; }
.talon-place { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.talon .row { grid-template-columns: 6.2rem 1fr; padding: 7px 0 5px; }
.talon .keys { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; }
.talon--add { justify-content: center; align-items: center; text-align: center; gap: 12px; padding: 28px 22px; background: transparent; color: var(--steel-100); border: 2px dashed var(--steel-600); border-radius: 3px; min-height: 320px; filter: none; }
.talon--add p { color: var(--steel-200); font-size: .94rem; max-width: 18rem; }
.tape .talon--add { margin-left: 18px; }

/* ── Редактор гаража: разделы-квитанции ── */
.editor { display: grid; grid-template-columns: 14rem 1fr; gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.toc { position: sticky; top: 86px; display: grid; gap: 2px; }
.toc a { color: var(--steel-200); text-decoration: none; padding: 7px 0 7px 12px; border-left: 2px solid var(--steel-600); font-size: .95rem; }
.toc a:hover, .toc a[aria-current="true"] { color: #fff; border-left-color: var(--signal); }
.toc .back { margin-bottom: 14px; border-left: 0; padding-left: 0; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; } .toc a { border-left: 0; padding: 4px 0; border-bottom: 2px solid transparent; } .toc .back { width: 100%; margin-bottom: 4px; } }
.savebar {
  position: fixed; bottom: 0; left: 50%; z-index: 30; width: min(1240px, 100% - 2 * var(--gutter));
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px clamp(14px, 2vw, 20px) calc(12px + env(safe-area-inset-bottom)); background: rgba(20, 22, 24, .96);
  border: 1px solid rgba(201, 206, 210, .16); border-bottom: 0; border-top: 2px solid var(--signal);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 3px 3px 0 0;
  transform: translate(-50%, 115%); visibility: hidden; transition: transform .25s var(--ease-out), visibility 0s .25s;
}
.savebar.is-dirty { transform: translate(-50%, 0); visibility: visible; transition: transform .25s var(--ease-out); }
.page-head .st { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--steel-400); border-radius: 2px; font-size: .84rem; letter-spacing: .04em; color: var(--steel-100); }
.savebar p { color: var(--steel-200); font-size: .94rem; }
.savebar p b { color: #fff; font-weight: 600; }
.applied { margin-top: 10px; padding: 10px 0 8px; border-top: 1px solid var(--violet); border-bottom: 1px solid var(--violet); color: var(--ink); font-size: .92rem; }
.applied b { color: var(--violet); }
.applied.warn { border-color: var(--alarm); }
.applied.warn b { color: var(--alarm); }
.mini { margin: 0; padding: 0; list-style: none; }
.mini li { display: flex; align-items: center; gap: 12px; padding: 9px 0 7px; border-bottom: 1px solid var(--rule); }
.mini li:last-child { border-bottom: 0; }
.mini .grow { flex: 1; min-width: 0; }
.mini .dim { opacity: .5; }
.inline-add { display: grid; grid-template-columns: 1.4fr .8fr .9fr auto; gap: 0 14px; align-items: end; margin-top: 6px; }
.inline-add .field { border-bottom: 0; }
.inline-add .press { margin-bottom: 11px; }
@media (max-width: 640px) { .inline-add { grid-template-columns: 1fr 1fr; } .inline-add .press { grid-column: 1 / -1; } }

/* ── Календарь ── */
.cal-nav { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.cal-nav .m { font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; min-width: 11ch; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule); }
.cal .wd { padding: 6px 8px 4px; font: 600 .72rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.day { position: relative; min-height: 74px; padding: 6px 7px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: none; border-top: 0; border-left: 0; text-align: left; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.day:hover { background: rgba(31, 29, 26, .05); }
.day[aria-pressed="true"] { background: rgba(90, 62, 158, .1); box-shadow: inset 0 0 0 2px var(--violet); }
.day .d { font-family: var(--typed); font-size: .95rem; }
.day.today .d { background: var(--ink); color: var(--paper); padding: 0 5px; border-radius: 2px; align-self: flex-start; }
.day .bar-b, .day .bar-x { height: 6px; border-radius: 1px; }
.day .bar-b { background: var(--violet); }
.day .bar-b.wait { background: repeating-linear-gradient(90deg, var(--violet) 0 4px, transparent 4px 7px); }
.day .bar-x { background: repeating-linear-gradient(135deg, var(--ink-2) 0 3px, transparent 3px 6px); }
.day .cnt { margin-top: auto; font-size: .74rem; color: var(--ink-2); }
.day.off { background: rgba(31, 29, 26, .03); cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .86rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 22px; height: 6px; margin-right: 6px; vertical-align: 2px; }
@media (max-width: 560px) { .day { min-height: 54px; padding: 4px; } .day .cnt { display: none; } }

/* ── Вход / регистрация: бланк на стали ── */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(8px, 3vw, 40px); }
.auth-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); color: #f3f4f5; }
.auth-copy .lede { margin-top: 16px; color: var(--steel-100); font-size: 1.1rem; max-width: 32rem; }
.auth-copy ol { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 32rem; }
.auth-copy li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; color: var(--steel-200); }
.auth-copy li::before { content: counter(s, decimal-leading-zero); font: 700 1.5rem/1 var(--display); color: var(--signal); }
.auth-copy li b { color: var(--steel-100); font-weight: 600; display: block; }
.auth .sheet { transform: rotate(-.6deg); }
.steps { display: flex; gap: 6px; margin: 2px 0 4px; }
.steps i { flex: 1; height: 4px; background: var(--paper-edge); }
.steps i.on { background: var(--violet); }
.auth-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.found { margin: 12px 0 2px; padding: 12px 14px; border: 2px solid var(--violet-ink); border-radius: 4px; color: var(--ink); }
.found b { font-family: var(--typed); font-weight: 400; }
.timer { font-family: var(--typed); color: var(--ink-2); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .sheet { transform: none; } .auth-copy ol { display: none; } }

/* Предупреждения на стали */
.notice { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: clamp(16px, 2.4vw, 28px); padding: 14px 18px; border: 1.5px solid var(--signal); border-radius: 3px; color: var(--steel-100); background: rgba(228, 183, 38, .06); }
.notice p { max-width: 52rem; }
.notice b { color: #fff; }

/* ── Тост ── */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 80; max-width: min(92vw, 34rem); transform: translate(-50%, 140%);
  padding: 12px 18px 11px; border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: var(--sheet-shadow);
  border-left: 4px solid var(--violet); font-weight: 500; visibility: hidden;
  transition: transform .28s var(--ease-out), visibility 0s .28s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .28s var(--ease-out); }
.toast.err { border-left-color: var(--alarm); }

/* ── Диалог ── */
dialog.sheet { max-width: min(92vw, 34rem); width: 100%; border: 0; padding: clamp(18px, 3vw, 28px); animation: sheet-in .22s var(--ease-out) both; }
dialog::backdrop { background: rgba(10, 11, 12, .62); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
