:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #162033;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --sidebar: #101a2d;
  --sidebar-soft: #18243c;
  --sidebar-text: #cbd5e1;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.24);
  --radius: 12px;
  --radius-sm: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 0.95rem;
}

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

.small {
  font-size: 0.8rem;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.boot-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 18px 14px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 22px;
  color: #fff;
}

.brand-title {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #8ea1bd;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-section {
  padding: 16px 10px 6px;
  color: #7386a4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sidebar-text);
  font-weight: 550;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--sidebar-soft);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: #24365a;
  color: #fff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.nav-glyph {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.14);
  color: #a9bad4;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}

.nav-item.active .nav-glyph {
  background: #3b82f6;
  color: #fff;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-context {
  min-width: 0;
}

.topbar-context strong {
  display: block;
  font-size: 0.87rem;
}

.topbar-context span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  flex: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.user-chip-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.79rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

.page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 30px 28px 56px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.page-head-copy {
  min-width: 0;
  flex: 1;
}

.page-head-copy p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 70ch;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.stat {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 7px;
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card {
  margin-top: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 55px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
  margin: 0;
  flex: 1;
}

.card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-body {
  padding: 18px;
}

.card-body.pad-0 {
  padding: 0;
}

.subtle-panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

table.data th {
  padding: 9px 13px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

table.data td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover {
  background: #fbfdff;
}

table.data td.actions,
table.data th.actions {
  text-align: right;
  white-space: nowrap;
}

table.data tfoot td {
  padding: 11px 13px;
  border-top: 1px solid var(--line-strong);
  background: var(--panel-soft);
  font-weight: 700;
}

.cell-title {
  font-weight: 600;
}

.cell-sub {
  color: var(--muted);
  font-size: 0.76rem;
}

.actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--panel-soft);
  border-color: #94a3b8;
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.btn-danger {
  background: var(--red-soft);
  border-color: #fecaca;
  color: var(--red);
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-sm {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: 6px;
}

.btn-wide {
  width: 100%;
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-green {
  border-color: #bbf7d0;
  background: var(--green-soft);
  color: var(--green);
}

.badge-amber {
  border-color: #fde68a;
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-red {
  border-color: #fecaca;
  background: var(--red-soft);
  color: var(--red);
}

.badge-blue {
  border-color: #bfdbfe;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.badge-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.forms {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 15px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > span,
.field-label {
  color: #3f4c61;
  font-size: 0.74rem;
  font-weight: 650;
}

.field-hint {
  color: var(--muted);
  font-size: 0.71rem;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--brand);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--brand);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 0.8rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px 16px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar .field {
  min-width: 130px;
}

.filter-bar .field.grow {
  flex: 1;
  min-width: 180px;
}

.filter-spacer {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.alert {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  font-size: 0.81rem;
}

.alert-error {
  border-color: #fecaca;
  background: var(--red-soft);
  color: var(--red);
}

.alert-info {
  border-color: #bfdbfe;
  background: var(--brand-soft);
  color: #1e40af;
}

.alert-success {
  border-color: #bbf7d0;
  background: var(--green-soft);
  color: var(--green);
}

.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px;
  justify-content: center;
  color: var(--muted);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  background: #fff;
}

.auth-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(32px, 6vw, 88px);
  overflow: hidden;
  background: radial-gradient(circle at 12% 18%, #2f6fed 0, transparent 34%), radial-gradient(circle at 85% 80%, #0ea5a4 0, transparent 32%), #0d172a;
  color: #fff;
}

.auth-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.promo-brand,
.promo-copy {
  position: relative;
  z-index: 1;
}

.promo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 1.02rem;
}

.promo-copy {
  max-width: 540px;
  padding: 50px 0;
}

.promo-copy h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.promo-copy p {
  max-width: 46ch;
  color: #b7c6df;
  font-size: 1.02rem;
}

.promo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.promo-points span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe6f8;
  font-size: 0.73rem;
  font-weight: 600;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  background: var(--bg);
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
}

.auth-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.auth-card .forum {
  display: grid;
  gap: 13px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

details.auth-extra {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

details.auth-extra summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
}

details.auth-extra[open] summary {
  margin-bottom: 13px;
}

.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.modal::backdrop {
  background: rgba(8, 15, 30, 0.55);
  backdrop-filter: blur(3px);
}

.modal form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  flex: 1;
  margin: 0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 11px 14px;
  border: 1px solid #334155;
  border-radius: 9px;
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  font-size: 0.8rem;
  animation: toast-in 0.16s ease-out;
  pointer-events: auto;
}

.toast.error {
  border-color: #7f1d1d;
  background: #991b1b;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.bar-fill {
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #4f9cf9);
}

.bar-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timer-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
}

.timer-clock {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.timer-copy {
  flex: 1;
  min-width: 0;
}

.timer-copy strong {
  display: block;
}

.punch-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.punch-form .field {
  min-width: 150px;
}

.punch-form .field.grow {
  flex: 1;
}

.week-grid th:first-child,
.week-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
  min-width: 170px;
}

.week-grid th:first-child {
  background: var(--panel-soft);
  z-index: 2;
}

.week-grid .day-total {
  font-weight: 700;
  background: #fbfdff;
}

.invoice-total {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  padding: 14px 18px;
  background: var(--panel-soft);
  font-weight: 700;
}

.invoice-total span {
  color: var(--muted);
  font-weight: 600;
}

.settings-section + .settings-section {
  margin-top: 18px;
}

.kv {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 7px 16px;
  font-size: 0.82rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.error-page {
  padding: 50px 20px;
  text-align: center;
}

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

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

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

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.25);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(8, 15, 30, 0.45);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .page {
    padding: 22px 16px 44px;
  }

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

  .auth-promo {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
  }
}

@media (max-width: 700px) {
  .page-head {
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .topbar-context {
    display: none;
  }

  .user-chip-name {
    display: none;
  }

  .timer-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar .field {
    flex: 1;
  }

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

  .bar-row {
    grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) auto;
  }
}

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