/* CRM 1225. Mobile first. Белый фон, зелёный акцент, золото только для подсветки. */
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --brand: #1B4136;
  --on-brand: #FFFFFF;
  --ink: #131515;
  --gold: #C19A48;
  --gold-soft: #F8F2E4;
  --bg: #FFFFFF;
  --soft: #F5F8F6;
  --line: #DFE6E2;
  --muted: #5B6663;
  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabs-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 12px; }
a { color: var(--brand); text-underline-offset: 3px; }
b { font-weight: 700; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
code { font: 600 .95em ui-monospace, Consolas, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- каркас ---------- */
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; display: block; }
.brand-name { font: 700 1.25rem/1 var(--font-head); }
.top-new { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; min-height: 44px; }
.main { padding: 20px 16px calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); max-width: 1180px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
.tab.is-active { color: var(--brand); }
.tab-add { color: var(--on-brand); }
.tab-add .ico { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--brand); stroke-width: 2.2; }

.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font: 700 .8rem/1 var(--font-body); vertical-align: middle; }
.count.is-zero { background: var(--soft); color: var(--muted); }
.count-gold { background: var(--gold); color: var(--ink); }

@media (min-width: 900px) {
  .top, .tabs { display: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 240px; display: flex; flex-direction: column; gap: 20px; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
  .side .brand { padding: 0 8px; }
  .side .brand img { height: 36px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  .side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 .95rem/1.2 var(--font-body); text-decoration: none; text-align: left; cursor: pointer; transition: background-color .2s var(--ease); }
  .side-link:hover { background: var(--soft); }
  .side-link.is-active { background: var(--soft); color: var(--brand); }
  .side-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { margin-left: 240px; padding: 36px 40px 64px; }
}

/* ---------- кнопки и формы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { border-color: var(--brand); filter: brightness(1.12); }
.btn-quiet { border-color: transparent; color: var(--muted); font-weight: 600; }
.btn-quiet:hover { border-color: var(--line); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }
.btn[disabled] { opacity: .5; cursor: default; }

.form { display: flex; flex-direction: column; gap: 14px; }
.narrow { max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--muted); }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body); }
textarea { min-height: 0; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--brand); flex: none; }
input[type="color"] { padding: 4px; width: 80px; }
input[type="file"] { padding: 9px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[readonly], input[disabled], textarea[readonly] { background: var(--soft); }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.switch, .pick, .c-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pick { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.pick:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-form select, .inline-form input { flex: 1 1 180px; width: auto; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick .btn { padding: 10px 6px; font-size: .95rem; }
details.more > summary, details.fold > summary { cursor: pointer; list-style: none; }
details.more > summary { color: var(--brand); font-weight: 600; padding: 8px 0; }
details.more[open] > summary { margin-bottom: 10px; }
details.more > summary::-webkit-details-marker, details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
details.fold > summary::after { content: "+"; font: 400 1.6rem/1 var(--font-head); color: var(--muted); }
details.fold[open] > summary::after { content: "−"; }
details.fold[open] > summary { margin-bottom: 14px; }

/* ---------- страница ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-title { margin-bottom: 16px; }
.page-head .page-title { margin: 0; }
.page-title .muted { font-weight: 400; font-size: .7em; }
.page-tools { display: flex; align-items: center; gap: 8px; }
.page-tools select { min-height: 40px; padding: 6px 12px; }
.backlink { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 32px; }
.block { margin-top: 32px; }
.block > h2, .block > .fold > summary { margin-bottom: 12px; }
.block > h2 { display: flex; align-items: center; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.flash { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); font-weight: 600; }
.flash-ok { border-color: var(--brand); color: var(--brand); }
.flash-err { border-color: var(--ink); background: var(--ink); color: #F5F8F6; }
.flash-warn, .hint-gold { border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); }
.hint-gold { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 13px; background: var(--soft); color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.chip { min-height: 36px; padding: 4px 14px; border-radius: 18px; }
.chip-on, .chip-brand { background: var(--brand); color: var(--on-brand); }
.chip-gold { background: var(--gold); color: var(--ink); }
button.chip-pick { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); font: 600 .9rem var(--font-body); cursor: pointer; }
button.chip-pick.chip-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.presets { margin: 0; }
.chip-off { background: none; border: 1px solid var(--line); color: var(--muted); }
.chip-err { background: var(--ink); color: #F5F8F6; }

/* ---------- списки ---------- */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; background: var(--bg); color: var(--ink); text-decoration: none; }
.row + .row { border-top: 1px solid var(--line); }
.row-link { transition: background-color .2s var(--ease); }
.row-link:hover { background: var(--soft); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-title.is-done { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.row-sub { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .8rem; text-align: right; flex: none; max-width: 42%; }
.lead.is-notask, .kcard.is-notask { box-shadow: inset 4px 0 0 var(--gold); }
.task.is-overdue .due { color: var(--ink); font-weight: 700; background: var(--gold-soft); padding: 1px 6px; border-radius: 6px; }
.task.is-today .due { color: var(--brand); font-weight: 700; }
.check { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); color: transparent; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.check:hover { border-color: var(--brand); color: var(--brand); }
.check:active { background: var(--brand); color: var(--on-brand); }
.task-check { flex: none; }
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--muted); }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 44px; z-index: 10; min-width: 200px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: 0 2px 4px rgba(19, 21, 21, .06), 0 12px 28px rgba(19, 21, 21, .12); }
.menu-pop button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 .95rem var(--font-body); text-align: left; cursor: pointer; }
.menu-pop button:hover { background: var(--soft); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.search { position: relative; margin-bottom: 14px; }
.search .ico { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.search input { padding-left: 46px; }

/* ---------- карточка сделки и контакта ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.hero h1 a { color: var(--ink); text-decoration: none; }
.hero p { margin: 6px 0 0; }
.hero-contact { font-weight: 600; overflow-wrap: anywhere; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.acts-left { display: flex; flex-wrap: wrap; }
.btn-act { flex-direction: column; gap: 4px; min-height: 64px; padding: 8px; font-size: .85rem; border-color: var(--brand); color: var(--brand); }
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .hero .acts { display: flex; }
  .btn-act { flex-direction: row; min-height: 48px; padding: 10px 18px; font-size: 1rem; }
}
.msg { background: var(--soft); border-color: var(--soft); overflow-wrap: anywhere; }
.label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.stages { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 4px; padding-inline: 16px; scrollbar-width: thin; }
.stage-btn { flex: none; min-height: 48px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; white-space: nowrap; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.stage-btn:hover { border-color: var(--brand); }
.stage-btn.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); opacity: 1; cursor: default; }
@media (min-width: 900px) { .stages { flex-wrap: wrap; overflow: visible; margin: 0 0 4px; padding: 0 0 10px; } }
.lostbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--soft); }
.subline { margin: 12px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat b { font: 600 clamp(1.25rem, 1rem + 1.6vw, 1.9rem)/1.1 var(--font-head); overflow-wrap: anywhere; }
.stat span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.note-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.note-form .btn { align-self: flex-start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.ev { padding: 12px 0; border-top: 1px solid var(--line); }
.ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.ev-head .muted { font-size: .8rem; }
.ev-body { margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.ev-note .ev-body { background: var(--soft); padding: 10px 12px; border-radius: 10px; }
.dupbox { border-color: var(--gold); background: var(--gold-soft); margin-bottom: 16px; }
.dupbox p { margin: 6px 0 12px; }
.consent { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.consent > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.consent .muted { font-size: .875rem; }
.steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.secret { display: inline-block; margin-top: 4px; font-size: 1rem; letter-spacing: .04em; user-select: all; }

/* ---------- воронка ---------- */
.stage-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 8px; scrollbar-width: none; }
.stage-tab { flex: none; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--ink); font: 600 .9rem var(--font-body); white-space: nowrap; cursor: pointer; }
.stage-tab b { color: var(--muted); margin-left: 4px; }
.stage-tab.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stage-tab.is-current b { color: inherit; }
.kcol { display: none; }
.kcol.is-current { display: block; }
.kcol-head { display: none; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.kcard { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.kcard-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.kcard-link b, .kcard-link .muted { overflow-wrap: anywhere; }
.kcard-link .muted { font-size: .85rem; }
.kcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; font-weight: 600; }
.kcard-meta .due.is-overdue, .notask { background: var(--gold-soft); padding: 1px 6px; border-radius: 6px; }
.kcard-move { margin-right: 10px; flex: none; }
.kcol-empty { display: none; padding: 20px 0; text-align: center; }
.kcol-body:not(:has(.kcard)) .kcol-empty { display: block; }
@media (min-width: 900px) {
  .stage-tabs { display: none; }
  .kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
  .kcol, .kcol.is-current { display: flex; flex-direction: column; flex: 0 0 260px; max-height: calc(100vh - 150px); border-radius: var(--radius); background: var(--soft); }
  .kcol-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 8px; }
  .kcol-head h2 { font-size: 1.05rem; }
  .kcol-head .muted { font-size: .8rem; }
  .kcol-body { padding: 6px 8px 12px; overflow-y: auto; flex: 1; border-radius: var(--radius); transition: background-color .2s var(--ease); }
  .kcol-body.is-over { background: color-mix(in srgb, var(--brand) 12%, transparent); }
  .kcard { cursor: grab; flex-direction: column; align-items: stretch; gap: 0; }
  .kcard.is-dragging { opacity: .4; }
  .kcard-move { display: none; }
  .kcol-empty { padding: 12px 0; font-size: .85rem; }
}

/* ---------- сообщение клиенту, файлы ---------- */
.ai-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-bar input { flex: 1 1 200px; min-height: 40px; padding: 6px 12px; }
.ai-out { margin-top: 10px; background: var(--soft); border-color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.folder { margin: 14px 0 6px; }
.files .row { flex-wrap: wrap; }
.files a.row-main { color: var(--ink); text-decoration: none; flex: 1 1 180px; }
.files select { min-height: 40px; padding: 6px 10px; width: auto; font-size: .9rem; }
.c-auto { display: flex; gap: 8px; flex: 1 1 100%; }
.c-auto input:first-child { flex: 1; min-width: 0; }
.lostnum { color: var(--ink); background: var(--gold-soft); border-radius: 6px; padding: 0 6px; justify-self: end; }

/* ---------- диалоги ---------- */
dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 18px 18px 0 0; background: var(--bg); color: var(--ink); max-height: 90vh; overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(19, 21, 21, .5); }
dialog.sheet[open] { animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { transform: translateY(32px); } }
@media (min-width: 620px) { dialog.sheet { width: 440px; margin: auto; border-radius: 18px; padding: 24px; } }

/* ---------- аналитика ---------- */
.chart-card { padding: 16px 16px 10px; }
.chart { display: block; width: 100%; height: 140px; }
.chart rect { fill: var(--brand); }
.chart rect.zero { fill: var(--line); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars-head, .bars-row { display: grid; grid-template-columns: 1fr 56px 56px 60px; gap: 8px; align-items: center; font-size: .9rem; }
.bars-row-2 { grid-template-columns: 1fr 56px; }
.bars-head { font-size: .75rem; color: var(--muted); font-weight: 600; }
.bars-row > span:not(.bars-label), .bars-head > span:not(:first-child) { text-align: right; font-weight: 600; }
.bars-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.bars-label i { display: block; height: 8px; min-width: 4px; border-radius: 4px; background: var(--brand); }

.bars-label i.gold { background: var(--gold); }
.bars-label i.soft { background: var(--line); }
.stat small { font: 600 .55em var(--font-body); }
.stat-brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stat-brand span { color: inherit; opacity: .85; }

.row-archived { min-height: 0; padding-top: 0; border-top: 0 !important; }

/* ---------- отчёт для клиента по ссылке ---------- */
body.report { background: var(--bg); }
.report-box { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.report-head img { height: 36px; width: auto; }
.report-box h1 { margin-bottom: 8px; }
.report-box .stats { margin-top: 16px; }
@media print { .report-box { max-width: none; padding: 0; } .block { break-inside: avoid; } }

/* ---------- настройки ---------- */
.listedit { gap: 8px; }
.le-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.le-row.is-hidden { background: var(--soft); }
.le-row.is-hidden .c-name { color: var(--muted); }
.le-new { border-style: dashed; }
.le-row input, .le-row select { min-height: 44px; }
.c-pos { width: 64px; flex: none; text-align: center; }
span.c-pos { font-size: 1.4rem; }
.c-name { flex: 1 1 200px; min-width: 0; }
.c-sm { width: 110px; flex: none; }
.c-md { width: auto; flex: 1 1 150px; }
.c-check { font-size: .9rem; font-weight: 600; flex: none; }
.listedit > .btn { align-self: flex-start; margin-top: 8px; }
.user-row { margin-bottom: 8px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.day span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; font-weight: 600; font-size: .9rem; }
.day input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.day input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ep { margin-bottom: 10px; }
.ep > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 32px; }
.ep > summary::-webkit-details-marker { display: none; }
.ep[open] > summary { margin-bottom: 16px; }
.ep > .field, .ep > .code, .ep > p { margin-bottom: 14px; }
.code { font: 400 .8rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border-radius: 10px; padding: 12px; margin: 0 0 12px; }
textarea.code { border: 1px solid var(--line); }
.logrow { display: block; }
.logrow > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.logrow > summary::-webkit-details-marker { display: none; }
.logrow[open] > summary { margin-bottom: 10px; }
.logo-preview { max-height: 56px; width: auto; align-self: flex-start; }

/* ---------- страницы без входа ---------- */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.bare-box { width: 100%; max-width: 400px; }
.bare-wide { max-width: 620px; }
.bare-logo { margin-bottom: 28px; }
.bare-logo img { height: 44px; width: auto; }
.bare-box h1 { margin-bottom: 20px; }
.bare-box h2 { margin-top: 12px; }
.bare-link { margin-top: 18px; text-align: center; }

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