/* Пряничная мастерская РобоСанты — опросник и пульт. Палитра FolloTeam: ночь, кость, оранжевый. */
:root {
  --night: #0B0D12;
  --surface: #151821;
  --surface-2: #0E1117;
  --line: rgba(236, 235, 230, .10);
  --bone: #ECEBE6;
  --muted: #A3A6AE;
  --dim: #8E919A;
  --orange: #FF4F12;
  --orange-2: #FF7A45;
  --green: #3FD483;
  --cold: #8EA3C7;
  --z: 1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--bone); }
body { font-family: 'Fira Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #FF8A5C; }
a:hover { color: #FFB08F; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: 'JetBrains Mono', monospace; }
.accent { color: var(--orange); }
.muted { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-live { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 212, 131, .18); }
.dot-green { background: #3FA66B; box-shadow: 0 0 0 4px rgba(63, 166, 107, .2); }
.dot-off { background: #5A6070; }

/* ---------- Опросник: ночное небо и раскладка ---------- */
.night {
  --sky:
    radial-gradient(rgba(236, 235, 230, .5) 1px, transparent 1.4px),
    radial-gradient(rgba(236, 235, 230, .25) 1px, transparent 1.4px),
    radial-gradient(90% 40% at 50% 0%, rgba(255, 79, 18, .14), transparent 70%);
  background-color: var(--night);
  background-image: var(--sky);
  background-size: 97px 89px, 61px 53px, 100% 100%;
  background-position: 12px 8px, 40px 30px, 0 0;
  background-attachment: fixed;
}
.night.glow-house { --sky:
    radial-gradient(rgba(236, 235, 230, .55) 1px, transparent 1.4px),
    radial-gradient(rgba(236, 235, 230, .3) 1px, transparent 1.4px),
    radial-gradient(120% 60% at 50% 34%, rgba(255, 138, 42, .16), transparent 60%); }
.night.is-closed { --sky:
    radial-gradient(rgba(236, 235, 230, .4) 1px, transparent 1.4px),
    radial-gradient(rgba(236, 235, 230, .2) 1px, transparent 1.4px),
    radial-gradient(100% 50% at 50% 20%, rgba(142, 163, 199, .12), transparent 70%); }

/* Низ экрана плавно растворяется: небо и панель уходят в ночь, а ниже начинается
   сцена site-holidays (её полоса стартует с прозрачного и темнеет в синий). */
:root { --fade: 200px; }
.screen.night { background: none; position: relative; isolation: isolate; }
.screen.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--night);
  background-image: var(--sky);
  background-size: 97px 89px, 61px 53px, 100% 100%;
  background-position: 12px 8px, 40px 30px, 0 0;
  background-attachment: fixed;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
}
/* Сцена зимы встаёт вплотную: убираем зазор и подтягиваем её градиент к нашему фону */
html.ft-winter-on body { background: var(--night); }

.screen { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; }
.hero { display: none; }
.pane { width: 100%; display: flex; justify-content: center; }
.col {
  zoom: var(--z);
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: calc(100dvh / var(--z));
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.col-center { align-items: center; gap: 0; padding-top: 26px; }

/* Планшет вертикально и вертикальный монитор: та же колонка, крупнее */
@media (min-width: 600px) and (orientation: portrait) {
  :root { --z: 1.4; }
  .col { max-width: 390px; }
}
@media (min-width: 1000px) and (orientation: portrait) {
  :root { --z: 1.9; }
}
/* Горизонтальные экраны: слева иллюстрация и шаги, справа панель с вопросом */
@media (min-width: 900px) and (orientation: landscape) {
  .screen { justify-content: flex-start; }
  .hero {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px;
    position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 40px 44px;
  }
  .pane {
    flex-shrink: 0; width: calc(390px * var(--z) + 96px);
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
    align-items: safe center;
    background: linear-gradient(to bottom, rgba(13, 15, 21, .84) calc(100% - var(--fade)), rgba(13, 15, 21, 0));
    border-left: 1px solid transparent;
    border-image: linear-gradient(to bottom, rgba(236, 235, 230, .08) calc(100% - var(--fade)), rgba(236, 235, 230, 0)) 1;
  }
  .col { max-width: 390px; min-height: 0; height: auto; }
  .inline-hero { display: none !important; }
  .col-center { padding-top: 32px; padding-bottom: 32px; }
  .col .foot { display: none; }
}
@media (min-width: 1300px) and (orientation: landscape) {
  :root { --z: 1.05; }
  .hero { padding: 56px 72px; }
}
@media (min-width: 2000px) and (orientation: landscape) {
  :root { --z: 1.2; }
  .hero { padding: 80px 128px; gap: 40px; }
  .pane { width: calc(390px * var(--z) + 200px); }
}

/* ---------- Левая часть (широкие экраны) ---------- */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-logo { width: 170px; height: auto; display: block; }
.hero-logo.dim, .inline-logo.dim { opacity: .75; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(236, 235, 230, .08); border: 1px solid rgba(236, 235, 230, .12); font: 700 13px 'JetBrains Mono', monospace; color: #C4C6CC; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero-title { margin: 0; font: 800 44px/1.02 'Fira Sans Condensed', sans-serif; letter-spacing: -.01em; max-width: 11em; }
.hero-text { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: #B3B5BC; }
.hero-illo { flex: 1; min-height: 0; display: flex; align-items: flex-end; }
.hero-illo .illo { display: block; width: 100%; max-width: 460px; height: auto; max-height: 100%; }
.hero-robot { align-items: center; }
.hero-robot .illo { width: 46%; max-width: 420px; }
.hero-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font: 500 14px 'JetBrains Mono', monospace; color: #9EA1AA; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.step-link { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; font-size: 17px; font-weight: 600; text-decoration: none; color: #6F7380; border: 1px dashed rgba(236, 235, 230, .10); }
.step-badge { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 700 13px 'JetBrains Mono', monospace; border: 1px solid rgba(236, 235, 230, .16); }
.is-done .step-link { color: #9EA1AA; border: 1px solid rgba(236, 235, 230, .06); }
.is-done .step-badge { border: 0; background: rgba(255, 79, 18, .16); color: var(--orange-2); }
.is-current .step-link { color: var(--bone); background: rgba(255, 79, 18, .08); border: 1px solid rgba(255, 79, 18, .45); box-shadow: 0 16px 40px -20px rgba(255, 79, 18, .6); }
.is-current .step-badge { border: 0; background: var(--orange); color: #0C0D0E; }
.step-link:hover { color: var(--bone); }
@media (min-width: 1300px) { .hero-title { font-size: 60px; } .hero-illo .illo { max-width: 640px; } }
@media (min-width: 2000px) { .hero-title { font-size: 88px; } .hero-text { font-size: 21px; max-width: 720px; } .hero-illo .illo { max-width: 1000px; } .steps { max-width: 560px; } .step-link { font-size: 20px; } }

/* ---------- Колонка: общие элементы ---------- */
.inline-hero { display: flex; flex-direction: column; align-items: center; width: 100%; }
.inline-logo { width: 132px; height: auto; display: block; }
.inline-house { display: block; width: calc(100% + 36px); max-width: 430px; height: auto; margin: 2px -18px 0; aspect-ratio: 390 / 304; }
.inline-house.tall { aspect-ratio: 390 / 338; margin-top: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--orange-2); letter-spacing: .02em; }
.hero-copy .eyebrow { font-size: 14px; }
.eyebrow.ok { color: var(--green); }
.eyebrow.cold { color: var(--cold); }
.h1 { margin: 0; font: 800 32px/1.05 'Fira Sans Condensed', sans-serif; letter-spacing: -.01em; }
.h2 { margin: 0; font: 800 31px/1.08 'Fira Sans Condensed', sans-serif; }
.lead { margin: 0; font-size: 15px; line-height: 1.5; color: #B3B5BC; }
.card { width: 100%; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -24px rgba(0, 0, 0, .9); display: flex; flex-direction: column; gap: 16px; position: relative; }
.login-card { margin-top: -10px; }
.closed-card { margin-top: 4px; background: #141720; gap: 14px; }
.field-label { display: flex; flex-direction: column; gap: 6px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #9EA1AA; }
.field { height: 50px; padding: 0 16px; border: 1px solid rgba(236, 235, 230, .16); border-radius: 12px; background: var(--surface-2); font: 500 16px 'Fira Sans', sans-serif; color: var(--bone); letter-spacing: 0; text-transform: none; }
.field::placeholder { color: #6F7380; }
.field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 79, 18, .22); }
.alert { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(224, 57, 62, .12); border: 1px solid rgba(224, 57, 62, .4); color: #FFB3B5; font-size: 14px; line-height: 1.4; }
.cta { flex: 1; min-height: 56px; margin-top: 4px; border: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border-radius: 14px; background: var(--orange); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #A83006, 0 16px 34px -10px rgba(255, 79, 18, .7); color: #0C0D0E; font: 800 19px 'Fira Sans Condensed', sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; text-align: center; }
.cta:hover { transform: translateY(-1px); color: #0C0D0E; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #A83006, 0 6px 18px -8px rgba(255, 79, 18, .6); }
.cta-big { min-height: 64px; border-radius: 16px; gap: 12px; }
.foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #9EA1AA; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid rgba(236, 235, 230, .08); }
.notice-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(142, 163, 199, .14); display: flex; align-items: center; justify-content: center; color: var(--cold); }
.notice-text { display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.45; color: #9EA1AA; }
.notice-text b { font-size: 15px; font-weight: 600; color: var(--bone); }

/* ---------- Вопрос ---------- */
.qform { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.qhead { display: flex; flex-direction: column; gap: 14px; }
.qtop { display: flex; align-items: center; justify-content: space-between; }
.qtop img { display: block; }
.who { font-size: 13px; font-weight: 700; color: #9EA1AA; }
.who b { color: var(--bone); }
.progress { display: grid; grid-template-columns: repeat(var(--total), minmax(0, 1fr)); gap: 6px; }
.progress span { height: 6px; border-radius: 3px; background: rgba(236, 235, 230, .12); }
.progress .on { background: var(--orange); }
.progress .now { box-shadow: 0 0 12px rgba(255, 79, 18, .8); }
.qtitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.qtitle-text { display: flex; flex-direction: column; gap: 10px; }
.qart { flex-shrink: 0; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 80px; padding: 16px; border-radius: 18px; cursor: pointer; background: var(--surface); border: 1.5px solid rgba(236, 235, 230, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.opt:hover { transform: translateY(-1px); border-color: rgba(236, 235, 230, .22); }
.opt:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 3px; }
.opt:has(input:checked) { background: #1F1714; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.key { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; font: 700 14px 'JetBrains Mono', monospace; background: var(--surface-2); color: #9EA1AA; border: 1px solid rgba(236, 235, 230, .14); }
.opt:has(input:checked) .key { background: var(--c); color: #0C0D0E; border-color: var(--c); }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.opt-title { font: 700 19px 'Fira Sans Condensed', sans-serif; color: var(--bone); }
.opt-sub { font-size: 14px; line-height: 1.35; color: var(--muted); }
.tick { opacity: 0; transition: opacity .12s; flex-shrink: 0; }
.opt:has(input:checked) .tick { opacity: 1; }
.opt-art { padding: 10px 14px 10px 10px; border-radius: 20px; min-height: 0; }
.opt-art:has(input:checked) { background: #171A24; }
.opt-art .stage { width: 92px; height: 104px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #1C2130; background-image: radial-gradient(60% 60% at 50% 45%, rgba(255, 154, 60, .22), transparent 70%); }
.opt-art .opt-body { gap: 4px; }
.opt-line { display: flex; align-items: center; gap: 8px; }
.opt-art .key { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.opt-art .opt-sub { font-size: 13px; }
.tag { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .04em; background: rgba(236, 235, 230, .08); color: #9EA1AA; }
.opt:has(input:checked) .tag, .side:has(input:checked) .tag { background: var(--c); color: #0C0D0E; }
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 16px; border-radius: 22px; cursor: pointer; text-align: center; background: var(--surface); border: 1.5px solid rgba(236, 235, 230, .10); transition: transform .12s ease, opacity .12s ease; }
.sides:has(input:checked) .side { opacity: .78; }
.side:hover { transform: translateY(-1px); opacity: 1 !important; }
.side:has(input:checked) { opacity: 1 !important; background: #171A24; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 22px 44px -18px var(--c); }
.side:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 3px; }
.side-art svg { display: block; }
.side-title { font: 800 24px 'Fira Sans Condensed', sans-serif; color: var(--bone); }
.side-sub { font-size: 14px; line-height: 1.35; color: var(--muted); }
.side .tag { align-self: center; margin-top: 6px; }
.qnav { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.row-nav { display: flex; gap: 12px; }
.row-nav .cta { margin-top: 0; }
.btn-square { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface); border: 1px solid rgba(236, 235, 230, .14); color: var(--bone); }
.btn-square:hover { color: var(--bone); border-color: rgba(236, 235, 230, .3); }
.back-link { align-self: center; padding: 10px 14px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---------- Накладная ---------- */
.inline-robot { margin-bottom: -26px; position: relative; z-index: 2; }
.robot-small { width: 150px; height: 150px; display: block; }
.ticket { width: 100%; position: relative; background: #F3EFE6; color: #1B1C20; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .4) inset; display: flex; flex-direction: column; }
.ticket-head { padding: 34px 22px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.stamp { position: absolute; top: 30px; right: 14px; transform: rotate(10deg); border: 2.5px solid #D93C00; border-radius: 10px; padding: 5px 9px; color: #D93C00; font: 700 10px/1.25 'JetBrains Mono', monospace; text-align: center; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.ticket-no { padding-right: 92px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6A6C73; text-transform: uppercase; }
.ticket-title { margin: 0; padding-right: 96px; font: 800 30px/1.05 'Fira Sans Condensed', sans-serif; }
.ticket-text { margin: 0; font-size: 14px; line-height: 1.45; color: #4A4C53; }
.perf { position: relative; height: 0; border-top: 2px dashed #CFC7B8; margin: 0 18px; }
.perf span { position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--night); }
.perf span:first-child { left: -30px; }
.perf span:last-child { right: -30px; }
@media (min-width: 900px) and (orientation: landscape) { .perf span { background: #0D0F15; } }
.secret { display: flex; align-items: center; gap: 8px; margin: 14px 22px 0; padding: 8px 12px; border-radius: 10px; background: #E9E3D6; color: #5A5C63; font-size: 12px; font-weight: 600; }
.kit { list-style: none; margin: 0; padding: 8px 18px 16px; display: flex; flex-direction: column; }
.kit li { display: flex; align-items: center; gap: 14px; padding: 5px 2px; }
.kit-box { width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; background: #E4DED1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; }
.kit-text { flex: 1; display: flex; flex-direction: column; }
.kit-alias { font-size: 12px; color: #6A6C73; }
.kit-val { font-size: 16px; font-weight: 600; }
.after { margin: 22px 0 0; max-width: 320px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.after-link { margin-top: 6px; padding: 10px 14px; font-size: 15px; font-weight: 600; }

/* =================================================================== */
/* ---------- Пульт ---------- */
.admin { background: var(--night); }
.adm { min-height: 100vh; display: flex; flex-wrap: wrap; justify-content: center; }
.adm-side { flex: 1 1 260px; max-width: max(290px, calc((1100px - 100%) * 1000)); padding: 22px 16px; background: #0F1117; border-right: 1px solid rgba(236, 235, 230, .07); display: flex; flex-direction: column; gap: 22px; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; color: var(--bone); }
.adm-brand b { display: block; font: 800 19px 'Fira Sans Condensed', sans-serif; }
.adm-brand small { font: 11px 'JetBrains Mono', monospace; color: var(--dim); }
.adm-label { padding: 0 6px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.season-pick { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.season-pick summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.season-pick summary::-webkit-details-marker { display: none; }
.yr { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--orange); color: #0C0D0E; display: flex; align-items: center; justify-content: center; font: 700 12px 'JetBrains Mono', monospace; }
.yr.off { background: #2A2F3B; color: #C4C6CC; }
.season-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.season-name b { font-weight: 600; font-size: 15px; }
.season-name small { font-size: 12px; }
.st-open { color: var(--green); }
.st-draft { color: #F6C343; }
.st-closed { color: var(--dim); }
.season-list { border-top: 1px solid rgba(236, 235, 230, .08); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.season-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--bone); text-decoration: none; font-size: 14px; }
.season-list a:hover { background: rgba(236, 235, 230, .05); }
.season-list .yr { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.plus { width: 26px; height: 26px; border-radius: 8px; border: 1.5px dashed rgba(236, 235, 230, .3); display: flex; align-items: center; justify-content: center; color: var(--orange-2); }
.season-list p { margin: 0; padding: 6px 8px 8px; font-size: 12px; line-height: 1.4; color: var(--dim); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: #C4C6CC; text-decoration: none; font-size: 15px; }
.nav a:hover { background: rgba(236, 235, 230, .05); color: var(--bone); }
.nav a[aria-current="page"] { background: rgba(255, 79, 18, .12); color: #FFF; font-weight: 600; }
.nav a[aria-current="page"] svg { stroke: var(--orange-2); }
.nav .count { margin-left: auto; font: 12px 'JetBrains Mono', monospace; color: var(--dim); }
.side-note { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(236, 235, 230, .08); display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.45; color: #9EA1AA; }
.side-note b { font-size: 13px; color: var(--bone); font-weight: 600; }
.adm-main { flex: 999 1 760px; min-width: 0; max-width: 1720px; padding: 26px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 700px) { .adm-main { padding: 18px 16px 40px; } .adm-side { border-right: 0; border-bottom: 1px solid rgba(236, 235, 230, .07); } }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.crumbs { font: 12px 'JetBrains Mono', monospace; color: var(--dim); }
.crumbs b { color: var(--bone); font-weight: 500; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(236, 235, 230, .14); background: var(--surface); color: var(--bone); font: 600 14px 'Fira Sans', sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: rgba(236, 235, 230, .3); color: var(--bone); }
.btn-primary { border: 0; background: var(--orange); color: #0C0D0E; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -10px rgba(255, 79, 18, .8); }
.btn-primary:hover { color: #0C0D0E; filter: brightness(1.05); }
.btn-soft { border: 1px solid rgba(255, 79, 18, .5); background: rgba(255, 79, 18, .1); color: #FF8A5C; font-weight: 700; justify-content: center; }
.btn-danger { border-color: rgba(224, 57, 62, .45); color: #FF9A9D; background: transparent; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.adm-hero { border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); background-color: var(--surface); background-image: radial-gradient(rgba(236, 235, 230, .45) 1px, transparent 1.4px), radial-gradient(70% 120% at 0% 0%, rgba(255, 79, 18, .16), transparent 60%); background-size: 73px 67px, 100% 100%; }
.adm-hero img { width: 340px; max-width: 100%; height: auto; display: block; }
.adm-hero-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.adm-hero h1 { margin: 0; font: 800 40px/1 'Fira Sans Condensed', sans-serif; }
.adm-hero p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(236, 235, 230, .08); color: #C4C6CC; font: 700 12px 'JetBrains Mono', monospace; text-decoration: none; }
a.pill:hover { color: var(--bone); background: rgba(236, 235, 230, .14); }
.pill-open { background: rgba(63, 212, 131, .12); color: var(--green); }
.pill-draft { background: rgba(246, 195, 67, .12); color: #F6C343; }
.pill-closed { background: rgba(142, 163, 199, .12); color: var(--cold); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid rgba(236, 235, 230, .08); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi-ring { flex-direction: row; align-items: center; gap: 16px; }
.kpi small { font-size: 13px; color: #9EA1AA; }
.kpi .big { font: 800 32px/1 'Fira Sans Condensed', sans-serif; }
.kpi .big span { color: #6F7380; }
.kpi .note { font-size: 12px; color: var(--dim); }
.big.hot { color: var(--orange-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2, .panel h2 { margin: 0; font: 800 24px 'Fira Sans Condensed', sans-serif; }
.sec-head span { font-size: 13px; color: var(--dim); }
.prod { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.prod-card { background: var(--surface); border: 1px solid rgba(236, 235, 230, .08); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.prod-top { display: flex; align-items: center; gap: 12px; }
.thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: #E9E6DF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-name { display: flex; flex-direction: column; line-height: 1.2; }
.prod-name b { font: 700 20px 'Fira Sans Condensed', sans-serif; }
.prod-name small { font-size: 12px; color: #9EA1AA; }
.bar { display: flex; gap: 3px; height: 10px; }
.bar span { border-radius: 3px; min-width: 4px; }
.bar .wait { background: repeating-linear-gradient(45deg, rgba(236, 235, 230, .18) 0 3px, transparent 3px 6px); }
.legend { display: flex; flex-direction: column; gap: 7px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .lbl { flex: 1; color: #C4C6CC; }
.legend .num { font: 700 14px 'JetBrains Mono', monospace; }
.legend .sub { font: 11px 'JetBrains Mono', monospace; color: var(--dim); }
.sw { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.prod-foot { padding-top: 10px; border-top: 1px dashed rgba(236, 235, 230, .12); font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.prod-foot b { color: var(--bone); font-family: 'JetBrains Mono', monospace; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.panel { background: var(--surface); border: 1px solid rgba(236, 235, 230, .08); border-radius: 20px; }
.panel-main { flex: 999 1 620px; min-width: 0; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid rgba(236, 235, 230, .08); border-radius: 12px; }
.tabs a { padding: 7px 12px; border-radius: 9px; font: 600 13px 'Fira Sans', sans-serif; color: #9EA1AA; text-decoration: none; }
.tabs a[aria-selected="true"] { background: #232836; color: var(--bone); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.scroll-x { overflow-x: auto; }
.table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border-top: 1px solid rgba(236, 235, 230, .07); border-bottom: 1px solid rgba(236, 235, 230, .07); }
.table td { padding: 10px; border-bottom: 1px solid rgba(236, 235, 230, .05); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; text-align: right; }
.table tr:hover td { background: rgba(236, 235, 230, .03); }
.who-cell { display: inline-flex; align-items: center; gap: 10px; }
.who-cell b { font-weight: 600; }
.who-cell small { display: block; font-size: 12px; color: var(--dim); font-weight: 400; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ava { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 700 13px 'Fira Sans Condensed', sans-serif; flex-shrink: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 700 11px 'JetBrains Mono', monospace; }
.status-done { background: rgba(63, 212, 131, .12); color: var(--green); }
.status-progress { background: rgba(246, 195, 67, .12); color: #F6C343; }
.status-silent { background: rgba(255, 122, 69, .12); color: var(--orange-2); }
.status-auto { background: rgba(142, 163, 199, .14); color: var(--cold); }
.cell { display: inline-flex; align-items: center; gap: 8px; }
.cell.skip { color: #5A6070; }
.cell.wait { color: #6F7380; }
.cell .fixed { font: 10px 'JetBrains Mono', monospace; color: var(--orange-2); }
.cell .auto { font: 10px 'JetBrains Mono', monospace; color: var(--cold); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(236, 235, 230, .12); border-radius: 10px; background: transparent; color: #C4C6CC; }
.icon-btn:hover { color: var(--bone); border-color: rgba(236, 235, 230, .3); }
.aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.panel-pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-pad p { margin: 0; font-size: 14px; line-height: 1.5; color: #9EA1AA; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; background: var(--surface-2); border: 1px solid rgba(236, 235, 230, .06); border-radius: 12px; font-size: 14px; }
.list li b { font-weight: 600; }
.dashed { border: 1px dashed rgba(236, 235, 230, .16); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.dashed b { font-size: 14px; color: var(--bone); font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inp, .sel { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(236, 235, 230, .16); background: var(--surface-2); color: var(--bone); font-size: 14px; min-width: 0; }
.inp:focus, .sel:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 79, 18, .2); }
.inp { flex: 1 1 120px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lbl-col { display: flex; flex-direction: column; gap: 6px; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lbl-col .inp, .lbl-col .sel { font: 500 15px 'Fira Sans', sans-serif; letter-spacing: 0; text-transform: none; height: 44px; }
.flash { padding: 10px 14px; border-radius: 12px; background: rgba(63, 212, 131, .1); border: 1px solid rgba(63, 212, 131, .3); color: var(--green); font-size: 14px; }
.gift-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(200px, 260px); gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid rgba(236, 235, 230, .06); }
@media (max-width: 700px) { .gift-row { grid-template-columns: 56px minmax(0, 1fr); } .gift-row > :last-child { grid-column: 1 / -1; } }
.gift-row .thumb { width: 72px; height: 72px; }
.gift-meta { display: flex; flex-direction: column; gap: 4px; }
.gift-meta .alias { font: 700 11px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); }
.gift-meta b { font: 800 20px 'Fira Sans Condensed', sans-serif; }
.gift-meta small { font-size: 13px; color: #9EA1AA; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.swatch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 5px; border-radius: 999px; background: rgba(236, 235, 230, .06); font-size: 12px; color: #C4C6CC; }
.q-card { padding: 16px 20px; border-top: 1px solid rgba(236, 235, 230, .06); display: flex; flex-direction: column; gap: 10px; }
.q-card h3 { margin: 0; font: 700 18px 'Fira Sans Condensed', sans-serif; }
.q-map { display: flex; flex-direction: column; gap: 6px; }
.q-map div { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.q-map .arrow { color: var(--dim); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 79, 18, .08); border: 1px solid rgba(255, 79, 18, .3); font-size: 14px; line-height: 1.5; color: #FFCDB8; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin: 1px 0 0; flex-shrink: 0; }
.check small { display: block; color: var(--dim); font-size: 12px; }
.people-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid rgba(236, 235, 230, .12); cursor: pointer; font-size: 14px; }
.pchip:has(input:checked) { border-color: rgba(255, 79, 18, .6); background: rgba(255, 79, 18, .1); }
.pchip input { accent-color: var(--orange); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.kit-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kit-mini > div { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid rgba(236, 235, 230, .06); font-size: 13px; }
.kit-mini small { display: block; color: var(--dim); font-size: 11px; }
.copied { color: var(--green) !important; border-color: rgba(63, 212, 131, .5) !important; }
@media (min-width: 1100px) { .adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
/* Пульт на телефоне: меню компактной лентой сверху */
@media (max-width: 700px) {
  .adm-side { gap: 12px; padding: 14px 12px; }
  .side-note { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; }
  .nav a { white-space: nowrap; flex-shrink: 0; padding: 8px 10px; font-size: 14px; }
  .nav .count { margin-left: 4px; }
  .adm-hero { padding: 20px; }
  .adm-hero h1 { font-size: 32px; }
}
.adm-side { min-width: 0; }
.lbl-col .inp, .lbl-col .sel { flex: none; width: 100%; }
@media (max-width: 700px) { .adm-side { flex-basis: 100%; max-width: 100%; } }
.side-art img { display: block; width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
/* Домик на парящем острове слегка покачивается */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.house-illo, .inline-house, .hero-illo .illo { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .house-illo, .inline-house, .hero-illo .illo { animation: none; } }
/* Остров чуть «нависает» над карточкой, чтобы форма поднялась выше */
.inline-hero { position: relative; z-index: 1; pointer-events: none; }
.login-card { margin-top: -30px; padding-top: 34px; }
.closed-card { margin-top: -26px; padding-top: 32px; }
