/*
 * Табель КаргоСервиса. Вид — как у банковских приложений: светло-серый фон, белые карточки
 * с крупным скруглением, жёлтые кнопки с чёрным текстом, жирные заголовки, цветные кружки у людей.
 * Шрифт Onest — бесплатный, с хорошей кириллицей; если не загрузится — системный.
 */
:root {
  --bg: #f6f7f8;
  --card: #ffffff;
  --card-2: #f1f2f4;
  --ink: #1f1f1f;
  --ink-soft: #4d4d4d;
  --muted: #8f949c;
  --line: #eceef1;
  --fill: #f1f2f4;
  --accent: #ffdd2d;
  --accent-hover: #fcc521;
  --accent-ink: #1f1f1f;
  --blue: #336fee;
  --green: #00b92d;
  --red: #f52222;
  --orange: #ff8a00;
  --purple: #8f5cf5;
  --green-ink: #00931f;
  --red-ink: #e01d1d;
  --orange-ink: #d06c00;
  --purple-ink: #7140d8;
  --blue-ink: #2559cc;
  --green-soft: #e4f8e9;
  --red-soft: #ffe9e9;
  --orange-soft: #fff1df;
  --purple-soft: #efe8ff;
  --blue-soft: #e8efff;
  --dark-btn: #333333;
  --bar: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 24px;
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Старые имена — их ещё используют подписи в табеле. */
  --warn-soft: var(--orange-soft);
  --bad-soft: var(--red-soft);
  --rv-soft: var(--blue-soft);
  --abs-soft: var(--purple-soft);
  --off: var(--card-2);
  color-scheme: light dark;
}

/* Тёмная тема: по настройке устройства, если руководитель не выбрал иное в «Настройках». */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2a2a2d;
    --ink: #ffffff;
    --ink-soft: #d8d8dc;
    --muted: #8e8e93;
    --line: #2c2c2f;
    --fill: #2a2a2d;
    --accent-ink: #1f1f1f;
    --blue: #5b8cff;
    --green: #2fd158;
    --red: #ff4d4d;
    --orange: #ffa033;
    --purple: #a983ff;
    --green-ink: #4ade73;
    --red-ink: #ff6b6b;
    --orange-ink: #ffb35c;
    --purple-ink: #bfa2ff;
    --blue-ink: #82a8ff;
    --green-soft: rgba(47, 209, 88, 0.16);
    --red-soft: rgba(255, 77, 77, 0.16);
    --orange-soft: rgba(255, 160, 51, 0.16);
    --purple-soft: rgba(169, 131, 255, 0.18);
    --blue-soft: rgba(91, 140, 255, 0.18);
    --dark-btn: #3a3a3d;
    --bar: rgba(28, 28, 30, 0.9);
    --shadow: none;
  }
}
:root[data-theme=dark] {
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2a2a2d;
  --ink: #ffffff;
  --ink-soft: #d8d8dc;
  --muted: #8e8e93;
  --line: #2c2c2f;
  --fill: #2a2a2d;
  --accent-ink: #1f1f1f;
  --blue: #5b8cff;
  --green: #2fd158;
  --red: #ff4d4d;
  --orange: #ffa033;
  --purple: #a983ff;
  --green-ink: #4ade73;
  --red-ink: #ff6b6b;
  --orange-ink: #ffb35c;
  --purple-ink: #bfa2ff;
  --blue-ink: #82a8ff;
  --green-soft: rgba(47, 209, 88, 0.16);
  --red-soft: rgba(255, 77, 77, 0.16);
  --orange-soft: rgba(255, 160, 51, 0.16);
  --purple-soft: rgba(169, 131, 255, 0.18);
  --blue-soft: rgba(91, 140, 255, 0.18);
  --dark-btn: #3a3a3d;
  --bar: rgba(28, 28, 30, 0.9);
  --shadow: none;
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Шапка с логотипом ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bar);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.top .logo { height: 38px; width: auto; display: block; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand span { font-size: 12px; color: var(--muted); }
.spacer { flex: 1; }
.top .when { font-size: 13px; color: var(--muted); text-align: right; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.narrow { max-width: 480px; padding-top: 12px; }

/* ——— Заголовок раздела ——— */
header.large { display: flex; align-items: flex-end; gap: 12px; margin: 18px 4px 16px; }
header.large > div { flex: 1; min-width: 0; }
header.large h1 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
header.large p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

h1 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.015em; }
h3 { font-size: 13px; font-weight: 600; margin: 8px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card > p:last-child { margin-bottom: 0; }

/* ——— Вкладки ——— */
.tabbar { display: flex; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; }
.tabbar button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--card);
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.tabbar button svg { width: 19px; height: 19px; color: var(--muted); }
.tabbar button.active { background: var(--dark-btn); color: #fff; }
.tabbar button.active svg { color: var(--accent); }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font: 700 11px/1 var(--font);
  font-style: normal;
}

/* На телефоне вкладки внизу, как в мобильном банке. */
@media (max-width: 760px) {
  body.admin { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    gap: 0;
    flex-wrap: nowrap;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--bar);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
  }
  .tabbar button { flex: 1; flex-direction: column; gap: 3px; padding: 4px 0; font-size: 10px; font-weight: 500; color: var(--muted); background: transparent; box-shadow: none; }
  .tabbar button svg { width: 25px; height: 25px; }
  .tabbar button.active { background: transparent; color: var(--ink); }
  .tabbar button.active svg { color: var(--ink); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); }
  header.large h1 { font-size: 28px; }
  .top .logo { height: 34px; }
}

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: var(--fill);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.08s;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.red { background: var(--accent); color: var(--accent-ink); }
.btn.red:hover { background: var(--accent-hover); filter: none; }
.btn.ghost { background: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn.danger { color: var(--red); }
.btn.wide { width: 100%; padding: 16px; font-size: 17px; border-radius: 16px; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font-size: inherit; font-weight: 500; }
button.link { display: block; margin: 12px 20px 0; font-size: 15px; }

/* ——— Сообщения ——— */
.msg { border-radius: 16px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.msg.ok { background: var(--green-soft); color: var(--green-ink); }
.msg.bad { background: var(--red-soft); color: var(--red-ink); }
.msg.warn { background: var(--orange-soft); color: var(--orange-ink); }
.hello .msg { margin: 16px 0 0; text-align: left; }
.banner { background: var(--card); border-radius: 20px; padding: 12px 16px 12px 44px; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); position: relative; box-shadow: var(--shadow); }
.banner::before { content: ''; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ——— Метки ——— */
.pill, .tag {
  display: inline-block;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 1px;
}
.pill.on, .tag.green { background: var(--green-soft); color: var(--green-ink); }
.pill.off { background: var(--fill); color: var(--muted); }
.pill.late, .tag.warn { background: var(--orange-soft); color: var(--orange-ink); }
.pill.bad, .tag.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.rv, .tag.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.abs { background: var(--purple-soft); color: var(--purple-ink); }

/* ——— Сводка ——— */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.stat { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 10px; background: var(--muted); }
.stat .n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stat.green::before { background: var(--green); }
.stat.orange::before { background: var(--orange); }
.stat.red::before { background: var(--red); }
.stat.purple::before { background: var(--purple); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ——— Списки ——— */
.group { margin-bottom: 22px; }
.group > h3 { margin: 0 6px 8px; display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.group > h3 > span { color: var(--muted); font-size: 16px; font-weight: 600; }
.group > h3 > .new-count { color: var(--red); font-size: 14px; }
.list-ios { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 6px 0; }
.row-ios { display: flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 60px; }
.row-ios .main { flex: 1; min-width: 0; }
.row-ios .main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ios .main small { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ios .side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; text-align: right; max-width: 55%; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #9299a2;
}
.time { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.time.green { color: var(--green-ink); }
.time.red { color: var(--red-ink); }
.time.purple { color: var(--purple-ink); }
.foot { color: var(--muted); font-size: 13px; margin: 8px 8px 0; }
.foot .link { display: inline; margin: 0; font-size: 13px; }

.ev .ico { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.ev .ico svg { width: 20px; height: 20px; }
.ev .ico.late, .ev .ico.early { background: var(--orange-soft); color: var(--orange-ink); }
.ev .ico.absent, .ev .ico.offSite { background: var(--red-soft); color: var(--red-ink); }
.ev .ico.noExit { background: var(--fill); color: var(--muted); }
.ev .main small { white-space: normal; color: var(--ink-soft); }
.ev .time { font-size: 13px; font-weight: 500; color: var(--muted); }
.ev.new .main b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent-hover); margin-left: 6px; vertical-align: 2px; }

/* ——— Переключатель разделов ——— */
.segmented { display: flex; background: var(--fill); padding: 3px; border-radius: 14px; margin-bottom: 16px; max-width: 440px; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 11px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.segmented button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

/* ——— Табель ——— */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .month { font-size: 22px; font-weight: 800; min-width: 170px; text-align: center; letter-spacing: -0.02em; }
#prev, #next { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 20px; background: var(--card); box-shadow: var(--shadow); }
.grid-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.grid th, .grid td { padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th { font-weight: 600; color: var(--muted); background: var(--card); font-size: 12px; }
.grid .nm { text-align: left; padding-left: 20px; position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 160px; }
.grid .nm small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.grid .nm b { font-weight: 600; }
.grid th.we { color: var(--red); }
.grid td.c { min-width: 36px; cursor: pointer; font-variant-numeric: tabular-nums; }
.grid td.c:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.grid td.late { background: var(--orange-soft); color: var(--orange-ink); font-weight: 600; }
.grid td.bad { background: var(--red-soft); color: var(--red-ink); font-weight: 700; }
.grid td.now { color: var(--green); font-weight: 800; }
.grid td.rv { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.grid td.abs { background: var(--purple-soft); color: var(--purple-ink); font-weight: 700; font-size: 12px; }
.grid td.off { background: var(--card-2); }
.grid td.plus { color: var(--green-ink); font-weight: 700; }
.grid td.minus { color: var(--red-ink); font-weight: 700; }
.grid td.tot { font-weight: 800; }
.grid tr:last-child td { border-bottom: 0; }
.grid.pay td { padding: 14px 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 6px 0; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 5px; }
.detail { margin-top: 16px; }
.marks { list-style: none; padding: 0; margin: 0; }
.marks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.marks li:first-child { border-top: 0; }

/* ——— Формы ——— */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--card-2);
  color: var(--ink);
  font-size: 16px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline > * { flex: 1 1 160px; }
.inline > .btn { flex: 0 0 auto; }

/* Переключатели. */
.check { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px !important; color: var(--ink) !important; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; }
.check input[type=checkbox] {
  order: 2;
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #d5d8dd;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
}
.check input[type=checkbox]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.check input[type=checkbox]:checked { background: var(--accent); }
.check input[type=checkbox]:checked::after { transform: translateX(20px); }

.seg { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.seg label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.seg input { accent-color: var(--dark-btn); width: 18px; height: 18px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; background: var(--card-2); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
form.edit { flex-basis: 100%; background: var(--card-2); border-radius: 18px; padding: 16px; margin-top: 6px; }
form.edit input:not([type=checkbox]):not([type=radio]), form.edit select { background: var(--card); }
form.edit .chip span { background: var(--card); }
form.edit h3 { margin-top: 4px; }

/* Список сотрудников с действиями. */
.list > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; }
.list .who { flex: 1 1 240px; line-height: 1.55; }
.list .who b { font-weight: 700; }

.paste { margin-top: 12px; font-size: 15px; }
.paste summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.paste textarea { margin: 10px 0; font: 13px/1.4 ui-monospace, Menlo, monospace; }
.bad-text { color: var(--red-ink); }
.hidden { display: none !important; }

/* ——— Страница сотрудника ——— */
.hello { text-align: center; padding: 28px 20px 24px; }
.who-role { font-size: 14px; color: var(--muted); font-weight: 500; }
.clock { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.status { font-size: 16px; color: var(--ink-soft); margin: 16px auto 22px; max-width: 330px; }
.status b { color: var(--ink); font-weight: 700; }
/* Главная кнопка — большая, жёлтая, на всю ширину: её не промахнуться пальцем. */
.big {
  width: 100%;
  height: 68px;
  border-radius: 20px;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s;
}
.big:active { transform: scale(0.98); }
.big.in { background: var(--accent); color: var(--accent-ink); }
.big.in:hover { background: var(--accent-hover); }
.big.out { background: var(--dark-btn); color: #fff; }
.big:disabled { opacity: 0.6; }
.consent { padding-left: 20px; margin: 12px 0 20px; display: grid; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.consent b { color: var(--ink); font-weight: 700; }

@media (max-width: 520px) {
  .clock { font-size: 58px; }
  /* На телефоне дата есть под заголовком раздела — в шапке она только теснит логотип. */
  .top .when { display: none; }
}

/* ——— Карточки-формы: всё внутри с одинаковым шагом, ничего не липнет друг к другу ——— */
.stack { display: grid; gap: 14px; }
.stack > h2 { margin: 0; }
.stack > p { margin: -8px 0 0; }
.stack .inline { align-items: end; }
.stack label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.stack .check { display: flex !important; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline > .grow2 { flex: 3 1 240px; }
.inline > .narrow-field, .stack > .narrow-field { flex: 0 1 140px; max-width: 220px; }
.found:empty { display: none; }
.found { display: grid; gap: 6px; }
.found p { margin: 0; }
.pick { text-align: left; border: 0; background: var(--card-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; cursor: pointer; color: var(--ink); }
.pick:hover { background: var(--accent); color: var(--accent-ink); }
.ok-text { color: var(--green-ink); }
.save-bar { margin: 0 0 22px; }
.edit-place { flex-basis: 100%; background: var(--card-2); border-radius: 18px; padding: 16px; margin-top: 6px; }
.edit-place input:not([type=checkbox]):not([type=radio]) { background: var(--card); }
.edit-place .pick { background: var(--card); }
#sf .card { margin-bottom: 14px; }
.stack .seg label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.seg input { accent-color: var(--accent); }

/* Уведомления на телефон */
.push-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.push-card > b { display: block; font-size: 16px; }
.push-card p, .push-card ol, .push-card small { color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin: 6px 0 0; }
.push-card ol { padding-left: 20px; }
.push-card small { display: block; color: var(--muted); font-size: 13px; }
.push-card .btn { margin-top: 12px; }
.push-card.on b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-ico { display: inline-block; transform: rotate(-90deg); }
