/* UGC Пульс — компоненты дизайн-системы «Пульс» (16.10.2026). Подключается последним; значения — только из tokens.css.
   Разделы: основа · вход и публичные экраны · оболочка · заголовок страницы · плитки · панели и графики · таблицы и бейджи ·
   кнопки · поля и формы · подсказки и уведомления · пустые состояния и скелетоны · окна и шторки · тосты · движение · телефон.
   Ранние слои задают раскладку; здесь — облик. Свойства раскладки, которые меняются здесь, повторены в своих @media ниже. */

/* =========================================================== основа */
body { font-family: var(--font); background: var(--bg); color: var(--text); }
h1, h2, h3 { color: var(--text); font-family: var(--font); }
h1 { font-size: var(--fs-30); font-weight: 680; letter-spacing: var(--tracking-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-20); font-weight: 650; letter-spacing: var(--tracking-title); line-height: 1.25; }
h3 { font-weight: 650; letter-spacing: -.01em; }
a { color: var(--accent-text); text-underline-offset: 3px; }
small, .muted { color: var(--text-3); }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.number-cell, .stat .number, .platform-number, .pub-nums dd, .table td, .status-row strong, .an-line, .history-entry { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* загрузка приложения */
.loading.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; color: var(--text-3); font-size: 14px; }
.boot-mark { width: 48px; height: 48px; border-radius: 13px; box-shadow: var(--shadow-raise); animation: boot-breathe 1.6s var(--ease-in-out) infinite; }
.boot-line { width: 120px; height: 3px; border-radius: 3px; background: var(--surface-sunken); position: relative; overflow: hidden; }
.boot-line::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--text); animation: boot-run 1.1s var(--ease-in-out) infinite; }
@keyframes boot-breathe { 50% { transform: scale(.94); opacity: .85; } }
@keyframes boot-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* =========================================================== вход и публичные экраны */
.login { min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--bg); }
.login-art { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  isolation: isolate; overflow: hidden; color: var(--text); padding: 56px 64px 48px; border: 0; background: var(--bg); }
/* мелкая сетка и шум: глубина без картинок */
.login-art::before { content: none; }
.login-art::after { content: none; }
.login-art .brand { justify-content: flex-start; color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -.02em; gap: 12px; }
.login-art .logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .1); }
.login-art h1 { color: var(--text); font-size: clamp(44px, 4.6vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; max-width: 620px; margin-top: clamp(48px, 10vh, 112px); text-wrap: balance; }
.login-art p { color: var(--text-3); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.01em; font-weight: 450; max-width: 470px; margin-top: 20px; }
.login-foot { position: relative; margin-top: auto; padding-top: 24px; color: var(--text-4); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.orb { display: none; }

/* сцена «пульс»: линия рисуется, по ней бежит блик, у конца — живая точка */
.pulse-scene { position: relative; height: clamp(150px, 26vh, 250px); margin: 40px -64px 0; flex: none; }
.pulse-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pulse-scene path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ps-grid line { stroke: rgba(0, 0, 0, .05); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.pulse-scene .ps-area { fill: url(#ps-area); stroke: none; opacity: 0; animation: ps-fade 1.2s var(--ease-out) 1.1s forwards; }
/* линия «проявляется» слева направо (clip-path всей картинки: штрих с vector-effect нельзя честно мерить pathLength при растяжении) */
.pulse-scene svg { clip-path: inset(-30px 100% -30px -30px); animation: ps-wipe 2.2s var(--ease-out) .2s forwards; }
@keyframes ps-wipe { to { clip-path: inset(-30px -30px -30px -30px); } }
.ps-line { stroke-width: 1.6; }
.ps-spark { stroke: #0071e3; stroke-width: 2; stroke-dasharray: 40 6000; stroke-dashoffset: 40; opacity: 0; animation: ps-run 5s linear 2.4s infinite; }
.ps-head { position: absolute; left: 97.33%; top: 20%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #1d1d1f;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, .08); opacity: 0; animation: ps-fade .4s var(--ease-out) 2.2s forwards; }
.ps-ring { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); animation: ps-ping 2.8s var(--ease-out) 2.6s infinite; opacity: 0; }
@keyframes ps-fade { to { opacity: 1; } }
@keyframes ps-run { 0% { stroke-dashoffset: 56; opacity: 0; } 8% { opacity: .9; } 80% { opacity: .9; } 100% { stroke-dashoffset: -1500; opacity: 0; } }
@keyframes ps-ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

/* правая колонка: форма */
.login-form { padding: 56px 48px; background: var(--bg); }
.login-box { width: min(420px, 100%); padding: 36px 34px 30px; border-radius: 22px; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .03), 0 18px 50px rgba(0, 0, 0, .06); }
.login-box h2 { font-size: 32px; font-weight: 680; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 10px; text-wrap: balance; }
.login-box > p { color: var(--text-3); font-size: 15px; line-height: 1.55; margin-bottom: 28px; }
.login-box .form { gap: 16px; }
.login-box .form > .btn { min-height: var(--control-h-lg); font-size: 15px; }
.login-box .form > .btn.primary { margin-top: 6px; }
.login-box .footnote { color: var(--text-3); font-size: 13px; line-height: 1.6; margin-top: 22px; }
.login-box .legal-links { margin-top: 14px; }
.login-box .legal-links a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); }
.login-box .legal-links a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.login-box .help-login { margin-top: 18px; text-align: left; }
.login-box .help-login .btn.ghost { padding-left: 0; padding-right: 0; }
.login-box .help-login .btn.ghost:hover { background: none; text-decoration: underline; }
.demo-block { border-top: 1px solid var(--border); }
.demo-roles button { min-height: 44px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 550; transition: border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.demo-roles button:hover { border-color: var(--accent-border); color: var(--text); background: var(--accent-soft); }
.step-label { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.connect-pulse { background: var(--pulse); box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); }
@keyframes connect-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); } 70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } } 70% { box-shadow: 0 0 0 10px rgba(56, 225, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 225, 208, 0); } }
.connect-mark.done, .connect-mark.pending { background: #1d1d1f; color: #fff; box-shadow: 0 0 0 6px var(--surface-3); }
.copy-link { background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--text-2); border-radius: var(--r-md); font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.pending-facts { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.pending-tip { background: var(--accent-soft); color: var(--text-2); border-radius: var(--r-lg); }
.pending-tip strong { color: var(--text); }

/* =========================================================== оболочка: боковая панель */
.shell { --sidebar-w: 248px; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); background: linear-gradient(90deg, #f0f0f2 calc(var(--sidebar-w) - 1px), rgba(0, 0, 0, .08) calc(var(--sidebar-w) - 1px), rgba(0, 0, 0, .08) var(--sidebar-w), var(--bg) var(--sidebar-w)); } /* колонка панели тёмная на всю высоту страницы */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 26px 14px 18px; border: 0; color: var(--text);
  background: rgba(240, 240, 242, .86); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08);
}
.sidebar .brand { color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; padding: 0 8px; gap: 10px; text-decoration: none; }
.sidebar .brand:hover { text-decoration: none; }
.sidebar .logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .06); }
.sidebar .brand-note { color: var(--text-3); font-size: 12px; letter-spacing: 0; margin: 6px 0 24px 48px; }
.nav { gap: 2px; }
.nav button { position: relative; min-height: 36px; padding: 8px 10px; gap: 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 450;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.nav button:hover { background: rgba(0, 0, 0, .04); color: var(--text); }
.nav button.active { color: var(--text); font-weight: 600; background: rgba(0, 0, 0, .07); box-shadow: none; }
.nav button.active::before { content: none; }
.nav svg { width: 18px; height: 18px; color: var(--text-3); }
.nav button.active .symbol { color: var(--text); }
.nav-badge { background: #ff3b30; color: #fff; box-shadow: 0 0 0 2px #f0f0f2; font-variant-numeric: tabular-nums; }
.helpbox { background: rgba(255, 255, 255, .6); border: 1px solid rgba(0, 0, 0, .06); color: var(--text-3); border-radius: 12px; font-size: 12.5px; line-height: 1.5; padding: 12px 13px; }
.helpbox strong { color: var(--text); font-weight: 600; }
.identity { border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 14px; }
.identity .name { color: var(--text); font-size: 13.5px; font-weight: 600; }
.identity small { color: var(--text-3); font-size: 12px; }
.identity-link:hover { background: rgba(0, 0, 0, .04); }
.sidebar .avatar { color: #fff; background: linear-gradient(180deg, #a1a1a6, #6e6e73); box-shadow: none; }
.sidebar .exit { color: var(--text-3); }
.sidebar .exit:hover { color: var(--text); background: rgba(0, 0, 0, .05); }

/* шапка рабочей области */
.workspace { padding: 0 40px 56px; }
.topbar { height: 72px; border-bottom: 1px solid var(--border); }
.breadcrumbs { color: var(--text-3); font-size: 13px; }
.breadcrumbs strong { color: var(--text); font-weight: 600; }
.top-actions { gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 2px; color: var(--text-3); font-size: 12.5px; padding: 6px 11px 6px 9px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); font-variant-numeric: tabular-nums; }
.dot { position: relative; width: 7px; height: 7px; margin-right: 7px; background: var(--success); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--success); opacity: 0; animation: live-ping 2.8s var(--ease-out) infinite; }
@keyframes live-ping { 0% { transform: scale(.4); opacity: .8; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.topbar select { min-height: 36px; padding: 7px 30px 7px 12px; border-radius: var(--r-md); border: 1px solid var(--border-field); background-color: var(--surface); color: var(--text); font-size: 13px; font-weight: 520; box-shadow: var(--shadow-xs); }
.topbar .exit { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--r-md); color: var(--text-3); }
.topbar .exit:hover { background: var(--surface-3); color: var(--text); }
.topbar .exit.help-btn { width: auto; display: inline-flex; gap: 7px; padding: 0 10px; white-space: nowrap; color: var(--text-2); }
.demo-badge { background: var(--warning-soft); color: var(--warning-text); border: 1px solid var(--warning-border); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; }
.help-btn { color: var(--text-2); font-weight: 550; }
.help-btn:hover { color: var(--text); text-decoration: none; }
.help-btn-mark { border-width: 1.5px; }
.viewing-bar { background: #1d1d1f; color: #f5f5f7; border-bottom: 0; }

/* заголовок страницы */
.page-head { padding: 34px 0 24px; align-items: flex-end; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.page-head p { color: var(--text-3); font-size: 14.5px; line-height: 1.55; margin-top: 8px; max-width: 64ch; }
.tip-btn { width: 26px; height: 26px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-3); font-size: 14px; vertical-align: 4px; transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.tip-btn:hover { color: var(--text); border-color: var(--accent-border); background: var(--accent-soft); }
.subheading { font-size: 20px; letter-spacing: var(--tracking-title); }
.section-lead { color: var(--text-3); }

/* =========================================================== фильтры и переключатели */
.filters { padding-bottom: 20px; }
.fld { color: var(--text-3); font-size: 12px; }
.fld span { font-weight: 550; }
.fld select, .fld input, .filters select, .filters input, .people-search input, .payout-toolbar select, .payout-toolbar input {
  border: 1px solid var(--border-field); border-radius: var(--r-md); background-color: var(--surface); color: var(--text); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.fld select:hover, .fld input:hover, .people-search input:hover { border-color: var(--border-strong); }
.fld select:focus, .fld input:focus, .filters select:focus, .filters input:focus, .people-search input:focus, .payout-toolbar select:focus, .payout-toolbar input:focus, .topbar select:focus { outline: none; border-color: #0071e3; box-shadow: var(--focus-ring); }
.filters-extra { border-top: 1px dashed var(--border-strong); }
.filter-chip { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-border); }
.chip-x { background: transparent; color: var(--text); }
.chip-x:hover { background: var(--accent-soft-2); }
.segmented { background: var(--surface-3); border-radius: var(--r-md); padding: 3px; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05); }
.segmented button { color: var(--text-3); font-weight: 550; border-radius: 8px; transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--surface); color: var(--text); font-weight: 620; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

/* =========================================================== плитки показателей */
.stats { gap: 16px; margin-bottom: 24px; }
.stat {
  position: relative; overflow: hidden; padding: 20px 22px 20px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.stat .label { color: var(--text-3); font-size: 13px; font-weight: 550; margin-bottom: 14px; line-height: 1.35; padding-right: 34px; }
.stat .number { color: var(--text); font-size: clamp(28px, 2.3vw, 36px); font-weight: 680; letter-spacing: -.04em; line-height: 1.05; }
.stat .number.long { font-size: clamp(24px, 2vw, 32px); }
.stat .number.text { font-size: 22px; font-weight: 620; letter-spacing: -.02em; color: var(--text-2); }
.stat .note { color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 10px; }
.stat-symbol { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; line-height: 1;
  color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); }
.stat.highlight { background: var(--accent-soft); border-color: var(--accent-border); }
.stat.highlight .number { color: var(--text); }
.stat.highlight .stat-symbol { color: var(--text); background: var(--surface); border-color: var(--accent-border); }
/* главная цифра месяца */
.stat.hero { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-card); }
.stat.hero { padding-bottom: 46px; }
.stat.hero::after { content: none; }
.stat.hero .label { color: var(--text-3); }
.stat.hero .number { color: var(--text); }
.stat.hero .note { color: var(--text-3); position: relative; z-index: 1; }
.stat.hero .stat-symbol { color: var(--text-3); background: var(--surface-2); border-color: var(--border); }
.dialog-body .stat { box-shadow: none; padding: 14px 16px; border-radius: var(--r-lg); }
.dialog-body .stat .stat-symbol { display: none; }

/* =========================================================== панели, карточки, графики */
.panel, .brief-card, .member-card, .rights-card, .help-sec { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); border-radius: var(--r-xl); }
.panel { overflow: hidden; overflow: clip; }
.panel-head { padding: 22px 24px 16px; }
.panel-head h2 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.panel-head p { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.panel-body { padding: 22px 24px; }
.panel-head + .panel-body { padding-top: 0; }
.panel-footer { color: var(--text-3); font-size: 12.5px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.panel + .panel, .panel + .stats, .stats + .panel { margin-top: 20px; }
.content-grid { gap: 20px; }
.brief-card, .member-card { padding: 22px; transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.brief-card:hover, .member-card:hover { box-shadow: var(--shadow-raise); border-color: var(--border-strong); }
.brief-card h3 { font-size: 18px; letter-spacing: -.02em; }
.brief-card footer { border-top: 1px solid var(--border); color: var(--text-3); }
.data-card { padding: 24px; }
.status-row { border-bottom: 1px solid var(--border); }
.helpbox, .rights-mini { border-radius: var(--r-lg); }
.rights-mini { background: var(--surface-2); border: 1px solid var(--border); }
.rights-card.mine { border-color: var(--accent-border); background: var(--accent-soft); }
.rights li.yes::before { color: var(--success); }
.rights li.no::before { color: var(--danger); }
.avatar { background: var(--surface-3); color: var(--text-2); font-weight: 650; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px var(--border); }
.member-card .avatar { background: linear-gradient(135deg, var(--accent-soft-2), var(--surface-3)); color: var(--text); }

.chart-wrap { padding: 4px 22px 18px; }
.chart line { stroke: var(--chart-grid); }
.chart path[fill="none"] { stroke: var(--chart-1); stroke-width: 2.5; }
.chart circle { fill: var(--surface); stroke: var(--chart-1); }
.chart stop { stop-color: var(--chart-1); }
.chart-labels { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.platform-bar { background: var(--surface-3); height: 6px; border-radius: 6px; }
.platform-bar span { height: 6px; border-radius: 6px; background: #1d1d1f; }
.platform-title { color: var(--text-2); }
.platform-icon { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); }
.an-progress { background: var(--surface-3); }
.an-progress span { background: #1d1d1f; }
.an-progress.done span { background: var(--success); }
.an-bar-revenue { fill: var(--chart-1); }
.an-bar-cost, .an-dot.cost { fill: var(--chart-2); background: var(--chart-2); }
.an-dot.revenue { background: var(--chart-1); }
.an-total td { background: var(--surface-2); }
.empty.chart-few { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }

/* =========================================================== таблицы */
.table { font-size: 13.5px; color: var(--text-2); }
.table th { background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .01em; border-bottom: 1px solid var(--border); padding-top: 12px; padding-bottom: 12px; }
.table td { border-bottom: 1px solid var(--border); padding-top: 14px; padding-bottom: 14px; }
.table tbody tr { transition: background-color var(--dur-1) var(--ease-out); }
.table tbody tr:hover { background: var(--surface-hover); }
.table .post-title { color: var(--text); font-weight: 600; }
.table small { color: var(--text-3); }
.number-cell { color: var(--text); font-weight: 600; }
.cell-person .avatar { width: 32px; height: 32px; font-size: 11.5px; }
/* липкий заголовок: только у таблиц, которые помещаются в панель (app-design.js ставит .fits) */
.panel:has(> .table-wrap.fits), .panel:has(> * > .table-wrap.fits) { overflow: visible; }
.table-wrap.fits { overflow: visible; background: none; }
.table-wrap.fits .table th { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.table-wrap.fits .table thead th:first-child { border-top-left-radius: 0; }

/* бейджи состояний: точка + текст */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 560; line-height: 1.45;
  background: var(--neutral-soft); color: var(--neutral-text); box-shadow: inset 0 0 0 1px var(--border); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; flex: none; }
.pill.ok, .pill.active, .pill.frozen, .pill.paid, .pill.done, .pill.approved, .pill.confirmed { background: var(--success-soft); color: var(--success-text); box-shadow: inset 0 0 0 1px var(--success-border); }
.pill.partial, .pill.pending, .pill.queued, .pill.an-out, .pill.waiting, .pill.registered { background: var(--warning-soft); color: var(--warning-text); box-shadow: inset 0 0 0 1px var(--warning-border); }
.pill.error, .pill.blocked, .pill.needs_review, .pill.suspended, .pill.an-check, .pill.mismatch, .pill.rejected, .pill.failed { background: var(--danger-soft); color: var(--danger-text); box-shadow: inset 0 0 0 1px var(--danger-border); }
.pill.admin { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-border); }
.month-close .close-steps .pill::before, .stat .pill::before { display: none; }

/* =========================================================== кнопки */
.btn {
  position: relative; min-height: var(--control-h); padding: 9px 17px; gap: 7px; border-radius: 980px;
  border: 0; background: #e8e8ed; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -.01em; box-shadow: none;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { background: #dcdce1; border-color: transparent; text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { color: #fff; border-color: transparent; background-color: #1d1d1f; background-image: none; box-shadow: none; }
.btn.primary:hover { background-color: #000; border-color: transparent; }
.btn.primary.danger { background-color: var(--danger); box-shadow: none; }
.btn.primary.danger:hover { background-color: #b80012; }
.btn.danger-text { color: var(--danger-text); }
.btn.danger-text:hover { background: var(--danger-soft); }
.btn.small { min-height: 30px; padding: 5px 12px; font-size: 13px; border-radius: 980px; }
.btn.ghost { min-height: 30px; padding: 4px 6px; color: var(--accent-text); background: transparent; border: 0; box-shadow: none; font-weight: 400; border-radius: 6px; }
.btn.ghost:hover { background: transparent; text-decoration: underline; }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn span { transition: transform var(--dur-2) var(--ease-out); }
.btn.primary:hover > span:last-child:not(:only-child) { transform: translate(2px, -2px); }
.more-btn { color: var(--text-3); border-radius: var(--r-md); }
.more-btn:hover { background: var(--surface-3); color: var(--text); }
.attention-toggle { border: 1px solid var(--border-field); background: var(--surface); color: var(--text-2); border-radius: var(--r-pill); min-height: 34px; padding: 6px 14px; font-weight: 560; box-shadow: var(--shadow-xs); }
.attention-toggle:hover { background: var(--surface-hover); }
.guide-reopen { color: var(--accent-text); font-weight: 560; }
.danger-text { color: var(--danger-text) !important; }

/* =========================================================== поля и формы */
.form label, .role-choice legend { color: var(--text-2); font-size: 13px; font-weight: 560; }
.form input, .form select, .form textarea {
  min-height: 44px; padding: 10px 13px; border-radius: var(--r-md); border: 1px solid var(--border-field); background: var(--surface); color: var(--text); font-size: 15px;
  box-shadow: var(--shadow-xs); transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--border-strong); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #0071e3; box-shadow: var(--focus-ring); outline: none; }
.form input::placeholder, .form textarea::placeholder { color: var(--text-4); }
.form input[type=checkbox], .form input[type=radio] { box-shadow: none; accent-color: var(--accent); }
.form .help { color: var(--text-3); font-size: 12.5px; }
.form-error { background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger-border); border-radius: var(--r-md); font-size: 13px; padding: 10px 12px; }
.role-choice label { border: 1px solid var(--border-field); border-radius: var(--r-lg); background: var(--surface); padding: 12px 13px; transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.role-choice label:hover { border-color: var(--border-strong); }
.role-choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.role-choice strong { color: var(--text); }
.role-choice small { color: var(--text-3); }
.check-grid label { color: var(--text-2); }
.tg-connect { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-lg); }
.discard-bar { background: var(--danger-soft); border: 1px solid var(--danger-border); color: var(--danger-text); }

/* =========================================================== подсказки и уведомления над контентом — компактные строки */
.notice {
  position: relative; display: block; margin-bottom: 14px; padding: 12px 16px 12px 44px; border-radius: var(--r-lg); font-size: 13.5px; line-height: 1.55;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.notice::before { content: "!"; position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--warning); }
.notice strong { color: var(--text); font-weight: 650; }
.notice p { margin: 2px 0 0; }
.notice.info { color: var(--text-2); background: var(--surface); border-color: var(--border); }
.notice.info::before { content: "i"; background: #8e8e93; font-family: Georgia, serif; font-style: italic; }
.notice.alert-banner, .notice.collector-warning { border-color: var(--danger-border); background: var(--surface); }
.notice.alert-banner::before, .notice.collector-warning::before { background: var(--danger); }
.notice.collector-warning:not(.alert-banner) { border-color: var(--warning-border); background: var(--surface); }
.notice.collector-warning:not(.alert-banner)::before { background: var(--warning); }
.alert-banner small { color: var(--danger-text); }
.notice .btn { background: var(--surface); }
.notice .btn.primary { background-color: #1d1d1f; }
.collector-warning strong, .alert-banner strong { color: var(--text); }
.signups { border-color: var(--accent-border); }
.attention-more { margin: 0 0 14px; }
#attention-list > .notice:first-child { margin-top: 0; }

.guide-banner {
  gap: 12px; padding: 10px 12px 10px 12px; margin: 0 0 16px; border-radius: var(--r-lg); color: var(--text-2);
  background: linear-gradient(90deg, var(--accent-soft), var(--surface) 65%); border: 1px solid var(--accent-border); box-shadow: var(--shadow-xs);
}
.guide-icon { width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); font-size: 14px; background: var(--surface-3); box-shadow: none; }
.guide-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.guide-label { grid-row: 1; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.guide-copy strong { grid-row: 1; margin: 0; font-size: 14px; color: var(--text); font-weight: 620; }
.guide-copy p { grid-column: 1 / -1; margin-top: 1px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.guide-action { background: #e8e8ed; border-color: transparent; color: var(--text); }
.guide-close { color: var(--text-3); border-radius: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; }
.guide-close:hover { color: var(--text); background: var(--surface-3); }

/* =========================================================== пустые состояния и скелетоны */
.empty:not(.chart-few) { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 40px 24px 44px; color: var(--text-3); font-size: 14px; line-height: 1.6; text-align: center; }
.empty:not(.chart-few)::before {
  content: ""; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M12 34h9l4-8 6 16 5-12 3 4h13' fill='none' stroke='%2386868b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='52' cy='34' r='2.4' fill='%231d1d1f'/%3E%3C/svg%3E") center / 64px no-repeat,
    var(--surface-3);
  box-shadow: none;
}
.empty strong { color: var(--text); font-size: 15px; font-weight: 650; margin-bottom: 2px; }
.empty .btn { margin-top: 14px; }
.skeleton { display: grid; gap: 12px; padding: 24px; }
.skel { display: block; position: relative; overflow: hidden; height: 12px; width: 80%; border-radius: 6px; background: var(--surface-3); }
.skel-title { height: 18px; width: 38%; margin-bottom: 6px; border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: skel-shine 1.3s var(--ease-in-out) infinite; }
@keyframes skel-shine { to { transform: translateX(100%); } }
.show-more { color: var(--text-3); }

/* =========================================================== окна и шторки */
dialog { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-dialog); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); }
.dialog-head { padding: 24px 26px 14px; border-bottom: 0; }
.dialog-head h2 { font-size: 22px; font-weight: 680; letter-spacing: -.03em; }
.dialog-close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text-3); font-size: 20px; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.dialog-close:hover { background: var(--surface-sunken); color: var(--text); }
.dialog-body { padding: 4px 26px 26px; }
.dialog-body > p { color: var(--text-3); }
.confirm-text { color: var(--text-2) !important; }
.history-entry { border-color: var(--border); }
.sheet { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sheet-item { color: var(--accent-text); border-top-color: var(--border); transition: background-color var(--dur-1) var(--ease-out); }
.sheet-item:hover { background: var(--accent-soft); }
.sheet-item.danger { color: var(--danger-text); }
.sheet-item.danger:hover { background: var(--danger-soft); }
#legal-gate { border: 1px solid var(--border); box-shadow: var(--shadow-dialog); }

/* =========================================================== тост */
#toast { background: rgba(29, 29, 31, .92); color: #f5f5f7; border: 0; border-radius: 14px;
  box-shadow: var(--shadow-pop); padding: 12px 18px 12px 36px; font-size: 14px; font-weight: 500; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
#toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pulse); }

/* =========================================================== справка, мелочи */
.help-sec { border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.help-ui { background: var(--accent-soft); color: var(--text); }
.footnote { color: var(--text-3); }
abbr.term { text-decoration-color: var(--text-4); }
.nav-sheet { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-pop); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }

/* =========================================================== движение: раздел появляется при переходе */
/* появление разделов, окна, шторки, тост — в motion.css */

/* =========================================================== широкие экраны */
@media (min-width: 1440px) {
  .workspace { padding: 0 48px 64px; }
  .stats { gap: 18px; }
}
@media (min-width: 1600px) {
  .workspace { max-width: 1520px; }
}

/* =========================================================== средние экраны */
@media (max-width: 1200px) {
  .shell { --sidebar-w: 220px; }
  .workspace { padding: 0 26px 48px; }
  .login-art { padding: 48px 48px 40px; }
  .pulse-scene { margin-left: -48px; margin-right: -48px; }
  .stat { padding: 18px 18px; }
}
@media (max-width: 960px) {
  .shell { --sidebar-w: 76px; }
  .sidebar { padding: 22px 12px; }
  .sidebar .brand { padding: 0; justify-content: center; }
  .nav button { justify-content: center; padding: 11px 0; }
  .nav button.active::before { left: -12px; }
  .login-art { padding: 40px 36px 36px; }
  .login-art h1 { font-size: 46px; }
  .pulse-scene { margin-left: -36px; margin-right: -36px; }
  .login-form { padding: 40px 32px; }
}

/* =========================================================== телефон: как приложение */
@media (max-width: 680px) {
  :root { --control-h: 44px; }
  .shell { background: var(--bg); }
  /* вход: та же сцена, сверху */
  .login { display: block; background: var(--surface); }
  .login-art { position: relative; height: auto; padding: calc(22px + env(safe-area-inset-top)) 22px 0; border: 0; }
  .login-art .brand { font-size: 19px; }
  .login-art .logo { width: 36px; height: 36px; }
  .login-art h1 { font-size: 38px; letter-spacing: -.045em; line-height: 1.04; margin-top: 30px; max-width: 340px; }
  .login-art p { font-size: 15px; margin-top: 14px; max-width: 330px; }
  .login-foot { display: none; }
  .pulse-scene { height: 120px; margin: 18px -22px 0; }
  .login-form { position: relative; z-index: 1; margin-top: -22px; padding: 30px 22px calc(40px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -12px 30px -18px rgba(6, 9, 20, .5); }
  .login-box h2 { font-size: 28px; }
  .login-box > p { font-size: 15px; margin-bottom: 22px; }

  /* нижняя панель: стекло, safe-area */
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; background: var(--glass); background-image: none; color: var(--text); box-shadow: 0 -1px 0 var(--glass-border), 0 -8px 24px -12px rgba(15, 23, 42, .12);
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-top: 0; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .nav button, .nav > button.nav-more { color: var(--text-3); min-height: 54px; padding: 6px 2px; gap: 3px; border-radius: 12px; font-weight: 560; }
  .nav button:hover { background: transparent; color: var(--text); }
  .nav button.active, .nav-more.active { color: var(--text); background: transparent; box-shadow: none; font-weight: 650; }
  .nav button.active::before { left: 50%; top: 2px; bottom: auto; width: 34px; height: 30px; margin-left: -17px; border-radius: 10px; background: var(--accent-soft); z-index: -1; }
  .nav button { z-index: 0; }
  .nav button.active .symbol { color: var(--text); }
  .nav-short { font-size: 11.5px; letter-spacing: -.005em; }
  .nav-badge { box-shadow: 0 0 0 2px var(--surface); }
  .nav .nav-sheet button { color: var(--text-2); }
  .nav .nav-sheet button.active { color: var(--text); background: var(--accent-soft); }
  .nav .nav-sheet button.active::before { display: none; }

  .workspace { padding: 0 16px calc(100px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 60px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 0; }
  .topbar-brand .logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
  .topbar .exit { width: 40px; height: 40px; }
  .topbar select { min-height: 40px; }
  .live { display: none; }
  .page-head { padding: 12px 0 18px; }
  .page-head h1 { font-size: 32px; }
  .page-head p { font-size: 14px; }

  .stats { gap: 10px; }
  .stat { padding: 16px 14px 15px; border-radius: var(--r-lg); }
  .stat .label { font-size: 12.5px; margin-bottom: 10px; padding-right: 26px; }
  .stat .number { font-size: 26px; }
  .stat .number.long { font-size: 21px; }
  .stat .number.text { font-size: 18px; }
  .stat .note { font-size: 12px; margin-top: 8px; }
  .stat-symbol { top: 12px; right: 12px; width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
  .stats > .stat.hero { grid-column: 1 / -1; order: -1; padding: 18px 18px 46px; }
  .stats > .stat.hero .number { font-size: 34px; }
  .stats > .stat.hero .number.long { font-size: 32px; }

  .panel, .brief-card, .member-card { border-radius: var(--r-lg); }
  .panel-head { padding: 18px 18px 12px; }
  .panel-body { padding: 18px; }
  .panel-footer { padding: 12px 18px; }
  .btn { min-height: 44px; }
  .btn.small, .btn.ghost { min-height: 40px; }
  .notice { padding: 11px 14px 11px 40px; }
  .notice::before { left: 12px; top: 12px; }
  .guide-banner { padding: 10px 44px 10px 10px; }
  .guide-copy { display: block; }
  .guide-label { display: none; }
  .guide-close { top: 6px; right: 6px; width: 36px; height: 36px; }
  .guide-action { margin-left: 42px; }

  /* окна — нижние шторки с ручкой */
  dialog { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog::before { content: ""; display: block; width: 38px; height: 5px; margin: 8px auto 0; border-radius: 5px; background: var(--border-strong); }
  #legal-gate::before { margin-top: -14px; margin-bottom: 10px; }
  .dialog-head { padding: 14px 20px 12px; }
  .dialog-body { padding: 4px 20px 24px; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* =========================================================== меньше движения */
@media (prefers-reduced-motion: reduce) {
  .pulse-scene svg { animation: none; clip-path: none; }
  .pulse-scene .ps-area, .ps-head { animation: none; opacity: 1; }
  .ps-spark, .ps-ring, .dot::after, .boot-line::after, .skel::after { animation: none; display: none; }
  .btn, .stat, .nav button, .segmented button, .brief-card, .member-card, #toast { transition: none; }
  .btn:active:not(:disabled) { transform: none; }
}

/* ===================================================================================================================
   Второй проход (16.10.2026): композиция ежедневных экранов — главная карта месяца, полоса показателей, тонкие полосы
   уведомлений, свёрнутые разделы, наглядный прогноз, график с подписями, степпер закрытия месяца, иерархия действий.
   =================================================================================================================== */

/* ---- уведомления над контентом: одна строка «значок · заголовок · текст · действие справа» */
.notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 2px; padding: 10px 12px 10px 42px; margin-bottom: 10px; min-height: 44px; }
.notice::before { top: 50%; margin-top: -10px; left: 13px; }
.notice > strong { grid-column: 1; font-size: 13.5px; }
.notice > p, .notice > small { grid-column: 1; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.notice > .btn, .notice > .actions { grid-column: 2; grid-row: 1 / span 6; margin: 0 !important; align-self: center; white-space: nowrap; }
.notice.alert-banner > p b { color: var(--text); }
.attention-more { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 12px; }
.attention-toggle { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }
#attention-list { width: 100%; margin-top: 8px; }

/* ---- подсказка раздела: тонкая полоса, сворачивается «×» в значок ⓘ у заголовка */
.guide-banner { padding: 7px 8px 7px 8px; gap: 10px; margin-bottom: 14px; min-height: 44px; background: var(--surface); border-color: var(--border); }
.guide-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.guide-copy { display: block; line-height: 1.45; }
.guide-label { display: inline; margin-right: 6px; font-size: 10.5px; }
.guide-copy strong { display: inline; font-size: 13.5px; margin-right: 6px; }
.guide-copy p { display: inline; font-size: 12.5px; }
.guide-action { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.guide-close { width: 28px; height: 28px; align-self: center; }

/* ---- заявки на регистрацию: бейдж-действие в шапке страницы */
.btn.head-badge { gap: 9px; background: var(--surface); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.head-badge:hover { background: var(--surface-2); }
.btn.head-badge b { font-weight: 750; font-variant-numeric: tabular-nums; }
.head-badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; flex: none; }
.head-badge-dot::after { content: none; }

/* ---- главная карта месяца */
.ov-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "main chart" "figs figs"; column-gap: 40px; margin: 0 0 16px; padding: 30px 32px 0; border-radius: var(--r-2xl); color: var(--text);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.ov-hero::before { content: none; }
.ov-hero-main { grid-area: main; min-width: 0; padding-bottom: 6px; }
.ov-hero-label { color: var(--text-3); font-size: 14px; font-weight: 500; line-height: 1.4; max-width: 46ch; }
.ov-hero-value { margin: 10px 0 8px; color: var(--text); font-size: clamp(44px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-hero-note { color: var(--text-3); font-size: 13.5px; line-height: 1.5; max-width: 52ch; }
.ov-hero-chart { grid-area: chart; position: relative; align-self: end; height: 128px; margin-bottom: 4px; }
.ov-hero-chart svg { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); overflow: visible; }
.ovh-line { fill: none; stroke: #1d1d1f; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ovh-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #1d1d1f; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, .08); }
.ovh-caps { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: var(--text-4); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ov-hero:not(:has(.ov-hero-chart)) { grid-template-columns: 1fr; grid-template-areas: "main" "figs"; }
.ov-hero:not(:has(.ov-hero-chart))::after { content: none; }
.ov-hero-figures { grid-area: figs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px -32px 0; border-top: 1px solid var(--border); background: transparent; }
.ov-hero-figures > div { min-width: 0; padding: 16px 32px 20px; }
.ov-hero-figures > div + div { box-shadow: inset 1px 0 0 var(--border); }
.ov-hero-figures dt { color: var(--text-3); font-size: 13px; font-weight: 500; }
.ov-hero-figures dd { margin: 4px 0 2px; color: var(--text); font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ov-hero-figures small { display: block; color: var(--text-3); font-size: 12px; line-height: 1.4; }

/* ---- полоса показателей: плитки одной высоты, без пустых мест в последнем ряду */
.stats.ov-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats.ov-metrics:has(> :last-child:nth-child(1)) { grid-template-columns: minmax(0, 1fr); }
.stats.ov-metrics:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.ov-metrics:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.ov-metrics:has(> :last-child:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ov-metrics > .stat { padding: 15px 16px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ov-metrics .stat .label { font-size: 12.5px; margin-bottom: 8px; padding-right: 30px; }
.ov-metrics .stat .number { font-size: 24px; letter-spacing: -.03em; }
.ov-metrics .stat .number.long { font-size: 22px; }
.ov-metrics .stat .number.text { font-size: 17px; padding: 3px 0; }
.ov-metrics .stat .note { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.ov-metrics .stat-symbol { top: 12px; right: 12px; width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
.ov-metrics .stat .note .btn.small { min-height: 26px; padding: 2px 8px; font-size: 12px; margin-top: 4px; }
@media (min-width: 1500px) { .stats.ov-metrics:has(> :last-child:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---- свёрнутые разделы (details) */
details.fold { display: block; }
.fold > summary { list-style: none; display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px 16px; cursor: pointer; border-radius: inherit; transition: background-color var(--dur-2) var(--ease-out); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--surface-hover); }
.fold > summary:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.fold-title { flex: 1; min-width: 0; }
.fold-title h2 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.fold-title p { color: var(--text-3); font-size: 13px; line-height: 1.5; margin-top: 4px; max-width: 78ch; }
.fold-total { flex: none; align-self: center; font-size: 17px; font-weight: 680; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fold-total small { font-size: 12.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.fold[open] > summary .fold-total { display: none; }
.fold-chev { flex: none; align-self: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); position: relative; transition: transform var(--dur-2) var(--ease-out); }
.fold-chev::before { content: ""; position: absolute; left: 10px; top: 9px; width: 7px; height: 7px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(45deg); }
.fold[open] > summary .fold-chev { transform: rotate(180deg); }
.fold-body > .status-row, .fold-body > h3, .fold-body > .fc-total, .fold-body > .fc-bar, .fold-body > .fc-legend { margin-left: 24px; margin-right: 24px; }
.fold.forecast .fold-body { padding-bottom: 20px; }

/* ---- прогноз: итог, составная полоса, легенда */
.fc-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.fc-total span { color: var(--text-3); font-size: 13px; font-weight: 550; }
.fc-total strong { font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.fc-total small { color: var(--text-3); font-size: 12.5px; }
.fc-bar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--surface-3); gap: 2px; margin-bottom: 14px; }
.fc-bar span { display: block; height: 100%; min-width: 4px; }
.fc-fixed { background: var(--success); }
.fc-open { background: #1d1d1f; }
.fc-question { background: repeating-linear-gradient(135deg, var(--warning) 0 6px, color-mix(in srgb, var(--warning) 60%, transparent) 6px 12px); }
.fc-legend .status-row { padding: 11px 0; }
.fc-legend .status-row > span { position: relative; padding-left: 20px; }
.fc-swatch { position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 3px; }
.fc-legend .status-row small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }

/* ---- сравнение соцсетей: одно число в ячейке, редкие колонки — по «Подробнее» */
.an-rare { display: none; }
.an-more-bar { display: flex; justify-content: flex-end; padding: 0 24px 12px; }
.platforms .table td, .platforms .table th { white-space: nowrap; }
.platforms .table td small { display: block; }

/* ---- последние публикации и таблицы публикаций: дата и время в одну строку, колонке креатора просторнее */
.table .number-cell small { white-space: nowrap; }
.table td:first-child { min-width: 210px; }
.table td:first-child .cell-person > div { max-width: 230px; }

/* ---- график: сетка с подписями значений, точка с подсказкой */
.chart-grid line { stroke: var(--chart-grid); stroke-dasharray: none; }
.chart-y { fill: var(--text-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-area { stroke: none; }
.chart .chart-line { stroke: var(--chart-1); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .chart-hit { fill: transparent; stroke: none; cursor: pointer; }
.chart .chart-dot { fill: var(--surface); stroke: var(--chart-1); stroke-width: 2; transition: r var(--dur-1) var(--ease-out); pointer-events: none; }
.chart .chart-pt:hover .chart-dot { r: 6; fill: var(--chart-1); }
.chart stop { stop-color: var(--chart-1); }

/* ---- закрытие месяца: степпер */
.close-progress { display: flex; align-items: center; gap: 12px; flex: none; color: var(--text-3); font-size: 12.5px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.close-bar { width: 160px; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.close-bar span { display: block; height: 100%; border-radius: inherit; background: #1d1d1f; }
.month-close .close-steps.stepper { gap: 0; padding: 4px 24px 22px; }
.month-close .close-steps.stepper li { position: relative; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 0 0 18px; }
.month-close .close-steps.stepper li::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--border-strong); }
.month-close .close-steps.stepper li.done::before { background: var(--success); }
.month-close .close-steps.stepper li:last-child { padding-bottom: 0; }
.month-close .close-steps.stepper li:last-child::before { display: none; }
.stepper .pill { grid-row: 1 / span 2; align-self: start; width: 28px; height: 28px; min-width: 28px; padding: 0; justify-content: center; border-radius: 50%; font-size: 12.5px; font-weight: 700; }
.stepper .pill::before { display: none; }
.stepper li.done .pill { background: var(--success); color: #fff; box-shadow: none; }
.stepper li.current .pill { background: #1d1d1f; color: #fff; box-shadow: 0 0 0 4px var(--surface-3); }
.stepper li strong { font-size: 15px; }
.stepper li.current strong { color: var(--text); }
.month-close .close-steps.stepper li small { grid-column: 2; }

/* ---- карточки участников: одна главная кнопка, остальное — в «⋯» */
.member-card { display: flex; flex-direction: column; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.member-card .mc-head .cell-person { margin: 0; min-width: 0; }
.mc-head .pill { flex: none; }
.member-card p { margin: 4px 0; }
.mc-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.member-card .accounts + .mc-actions, .member-card p + .mc-actions, .member-card small + .mc-actions { margin-top: 14px; }
.mc-actions .more-btn { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--border); }
.member-card .account-item { padding: 10px 0; }
.project-card .card-head { margin-bottom: 8px; }
.project-card .card-actions { gap: 6px; }
.project-card .card-actions .more-btn, .chat-row .more-btn { border: 1px solid var(--border); width: 32px; height: 32px; }
.chat-row .more-btn { width: 30px; height: 30px; }

/* ---- телефон */
@media (max-width: 680px) {
  .notice { grid-template-columns: minmax(0, 1fr); padding: 10px 12px 10px 40px; }
  .notice::before { top: 12px; margin-top: 0; }
  .notice > .btn, .notice > .actions { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px !important; }
  .guide-banner { padding: 8px 40px 8px 8px; }
  .guide-copy p { display: block; }
  .page-head .actions .btn.head-badge { order: -1; width: 100%; justify-content: flex-start; }

  .ov-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "chart" "figs"; padding: 20px 18px 0; border-radius: var(--r-xl); margin-bottom: 12px; }
  .ov-hero-label { font-size: 13px; }
  .ov-hero-value { font-size: 42px; margin: 8px 0 6px; }
  .ov-hero-note { font-size: 12.5px; }
  .ov-hero-chart { height: 84px; margin-top: 10px; }
  .ov-hero:not(:has(.ov-hero-chart))::after { width: 70%; top: 8px; height: 70px; }
  .ov-hero-figures { margin: 16px -18px 0; }
  .ov-hero-figures > div { padding: 12px 10px 14px 18px; }
  .ov-hero-figures > div + div { padding-left: 12px; }
  .ov-hero-figures dt { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-hero-figures dd { font-size: 19px; }
  .ov-hero-figures small { display: none; }

  .stats.ov-metrics { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 10px; margin: 0 -16px 14px; padding: 2px 16px 8px; scrollbar-width: none; }
  .stats.ov-metrics::-webkit-scrollbar { display: none; }
  .ov-metrics > .stat { flex: 0 0 min(64%, 230px); scroll-snap-align: start; }
  .ov-metrics > .stat .note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  .fold > summary { padding: 16px 16px 14px; gap: 10px; }
  .fold-title h2 { font-size: 16.5px; }
  .fold:not([open]) .fold-title p { display: none; }
  .fold-total { font-size: 15px; }
  .fold-body > .status-row, .fold-body > h3, .fold-body > .fc-total, .fold-body > .fc-bar, .fold-body > .fc-legend { margin-left: 16px; margin-right: 16px; }
  .fc-total strong { font-size: 28px; }
  .an-more-bar { justify-content: flex-start; padding: 0 16px 10px; }
  .an-panel.fold + .panel, .panel + .fold { margin-top: 12px; }

  .close-progress { width: 100%; }
  .close-bar { flex: 1; }
  .month-close .close-steps.stepper { padding: 4px 18px 18px; }
  .month-close .panel-head { flex-wrap: wrap; }
  .table td:first-child { min-width: 0; }
  .mc-actions .btn { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .head-badge-dot::after { animation: none; display: none; }
  .fold > summary, .fold-chev, .chart .chart-dot { transition: none; }
}
.chart { height: auto; }
@media (max-width: 680px) { .chart-y { font-size: 28px; } .chart .chart-line { stroke-width: 4; } }
@media (max-width: 680px) { .an-panel .panel-head:has(> [data-action="an-economics"]) p { display: none; } .an-panel .panel-head:has(> [data-action="an-economics"]) { align-items: center; padding-bottom: 16px; } }
.member-card > .pill, .staff-card > .pill { width: fit-content; }
@media (max-width: 680px) {
  .ov-hero:not(:has(.ov-hero-chart))::after { display: none; }
  /* переключатели разделов: одна строка с прокруткой вместо сетки в три ряда */
  .segmented { display: flex; width: auto; max-width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; padding: 3px; border-radius: 0; overflow-x: auto; scroll-snap-type: x proximity; box-shadow: none; background: transparent; gap: 6px; }
  .segmented button { flex: none; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); scroll-snap-align: start; }
  .segmented button:first-child { margin-left: 13px; }
  .segmented button:last-child { margin-right: 13px; }
  .segmented button:last-child:nth-child(odd) { grid-column: auto; }
  .segmented button.active { background: var(--text); color: var(--surface); box-shadow: none; }
}
.head-badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 12px; }

/* ---- «Выплаты» администратора: второстепенные разделы свёрнуты на телефоне (17.10.2026) */
.pay-fold .fold-body > .panel-head { padding-top: 0; }
.pay-fold .fold-body > .stats { margin: 0 24px 20px; }
.pay-fold .fold-body > .table-wrap { border-top: 1px solid var(--border); }
.pay-fold .fold-body > .payout-toolbar { margin: 0; padding: 0 24px 14px; border-bottom: 1px solid var(--border); }
.pay-fold .fold-body > .status-row:last-child { border-bottom: 0; }
.pay-fold .fold-body > .panel-body:first-child { padding-top: 0; }
.pay-fold .fold-body > p { margin: 0 24px; padding: 14px 0 20px; color: var(--text-3); font-size: 13px; }
@media (max-width: 680px) {
  .pay-fold .fold-body > .stats { margin: 0 16px 14px; }
  .pay-fold .fold-body > .payout-toolbar { padding: 0 16px 12px; }
  .pay-fold .fold-body > p { margin: 0 16px; padding: 12px 0 16px; }
  .pay-fold:not([open]) > summary { padding-bottom: 16px; }
}

/* ---- шапка: выбор проекта. Компьютер — обычный список; телефон — компактный «чип» с папкой, список лежит поверх него невидимым */
.project-chip { display: contents; }
.project-chip > svg, .project-chip-name { display: none; }
@media (max-width: 680px) {
  .topbar { flex-wrap: nowrap; }
  .project-chip { display: inline-flex; align-items: center; gap: 6px; position: relative; min-width: 0; max-width: clamp(96px, calc(100vw - 218px), 160px); height: 40px; padding: 0 11px 0 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border-field); box-shadow: var(--shadow-xs); color: var(--text); font-size: 13px; font-weight: 560; cursor: pointer; }
  .project-chip > svg { display: block; flex: none; width: 17px; height: 17px; color: var(--text); }
  .project-chip-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .project-chip select, .topbar .project-chip select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; min-height: 0; opacity: 0; padding: 0; border: 0; cursor: pointer; font-size: 16px; }
  .project-chip::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 0 0 1px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg); }
  .project-chip.on { border-color: var(--accent); background: var(--accent-soft); }
  .project-chip:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
}

/* ---- карточка участника без главного действия (заказчик): «⋯» встаёт справа от имени, бейдж — строкой ниже, пустой нижней строки нет */
.mc-head > .more-btn { flex: none; width: 32px; height: 32px; border: 1px solid var(--border); }
.mc-state { margin: -2px 0 8px; }

/* ---- списки выбора: свой шеврон вместо системной стрелки у самой кромки (токен --select-chevron, светлая и тёмная тема) */
.form select, .fld select, .filters select, .payout-toolbar select {
  -webkit-appearance: none; appearance: none; background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; text-overflow: ellipsis; }
.form select[multiple] { background-image: none; padding-right: 13px; }

/* ---- телефон: мелочи (17.10.2026) */
@media (max-width: 680px) {
  .stats:not(.ov-metrics) > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats.ov-metrics:has(> :last-child:nth-child(1)) > .stat { flex: 0 0 100%; }
  .panel-head + .table-wrap:has(> table.money-cards) { padding-top: 12px; }
}
.pulse-scene .ps-area { display: none; }
@media (max-width: 680px) {
  /* вход на телефоне: белая шторка формы и есть карточка — без второй рамки внутри */
  .login-box { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .login-form { box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 -10px 30px rgba(0, 0, 0, .04); }
  .login-art p { font-size: 17px; }
}
/* светлая редакция: график главной карты — только тонкая линия; «требует внимания» на плитке — оранжевая цифра на белом */
.ov-hero-chart svg path:not(.ovh-line) { display: none; }
.stat.highlight { background: var(--surface); border-color: var(--warning-border); }
.stat.highlight .number { color: var(--warning-text); }
.stat.highlight .stat-symbol { color: var(--warning-text); background: var(--warning-soft); border-color: var(--warning-border); }

/* The role in the top bar is read in full on a desktop (it was cut to «Главный администрато…» at 1280): from 961 px the
   top bar has room for it next to the actions; narrower, the ellipsis of polish.css stays. */
@media (min-width: 961px) { .breadcrumbs { flex: none; overflow: visible; } }

/* ===================================================================================================================
   Детали (16.10.2026, «продумана каждая деталь»): состояния, курсоры, прокрутка, поля на телефоне, загрузка, сеть, печать.
   =================================================================================================================== */
* { -webkit-tap-highlight-color: transparent; }
html { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .22) transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .22) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .22); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .36); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

/* курсоры: «рука» — только у того, что нажимается; отключённое — без «руки» и без ожидания */
button, summary, [data-action], label:has(> input[type=checkbox]), label:has(> input[type=radio]), select { cursor: pointer; }
button:disabled, .btn:disabled, [aria-disabled="true"] { cursor: not-allowed; }
.btn:disabled { opacity: .45; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), textarea { cursor: text; }

/* фокус с клавиатуры — заметное кольцо Apple у всех нажимаемых; от мыши — без кольца */
.btn:focus-visible, .nav button:focus-visible, .segmented button:focus-visible, .more-btn:focus-visible, summary:focus-visible, .sheet-item:focus-visible,
.dialog-close:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* отправка формы: кнопка показывает индикатор и не принимает повторное нажатие (app-events.js блокирует её на время запроса) */
form .btn[type=submit]:disabled { opacity: 1; color: transparent !important; position: relative; }
form .btn[type=submit]:disabled > * { visibility: hidden; }
form .btn[type=submit]:disabled::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
form .btn[type=submit]:not(.primary):disabled::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
/* скачивание файла: та же «крутилка» у ссылки, пока файл готовится (app-ux.js) */
a.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
a.btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--text); animation: spin .7s linear infinite; }
a.btn.primary.is-loading::after { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* ошибка в поле: подсветка после того, как человек ввёл неверное (браузер сам называет причину у поля) */
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(215, 0, 21, .1); }
.form-error:not(.hidden) { animation: rise var(--dur-2) var(--ease-out) both; }

/* телефон: в полях 16 px — iOS не увеличивает страницу при фокусе */
@media (max-width: 680px) {
  input, select, textarea, .fld select, .fld input, .people-search input, .filters select, .filters input, .payout-toolbar select, .payout-toolbar input, .topbar select { font-size: 16px; }
}

/* нет соединения: тонкая полоса сверху (app-ux.js) */
#net-bar { position: fixed; z-index: 2000; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 980px; background: rgba(29, 29, 31, .92); color: #f5f5f7; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-pop);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); max-width: calc(100vw - 24px); animation: rise var(--dur-3) var(--ease-out) both; }
#net-bar[hidden] { display: none; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; flex: none; }

/* числа и подписи: сумма с ₽ и дата не разрываются переносом */
.number-cell, .ov-hero-value, .ov-hero-figures dd, .stat .number, .fold-total, .fc-total strong, .pub-nums dd { white-space: nowrap; }

/* печать: кабинет и документы на бумаге — без меню, кнопок и теней */
@media print {
  @page { margin: 14mm; }
  html, body, .shell { background: #fff !important; }
  .sidebar, .topbar, .page-head .actions, .guide-banner, .attention-more, .filters, .filters-phone-toggle, .btn, .more-btn, #toast, #net-bar, .tip-btn, dialog, .nav, .project-chip { display: none !important; }
  .shell { display: block !important; }
  .workspace { padding: 0 !important; max-width: none !important; }
  .panel, .stat, .ov-hero, .brief-card, .member-card { box-shadow: none !important; border: 1px solid #d2d2d7 !important; break-inside: avoid; }
  details.fold > .fold-body { display: block !important; }
  .table-wrap { overflow: visible !important; }
  a { color: inherit; text-decoration: none; }
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 680px) { #net-bar { left: 12px; right: 12px; transform: none; max-width: none; border-radius: 14px; padding: 10px 14px; line-height: 1.35; } }

/* ---------------------------------------------------------------- Аудит деталей (16.10.2026, третий проход): то, что видно только вблизи */
/* поля: значение и подсказка внутри — обычным начертанием; полужирной остаётся только подпись над полем (поле её больше не наследует) */
.form input, .form select, .form textarea, .fld input, .fld select, .filters input, .filters select, .people-search input,
.payout-toolbar input, .payout-toolbar select { font-weight: 400; }
.form input::placeholder, .form textarea::placeholder, .fld input::placeholder, .filters input::placeholder, .people-search input::placeholder { font-weight: 400; }
/* согласия и описания ролей — текст для чтения, а не подпись: обычное начертание, заголовок роли остаётся полужирным */
.form label.consent-row, .consent-row > span { font-weight: 400; color: var(--text-2); }
.consent-row small { font-weight: 400; color: var(--text-3); }
.role-choice label { font-weight: 400; }
.role-choice strong { font-weight: 600; }
.check-grid label { font-weight: 400; }

/* телефон: 16 px во ВСЕХ полях (у «.form input» вес селектора больше, чем у общего правила выше, — iOS увеличивал страницу в окнах) */
@media (max-width: 680px) {
  .form input, .form select, .form textarea, .dialog-body input, .dialog-body select, .dialog-body textarea, .login-box input { font-size: 16px; }
  .form input[type=checkbox], .form input[type=radio] { font-size: inherit; }
}

/* выбор проекта в шапке — тот же вид, что у остальных списков (свой шеврон вместо системной стрелки Chrome и «⌃⌄» Safari) */
.topbar select { -webkit-appearance: none; appearance: none; background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right 10px center;
  background-size: 14px; padding-right: 32px; }
@media (max-width: 680px) { .topbar .project-chip select { background-image: none; } }

/* «В реестр к выплате»: у кнопки-флекса промежуток 7 px стоит и после термина — выравниваем до обычного пробела с обеих сторон */
.btn abbr { margin-inline: -3px; }

/* главная сумма месяца в плитках (не на обзоре) — чёрная, как на обзоре; оранжевый остаётся только у предупреждений */
.stat.highlight.hero { border-color: var(--border); }
.stat.highlight.hero .number { color: var(--text); }
.stat.highlight.hero .stat-symbol { color: var(--text-3); background: var(--surface-2); border-color: var(--border); }

/* значки плиток — линейные SVG той же толщины, что и в меню (statGlyph, app-design.js), вместо разнородных символов шрифта */
.stat-symbol svg { width: 15px; height: 15px; display: block; }
.ov-metrics .stat-symbol svg { width: 13px; height: 13px; }
@media (max-width: 680px) { .stat-symbol svg { width: 13px; height: 13px; } }

/* контраст AA: подписи оси графика карты месяца и строка внизу входа — вторым серым (#86868b на белом — 3,6:1, мало для 12 px) */
.ovh-caps, .login-foot { color: var(--text-3); }

/* шаги закрытия месяца: в круге — номер шага, сколько осталось — маленьким счётчиком у заголовка */
.stepper .step-left { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--warning-soft); color: var(--warning-text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: 2px; }

/* окно открылось нажатием: фокус на самом окне (без кольца), а не кольцо на «×» — Safari рисует его и при нажатии мышью */
#dialog:focus, #dialog:focus-visible { outline: none; }

/* запасной выбор месяца там, где браузер не знает <input type=month> (Safari на Mac): список «октябрь 2026» вместо «2026-10» */
.month-fallback { width: 100%; }
@media print { .fold-chev, .seg-glide { display: none !important; } }
/* пояснение под числом может переноситься (само число и дата — нет): иначе «Суммы видят администраторы» распирает таблицу шире панели */
.table td.number-cell small { white-space: normal; }

/* ---------------------------------------------------------------- Четвёртый проход (16.10.2026): «как у Apple» до конца */
/* значки-стрелки (app-icons.js): SVG той же толщины, что меню; размер — от кегля надписи, оптически на средней линии */
.ico { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -.17em; }
.ico-lead { margin-right: .32em; } .ico-trail { margin-left: .28em; }
.btn > .ico-lead, .btn > .ico-trail, .has-ico.btn .ico { margin: 0; }
.btn .ico-arrow-right, .btn .ico-arrow-up-right { width: .95em; height: .95em; }
.btn.ghost .ico-trail, a .ico-trail { width: .92em; height: .92em; }
.ico-only { width: 16px; height: 16px; vertical-align: middle; }
.dialog-close .ico-only { width: 15px; height: 15px; }
.more-btn .ico-only { width: 18px; height: 18px; }
.chip-x .ico-only, .guide-close .ico-only { width: 13px; height: 13px; }
.dialog-close, .more-btn, .chip-x, .guide-close { display: inline-grid; place-items: center; font-size: 0; }
.tip-btn .ico-only { width: 15px; height: 15px; }
/* шеврон свёрнутой секции — та же линия, что у стрелок (было — рамка из двух границ) */
.fold-chev::before { left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 0; transform: none; background: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* окна: как в macOS — действия справа, «Отмена» слева от основного; основное не растягивается на всю ширину */
@media (min-width: 681px) {
  .confirm-actions { justify-content: flex-end; gap: 10px; margin-top: 8px; }
  .confirm-actions .btn { flex: 0 0 auto; min-width: 120px; }
  #dialog .form > .btn.primary[type=submit]:last-child, #dialog .form > .form-error + .btn.primary[type=submit] { justify-self: end; width: auto; min-width: 160px; margin-top: 6px; }
  .sheet-cancel { width: auto; min-width: 120px; margin-left: auto; display: flex; }
}
/* телефон: в шторке основное действие — крупно внизу на всю ширину, «Отмена» над ним, тише */
@media (max-width: 680px) {
  .confirm-actions { flex-direction: column; gap: 8px; }
  .confirm-actions .btn { width: 100%; min-height: 50px; font-size: 16px; }
  .confirm-actions .btn:not(.primary) { background: transparent; box-shadow: none; color: var(--accent-text); min-height: 44px; order: 0; }
  .confirm-actions .btn.primary { order: 1; }
}

/* карточки людей: одна высота в ряду, действия прижаты к низу */
.cards { align-items: stretch; }
.member-card > .mc-actions, .member-card .mc-actions { margin-top: auto; }
.member-card > .mc-actions { position: relative; }
.member-card > :nth-last-child(2):not(.mc-head) { margin-bottom: 14px; }
.staff-card { display: flex; flex-direction: column; }
.staff-card > .actions { margin-top: auto; padding-top: 12px; }
.staff-card > .actions:empty { display: none; }

/* полоса показателей: одна-две плитки не растягиваются на всю ширину — стоят по сетке трёх цифр карты месяца */
.stats.ov-metrics:has(> :last-child:nth-child(1)), .stats.ov-metrics:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* «ⓘ» у длинного пояснения (app-ux.js, uxBrief): первая фраза видна, остальное — карточкой по нажатию */
.brief-i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px 0 -5px 4px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--text-3); cursor: pointer; vertical-align: baseline; position: relative; }
.brief-i::after { content: ""; position: absolute; inset: -11px; }             /* цель касания 44 px */
.brief-i:hover, .brief-i[aria-expanded="true"] { color: var(--text); background: var(--surface-3); }
.brief-i .ico { width: 15px; height: 15px; vertical-align: 0; }
.brief-pop:not(.open) { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.brief-pop.open { position: fixed; z-index: 1500; display: block; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal;
  box-shadow: var(--shadow-pop), 0 0 0 .5px rgba(0, 0, 0, .12); animation: rise var(--dur-2) var(--ease-out) both; }
.brief-pop.open::first-letter { text-transform: uppercase; }
@media print { .brief-i { display: none; } .brief-pop:not(.open) { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; white-space: normal !important; margin: 0 !important; } }

/* юнит-экономика внутри свёрнутой секции: вложенные панели — без второй рамки */
.fold.an-economics .fold-body > .panel { border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; margin: 0; }
.fold.an-economics .fold-body > .stats { padding: 4px 24px 20px; margin: 0; }
.fold.trend-fold .chart-wrap { padding-top: 4px; }
.cards .member-card > .mc-actions { margin-top: auto; }
/* аккаунт в карточке: строка «ссылка · ⋯», под ней «статус · действие», ниже — подпись; «⋯» больше не падает отдельной строкой */
.member-card .account-item > a, .member-card .account-item > .account-link { order: 0; flex: 1 1 calc(100% - 44px); min-width: 0; }
.member-card .account-item > .more-btn { order: 1; margin-left: auto; width: 30px; height: 30px; }
.member-card .account-item > .pill { order: 2; }
.member-card .account-item > .btn { order: 3; }
.member-card .account-item > small, .member-card .account-item > .account-meta { order: 4; flex-basis: 100%; }
.member-card .accounts > small:only-child { font-size: 13px; color: var(--text-3); }
.brief-tail { white-space: nowrap; }
/* список пользователей: действия строки — тихими ссылками, а не рядом серых капсул (главное в строке — человек и статус) */
.user-row .btn.small:not(.primary):not(.danger-text) { background: transparent; box-shadow: none; color: var(--accent-text); padding-inline: 8px; }
.user-row .btn.small:not(.primary):not(.danger-text):hover { background: var(--accent-soft); }
/* окно согласий на телефоне — шторка во всю ширину (стиль из legal.js вставляется позже и сужал её до 100vw − 32 px) */
@media (max-width: 680px) { html #legal-gate { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; } }
/* панель выбора над разделом (проект, месяц): поля рядом слева, действие — справа, без «дыры» посередине */
@media (min-width: 681px) { .toolbar.payout-toolbar { justify-content: flex-start; } .toolbar.payout-toolbar > .actions, .toolbar.payout-toolbar > .btn:last-child { margin-left: auto; } }
/* Вход через Telegram без пароля (16.10.2026, app-tglogin.js): тихая ссылка под формой входа и переключатель в профиле */
.login-box .tg-login-entry { margin-top: 14px; text-align: center; }
.login-box .tg-login-entry .btn.ghost { font-size: 15px; }
.tg-login-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); font-weight: 400; cursor: pointer; }
.form label.tg-login-row { display: flex; font-weight: 500; color: var(--text); font-size: 13px; }
.tg-login-row > span { min-width: 0; }
.tg-login-row small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; font-weight: 400; line-height: 1.45; }
.tg-login-row.off { cursor: default; }
.tg-login-row.off > span { color: var(--text-3); }
input.switch, .form input.switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 44px; min-width: 44px; height: 26px; min-height: 26px; padding: 0; margin: 0;
  border: 0; border-radius: 999px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; transition: background-color var(--dur-2) var(--ease-out); }
input.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .1); transition: transform var(--dur-3) var(--spring); }
input.switch:checked, .form input.switch:checked { background: var(--accent); box-shadow: none; }
input.switch:checked::before { transform: translateX(18px); }
input.switch:disabled, .form input.switch:disabled { opacity: .45; cursor: default; }
input.switch:focus-visible, .form input.switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.form input.switch:hover { border: 0; }
/* Истёкшая сессия (16.10.2026, app-session.js): строка на входе и плашка «Вернуться к незаконченному» после входа */
.login-box > p.session-note { color: var(--text-2); }
.login-box .session-kept { display: block; margin-top: 6px; color: var(--text-3); font-size: 14px; }
.resume-bar { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-pop); font-size: 14px; color: var(--text); }
.resume-bar > span { min-width: 0; }
.resume-bar small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.resume-bar .resume-x { min-width: 32px; color: var(--text-3); }
@media (max-width: 680px) { .resume-bar { bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); } }
