:root {
  color-scheme: dark;
  --ink: #130b05;
  --ink-soft: #160d06;
  --charcoal: #1e130a;
  --charcoal-raised: #241811;
  --charcoal-hover: #2b1c12;
  --rule: #34312c;
  --rule-soft: #272620;
  --parchment: #f1e9d8;
  --parchment-soft: #ddd4c2;
  --muted: #b9b3a7;
  --muted-strong: #cfc6b5;
  --brass: #c9a24b;
  --brass-light: #e6c778;
  --brass-dark: #8b6a32;
  --sage: #88a98d;
  --sage-dark: #294032;
  --amber: #d5ad62;
  --amber-dark: #493817;
  --oxblood: #c77c78;
  --oxblood-dark: #452322;
  --info: #a9bcc8;
  --focus: #e4c782;
  --sidebar-width: 16.5rem;
  --z-sidebar: 30;
  --z-topbar: 20;
  --z-dialog: 60;
  --z-toast: 70;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 14% -12%, rgba(197, 161, 90, 0.09), transparent 32rem),
    linear-gradient(180deg, #100a05 0%, var(--ink) 38rem);
  color: var(--parchment);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 3px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[x-cloak] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--brass-light);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 700;
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-panel {
  width: min(100%, 30rem);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(36, 24, 17, 0.98), rgba(22, 13, 6, 0.98));
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.22);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.brand-medallion {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.brand-title {
  margin: 0;
  color: var(--parchment);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-panel h1,
.page-title,
.section-title {
  color: var(--parchment);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  text-wrap: balance;
}

.login-panel h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.login-copy {
  max-width: 44ch;
  margin: 0.75rem 0 1.5rem;
  color: var(--muted-strong);
  font-size: 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--parchment-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-control {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #4a4740;
  border-radius: 0.5rem;
  background: #160d06;
  color: var(--parchment);
  padding: 0.72rem 0.85rem;
}

.field-control::placeholder {
  color: #aaa397;
  opacity: 1;
}

.primary-button,
.secondary-button,
.danger-button,
.quiet-button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.68rem 1rem;
  font-weight: 700;
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out,
    transform 180ms ease-out;
}

.primary-button {
  background: var(--brass);
  color: var(--ink);
}

.primary-button:hover {
  background: var(--brass-light);
}

.secondary-button {
  border: 1px solid #4b4841;
  background: var(--charcoal-raised);
  color: var(--parchment);
}

.secondary-button:hover,
.quiet-button:hover {
  background: var(--charcoal-hover);
  color: var(--parchment);
}

.danger-button {
  background: var(--oxblood-dark);
  color: #f5d7d4;
}

.danger-button:hover {
  background: #5a2b29;
}

.quiet-button {
  background: transparent;
  color: var(--muted-strong);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.quiet-button:active {
  transform: translateY(1px);
}

.login-submit {
  width: 100%;
  margin-top: 1rem;
}

.inline-error {
  margin: 0.8rem 0 0;
  color: #efaaa5;
  font-size: 0.9rem;
}

.login-footnote {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.admin-frame {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: var(--z-sidebar);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule-soft);
  background: rgba(22, 13, 6, 0.97);
  padding: 1.25rem 1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  padding: 0 0.45rem 1.1rem;
}

.sidebar-brand .brand-medallion {
  width: 2.35rem;
  height: 2.35rem;
}

.sidebar-brand .brand-title {
  font-size: 1.05rem;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 0;
}

.nav-group + .nav-group {
  margin-top: 1.35rem;
}

.nav-group-label {
  margin: 0 0 0.4rem;
  padding: 0 0.65rem;
  color: #9d978c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.nav-button {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.65rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    color 180ms ease-out;
}

.nav-button:hover {
  background: var(--charcoal);
  color: var(--parchment);
}

.nav-button.is-active {
  border-color: #58482d;
  background: #211c14;
  color: var(--brass-light);
}

.nav-count {
  min-width: 1.55rem;
  border-radius: 999px;
  background: var(--oxblood-dark);
  color: #f8d9d6;
  padding: 0.1rem 0.38rem;
  text-align: center;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  border-top: 1px solid var(--rule-soft);
  padding: 1rem 0.25rem 0;
}

.sidebar-footer a,
.sidebar-footer button {
  width: 100%;
  justify-content: flex-start;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(9, 11, 15, 0.93);
  padding: 0.85rem clamp(1rem, 3vw, 2.25rem);
  backdrop-filter: blur(12px);
}

.mobile-menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--charcoal);
  color: var(--parchment);
}

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

.page-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-description {
  overflow: hidden;
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.last-updated {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.main-content {
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.25rem);
}

.status-line {
  min-height: 0.25rem;
  position: sticky;
  top: 5rem;
  z-index: 18;
}

.status-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brass);
}

.status-line.is-loading::after {
  animation: loading-line 1.15s ease-in-out infinite;
}

@keyframes loading-line {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(0.72); transform-origin: left; }
  55% { transform: scaleX(0.72); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.state-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #66413e;
  border-radius: 0.6rem;
  background: #251617;
  color: #f0cbc7;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
}

.state-banner p {
  margin: 0;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-cell {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(36, 24, 17, 0.72), rgba(22, 13, 6, 0.72));
  padding: 1rem;
}

.metric-cell.is-accent {
  border-top-color: var(--brass);
}

.metric-label {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.metric-value {
  color: var(--parchment);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.metric-value.is-brass {
  color: var(--brass-light);
}

.metric-context {
  color: var(--muted);
  font-size: 0.82rem;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  margin-top: 1rem;
}

.surface-panel {
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--charcoal);
  padding: 1.15rem;
}

.incident-panel {
  border-color: #60413e;
  background: #1b1213;
}

.incident-value {
  color: #efaaa5;
}

.data-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
}

.data-ledger > div {
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.85rem;
}

.data-ledger dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.data-ledger dd {
  margin: 0.2rem 0 0;
  color: var(--parchment);
  font-size: 1.08rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.table-shell {
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--charcoal);
  overflow: hidden;
}

table {
  border-collapse: collapse;
}

th {
  color: var(--muted-strong) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

td {
  color: var(--parchment-soft);
  font-size: 0.9rem;
}

tbody tr {
  transition: background-color 150ms ease-out;
}

tbody tr:hover {
  background: rgba(197, 161, 90, 0.045) !important;
}

.mono-data {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.action-link {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem !important;
  font-weight: 700;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.toolbar input,
.toolbar select,
.compact-control {
  min-height: 2.75rem;
  border-color: #4a4740 !important;
  border-radius: 0.5rem !important;
  background: #160d06 !important;
  color: var(--parchment) !important;
  padding: 0.58rem 0.72rem !important;
  font-size: 0.9rem !important;
}

.toolbar input::placeholder {
  color: #aaa397 !important;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--rule-soft);
  padding: 0.85rem 1rem;
}

.pagination button {
  min-height: 2.5rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.pagination-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  min-height: 1.65rem;
  align-items: center;
  border-radius: 0.3rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem !important;
  font-weight: 700;
}

.chip-neutral {
  background: #343735 !important;
  color: var(--parchment-soft) !important;
}

.chip-brass {
  background: rgba(197, 161, 90, 0.16) !important;
  color: var(--brass-light) !important;
}

.chip-sage {
  background: rgba(136, 169, 141, 0.17) !important;
  color: #b6d2b9 !important;
}

.chip-info {
  background: rgba(169, 188, 200, 0.14) !important;
  color: #cad7df !important;
}

.chip-danger {
  background: rgba(199, 124, 120, 0.16) !important;
  color: #efaaa5 !important;
}

.segment-button {
  min-height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--charcoal-raised);
  color: var(--muted-strong);
  padding: 0.58rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.segment-button:hover {
  background: var(--charcoal-hover);
  color: var(--parchment);
}

.segment-button.is-selected {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.ticket-open {
  border-color: rgba(197, 161, 90, 0.45);
}

.ticket-in_progress {
  border-color: rgba(169, 188, 200, 0.42);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-dialog) - 1);
  background: rgba(0, 0, 0, 0.72);
}

.app-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: min(85dvh, 48rem);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--charcoal);
  color: var(--parchment);
  padding: 0;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.35);
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.app-dialog form {
  margin: 0;
}

.dialog-header,
.dialog-body,
.dialog-actions {
  padding: 1.1rem 1.25rem;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.dialog-header h2,
.dialog-header h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-body {
  overflow-y: auto;
}

.dialog-description,
.dialog-copy {
  margin: 1rem 1.25rem;
  color: var(--muted-strong);
}

.dialog-record {
  border: 1px solid var(--rule-soft);
  border-radius: 0.5rem;
  background: var(--ink-soft);
  margin: 0 1.25rem 1rem;
  padding: 0.75rem;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.dialog-field {
  margin: 0 1.25rem 1.25rem;
}

.dialog-field textarea {
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--rule-soft);
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-toast);
  width: min(calc(100% - 2rem), 25rem);
  display: grid;
  gap: 0.65rem;
}

.toast,
.app-toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: #241811;
  color: var(--parchment);
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
}

.app-toast button {
  min-width: 2rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.toast.is-success,
.app-toast.is-success {
  border-color: #45664d;
  background: #152019;
}

.toast.is-error,
.app-toast.is-error {
  border-color: #6c423f;
  background: #261718;
}

.app-toast.is-warning {
  border-color: #735a2c;
  background: #241d12;
}

.leaflet-tile-pane {
  filter: grayscale(0.72) sepia(0.16) brightness(0.7) contrast(1.1);
}

.leaflet-control-zoom a,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--charcoal-raised) !important;
  color: var(--parchment) !important;
}

.map-view-control {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.55rem;
  background: var(--charcoal-raised);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.map-view-control button {
  min-height: 2.75rem;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  padding: 0 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.map-view-control button:last-child {
  border-right: 0;
}

.map-view-control button:hover:not(:disabled),
.map-view-control button:focus-visible {
  background: rgba(199, 160, 83, 0.12);
  color: var(--parchment);
}

.map-view-control button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.map-view-control button.is-active {
  background: var(--brass);
  color: var(--ink);
}

.map-view-control button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

/* The old admin used 9–12px utility text extensively. Keep compact data
   readable at the product baseline without changing every template branch. */
.text-xs {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 2.75rem;
}

.sidebar-scrim {
  display: none;
}

/* Retone the generated Tailwind utilities used by the existing templates. */
.bg-slate-900 { background-color: var(--ink-soft) !important; }
.bg-slate-800,
.bg-slate-800\/80 { background-color: var(--charcoal) !important; }
.bg-slate-700 { background-color: var(--charcoal-raised) !important; }
.bg-slate-600 { background-color: #3a2614 !important; }
.border-slate-700,
.border-slate-700\/50,
.border-slate-700\/60 { border-color: var(--rule) !important; }
.border-slate-600 { border-color: #4a4740 !important; }
.text-white,
.text-slate-100,
.text-slate-200 { color: var(--parchment) !important; }
.text-slate-300 { color: var(--parchment-soft) !important; }
.text-slate-400,
.text-gray-400 { color: var(--muted-strong) !important; }
.text-slate-500 { color: var(--muted) !important; }
.text-emerald-300,
.text-emerald-400 { color: #a9c9ad !important; }
.bg-emerald-500,
.bg-emerald-600 { background-color: var(--sage) !important; }
.bg-emerald-500\/20 { background-color: rgba(136, 169, 141, 0.16) !important; }
.text-red-300,
.text-red-400 { color: #efaaa5 !important; }
.bg-red-500\/10,
.bg-red-500\/20 { background-color: rgba(199, 124, 120, 0.14) !important; }
.border-red-500\/30,
.border-red-500\/50 { border-color: rgba(199, 124, 120, 0.45) !important; }
.text-amber-300,
.text-amber-400,
.text-yellow-300 { color: var(--brass-light) !important; }
.bg-amber-500\/20,
.bg-yellow-500\/20 { background-color: rgba(197, 161, 90, 0.15) !important; }

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

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

  .last-updated {
    display: none;
  }
}

@media (max-width: 56rem) {
  .admin-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(var(--sidebar-width), calc(100vw - 3rem));
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-sidebar) - 1);
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
  }

  .mobile-menu-button {
    display: grid;
  }

  .admin-topbar {
    min-height: 4.5rem;
  }

  .status-line {
    top: 4.5rem;
  }

  .page-description,
  .topbar-actions .secondary-button {
    display: none;
  }
}

@media (max-width: 40rem) {
  .login-shell {
    padding: 0;
  }

  .login-panel {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    padding: 1.4rem;
  }

  .main-content {
    padding: 1rem;
  }

  .admin-topbar {
    padding: 0.75rem 1rem;
  }

  .page-title {
    font-size: 1.1rem;
  }

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

  .metric-cell {
    min-height: 6.5rem;
  }

  .section-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar > * {
    width: 100% !important;
  }

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

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }
}

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