:root {
  color-scheme: light;
  --page: #f5f5f7;
  --panel: #fff;
  --ink: #111;
  --muted: #60616b;
  --line: #e4e4e9;
  --soft: #f4f4f6;
  --track: #c9cbd2;
  --green: #43b02a;
  --focus: #347e24;
  --positive: #285f1d;
  --positive-bg: #edf6ea;
  --warning: #754d0e;
  --warning-bg: #fff3dc;
  --negative: #8d393e;
  --negative-bg: #fbeef0;
  --body-font: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--body-font);
  --heading-weight: 600;
  --radius: 14px;
  --rail: 204px;
  --gutter: clamp(20px, 2.45vw, 42px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101010;
  --panel: #1c1c1e;
  --ink: #fff;
  --muted: #b0b0b8;
  --line: #353538;
  --soft: #262628;
  --track: #53545b;
  --focus: #7ed965;
  --positive: #a1e78d;
  --positive-bg: #273725;
  --warning: #f5cc84;
  --warning-bg: #392e1e;
  --negative: #ffa6ad;
  --negative-bg: #3b2629;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.5 var(--body-font);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--heading-weight); }
h1 { font-size: clamp(1.95rem, 3.2vw, 2.65rem); line-height: 1.12; letter-spacing: -.042em; }
h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.022em; }
h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -.012em; }
a { color: var(--positive); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-block: 16px; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 20; padding: 10px 15px; background: var(--panel); transform: translateY(-160%); }
.skip:focus { transform: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  padding: 23px 13px 15px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand img { display: block; width: 68px; height: auto; }
.brand .logo-dark, :root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: grid; gap: 4px; padding-top: 28px; }
.nav a, .theme {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.nav svg, .theme svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav a:hover, .theme:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--soft); box-shadow: inset 3px 0 var(--green); }
.nav a[aria-current="page"] svg { color: var(--focus); }
.sidebar-end { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.theme { width: 100%; justify-content: flex-start; border: 0; text-align: left; }
.theme svg:first-child, :root[data-theme="dark"] .theme svg:nth-child(2) { display: none; }
:root[data-theme="dark"] .theme svg:first-child { display: block; }

.workspace { margin-left: var(--rail); min-width: 0; }
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 59px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .79rem;
  font-weight: 600;
}
.topline b { padding: 0 6px; color: var(--track); }
.source-tag { color: var(--muted); font-weight: 500; }
main { width: min(100%, 1570px); margin-inline: auto; padding: 25px var(--gutter) 52px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 17px; }
.intro p { margin-top: 5px; font-size: .89rem; color: var(--muted); }
.kicker { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.back { display: inline-flex; min-height: 32px; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: .84rem; text-decoration: none; }
.back:hover { color: var(--positive); }
.jump { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: -4px 0 14px; }
.jump a { display: inline-flex; align-items: center; min-height: 34px; color: var(--positive); font-weight: 600; font-size: .86rem; }

.metrics, .dashboard-grid { display: grid; gap: 12px; margin-bottom: 13px; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.overview-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); }
.secondary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric, .panel, .filter-panel, main > .filters {
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.metric { padding: 13px 14px; }
.metric > span { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.metric strong { display: block; margin: 2px 0; font-size: clamp(1.35rem, 2.3vw, 1.95rem); font-weight: 600; line-height: 1.3; letter-spacing: -.05em; }
.metric p { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.metric.accent strong { color: var(--positive); }
.secondary .metric { padding-block: 11px; }
.secondary .metric strong { font-size: 1.26rem; }
.dashboard-grid { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: stretch; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel { padding: 15px 16px; margin-bottom: 13px; }
.dashboard-grid > .panel { margin-bottom: 0; }
.panel-head { margin: 0 0 11px; }
.panel-head p, .footnote { margin-top: 3px; color: var(--muted); font-size: .79rem; }
.footnote { margin-top: 9px; }
.empty { padding: 12px 0; color: var(--muted); }
.coverage-strip, .category-tags, .entity-list, .case-links { display: flex; gap: 6px 9px; align-items: center; flex-wrap: wrap; }
.badge, .pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.3;
}
.badge.good { background: var(--positive-bg); color: var(--positive); }
.badge.warn { background: var(--warning-bg); color: var(--warning); }
.badge.loss { background: var(--negative-bg); color: var(--negative); }
.pill { color: var(--ink); text-decoration: none; padding: 8px 10px; }
.text-button { margin-left: auto; font-size: .83rem; font-weight: 650; }

.filters, .season-form { display: flex; flex-wrap: wrap; align-items: end; gap: 9px 10px; }
main > .filters, .filter-panel { margin-bottom: 13px; }
main > .filters, .filter-panel .filters { padding: 0 14px 13px; }
main > .filters { padding-top: 13px; }
.panel .filters { margin-bottom: 10px; }
.filter-panel summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.filters label, .season-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}
.filters label { flex: 1 1 145px; min-width: 0; }
.filters label:has(select[name="ukazovatel"]) { flex-basis: 185px; }
.filters .search { flex: 1.4 1 210px; }
.filters label.check-filter {
  display: flex;
  align-items: center;
  min-height: 37px;
  column-gap: 8px;
  flex-basis: 210px;
}
.check-filter input { width: 18px; height: 18px; accent-color: var(--focus); }
.filters input:not([type="checkbox"]), select, .primary, .season-form button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 500;
}
.filters input::placeholder { color: var(--muted); opacity: 1; }
.filters .date-field { display: block; position: relative; }
.date-placeholder { display: none; }
.date-field[data-empty="true"]:not(:focus-within) input { color: transparent; }
.date-field[data-empty="true"]:not(:focus-within) input::-webkit-datetime-edit { opacity: 0; }
.date-field[data-empty="true"]:not(:focus-within) .date-placeholder {
  position: absolute;
  inset: 1px 32px 1px 2px;
  display: flex;
  align-items: center;
  padding-left: 7px;
  pointer-events: none;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: .83rem;
  font-weight: 500;
}
.filter-actions { display: flex; align-items: center; gap: 10px; }
.filter-actions a { display: flex; min-height: 36px; align-items: center; color: var(--muted); font-size: .8rem; }
.primary, .season-form button { width: auto; font-weight: 650; padding-inline: 12px; }
.primary { display: inline-flex; align-items: center; background: var(--ink); color: var(--panel); text-decoration: none; }
.primary:hover { opacity: .84; }
.season-form button:hover { background: var(--soft); }
.filter-status { margin: -4px 0 10px; color: var(--muted); font-size: .79rem; }
.filter-status.error { color: var(--negative); }

.table-shell { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .84rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { padding-block: 8px; background: var(--soft); color: var(--muted); font-weight: 650; }
th:first-child { border-top-left-radius: 7px; }
th:last-child { border-top-right-radius: 7px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--soft); }
.teams-table th:nth-child(6), .teams-table td:nth-child(6) > div { white-space: nowrap; }
.entity { color: var(--ink); font-weight: 650; text-decoration: none; }
.entity:hover { color: var(--positive); text-decoration: underline; }
.secondary-note { display: block; margin-top: 3px; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.source { display: inline-block; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .8rem; }
.pagination a { display: inline-flex; min-height: 35px; align-items: center; }

.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: grid; align-items: center; grid-template-columns: 2.2ch 1fr auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.ladder li:first-child { border-top: 0; }
.ladder a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ladder a:hover { color: var(--positive); }
.position { color: var(--muted); }
.duel { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.duel div { display: grid; gap: 0; }
.duel div:last-child { text-align: right; }
.duel strong { font-size: 1.88rem; font-weight: 600; letter-spacing: -.045em; }
.duel span, .balance-caption { color: var(--muted); font-size: .79rem; }
.split { margin: 14px 0 10px; height: 9px; border-radius: 10px; background: var(--track); overflow: hidden; }
.split i { display: block; height: 100%; width: var(--share); background: var(--green); }
.balance-caption { display: flex; justify-content: space-between; gap: 8px; }
.balance-caption strong { color: var(--ink); white-space: nowrap; }
.month-frame { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 5px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 3px 21px 0; color: var(--muted); font-size: .64rem; text-align: right; line-height: 1; }
.chart-scroller { min-width: 0; overflow-x: auto; padding: 4px 2px 1px; }
.month-chart { display: grid; grid-template-columns: repeat(var(--columns),minmax(28px,1fr)); min-width: calc(var(--columns) * 28px); }
.bar-slot { display: grid; grid-template-rows: 119px auto; min-width: 0; padding: 10px 0 0; color: var(--ink); border: 0; background: none; }
.bar-track {
  display: block;
  position: relative;
  background-image: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 25%);
  border-top: 1px solid var(--line);
}
.bar-stack { position: absolute; inset: auto 18% 0; display: flex; align-items: end; height: var(--height); border-radius: 4px 4px 0 0; background: var(--track); overflow: hidden; }
.bar-stack i { display: block; width: 100%; height: var(--exact); background: var(--green); }
.bar-track strong { position: absolute; inset: auto 0 calc(var(--height) + 2px); font-size: .62rem; font-weight: 650; line-height: 1; }
.bar-label { padding-top: 5px; color: var(--muted); font-size: .62rem; white-space: nowrap; }
.bar-slot:hover .bar-track strong, .bar-slot:focus-visible .bar-track strong { color: var(--positive); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--muted); font-size: .71rem; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 3px; border-radius: 2px; background: var(--green); }
.legend span:nth-child(2) i { background: var(--track); }
.chart-output { display: block; min-height: 1.45em; margin-top: 7px; color: var(--muted); font-size: .72rem; }
.bars { min-width: 0; }
.bar-row { display: grid; width: 100%; grid-template-columns: minmax(120px, 1fr) minmax(50px, 1fr) 4ch; align-items: center; gap: 9px; min-height: 31px; border: 0; border-radius: 6px; padding: 4px 0; background: none; text-align: left; font-size: .78rem; }
.bar-row:hover, .bar-row:focus-visible { background: var(--soft); }
.bar-row strong { text-align: right; font-weight: 650; }
.bar-row meter { width: 100%; height: 9px; appearance: none; border: 0; border-radius: 8px; background: var(--soft); }
.bar-row meter::-webkit-meter-bar { height: 9px; background: var(--soft); border: 0; }
.bar-row meter::-webkit-meter-optimum-value { background: var(--green); }
.bar-row meter::-moz-meter-bar { background: var(--green); }
.horizontal-scale { display: flex; justify-content: space-between; margin-left: calc((100% - 4ch - 18px) / 2 + 9px); margin-right: calc(4ch + 9px); color: var(--muted); font-size: .64rem; }

.cases { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(250px,100%),1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.cases li, .audit-box { padding: 11px; border-radius: 8px; background: var(--soft); }
.cases h3 { margin-top: 5px; }
.cases p, .audit-box p, .review-evidence p { margin: 4px 0; color: var(--muted); font-size: .8rem; }
.case-links { margin-top: 6px; font-size: .79rem; }
.audit-box { margin-bottom: 10px; }
.review-evidence { margin-top: 5px; }
.review-evidence summary { cursor: pointer; color: var(--positive); font-size: .77rem; }

@media (max-width: 78rem) {
  .overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 62rem) {
  .sidebar { position: static; width: auto; padding: 4px var(--gutter) 0; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; }
  .brand { padding-inline: 0; }
  .nav { grid-area: 2 / 1 / 3 / 3; grid-template-columns: repeat(6,minmax(0,1fr)); padding: 0 0 5px; }
  .nav a { justify-content: center; gap: 6px; padding-inline: 5px; white-space: nowrap; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--green); }
  .sidebar-end { grid-area: 1 / 2 / 2 / 3; padding-top: 0; border-top: 0; }
  .workspace { margin-left: 0; }
  .topline { display: none; }
  main { padding-top: 19px; }
  th, td { padding-inline: 6px; }
}

@media (max-width: 48rem) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .table-shell { overflow-x: visible; }
  .table-shell table, .table-shell tbody, .table-shell tr { display: block; }
  .table-shell thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .table-shell tbody tr { padding: 6px 0; border-top: 1px solid var(--line); }
  .table-shell td { display: grid; grid-template-columns: minmax(80px, 39%) minmax(0, 1fr); column-gap: 8px; padding: 4px 0; border-bottom: 0; overflow-wrap: anywhere; }
  .table-shell td::before { content: attr(data-label); color: var(--muted); font-size: .73rem; font-weight: 600; }
  .table-shell td > div { min-width: 0; }
  .table-shell .secondary-note { margin-top: 0; }
  .table-shell .source { white-space: normal; }
  .players-table td:nth-child(1), .teams-table td:nth-child(1) { font-size: .94rem; }
}

@media (max-width: 39rem) {
  :root { --gutter: 14px; --radius: 12px; }
  main { padding: 16px var(--gutter) calc(76px + env(safe-area-inset-bottom)); }
  .sidebar { padding-top: 0; }
  .brand img { width: 60px; }
  .brand, .theme { min-height: 51px; }
  .theme { padding-inline: 5px; font-size: .78rem; }
  .nav { position: fixed; inset: auto 0 0; gap: 0; padding: 3px 2px max(3px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
  .nav a { flex-direction: column; gap: 2px; justify-content: center; min-height: 51px; padding: 4px 0; border-radius: 6px; font-size: clamp(.59rem, 2.65vw, .72rem); text-align: center; white-space: normal; line-height: 1.15; }
  .nav a[aria-current="page"] { box-shadow: inset 0 2px var(--green); }
  .nav svg { width: 18px; height: 18px; flex-basis: 18px; }
  .metrics, .overview-metrics, .secondary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
  .metric { padding: 10px 9px; }
  .metric strong { font-size: 1.55rem; }
  .metric p { font-size: .7rem; }
  .dashboard-grid.equal { grid-template-columns: 1fr; }
  .intro { flex-wrap: wrap; align-items: start; margin-bottom: 11px; }
  .panel { padding: 11px 11px; }
  .panel-head { margin-bottom: 8px; }
  .season-form { gap: 6px; }
  .filters input:not([type="checkbox"]), select { min-height: 44px; font-size: 16px; }
  .filter-panel summary, .filters label.check-filter, .primary, .filter-actions a, .season-form button, .back, .jump a, .pagination a { min-height: 44px; }
  .filters label { flex-basis: 130px; }
  .filters .search { flex-basis: 100%; }
  .bar-row { min-height: 43px; }
  .month-frame { grid-template-columns: 23px minmax(0,1fr); gap: 4px; }
  .month-chart { grid-template-columns: repeat(var(--columns),minmax(25px,1fr)); min-width: calc(var(--columns) * 25px); }
  .bar-slot { grid-template-rows: 103px auto; }
  .bar-label { white-space: normal; line-height: 1.15; }
  .bar-track strong { font-size: .59rem; }
  .bar-row, .legend { gap: 5px 8px; }
  .chart-axis { padding-bottom: 23px; }
  .table-shell .entity { display: inline-flex; align-items: center; min-height: 34px; }
  .text-button { margin-left: 0; }
}

.update-header, .update-header > div { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.update-header { justify-content: space-between; margin-bottom: .85rem; }
.update-header .primary:disabled { opacity: .48; cursor: default; }
.update-times, .update-columns { display: grid; gap: 1rem; margin: 0; }
.update-times { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .8rem 0; border-top: 1px solid var(--line); }
.update-times dt, .update-note { color: var(--muted); font-size: .79rem; }
.update-times dd { margin: .2rem 0 0; font-weight: 650; }
.update-note { margin: .05rem 0 .7rem; }
.update-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: .8rem; }
.update-columns h3 { font-size: .93rem; margin-bottom: .45rem; }
.update-columns .empty { margin: 0; font-size: .8rem; color: var(--muted); }
.update-list { list-style: none; padding: 0; margin: 0; }
.update-list li { padding: .45rem 0; overflow-wrap: anywhere; }
.update-list li + li { border-top: 1px solid var(--line); }
.update-list span { display: block; font-size: .78rem; color: var(--muted); }
@media (max-width: 680px) {
  .update-columns { grid-template-columns: 1fr; gap: .8rem; }
  .update-columns > div + div { border-top: 1px solid var(--line); padding-top: .8rem; }
}

.calendar-switch { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
.calendar-switch a, .calendar-switch .calendar-disabled { display: inline-flex; align-items: center; gap: .48rem; padding: .5rem .76rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: inherit; font-weight: 600; }
.calendar-switch a[aria-current] { color: var(--positive); border-color: var(--focus); background: var(--positive-bg); }
.calendar-presets a[aria-current] { background: #43B02A; border-color: #43B02A; color: #101010; }
.calendar-switch span { color: var(--muted); font-size: .79rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: .7rem; }
.calendar-card { display: grid; align-content: start; gap: .5rem; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
.calendar-card h3 { font-size: 1rem; }
.calendar-card p { color: var(--muted); font-size: .84rem; }
.calendar-card .calendar-players { border-top: 1px solid var(--line); padding-top: .52rem; color: var(--ink); }
.court-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; }
.court-stack { min-width: 0; display: grid; align-content: start; gap: .85rem; }
.court-stack > div + div { padding-top: .75rem; border-top: 1px solid var(--line); }
.court-columns h3 { font-size: .94rem; margin-bottom: .45rem; }
.court-columns .empty { color: var(--muted); font-size: .83rem; }
.court-columns a, .matchday-versus { color: var(--positive); }
.update-list span.matchday-versus, .update-list .source span { display: inline; }
@media (max-width: 550px) {
  .court-columns { grid-template-columns: 1fr; }
  .court-columns > div + div { border-top: 1px solid var(--line); padding-top: .7rem; }
  .calendar-switch a, .calendar-switch .calendar-disabled { min-height: 44px; }
}

.auth-background { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(100%, 430px); padding: clamp(20px,5vw,36px); border: 1px solid var(--line); background: var(--panel); border-radius: 16px; }
.auth-mark { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.6rem; }
.auth-mark .brand { margin: 0; min-height: 0; padding: 0; }
.auth-card h1 { margin-bottom: .95rem; }
.account-form, .account-inline { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.account-form label, .account-inline label { display: grid; align-content: start; gap: .28rem; text-align: left; }
.auth-card .account-form { display: grid; }
.account-form input:not([type=checkbox]), .account-form textarea { width: 100%; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .65rem; font: inherit; }
.account-form input:not([type=checkbox]) { min-height: 44px; }
.account-form textarea { min-height: 90px; resize: vertical; }
.account-form label:has(textarea) { width: 100%; }
.account-inline select { min-width: 90px; }
.account-form button { min-height: 44px; }
.account-form .account-check { display: flex; align-items: center; gap: .5rem; }
.account-secondary { color: var(--muted); font-size: .88rem; margin-top: .65rem; }
.account-note { margin: .55rem 0 .85rem; }
.account-error { color: var(--negative); }
.access-code { display: block; overflow-wrap: anywhere; padding: .65rem; margin-bottom: .65rem; background: var(--soft); border-radius: 8px; }
.account-toolbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .85rem; color: var(--muted); font-size: .84rem; }
.account-toolbar nav { display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center; }
.account-logout button { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.feedback-item { padding: .85rem 0; border-top: 1px solid var(--line); }
.feedback-item .feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0; }
@media (max-width: 550px) {
  .account-toolbar a,.account-toolbar button { display: flex; align-items: center; min-height: 44px; }
  .auth-mark .theme span { display: none; }
}
