:root {
  /* «Как в Telegram»: цвета фона и текста — из темы Telegram */
  --bg: var(--tg-theme-secondary-bg-color, #f1f3f6);
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #11161d);
  --hint: var(--tg-theme-hint-color, #7a8494);
  --line: color-mix(in srgb, var(--hint) 22%, transparent);
  --accent: #0e9f5b;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-text: var(--accent);
  --day: #e8930c;
  --night: #5b5bd6;
  --morning: #0f9bb5;
  --warn: #d4542c;
  --toast: #1d2733;
  --shadow: rgba(0,0,0,.08);
  --kind: var(--day);
  --radius: 16px;
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  color-scheme: light;
}

/* выбрано «Светлая» — свои цвета, тема Telegram не влияет */
:root[data-theme="light"] {
  --bg: #f1f3f6;
  --card: #ffffff;
  --text: #11161d;
  --hint: #7a8494;
}

/* тёмная: «Тёмная» в профиле, или «Как в Telegram» при тёмной теме Telegram/телефона (класс dark) */
:root.dark {
  --line: color-mix(in srgb, var(--hint) 26%, transparent);
  --accent: #1fa463;
  --accent-text: #3ccf8b;
  --accent-soft: color-mix(in srgb, #2fcf85 16%, transparent);
  --day: #f4a742;
  --night: #9393ff;
  --morning: #3cc4dc;
  --warn: #ff7b5c;
  --toast: #2b3644;
  --shadow: rgba(0,0,0,.4);
  color-scheme: dark;
}
:root.dark:not(.in-tg), :root[data-theme="dark"] {
  --bg: #0e1116;
  --card: #181d24;
  --text: #e8ecf1;
  --hint: #8a94a3;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }

.screen { min-height: 100vh; padding-bottom: calc(24px + var(--safe-bottom)); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(var(--safe-top) + 12px) 16px 10px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px;
}
.title { font-size: 20px; font-weight: 700; }
.subtitle { font-size: 12.5px; color: var(--hint); }

.dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); text-align: center; min-width: 62px;
}
.date small { display: block; font-size: 11px; color: var(--hint); text-transform: uppercase; }
.date b { font-size: 15px; }
.date.today small { color: var(--accent-text); font-weight: 700; }
.date.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.date.active small { color: rgba(255,255,255,.85); }

.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--line); margin-bottom: 10px; }
.tabs button { padding: 8px 4px; border-radius: 9px; font-size: 13.5px; color: var(--hint); }
.tabs button b { color: inherit; }
.tabs button.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; fill: var(--hint); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font: inherit; padding: 10px 0; min-width: 0; }
.search input::placeholder { color: var(--hint); }

/* ---------- сетка маршрутов ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; padding: 14px 16px; }
.cell {
  background: var(--card); border-radius: 14px; padding: 10px 4px 8px; text-align: center;
  border: 1px solid var(--line); transition: transform .08s;
}
.cell:active { transform: scale(.95); }
.cell .c { font-size: 18px; font-weight: 700; color: var(--kind); }
.cell .t { font-size: 11.5px; color: var(--hint); margin-top: 2px; white-space: nowrap; }
.cell.mine { border-color: var(--kind); box-shadow: inset 0 0 0 1px var(--kind); }

.found { padding: 14px 16px 0; display: grid; gap: 8px; }
.found-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; width: 100%; }
.found-row .c { font-weight: 700; font-size: 17px; min-width: 48px; color: var(--kind); }
.found-row .w { font-size: 13px; color: var(--hint); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.found-row .w b { color: var(--text); }

#mine:not(:empty) { padding: 14px 16px 0; }
.mine-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border-radius: var(--radius); padding: 12px 14px; border: 1px solid var(--line);
}
.mine-card .badge { font-size: 22px; font-weight: 800; color: var(--kind); min-width: 56px; }
.mine-card .info { flex: 1; font-size: 13px; color: var(--hint); }
.mine-card .info b { color: var(--text); font-size: 15px; display: block; }
.mine-card .arrow { color: var(--hint); font-size: 22px; }

.empty { margin: 40px 24px; text-align: center; color: var(--hint); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ---------- карточка маршрута ---------- */
.top-route { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.back, .star { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex: none; }
.back svg, .star svg { width: 22px; height: 22px; fill: var(--text); }
.star svg { fill: none; stroke: var(--hint); stroke-width: 1.8; stroke-linejoin: round; }
.star.on svg { fill: #f5b301; stroke: #f5b301; }
.route-head { flex: 1; min-width: 0; }
.route-code { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--kind); }
.route-kind { font-size: 13px; color: var(--hint); }

.route { padding: 14px 16px; display: grid; gap: 12px; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--hint); font-weight: 600; }

.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crew-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, rgba(127,127,127,.2)); font-size: 14px; line-height: 1.45; }
.crew-line small { display: block; color: var(--hint); font-size: 12px; margin-bottom: 2px; }
.crew-phones { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 4px; }
.crew-phones a { color: var(--link, #2a7de1); text-decoration: none; font-weight: 600; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.stat small { display: block; font-size: 11.5px; color: var(--hint); text-transform: uppercase; letter-spacing: .3px; }
.stat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13px; }
.stat.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat.wide b { font-size: 18px; }

/* таймлайн */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.step { position: relative; padding: 2px 0 14px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--kind);
}
.step.rest::before { border-color: var(--night); background: var(--night); }
.step.end::before { background: var(--kind); }
.step .time { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.step .time em { font-style: normal; font-weight: 500; color: var(--hint); font-size: 14px; }
.step .what { font-size: 14px; }
.step .place { color: var(--hint); font-size: 13.5px; }
.step .note { font-size: 12.5px; color: var(--hint); margin-top: 4px; }

.work-text { font-size: 14.5px; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 6px 0 8px; }
.trains { display: grid; gap: 6px; }
.train { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.train .num { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 46px; }
.train .meta { flex: 1; font-size: 13px; color: var(--hint); min-width: 0; }
.train .meta b { color: var(--text); font-weight: 600; }
.train .role { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; font-weight: 600; }
.train.from .role, .train.prepare .role { background: color-mix(in srgb, var(--hint) 16%, transparent); color: var(--hint); }

.kind-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--kind) 16%, transparent); color: var(--kind); margin-left: 6px; vertical-align: 2px; }
.link-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--kind) 10%, transparent); color: var(--text); font-weight: 600; }
.link-btn span { color: var(--hint); font-weight: 400; font-size: 13px; }

.legend { font-size: 12.5px; color: var(--hint); display: grid; gap: 6px; }
.legend b { color: var(--text); }
.meta-line { font-size: 12px; color: var(--hint); text-align: center; padding: 4px 0 0; }

.kind-day { --kind: var(--day); }
.kind-night { --kind: var(--night); }
.kind-morning { --kind: var(--morning); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.code { color: var(--hint); font-size: .9em; }

.train-d summary { list-style: none; cursor: pointer; }
.train-d summary::-webkit-details-marker { display: none; }
.train .chev { font-style: normal; color: var(--hint); font-size: 20px; transition: transform .15s; margin-left: -2px; }
.train-d[open] .chev { transform: rotate(90deg); }
.stops { list-style: none; margin: 6px 0 4px; padding: 4px 10px; border-left: 2px solid var(--line); margin-left: 22px; font-size: 13px; }
.stops li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.stops li span { color: var(--text); }
.stops li b { font-weight: 500; color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stops li:first-child b, .stops li:last-child b { color: var(--text); font-weight: 700; }

.stops li.upd { font-size: 11.5px; color: var(--hint); justify-content: flex-start; }
.train .num.two { font-size: 14px; line-height: 1.15; min-width: 46px; max-width: 52px; }
.train .part { color: var(--accent-text); font-weight: 600; }
.train .warn { color: var(--warn); }
.meta-line a { color: var(--accent-text); text-decoration: none; }

/* ---------- вкладки ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 12px calc(6px + var(--safe-bottom));
}
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px; font-size: 12px; color: var(--hint); border-radius: 10px; }
.tabbar button span { font-size: 18px; line-height: 1.2; }
.tabbar button.active { color: var(--accent-text); font-weight: 600; }
#screen-list, #screen-salary { padding-bottom: calc(84px + var(--safe-bottom)); }

.month-nav { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.month-nav button { width: 40px; height: 34px; font-size: 22px; color: var(--accent-text); border-radius: 9px; }
.month-nav b { font-size: 16px; }

/* ---------- формы ---------- */
.form label { display: block; font-size: 13px; color: var(--hint); margin-bottom: 10px; }
.form select, .form input[type=datetime-local] { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin: 6px 0; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn { display: block; width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
.btn:disabled { opacity: .6; }
.link { color: var(--accent-text); font-weight: 600; font-size: 14px; padding: 8px 0 0; }
.muted { color: var(--hint); font-size: 12.5px; }
.prof { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat b.sm { font-size: 17px; }
.lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.lines > div b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .total { border-bottom: 0; font-weight: 700; padding-top: 8px; }
.lines .total b { font-weight: 800; }
.entry { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.entry .eb { min-width: 52px; font-weight: 800; color: var(--accent-text); }
.entry .ei { flex: 1; font-size: 14px; }
.entry .del { width: 32px; height: 32px; border-radius: 10px; color: var(--hint); background: var(--bg); }
.record h3 { margin-bottom: 6px; }

/* ---------- проба тормозов и закрепление ---------- */
.brake, .stay { margin: 6px 0 2px; padding: 9px 11px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--night) 9%, transparent); border-left: 3px solid var(--night); }
.stay { background: color-mix(in srgb, var(--warn) 9%, transparent); border-left-color: var(--warn); }
.bt { display: flex; gap: 8px; margin-top: 4px; }
.bt span { min-width: 34px; font-weight: 700; color: var(--night); }
.norm { display: flex; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.norm .np { flex: 1; }
.norm .nn { flex: 1; font-weight: 600; }
.norm.hit { background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 6px; padding: 5px 6px; }

/* остановки: участок бригады и опорные станции */
.stops li.crew span { color: var(--text); font-weight: 600; }
.stops li.crew b { color: var(--accent-text); }
.stops li:not(.crew):not(.upd) span { color: var(--hint); }
.stops li.key span { font-weight: 600; }
.stops i.pl { font-style: normal; font-size: 11px; color: var(--hint); font-weight: 400; }
.stops li:first-child b, .stops li:last-child b { color: inherit; font-weight: 600; }

#toast { position: fixed; left: 16px; right: 16px; bottom: calc(90px + var(--safe-bottom)); z-index: 20; padding: 12px 14px; border-radius: 12px; background: var(--toast); color: #fff; font-size: 14px; text-align: center; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }
#toast.bad { background: var(--warn); }

.form input[type=date], .form input[type=number], .form input[type=text] { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.vac { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--morning) 10%, transparent); }
.notes { margin-top: 10px; display: grid; gap: 4px; }
.entry .eb { font-size: 15px; }

/* ---------- телеграммы ---------- */
.tgcard { padding: 6px; }
.tgbtn { flex-wrap: wrap; gap: 4px; }
.tgbtn span { font-size: 12px; }
.tg { padding: 10px 8px; border-top: 1px solid var(--line); }
.tgc { margin-top: 4px; font-size: 13.5px; }
.tgt { white-space: pre-wrap; word-break: break-word; font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 6px 0 0; max-height: none; }
.btn.ghost { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- профиль и мой график ---------- */
#today:not(:empty) { padding: 14px 16px 0; }
.today .ask { margin: 10px 0 6px; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .btn { margin-top: 0; }
.mymonth { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0 6px; }
.dchip { border: 1px solid var(--line); border-radius: 9px; padding: 4px 2px; text-align: center; background: var(--bg); min-width: 0; }
.dchip small { display: block; font-size: 10px; color: var(--hint); }
.dchip b { font-size: 12px; color: var(--kind, var(--text)); }
.dchip.now { box-shadow: inset 0 0 0 2px var(--accent); }
.dchip.st-counted { border: 2px solid var(--accent); }
.dchip.st-no_schedule { border: 1.5px dashed var(--hint); opacity: .8; }
.form input[name=fio] { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

.stops li.skip span, .stops li.skip b { color: var(--hint) !important; font-weight: 400 !important; opacity: .75; }

.dchip { position: relative; font: inherit; color: inherit; cursor: pointer; }
.dchip.changed::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.dchip.sel { box-shadow: 0 0 0 2px var(--accent); }
.dayedit { margin: 4px 0 10px; padding: 10px; border-radius: 12px; background: var(--bg); }
.dayedit select, .dayedit input { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.dayedit .row2 { margin-top: 6px; }

.stops li b { text-align: right; }
.stops li b .pl { display: inline-block; margin-top: 1px; }

.ybadge { display: table; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: #ffcc00; color: #3a2a00; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; }

/* ---------- документы ---------- */
.tabbar { grid-template-columns: repeat(3, 1fr); }
.tabbar button { font-size: 11px; }
#screen-docs .route { gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.doc-row .di { font-size: 24px; }
.doc-row .dt { flex: 1; }
.doc-row .dt b { display: block; font-size: 16px; }
.doc-row .dt small { color: var(--hint); font-size: 12px; }
.doc-row .arrow { color: var(--hint); font-size: 22px; }
#screen-doc { padding-bottom: 0; display: flex; flex-direction: column; height: 100vh; }
#screen-doc[hidden] { display: none !important; }
#screen-doc .doc-title { font-size: 19px; color: var(--text); }
#doc-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- мои правки смены ---------- */
.mine-edit { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-color: var(--accent); font-size: 13.5px; }
.edit-open { margin-top: 2px; }
.myedit input[type=time], .myedit input[type=text] { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.addtrain { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.addtrain .btn { margin-top: 4px; width: auto; padding: 10px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.chip button { color: var(--accent-text); font-size: 13px; }
.mybadge { display: table; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; }

/* ---------- четыре вкладки ---------- */
.tabbar { grid-template-columns: repeat(4, 1fr); padding-left: 6px; padding-right: 6px; }
.tabbar button { font-size: 10.5px; line-height: 1.15; }
#screen-docs, #screen-profile { padding-bottom: calc(84px + var(--safe-bottom)); }

/* ---------- проход по составу ---------- */
.bt-winter { margin-top: 7px; padding: 7px 9px; border-radius: 8px; font-weight: 600; font-size: 13px; line-height: 1.35;
  color: #0b5c8a; background: #e3f2fc; border: 1px solid #7cc0ea; }
:root.dark .bt-winter { color: #bfe3fb; background: rgba(60,150,220,.18); border-color: rgba(124,192,234,.55); }
.brake.pass { background: color-mix(in srgb, var(--morning) 10%, transparent); border-left-color: var(--morning); }
.brake.pass .bt span { color: var(--morning); min-width: 58px; font-weight: 600; font-size: 12px; }
.brake.pass .muted { margin-top: 4px; }
.brake.etchk { background: color-mix(in srgb, var(--accent) 10%, transparent); border-left-color: var(--accent); }

/* ---------- башмаки ---------- */
.shoes { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.shoe-row { margin-top: 6px; }
.shoe-row small { display: block; font-size: 12px; color: var(--hint); margin-bottom: 3px; }
.shoe-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.shoe-in input { width: 100%; min-width: 0; font: inherit; font-size: 15px; text-align: center; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; }
.shoes .btn { padding: 9px; font-size: 14px; }

/* ---------- конспект ---------- */
.summary-btn { margin-top: 2px; }
#sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
#sheet[hidden] { display: none; }
.sheet-box { width: 100%; max-height: 92vh; display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 18px 18px 0 0; padding: 14px 16px calc(14px + var(--safe-bottom)); box-sizing: border-box; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head .link { padding: 0; }
.sheet-box textarea { flex: 1; min-height: 45vh; width: 100%; box-sizing: border-box; font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; resize: none; }

/* ---------- профиль ---------- */
.pcard { display: flex; align-items: center; gap: 14px; }
.ava { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: visible; background: var(--accent-soft); display: grid; place-items: center; cursor: pointer; }
.ava img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ava span { font-size: 24px; font-weight: 800; color: var(--accent-text); }
.ava em { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.pinfo { flex: 1; min-width: 0; }
.pinfo b { font-size: 17px; display: block; }
.pcard .link { padding: 0; align-self: flex-start; }
.pbig { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pbig small { display: block; font-size: 12.5px; font-weight: 400; color: var(--hint); }
.due { position: relative; overflow: hidden; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--accent-soft); }
.due b { display: block; font-size: 14.5px; position: relative; }
.due span { font-size: 12.5px; color: var(--hint); position: relative; }
.due i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.due.warn { background: color-mix(in srgb, var(--day) 16%, transparent); }
.due.warn i { background: var(--day); }
.due.bad { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.due.bad b { color: var(--warn); }
.due.bad i { background: var(--warn); }
#pfdoc h3 { margin-top: 14px; }
#pfdoc h3:first-child { margin-top: 0; }
label.btn { text-align: center; cursor: pointer; color: #fff; }
label.btn.ghost { color: var(--accent-text); }
.qr-thumb { display: block; margin: 4px auto 6px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-thumb img { display: block; max-width: 220px; max-height: 220px; }
#qrview { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
#qrview[hidden] { display: none; }
#qrview img { max-width: 100%; max-height: 80vh; object-fit: contain; }
#qrview span { color: #667; font-size: 13px; }
.report { margin-top: 4px; }

/* ---------- заметка и напоминания ---------- */
.note-card textarea { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 6px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; resize: vertical; }
.note-card .row2 .btn { margin-top: 0; }
.notify-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: -2px 0 10px; }
.notify-row label.check { margin: 0; font-size: 13.5px; }
.notify-row select { width: auto; margin: 0; padding: 7px 8px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }

/* ---------- электропоезд ЭП2Д на смене ---------- */
.ts-open { margin-bottom: 10px; }
.ts-card h3 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); }
.ts-grid label.check input { flex: none; }
.ts-card h4 { margin: 12px 0 6px; font-size: 14px; }
.ts-card .prof { margin-bottom: 8px; }
.ts-card input.ts-q { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; letter-spacing: 1px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ts-list { max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 6px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: repeat(2, 1fr); }
.ts-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; text-align: left; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); border-bottom: 1px solid var(--line); }
.ts-item:nth-child(odd) { border-right: 1px solid var(--line); }
.ts-item:active { background: var(--accent-soft); }
.ts-item em { font-style: normal; font-size: 12px; color: var(--warn); }
.ts-empty { padding: 12px; grid-column: 1 / -1; }
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ts-grid label.check { font-size: 13.5px; margin: 5px 0; }
.ts-fault { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ts-fault.fixed > div:first-child { color: var(--hint); }
.ts-fault-act { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ts-fault-act .btn { width: auto; margin: 0; padding: 7px 14px; font-size: 13.5px; }
.ts-card textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 6px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; resize: vertical; }
.ts-card .row2 .btn { margin-top: 0; }
.ts-appl { border-top: 1px solid var(--line); padding: 2px 0; }
.ts-appl label.check { font-size: 13.5px; margin: 6px 0; }
.ts-appl label.check input { flex: none; }
.ts-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hint); margin: 0 0 8px 26px; }
.ts-ok button { padding: 6px 14px; border-radius: 9px; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.ts-ok button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ts-ok button.on[data-v="false"] { background: var(--warn); border-color: var(--warn); }
.dayedit .day-type { margin-top: 2px; }
.mymonth .wkhead { text-align: center; font-size: 11px; font-weight: 600; color: var(--hint); padding: 2px 0; }
.mymonth .wkhead.wkend, .dchip.wkend small { color: var(--warn); }
.dchip.hol { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); }
.dchip.hol small { color: var(--warn); font-weight: 700; }
.hol-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--hint); margin: 0 0 6px; }
.hol-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: color-mix(in srgb, var(--warn) 35%, var(--bg)); }
.hol-name { color: var(--warn); font-weight: 600; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--line); margin: 6px 0 8px; }
.theme-pick button { padding: 9px 4px; border-radius: 9px; font-size: 13.5px; color: var(--hint); }
.theme-pick button.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }

/* ---------- библиотека документов ---------- */
.lib-h { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--hint); margin: 8px 4px 0; }
.lib-new { --kind: var(--accent); }
.lib-topic { padding: 0; overflow: hidden; }
.lib-th { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; text-align: left; }
.lib-th b { flex: 1; font-size: 16px; }
.lib-th em { font-style: normal; font-size: 12.5px; color: var(--hint); }
.lib-th i { font-style: normal; color: var(--hint); }
.lib-th.sub { padding: 11px 14px 11px 24px; }
.lib-th.sub b { font-size: 15px; }
.lib-topic.open > .lib-th { border-bottom: 1px solid var(--line); }
.lib-sub { border-top: 1px solid var(--line); }
.lib-sub .lib-file, .lib-sub .lib-acts, .lib-sub .lib-admin, .lib-sub .lib-add, .lib-sub .lib-form, .lib-sub > .muted { margin-left: 18px; }
.lib-file { display: flex; align-items: center; gap: 12px; width: calc(100% - 20px); margin: 6px 10px; text-align: left; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.lib-file.open { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lib-sub .lib-file { width: calc(100% - 38px); }
.lib-file .di { font-size: 22px; }
.lib-file .dt { flex: 1; min-width: 0; }
.lib-file .dt b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.lib-file .dt small { color: var(--hint); font-size: 12px; }
.lib-file .arrow { color: var(--hint); }
.lib-acts { margin: 0 10px 10px; }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
.row3 .btn { margin-top: 0; padding: 10px 4px; font-size: 14px; }
.lib-admin { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 14px 2px; }
.lib-admin .link { padding: 6px 0; font-size: 13.5px; }
.link.warn { color: var(--warn); }
.lib-add { display: block; margin: 8px 10px 12px; padding: 11px; border: 1.5px dashed var(--line); border-radius: 12px; text-align: center; color: var(--accent-text); font-weight: 600; font-size: 14px; cursor: pointer; }
.lib-form { padding: 6px 14px 10px; }
.lib-form input { display: block; width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.lib-form .row2 .btn { margin-top: 0; }
.card.form > .lib-form { padding: 0; }
.lib-topic > .muted { padding: 4px 14px 12px; }
.lib-sub > .muted { padding: 2px 14px 10px; }
.lib-note { margin: 4px 4px 0; }

/* проверки со сроками в профиле */
.chk + .chk { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.chk-term { margin: -4px 0 8px; font-size: 12.5px; }
.ts-kv { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ts-kv:first-of-type { border-top: 0; }
.ts-kv .ts-ok { margin: 0; }
.ts-ok button.on[data-v="false"][data-k^="kvarc"], .ts-ok button.on[data-v="false"][data-k="microwave"], .ts-ok button.on[data-v="false"][data-k="kettle"] { background: var(--warn); border-color: var(--warn); }
.ts-add-head { font-size: 14px; margin: 10px 0 6px; }
.ts-cars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.ts-cars button { padding: 10px 0; border-radius: 10px; font-size: 15px; font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.ts-cars button:active { background: var(--accent); color: #fff; }
.ts-car { color: var(--accent-text); margin-right: 2px; }

/* ---------- v1.0.0: часы в шапке, вторая ночь, «Что нового» ---------- */
.nowbar { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--hint); margin: -4px 0 8px; font-variant-numeric: tabular-nums; }
.nowbar .nb-date::first-letter { text-transform: uppercase; }
.nowbar .nb-time { font-size: 15px; color: var(--text); font-weight: 700; letter-spacing: .3px; }
.top-route { flex-wrap: wrap; }
.top-route .nowbar { flex: 0 0 100%; margin: -4px 0 2px; }
.dchip .x2 { display: block; font-style: normal; font-size: 9.5px; line-height: 1.1; color: var(--night); font-weight: 700; }
.x2box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.ts-works { margin: 0 0 6px; }
.app-version { display: block; width: 100%; margin: 14px 0 6px; padding: 8px; text-align: center; font-size: 12.5px; color: var(--hint); }
#whatsnew { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
#whatsnew[hidden] { display: none; }
#whatsnew .wn-box { background: var(--card); color: var(--text); border-radius: 18px; padding: 18px 18px 14px; max-width: 440px; width: 100%; max-height: 82vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
#whatsnew .wn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
#whatsnew .wn-head b { font-size: 19px; }
#whatsnew .wn-head span { font-size: 12.5px; color: var(--hint); }
#whatsnew ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.35; }
#whatsnew .btn { width: 100%; }

/* ---------- Наряд (подработка) ---------- */
.tabbar { grid-template-columns: repeat(5, 1fr); padding-left: 4px; padding-right: 4px; }
.tabbar button { font-size: 10px; }
#screen-naryad { padding-bottom: calc(84px + var(--safe-bottom)); }
.nar-form { display: grid; gap: 8px; }
.nar-form .dates { margin: 0 -14px; padding: 0 14px; }
.nar-dates .date em { display: block; font-style: normal; font-size: 10.5px; color: var(--hint); font-weight: 600; }
.nar-dates .date.active em { color: inherit; }
.nar-dates .date.nar-none { opacity: .55; }
.nar-kind { margin: 0; }
.nar-mine { background: var(--accent-soft); color: var(--text); padding: 8px 10px; border-radius: 10px; }
.nar-slots { display: grid; gap: 6px; }
.nar-slot { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "r c i" "r c e"; align-items: center; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.nar-slot input { grid-area: r; margin: 0; }
.nar-slot b { grid-area: c; font-size: 18px; min-width: 48px; }
.nar-slot span { grid-area: i; font-size: 13px; }
.nar-slot em { grid-area: e; font-style: normal; font-size: 11.5px; color: var(--hint); }
.nar-slot.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nar-slot.off { opacity: .5; cursor: default; }
.btn[disabled] { opacity: .5; }
.nar-req { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nar-req:first-of-type { border-top: 0; }
.nar-req .nr-code { font-size: 18px; font-weight: 800; min-width: 52px; }
.nar-req .nr-info { flex: 1; font-size: 13.5px; }
.nar-req.st-approved .nr-st { color: #1a9b4b; font-weight: 700; }
.nar-req.st-rejected .nr-st { color: var(--warn); }
.nar-req.st-pending .nr-st { color: var(--hint); }
.wn-ver { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.wn-ver:first-of-type { border-top: 0; padding-top: 0; }
.wn-ver span { font-size: 12.5px; color: var(--hint); }
#whatsnew .app-version, .app-version { cursor: default; }
/* пробег */
.train .km, .train-d .km { font-size: 12.5px; color: var(--accent-text); font-weight: 600; }
.km-sum { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.km-sum .km-groups { margin-top: 4px; font-size: 13px; }
.km-sum.km-all { margin: 10px 0 4px; }
.dchip .od { display: block; font-style: normal; font-size: 9px; line-height: 1.1; color: var(--accent-text); font-weight: 800; }
/* вторая ночь подряд в квадратике: утро/ночь */
.dchip b.pair { display: block; font-size: 10.5px; line-height: 1.15; overflow-wrap: anywhere; }
.dchip b.pair .pm { color: var(--morning); }
.dchip b.pair .pn { color: var(--night); }
/* Мираполис */
.card.mira { display: grid; gap: 8px; }
.card.mira h3 { margin: 6px 0 0; }
.mira-form { display: grid; gap: 8px; }
.mira-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.mira-row span { color: var(--hint); font-size: 12.5px; min-width: 54px; }
.mira-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.mira-row b.mask { letter-spacing: 2px; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 17px; }
/* зарплата: за месяц / за год */
.sal-mode { margin-bottom: 8px; }
.ymonths { display: grid; gap: 2px; }
.ym-head, .ym-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; align-items: center; padding: 8px 4px; font-size: 13.5px; text-align: right; }
.ym-head { color: var(--hint); font-size: 12px; border-bottom: 1px solid var(--line); }
.ym-head span:first-child, .ym-row span:first-child { text-align: left; }
.ym-row { width: 100%; border-bottom: 1px solid var(--line); color: var(--text); }
.ym-row:last-child { border-bottom: 0; }
.ym-row b { color: var(--accent-text); }
.btn.ghost.danger { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.replace-box { display: grid; gap: 8px; }
/* выбор месяца: название — это выпадающий список */
.m-pick-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; }
.m-pick-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.m-caret { font-style: normal; font-size: 12px; color: var(--hint); }
.me-nav { margin: 8px 0; }
.nogr { padding: 10px 0; }

/* НДФЛ: вкладки 13% / 15% */
.ndfl-tabs { display: flex; gap: 6px; margin: 4px 0 2px; }
.ndfl-tab { flex: 1; border: 1px solid var(--line, rgba(127,127,127,.25)); background: transparent; color: inherit; border-radius: 10px; padding: 6px 4px; font-weight: 600; font-size: 14px; line-height: 1.2; }
.ndfl-tab small { display: block; font-weight: 400; font-size: 12px; color: var(--hint); }
.ndfl-tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.ndfl-tab.on small { color: inherit; opacity: .85; }
.ndfl-info { font-size: 12px; margin-bottom: 4px; }
.lines .sub span { padding-left: 12px; color: var(--hint); font-size: 13px; }

/* контроль часов (1.2.0) */
.hc .hc-ok, .hc .hc-over, .hc .hc-under { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.hc .hc-ok { background: color-mix(in srgb, #2e9d57 14%, transparent); color: #2e9d57; }
.hc .hc-over { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.hc .hc-under { background: color-mix(in srgb, #d08a00 14%, transparent); color: #b87900; }
.hc .hc-q { margin-top: 12px; }
.hc .muted { margin-top: 6px; }
.hc .sub-warn b { color: var(--warn); white-space: normal; text-align: right; font-weight: 600; }
.stay .secure-memo { margin: 6px 0 4px; padding: 7px 9px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.nar-picked { font-size: 13px; padding: 6px 2px; }
.shv-list { display: grid; gap: 4px; margin: 8px 0 4px; }
#askmine { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 20px; }
#askmine[hidden] { display: none; }
#askmine .am-box { background: var(--card, #fff); color: var(--text); border-radius: 16px; padding: 18px; max-width: 340px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
#askmine .am-box b { font-size: 17px; } #askmine .am-box p { margin: 8px 0 14px; }
#askmine .am-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.lines .exp { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.lines .exp > span:first-child { display: grid; gap: 2px; }
.lines .exp small { font-size: 12px; }
.lines .exp .exp-btns { grid-column: 1 / -1; display: flex; gap: 14px; }
#expf { margin-top: 10px; }

/* Наряд: готовые PDF */
.nar-pdf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
.nar-pdf-b { display: flex; flex-wrap: wrap; gap: 8px; }
.nar-pdf-f { display: inline-flex; align-items: center; gap: 6px; }
.nar-pdf .btn.small { width: auto; padding: 6px 12px; font-size: 14px; margin: 0; }
.nar-pdf .link { padding: 0; }

/* бесплатный уровень: закрытые функции — для участников группы */
.card.lock { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.card.lock .lock-ico { font-size: 34px; }
.card.lock .btn { width: 100%; }
.card.lock-note { font-size: 14px; }
#tabbar button.locked { opacity: .55; }
#tabbar button.locked span::after { content: "🔒"; font-size: 10px; margin-left: 1px; }

/* PDF нарядов: сегодня/завтра сверху, архив по месяцам */
.nar-pdf-now { background: var(--card2, rgba(127,127,127,.08)); border-radius: 12px; padding: 10px 12px; margin-top: 8px; border-top: 0; }
.nar-pdf-now small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--hint); }
.nar-pdf-now.none b { color: var(--hint); }
.nar-arch-h { margin: 14px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--hint); }
.nar-month { border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
.nar-month > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; }
.nar-month > summary::-webkit-details-marker { display: none; }
.nar-month > summary .muted { flex: 1; text-align: right; }
.nar-month > summary .chev { font-style: normal; transition: transform .15s; color: var(--hint); }
.nar-month[open] > summary .chev { transform: rotate(90deg); }
.nar-month .nar-pdf { padding-left: 8px; }
/* выбор депо (2.0.0) */
#depotpick { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
#depotpick[hidden] { display: none; }
#depotpick .dp-box { background: var(--card); color: var(--text); border-radius: 18px; padding: 18px; max-width: 440px; width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 10px; }
#depotpick .dp-box h3 { margin: 0; }
.depot-soon { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
