* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-muted: #f8f9fa;
  --surface-strong: #e5e7eb;
  --text: #111111;
  --text-muted: #64748b;
  --text-muted-strong: #4b5563;
  --on-primary: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --brand: #123f34;
  --brand-2: #0f766e;
  --brand-soft: #e7f3ef;
  --brand-cream: #fff8e8;
  --accent: #0f766e;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --danger-text: #b91c1c;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-card: 12px;
  --sidebar-width: 256px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}


html {
  min-width: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  min-width: 0;
}

.app-sidebar {
  background: var(--brand);
  color: var(--brand-cream);
  display: flex;
  gap: 18px;
  z-index: 20;
}

.is-authenticated .app-sidebar {
  bottom: 0;
  flex-direction: column;
  left: 0;
  padding: 18px 14px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
}

.is-public .app-sidebar {
  align-items: center;
  min-height: 92px;
  padding: 16px 24px;
}

.app-frame {
  min-width: 0;
}

.is-authenticated .app-frame {
  margin-left: var(--sidebar-width);
}

.is-public .app-frame {
  margin-left: 0;
}

.app-topbar {
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  min-height: 74px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-topbar .topbar-brand,
.app-topbar .topbar-logout {
  display: none;
}

.topbar-logout {
  margin: 0;
}

.page-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 3px;
  text-transform: uppercase;
}

main {
  margin: 0 auto;
  max-width: 1320px;
  min-width: 0;
  padding: 24px;
}

.is-public main {
  display: grid;
  max-width: 760px;
  min-height: calc(100vh - 92px);
  place-items: center;
}

.brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 54px;
  width: 34px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-subtitle {
  color: rgba(255, 248, 232, 0.78);
  font-size: 12px;
  line-height: 1.15;
}

.app-nav {
  display: grid;
  gap: 6px;
}

.app-nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 248, 232, 0.84);
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
}

.app-nav a .icon {
  height: 18px;
  width: 18px;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  background: rgba(255, 248, 232, 0.12);
  border-color: rgba(255, 248, 232, 0.18);
  color: var(--brand-cream);
}

.sidebar-footer {
  margin-top: auto;
}

.user-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-actions form {
  margin: 0;
}

.role-badge {
  background: rgba(255, 248, 232, 0.13);
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  min-width: 0;
  padding: 20px;
}

.is-public .band {
  width: 100%;
}

.band > h1,
.section-head h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  margin: 0 0 16px;
}

.band > h2 {
  font-size: 18px;
  margin: 20px 0 10px;
}

.band > h2:first-child {
  margin-top: 0;
}

.band h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.privacy-policy {
  max-width: 920px;
}

.privacy-policy p {
  color: var(--text-muted-strong);
  margin: 0 0 12px;
}

.privacy-policy__draft {
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  color: #92400e;
  font-weight: 700;
  padding: 12px;
}

.privacy-policy__requisites {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.privacy-policy__requisites div {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  padding: 8px 0;
}

.privacy-policy__requisites dt {
  color: var(--text-muted);
  font-weight: 700;
}

.privacy-policy__requisites dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-header {
  align-items: flex-start;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-header h2,
.section-header p {
  margin-top: 0;
}

.inline-form {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.breakfast-help {
  background: #f7fbf9;
}

.help-steps {
  display: grid;
  gap: 10px;
  list-style-position: outside;
  margin: 0;
  padding-left: 22px;
}

.help-steps li {
  color: var(--text);
  line-height: 1.45;
  padding-left: 4px;
}

.help-steps strong {
  color: var(--brand);
}

.settings-form {
  display: grid;
  gap: var(--space-6);
}

.settings-tabs {
  align-items: center;
  border-bottom: 1px solid var(--hairline, var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 var(--space-5);
  padding-bottom: var(--space-3);
}

.settings-tabs a {
  border-radius: var(--radius);
  color: var(--text-muted-strong);
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
}

.settings-tabs a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.settings-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.settings-group > legend {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.settings-form__actions {
  align-items: center;
  border-top: 1px solid var(--hairline, var(--border));
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-2);
  padding-top: var(--space-5);
}

.band > .row-actions {
  margin-bottom: 16px;
}

.dashboard-hero {
  align-items: center;
  background: linear-gradient(135deg, #123f34 0%, #0f766e 55%, #f2c94c 160%);
  border-radius: var(--radius);
  color: var(--brand-cream);
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 22px;
}

.dashboard-hero h2 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.dashboard-hero .muted,
.dashboard-hero .eyebrow {
  color: rgba(255, 248, 232, 0.82);
}

.dashboard-refresh {
  background: rgba(255, 248, 232, 0.12);
  border: 1px solid rgba(255, 248, 232, 0.22);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  min-width: 240px;
  padding: 12px 14px;
}

.dashboard-refresh span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-refresh strong {
  color: var(--brand-cream);
}

.dashboard-refresh--light {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

.dashboard-refresh--light span {
  color: var(--text-muted);
}

.dashboard-refresh--light strong {
  color: var(--text);
}

.dashboard-section-head {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  margin: 22px 0 18px;
  min-width: 0;
  padding: 18px;
}

.dashboard-section-head h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 4px;
}

.rk7-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.rk7-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
}

.rk7-kpi-card span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rk7-kpi-card strong {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.05;
}

.rk7-kpi-card small,
.rk7-delta {
  color: var(--text-muted);
  font-size: 12px;
}

.rk7-cockpit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  margin-bottom: 18px;
}

.rk7-bars {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 260px;
  padding-top: 18px;
}

.rk7-bar-item {
  align-items: stretch;
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.rk7-bar-track {
  align-items: end;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px 999px 6px 6px;
  display: flex;
  height: 180px;
  overflow: hidden;
  padding: 4px;
}

.rk7-bar-track i {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-radius: inherit;
  display: block;
  min-height: 2px;
  width: 100%;
}

.rk7-bar-item span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.rk7-bar-item small {
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.rk7-delta--success {
  color: var(--success);
}

.rk7-delta--danger {
  color: var(--danger);
}

.rk7-reconciliation {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.rk7-reconciliation div {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
}

.rk7-reconciliation dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.rk7-reconciliation dd {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.rk7-reconciliation__diff--success {
  border-color: rgba(16, 185, 129, 0.35);
}

.rk7-reconciliation__diff--warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.rk7-warning {
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  color: #92400e;
  font-weight: 700;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.security-hero {
  align-items: center;
  background: linear-gradient(135deg, #132f2a 0%, #1f5f54 58%, #7f8f55 150%);
  border-radius: var(--radius);
  color: var(--brand-cream);
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 22px;
}

.security-hero h2 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.security-hero .muted,
.security-hero .eyebrow {
  color: rgba(255, 248, 232, 0.82);
}

.security-toolbar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.security-toolbar span {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.security-mode-switch {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 4px;
  padding: 4px;
}

.security-mode-switch a {
  border-radius: calc(var(--radius) - 4px);
  color: var(--text-muted);
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.security-mode-switch a[aria-current="page"] {
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

.security-summary-grid,
.security-slices {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.security-slices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-data-quality {
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  color: #7c2d12;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.security-data-quality h3 {
  margin: 0 0 8px;
}

.security-data-quality ul {
  margin: 0;
  padding-left: 18px;
}

.security-risk-list {
  display: grid;
  gap: 10px;
}

.security-risk-row {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.security-risk-row strong,
.security-risk-row span {
  display: block;
}

.security-risk-row span,
.security-risk-row p {
  color: var(--text-muted);
  margin: 0;
}

.security-risk-row em {
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  color: var(--brand);
  display: inline-block;
  font-style: normal;
  font-weight: 800;
  margin: 3px 4px 0 0;
  padding: 4px 8px;
}

.security-incidents-card {
  margin-bottom: 18px;
}

.security-incidents {
  margin-top: 12px;
}

.security-incidents td small {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
}

.security-severity {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.security-severity--danger {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
}

.security-severity--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.security-severity--neutral {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.security-severity--data {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.security-severity--success {
  background: rgba(15, 118, 110, 0.10);
  color: var(--brand);
}

.dashboard-legend {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.dashboard-legend span,
.dashboard-breakdown td:first-child {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.dashboard-swatch {
  border-radius: 4px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.dashboard-swatch--yookassa {
  background: #0f766e;
}

.dashboard-swatch--vendista-cashless {
  background: #2563eb;
}

.dashboard-swatch--vendista-cash {
  background: #94a3b8;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
  --dashboard-yookassa: #0f766e;
  --dashboard-vendista-cashless: #2563eb;
  --dashboard-vendista-cash: #94a3b8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.dashboard-card__head {
  align-items: flex-start;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
}

.dashboard-card__head h3 {
  font-size: 18px;
  margin: 0;
}

.dashboard-total {
  display: grid;
  gap: 2px;
  text-align: right;
}

.dashboard-total span,
.dashboard-kpis span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-total strong {
  font-size: 18px;
  white-space: nowrap;
}

.dashboard-chart-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 18px 0;
}

.dashboard-donut {
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  width: 150px;
}

.dashboard-donut::after {
  background: var(--surface);
  border-radius: 50%;
  content: "";
  inset: 28%;
  position: absolute;
}

.dashboard-donut--empty {
  background: var(--surface-strong);
}

.dashboard-kpis {
  display: grid;
  gap: 10px;
}

.dashboard-kpis div {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  padding: 10px;
}

.dashboard-kpis strong {
  font-size: 16px;
}

.dashboard-kpis small {
  color: var(--text-muted);
}

.dashboard-breakdown {
  margin-top: 8px;
}

.dashboard-breakdown td {
  padding: 8px 0;
}

.dashboard-breakdown td:nth-child(2),
.dashboard-breakdown td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.muted {
  color: var(--text-muted);
}

.section-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h1,
.section-head p {
  margin-top: 0;
}

.toolbar,
.row-actions,
.pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar,
.pager {
  justify-content: flex-end;
}

.button-link,
button {
  align-items: center;
  background: var(--brand-2);
  border: 1px solid var(--brand-2);
  border-radius: var(--radius);
  color: var(--on-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition: background 120ms cubic-bezier(0.23, 1, 0.32, 1), border-color 120ms cubic-bezier(0.23, 1, 0.32, 1), color 120ms cubic-bezier(0.23, 1, 0.32, 1), filter 120ms cubic-bezier(0.23, 1, 0.32, 1), opacity 120ms cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.button-link .icon,
button .icon {
  height: 16px;
  width: 16px;
}

button:focus-visible,
.button-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-link:hover,
button:hover {
  filter: none;
  opacity: 0.82;
}

button:disabled,
.button-link--disabled {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  filter: none;
}

.button-link--secondary {
  background: var(--surface);
  border-color: var(--text);
  color: var(--text);
}

.button-link--danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
  color: var(--danger-text);
}

.button-link--danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--on-primary);
  filter: none;
  opacity: 1;
}

.band--secondary {
  background: var(--bg);
  box-shadow: none;
}

.band + .band--secondary {
  margin-top: var(--space-8);
}

.toolbar-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.toolbar-row > form.grid {
  flex: 1 1 320px;
  min-width: 0;
}

.toolbar-row > form:not(.grid) {
  flex: 0 0 auto;
  margin: 0;
}

.button-link--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.button-link--small {
  font-size: 13px;
  min-height: 32px;
  padding: 0 10px;
}

.button-link--icon {
  aspect-ratio: 1;
  min-width: 36px;
  padding: 0;
}

tr[data-edit-url] {
  cursor: pointer;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.invoice-link-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
}

.workflow-choice {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  text-decoration: none;
}

.workflow-choice:hover,
.workflow-choice.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.workflow-choice__step {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: var(--on-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.workflow-choice__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-choice__body small,
.field-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.field-hint {
  display: block;
  margin-top: 6px;
}

.field-label {
  display: inline-flex;
  gap: 4px;
}

.guest-registration-band,
.guest-public-band {
  max-width: 820px;
}

.guest-registration-band .section-head {
  align-items: center;
}

.guest-link-form,
.guest-public-form {
  display: grid;
  gap: 14px;
}

.guest-link-fields {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.15fr);
}

.guest-link-submit {
  justify-self: start;
  min-width: 220px;
}

.guest-registration-band .success-panel a {
  overflow-wrap: anywhere;
}

.guest-link-result {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.guest-link-result__main {
  min-width: 0;
}

.guest-link-qr {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
}

.guest-link-qr img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: block;
  height: 224px;
  padding: 10px;
  width: 224px;
}

.guest-link-qr figcaption {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  max-width: 180px;
  text-align: center;
}

.guest-public-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-public-form__wide,
.guest-public-form .checkbox-field {
  grid-column: 1 / -1;
}

.guest-public-form__submit {
  grid-column: 2;
  justify-self: end;
  min-width: 220px;
}

.guest-consent-field {
  align-items: flex-start;
  line-height: 1.35;
}

.guest-consent-field a {
  font-weight: 700;
}

.required-mark {
  color: var(--danger);
  font-weight: 800;
}

.card-code-check {
  margin-bottom: 16px;
}

.stop-panel,
.success-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0;
  padding: 16px;
}

.stop-panel {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.success-panel {
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
}

.stop-panel h3,
.success-panel h3 {
  margin-top: 0;
}

.stop-panel dl,
.summary-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
}

.stop-panel dl > div,
.summary-list > div {
  min-width: 0;
}

.stop-panel dt,
.summary-list dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stop-panel dd,
.summary-list dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.user-row-actions {
  justify-content: flex-end;
}

.user-edit-form {
  max-width: 760px;
}

.audit-diff {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.audit-diff pre {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  margin: 4px 0 0;
  max-width: 360px;
  overflow: auto;
  padding: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.group-tabs,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.group-tabs a,
.tabs a {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.group-tabs a:hover,
.group-tabs a.is-active,
.tabs a:hover,
.tabs a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-color: var(--accent);
  color: var(--accent);
}

.pager {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}

.pager__status {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.poll-notice {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--border));
  border-radius: var(--radius-card);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.poll-notice > div {
  min-width: 0;
}

.poll-notice h1 {
  font-size: 18px;
  margin: 0 0 4px;
}

.poll-notice p {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

.poll-notice__metrics,
.token {
  background: var(--surface-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 8px 10px;
}

.poll-notice__metrics {
  align-self: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.poll-notice--success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
}

.poll-notice--warning {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 34%, var(--border));
}

.poll-notice--error {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
}

label {
  color: var(--text-muted);
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

.checkbox-field {
  align-items: center;
  align-self: center;
  display: inline-flex;
  gap: 8px;
  min-height: 40px;
}

.checkbox-field input {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 18px;
}

input,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 40px;
  min-width: 0;
  padding: 0 11px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

.grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.is-public .grid {
  grid-template-columns: 1fr;
}

.error {
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
  border-radius: var(--radius);
  color: var(--danger-text);
  font-weight: 600;
  padding: 10px 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.key-value th {
  width: 210px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.icon {
  display: inline-block;
  fill: none;
  flex-shrink: 0;
  height: 1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vertical-align: -0.15em;
  width: 1em;
}

.icon--lg {
  height: 1.25em;
  width: 1.25em;
}

.icon--sm {
  height: 0.875em;
  width: 0.875em;
}

.status-pill {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  line-height: 1.2;
  max-width: 100%;
  padding: 4px 10px;
  white-space: normal;
}

.status-pill .icon {
  height: 13px;
  width: 13px;
}

.status-pill--success {
  background: var(--success-soft);
  color: var(--text);
}

.status-pill--warning {
  background: var(--warning-soft);
  color: var(--text);
}

.status-pill--danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.cell-stack {
  display: grid;
  gap: 2px;
}

.cell-stack__primary {
  color: var(--text);
  font-weight: 600;
}

.cell-stack__secondary {
  color: var(--text-muted);
  font-size: 12px;
}

.notice {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: var(--space-3);
}

.notice--success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
}

.permission-role-create-form {
  align-items: end;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(220px, 1fr) max-content;
  padding: var(--space-3);
}

.permission-subject-bar {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.15fr) minmax(220px, 1fr);
  padding: var(--space-3);
}

.permission-subject-bar [data-permission-target] {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px;
}

.permission-subject-bar [data-permission-target].is-active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
}

.permission-subject-bar [data-permission-target].is-inactive {
  opacity: 0.58;
}

.permission-subject-summary {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 12px;
}

.permission-card-scope-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-scope-form {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.card-scope-options {
  display: grid;
  gap: 8px;
}

.card-scope-option {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.card-scope-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.card-scope-saved-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-scope-saved-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.permission-breakfast-forms {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.permission-breakfast-grid {
  align-items: end;
  display: grid;
  gap: 12px;
}

.permission-breakfast-grid--filter {
  grid-template-columns: minmax(240px, 340px) max-content;
}

.permission-breakfast-grid--grant {
  grid-template-columns: minmax(280px, 360px) minmax(220px, 340px) max-content;
}

.permission-breakfast-grid button {
  min-width: 190px;
}

.permission-capability-board {
  display: grid;
  gap: var(--space-5);
}

.permission-capability-group {
  display: grid;
  gap: var(--space-3);
}

.permission-capability-group h3 {
  font-size: 16px;
  margin: 0;
}

.permission-capability-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.permission-capability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: grab;
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3);
}

.permission-card-main {
  align-items: start;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.permission-card-main h4 {
  font-size: 15px;
  margin: 0 0 4px;
}

.permission-card-main p,
.permissions-table small {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  white-space: normal;
}

.permission-card-status {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.permission-card-status__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.permission-card-status strong.is-allowed {
  color: var(--success);
}

.permission-card-status strong.is-denied {
  color: var(--danger);
}

.permission-lock {
  align-self: start;
  background: var(--warning-soft);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  white-space: nowrap;
}

.permissions-edit-form {
  grid-template-columns: 1fr;
}

.permission-action-form {
  margin: 0;
}

.permission-action-buttons {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-effect-button {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted-strong);
  min-height: 38px;
  padding: 0 8px;
}

.permission-effect-button.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--text);
}

.permission-effect-button--allow.is-active {
  background: var(--success-soft);
}

.permission-effect-button--deny.is-active {
  background: var(--danger-soft);
}

.permission-target-grid {
  display: grid;
  gap: var(--space-3);
}

.permission-target-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: var(--space-3);
}

.permission-target-card.is-active {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.permission-target-card.is-inactive {
  opacity: 0.72;
}

.permission-target-card.is-inactive select {
  cursor: not-allowed;
}

.permission-target-card small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.permission-decision {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: var(--space-3);
}

.permission-decision__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.permission-decision strong {
  font-size: 16px;
}

.permission-decision span:last-child {
  color: var(--text-muted-strong);
}

.permission-preview-grid {
  display: grid;
  gap: var(--space-3);
}

.permission-preview-grid article {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.permission-preview-grid strong {
  flex: 1 0 100%;
}

.permission-preview-grid span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  padding: 3px 8px;
}

.permission-preview-grid .is-muted {
  color: var(--text-muted);
}

.permissions-table-wrap {
  overflow-x: auto;
}

.permissions-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.permissions-table--user-overrides {
  min-width: 0;
}

.permissions-table td:nth-child(3),
.permissions-table td:nth-child(6),
.permissions-table td:nth-child(9) {
  color: var(--text-muted);
}

.permissions-table__group td {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.permission-state {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.permission-state--on {
  background: var(--success-soft);
  color: var(--text);
}

.permission-state--off {
  background: var(--surface-strong);
  color: var(--text-muted-strong);
}

@media (min-width: 901px) {
  table:not(.key-value):not(.dashboard-breakdown) tbody tr:nth-child(even) {
    background: var(--surface-strong);
  }

  table:not(.key-value):not(.dashboard-breakdown) tbody tr:nth-child(even) .cell-stack__secondary,
  table:not(.key-value):not(.dashboard-breakdown) tbody tr:nth-child(even) .muted {
    color: var(--text-muted-strong);
  }

  td.num,
  th.num {
    text-align: right;
  }
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .rk7-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rk7-cockpit-grid {
    grid-template-columns: 1fr;
  }

  .security-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-slices {
    grid-template-columns: 1fr;
  }

  .permissions-layout {
    grid-template-columns: 1fr;
  }

  .permission-role-create-form,
  .permission-subject-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-card-scope-grid {
    grid-template-columns: 1fr;
  }

  .permission-capability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .is-authenticated .app-sidebar {
    border-top: 1px solid rgba(255, 248, 232, 0.16);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.18);
    height: 74px;
    left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    right: 0;
    scrollbar-width: none;
    scroll-padding-inline: 10px;
    scroll-snap-type: x proximity;
    top: auto;
    -webkit-overflow-scrolling: touch;
    width: auto;
  }

  .is-authenticated .app-sidebar::-webkit-scrollbar {
    display: none;
  }

  .is-authenticated .sidebar-brand,
  .is-authenticated .sidebar-footer {
    display: none;
  }

  .is-authenticated .app-nav {
    display: grid;
    gap: 6px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 92px);
    min-width: 100%;
    width: max-content;
  }

  .is-authenticated .app-nav a {
    border-radius: 14px;
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
    justify-content: center;
    line-height: 1.08;
    min-height: 58px;
    padding: 6px 7px;
    scroll-snap-align: start;
    text-align: center;
    white-space: normal;
  }

  .is-authenticated .app-nav a .icon {
    height: 22px;
    width: 22px;
  }

  .is-authenticated .app-nav a:hover,
  .is-authenticated .app-nav a[aria-current="page"] {
    background: rgba(255, 248, 232, 0.16);
    border-color: rgba(255, 248, 232, 0.28);
  }

  .is-authenticated .app-frame {
    margin-left: 0;
    padding-bottom: 88px;
  }

  .app-topbar {
    align-items: center;
    display: grid;
    gap: 8px 12px;
    grid-template-areas:
      "brand logout"
      "title title";
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 10px 14px;
  }

  .app-topbar .topbar-brand {
    color: var(--text);
    display: flex;
    grid-area: brand;
  }

  .topbar-brand .brand-logo {
    height: 38px;
    width: 24px;
  }

  .topbar-brand .brand-name {
    font-size: 16px;
  }

  .topbar-brand .brand-subtitle {
    color: var(--text-muted);
    font-size: 11px;
  }

  .topbar-title {
    grid-area: title;
    min-width: 0;
  }

  .app-topbar .topbar-logout {
    display: block;
    grid-area: logout;
    justify-self: end;
  }

  .topbar-logout button {
    min-height: 34px;
    padding: 0 12px;
    width: auto;
  }

  main {
    padding: 14px;
  }

  .is-public .app-sidebar {
    min-height: 78px;
    padding: 12px 16px;
  }

  .is-public main {
    min-height: calc(100vh - 78px);
    place-items: start stretch;
  }

  .band {
    padding: 16px;
  }

  .section-head {
    display: grid;
  }

  .toolbar,
  .pager,
  .row-actions {
    justify-content: flex-start;
  }

  .toolbar-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-row > form {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .audit-diff {
    grid-template-columns: 1fr;
  }

  .workflow-choice-grid,
  .stop-panel dl,
  .summary-list {
    grid-template-columns: 1fr;
  }

  .guest-link-result,
  .guest-link-fields,
  .guest-public-form {
    grid-template-columns: 1fr;
  }

  .guest-link-qr {
    justify-self: center;
  }

  .guest-link-submit,
  .guest-public-form__submit {
    grid-column: auto;
    justify-self: stretch;
    min-width: 0;
  }

  .button-link,
  button {
    width: 100%;
  }

  .row-actions .button-link,
  .row-actions button {
    width: auto;
  }

  .user-edit-form {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .permissions-panel {
    padding: var(--space-3);
  }

  .permission-role-create-form,
  .permission-subject-bar,
  .permission-card-scope-grid,
  .permission-breakfast-grid,
  .permission-capability-list,
  .permission-action-buttons {
    grid-template-columns: 1fr;
  }

  .permissions-table {
    min-width: 0;
  }

  .poll-notice {
    display: grid;
  }

  .poll-notice__metrics {
    white-space: normal;
  }

  .dashboard-hero,
  .security-hero {
    align-items: stretch;
    display: grid;
  }

  .security-toolbar {
    align-items: stretch;
    display: grid;
  }

  .security-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-section-head {
    align-items: stretch;
    display: grid;
  }

  .dashboard-refresh {
    min-width: 0;
  }

  .rk7-kpi-grid {
    grid-template-columns: 1fr;
  }

  .security-summary-grid {
    grid-template-columns: 1fr;
  }

  .rk7-bars {
    gap: 6px;
    min-height: 220px;
  }

  .rk7-bar-track {
    height: 130px;
  }

  .rk7-bar-item small {
    display: none;
  }

  .dashboard-card__head,
  .dashboard-chart-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-total {
    text-align: left;
  }

  .dashboard-donut {
    justify-self: center;
  }

  table:not(.key-value):not(.dashboard-breakdown) thead {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  table:not(.key-value):not(.dashboard-breakdown),
  table:not(.key-value):not(.dashboard-breakdown) tbody,
  table:not(.key-value):not(.dashboard-breakdown) tr,
  table:not(.key-value):not(.dashboard-breakdown) td {
    display: block;
    width: 100%;
  }

  table:not(.key-value):not(.dashboard-breakdown) tr {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 8px 0;
  }

  table:not(.key-value):not(.dashboard-breakdown) td {
    border-bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr);
    min-width: 0;
    padding: 7px 12px;
    word-break: break-word;
  }

  table:not(.key-value):not(.dashboard-breakdown) td::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
  }

  .key-value,
  .key-value tbody,
  .key-value tr,
  .key-value th,
  .key-value td {
    display: block;
    width: 100%;
  }

  .key-value th {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .key-value td {
    padding-top: 0;
  }
}

@media (max-width: 390px) {
  .app-nav a {
    font-size: 11px;
  }

  .app-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    height: 48px;
    width: 30px;
  }

  .brand-name {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* SSO (Authentik) — фирменный красный Park Loga */
.btn-sso {
  background: #D71E32;
  border-color: #D71E32;
  color: #fff;
  width: 100%;
  margin: 0 0 var(--gap, 12px);
}

.btn-sso:hover,
.btn-sso:focus-visible {
  background: #B8182A;
  border-color: #B8182A;
  filter: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  color: var(--text-muted, #6a7280);
  font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, #d6d9de);
}

.login-divider span {
  white-space: nowrap;
}
