/* FOCUS Time — light, editorial style: white canvas, near-black type, light-weight
   display headings with bold accents, pill buttons, soft grey surfaces, tiny uppercase tags.
   Mobile-first; phones get a bottom tab bar. */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --surface: #f4f4f4;
  --line: #e6e6e6;
  --tag-bg: rgba(0, 0, 0, .05);
  --ok: #1f7a3a;
  --err: #b42318;
  --radius: 20px;
  --font: "Barlow", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --nav-h: 64px;
  --tabbar-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: #dff5c9; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } main.wrap { padding-top: 40px; } }

/* ---------- Type ---------- */
h1 {
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
h1 b, h1 strong { font-weight: 700; }
h2 { font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; letter-spacing: -.005em; }
.section-title { font-weight: 300; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; }
.lead { font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 42em; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ---------- Top bar & navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 300; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: var(--surface); }
.nav a.active { background: var(--text); color: #fff; }
.nav .ico { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 699px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  /* backdrop-filter would make the header the containing block of the fixed tab bar */
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    height: var(--tabbar-h); padding: 6px 8px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    justify-content: space-around; gap: 0;
  }
  .nav a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 14px; font-size: 11px; font-weight: 500; }
  .nav a.active { background: transparent; color: var(--text); }
  .nav a:not(.active) { color: var(--faint); }
  .nav a:hover { background: transparent; }
  .nav .ico { display: block; }
}

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
@media (min-width: 700px) { .card { padding: 28px; } }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 0 0 20px; }
.grid-2 > .card { margin: 0; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 40px 20px; margin: 0 0 28px;
  background:
    radial-gradient(60% 80% at 15% 20%, #d9f2e4 0%, transparent 70%),
    radial-gradient(55% 70% at 85% 30%, #eef7c8 0%, transparent 70%),
    radial-gradient(70% 90% at 50% 100%, #dde3fb 0%, transparent 70%),
    #f6f8f4;
}
.hero p { color: #3a3a3c; max-width: 36em; }
@media (min-width: 700px) { .hero { padding: 64px 48px; } }

/* ---------- Buttons ---------- */
button { font: inherit; cursor: pointer; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--text); background: var(--text); color: #fff;
  text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1;
}
.btn:hover { background: #2c2c2e; }
.btn.secondary { background: transparent; color: var(--text); border-color: #cfcfd4; }
.btn.secondary:hover { border-color: var(--text); }
.btn.danger { background: transparent; border-color: #f0c4c0; color: var(--err); }
.btn.block { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.arrow-link::after {
  content: "→"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--text); color: #fff; font-size: 14px;
}
button.link { background: none; border: none; padding: 8px; color: var(--muted); }
button.link:hover { color: var(--text); }
button.inline-link { padding: 0; color: var(--text); text-decoration: underline; }
form.inline { display: inline; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 500; font-size: .9rem; margin: 0 0 6px; }
.field { margin: 0 0 18px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  -webkit-appearance: none; appearance: none;
}
.card input[type=text], .card input[type=email], .card input[type=url], .card input[type=number],
.card input[type=date], .card input[type=password], .card select, .card textarea { background: #fff; }
select {
  width: auto; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--text); }
a:focus-visible, button:focus-visible, .chip-check input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row .field { flex: 1 1 140px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: 14px; margin: 0 0 18px; background: var(--surface); font-size: .95rem; }
.flash.success { background: #e9f6ee; color: var(--ok); }
.flash.error { background: #fdeceb; color: var(--err); }
.flash.info { background: #eef1fd; color: #2f3fa8; }

/* ---------- Tags & chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--tag-bg); color: var(--text);
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.4;
}
.tag:hover { background: rgba(0, 0, 0, .1); }
.tag-cuisine { background: var(--text); color: #fff; }
.tag-cuisine:hover { background: #2c2c2e; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin: 0 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips-label { flex: none; align-self: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  text-decoration: none; font-size: .9rem; font-weight: 300; color: var(--text); white-space: nowrap;
}
.chip:hover { border-color: #bdbdc2; }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; font-weight: 400; }
.chip .n { color: var(--faint); margin-left: 6px; font-size: .8rem; }
.chips-pick { flex-wrap: wrap; overflow: visible; margin: 0; }
.chip-check { margin: 0; font-weight: 300; position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: .9rem; cursor: pointer; user-select: none;
}
.chip-check input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- Gallery (recipes) ---------- */
.gallery { display: grid; gap: 36px 24px; grid-template-columns: 1fr; margin: 8px 0 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.work { position: relative; min-width: 0; }
.work-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-radius: 14px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work:hover .work-media img { transform: scale(1.035); }
.work-media.empty {
  display: grid; place-items: center; font-size: 2.6rem; text-decoration: none;
  background: radial-gradient(70% 90% at 30% 20%, #e3f4ea, transparent 70%), radial-gradient(60% 80% at 80% 80%, #eef3d2, transparent 70%), var(--surface);
}
.work-body { padding: 14px 2px 0; }
.work-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-title a { font-weight: 600; font-size: 1rem; text-decoration: none; min-width: 0; }
.work-title a:hover { text-decoration: underline; }
.score { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-sub { color: var(--faint); font-size: .95rem; margin: 2px 0 0; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; }
.list > li:first-child { padding-top: 4px; }
.list > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.grow { flex: 1 1 200px; min-width: 0; }
.place-name { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.place-name:hover { text-decoration: underline; }

/* ---------- Votes ---------- */
.votes { display: inline-flex; gap: 6px; flex: none; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .95rem;
}
.vote span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.vote:hover { border-color: #bdbdc2; }
.vote.active { background: var(--text); border-color: var(--text); color: #fff; }
.vote.active span { color: #c7c7cc; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid #e0e0e0; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ingredients td:first-child { width: 1%; padding-right: 16px; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Recipe page ---------- */
.recipe-hero { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius); display: block; margin: 0 0 24px; background: var(--surface); }
@media (min-width: 900px) { .recipe-hero { aspect-ratio: 21 / 9; } }
.recipe-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin: 0 0 24px; }
.recipe-head h1 { margin: 0 0 6px; }
.meta { color: var(--muted); font-size: .95rem; margin: 0; }
.meta a { color: var(--text); }
.instructions { white-space: pre-wrap; line-height: 1.65; }
.back { display: inline-block; margin: 0 0 16px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--text); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 20px; }
.toolbar .spacer { flex: 1; }
.search { flex: 1 1 220px; max-width: 420px; }
.search input { border-radius: 999px; padding-left: 20px; }
.stat { font-size: 2.2rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; }

/* ---------- Login ---------- */
.login { max-width: 460px; margin: 6vh auto 0; }
.login h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.code-input { font-size: 1.8rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Diet badge (top-left of recipe images) ---------- */
.diet-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -2px; }
.diet-ico.diet-vegan { fill: #2f8a3c; stroke: #2f8a3c; }
.diet-ico.diet-vegan path + path { stroke: #fff; }
.diet-ico.diet-vegetarian { stroke: #2f8a3c; }
.diet-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.diet-badge.inline { position: static; background: var(--surface); box-shadow: none; }
.recipe-hero-wrap { position: relative; }
.recipe-hero-wrap .diet-badge { top: 16px; left: 16px; font-size: 11px; padding: 8px 14px 8px 11px; }
.chip .diet-ico { margin-right: 2px; }
.chip.active .diet-ico.diet-vegan { fill: #8fd19a; stroke: #8fd19a; }
.chip.active .diet-ico.diet-vegan path + path { stroke: var(--text); }
.chip.active .diet-ico.diet-vegetarian, .chip-check input:checked + span .diet-ico.diet-vegetarian { stroke: #8fd19a; }
.chip-check input:checked + span .diet-ico.diet-vegan { fill: #8fd19a; stroke: #8fd19a; }
.chip-check input:checked + span .diet-ico.diet-vegan path + path { stroke: var(--text); }
.chip-check span .diet-ico { margin-right: 6px; }

/* ---------- Restaurants: segmented control & map ---------- */
.segmented { display: inline-flex; padding: 4px; background: var(--surface); border-radius: 999px; }
.segmented a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--muted); }
.segmented a.active { background: var(--text); color: #fff; }
.dist { color: var(--text); font-weight: 600; }
.map { height: 62vh; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0 0 12px; z-index: 0; }
@media (max-width: 699px) { .map { height: calc(100vh - 330px); min-height: 320px; margin: 0 -16px 12px; border-radius: 0; } }
.map-pin {
  transform: translate(-50%, -100%); position: relative; white-space: nowrap;
  background: var(--text); color: #fff; padding: 6px 10px; border-radius: 999px;
  font: 600 11px/1 var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.map-home {
  transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center;
  background: #dff5c9; color: var(--text); border: 2px solid var(--text); border-radius: 50%; font-size: 14px;
}
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.9) brightness(1.06); } /* calm, monochrome base map */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.leaflet-popup-content { margin: 12px 16px; font: 400 14px/1.4 var(--font); }
.pop-title { font-weight: 600; color: var(--text) !important; text-decoration: none; }
.pop-meta { color: var(--muted); margin-top: 4px; font-size: 13px; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; }

/* ---------- Hotels: € price rating & stays ---------- */
.hotel-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.price { display: inline-flex; align-items: center; gap: 8px; }
.price form { display: inline-flex; gap: 2px; }
.price button {
  border: 0; background: none; padding: 4px 3px; min-width: 26px; min-height: 36px;
  font: 600 1.05rem/1 var(--font); color: #d0d0d4; border-radius: 6px;
}
.price button.on { color: var(--muted); }
.price.mine button.on { color: var(--text); }
.price form:hover button { color: var(--text); }
.price form button:hover ~ button { color: #d0d0d4; }
.price .avg { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.stay { display: inline-flex; align-items: center; gap: 6px; }
.stay .btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.stay .undo { min-height: 38px; }
.stay-count { font-size: .85rem; color: var(--muted); }
@media (max-width: 699px) { .nav a { font-size: 10px; } }

/* ---------- Restaurant features ---------- */
.features { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.feature { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: #3a3a3c; white-space: nowrap; }
.card .feature { background: #fff; }

/* ---------- Nav badge ---------- */
.nav a { position: relative; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
@media (max-width: 699px) { .nav-badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; font-size: 10px; } }

/* ---------- Bikes ---------- */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--tag-bg); }
.status-requested { background: #fff4d6; color: #8a5a00; }
.status-approved { background: #e3f4ea; color: #1f7a3a; }
.status-rejected, .status-cancelled { background: #f1f1f2; color: var(--muted); }
.status-returned { background: #eef1fd; color: #2f3fa8; }
.status-defect { background: #fdeceb; color: var(--err); }
.status-available { background: #e3f4ea; color: #1f7a3a; }
.status-retired { background: #f1f1f2; color: var(--muted); }
.bike-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 24px; }
@media (min-width: 700px) { .bike-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bike-grid { grid-template-columns: repeat(3, 1fr); } }
.bike { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.bike h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.bike .when { font-size: .85rem; color: var(--muted); }
.bike .when li { margin: 2px 0; }
.bike ul { margin: 0; padding-left: 18px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-actions .btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.check-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.check-grid label.check { background: #fff; border-radius: 10px; padding: 10px 12px; margin: 0; }
.chip-check input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Notifications bell, footer, ideas & bugs ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text); order: 3; }
.bell:hover, .bell.active { background: var(--surface); }
.bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bell .nav-badge { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; }
.nav { order: 2; }
@media (max-width: 699px) { .bell { margin-left: auto; } }
.site-footer { display: flex; gap: 18px; align-items: center; padding-top: 8px; padding-bottom: 40px; font-size: .85rem; color: var(--faint); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .version { margin-left: auto; color: var(--faint); }
.pre { white-space: pre-wrap; }
.list > li.unread { font-weight: 600; }
.list > li.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; }
.admin-tools { margin-top: 10px; }
.admin-tools summary { cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-tools .inline-actions { margin-top: 10px; }
.fb-idea-pending, .fb-bug-in_progress { background: #fff4d6; color: #8a5a00; }
.fb-idea-done, .fb-bug-resolved { background: #e3f4ea; color: #1f7a3a; }
.fb-idea-rejected, .fb-idea-obsolete, .fb-idea-merged, .fb-bug-wont_fix { background: #f1f1f2; color: var(--muted); }
.fb-bug-open { background: #eef1fd; color: #2f3fa8; }
.fb-sev-low { background: #f1f1f2; color: var(--muted); }
.fb-sev-medium { background: #fff4d6; color: #8a5a00; }
.fb-sev-high { background: #fdeceb; color: var(--err); }

.bike-photo { width: calc(100% + 40px); margin: -20px -20px 6px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; background: #fff; }
.bike-photo.empty { display: grid; place-items: center; font-size: 2.4rem; background: radial-gradient(70% 90% at 30% 20%, #e3f4ea, transparent 70%), #fafafa; }
.req { color: var(--err); }
.chip-check input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ---------- Changelog ---------- */
.release p { margin: 12px 0 0; max-width: 46em; }
.release ul { margin: 12px 0 0; padding-left: 20px; max-width: 46em; }
.release li { margin: 4px 0; }
.release-version { font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.release code { background: #fff; padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.maint { background: #fff4d6; color: #8a5a00; border-radius: 10px; padding: 8px 12px; }
.maint .inline-link { color: #8a5a00; }

/* ---------- Return & maintenance checklists ---------- */
.check-list { display: grid; gap: 8px; }
.check-list label.check { background: #fff; border-radius: 12px; padding: 14px 16px; margin: 0; font-size: 1rem; align-items: flex-start; }
.check-list input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--text); }
.mt-list { display: grid; gap: 10px; }
.mt-item { background: #fff; border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
/* name on top, options below — the option lists are too long for a side-by-side layout */
.mt-item .chips-pick { gap: 6px; }
.mt-item .chip-check span { min-height: 36px; font-size: .85rem; }
.tag.mt-fixed { background: #e3f4ea; color: #1f7a3a; }
.tag.mt-replaced { background: #eef1fd; color: #2f3fa8; }
.tag.mt-not_needed { background: #f1f1f2; color: var(--muted); }

/* ---------- Bike calendar ---------- */
:root { --cal-free: #d9f2df; --cal-booked: #f8c9c9; --cal-maint: #fbdca6; --cal-cell: 34px; }
@media (min-width: 700px) { :root { --cal-cell: 38px; } }
.cal-month { margin: 0 0 28px; }
.cal-range { min-width: 150px; text-align: center; }
/* No padding / border-spacing on the scroll area: the sticky bike column must cover everything to its left. */
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border-radius: var(--radius); }
.cal { border-collapse: collapse; border-spacing: 0; width: auto; min-width: 100%; }
.cal th, .cal td { padding: 0; border: 0; text-align: center; }
.cal thead th { font-size: 11px; font-weight: 600; color: var(--muted); padding: 10px 0 6px; min-width: var(--cal-cell); text-transform: none; letter-spacing: 0; }
.cal thead th span { display: block; font-weight: 400; color: var(--faint); font-size: 10px; }
.cal thead th.cal-weekend { color: var(--faint); }
.cal thead th.cal-today { color: #d6453d; }
.cal thead tr.cal-months th { padding: 10px 0 0 6px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cal thead tr.cal-months th.cal-bike { padding-top: 10px; }
.cal .cal-mstart { border-left: 2px solid #d8d8dc; }
.cal thead tr.cal-months th.cal-mstart { border-left: 2px solid #d8d8dc; }
.cal .cal-bike .bike-ident { font-size: 11px; }
/* Month name stays visible right of the bike column while scrolling through that month. */
.cal .cal-bike { width: 150px; min-width: 150px; max-width: 150px; }
.cal .cal-mlabel { position: sticky; left: 158px; display: inline-block; }
/* Each cell draws its own rounded block with a gap (padding), so the table itself has no holes. */
.cal td { padding: 2px; height: calc(var(--cal-cell) + 8px); min-width: var(--cal-cell); }
.cal td span { display: block; height: 100%; border-radius: 7px; background: var(--cal-free); }
.cal td.cal-booked span { background: var(--cal-booked); }
.cal td.cal-maint span { background: var(--cal-maint); }
.cal td.is-past span { background: #e6e6e8; }
.cal td.is-past.cal-booked span { background: #f1d9d9; }
.cal td.is-past.cal-maint span { background: #f3e6cd; }
.cal td.cal-today span { box-shadow: inset 0 0 0 2px #d6453d; }
.cal .cal-bike {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  text-align: left; padding: 6px 12px 6px 14px; min-width: 128px; max-width: 160px; font-size: .85rem;
  box-shadow: 6px 0 8px -6px rgba(0, 0, 0, .15);
}
.cal thead .cal-bike { padding-top: 10px; }
.cal .cal-bike a { font-weight: 600; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cal .cal-bike span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.cal-legend { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 20px; }
.cal-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 5px; vertical-align: -3px; margin-right: 4px; }
.cal-legend .cal-free { background: var(--cal-free); }
.cal-legend .cal-booked { background: var(--cal-booked); }
.cal-legend .cal-maint { background: var(--cal-maint); }
.cal-legend .cal-past { background: #e6e6e8; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .02em; }


.bike-ident { font-size: .62em; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

.mt-history { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; }
.mt-history li { margin: 2px 0; }
.chip-check.opt-followup input:checked + span { background: #fdeceb; border-color: #e5484d; color: #b42318; }
.chip-check.opt-replaced input:checked + span { background: #eef1fd; border-color: #2f3fa8; color: #2f3fa8; }

/* ---------- Login: colourful hero with rotating headline + feature tiles ---------- */
.login-hero {
  max-width: 560px; margin: 2vh auto 0; padding: 32px 22px 24px; border-radius: 28px; text-align: center;
  background:
    radial-gradient(60% 70% at 10% 10%, #ffd9c2 0%, transparent 70%),
    radial-gradient(55% 70% at 90% 15%, #e5dcff 0%, transparent 70%),
    radial-gradient(70% 80% at 20% 100%, #d4f3df 0%, transparent 70%),
    radial-gradient(60% 70% at 95% 95%, #eef7c4 0%, transparent 70%),
    #fbfaf7;
}
.login-hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); margin: 0 0 10px; min-height: 2.2em; } /* no flex: it would swallow the space before <b> */
.login-hero p { color: #3a3a3c; margin: 0 auto 22px; max-width: 26em; }
.rotator { transition: opacity .35s ease, transform .35s ease; }
.rotator.out { opacity: 0; transform: translateY(6px); }
.login-tiles { display: flex; justify-content: center; gap: 8px; }
.login-tile { flex: 1 1 0; max-width: 120px; min-width: 0; position: relative; }
.login-tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.login-tile em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--text); color: #fff; padding: 2px 5px; border-radius: 999px; }
@media (max-width: 420px) { .login-tile { padding: 12px 2px 10px; font-size: 11px; } .login-tile svg { width: 38px; height: 38px; padding: 8px; } }
.login-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 18px; background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; }
.login-tile svg { width: 42px; height: 42px; padding: 9px; border-radius: 14px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-peach svg { background: #ffd9c2; }
.tile-mint svg { background: #c9efd6; }
.tile-lavender svg { background: #e2d9ff; }
.tile-lime svg { background: #e6f5b0; }
.login-hero + .login { margin-top: 28px; }
.login-title { font-size: 1.6rem !important; }
@media (prefers-reduced-motion: reduce) { .rotator { transition: none; } }

/* ---------- Warnings & missing fields ---------- */
.flash.warn { background: #fff4d6; color: #8a5a00; }
.chip-check.sev-minor input:checked + span { background: #fde7a6; border-color: #e0a91b; color: #6b4a00; }
.chip-check.sev-blocking input:checked + span { background: #fdeceb; border-color: #e5484d; color: #b42318; }
.check-list label.check.is-missing { box-shadow: inset 0 0 0 2px #e5484d; background: #fff5f5; }
.check-list label.check.is-missing::after { content: "required"; margin-left: auto; font-size: 11px; font-weight: 600; color: #b42318; text-transform: uppercase; letter-spacing: .04em; }
.field.is-missing input, .field.is-missing textarea { border-color: #e5484d; background: #fff5f5; }
.field.is-missing > label { color: #b42318; }
.field.is-missing .chips-pick .chip-check span { border-color: #f0a3a0; }

/* ---------- Maintenance checklist: live states ---------- */
.mt-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: .85rem; color: var(--muted); }
.mt-bar { flex: 1; height: 8px; border-radius: 999px; background: #e6e6e8; overflow: hidden; }
.mt-bar i { display: block; height: 100%; width: 0; background: #34a853; border-radius: 999px; transition: width .25s ease; }
.mt-head { display: flex; gap: 12px; align-items: flex-start; }
.mt-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d0d0d4; margin-top: 1px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; transition: all .15s ease; }
.mt-item { border: 2px solid transparent; transition: background .15s ease, border-color .15s ease; }
.mt-item textarea { background: var(--surface); min-height: 0; }
.mt-item.is-done { background: #eaf7ee; border-color: #a6dcb5; }
.mt-item.is-done .mt-check { background: #34a853; border-color: #34a853; }
.mt-item.is-done .mt-check::after { content: "✓"; }
.mt-item.is-done .chip-check span { background: #fff; }
.mt-item.is-done .chip-check input:checked + span { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.mt-item.is-followup { background: #fdeceb; border-color: #f0a3a0; }
.mt-item.is-followup .mt-check { background: #e5484d; border-color: #e5484d; }
.mt-item.is-followup .mt-check::after { content: "!"; }
.mt-item.is-missing { background: #fff5f5; border-color: #e5484d; }
.mt-item.is-missing .mt-check { border-color: #e5484d; }
.mt-item.is-missing .mt-head strong::after { content: "  · still open"; color: #b42318; font-weight: 600; font-size: .85em; }
.mt-history li i { color: var(--muted); }

.feature-warn { background: #fff4d6; border-color: #f2d48a; color: #8a5a00; }

/* ---------- Section colours (same as the login tiles) ----------
   recipes = peach · restaurants = mint · hotels = lavender · bikes = lime */
/* Only the menu and the headline underline carry the colour — pages stay clean white/grey. */
body.theme-recipes     { --accent: #ffd9c2; }
body.theme-restaurants { --accent: #c9efd6; }
body.theme-hotels      { --accent: #e2d9ff; }
body.theme-bikes       { --accent: #e6f5b0; }
body.theme-trails      { --accent: #cfe7fb; }
body.theme-cars        { --accent: #ffd6e0; }
body.theme-recipes h1 b, body.theme-restaurants h1 b, body.theme-hotels h1 b, body.theme-bikes h1 b, body.theme-trails h1 b, body.theme-cars h1 b, body.theme-cars .section-title b,
body.theme-trails .section-title b,
body.theme-recipes .section-title b, body.theme-restaurants .section-title b, body.theme-hotels .section-title b, body.theme-bikes .section-title b {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 .06em;
}
/* active navigation item in the section colour */
body.theme-recipes .nav a.active, body.theme-restaurants .nav a.active,
body.theme-hotels .nav a.active, body.theme-bikes .nav a.active, body.theme-trails .nav a.active, body.theme-cars .nav a.active { background: var(--accent); color: var(--text); }
@media (max-width: 699px) {
  .nav a .ico { padding: 3px 12px; box-sizing: content-box; border-radius: 999px; }
  body.theme-recipes .nav a.active .ico, body.theme-restaurants .nav a.active .ico,
  body.theme-hotels .nav a.active .ico, body.theme-bikes .nav a.active .ico, body.theme-trails .nav a.active .ico, body.theme-cars .nav a.active .ico { background: var(--accent); }
  body.theme-recipes .nav a.active, body.theme-restaurants .nav a.active,
  body.theme-hotels .nav a.active, body.theme-bikes .nav a.active, body.theme-trails .nav a.active, body.theme-cars .nav a.active { background: transparent; }
}

/* nav labels: full in the top menu, short in the phone tab bar */
.nav .lbl-short { display: none; }
@media (max-width: 699px) {
  .nav .lbl-full { display: none; }
  .nav .lbl-short { display: inline; }
  .nav a { min-width: 0; }
  .nav a .ico { padding: 3px 9px; }
}
/* ---------- Trails ---------- */
.trails-card { max-width: 640px; }
.trails-card p { margin: 0 0 12px; line-height: 1.55; }
.trails-icon svg { width: 52px; height: 52px; padding: 11px; border-radius: 16px; background: #cfe7fb; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

.tile-sky svg { background: #cfe7fb; }
.feature-notice a { color: inherit; font-weight: 600; margin-left: 6px; }

/* ---------- Start page: your bikes ---------- */
.my-bikes { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 36px; }
@media (min-width: 700px) { .my-bikes { grid-template-columns: repeat(2, 1fr); } }
.my-bike { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border-radius: var(--radius); padding: 14px; border: 2px solid transparent; }
.my-bike-img { width: 96px; min-height: 96px; flex: none; border-radius: 14px; object-fit: cover; background: #fff; }
.my-bike-img.icon { display: grid; place-items: center; background: #e6f5b0; }
.my-bike-img.icon svg { width: 44px; height: 44px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.my-bike-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.my-bike-body strong { font-size: 1.05rem; }
.my-bike-body .btn { margin-top: 8px; min-height: 38px; padding: 0 16px; font-size: .9rem; }
.my-bike.is-today { background: #f4fbd9; border-color: #c6e46a; box-shadow: 0 6px 20px -10px rgba(120, 160, 20, .55); }
.my-bike.is-overdue { background: #fff5f5; border-color: #f0a3a0; }
.status-pickup { background: #c6e46a; color: #2d3a00; animation: pickup-pulse 2.4s ease-in-out infinite; }
@keyframes pickup-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(150, 190, 40, .5); } 50% { box-shadow: 0 0 0 6px rgba(150, 190, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .status-pickup { animation: none; } }

/* ---------- Part icons (FOCUS spec icons) ---------- */
.part-ico { width: 34px; height: 26px; object-fit: contain; flex: none; opacity: .85; }
.part-ico.sm { width: 22px; height: 18px; margin-right: 6px; vertical-align: -4px; }
.part-ico.lg { width: 44px; height: 34px; margin-top: -3px; }
.check-list label.check { align-items: center; }
.check-list label.check .part-ico { margin: 0 2px; }
.chip-check span .part-ico.sm { margin-right: 6px; }
.chip-check input:checked + span .part-ico { filter: invert(1); opacity: 1; }
.mt-history { list-style: none; padding-left: 0; }
.mt-history li .part-ico.sm { vertical-align: -3px; }
label.with-ico { display: flex; align-items: center; }
.mt-item.is-done .part-ico, .mt-item.is-followup .part-ico { opacity: 1; }

/* iOS Safari hides the value of date inputs with appearance:none — restore layout */
input[type=date] { display: block; line-height: 1.4; text-align: left; min-width: 0; }
input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
input[type=date]::-webkit-datetime-edit { padding: 0; }

/* ---------- Parts replaced: wear-part chips ---------- */
.wear-group { margin: 10px 0 0; }
.wear-head { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.wear .chip-check span { min-height: 34px; font-size: .85rem; padding: 0 12px; }
.field.wear.is-missing { background: #fff5f5; border-radius: 14px; padding: 10px; box-shadow: inset 0 0 0 2px #e5484d; }

.mt-parts { margin-top: 2px; padding: 10px 12px; border-radius: 12px; background: #eef1fd; }
.mt-parts .wear-head { color: #2f3fa8; }
.mt-parts .chip-check span { min-height: 34px; font-size: .85rem; padding: 0 12px; }
.mt-parts.is-missing { background: #fff5f5; box-shadow: inset 0 0 0 2px #e5484d; }
.mt-parts.is-missing .wear-head { color: #b42318; }
.mt-parts.is-missing .wear-head::after { content: " · tick at least one"; }

.part-ico.mirror { transform: scaleX(-1); }

.release.is-hidden { opacity: .55; }
.release-admin .btn { min-height: 32px; padding: 0 12px; font-size: .8rem; }

.name-card { padding: 16px 20px; }
.name-value { font-size: 1.4rem; font-weight: 600; }
.name-request summary { cursor: pointer; color: var(--muted); font-size: .95rem; }
.name-request summary:hover { color: var(--text); }

.my-bike-body .inline-actions { margin-top: 8px; }
.my-bike-body .inline-actions .btn { margin-top: 0; }

/* ---------- Booking history ---------- */
.booking-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: .9rem; }
.booking-facts dt { color: var(--muted); }
.booking-facts dd { margin: 0; }

/* ---------- Bike analytics ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stat-tile { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 1.8rem; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .9rem; color: var(--muted); }
.hbars { display: grid; gap: 2px; }
.hbar-row { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; align-items: center; gap: 12px; padding: 5px 0; border-radius: 8px; cursor: default; outline: none; }
.hbar-row:hover, .hbar-row:focus-visible { background: #fff; }
.hbar-label { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; border-left: 1px solid #d9d9dd; }
.hbar { display: block; height: 20px; background: #4d7a12; border-radius: 0 4px 4px 0; }
.hbar-value { font-size: .85rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--text); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; max-width: 280px; }
.stats-table td a { text-decoration: none; font-weight: 500; }

.stats-table td:first-child, .stats-table th:first-child { min-width: 160px; }
.stats-table td:first-child a { white-space: nowrap; }
.stats-table td:first-child .small { white-space: nowrap; }

/* ---------- Calendar: pick a day ---------- */
.cal td.is-pick { cursor: pointer; }
.cal td.is-pick:hover span, .cal td.is-pick:focus-visible span { box-shadow: inset 0 0 0 2px #2d7a3e; }
.cal td.is-pick:focus-visible { outline: none; }
.cal-menu { position: fixed; z-index: 60; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: grid; gap: 8px; min-width: 230px; }
.cal-menu[hidden] { display: none; }
.cal-menu-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.cal-menu .btn { justify-content: flex-start; min-height: 40px; font-size: .9rem; }

/* ---------- Black-and-white line icons (replace colour emoji) ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature .i { width: 14px; height: 14px; vertical-align: -2px; }
.vote .i { width: 18px; height: 18px; }
.work-media.empty .i, .bike-photo.empty .i { width: 44px; height: 44px; stroke-width: 1.4; color: #3a3a3c; }

/* ---------- Pool car ---------- */
.tile-rose svg { background: #ffd6e0; }
@media (max-width: 699px) { .nav a .ico { padding: 3px 8px; } }   /* 8 tabs fit on a phone */
.list li.is-new { background: #f3fbe3; border-radius: 12px; padding-left: 10px; padding-right: 10px; }
.my-bike-img.icon .i { width: 40px; height: 40px; stroke-width: 1.4; }
.my-bike-img.icon.is-car { background: #ffe3ea; }
/* Day timelines in the car calendar */
.tl-wrap { margin: 0 0 12px; }
.tl-row { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.tl-day { flex: none; width: 52px; font-size: 13px; color: var(--muted); }
.tl-day b { color: var(--text); font-weight: 600; }
.tl-row.is-today .tl-day { color: var(--err); }
.tl-row.is-today .tl-day b { color: var(--err); }
.tl-scale { position: relative; flex: 1; height: 14px; font-size: 11px; color: var(--faint); }
.tl-scale span { position: absolute; transform: translateX(-50%); }
.tl { position: relative; flex: 1; height: 40px; border-radius: 10px; background: #dff0e3; cursor: pointer; overflow: hidden; }
.tl-row.is-past .tl { background: #ececee; cursor: default; }
.tl:focus-visible { outline: 2px solid #2d7a3e; outline-offset: 2px; }
.tl-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .8); }
.tl-past { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(236, 236, 238, .9); }
.tl-block { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; padding: 0 6px; font-size: 11px; line-height: 32px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px #fff; cursor: help; }
.tl-business, .cal-legend .tl-business { background: #3a3a3c; color: #fff; }
.tl-private, .cal-legend .tl-private { background: #f4b6c4; color: #3a3a3c; }
.tl-workshop, .cal-legend .tl-workshop { background: #f6d9a0; color: #6b4a00; }
.tl-block.tl-workshop { top: 0; bottom: 0; border-radius: 0; }

/* Team / manager cancel with reason */
.team-cancel { margin-top: 10px; }
.team-cancel > summary { list-style: none; cursor: pointer; display: inline-flex; }
.team-cancel > summary::-webkit-details-marker { display: none; }
.team-cancel[open] > summary { opacity: .6; }
tr:target, .booking:target { outline: 2px solid #f2d48a; outline-offset: 2px; border-radius: 12px; }

/* ---------- Food events ---------- */
.event-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .event-list { grid-template-columns: repeat(2, 1fr); } }
.event-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 18px; padding: 16px; }
.event-card.is-cancelled { opacity: .75; }
.event-card.is-cancelled .event-title { text-decoration: line-through; }
.event-body { min-width: 0; flex: 1; }
.event-title { display: block; font-weight: 600; font-size: 1.05rem; text-decoration: none; margin: 2px 0 4px; }
.event-title:hover { text-decoration: underline; }
/* Red circle with the date */
.event-badge { flex: none; display: grid; place-items: center; align-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.05; }
.event-badge b { font-size: 20px; letter-spacing: 0; }
.event-badge.is-cancelled { background: #c7c7cc; }
.event-head { display: flex; gap: 16px; align-items: center; margin: 0 0 20px; }
.event-head .event-badge { width: 64px; height: 64px; }
.event-head .event-badge b { font-size: 24px; }
.event-photo { width: 100%; max-height: 280px; object-fit: cover; border-radius: 18px; margin: 0 0 16px; display: block; }

/* The hidden attribute always wins over display rules (buttons, menus, form boxes). */
[hidden] { display: none !important; }

/* ---------- Quick tour (spotlight) ---------- */
#tour-root { position: fixed; inset: 0; z-index: 200; overflow: hidden; }
#tour-root.is-center .tour-spot { display: none; }
#tour-root.is-center { background: rgba(10, 10, 10, .65); }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(10, 10, 10, .65); pointer-events: none; transition: all .25s ease; }
.tour-bubble { position: fixed; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 20px; padding: 18px 18px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); transition: top .25s ease, left .25s ease; }
#tour-root.is-center .tour-bubble { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-bubble h2 { font-size: 1.3rem; margin: 0 0 6px; }
.tour-count { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.tour-text { margin: 0 0 14px; line-height: 1.5; color: #3a3a3c; }
.tour-msg { margin: -4px 0 14px; font-size: 14px; background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-actions .btn { min-height: 40px; padding: 0 16px; }
.tour-skip { color: var(--muted); font-size: 14px; }

/* ---------- Pull to refresh (home-screen app) ---------- */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 6px); z-index: 150; transform: translate(-50%, 0); opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
.ptr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.is-ready, .ptr.is-loading { color: var(--text); }
.ptr.is-loading svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Tab bar hidden while typing on a phone (see app.js) */
@media (max-width: 699px) { html.kb-open .nav { display: none; } }

/* ---------- Start page: "Coming up" (events, car trips, bikes in one grid) ---------- */
.coming-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 36px; align-items: stretch; }
@media (min-width: 700px) { .coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .coming-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coming-grid .event-card, .coming-grid .my-bike { height: 100%; box-sizing: border-box; margin: 0; }
.coming-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.coming-links .arrow-link { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.coming-links .arrow-link::after { display: none; }
.coming-links .arrow-link:hover { color: var(--text); }
@media (max-width: 699px) { .coming-links { gap: 12px; } .coming-links .arrow-link { font-size: 13px; } }

/* ---------- Me: data & privacy info ---------- */
.privacy-info > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.privacy-info > summary::-webkit-details-marker { display: none; }
.privacy-info > summary::after { content: "Show"; align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.privacy-info[open] > summary::after { content: "Hide"; }
.privacy-info h3 { font-size: 1rem; margin: 22px 0 8px; }
.privacy-info ul { margin: 0; padding-left: 18px; }
.privacy-info li { margin: 0 0 8px; line-height: 1.5; color: #3a3a3c; font-size: .95rem; }
.privacy-info p { margin: 0; line-height: 1.5; color: #3a3a3c; font-size: .95rem; }
