/* WoMo-Logbuch – „digitales Roadbook"
   Palette: Asphalt-helles Moosgrau, Kiefern-Grün für die Route,
   Wegweiser-Blau für Aktionen, Mono für alles, was Daten sind. */

:root {
  --bg: #ebeee7;
  --card: #ffffff;
  --ink: #1c2520;
  --muted: #61705f;
  --line: #d5dace;
  --route: #2c5f45;
  --route-soft: #e2ece6;
  --accent: #1e4f8f;
  --accent-ink: #ffffff;
  --danger: #a4332a;
  --radius: 10px;
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  /* Kein horizontales Scrollen – auch nicht als installierte PWA */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

/* Lange, leerzeichenlose Tokens (Buchungsnummern, URLs, Kennzeichen)
   umbrechen, statt die Seite breit zu ziehen */
.mono, .ref, .booking-web, .trip-notes, .route-program,
td, dd, .crew-notes { overflow-wrap: anywhere; }

/* Formularfelder nie breiter als ihr Container */
input, select, textarea { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.3em;
  text-transform: none;
}
h1 { font-size: 2.1rem; line-height: 1.1; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

a { color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ------------------------------------------------ Kopf & Rahmen */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  /* Auf schmalen Screens rutscht die Nav als zweite Zeile unter die Marke */
  flex-wrap: wrap; row-gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--card);
  border-bottom: 2px solid var(--route);
}
.topbar-main { display: flex; align-items: center; gap: 1.1rem; }
/* WoMo (gefüllt) + Logbuch (umrandet) sitzen zusammen wie ein
   Segmented-/Toggle-Element, damit „Logbuch" nicht als Nav-Link wirkt */
.brand { display: inline-flex; align-items: stretch; gap: 0; text-decoration: none; color: var(--ink); }
.brand-sign {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--route); color: #fff;
  padding: 0.15rem 0.55rem; letter-spacing: 0.08em;
  border: 2px solid var(--route); border-radius: 7px 0 0 7px;
}
.brand-name {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: 0 0.55rem;
  border: 2px solid var(--route); border-left: none; border-radius: 0 7px 7px 0;
}
.topnav { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.navlink {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.navlink:hover { color: var(--accent); }
.who { color: var(--muted); font-size: 0.95rem; }

/* Burger-Button und Seiten-Sprungmarken: nur mobil sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 38px; padding: 0 10px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
}
.section-link, .menu-sep { display: none; }

.page { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1rem 0 2rem; }

.flashes { margin-bottom: 1rem; }
.flash {
  background: #fdf3e4; border: 1px solid #e8c98f; border-radius: var(--radius);
  padding: 0.6rem 0.9rem; margin-bottom: 0.4rem;
}

/* ------------------------------------------------ Buttons & Formulare */

.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent; border-radius: 8px;
  padding: 0.45rem 1rem; background: none; color: var(--ink);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #173f74; }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--card); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-small { font-size: 0.9rem; padding: 0.25rem 0.7rem; border: 1.5px solid var(--line); background: var(--card); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

label { display: block; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; margin-top: 0.25rem;
  font: inherit; color: var(--ink);
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
fieldset {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem 0.2rem; margin: 0 0 1rem;
}
legend { font-family: var(--font-display); font-weight: 600; padding: 0 0.4rem; }
.import-box { border-color: var(--route); background: var(--route-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; }
.form-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }

.auth-card, .form-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; max-width: 460px; margin: 2rem auto;
}
.form-card { max-width: 640px; }
.lead { color: var(--muted); margin-top: -0.3rem; }
.alt { color: var(--muted); font-size: 0.95rem; }
.crumb { margin: 0 0 0.6rem; font-size: 0.95rem; }
.crumb a { text-decoration: none; }

/* ------------------------------------------------ Dashboard */

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.subline { color: var(--muted); margin: 0; }
.head-actions { display: flex; gap: 0.5rem; }

.trip-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.trip-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line);
  border-left: 5px solid var(--route);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  transition: border-color 120ms ease, transform 120ms ease;
}
.trip-card:hover { border-color: var(--route); transform: translateY(-2px); }
.trip-card-head h2 { margin-bottom: 0.1rem; }
.dates { color: var(--muted); }
.trip-card-stats {
  display: flex; gap: 1.4rem; margin: 0.8rem 0 0.4rem; padding: 0;
}
.trip-card-stats div { display: flex; flex-direction: column-reverse; }
.trip-card-stats dt { color: var(--muted); font-size: 0.8rem; }
.trip-card-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.trip-card-vehicle { color: var(--muted); font-size: 0.92rem; margin: 0; }

.empty {
  text-align: center; background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--radius); padding: 3rem 1rem;
}
.empty-hint { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------ Admin */

.admin-stats {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--card); border: 1.5px solid var(--line);
  border-left: 5px solid var(--route); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; display: flex; flex-direction: column;
}
.stat-value {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
}
.stat-label { color: var(--muted); font-size: 0.85rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%; border-collapse: collapse; min-width: 680px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.admin-table th {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.85rem; color: var(--muted);
  text-align: left; padding: 0.5rem 0.7rem;
  border-bottom: 1.5px solid var(--line);
}
.admin-table td {
  padding: 0.45rem 0.7rem; border-bottom: 1px dotted var(--line);
  vertical-align: middle;
}
.admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.admin-settings {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.admin-settings p { margin: 0; }

/* ------------------------------------------------ 2FA */

.qr-box {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem; margin: 0.8rem 0; width: fit-content;
}
.qr-box svg { display: block; width: 180px; height: 180px; }
.recovery-codes {
  list-style: none; padding: 0.8rem 1rem; margin: 0.8rem 0;
  background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.4rem; font-size: 1.05rem;
}

/* ------------------------------------------------ Fahrzeug-Panel */

.vehicle-card {
  background: var(--card); border: 1.5px solid var(--line);
  border-left: 5px solid var(--route);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.vehicle-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }

.vehicle-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.vehicle-data { display: grid; gap: 0.25rem; margin: 0; }
.vehicle-data > div {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dotted var(--line); padding-bottom: 0.25rem;
}
.vehicle-data dt { color: var(--muted); }
.vehicle-data dd { margin: 0; }
.plate {
  border: 2px solid var(--ink); border-radius: 5px;
  padding: 0.05rem 0.5rem; font-weight: 500; letter-spacing: 0.08em;
  background: #fff;
}
.vdim { color: var(--muted); font-size: 0.92rem; }
.vdim-h { color: var(--danger); font-weight: 600; }
.trip-notes { color: var(--muted); max-width: 70ch; white-space: pre-line; }

/* ------------------------------------------------ Teilen, Packliste, Anhänge */

.share-badge {
  color: var(--muted); font-size: 0.9rem; border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 0.3rem 0.7rem; align-self: center;
}
.shared-head { margin-top: 2rem; }
.packing-category {
  font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin: 0.9rem 0 0.3rem;
}
.attachment { font-size: 0.92rem; }
.route-stop.dragging { opacity: 0.5; }

/* ------------------------------------------------ Einklappbare Panels */

details.panel > summary, details.fold > summary {
  cursor: pointer; list-style: none; user-select: none;
}
details.panel > summary::-webkit-details-marker,
details.fold > summary::-webkit-details-marker { display: none; }
details.panel > summary h2::before, details.fold > summary::before {
  content: "▸"; display: inline-block; margin-right: 0.45rem;
  color: var(--muted); transition: transform 0.15s;
}
details.panel[open] > summary h2::before,
details.fold[open] > summary::before { transform: rotate(90deg); }
details.panel:not([open]) > summary.panel-head { margin-bottom: 0; }
details.fold {
  margin-bottom: 1rem;
}
details.fold > summary {
  font-family: var(--font-display); font-weight: 600; color: var(--muted);
}
.countdown {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--route); margin: 0.2rem 0 0;
}
#route-map { height: 380px; border-radius: var(--radius); margin-top: 0.6rem; }
.route-total { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.route-total:empty { display: none; }
.fold-count {
  font-size: 0.8rem; color: var(--muted); font-weight: 400;
  vertical-align: middle; margin-left: 0.2rem;
}
a.who { text-decoration: none; }
a.who:hover { text-decoration: underline; }

/* ------------------------------------------------ Detail-Layout */

/* minmax(0,…) statt 1fr: lässt die Spalten unter die min-content-Breite
   schrumpfen – sonst dehnt langer Inhalt die Spalte über den Schirm hinaus */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.detail-grid > *, .panel, .side-col { min-width: 0; }
.side-col { display: grid; gap: 1.2rem; }
@media (min-width: 861px) {
  /* Seitenspalte bleibt beim Scrollen oben kleben – ohne eigene
     Scrollleiste, sie bewegt sich immer mit der Seite */
  .side-col { position: sticky; top: 1.2rem; }
}
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .row2, .row3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  /* Header bleibt beim Scrollen sichtbar */
  .topbar { position: sticky; top: 0; z-index: 1000; padding: 0.7rem 1rem; }
  .nav-toggle { display: flex; }
  /* Navigation als Burger-Menü: zu, bis der Button sie öffnet */
  .topnav { display: none; }
  .topnav.open {
    display: flex; flex-direction: column; align-items: stretch;
    flex-basis: 100%; gap: 0.2rem; padding-top: 0.6rem;
  }
  .topnav.open .navlink,
  .topnav.open .who { padding: 0.55rem 0.2rem; border-bottom: 1px dotted var(--line); }
  .topnav.open form { padding-top: 0.6rem; }
  .topnav.open .section-link { display: block; }
  .topnav.open .menu-sep {
    display: block;
    font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); margin-top: 0.6rem;
  }
  /* Anker dürfen nicht unter dem sticky Header verschwinden */
  .panel, .fold, #route, .route-stop, .booking { scroll-margin-top: 4.6rem; }
}

.panel {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.panel-head h2 { margin: 0; }

/* ------------------------------------------------ Signatur: Routenlinie */

.route { list-style: none; margin: 0; padding: 0; position: relative; }
/* Kompaktmodus: nur Ort, Ankunft, Nächte, Fahrtzeit – Details ausblenden */
.route:not(.expanded) .route-detail { display: none; }
.route::before {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px;
  width: 4px; background: var(--route); border-radius: 2px;
}
.route-stop { position: relative; padding: 0 0 1.4rem 3.1rem; }
.route-stop:last-child { padding-bottom: 0; }

.route-marker {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--route); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg);
}
.drive-time {
  color: var(--route); font-size: 0.82rem; font-weight: 500;
  margin: -0.4rem 0 0.35rem 0; padding-left: 3.1rem;
  position: relative;
}
.route-stop .drive-time { padding-left: 0; margin-left: 0; transform: translateX(0); }
.route-stop > .drive-time {
  position: relative; left: 0; margin-bottom: 0.4rem;
  padding: 0.05rem 0.5rem; display: inline-block;
  background: var(--route-soft); border-radius: 999px;
  /* Nur knapp neben der Routenlinie statt auf Höhe des Etappentexts –
     sonst bricht eine längere Fahrzeit auf schmalen Schirmen um */
  margin-left: 1.7rem;
}

.route-title { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.route-title h3 { margin: 0; }
.nights-badge {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  background: var(--route-soft); color: var(--route);
  border-radius: 999px; padding: 0.05rem 0.6rem;
}
.route-meta { color: var(--muted); margin: 0.15rem 0 0.3rem; font-size: 0.95rem; }
.route-program { margin: 0.2rem 0 0.3rem; font-size: 0.95rem; white-space: pre-line; }
.route-bookings { margin: 0.3rem 0 0.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.booking-label { font-size: 0.82rem; color: var(--muted); }
.booking-chip {
  font-size: 0.82rem; text-decoration: none;
  background: var(--route-soft); color: var(--route);
  border-radius: 999px; padding: 0.1rem 0.6rem; max-width: 100%;
}
.booking-chip:hover { text-decoration: underline; }

.route-actions {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.88rem; margin-top: 0.2rem;
}
.route-actions form { display: inline-flex; gap: 0.3rem; margin: 0; }
.route-actions button {
  border: none; background: none; cursor: pointer; font: inherit;
  color: var(--accent); padding: 0;
}
.route-actions button:disabled { color: var(--line); cursor: default; }
.link-danger { color: var(--danger) !important; }

/* ------------------------------------------------ Buchungen */

.booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.booking { border: 1.5px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem; scroll-margin-top: 1rem; }
.route-stop { scroll-margin-top: 1rem; }
.flash-highlight { animation: flash-hl 1.6s ease; }
@keyframes flash-hl {
  0%, 100% { background: transparent; border-color: var(--line); }
  20% { background: var(--route-soft); border-color: var(--route); }
}
.booking h3 { margin: 0.15rem 0 0.1rem; }
.booking-top { display: flex; justify-content: space-between; align-items: center; }
.kind-tag {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.05rem 0.5rem; border-radius: 4px;
  background: var(--route-soft); color: var(--route);
}
.kind-faehre { background: #e3ebf7; color: var(--accent); }
.price { font-weight: 500; }
.ref, .when, .bnotes { margin: 0.1rem 0; font-size: 0.92rem; color: var(--muted); }
.booking-stop, .booking-web, .booking-address { margin: 0.15rem 0; font-size: 0.9rem; }
.booking-stop a, .booking-web a { text-decoration: none; }
.booking-stop a:hover, .booking-web a:hover { text-decoration: underline; }
.address-link {
  font: inherit; color: var(--accent); background: none; border: none;
  padding: 0; cursor: pointer; text-align: left;
  white-space: normal; overflow-wrap: anywhere;
}
.address-link:hover { text-decoration: underline; }

.address-dialog {
  border: none; border-radius: var(--radius); padding: 1.6rem;
  max-width: min(92vw, 640px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.address-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.address-big {
  font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.25; margin: 0 0 1.2rem;
  white-space: pre-line; overflow-wrap: anywhere;
}
.address-dialog-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.booking-total {
  margin: 0.8rem 0 0; padding-top: 0.6rem; border-top: 1.5px solid var(--line);
  text-align: right; font-weight: 600;
}

/* ------------------------------------------------ Crew & Checkliste */

.crew-list { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.crew-list li {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.3rem 0; border-bottom: 1px solid var(--line);
}
.crew-list li:last-child { border-bottom: none; }
.crew-name { font-weight: 600; }
.crew-notes { color: var(--muted); font-size: 0.88rem; flex: 1; }
.crew-list form { margin-left: auto; }
.crew-list .link-danger, .check-list .link-danger {
  border: none; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1;
}

.inline-form { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.stacked-form { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.stacked-form .btn { justify-self: start; }

.emergency-list { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; gap: 0.7rem; }
.emergency { border: 1.5px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; }
.emergency-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.emergency-phone { margin: 0.25rem 0 0.1rem; font-size: 1.05rem; }
.emergency-phone a { text-decoration: none; }
.emergency-phone a:hover { text-decoration: underline; }
.inline-edit { margin-top: 0.4rem; }
.inline-edit > summary {
  cursor: pointer; color: var(--accent); font-size: 0.88rem;
  list-style: none; width: fit-content;
}
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit > summary:hover { text-decoration: underline; }
.inline-edit .stacked-form { margin-top: 0.5rem; }

/* Bearbeiten-Modus: Edit-Steuerung erst nach Klick auf „Bearbeiten" zeigen */
.panel:not(.editing) .edit-only { display: none; }
.edit-toggle { white-space: nowrap; margin-left: auto; }

.check-list { list-style: none; margin: 0 0 0.4rem; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line);
}
.check-list li > div { flex: 1; }
.check-list li:last-child { border-bottom: none; }
.checkbox {
  width: 22px; height: 22px; flex: none; cursor: pointer;
  border: 2px solid var(--route); border-radius: 6px; background: #fff;
  color: #fff; font-size: 0.85rem; line-height: 1;
}
li.done .checkbox { background: var(--route); }
li.done .check-text { text-decoration: line-through; color: var(--muted); }
.due {
  display: block; font-size: 0.8rem; color: var(--danger);
}
li.done .due { color: var(--muted); }
.open-count {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  background: #f6e3d9; color: #9a4a1f; border-radius: 999px; padding: 0.05rem 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
