/* Visual direction from the owner's Apple reference pack.
   Native device fonts; no bundled proprietary fonts or interface screenshots. */
body { background: var(--paper); }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea { transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
:focus-visible { outline: 3px solid var(--accent-border); outline-offset: 3px; }
h1 { font-size: 36px; font-weight: 650; letter-spacing: -.045em; line-height: 1.16; }
h2 { font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 16px; letter-spacing: -.015em; }
.shell { grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  background: var(--surface-3);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  padding: 36px 18px 22px;
}
.brand { gap: 11px; font-size: 27px; letter-spacing: -.055em; font-weight: 700; }
.sidebar .brand { font-size: 20px; letter-spacing: -.04em; white-space: nowrap; }
.logo { background: transparent; width: 36px; height: 36px; border-radius: 11px; display: block; flex: none; }
.brand-note { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: none; margin: 9px 0 34px 4px; }
.nav { gap: 6px; }
.nav button { color: var(--text-3); font-size: 14px; min-height: 46px; border-radius: 11px; padding: 12px 14px; }
.nav button:hover { background: var(--surface-3); }
.nav button.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.nav .symbol { color: currentColor; }
.nav svg, .btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-short { display: none; }
.sidebar-bottom { padding-top: 32px; }
.helpbox { background: var(--surface); border: 1px solid var(--border-field); color: var(--muted); line-height: 1.6; font-size: 12px; border-radius: 16px; }
.helpbox strong { color: var(--text-2); font-weight: 600; }
.identity .name { font-size: 13px; }
.identity small { font-size: 12px; }
.avatar { color: var(--text-3); background: var(--surface-3); font-weight: 600; }
.exit { color: var(--muted); padding: 9px; border-radius: 9px; }
.exit svg { display: block; width: 19px; height: 19px; }
.exit:hover { background: var(--surface-3); }
.workspace { padding: 0 40px 48px; }
.viewing-bar { margin: 0 -40px; padding: 10px 40px; }
.table-wrap { position: relative; } /* the sr-only cell of a wide table must stay inside the scrolling box, not stretch the page */
.topbar { height: 84px; }
.breadcrumbs { color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--text-2); font-weight: 500; }
.live { color: var(--text-3); font-size: 12px; }
.dot { background: var(--success); }
.topbar select { color: var(--ink); background: var(--surface); border-radius: 10px; padding: 9px 13px; font-size: 13px; }
.demo-badge { color: var(--text-3); background: var(--surface-3); font-size: 12px; letter-spacing: 0; border-radius: 6px; padding: 5px 8px; }
.page-head { padding: 34px 0 28px; }
.page-head p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.btn { min-height: 42px; border-color: var(--border-field); color: var(--text-2); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--surface); }
.btn:hover { border-color: var(--accent-border); background: var(--surface-2); }
.btn.primary { color: var(--on-signal); border-color: var(--accent); background: var(--accent); box-shadow: 0 2px 3px rgba(0, 65, 140, .06); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.small { min-height: 34px; font-size: 12px; padding: 7px 12px; border-radius: 9px; }
.btn.ghost { min-height: 32px; color: var(--accent-text); background: transparent; border: 0; }
.filters { gap: 9px; padding-bottom: 24px; }
.filters select, .filters input { min-height: 39px; border-color: var(--border); border-radius: 10px; color: var(--text-3); background: var(--surface); font-size: 13px; }
.stats { gap: 18px; margin-bottom: 24px; }
.stat, .panel, .brief-card, .member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(25, 30, 45, .018), 0 14px 32px rgba(25, 30, 45, .018);
  border-radius: var(--radius);
}
.stat { padding: 24px; }
.stat .label { font-size: 13px; color: var(--muted); margin-bottom: 17px; font-weight: 500; }
.stat .number { font-size: clamp(28px, 2.4vw, 40px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 13px; }
.stat.highlight { background: var(--accent-soft); border-color: var(--accent-border); }
.stat.highlight .number { color: var(--accent-text); }
.stat-symbol { color: var(--text-3); }
.content-grid { gap: 24px; }
.panel-head { padding: 26px 27px 0; }
.panel-head p { font-size: 12px; line-height: 1.5; }
.panel-body { padding: 26px; }
.chart-wrap { padding-top: 20px; }
.chart-labels { font-size: 12px; color: var(--muted); }
.platform-list { padding: 21px 26px; }
.platform-row { margin-bottom: 18px; }
.platform-title { font-size: 13px; color: var(--text-3); }
.platform-number { font-size: 14px; font-variant-numeric: tabular-nums; }
.platform-number small { font-size: 12px; color: var(--muted); }
.platform-bar { background: var(--surface-3); }
.platform-bar span { background: var(--accent); }
.platform-icon { overflow: hidden; background: #edf3fa; }
.platform-icon img { display: block; width: 19px; height: 19px; object-fit: contain; }
.platform-icon.instagram { background: linear-gradient(135deg, #feda75 0%, #d62976 48%, #4f5bd5 100%); }
.platform-icon.tiktok, .platform-icon.threads, .platform-icon.rythm { background: #17181c; }
.platform-icon.tiktok img { filter: drop-shadow(-1px 0 #25f4ee) drop-shadow(1px 0 #fe2c55); }
.platform-icon.youtube { background: #fff0ee; }
.platform-icon.vk { background: #07f; }
.platform-icon.rythm img { width: 25px; height: 25px; }
.accounts a { display: inline-flex; align-items: center; gap: 7px; }
.accounts .platform-icon { width: 22px; height: 22px; border-radius: 6px; }
.accounts .platform-icon img { width: 15px; height: 15px; }
.accounts .platform-icon.rythm img { width: 20px; height: 20px; }
.account-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.account-item:first-child { border-top: 0; padding-top: 0; }
.account-item .btn { margin-left: auto; }
.account-meta { flex-basis: 100%; font-size: 12px; color: var(--muted); line-height: 1.5; }
.account-meta b { font-weight: 600; color: var(--danger-text); }
.account-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.account-notice strong { flex-basis: 100%; }
.account-notice p { flex: 1 1 320px; margin: 0; }
.platform-status { display: inline-flex; align-items: center; gap: 8px; }
.platform-status .platform-icon { width: 24px; height: 24px; border-radius: 7px; }
.platform-status .platform-icon img { width: 16px; height: 16px; }
.platform-status .platform-icon.rythm img { width: 22px; height: 22px; }
.table-wrap { overscroll-behavior-x: contain; }
.table { font-size: 13px; }
.table th { background: var(--surface-2); color: var(--text-3); font-size: 12px; letter-spacing: 0; font-weight: 500; padding: 16px 20px; }
.table td { padding: 18px 20px; border-color: var(--border); }
.table tbody tr:hover { background: var(--surface); }
.table small { color: var(--muted); font-size: 12px; margin-top: 5px; }
.table .post-title { color: var(--text-2); }
.number-cell { color: var(--text-2); }
.cell-person .avatar { width: 34px; height: 34px; font-size: 12px; }
.pill { font-size: 12px; font-weight: 500; padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-3); }
.pill.ok, .pill.active, .pill.frozen { background: var(--surface-3); color: var(--success-text); }
.pill.partial, .pill.pending, .pill.queued { background: var(--warning-soft); color: var(--warning-text); }
.pill.error, .pill.blocked, .pill.needs_review, .pill.suspended { background: var(--danger-soft); color: var(--danger-text); }
.panel-footer { font-size: 12px; padding: 17px 25px; }
.empty { font-size: 14px; padding: 48px 28px; }
.empty strong { color: var(--text-2); }
.notice { background: var(--warning-soft); border: 1px solid var(--warning-border); color: var(--warning-text); border-radius: 15px; font-size: 13px; line-height: 1.6; }
.notice.info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.brief-card, .member-card { padding: 26px; }
.brief-card h3 { font-size: 19px; line-height: 1.4; }
.brief-card p, .member-card p, .data-card p { font-size: 13px; line-height: 1.7; }
.brief-card footer, .member-card .accounts { font-size: 12px; }
.status-row { font-size: 13px; padding: 15px 0; gap: 18px; }
.data-card { padding: 27px; }
.footnote { color: var(--text-3); font-size: 12px; line-height: 1.65; }
.login { background: var(--surface); grid-template-columns: 1.1fr 1fr; }
.login-art {
  background-color: var(--surface-3);
  background-size: cover;
  background-position: center;
  padding: 58px 70px;
  border-right: 1px solid var(--border);
}
.login-art h1 { color: var(--text); font-size: clamp(44px, 4.6vw, 70px); font-weight: 650; letter-spacing: -.065em; line-height: 1.06; max-width: 560px; margin-top: 108px; }
.login-art p { color: var(--text-3); font-size: 16px; line-height: 1.65; max-width: 405px; }
.login-foot { color: var(--text-3); font-size: 12px; letter-spacing: 0; }
.orb { border-color: var(--border); }
.orb::before, .orb::after { border-color: var(--border); }
.login-box h2 { font-size: 32px; letter-spacing: -.045em; }
.login-box > p { font-size: 14px; line-height: 1.6; }
.form { gap: 18px; }
.form label { color: var(--text-3); font-size: 13px; font-weight: 500; }
.form input, .form select, .form textarea { border: 1px solid var(--border-field); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; min-height: 46px; padding: 12px 14px; }
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); opacity: 1; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 122, 255, .13); }
.form .help { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-error { color: var(--danger-text); background: var(--surface-2); border: 1px solid var(--danger-border); border-radius: 12px; font-size: 13px; line-height: 1.6; }
.demo-roles button { color: var(--accent-text); background: var(--surface-2); border-color: var(--border); border-radius: 11px; font-size: 13px; min-height: 44px; }
.demo-roles button:hover { background: var(--accent-soft); }
.demo-block small { font-size: 12px; color: var(--muted); }
dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--border-field); border-radius: 28px; box-shadow: 0 24px 100px rgba(20, 25, 40, .2); max-height: calc(100dvh - 40px); }
dialog::backdrop { background: var(--surface-3); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.dialog-head { padding: 29px 30px 18px; }
.dialog-head h2 { font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.dialog-close { width: 36px; height: 36px; color: var(--text-3); background: var(--surface-3); display: grid; place-items: center; padding: 0; flex-shrink: 0; }
.dialog-close:hover { background: var(--surface-3); }
.dialog-body > p { font-size: 13px; line-height: 1.6; }
.dialog-body .stat { box-shadow: none; border-radius: 16px; }
.dialog-body .stat .label { font-size: 12px; }
.dialog-body .stat .number { font-size: 26px; }
.history-entry { font-size: 13px; border-color: var(--line); }
.history-entry small { font-size: 12px; }
.copy-link { color: var(--accent-text); background: var(--surface-2); border-radius: 12px; font-size: 13px; }
.check-grid label { color: var(--text-3); font-size: 13px; min-height: 40px; }
.check-grid input { accent-color: var(--accent); width: 16px; height: 16px; min-height: 16px; padding: 0; }
#toast { color: var(--on-signal); background: var(--ink-800); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .15); }
.mobile-exit { display: none; }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  .workspace { padding: 0 26px 40px; }
  .viewing-bar { margin: 0 -26px; padding: 10px 26px; }
  .stat { padding: 21px 18px; }
  .stat .number { font-size: 30px; }
  .login-art { padding: 50px; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 80px minmax(0, 1fr); }
  .sidebar { padding: 25px 12px; }
  .nav button { padding: 13px 0; }
  .stat { padding: 18px 16px; }
  .stat .number { font-size: 27px; }
  .stat .label { font-size: 12px; }
  .stat .note { font-size: 12px; }
  .mobile-exit { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 7px; background: transparent; color: var(--text-3); border: 0; border-radius: 9px; }
  .login-art { padding: 38px; }
  .login-art h1 { font-size: 48px; }
}
@media (max-width: 680px) {
  :root { --radius: 22px; }
  .shell { display: block; }
  .sidebar { min-height: 72px; height: auto; padding: 8px 14px; background: var(--surface-2); }
  .brand .logo { width: 32px; height: 32px; border-radius: 10px; }
  .nav { gap: 3px; }
  .nav button { flex-direction: column; justify-content: center; gap: 3px; padding: 5px 5px; min-width: 47px; min-height: 54px; border-radius: 10px; }
  .nav .symbol { font-size: 19px; height: 19px; }
  .nav-short { display: block; font-size: 12px; line-height: 1.1; font-weight: 600; white-space: nowrap; }
  .workspace { padding: 0 16px 34px; }
  .viewing-bar { margin: 0 -16px; padding: 10px 16px; }
  .topbar { height: auto; min-height: 68px; gap: 10px; padding: 13px 0; flex-wrap: wrap; }
  .breadcrumbs { font-size: 12px; }
  .top-actions { gap: 7px; margin-left: auto; }
  .topbar select { max-width: 156px; font-size: 12px; padding: 9px; }
  .demo-badge { font-size: 12px; }
  .page-head { padding: 28px 0 24px; flex-wrap: wrap; gap: 15px; }
  .page-head h1 { font-size: 31px; }
  .page-head p { font-size: 13px; max-width: 320px; }
  .page-head .actions { justify-content: flex-start; }
  .page-head .actions .btn { font-size: 13px; min-height: 42px; padding: 10px 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 19px 16px; border-radius: 20px; }
  .stat .number { font-size: 28px; white-space: normal; overflow-wrap: anywhere; }
  .stat .label { font-size: 12px; margin-bottom: 14px; }
  .stat .note { font-size: 12px; margin-top: 11px; }
  .filters { gap: 9px; }
  .filters select, .filters input { font-size: 13px; min-height: 42px; max-width: calc(50% - 5px); padding: 9px; }
  .panel-head { padding: 22px 21px 0; gap: 10px; }
  .panel-head h2 { font-size: 18px; }
  .panel-head p { font-size: 12px; }
  .panel-head .btn { font-size: 12px; }
  .panel-body, .platform-list { padding: 21px; }
  .platform-list { grid-template-columns: 1fr; gap: 0; }
  .platform-row { grid-template-columns: 30px 1fr auto; gap: 10px; margin-bottom: 17px; }
  .platform-icon { width: 29px; height: 29px; font-size: 12px; }
  .platform-title, .platform-number { font-size: 13px; }
  .platform-number small { font-size: 12px; }
  .table th { font-size: 12px; padding: 14px 17px; }
  .table td { padding: 18px 17px; }
  .panel-footer { font-size: 12px; padding: 16px 20px; flex-wrap: wrap; }
  .panel-footer .btn.small { min-height: 38px; }
  .brief-card, .member-card, .data-card { padding: 24px; }
  .login { display: block; }
  .login-art { padding: 27px 27px 36px; border: 0; border-bottom: 1px solid var(--line); }
  .login-art h1 { margin-top: 41px; max-width: 360px; font-size: 41px; letter-spacing: -.055em; }
  .login-art p { margin-top: 22px; max-width: 350px; font-size: 14px; }
  .login-form { padding: 36px 27px 48px; }
  .login-box h2 { font-size: 29px; }
  .form input, .form select, .form textarea { font-size: 16px; }
  dialog { width: 100%; margin: auto 0 0; max-width: none; max-height: 92dvh; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dialog-head { padding: 26px 23px 18px; }
  .dialog-head h2 { font-size: 24px; }
  .dialog-body { padding: 4px 23px 30px; }
  .dialog-body .stat { padding: 14px 11px; }
  .dialog-body .stat .number { font-size: 22px; }
  .dialog-body .stat .label { font-size: 12px; }
  .check-grid label { font-size: 12px; }
  .footnote { font-size: 12px; }
  #toast { bottom: 18px; padding: 13px 18px; width: max-content; max-width: calc(100vw - 30px); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.guide-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  margin: 0 0 20px;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text-3);
}
.guide-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 17px;
}
.guide-copy { flex: 1; min-width: 0; }
.guide-label { display: block; color: var(--accent-text); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.guide-copy strong { display: block; margin-top: 1px; font-size: 14px; }
.guide-copy p { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.guide-action { flex: none; border-color: var(--accent-border); color: var(--accent-text); }
.guide-close { flex: none; align-self: flex-start; border: 0; background: transparent; color: var(--text-3); font-size: 21px; line-height: 1; padding: 3px 5px; }
.guide-close:hover { color: var(--text-3); }
.guide-reopen { display: block; margin: 0 0 15px; padding: 4px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 12px; }
@media (max-width: 680px) {
  .guide-banner { position: relative; align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; }
  .guide-icon { width: 28px; height: 28px; }
  .guide-copy { flex-basis: calc(100% - 72px); padding-right: 8px; }
  .guide-action { margin-left: 38px; }
  .guide-close { position: absolute; top: 10px; right: 10px; }
}
@media (max-width: 380px) {
  .sidebar { padding-inline: 8px; }
  .nav { gap: 2px; }
  .nav button { min-width: 43px; padding-inline: 2px; }
  .nav-short { font-size: 12px; }
}

.stat .label{padding-right:26px}

/* Mass-failure alerts (team only) */
.notice.alert-banner { background: var(--surface-2); border: 1px solid var(--danger-border); color: var(--danger-text); }
.alert-banner strong { display: block; font-size: 14px; margin-bottom: 4px; }
.alert-banner p { margin: 6px 0; }
.alert-banner small { color: var(--danger-text); opacity: .85; }
.alert-banner .btn { background: var(--surface); color: var(--danger-text); margin-top: 6px; }
.next-update { margin-bottom: 16px; }
/* Lifecycle (08.10.2026): «⋯» menus as action sheets, confirmations, segmented sections, profile entry. */
.more-btn { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; letter-spacing: .02em; cursor: pointer; }
.more-btn:hover { background: var(--surface-3); color: var(--text); }
.account-item .more-btn { margin-left: auto; }
.account-item .btn + .more-btn { margin-left: 0; }
.sheet { display: grid; overflow: hidden; border-radius: 16px; background: var(--surface-3); margin-bottom: 12px; }
.sheet-item { display: grid; gap: 2px; text-align: left; width: 100%; min-height: 52px; padding: 13px 18px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--accent-text); font-size: 16px; font-weight: 500; cursor: pointer; }
.sheet-item:first-child { border-top: 0; }
.sheet-item:hover { background: var(--accent-soft); }
.sheet-item small { color: var(--muted); font-size: 12px; font-weight: 400; }
.sheet-item.danger { color: var(--danger-text); }
.sheet-item.danger:hover { background: var(--danger-soft); }
.sheet-cancel { width: 100%; min-height: 48px; font-size: 15px; font-weight: 600; }
.btn.primary.danger { background: var(--danger-strong); border-color: var(--danger-strong); }
.btn.primary.danger:hover { background: var(--danger-strong); border-color: var(--danger-strong); }
.btn.danger-text { color: var(--danger-text); }
.btn.danger-text:hover { border-color: var(--danger-border); background: var(--surface-2); }
.confirm-text { color: var(--text-2) !important; font-size: 14px !important; line-height: 1.6 !important; margin: 0 0 6px; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.confirm-actions .btn { flex: 1 1 160px; }
.form .confirm-actions .btn { margin-top: 0; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 20px; border-radius: 12px; background: var(--surface-3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; padding: 8px 14px; min-height: 34px; border-radius: 9px; white-space: nowrap; cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.card-head h3 { font-size: 18px; margin: 0 0 8px; }
.card-actions { display: inline-flex; align-items: center; gap: 2px; }
.meta-line { color: var(--muted); }
.chat-list { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; display: grid; gap: 2px; }
.chat-list-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-3); }
.chat-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; border-top: 1px solid var(--line); }
.chat-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.chat-row small { display: inline; margin-left: 8px; font-size: 12px; }
.user-list { display: grid; padding-top: 6px; padding-bottom: 6px; }
.user-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.user-row:first-child { border-top: 0; }
.user-meta { min-width: 0; overflow-wrap: anywhere; }
.user-meta small { display: block; font-size: 12px; }
.identity-link { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.identity-link:hover { background: var(--surface-3); }
.identity-link > span:last-child { display: grid; min-width: 0; }
.identity-link .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table.invites { min-width: 720px; }
@media (max-width: 680px) {
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 16px; }
  .segmented button { padding: 8px 6px; font-size: 13px; }
  .user-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .user-row .user-meta { grid-column: 1 / -1; grid-row: 2; padding-left: 40px; }
  .more-btn { width: 40px; height: 40px; }
  .sheet-item { min-height: 54px; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { flex: none; width: 100%; }
}

/* Telegram notifications: the last step after an application, the profile switch, badges (15.10.2026) */
.step-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 8px; }
.connect .connect-btn { width: 100%; padding: 15px 18px; font-size: 15px; margin: 6px 0 14px; }
.connect-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.connect-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: connect-pulse 1.6s ease-out infinite; }
@keyframes connect-pulse { 0% { box-shadow: 0 0 0 0 rgba(114, 210, 251, .7); } 70% { box-shadow: 0 0 0 10px rgba(114, 210, 251, 0); } 100% { box-shadow: 0 0 0 0 rgba(114, 210, 251, 0); } }
.connect-mark.done { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--on-signal);
  background: linear-gradient(145deg, #72d2fb, #2d8be0); box-shadow: 0 10px 30px rgba(45, 139, 224, .3); margin-bottom: 18px; animation: connect-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes connect-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.connect .copy-link { margin-top: 6px; }
.tg-connect { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.tg-connect small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bot-pill { margin-left: 6px; vertical-align: middle; }
.signups.unlinked { opacity: .92; }
@media (prefers-reduced-motion: reduce) { .connect-pulse, .connect-mark.done { animation: none; } }

/* 15.10.2026 «Удобство»: шрифт от 12px, контраст 4.5:1, касания от 40px, один баннер, фильтры, карточки публикаций */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.brand-note, .identity small, .live, .stat .note, .panel-head p, .chart-labels, .platform-number small, .table small, .panel-footer, .brief-card footer, .member-card .accounts, .login-foot, .form .help, .demo-block small, .history-entry small, .footnote, .stat .label, .role-moved, .account-meta, .guide-label, .user-meta small, .chat-row small, .help { color: var(--text-3); }
.table th { color: var(--text-3); background: var(--surface-2); }
.chart-labels { color: var(--text-3); }
.rights li.no { color: var(--text-3); }
.live { color: var(--success-text); }
.form .help { color: var(--text-3); }
.guide-label { color: var(--accent-text); }
.guide-reopen { color: var(--accent-text); }
.notice { color: var(--warning-text); }
.notice.info { color: var(--accent-text); }
.collector-warning strong { color: var(--warning-text); }
abbr.term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.member-roles small { opacity: 1; font-size: 12px; color: inherit; }
/* один главный баннер */
.attention-more { margin: 0 0 14px; }
.attention-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-field); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; }
.attention-toggle:hover { background: var(--surface-2); }
#attention-list { margin-top: 12px; }
#attention-list[hidden] { display: none; }
/* фильтры */
.filters { display: block; padding-bottom: 20px; }
.filters-main, .filters-extra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters-extra { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.filters-extra[hidden] { display: none; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 170px; max-width: 260px; font-size: 12px; color: var(--text-3); }
.fld span { font-weight: 500; }
.fld select, .fld input { width: 100%; max-width: none; min-height: 40px; font-size: 14px; color: var(--text-2); }
.filters-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters-buttons .btn { min-height: 40px; font-size: 13px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; }
.chip-x { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 18px; line-height: 1; }
.chip-x:hover { background: var(--accent-soft); }
/* закрытие окна с изменениями */
.discard-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 23px 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--danger-border); color: var(--danger-text); font-size: 13px; }
.discard-bar .actions { margin-left: auto; display: flex; gap: 8px; }
/* карточки публикаций: на телефоне вместо таблицы */
.pub-cards { display: none; }
.pub-card { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
.pub-card:last-child { border-bottom: 0; }
.pub-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pub-plat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pub-card .post-title { display: block; overflow-wrap: anywhere; font-weight: 600; }
.pub-meta { display: block; color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.pub-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.pub-nums dt { font-size: 12px; color: var(--text-3); }
.pub-nums dd { margin: 2px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.pub-card .btn { justify-self: stretch; margin-top: 4px; }
@media (max-width: 680px) {
  .table-wrap:has(+ .pub-cards) { display: none; }
  .pub-cards { display: block; }
  .breadcrumbs { display: none; }
  .topbar { min-height: 56px; }
  .nav-short { font-size: 12px; }
  .sidebar { gap: 8px; }
  .nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; justify-content: flex-start; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: 0 0 auto; min-width: 64px; padding: 5px 8px; min-height: 56px; }
  .btn, .btn.small, .btn.ghost, .segmented button, .more-btn, .exit, .dialog-close, .guide-close, .chip-x, .attention-toggle, .sheet-item, .guide-reopen { min-height: 40px; }
  .more-btn, .exit, .dialog-close, .guide-close { min-width: 40px; width: auto; }
  .panel-footer .btn.small, .payout-toolbar select { min-height: 40px; }
  .panel-footer .btn.small { min-width: 40px; }
  a.brand { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .post-title { display: inline-flex; align-items: center; min-height: 40px; }
  .guide-close { display: inline-grid; place-items: center; }
  .btn.ghost, .guide-reopen { padding-top: 9px; padding-bottom: 9px; }
  .topbar select, .filters select, .filters input, .form input, .form select, .form textarea { min-height: 40px; }
  .fld { flex: 1 1 100%; max-width: none; }
  .filters-buttons { width: 100%; }
  .filters-buttons .btn { flex: 1 1 auto; }
  .discard-bar { margin: 0 23px 10px; }
  .discard-bar .actions { width: 100%; }
  .discard-bar .actions .btn { flex: 1; }
}
.stat-symbol { color: var(--text-3); }
.rights.compact, .rights-card h3 small { font-size: 12px; }
.dialog-close { color: var(--text-3); }
.guide-close { color: var(--text-3); }

/* ===== 16.10.2026 «Удобство», второй круг: нижняя панель на телефоне, «Ещё», значки, страница ожидающего заявителя ===== */
.topbar-brand { display: none; }
.nav .symbol { position: relative; }
.nav-badge { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger-strong); color: var(--on-signal); font-size: 12px; font-weight: 650; line-height: 18px; text-align: center; letter-spacing: 0; }
.nav-badge.inline { position: static; margin-left: auto; }
.nav button.nav-more, .nav-sheet { display: none; }
.tip-btn { display: inline-grid; place-items: center; vertical-align: middle; width: 28px; height: 28px; margin-left: 10px; padding: 0; border: 1px solid var(--accent-border); border-radius: 50%; background: var(--surface); color: var(--accent-text); font-size: 16px; line-height: 1; cursor: pointer; }
.tip-btn:hover { background: var(--surface-3); }
.section-lead { color: var(--muted); font-size: 13px; margin: -8px 0 16px; max-width: 640px; }
.brief-project { margin: 2px 0 6px; font-size: 13px; }
.people-search { display: block; margin: 0 0 14px; }
.people-search input { width: 100%; max-width: 420px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--border-field); border-radius: 12px; background: var(--surface); font-size: 14px; }
.show-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.rights-more { margin-top: 8px; }
.rights-more summary { cursor: pointer; color: var(--accent-text); font-size: 12px; font-weight: 600; padding: 4px 0; }
details.rights-card > summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
details.rights-card > summary::-webkit-details-marker { display: none; }
details.rights-card > summary span { font-size: 12px; color: var(--muted); }
details.rights-card > summary strong::after { content: ' ▾'; color: var(--text-3); }
details.rights-card[open] > summary strong::after { content: ' ▴'; }
details.rights-card[open] > summary { margin-bottom: 6px; }
.rights-grid .rights-card.mine { grid-column: 1 / -1; }
.connect-mark.pending { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--on-signal); background: linear-gradient(135deg, #7455d7, #72d2fb); margin-bottom: 18px; }
.pending-facts { display: grid; gap: 10px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pending-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.pending-facts dt { color: var(--muted); }
.pending-facts dd { margin: 0; overflow-wrap: anywhere; }
.pending-facts dd small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pending-tip { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); font-size: 13px; line-height: 1.6; }
.pending-tip p { margin: 4px 0 0; }
.filters-phone-toggle { display: none; }
.filters-phone-toggle small { margin-left: auto; color: var(--muted); font-size: 12px; text-transform: capitalize; }
@media (max-width: 680px) {
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; height: auto; min-height: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; flex-direction: row; justify-content: center; background: var(--surface-2); }
  .sidebar > .brand, .sidebar > .brand-note, .sidebar-bottom { display: none; }
  .nav { position: static; display: flex; width: 100%; overflow: visible; justify-content: space-around; gap: 2px; margin: 0; }
  .nav > button { flex: 1 1 0; min-width: 0; padding: 6px 2px; min-height: 56px; }
  .nav > button .nav-name { display: none; }
  .nav > button.nav-extra { display: none; }
  .nav > button.nav-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--text-3); border-radius: 10px; }
  .nav-more.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
  .nav-more svg { width: 22px; height: 22px; }
  .nav-sheet { position: absolute; right: 8px; bottom: calc(100% + 8px); min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 36px rgba(30, 24, 60, .2); }
  .nav-sheet.open { display: grid; gap: 2px; }
  .nav .nav-sheet button { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text-2); font-size: 15px; text-align: left; }
  .nav .nav-sheet button.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
  .nav-sheet .symbol svg { width: 20px; height: 20px; }
  .workspace { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .topbar-brand { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; }
  .topbar-brand .logo { width: 32px; height: 32px; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .viewing-bar { top: 0; }
  .filters-phone-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; justify-content: flex-start; }
  .filters:not(.phone-open) .filters-body { display: none; }
  .filters.phone-open .filters-body { margin-top: 10px; }
  .pending-facts div { grid-template-columns: 1fr; gap: 2px; }
  .rights-grid .rights-card.mine { grid-column: auto; }
}
