:root {
  --bg: #f7f7f5;
  --fg: #1d1d1b;
  --muted: #6b6b66;
  --accent: #1f6f43;
  --danger: #a3241c;
  --border: #d9d9d4;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--accent); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.lang-switch a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a[aria-current] { color: var(--fg); font-weight: 600; }
.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 4px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.app-nav a, .app-nav button.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.content { max-width: 720px; margin: 0 auto; padding: 16px; }
form.inline { display: inline; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
input[type=checkbox] { width: auto; min-height: 0; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
.error { color: var(--danger); }
.notice { color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.table-scroll { overflow-x: auto; }
.muted { color: var(--muted); }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); }
.decoy-nav { display: flex; gap: 12px; flex: 1; }
.decoy-nav a { display: inline-flex; align-items: center; min-height: 44px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin: 12px 0 4px; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; margin: 0; }
td input[type=checkbox] { width: 24px; height: 24px; }
.picker { margin: 12px 0; }
.picker-search { display: flex; gap: 8px; }
.picker-search input { flex: 1; }
.picker-map { height: 260px; margin: 8px 0; border: 1px solid var(--border); border-radius: 6px; }
.picker-results { list-style: none; padding: 0; margin: 4px 0; }
.picker-results li button { min-height: 44px; text-align: left; }
.picker-chosen { margin: 4px 0; }
fieldset.row { display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.row legend { width: 100%; }
fieldset.row input { flex: 1; min-width: 140px; }
textarea { width: 100%; padding: 8px 10px; font: inherit; border: 1px solid var(--border); border-radius: 6px; }
button.secondary { background: var(--muted); }
button.danger { background: var(--danger); }
a.trip-card { display: block; color: var(--fg); text-decoration: none; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.big-action { display: flex; width: 100%; font-size: 1.15rem; min-height: 56px; }
.calendar-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 8px; }
.calendar-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.calendar-views a[aria-current] { font-weight: 700; color: var(--fg); }
.calendar-day { margin: 12px 0; }
.calendar-day.today h2 { color: var(--accent); }
.calendar-day h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.calendar-row { border-top: 1px solid var(--border); padding: 6px 0; }
.calendar-vehicle { font-weight: 600; }
.calendar-entry { padding: 2px 0 2px 10px; border-left: 4px solid var(--border); margin: 2px 0; }
.calendar-entry.kind-trip { border-left-color: var(--accent); }
.calendar-entry.kind-tentative { border-left-color: #c8a227; }
.calendar-entry.kind-block { border-left-color: var(--danger); }
.calendar-entry.kind-time_off { border-left-color: var(--muted); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.month-head { text-align: center; font-size: 0.8rem; color: var(--muted); }
.month-cell { min-height: 52px; padding: 4px; background: var(--card); border: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.month-cell.outside { opacity: 0.45; }
.month-cell.today { border-color: var(--accent); }
.month-date { display: block; font-size: 0.85rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
figure.photo { margin: 0; padding: 6px; }
figure.photo img { width: 100%; height: auto; display: block; border-radius: 4px; }
figure.photo figcaption { font-size: 0.9rem; margin-top: 4px; overflow-wrap: anywhere; }
