/* Оформление Anis: бирюзовый (firuza) и коралловый акцент, телефон в первую очередь. Цвета — только переменными. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #12201e;
  --muted: #5b6b68;
  --border: #dde5e2;
  --brand: #0f766e;
  --brand-hover: #0b5f58;
  --on-brand: #ffffff;
  --brand-soft: #dff1ed;
  --accent: #ff7a59;
  --accent-soft: #ffe9e2;
  --link: #0f766e;
  --hero-bg: #0f766e;
  --hero-text: #ffffff;
  --hero-muted: #cfe9e4;
  --ok: #18794e;
  --ok-soft: #ddf3e6;
  --warn: #8a5a00;
  --warn-soft: #fff1cc;
  --err: #c0362c;
  --err-soft: #fde8e6;
  --tip-bg: #12201e;
  --tip-text: #ffffff;
  --seat: #dde5e2;
  --code-bg: #0f1d1b;
  --code-text: #e3f1ee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 32, 30, .05), 0 4px 14px rgba(18, 32, 30, .06);
  --focus: 0 0 0 3px rgba(15, 118, 110, .35);
}
[data-theme="dark"] {
  --bg: #0b1413;
  --surface: #111e1c;
  --surface-2: #182825;
  --text: #e8f0ee;
  --muted: #94a8a4;
  --border: #23342f;
  --brand: #2bb3a3;
  --brand-hover: #43c9b8;
  --on-brand: #052421;
  --brand-soft: #12332f;
  --accent: #ff8b6e;
  --accent-soft: #3a2119;
  --link: #5fd3c4;
  --hero-bg: #0e2a27;
  --hero-text: #ffffff;
  --hero-muted: #a9c8c2;
  --ok: #4cc98a;
  --ok-soft: #12321f;
  --warn: #ffc94d;
  --warn-soft: #3a2f10;
  --err: #ff8a80;
  --err-soft: #3d1a17;
  --tip-bg: #e8f0ee;
  --tip-text: #12201e;
  --seat: #23342f;
  --code-bg: #07100f;
  --shadow: none;
  --focus: 0 0 0 3px rgba(43, 179, 163, .45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; margin-top: 1.4em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8em; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* --- логотип ---------------------------------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none !important; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-weight: 850; font-size: 1.35rem; letter-spacing: -.03em; }

/* --- кнопки ----------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--err); color: #fff; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .92rem; }
.btn-big { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1b8bc0; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--link); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}

/* --- шапка сайта ------------------------------------------------------------------------------------------------ */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.top-nav { display: none; gap: 20px; margin-left: 16px; }
.top-nav a { color: var(--text); font-weight: 550; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang a { padding: 8px 10px; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 860px) { .top-nav { display: flex; } }

/* --- главная ---------------------------------------------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 40px 0 48px; }
.hero-row { display: grid; gap: 28px; }
.eyebrow { color: var(--hero-muted); font-weight: 650; font-size: .92rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.08; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.hero .lead { color: var(--hero-muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn { background: var(--accent); color: #2a0f05; }
.hero .btn:hover { filter: brightness(1.05); }
.hero .btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(255, 255, 255, .4); }
.hero-card { color: var(--text); align-self: start; }
.hero-group { font-size: 1.5rem; font-weight: 800; margin: 2px 0 10px; }
.hero-free { font-weight: 700; margin: 8px 0 6px; }
.seat-row { display: flex; gap: 5px; flex-wrap: wrap; }
.seat { width: 22px; height: 22px; border-radius: 7px; background: var(--seat); }
.seat.taken { background: var(--brand); }
.facts { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 4px; }
.facts.big { font-size: 1.05rem; gap: 8px; }
.facts.big li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-row { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 48px; }
}
.band { padding-top: 40px; }
.band h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: 0; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.week { color: var(--brand); font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.result-icon { font-size: 2rem; margin-bottom: 6px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.program { padding-left: 1.4em; display: grid; gap: 8px; }
.program span { display: block; font-size: .92rem; }
.price-box { display: grid; gap: 20px; }
.price { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; }
.small-price { font-size: 1.2rem; }
.price-side { display: grid; gap: 10px; align-content: start; }
@media (min-width: 800px) { .price-box { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.faq { display: grid; gap: 8px; }
.faq details, .card details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.faq summary, .card summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.contacts { display: grid; gap: 16px; }
@media (min-width: 700px) { .contacts { grid-template-columns: repeat(3, 1fr); } }

/* --- подвал ----------------------------------------------------------------------------------------------------- */
.foot { margin-top: auto; padding: 32px 0; border-top: 1px solid var(--border); background: var(--surface); }
main { padding-bottom: 40px; }
.foot-row { display: grid; gap: 16px; }
.foot-row p { color: var(--muted); margin: 8px 0 0; }
.foot-contacts { display: grid; gap: 4px; }
@media (min-width: 700px) { .foot-row { grid-template-columns: 1fr auto; } }

/* --- карточки, сообщения, значки -------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
a.card { color: var(--text); text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--brand); }
.messages { display: grid; gap: 8px; margin: 16px auto 0; }
.app .messages { padding: 0; max-width: none; margin: 0 0 12px; }
.msg { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text); border: 1px solid transparent; }
.msg-success { background: var(--ok-soft); }
.msg-error { background: var(--err-soft); }
.msg-warning { background: var(--warn-soft); margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: var(--err-soft); color: var(--err); }

/* пустой список: сообщение по центру свободного места */
.empty { display: grid; place-items: center; text-align: center; color: var(--muted); min-height: 120px; padding: 24px; }
.empty h2 { color: var(--text); margin-top: 0; }
.empty-page { display: grid; place-items: center; min-height: calc(100vh - 220px); }
.empty-page .empty { max-width: 440px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 8px; }

/* --- подсказки data-tip ----------------------------------------------------------------------------------------- */
.tip { position: fixed; z-index: 100; max-width: 260px; padding: 7px 10px; border-radius: 8px; background: var(--tip-bg); color: var(--tip-text); font-size: .84rem; line-height: 1.35; pointer-events: none; }

/* --- формы ------------------------------------------------------------------------------------------------------ */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-weight: 650; font-size: .94rem; }
.req { color: var(--accent); }
input[type=text], input[type=search], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=number],
input[type=password], input[type=email], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input[type=file] { font: inherit; max-width: 100%; }
.field ul, .field > div:has(> div > label > input) { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field ul li, .field > div > div { margin: 0; }
.field ul label, .field > div > div > label, .choice {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; background: var(--surface); min-height: 44px;
}
.field ul label:has(input:checked), .field > div > div > label:has(input:checked), .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
input[type=radio], input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.hint { color: var(--muted); font-size: .86rem; }
.err { color: var(--err); font-size: .88rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 750; font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
.wizard-actions [data-save] { margin-left: auto; }
.wizard-actions [data-next] { margin-left: auto; }
.narrow-form { max-width: 640px; display: grid; gap: 14px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form select { flex: 1 1 180px; width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input { flex: 1 1 240px; width: auto; }
.filters select { flex: 0 1 200px; width: auto; }

/* шаги записи и мастера */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: st; flex-wrap: wrap; }
.stepper li { counter-increment: st; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.stepper li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .78rem; }
.stepper li + li::after { order: -1; content: ""; width: 16px; height: 2px; background: var(--border); margin-right: 2px; }
.stepper li.on { color: var(--text); }
.stepper li.on::before { background: var(--brand); color: var(--on-brand); }
.stepper li.done::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }
.steps-list { padding-left: 1.3em; display: grid; gap: 6px; margin: 12px 0 16px; }

/* --- вход ------------------------------------------------------------------------------------------------------- */
.login { padding-top: 40px; }
.login-card { padding: 28px 22px; }
.login-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- кабинет и панель: каркас ----------------------------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.side { display: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.app-top .tools { margin-left: auto; }
.app-content { padding: 16px 16px 96px; width: 100%; max-width: 1200px; }
.app .messages { padding: 12px 16px 0; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font-size: .72rem; font-weight: 650; text-decoration: none; border-radius: 10px; min-width: 0; }
.bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav a.on { color: var(--brand); }
.bottom-nav svg, .side-nav svg, .panel-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.panel-menu { position: relative; }
.panel-menu summary { list-style: none; }
.panel-menu summary::-webkit-details-marker { display: none; }
.panel-menu nav { position: absolute; left: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: grid; min-width: 220px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); z-index: 40; }
.panel-menu nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.panel-menu nav a.on { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; gap: 20px; width: 236px; flex: none; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; }
  .side-nav { display: grid; gap: 2px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
  .side-nav a:hover { background: var(--surface-2); }
  .side-nav a.on { background: var(--brand-soft); color: var(--brand); }
  .side-foot { margin-top: auto; display: grid; gap: 12px; }
  .side-foot .tools { margin-left: 0; }
  .app-top { display: none; }
  .bottom-nav { display: none; }
  .app-content { padding: 28px 32px 48px; }
  .app .messages { padding: 20px 32px 0; }
}
.page-head { margin-bottom: 18px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.two-col { display: grid; gap: 18px; }
.two-col > section h2:first-child { margin-top: 0; }
@media (min-width: 1100px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } .two-col.wide-left { grid-template-columns: 1.5fr 1fr; } }

/* прогресс */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* --- урок дня --------------------------------------------------------------------------------------------------- */
.lesson-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .92rem; margin-bottom: 6px; }
.lesson-head { margin-bottom: 16px; }
.lesson-head .lead { margin-bottom: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; position: sticky; top: 61px; z-index: 10; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lesson-grid { display: grid; gap: 16px; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notes-head h2 { margin: 0; font-size: 1.1rem; }
.notes form { flex: 1; display: flex; }
.notes textarea { flex: 1; min-height: 55vh; border: 0; padding: 4px 0; box-shadow: none !important; background: transparent; resize: none; font-size: 16px; line-height: 1.6; }
@media (max-width: 1099px) { .lesson-grid .pane-off { display: none; } }
@media (min-width: 1100px) {
  .seg { display: none; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .notes { position: sticky; top: 24px; height: calc(100vh - 48px); }
  .notes textarea { min-height: 0; }
}
@media (min-width: 1500px) { .lesson-grid { grid-template-columns: minmax(0, 1fr) 460px; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.2rem; }
.prose img { border-radius: 10px; border: 1px solid var(--border); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.prose pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--border); padding: 6px 10px; }
.homework { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
.homework h2 { margin-top: 0; }
.lesson-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.lesson-pager .btn { padding: 8px 12px; }

/* список уроков */
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lesson-list li > a, .lesson-list li.locked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.lesson-list li > a:hover { border-color: var(--brand); }
.lesson-list li.locked { opacity: .7; }
.lesson-list.admin li.locked { opacity: 1; padding: 0; border-style: dashed; }
.lesson-list.admin li.locked > a { border: 0; flex: 1; }
.ln { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand); }
.locked .ln { background: var(--surface-2); color: var(--muted); }
.lt { display: grid; flex: 1; min-width: 0; }
.lt b { overflow-wrap: anywhere; }
.lock { margin-left: auto; }

/* проект */
.stages { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0 0 14px; }
.stages li { text-align: center; padding: 8px 4px; font-size: .84rem; font-weight: 700; border-radius: 8px; background: var(--surface-2); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.stages li.done { background: var(--brand-soft); color: var(--brand); }
.stages li.on { background: var(--brand); color: var(--on-brand); }
.stages.mini li { font-size: .72rem; padding: 4px 2px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; align-items: center; }

/* оплата */
.pay-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .pay-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.pay-qr { text-align: center; }
.qr { width: 100%; max-width: 280px; border-radius: 12px; background: #fff; padding: 8px; margin: 12px auto; display: block; }
.small-qr { max-width: 160px; margin: 0 0 12px; }
.details { text-align: left; background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: .94rem; overflow-wrap: anywhere; }
.status-card { text-align: center; max-width: 560px; }

/* опросы: горизонтальные полосы */
.poll h2 { margin-top: 0; font-size: 1.1rem; }
.poll-form { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.bars { display: grid; gap: 10px; margin: 14px 0 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.bar-label { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
.bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 2px; }
.bars.big .bar { height: 18px; }
.bar-n { font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- панель ----------------------------------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--muted); text-decoration: none !important; font-size: .9rem; }
.tile-n { font-size: 1.9rem; font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-alert { border-color: var(--accent); background: var(--accent-soft); }
.row-card { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.group-card { display: grid; gap: 10px; }
.group-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 1.1rem; }
.project-card h3 { margin: 4px 0 6px; }
.project-card p { color: var(--muted); font-size: .92rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pay-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
.receipt { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.receipt img { width: 100%; height: 100%; object-fit: cover; }
.pdf { font-weight: 800; color: var(--err); }
.pay-info { display: grid; gap: 2px; min-width: 0; }
.pay-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.reject { border: 0 !important; padding: 0 !important; background: none !important; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.reject-form input { flex: 1 1 220px; width: auto; }
@media (min-width: 800px) { .pay-row { grid-template-columns: 72px minmax(0, 1fr) auto; } .pay-actions { grid-column: auto; } }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.row-line { padding: 6px 0; border-bottom: 1px solid var(--border); }
.row-line:last-child { border-bottom: 0; }
.note-view { padding-top: 8px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.session-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.session-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.session-list li.past { opacity: .6; }
.session-list .ln { width: 28px; height: 28px; font-size: .85rem; }
.img-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding-top: 10px; }
.img-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.img-row code { font-size: .78rem; overflow-wrap: anywhere; }
.img-row .btn { justify-self: start; }
