:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #efe9dd;
  --text: #1d2524;
  --muted: #6a7372;
  --line: #e2dbcc;
  --brand: #14302e;
  --accent: #c8860d;
  --accent-ink: #ffffff;
  --danger: #b3261e;
  --ok: #2e7d4f;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --radius: 16px;
  --top-h: 52px;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1615;
    --surface: #18211f;
    --surface-2: #212c2a;
    --text: #ecebe6;
    --muted: #9aa5a3;
    --line: #2b3735;
    --brand: #0b1a19;
    --accent: #e9a52b;
    --accent-ink: #1a1405;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 4px;
  background: var(--brand); color: #fff;
}
.topbar h1 {
  flex: 1; margin: 0 8px; font-size: 17px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.net-badge {
  font-size: 12px; padding: 3px 9px; border-radius: 99px;
  background: rgba(255,255,255,.16); margin-right: 6px;
}
.icon-btn {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:active { background: rgba(127,127,127,.18); }

main { padding: 16px 16px calc(var(--tab-h) + 96px + var(--safe-b)); max-width: 760px; margin: 0 auto; outline: none; }
main.full { padding: 0; max-width: none; }

/* Tab-Leiste */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; cursor: pointer;
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--accent); font-weight: 600; }

/* Mini-Player */
.miniplayer {
  position: fixed; left: 8px; right: 8px; z-index: 55;
  bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  max-width: 744px; margin: 0 auto;
}
body.no-tabs .miniplayer { bottom: calc(var(--safe-b) + 8px); }
.miniplayer img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.mp-text { flex: 1; min-width: 0; cursor: pointer; }
.mp-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress { height: 3px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.mp-progress div { height: 100%; width: 0; background: var(--accent); }
.icon-btn.play { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }

/* Allgemeine Bausteine */
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 24px 4px 10px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.notice { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }

/* Bibliothek */
.guide-card { margin-bottom: 16px; }
.guide-card .cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--surface-2); cursor: pointer; }
.guide-card .body { padding: 14px 16px 16px; }
.guide-card h2 { margin: 0 0 4px; font-size: 20px; }
.guide-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.status { font-weight: 600; }
.status.ok { color: var(--ok); }
.status.upd { color: var(--accent); }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 4px 0 8px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Kapitelliste */
.guide-hero { position: relative; margin: -16px -16px 0; }
.guide-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.guide-hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%); }
.guide-hero .txt { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.guide-hero h2 { margin: 0; font-size: 24px; }
.guide-hero p { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.chapter-item {
  display: flex; gap: 12px; padding: 10px; align-items: center; cursor: pointer;
  background: var(--surface); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); text-decoration: none;
}
.chapter-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.chapter-item .no { font-size: 12px; font-weight: 700; color: var(--accent); }
.chapter-item h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.chapter-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chapter-item .done { color: var(--ok); font-size: 12px; font-weight: 600; }
.chapter-item.playing { outline: 2px solid var(--accent); }

/* Kapitelansicht */
.ch-hero { margin: -16px -16px 0; position: relative; }
.ch-hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--surface-2); }
.ch-hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 10px; color: #fff; font-size: 13px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.ch-head { padding: 16px 0 4px; }
.ch-head .no { color: var(--accent); font-weight: 700; font-size: 13px; }
.ch-head h2 { margin: 2px 0 4px; font-size: 26px; line-height: 1.2; }
.ch-head .area { color: var(--muted); font-size: 14px; }
.player { padding: 14px 16px; margin: 12px 0; }
.player .controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.player .big { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.player .skip { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 700; }
.player input[type=range] { width: 100%; accent-color: var(--accent); margin: 10px 0 0; }
.player .times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player .speed { border: 1px solid var(--line); background: none; border-radius: 8px; padding: 2px 8px; font-size: 13px; cursor: pointer; }
.highlights { margin: 0; padding: 14px 16px 14px 34px; }
.highlights li { margin: 4px 0; }
.summary { font-size: 17px; line-height: 1.55; margin: 14px 2px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; }
.gallery figure { margin: 0; flex: 0 0 78%; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; background: var(--surface-2); cursor: zoom-in; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tips li { margin: 6px 0; }
.fulltext p { margin: 0 0 1em; }
.fulltext { font-size: 16px; line-height: 1.65; }
details.card summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
details.card summary::after { content: "▾"; float: right; color: var(--muted); }
details.card[open] summary::after { content: "▴"; }
details.card .inner { padding: 0 16px 14px; }
.ch-nav { display: flex; gap: 10px; margin-top: 20px; }
.ch-nav .btn { flex: 1; }
.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 14px 16px; font-size: 14px; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 80vh; border-radius: 8px; }
.lightbox p { color: #ddd; text-align: center; font-size: 14px; }

/* Karte */
.map-wrap { position: relative; height: calc(100vh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); }
#map { position: absolute; inset: 0; background: var(--surface-2); }
.map-fab { position: absolute; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; top: 12px; }
.map-fab button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.pin span { transform: rotate(45deg); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.pin.active { background: var(--brand); }
.pin.active span { color: #fff; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.dot.food { background: #d0532d; }
.dot.sight { background: #2a6fb0; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1e88e5; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(30,136,229,.25); }
.leaflet-popup-content { font: 14px/1.4 -apple-system, sans-serif; margin: 10px 12px; }
.leaflet-popup-content a.btn { min-height: 34px; margin-top: 6px; font-size: 13px; color: var(--accent-ink); }
.schematic { position: absolute; inset: 0; }
.schematic svg { width: 100%; height: 100%; }
.schematic text { font: 600 11px -apple-system, sans-serif; fill: var(--text); }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 12px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* Umgebung */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--text); color: var(--bg); border-color: transparent; }
.place { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.place:last-child { border-bottom: 0; }
.place .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 18px; background: var(--surface-2); }
.place .main { flex: 1; min-width: 0; }
.place h4 { margin: 0; font-size: 15px; }
.place .sub { font-size: 13px; color: var(--muted); }
.place .dist { font-size: 13px; font-weight: 600; white-space: nowrap; }
.place .links { display: flex; gap: 12px; margin-top: 4px; font-size: 13px; }
.place .links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin-left: 4px; vertical-align: 1px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 84px); z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Bestätigungsdialog */
.sheet-bg { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(16px + var(--safe-b)); }
.sheet h3 { margin: 0 0 6px; }
.sheet p { margin: 0 0 16px; color: var(--muted); }
.sheet .row .btn { flex: 1; }

/* ===== Erweiterungen Server-Version ===== */
.tabbar a { position: relative; }
.update-banner { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 49; background: var(--accent); color: var(--accent-ink); padding: 8px 16px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.small-btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.topbar #topActions { display: flex; gap: 2px; }
.topbar #topActions .icon-btn { color: #fff; }
h2.page { font-size: 26px; margin: 4px 2px 12px; }
.lead { color: var(--muted); margin: -6px 2px 16px; }

/* Formulare */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, input.inp, select.inp, textarea.inp {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field .hint { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.card.pad { padding: 16px; }
textarea.code { font: 12px/1.45 ui-monospace, Menlo, monospace; min-height: 50vh; }

/* Sheet mit Formular */
.sheet { max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet .sheet-head h3 { margin: 0; }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }
.results { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); padding: 10px 12px; cursor: pointer; }
.results button:last-child { border-bottom: 0; }
.results small { display: block; color: var(--muted); }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; }

/* Listen */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list > .li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list > .li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; }
.li .s { font-size: 13px; color: var(--muted); }
.li .chev { color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: rgba(46,125,79,.15); color: var(--ok); }
.pill.warn { background: rgba(200,134,13,.18); color: var(--accent); }
.pill.err { background: rgba(179,38,30,.12); color: var(--danger); }

/* Reise */
.trip-card { display: block; text-decoration: none; padding: 16px; margin-bottom: 12px; }
.trip-card h3 { margin: 0 0 2px; font-size: 18px; }
.trip-card .s { color: var(--muted); font-size: 14px; }
.trip-card.now { border-left: 4px solid var(--accent); }
.daybar { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; }
.daybar::-webkit-scrollbar { display: none; }
.daybar a { flex: none; text-decoration: none; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 12px; min-width: 64px; }
.daybar a b { display: block; font-size: 15px; }
.daybar a small { font-size: 11px; color: var(--muted); }
.daybar a.active { background: var(--brand); color: #fff; border-color: transparent; }
.daybar a.active small { color: rgba(255,255,255,.75); }
.daybar a.today:not(.active) { border-color: var(--accent); }
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.day-head h2 { margin: 0; font-size: 22px; }
.day-head .s { color: var(--muted); font-size: 14px; }
.timeline { position: relative; margin-left: 4px; }
.tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 6px; }
.tl-time { width: 48px; flex: none; text-align: right; font-weight: 700; font-size: 14px; padding-top: 14px; font-variant-numeric: tabular-nums; }
.tl-time small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.tl-card { flex: 1; min-width: 0; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; }
.tl-card.hotel { background: var(--surface-2); box-shadow: none; }
.tl-card .row1 { display: flex; gap: 8px; align-items: flex-start; }
.tl-card .ico { font-size: 20px; line-height: 1.2; }
.tl-card h4 { margin: 0; font-size: 16px; line-height: 1.3; }
.tl-card .addr { font-size: 13px; color: var(--muted); }
.tl-card .notes { font-size: 14px; margin-top: 6px; white-space: pre-wrap; }
.tl-card .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tl-card .acts .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.travel { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 2px 0 8px 60px; }
.travel b { color: var(--text); }
.reorder { display: flex; flex-direction: column; gap: 2px; margin-left: auto; }
.reorder button { width: 30px; height: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; font-size: 12px; }
.day-map { height: 260px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; position: relative; background: var(--surface-2); }
.day-map > div { position: absolute; inset: 0; }
.fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 54; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; }
body.has-mini .fab { bottom: calc(var(--tab-h) + var(--safe-b) + 84px); }

/* Start / Stadtübersicht */
.hello { margin: 4px 2px 14px; }
.hello h2 { margin: 0; font-size: 26px; }
.hello p { margin: 2px 0 0; color: var(--muted); }
.city-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.city-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.city-hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.city-hero .txt { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; }
.city-hero .txt small { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; opacity: .85; }
.city-hero .txt h2 { margin: 0; font-size: 26px; }
.hl-scroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; }
.hl-card { flex: 0 0 72%; scroll-snap-align: start; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; }
.hl-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface-2); }
.hl-card div { padding: 10px 12px 12px; }
.hl-card h4 { margin: 0 0 2px; font-size: 15px; }
.hl-card p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.practical { display: grid; gap: 10px; }
.practical div { background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.practical b { display: block; margin-bottom: 2px; }
.practical p { margin: 0; font-size: 14px; color: var(--muted); }

/* Guide-Tabs */
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg a, .seg button { flex: 1; text-align: center; text-decoration: none; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; }
.seg .active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.admin-grid a { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; text-decoration: none; }
.admin-grid a b { display: block; font-size: 15px; }
.admin-grid a span { font-size: 12px; color: var(--muted); }
.admin-grid a .n { float: right; font-weight: 700; color: var(--accent); }
.log { background: #0f1615; color: #cfe3dd; font: 12px/1.5 ui-monospace, Menlo, monospace; padding: 12px; border-radius: 12px; white-space: pre-wrap; max-height: 50vh; overflow: auto; }
.bigprog { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.bigprog div { height: 100%; background: var(--accent); transition: width .4s; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.warnlist { font-size: 13px; color: var(--accent); margin: 6px 0 0; padding-left: 18px; }
.login-wrap { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.login-wrap img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 12px; }
.login-wrap h2 { margin: 0 0 4px; }
.login-wrap .card { text-align: left; margin-top: 18px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-big { font: 700 40px/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; text-align: center; padding: 16px; }
body.no-tabs main { padding-bottom: 40px; }

/* ===== Version 2.1 ===== */
.tl-img { width: calc(100% + 28px); margin: -12px -14px 10px; height: 140px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; background: var(--surface-2); }
.hotel-banner { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 10px; border-left: 4px solid #5b4bb3; }
.hotel-banner.muted { color: var(--muted); font-size: 14px; border-left-color: var(--line); }
.hotel-banner .hb-ico { font-size: 24px; }
.hotel-banner .t { font-weight: 600; }
.hotel-banner .s { font-size: 13px; color: var(--muted); }
.diary-entry { margin-bottom: 12px; }
.diary-entry .pad { padding: 12px 14px; }
.diary-entry h4 { margin: 2px 0; font-size: 17px; }
.diary-meta { font-size: 12px; color: var(--muted); }
.diary-text { white-space: pre-wrap; margin: 6px 0 8px; }
.diary-photos { display: grid; gap: 2px; }
.diary-photos.n1 { grid-template-columns: 1fr; }
.diary-photos.n2 { grid-template-columns: 1fr 1fr; }
.diary-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.diary-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; background: var(--surface-2); }
.diary-photos.n1 img { aspect-ratio: 16/10; }
.stars-static { color: var(--accent); letter-spacing: 2px; }
.stars-input { display: flex; gap: 4px; }
.stars-input button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.stars-input.big button { font-size: 38px; }
.stars-input button.on { color: var(--accent); }
.rating-card textarea { margin-top: 8px; min-height: 70px; }
.rating-badge { color: var(--accent); font-weight: 700; }
.photo-edit { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.photo-edit label { display: flex; flex-direction: column; align-items: center; font-size: 11px; gap: 2px; }
.photo-edit img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.poll-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; overflow: hidden; cursor: pointer; }
.poll-opt.winner { border-color: var(--accent); }
.poll-opt input { width: 20px; height: 20px; accent-color: var(--accent); position: relative; z-index: 1; }
.poll-text { position: relative; z-index: 1; }
.poll-text small { display: block; color: var(--muted); font-size: 12px; }
.poll-count { position: relative; z-index: 1; font-weight: 700; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(200,134,13,.14); z-index: 0; transition: width .3s; }
.poll-voters { grid-column: 2 / 4; position: relative; z-index: 1; color: var(--muted); font-size: 12px; margin-top: -6px; }
.wizard-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.wizard-steps span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 6px 4px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.wizard-steps span.on { background: var(--accent); color: var(--accent-ink); }
.wizard-steps span.done { background: rgba(46,125,79,.15); color: var(--ok); }
.map-transit-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }
.map-transit-btn.on { background: var(--accent); }
.map-transit-btn.busy { opacity: .6; }
.transit-pin { width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 2px solid #1e5aa8; display: grid; place-items: center; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
