/* Готовые блоки страницы. Каждый уже проверен на телефоне (360), планшете, ноутбуке и широком мониторе.
   Новый блок — по их образцу: внутри .container, сетки через .grid или minmax(0, 1fr), без фиксированной высоты у текста. */

/* Шапка: на телефоне меню прячется в кнопку */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); font-weight: 700; font-size: var(--fs-18); color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-pill); color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: var(--sp-2) var(--gutter) var(--sp-4); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .header:not(.is-open) .nav { display: none; }
  .nav .btn { margin-top: var(--sp-2); }
}

/* Первый экран */
.hero { padding-block: clamp(48px, 9vw, 128px) var(--section); }
.hero-in { display: grid; gap: var(--sp-10); align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-text { display: flex; flex-direction: column; gap: var(--sp-6); }
.hero .lead { max-width: 52ch; }
@media (max-width: 860px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }

/* Заголовок секции */
.sec-head { display: flex; flex-direction: column; gap: var(--sp-3); max-width: var(--maxw-text); margin-bottom: var(--sp-10); }

/* Карточки преимуществ / услуг */
.card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }

/* Галерея: одинаковые пропорции, фото обрезается красиво, а не растягивается */
.gallery { --min: 240px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.gallery figcaption { font-size: var(--fs-14); color: var(--ink-soft); }

/* Отзывы */
.quote { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.quote p { font-size: var(--fs-18); }
.quote-who { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-14); color: var(--ink-soft); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: var(--r-pill); object-fit: cover; background: var(--accent-soft); }

/* Вопросы и ответы: <details> работает без JS */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 820px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--tap); padding: var(--sp-4) var(--sp-6); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: var(--fs-24); line-height: 1; color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 var(--sp-6) var(--sp-5); color: var(--ink-soft); }

/* Призыв + форма */
.cta { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding: clamp(24px, 5vw, 56px); border-radius: var(--r-lg); background: var(--accent-soft); }
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form > .btn { align-self: flex-start; }  /* кнопка по ширине надписи, не во всю форму */
.form-ok { display: none; padding: var(--sp-4); border-radius: var(--r); background: var(--surface); font-weight: 600; }
.form.is-sent .form-ok { display: block; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* Подвал */
.footer { padding-block: var(--sp-10); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-14); }
.footer-in { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: var(--tap); }

/* ===== НА ДЕЛЕ // STARTUP CITY — блоки сайта игры ===== */

/* Логотип: знак + название в две строки */
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-14); letter-spacing: .02em; }
.logo-text small { font-size: var(--fs-12); font-weight: 500; color: var(--ink-soft); }
.nav .nav-org { color: var(--accent-deep); font-weight: 600; }
.nav .nav-sep { width: 1px; height: 24px; margin-inline: var(--sp-2); background: var(--line); }
@media (max-width: 760px) { .nav .nav-sep { display: none; } }

/* Иконки — одна толщина линии */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 20px; height: 20px; }

/* Первый экран */
.hero-badge { display: inline-flex; align-items: center; gap: var(--sp-2); align-self: flex-start; min-height: 32px; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-14); font-weight: 600; color: var(--accent-deep); }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--sun); }
.facts { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); margin: 0; }
.facts div { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.facts dt { order: 2; font-size: var(--fs-14); color: var(--ink-soft); }
.facts dd { order: 1; margin: 0; font-family: var(--font-head); font-size: var(--fs-20); font-weight: 600; color: var(--accent-deep); }
.hero-media { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Две колонки, на телефоне — одна */
.split { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }

/* Суть игры: три опоры и формула */
.pillars { display: grid; gap: var(--sp-4); }
.pillar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pillar .card-ic { width: 44px; height: 44px; }
.pillar p { color: var(--ink-soft); }
.formula { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--accent-deep); color: var(--accent-ink); }
.formula .eyebrow { color: var(--sun); }
.formula-line { font-family: var(--font-head); font-size: var(--fs-20); font-weight: 600; line-height: 1.4; }
.formula p { max-width: var(--maxw-text); color: var(--accent-soft); }

/* 5 шагов */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: var(--sp-2); border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 600; }
.steps li:last-child::before { background: var(--sun); color: var(--ink); }
.steps p { color: var(--ink-soft); font-size: var(--fs-14); }

/* Станции */
.stations { --min: 320px; }
.station { gap: var(--sp-4); }
.station-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.station-top h3 { flex: 1; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-soft); font-size: var(--fs-12); font-weight: 600; }
.ticks { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: var(--sp-6); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.bring { margin-top: auto; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--sun-soft); font-size: var(--fs-14); }
.bring b { display: block; }
.mech { font-size: var(--fs-14); color: var(--ink-soft); }

/* Профессии */
.levels { display: grid; gap: var(--sp-3); }
.level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.level-n { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-head); font-weight: 600; }
.level p { font-size: var(--fs-14); color: var(--ink-soft); }
.groups { display: flex; flex-direction: column; gap: var(--sp-3); }
.group { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.group summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--tap); padding: var(--sp-4) var(--sp-5); font-weight: 600; cursor: pointer; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group summary .chip { margin-left: auto; }
.group summary::after { content: '+'; flex: none; font-size: var(--fs-20); line-height: 1; color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.group[open] summary::after { transform: rotate(45deg); }
.prof-list { display: flex; flex-direction: column; margin: 0; padding: 0 var(--sp-5) var(--sp-4); list-style: none; }
.prof-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); padding-block: var(--sp-3); border-top: 1px solid var(--line); }
.prof-list b { font-weight: 600; }
.prof-list span { grid-column: 1; font-size: var(--fs-14); color: var(--ink-soft); }
.prof-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: var(--fs-14); font-weight: 600; color: var(--accent-deep); }
@media (max-width: 560px) { .prof-list li { grid-template-columns: minmax(0, 1fr); } .prof-list em { grid-column: 1; grid-row: auto; } }

/* Ход цикла и раунд переговоров */
.tl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tl li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-4); padding-block: var(--sp-3); border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; }
.tl time { font-weight: 600; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.panel { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.panel-sun { background: var(--sun-soft); box-shadow: none; }
.panel .muted { font-size: var(--fs-14); }
.finale { margin-top: var(--sp-8); }

/* Тайминг */
.timing { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.timing li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--sp-1) var(--sp-6); align-items: baseline; padding: var(--sp-4) var(--sp-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.timing time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.timing b { font-weight: 600; }
.timing p { grid-column: 2; font-size: var(--fs-14); color: var(--ink-soft); }
.timing .is-talk { background: var(--sun-soft); border-color: transparent; }
.timing .is-final, .timing .is-prep { background: var(--accent-soft); border-color: transparent; }
@media (max-width: 560px) { .timing li { grid-template-columns: minmax(0, 1fr); } .timing p { grid-column: 1; } }

/* Игротехники */
.roles { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.roles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); padding: var(--sp-4); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.roles .n { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.roles p { font-size: var(--fs-14); color: var(--ink-soft); }
.scale { display: grid; gap: var(--sp-3); }
.scale div { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.scale strong { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-20); color: var(--accent-deep); }
.scale p { font-size: var(--fs-14); color: var(--ink-soft); }

/* Чек-лист */
.check-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); margin-bottom: var(--sp-6); }
.progress { display: flex; align-items: center; gap: var(--sp-3); width: min(100%, 480px); }
.progress-track { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 100%; border-radius: var(--r-pill); background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--dur) var(--ease); }
.progress-text { font-weight: 600; font-variant-numeric: tabular-nums; }
.checks { --min: 260px; align-items: start; }
.check-group { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.check-group h3 { margin-bottom: var(--sp-2); }
.check { position: relative; display: block; min-height: var(--tap); padding: var(--sp-2) 0; cursor: pointer; }
.check input:checked + span { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--accent); }
.check small { display: block; font-size: var(--fs-12); color: var(--ink-faint); }

/* Файлы для печати */
.files { --min: 340px; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: var(--sp-3) var(--sp-4); align-items: start; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.file-n { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-head); font-size: var(--fs-14); font-weight: 600; }
.file-body { display: flex; flex-direction: column; gap: var(--sp-1); }
.file-body p { font-size: var(--fs-14); color: var(--ink-soft); }
.file-meta { font-size: var(--fs-12); color: var(--ink-faint); }
.file .btn { grid-column: 2; justify-self: start; min-height: var(--tap); padding-inline: var(--sp-5); }
.file-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--accent-deep); color: var(--accent-ink); }
.file-all p { color: var(--accent-soft); }
.file-all .btn { background: var(--sun); color: var(--ink); }
.file-all .btn:hover { background: var(--surface); color: var(--ink); }

/* Рабочая таблица */
.sheets { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sheets li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); }
.sheets li:first-child { border-top: 0; }
.sheets b { font-weight: 600; }
.sheets code { grid-column: 2; justify-self: start; padding: 0 var(--sp-2); border-radius: var(--r-sm); background: var(--sun-soft); font: 600 var(--fs-12)/2 var(--font); letter-spacing: .04em; }
.sheets span { grid-column: 2; font-size: var(--fs-14); color: var(--ink-soft); }
@media (max-width: 560px) { .sheets li { grid-template-columns: minmax(0, 1fr); } .sheets code, .sheets span { grid-column: 1; } }
.rules-sheet { display: flex; flex-direction: column; gap: var(--sp-3); }
.rule { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--sp-3); }
.swatch { width: 24px; height: 24px; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* Заявка */
.apply-info { display: flex; flex-direction: column; gap: var(--sp-3); }
.event { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); border-radius: var(--r); background: var(--surface); }
.event b { font-weight: 600; }
.field-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.consent { position: relative; display: block; min-height: var(--tap); padding: var(--sp-2) 0; font-size: var(--fs-14); color: var(--ink-soft); }
/* Свой флажок: сам input прозрачный и большой (44×44 — удобно пальцем), рамку и галочку рисует span */
.check > input, .consent > input { position: absolute; left: -12px; top: 0; width: var(--tap); height: var(--tap); margin: 0; opacity: 0; cursor: pointer; }
.check > span, .consent > span { position: relative; display: block; padding-left: var(--sp-8); }
.check > span::before, .consent > span::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); transition: background var(--dur-fast) var(--ease); }
.check > span::after, .consent > span::after { content: ''; position: absolute; left: 7px; top: 6px; width: 6px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform var(--dur-fast) var(--ease); }
.check > input:checked + span::before, .consent > input:checked + span::before { background: var(--accent); }
.check > input:checked + span::after, .consent > input:checked + span::after { transform: rotate(45deg) scale(1); }
.check > input:focus-visible + span::before, .consent > input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { display: none; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--surface); color: var(--danger); font-weight: 600; }
.form.is-err .form-err { display: block; }
.form.is-sent .field, .form.is-sent .field-row, .form.is-sent .consent, .form.is-sent > .btn { display: none; }

/* Заглушка «уточнить» — заметная, чтобы не забыть */
.todo { padding: 0 var(--sp-1); border-radius: var(--r-sm); background: var(--sun-soft); color: var(--ink); font-weight: 600; }

.footer-in > div { display: flex; flex-direction: column; gap: var(--sp-1); }
.footer b { color: var(--ink); font-weight: 600; }

/* Кабинет организаторов (org/) */
.org [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; text-overflow: ellipsis; }
.org-who { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.org-who small { font-size: var(--fs-12); color: var(--ink-faint); }
.login-card { gap: var(--sp-4); max-width: var(--maxw-form); margin-inline: auto; padding: var(--sp-8); box-shadow: var(--shadow); }
.org-app { padding-top: var(--sp-6); }
.tabs { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-8); padding: var(--sp-1); border-radius: var(--r); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; min-height: var(--tap); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow); }
.pane { display: flex; flex-direction: column; gap: var(--sp-6); }
.pane-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-8); }
.pane-head > div:first-child { display: flex; flex-direction: column; gap: var(--sp-2); max-width: var(--maxw-text); }
.org-search { width: 320px; max-width: 100%; }
.team-list { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.team { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.team.st-ok { border-left-color: var(--accent-deep); }
.team.st-wait { border-left-color: var(--sun); }
.team.st-no { border-left-color: var(--line); opacity: .75; }
.team-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.team-meta { font-size: var(--fs-14); color: var(--ink-faint); }
.team summary { min-height: var(--tap); display: flex; align-items: center; color: var(--accent-deep); font-weight: 600; cursor: pointer; }
.pre { white-space: pre-line; }
.team-edit { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); align-items: end; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.team-note { grid-column: 1 / -1; }
.btn-del { color: var(--danger); }
.check-line { display: flex; align-items: flex-start; gap: var(--sp-2); }
.check-line .check { flex: 1; }
.icon-btn { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-faint); font-size: var(--fs-20); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--danger); }
.add-row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: end; max-width: 960px; }
.add-grow { grid-column: span 2; }
@media (max-width: 560px) { .add-grow { grid-column: auto; } }
.staff { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 960px; }
.staff-row { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; padding: var(--sp-4); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.staff-row.is-read { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) { .staff-row, .staff-row.is-read { grid-template-columns: minmax(0, 1fr); } }
.org-files { display: flex; flex-direction: column; max-width: 960px; margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.org-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); }
.org-files li:first-child { border-top: 0; }
.org-files a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.org-files span { font-size: var(--fs-14); color: var(--ink-faint); }
.users { display: flex; flex-direction: column; gap: var(--sp-2); max-width: 960px; margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.user { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.user > span:first-child { display: flex; flex-direction: column; }
.user small { font-size: var(--fs-14); color: var(--ink-faint); }
.pw-form { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .org-who { display: none; } }

/* Экран ведущего (ekran.html): тёмный, крупные цифры, видно с последнего ряда */
.screen { min-height: 100vh; background: var(--accent-deep); color: var(--on-dark); }
.screen.is-talk { background: var(--ink); }
.screen-in { min-height: 100vh; display: flex; align-items: center; padding-block: var(--sp-8); }
.screen-grid { display: grid; gap: var(--sp-10); grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; }
@media (max-width: 860px) { .screen-grid { grid-template-columns: minmax(0, 1fr); } }
.screen-main { display: flex; flex-direction: column; gap: var(--sp-4); }
.screen-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.screen-logo, .screen-logo small { color: var(--on-dark); }
.screen-clock { font-weight: 600; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.screen-kind { font-size: var(--fs-18); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.screen-name { font-size: var(--fs-screen); color: var(--on-dark); }
.screen-time { font-family: var(--font-head); font-size: var(--fs-timer); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.is-last-minute .screen-time { color: var(--sun); }
.screen-bar { height: 8px; max-width: 720px; border-radius: var(--r-pill); background: var(--dark-2); overflow: hidden; }
.screen-bar div { height: 100%; border-radius: var(--r-pill); background: var(--sun); transform-origin: left; transform: scaleX(0); transition: transform 250ms linear; }
.screen-phase { max-width: var(--maxw-text); font-size: var(--fs-24); line-height: 1.35; }
.screen-next { color: var(--on-dark-soft); font-size: var(--fs-18); }
.screen-ctrl { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.screen .btn-ghost { color: var(--on-dark); border-color: var(--on-dark-soft); }
.screen .btn-ghost:hover { background: var(--dark-2); color: var(--on-dark); }
.btn-play { min-width: 160px; background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-play:hover { background: var(--sun-soft); color: var(--ink); }
.screen-keys { font-size: var(--fs-14); color: var(--on-dark-soft); }
.screen-list { display: flex; flex-direction: column; gap: var(--sp-1); max-height: 80vh; margin: 0; padding: var(--sp-2); list-style: none; overflow-y: auto; border-radius: var(--r-lg); background: var(--dark-2); }
.screen-list button { display: flex; justify-content: space-between; gap: var(--sp-3); width: 100%; min-height: var(--tap); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--on-dark); font: inherit; font-size: var(--fs-14); text-align: left; cursor: pointer; align-items: center; }
.screen-list button span { color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.screen-list button:hover { background: var(--accent-deep); }
.screen-list .is-talk button { color: var(--sun-soft); }
.screen-list .is-done button { color: var(--on-dark-soft); }
.screen-list .is-now button { background: var(--on-dark); color: var(--ink); font-weight: 600; }
.screen-list .is-now button span { color: var(--ink-soft); }
