:root {
      color-scheme: light; --bg: #f3efe8; --surface: #fffdf9; --surface-soft: #ebe7df; --surface-strong: #e1ddd5;
      --ink: #153436; --muted: #647779; --line: rgba(21, 52, 54, .13); --brand: #0b5d58; --brand-2: #0f766e;
      --brand-soft: #d7ece7; --accent: #ed694b; --accent-soft: #ffe1d7; --gold: #c58a25; --success: #14805e;
      --danger: #c84c48; --shadow-sm: 0 8px 28px rgba(31, 49, 49, .07); --shadow-lg: 0 24px 80px rgba(20, 54, 54, .16);
      --radius-sm: 12px; --radius: 20px; --radius-lg: 30px;
    }
    html[data-theme="dark"] {
      color-scheme: dark; --bg: #0b191a; --surface: #112526; --surface-soft: #182f30; --surface-strong: #214041;
      --ink: #f5f1e8; --muted: #a8b8b5; --line: rgba(232, 244, 240, .13); --brand: #54b8aa; --brand-2: #6acabd;
      --brand-soft: #173d3a; --accent: #ff8a6c; --accent-soft: #4a2923; --gold: #e6b85c; --success: #68c8a7;
      --danger: #ff8c88; --shadow-sm: 0 10px 30px rgba(0,0,0,.18); --shadow-lg: 0 28px 90px rgba(0,0,0,.35);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { min-height: 100vh; font-family: Arial, "Segoe UI", system-ui, sans-serif; background: radial-gradient(circle at 12% 3%, rgba(237,105,75,.12), transparent 28rem), radial-gradient(circle at 92% 22%, rgba(15,118,110,.12), transparent 34rem), var(--bg); color: var(--ink); line-height: 1.55; transition: background-color .25s, color .25s; }
    button, input, select, textarea { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
    .skip-link { position: fixed; top: 10px; right: 10px; z-index: 2000; transform: translateY(-150%); background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 10px; }
    .skip-link:focus { transform: none; }
    .container { width: min(1360px, calc(100% - 40px)); margin: 0 auto; }
    .topbar { position: relative; z-index: 100; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
    .topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
    .brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--brand); color: var(--surface); display: grid; place-items: center; font-size: .82rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
    .brand small { color: var(--muted); display: block; font-size: .72rem; font-weight: 500; letter-spacing: 0; }
    .nav-links { display: flex; align-items: center; gap: 6px; }
    .nav-links a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 700; padding: 9px 11px; border-radius: 11px; }
    .nav-links a:hover { color: var(--ink); background: var(--surface-soft); }
    .top-actions { display: flex; align-items: center; gap: 8px; }
    .icon-btn, .soft-btn, .primary-btn, .btn-filter, .btn-action, .btn-widget { border: 0; cursor: pointer; transition: transform .18s, background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
    .icon-btn:hover, .soft-btn:hover, .primary-btn:hover, .btn-filter:hover, .btn-action:hover, .btn-widget:hover { transform: translateY(-1px); }
    .icon-btn { width: 42px; height: 42px; border-radius: 13px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1rem; }
    .soft-btn { min-height: 42px; padding: 0 15px; border-radius: 13px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 800; }
    .primary-btn { min-height: 44px; padding: 0 18px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(11,93,88,.2); }
    .hero { margin: 30px auto 18px; background: var(--brand); color: #f7fbf9; border-radius: var(--radius-lg); min-height: 350px; display: grid; grid-template-columns: 1.35fr .65fr; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; isolation: isolate; }
    .hero::before { content: ""; position: absolute; inset: auto -9% -58% auto; width: 560px; aspect-ratio: 1; border: 82px solid rgba(255,255,255,.06); border-radius: 50%; z-index: -1; }
    .hero-copy { padding: clamp(34px,6vw,74px); align-self: center; }
    .eyebrow { color: #ffd9ca; display: flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
    .hero h1 { font-size: clamp(2.45rem,5.4vw,5.6rem); line-height: .96; letter-spacing: -.065em; margin: 19px 0; max-width: 840px; }
    .hero p { max-width: 680px; color: rgba(247,251,249,.78); font-size: clamp(1rem,1.7vw,1.18rem); }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
    .hero .primary-btn { background: var(--accent); box-shadow: none; }
    .hero .soft-btn { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.17); color: #fff; }
    .hero-art { min-height: 310px; position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 36px 28px; background: linear-gradient(160deg,rgba(255,255,255,.04),rgba(0,0,0,.12)); }
    .city-card { width: min(310px,92%); background: #f7f1e7; color: #153436; border-radius: 24px; padding: 24px; transform: rotate(-3deg); box-shadow: 0 30px 70px rgba(0,0,0,.22); }
    .city-card-label { font-size: .72rem; color: #617476; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .city-card strong { display: block; font-size: 2.8rem; line-height: 1; margin: 9px 0 4px; letter-spacing: -.05em; }
    .canal-line { display: flex; gap: 5px; align-items: end; height: 82px; border-bottom: 5px solid #6cb4ab; margin-top: 18px; }
    .canal-line span { flex: 1; background: #ed694b; border-radius: 5px 5px 0 0; box-shadow: inset 0 10px rgba(255,255,255,.17); }
    .canal-line span:nth-child(1) { height: 57px; } .canal-line span:nth-child(2) { height: 72px; background: #d3a24b; } .canal-line span:nth-child(3) { height: 48px; background: #3e817b; } .canal-line span:nth-child(4) { height: 66px; background: #d85d54; }
    .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
    .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; box-shadow: var(--shadow-sm); }
    .stat-label { color: var(--muted); font-size: .78rem; font-weight: 800; }
    .stat-value { display: block; margin-top: 5px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em; }
    .stat-value small { font-size: .7rem; color: var(--muted); font-weight: 700; }
    .now-activity-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
    .now-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.1rem; }
    .now-activity-title { font-size: .75rem; color: var(--accent); font-weight: 900; }
    .now-activity-desc { font-size: .94rem; font-weight: 800; margin-top: 2px; }
    .progress-container { height: 7px; background: var(--surface-strong); border-radius: 999px; overflow: hidden; margin-top: 10px; }
    .progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#f1a760); transition: width .45s ease; }
    .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
    .map-section { overflow: hidden; margin-bottom: 18px; }
    .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
    .panel-title { font-weight: 900; letter-spacing: -.02em; } .panel-subtitle { color: var(--muted); font-size: .8rem; margin-top: 2px; }
    .map-container { width: 100%; height: 360px; border-top: 1px solid var(--line); overflow: hidden; transition: height .3s, opacity .3s; }
    .map-section.collapsed .map-container { height: 0; opacity: 0; border: 0; }
    .filters-section { position: relative; z-index: 70; padding: 14px; margin-bottom: 26px; background: color-mix(in srgb,var(--surface) 91%,transparent); backdrop-filter: blur(18px); }
    .filter-top { display: grid; grid-template-columns: minmax(240px,1fr) auto auto; gap: 10px; }
    .search-wrap { position: relative; } .search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
    .search-bar, .sort-select { width: 100%; min-height: 46px; background: var(--surface-soft); border: 1px solid transparent; color: var(--ink); border-radius: 14px; outline: none; }
    .search-bar { padding: 0 44px 0 15px; } .sort-select { padding: 0 13px; min-width: 165px; }
    .search-bar:focus, .sort-select:focus { border-color: var(--brand); background: var(--surface); }
    .view-switch { display: flex; background: var(--surface-soft); padding: 4px; border-radius: 14px; }
    .view-switch button { border: 0; cursor: pointer; min-width: 40px; border-radius: 10px; color: var(--muted); background: transparent; }
    .view-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
    .filter-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 11px; }
    .filter-group-left, .quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
    .btn-filter { min-height: 36px; padding: 0 13px; border-radius: 999px; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: .8rem; font-weight: 800; }
    .btn-filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
    .btn-special-random { color: var(--accent); border-color: color-mix(in srgb,var(--accent) 38%,var(--line)); }
    .btn-special-open.active { background: var(--success); border-color: var(--success); color: #fff; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 16px; }
    .section-kicker { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
    .category-title { font-size: clamp(1.55rem,3vw,2.35rem); line-height: 1.1; letter-spacing: -.04em; margin-top: 6px; }
    .results-count { color: var(--muted); font-size: .84rem; }
    .grid-container { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
    .grid-container.list-view { grid-template-columns: 1fr; }
    .grid-container.list-view .poi-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
    .grid-container.list-view .card-actions { grid-column: 1 / -1; }
    .poi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow-sm); transition: transform .22s,border-color .22s,box-shadow .22s,opacity .22s; }
    .poi-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--brand) 35%,var(--line)); box-shadow: 0 18px 50px rgba(31,49,49,.12); }
    .poi-card.visited { border-color: color-mix(in srgb,var(--success) 45%,var(--line)); }
    .poi-card.visited .poi-name { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
    .poi-card.highlight { animation: cardPulse 1.1s ease 2; border-color: var(--accent); }
    @keyframes cardPulse { 50% { transform: translateY(-5px) scale(1.015); box-shadow: 0 20px 50px color-mix(in srgb,var(--accent) 22%,transparent); } }
    .card-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
    .card-title-group { min-width: 0; } .poi-index { display: block; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .08em; margin-bottom: 5px; }
    .poi-name { display: block; font-size: 1.2rem; font-weight: 900; letter-spacing: -.025em; overflow-wrap: anywhere; }
    .category-badge { display: inline-flex; align-items: center; margin-top: 7px; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 900; }
    .favorite-btn { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); cursor: pointer; font-size: 1.05rem; }
    .favorite-btn.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
    .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
    .meta-pill { padding: 5px 8px; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .72rem; font-weight: 800; }
    .meta-pill.open { color: var(--success); background: color-mix(in srgb,var(--success) 10%,var(--surface)); }
    .meta-pill.closed { color: var(--danger); background: color-mix(in srgb,var(--danger) 10%,var(--surface)); }
    .price-tag { color: var(--gold); letter-spacing: .08em; } .poi-desc { min-height: 42px; font-size: .86rem; color: var(--muted); }
    .visit-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: .78rem; color: var(--muted); font-weight: 800; }
    .visit-check input { width: 19px; height: 19px; accent-color: var(--success); cursor: pointer; }
    .card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .field label { display: block; color: var(--muted); font-size: .67rem; font-weight: 800; margin: 0 3px 4px; }
    .select-day, .input-cost, .select-rating, .input-notes, .modal-textarea { width: 100%; min-height: 41px; background: var(--surface-soft); border: 1px solid transparent; color: var(--ink); padding: 8px 10px; border-radius: 11px; font-size: .78rem; outline: none; }
    .select-day:focus, .input-cost:focus, .select-rating:focus, .input-notes:focus, .modal-textarea:focus { border-color: var(--brand); background: var(--surface); }
    .select-rating, .input-notes { grid-column: 1 / -1; }
    .card-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 7px; margin-top: auto; padding-top: 2px; }
    .btn-action { min-height: 39px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; font-size: .76rem; font-weight: 900; }
    .btn-nav { background: var(--brand); color: #fff; } .btn-web { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); } .btn-insta { background: var(--accent-soft); color: var(--accent); }
    .empty-state { display: none; padding: 56px 20px; text-align: center; } .empty-state strong { display: block; font-size: 1.2rem; margin-bottom: 5px; } .empty-state p { color: var(--muted); font-size: .88rem; }
    .total-expense-bar { margin: 28px 0 16px; background: linear-gradient(135deg,var(--brand),#174e4c); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-lg); }
    .expense-label { color: rgba(255,255,255,.68); font-size: .78rem; font-weight: 800; } .expense-value { font-size: clamp(1.4rem,3vw,2rem); font-weight: 900; letter-spacing: -.04em; } .expense-ils { color: rgba(255,255,255,.74); font-size: .82rem; }
    .widgets-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 16px 0; }
    .widget-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; box-shadow: var(--shadow-sm); }
    .widget-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); margin-bottom: 16px; }
    .widget-title { font-size: .98rem; font-weight: 900; } .widget-subtitle { font-size: .78rem; color: var(--muted); margin: 5px 0 16px; min-height: 38px; }
    .widget-btns { display: flex; gap: 7px; flex-wrap: wrap; }
    .btn-widget { min-height: 38px; padding: 0 12px; border-radius: 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); font-size: .73rem; font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
    .btn-red { background: color-mix(in srgb,var(--danger) 12%,var(--surface)); color: var(--danger); } .btn-purple-w { color: var(--brand); }
    .calc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; } .calc-input-wrap label { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; margin-bottom: 4px; }
    .calc-input-wrap input { width: 100%; min-height: 40px; background: var(--surface-soft); border: 1px solid transparent; color: var(--ink); border-radius: 10px; padding: 7px; font-weight: 900; }
    .calc-info { font-size: .73rem; color: var(--muted); margin-top: 9px; }
    .calc-rate-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 13px; }
    .rate-status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: .67rem; font-weight: 900; }
    .rate-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb,currentColor 13%,transparent); }
    .rate-status.live { color: var(--green); background: color-mix(in srgb,var(--green) 9%,var(--surface)); border-color: color-mix(in srgb,var(--green) 28%,var(--line)); }
    .rate-status.loading::before { animation: ratePulse 1s ease-in-out infinite; }
    .rate-status.cached, .rate-status.fallback { color: var(--gold-dark); background: color-mix(in srgb,var(--gold) 9%,var(--surface)); border-color: color-mix(in srgb,var(--gold) 28%,var(--line)); }
    .rate-refresh { min-height: 28px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: .67rem; font-weight: 900; cursor: pointer; }
    .rate-refresh:hover { background: var(--accent-soft); }
    .rate-refresh:disabled { opacity: .55; cursor: wait; }
    @keyframes ratePulse { 50% { opacity: .28; transform: scale(.76); } }
    .sync-widget { margin: 16px 0 40px; background: var(--accent-soft); border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--line)); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .sync-widget .widget-subtitle { min-height: 0; margin-bottom: 0; } .sync-btns { display: flex; gap: 8px; flex-wrap: wrap; } .sync-btns .btn-widget { background: var(--surface); }
    .site-footer { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--muted); font-size: .78rem; display: flex; justify-content: space-between; gap: 20px; }
    .floating-planner { position: fixed; left: 22px; bottom: 22px; z-index: 90; min-height: 52px; padding: 0 18px; border-radius: 17px; border: 0; background: var(--accent); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 16px 38px rgba(237,105,75,.34); }
    .scroll-top { display: none; position: fixed; right: 22px; bottom: 22px; z-index: 90; }
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(6,18,19,.67); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
    .modal-overlay.open { display: flex; } .modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; width: min(640px,100%); max-height: 86vh; overflow-y: auto; padding: 27px; position: relative; box-shadow: 0 30px 100px rgba(0,0,0,.35); animation: modalIn .22s ease both; }
    @keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
    .modal-close { position: absolute; top: 18px; left: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font-size: 1.2rem; }
    .modal-title { font-size: 1.35rem; font-weight: 900; padding-left: 46px; margin-bottom: 14px; letter-spacing: -.025em; } .modal-body { font-size: .9rem; color: var(--muted); }
    .modal-body ul { margin: 10px 20px 0 0; } .modal-body li { margin-bottom: 8px; } .modal-body b { color: var(--ink); }
    .modal-textarea { min-height: 145px; resize: vertical; margin: 12px 0; direction: ltr; text-align: left; }
    .day-board { display: grid; gap: 10px; } .day-column { background: var(--surface-soft); border-radius: 15px; padding: 14px; } .day-column h3 { font-size: .85rem; margin-bottom: 8px; color: var(--ink); }
    .day-place { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .78rem; } .day-place:first-of-type { border-top: 0; }
    .toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,25px); z-index: 1200; max-width: min(440px,calc(100% - 30px)); background: var(--ink); color: var(--surface); padding: 12px 17px; border-radius: 13px; font-size: .82rem; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-lg); text-align: center; }
    .toast.show { opacity: 1; transform: translate(-50%,0); }
    /* Soft blue & gold city-guide visual system */
    :root {
      --bg: #f5f8ff; --surface: #ffffff; --surface-soft: #edf3ff; --surface-strong: #dce8fb;
      --ink: #14284b; --muted: #6d7d9c; --line: rgba(35,79,153,.15); --brand: #2357a6; --brand-2: #3978d0;
      --brand-soft: #e4edff; --accent: #d6a63a; --accent-soft: #fff4d7; --gold: #b88418; --success: #2c8a78;
      --danger: #d65e66; --acid: #f5d77f; --violet: #728bc5; --sky: #dcecff;
      --shadow-sm: 0 10px 28px rgba(28,72,143,.10); --shadow-lg: 0 22px 58px rgba(28,72,143,.16);
    }
    html[data-theme="dark"] {
      --bg: #0b1930; --surface: #122442; --surface-soft: #182d4e; --surface-strong: #203a62;
      --ink: #f6f8ff; --muted: #aab8d1; --line: rgba(200,218,255,.15); --brand: #79a9f4; --brand-2: #9ec3ff;
      --brand-soft: #1e3c69; --accent: #e8be61; --accent-soft: #42361f; --gold: #f0c86e; --success: #73cbb6;
      --danger: #ff9198; --acid: #e8c866; --violet: #7898d4; --sky: #294d7d;
      --shadow-sm: 0 12px 30px rgba(0,0,0,.22); --shadow-lg: 0 26px 64px rgba(0,0,0,.32);
    }
    body { font-family: Tahoma, Arial, sans-serif; background: radial-gradient(circle at 8% 2%,rgba(214,166,58,.12),transparent 25rem), radial-gradient(circle at 94% 18%,rgba(57,120,208,.14),transparent 34rem), var(--bg); letter-spacing:0; }
    .topbar { position:relative; top:auto; z-index:10; background:color-mix(in srgb,var(--bg) 90%,transparent); backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
    .topbar-inner { min-height:76px; }
    .brand-mark { border-radius:15px; background:linear-gradient(145deg,var(--brand-2),var(--brand)); color:#fff; transform:rotate(-4deg); box-shadow:0 6px 16px rgba(35,87,166,.24), inset 0 0 0 2px rgba(255,255,255,.25); }
    .brand strong { color:var(--ink); }
    .nav-links a { color:var(--muted); border-radius:999px; }
    .nav-links a:hover { color:var(--brand); background:var(--brand-soft); }
    .icon-btn,.soft-btn,.primary-btn { border:1px solid var(--line); border-radius:999px; box-shadow:none; }
    .icon-btn:hover,.soft-btn:hover,.primary-btn:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--brand) 35%,var(--line)); box-shadow:0 8px 18px rgba(35,87,166,.12); }
    .hero { margin-top:28px; min-height:440px; background:linear-gradient(135deg,#153d78 0%,#235ba5 55%,#3d7dc7 100%); border:1px solid rgba(255,255,255,.16); border-radius:34px; box-shadow:0 26px 70px rgba(26,70,137,.26); grid-template-columns:1.12fr .88fr; }
    .hero::before { inset:auto -7% -62% auto; width:500px; border:74px solid rgba(240,198,100,.18); filter:blur(1px); }
    .hero::after { content:"✦"; position:absolute; left:7%; top:8%; color:rgba(255,220,137,.28); font-size:5rem; line-height:1; z-index:-1; transform:rotate(12deg); }
    .hero-copy { padding:clamp(36px,6vw,82px); }
    .eyebrow { color:#f5d888; letter-spacing:.11em; }
    .eyebrow::before { background:#e7b94f; box-shadow:0 0 0 5px rgba(231,185,79,.15); }
    .hero h1 { font-family:Tahoma,Arial,sans-serif; font-size:clamp(2.8rem,5.6vw,5.7rem); line-height:1.02; letter-spacing:-.035em; text-shadow:0 5px 22px rgba(0,0,0,.12); }
    .hero p { color:rgba(255,255,255,.8); }
    .hero .primary-btn { color:#17335e; background:linear-gradient(135deg,#f8dfa0,#e5b747); border-color:rgba(255,255,255,.25); box-shadow:0 9px 24px rgba(15,34,66,.2); }
    .hero .soft-btn { background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.28); backdrop-filter:blur(8px); }
    .hero .soft-btn:hover { background:rgba(255,255,255,.2); }
    .hero-art { background:radial-gradient(circle at 50% 42%,rgba(255,225,151,.22),transparent 43%), radial-gradient(circle at 72% 20%,rgba(255,255,255,.12) 0 4px,transparent 5px), radial-gradient(circle at 28% 76%,rgba(255,255,255,.12) 0 3px,transparent 4px); }
    .city-card { position:relative; max-width:330px; background:linear-gradient(155deg,#fffaf0,#f7e3ae); color:#17355f; border:1px solid rgba(255,255,255,.72); border-radius:26px; transform:rotate(2deg); box-shadow:0 22px 50px rgba(7,30,70,.27), inset 0 0 0 5px rgba(255,255,255,.38); }
    .city-card::before { content:"✦"; position:absolute; top:18px; left:22px; color:#c59328; font-size:1.4rem; }
    .city-card-label { color:#7a693d; }
    .city-card strong { font-size:4.7rem; color:#1f5293; }
    .canal-line { border-bottom-color:rgba(31,82,147,.24); }
    .canal-line span { background:#5e91d3; }
    .canal-line span:nth-child(2) { background:#d7a840; }
    .canal-line span:nth-child(3) { background:#89afe0; }
    .canal-line span:nth-child(4) { background:#bd8a23; }
    .stats-grid { gap:16px; margin-top:28px; }
    .stat-card { position:relative; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-sm); overflow:hidden; }
    .stat-card:nth-child(1) { background:linear-gradient(145deg,#fff,#edf4ff); }
    .stat-card:nth-child(2) { background:linear-gradient(145deg,#fff9e9,#fff1c9); }
    .stat-card:nth-child(3) { background:linear-gradient(145deg,#edf5ff,#dceaff); }
    .stat-card:nth-child(4) { background:linear-gradient(145deg,#fff,#f2edff); }
    html[data-theme="dark"] .stat-card:nth-child(n) { background:linear-gradient(145deg,var(--surface),var(--surface-soft)); }
    .stat-card::after { content:""; position:absolute; width:54px; height:54px; left:-17px; bottom:-21px; border-radius:50%; background:var(--accent-soft); opacity:.75; }
    .stat-card .stat-label,.stat-card .stat-value small { color:var(--muted); }
    .progress-container { background:var(--surface-strong); }
    .progress-fill { background:linear-gradient(90deg,var(--brand-2),var(--accent)); }
    .now-activity-box { border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-sm); }
    .now-icon { background:linear-gradient(145deg,var(--brand-soft),var(--sky)); color:var(--brand); border-radius:16px; }
    .panel { border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-sm); }
    .map-section { margin-top:26px; }
    .filters-section { position:relative; top:auto; z-index:1; margin:34px 0 30px; padding:20px; background:color-mix(in srgb,var(--surface) 96%,transparent); backdrop-filter:none; box-shadow:var(--shadow-lg); }
    .search-bar,.sort-select { min-height:52px; border:1px solid var(--line); border-radius:15px; background:var(--surface-soft); }
    .search-bar:focus,.sort-select:focus { border-color:var(--brand-2); box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-2) 14%,transparent); }
    .view-switch { border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); }
    .view-switch button { border-radius:11px; }
    .view-switch button.active { background:var(--brand); color:#fff; box-shadow:0 5px 12px rgba(35,87,166,.2); }
    .filter-bottom { margin-top:15px; }
    .btn-filter { min-height:39px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:var(--surface); }
    .btn-filter:hover { background:var(--brand-soft); color:var(--brand); border-color:color-mix(in srgb,var(--brand) 28%,var(--line)); }
    .btn-filter.active { background:linear-gradient(135deg,var(--brand),var(--brand-2)); border-color:transparent; color:#fff; box-shadow:0 6px 15px rgba(35,87,166,.2); }
    .btn-special-random { background:var(--accent-soft); color:var(--gold); border-color:rgba(184,132,24,.18); }
    .section-kicker { color:var(--gold); }
    .category-title { font-family:Tahoma,Arial,sans-serif; font-size:clamp(1.7rem,3vw,2.7rem); letter-spacing:-.025em; color:var(--ink); }
    .category-title::after { content:"✦"; color:var(--accent); font-size:.55em; margin-inline-start:10px; vertical-align:top; }
    .grid-container { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
    .poi-card { padding:0; gap:0; overflow:hidden; border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-sm); background:var(--surface); }
    .poi-card:hover { transform:translateY(-7px); border-color:rgba(214,166,58,.42); box-shadow:0 22px 46px rgba(29,72,139,.17); }
    .poi-card.visited { border-color:color-mix(in srgb,var(--success) 58%,var(--line)); opacity:.86; }
    .poi-visual { position:relative; height:190px; overflow:hidden; background:linear-gradient(135deg,#6b9de0,#e6bf67); border-bottom:1px solid var(--line); isolation:isolate; }
    .poi-photo { width:100%; height:100%; display:block; object-fit:cover; object-position:var(--image-position,center); }
    .poi-visual.has-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(18,45,86,.02) 35%,rgba(12,34,70,.58)); z-index:0; pointer-events:none; }
    .poi-card[data-category="אוכל ובית קפה"] .poi-visual:not(.has-image) { background:linear-gradient(145deg,#7cace7,#f1d594); }
    .poi-card[data-category="שווקים ואטרקציות"] .poi-visual:not(.has-image) { background:linear-gradient(145deg,#3f79c5,#93bdf0); }
    .poi-card[data-category="מלון"] .poi-visual:not(.has-image) { background:linear-gradient(145deg,#183b6b,#bd9140); }
    .visual-number { position:absolute; right:16px; bottom:12px; z-index:1; color:#fff; font-size:1.75rem; line-height:1; font-weight:900; text-shadow:0 3px 16px rgba(0,0,0,.32); }
    .visual-monogram { position:absolute; inset:0; z-index:1; display:grid; place-items:center; color:rgba(255,255,255,.9); font-size:4rem; font-weight:900; text-shadow:0 5px 22px rgba(17,50,96,.18); }
    .poi-visual.has-image .visual-monogram { display:none; }
    .new-badge { position:absolute; top:13px; left:13px; z-index:2; background:linear-gradient(135deg,#fff3c8,#e9ba55); color:#5f430b; border:1px solid rgba(255,255,255,.65); border-radius:999px; padding:6px 11px; font-size:.67rem; font-weight:900; box-shadow:0 6px 16px rgba(39,50,70,.18); }
    .card-body { padding:20px; display:flex; flex-direction:column; gap:13px; flex:1; }
    .poi-index { display:none; }
    .poi-name { font-size:1.23rem; line-height:1.25; color:var(--ink); }
    .category-badge { border:1px solid rgba(35,87,166,.1); border-radius:999px; background:var(--brand-soft); color:var(--brand); }
    .favorite-btn { border:1px solid var(--line); border-radius:50%; background:var(--surface-soft); color:var(--brand); }
    .favorite-btn:hover { background:var(--accent-soft); color:var(--gold); }
    .favorite-btn.active { background:linear-gradient(145deg,#f2cd73,#d5a238); color:#fff; border-color:transparent; box-shadow:0 6px 14px rgba(184,132,24,.23); }
    .meta-pill { border:1px solid var(--line); border-radius:999px; background:var(--surface-soft); }
    .poi-desc { min-height:44px; }
    .select-day,.input-cost,.select-rating,.input-notes,.modal-textarea { border:1px solid var(--line); border-radius:12px; }
    .select-day:focus,.input-cost:focus,.select-rating:focus,.input-notes:focus,.modal-textarea:focus { border-color:var(--brand-2); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-2) 12%,transparent); }
    .card-actions { gap:8px; }
    .btn-action { border:1px solid var(--line); border-radius:12px; }
    .btn-action:hover { transform:translateY(-2px); box-shadow:0 7px 16px rgba(29,72,139,.12); }
    .btn-nav { background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; border-color:transparent; }
    .btn-web { background:var(--accent-soft); color:var(--gold); border-color:rgba(184,132,24,.15); }
    .btn-insta { background:var(--brand-soft); color:var(--brand); border-color:rgba(35,87,166,.12); }
    .grid-container.list-view .poi-card { display:grid; grid-template-columns:240px 1fr; }
    .grid-container.list-view .poi-visual { height:100%; min-height:350px; border-bottom:0; border-left:1px solid var(--line); }
    .grid-container.list-view .card-body { min-width:0; }
    .grid-container.list-view .card-actions { grid-column:auto; }
    .total-expense-bar { border:1px solid rgba(214,166,58,.34); border-radius:22px; background:linear-gradient(135deg,#fff7df,#f2d889); color:#17355f; box-shadow:0 16px 38px rgba(112,80,17,.14); }
    .expense-label,.expense-ils { color:#6f5a2b; }
    .widget-box { border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow-sm); }
    .widget-icon { border:1px solid rgba(35,87,166,.12); border-radius:16px; background:linear-gradient(145deg,var(--brand-soft),var(--sky)); color:var(--brand); }
    .btn-widget { border:1px solid var(--line); border-radius:999px; }
    .btn-widget:hover { background:var(--brand-soft); color:var(--brand); }
    .sync-widget { border:1px solid rgba(255,255,255,.18); border-radius:24px; background:linear-gradient(135deg,#173e78,#376fb7); color:#fff; box-shadow:var(--shadow-lg); }
    .sync-widget .widget-subtitle { color:rgba(255,255,255,.72); }
    .sync-widget .btn-widget { background:linear-gradient(135deg,#f7dfa1,#ddb04c); color:#17355f; border-color:transparent; }
    .floating-planner { border:1px solid rgba(255,255,255,.24); border-radius:999px; background:linear-gradient(135deg,#e8bc58,#f5d98b); color:#17355f; box-shadow:0 12px 30px rgba(78,55,13,.22); }
    .scroll-top { background:var(--brand); color:#fff; border:1px solid rgba(255,255,255,.2); box-shadow:0 10px 24px rgba(35,87,166,.24); }
    .modal-content { border:1px solid var(--line); border-radius:26px; box-shadow:0 28px 80px rgba(8,29,64,.28); }
    .modal-close { border-radius:50%; }
    @media (max-width:1080px) { .grid-container { grid-template-columns: repeat(2,minmax(0,1fr)); } .widgets-grid { grid-template-columns: repeat(2,1fr); } .widget-box:last-child { grid-column: 1 / -1; } .nav-links { display:none; } }
    @media (max-width:760px) { .container { width:min(100% - 24px,1360px); } .topbar-inner { min-height:64px; } .brand small,.top-actions .soft-btn { display:none; } .hero { grid-template-columns:1fr; margin-top:16px; } .hero-copy { padding:36px 26px 18px; } .hero h1 { font-size:clamp(2.65rem,14vw,4.3rem); } .hero-art { min-height:230px; padding-top:10px; } .city-card { max-width:280px; } .stats-grid { grid-template-columns:1fr 1fr; } .filters-section { top:auto; } .filter-top { grid-template-columns:1fr auto; } .sort-select { grid-column:1 / -1; grid-row:2; } .filter-bottom { align-items:flex-start; flex-direction:column; } .quick-actions { width:100%; } .grid-container,.widgets-grid { grid-template-columns:1fr; } .widget-box:last-child { grid-column:auto; } .grid-container.list-view .poi-card { display:flex; } .grid-container.list-view .poi-visual { min-height:185px; height:185px; border-left:0; border-bottom:1px solid var(--line); } .sync-widget { align-items:flex-start; flex-direction:column; } .map-container { height:290px; } .site-footer { flex-direction:column; } }
    @media (max-width:460px) { .hero-actions>* { flex:1; } .stat-card { padding:15px; } .stat-value { font-size:1.2rem; } .now-activity-box { align-items:flex-start; } .panel-head { align-items:flex-start; } .card-actions { grid-template-columns:1fr; } .total-expense-bar { align-items:flex-start; flex-direction:column; } .floating-planner { left:12px; bottom:12px; } .scroll-top { right:12px; bottom:12px; } }
    @media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
    @media print { body { background:#fff; color:#111; } .topbar,.hero-art,.filters-section,.widgets-grid,.sync-widget,.map-section,.card-actions,.floating-planner,.scroll-top,.favorite-btn,.input-cost,.select-rating,.input-notes,.toast { display:none!important; } .hero { min-height:0; background:#fff; color:#111; box-shadow:none; border:1px solid #ddd; } .hero-copy { padding:24px; } .hero p { color:#555; } .stats-grid,.grid-container { grid-template-columns:repeat(2,1fr); } .poi-card { break-inside:avoid; box-shadow:none; color:#111; } .poi-desc,.stat-label { color:#555; } }

:root {
      --bg: #f2efe8; --surface: #fffdf8; --surface-soft: #e9edf4; --surface-strong: #dce3ee;
      --ink: #0a1b37; --muted: #5e6d82; --line: rgba(10,27,55,.13); --brand: #2358a2; --brand-2: #3976cb;
      --brand-soft: #e0eafe; --accent: #d5a936; --accent-soft: #fff0bd; --gold: #a97808; --gold-dark: #765304;
      --green: #0b7d67; --success: #0b7d67; --danger: #c83f4c; --navy: #081a36; --navy-2: #102b58;
      --shadow-sm: 0 14px 40px rgba(14,32,65,.08); --shadow-lg: 0 34px 90px rgba(8,26,54,.2);
      --radius-sm: 14px; --radius: 24px; --radius-lg: 36px;
    }
    html[data-theme="dark"] {
      --bg: #061126; --surface: #0d1d39; --surface-soft: #132746; --surface-strong: #1b3152;
      --ink: #f7f3e9; --muted: #adbad0; --line: rgba(230,238,255,.13); --brand: #76a9f2; --brand-2: #4c83d4;
      --brand-soft: #142e57; --accent: #efc65d; --accent-soft: #40351b; --gold: #efc65d; --gold-dark: #f6d984;
      --green: #68d5bd; --success: #68d5bd; --danger: #ff8291; --navy: #030b1a; --navy-2: #0a1d3b;
      --shadow-sm: 0 16px 44px rgba(0,0,0,.24); --shadow-lg: 0 36px 100px rgba(0,0,0,.42);
    }
    html { scroll-padding-top: 18px; }
    body {
      overflow-x: hidden; font-family: Arial, "Segoe UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.55;
      background:
        radial-gradient(circle at 8% 2%, color-mix(in srgb,var(--brand) 13%,transparent), transparent 30rem),
        radial-gradient(circle at 92% 26%, color-mix(in srgb,var(--accent) 11%,transparent), transparent 34rem), var(--bg);
    }
    body::before {
      content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .34;
      background-image: linear-gradient(var(--line) 1px,transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px);
      background-size: 72px 72px; mask-image: linear-gradient(to bottom,black,transparent 72%);
    }
    ::selection { background: var(--accent); color: var(--navy); }
    button,a,select,input { touch-action: manipulation; }
    button:active,.btn-action:active,.btn-widget:active,.nav-links a:active { filter: brightness(.94); }
    .container { width: min(1420px,calc(100% - 56px)); }
    .topbar { position: relative; background: color-mix(in srgb,var(--surface) 88%,transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
    .topbar-inner { min-height: 82px; }
    .brand { gap: 13px; }
    .brand-mark { width: 52px; height: 52px; padding: 7px; border-radius: 17px 17px 17px 6px; background: linear-gradient(145deg,var(--navy),#244f8e); color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1; box-shadow: 0 10px 26px rgba(8,26,54,.2); }
    .brand-mark strong { font-size: .76rem; letter-spacing: .08em; }
    .brand-mark small { color: var(--accent); font-size: .66rem; margin-top: 4px; font-weight: 900; }
    .brand-copy { display: flex; flex-direction: column; }
    .brand-copy > strong { font-size: .86rem; letter-spacing: .12em; }
    .brand-copy small { font-size: .69rem; letter-spacing: .04em; }
    .nav-links { padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); }
    .nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; font-size: .78rem; }
    .nav-links a:hover { background: var(--surface); color: var(--brand); box-shadow: 0 4px 14px rgba(8,26,54,.07); }
    .top-planner-btn { border-color: transparent; background: var(--navy); color: #fff; }
    html[data-theme="dark"] .top-planner-btn { background: var(--accent); color: var(--navy); }
    .theme-toggle { width: auto; min-width: 46px; padding: 0 12px; gap: 8px; }
    .theme-glyph { width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; display: block; position: relative; }
    .theme-glyph::after { content: ""; position: absolute; width: 7px; height: 7px; top: -3px; right: -3px; border-radius: 50%; background: var(--surface); }
    html[data-theme="dark"] .theme-glyph::after { width: 3px; height: 3px; inset: 5px auto auto 5px; background: currentColor; box-shadow: 0 -9px currentColor,0 9px currentColor,9px 0 currentColor,-9px 0 currentColor,6px 6px currentColor,-6px -6px currentColor,6px -6px currentColor,-6px 6px currentColor; }
    .theme-label { font-size: .72rem; font-weight: 900; }

    .hero { min-height: 610px; margin: 34px auto 24px; grid-template-columns: 1.04fr .96fr; border-radius: 44px 44px 44px 12px; background: linear-gradient(135deg,var(--navy) 0%,#0d2852 54%,#173f76 100%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 42px 110px rgba(8,26,54,.28); overflow: hidden; }
    .hero::before { width: 500px; inset: -250px -210px auto auto; border: 1px solid rgba(255,255,255,.15); }
    .hero::after { content: ""; position: absolute; inset: auto auto -220px -120px; width: 440px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,color-mix(in srgb,var(--accent) 36%,transparent),transparent 67%); filter: blur(12px); z-index: -1; }
    .hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(90deg,black,transparent); }
    .hero-copy { padding: clamp(40px,6vw,86px); position: relative; z-index: 2; }
    .eyebrow { color: #fff; gap: 10px; font-size: .7rem; letter-spacing: .13em; }
    .eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(213,169,54,.14); }
    .eyebrow b { color: #89b4ef; font-weight: 800; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255,255,255,.2); }
    .hero h1 { margin: 24px 0 22px; max-width: 760px; letter-spacing: -.065em; }
    .hero h1 span { display: block; font-size: clamp(3.2rem,7.6vw,7.8rem); line-height: .84; color: #fff; }
    .hero h1 em { display: block; margin-top: 18px; color: var(--accent); font-style: normal; font-size: clamp(1.35rem,2.6vw,2.65rem); line-height: 1.08; letter-spacing: -.035em; }
    .hero p { max-width: 650px; font-size: clamp(.98rem,1.4vw,1.12rem); line-height: 1.8; color: rgba(246,249,255,.72); }
    .hero-actions { margin-top: 30px; gap: 12px; }
    .hero .primary-btn,.hero .soft-btn { min-height: 52px; padding: 0 22px; border-radius: 16px; }
    .hero .primary-btn { background: var(--accent); color: var(--navy); box-shadow: 0 12px 30px rgba(213,169,54,.25); }
    .hero .primary-btn::after { content: "←"; margin-inline-start: 18px; transition: transform .2s ease; }
    .hero .primary-btn:hover::after { transform: translateX(-4px); }
    .hero .soft-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
    .hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: rgba(255,255,255,.56); font-size: .7rem; }
    .hero-proof span { display: flex; align-items: center; gap: 6px; }
    .hero-proof b { color: #fff; font-size: .74rem; letter-spacing: .04em; }
    .hero-art { min-height: 610px; padding: 0; background: transparent; position: relative; isolation: isolate; --hero-x: 0px; --hero-y: 0px; }
    .hero-photo { position: absolute; margin: 0; overflow: hidden; background: #17355f; border: 6px solid rgba(255,255,255,.94); box-shadow: 0 28px 70px rgba(0,0,0,.34); transition: transform .5s cubic-bezier(.2,.75,.2,1); }
    .hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease,transform 1.2s cubic-bezier(.2,.75,.2,1); }
    .hero.hero-ready .hero-photo img { opacity: 1; transform: scale(1); }
    .hero-photo figcaption { position: absolute; inset: auto 10px 10px auto; direction: ltr; background: rgba(6,17,38,.82); color: #fff; padding: 6px 9px; border-radius: 7px; font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
    .hero-photo-main { width: 58%; height: 61%; top: 14%; right: 7%; border-radius: 6px 26px 6px 26px; transform: translate(var(--hero-x),var(--hero-y)) rotate(3deg); z-index: 2; }
    .hero-photo-side { width: 39%; height: 43%; left: 3%; bottom: 6%; border-radius: 22px 5px 22px 5px; transform: translate(calc(var(--hero-x) * -.7),calc(var(--hero-y) * -.7)) rotate(-6deg); z-index: 3; }
    .hero-photo-mini { width: 31%; height: 28%; left: 8%; top: 7%; border-radius: 50%; border-width: 5px; transform: translate(calc(var(--hero-x) * -.4),calc(var(--hero-y) * -.4)); z-index: 1; }
    .hero-stamp { position: absolute; left: 36%; top: 20%; z-index: 5; width: 108px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.46); outline: 1px dashed rgba(255,255,255,.36); outline-offset: 5px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; align-content: center; justify-items: center; transform: rotate(8deg); box-shadow: 0 14px 34px rgba(0,0,0,.2); animation: stampFloat 4.5s ease-in-out infinite; }
    .hero-stamp span,.hero-stamp small { font-size: .52rem; font-weight: 900; letter-spacing: .13em; }
    .hero-stamp strong { font-size: 2.1rem; line-height: 1; }
    .hero-ticker { position: absolute; left: 0; right: 0; bottom: 0; min-height: 40px; display: flex; justify-content: space-around; align-items: center; direction: ltr; background: rgba(5,15,33,.72); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: .6rem; font-weight: 900; letter-spacing: .18em; }
    .hero-ticker span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 34px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
    @keyframes stampFloat { 50% { transform: translateY(-9px) rotate(5deg); } }

    .stats-grid { grid-template-columns: 1.35fr repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
    .stat-card { min-height: 156px; position: relative; overflow: hidden; padding: 24px; border-radius: 22px 22px 22px 7px; background: color-mix(in srgb,var(--surface) 94%,transparent); box-shadow: var(--shadow-sm); }
    .stat-card::after { content: ""; position: absolute; width: 110px; aspect-ratio: 1; left: -50px; bottom: -60px; border: 20px solid color-mix(in srgb,var(--brand) 7%,transparent); border-radius: 50%; }
    .stat-code { position: absolute; top: 17px; left: 18px; color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
    .stat-label { display: block; max-width: 80%; font-size: .73rem; letter-spacing: .02em; }
    .stat-value { margin-top: 21px; font-size: clamp(1.8rem,3vw,3rem); line-height: 1; }
    .stat-value small { font-size: .64rem; display: block; margin-top: 7px; }
    .stat-progress { background: linear-gradient(135deg,var(--navy),#173d75); color: #fff; border-color: transparent; }
    .stat-progress .stat-label,.stat-progress .stat-code { color: rgba(255,255,255,.62); }
    .stat-progress .progress-container { margin-top: 19px; background: rgba(255,255,255,.13); }
    .stat-progress .progress-fill { background: linear-gradient(90deg,var(--accent),#ffe18c); box-shadow: 0 0 18px rgba(213,169,54,.45); }
    .stat-budget { background: linear-gradient(145deg,var(--accent-soft),color-mix(in srgb,var(--surface) 75%,var(--accent))); }

    .now-activity-box { min-height: 92px; padding: 16px 18px; border-radius: 22px; background: var(--surface); }
    .now-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 18px 18px 18px 6px; background: var(--navy); color: var(--accent); font-size: .63rem; letter-spacing: .09em; font-weight: 900; }
    .now-copy { flex: 1; min-width: 0; }
    .now-activity-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .69rem; }
    .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb,var(--success) 13%,transparent); animation: livePulse 2s ease-in-out infinite; }
    .meta-divider { width: 1px; height: 12px; background: var(--line); }
    .now-activity-desc { font-size: clamp(.88rem,1.3vw,1rem); }
    .now-action { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: .73rem; cursor: pointer; transition: .2s ease; }
    .now-action:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
    .now-action.active { background: var(--brand); color: #fff; border-color: var(--brand); }
    @keyframes livePulse { 50% { opacity: .45; } }

    .panel { border-radius: 24px; }
    .map-section { border-radius: 28px 28px 28px 8px; }
    .panel-head { padding: 21px 24px; }
    .panel-title { font-size: 1rem; }
    .map-container { height: 400px; }
    .filters-section { padding: 18px; border-radius: 26px 26px 26px 8px; margin-bottom: 42px; }
    .filter-top { grid-template-columns: minmax(280px,1fr) auto auto; }
    .search-bar,.sort-select { min-height: 50px; border-radius: 15px; background: var(--surface-soft); border-color: var(--line); }
    .search-icon { width: 15px; height: 15px; right: 17px; border: 2px solid var(--muted); border-radius: 50%; font-size: 0; }
    .search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--muted); transform: rotate(45deg); right: -5px; bottom: -2px; border-radius: 2px; }
    .view-switch { border: 1px solid var(--line); }
    .icon-btn,.soft-btn,.view-switch button,.modal-close { min-width: 44px; min-height: 44px; }
    .modal-close { width: 44px; height: 44px; }
    .view-switch button { min-width: 44px; min-height: 44px; }
    .filter-bottom { margin-top: 14px; }
    .btn-filter { min-height: 44px; padding: 0 15px; background: var(--surface); }
    .btn-filter.active { background: var(--navy); border-color: var(--navy); box-shadow: 0 8px 18px rgba(8,26,54,.16); }
    .btn-special-random { background: var(--accent-soft); color: var(--gold-dark); }

    .section-head { margin: 58px 0 22px; }
    .section-kicker { color: var(--gold); font-size: .67rem; letter-spacing: .16em; }
    .category-title { margin-top: 9px; font-family: Arial,"Segoe UI",sans-serif; font-size: clamp(2.2rem,4.5vw,4.7rem); letter-spacing: -.065em; line-height: .94; }
    .category-title::after { content: ""; display: inline-block; width: .23em; height: .23em; margin-inline-start: .14em; border-radius: 50%; background: var(--accent); vertical-align: .15em; }
    .section-intro { max-width: 560px; margin-top: 13px; color: var(--muted); font-size: .88rem; }
    .results-count { align-self: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 800; }
    .grid-container { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: start; }
    .poi-card { position: relative; border-radius: 26px 26px 26px 8px; background: var(--surface); box-shadow: 0 16px 45px rgba(8,26,54,.08); transform-origin: center bottom; }
    .poi-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
    .poi-visual { height: auto; aspect-ratio: 16 / 10.6; border-bottom: 0; background: linear-gradient(135deg,var(--brand),var(--accent)); }
    .poi-photo { transition: transform .7s cubic-bezier(.2,.75,.2,1),filter .4s ease; }
    .poi-visual.has-image::after { background: linear-gradient(180deg,rgba(5,18,40,.01) 34%,rgba(5,18,40,.7)); }
    .visual-number { right: 19px; bottom: 17px; font-size: 1.65rem; letter-spacing: -.05em; }
    .new-badge { top: 16px; left: 16px; min-height: 30px; display: inline-flex; align-items: center; background: var(--accent); color: var(--navy); border: 0; }
    .card-body { padding: 22px; gap: 14px; }
    .poi-name { font-size: 1.24rem; line-height: 1.18; }
    .category-badge { margin-top: 8px; padding: 5px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: .05em; font-size: .6rem; }
    .favorite-btn { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; font-size: 1.1rem; transition: transform .2s ease,background .2s ease,color .2s ease; }
    .favorite-btn:hover { transform: scale(1.08) rotate(-5deg); }
    .card-meta { gap: 6px; }
    .meta-pill { min-height: 28px; display: inline-flex; align-items: center; border-radius: 999px; font-size: .67rem; }
    .poi-desc { min-height: 44px; font-size: .82rem; line-height: 1.65; }
    .visit-check { min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
    .visit-check input { width: 20px; height: 20px; }
    .card-fields { gap: 9px; }
    .planning-fields { padding-top: 2px; }
    .field-wide { grid-column: 1 / -1; }
    .field label { font-size: .68rem; }
    .select-day,.input-cost,.select-rating,.input-notes { min-height: 44px; border-radius: 12px; background: var(--surface-soft); font-size: .76rem; }
    .card-actions { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding-top: 1px; }
    .btn-action { min-height: 44px; border-radius: 13px; }
    .btn-nav { background: var(--navy); }
    .btn-web { background: var(--accent-soft); color: var(--gold-dark); }
    .btn-insta { background: var(--brand-soft); color: var(--brand); }
    .grid-container.list-view .poi-card { grid-template-columns: minmax(300px,.72fr) 1fr; }
    .grid-container.list-view .poi-visual { min-height: 100%; aspect-ratio: auto; }
    .grid-container.list-view .card-body { padding: 28px; }
    @media (hover:hover) and (pointer:fine) {
      .poi-card:hover { transform: translateY(-9px); border-color: color-mix(in srgb,var(--accent) 55%,var(--line)); box-shadow: 0 28px 70px rgba(8,26,54,.17); }
      .poi-card:hover .poi-photo { transform: scale(1.055); filter: saturate(1.06); }
    }

    .total-expense-bar { min-height: 132px; margin: 40px 0 20px; padding: 26px 30px; border-radius: 28px 28px 28px 8px; background: linear-gradient(125deg,var(--navy),#173f78); color: #fff; overflow: hidden; position: relative; }
    .total-expense-bar::after { content: "€"; position: absolute; left: 4%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.06); font-size: 8rem; font-weight: 900; }
    .expense-label,.expense-ils { color: rgba(255,255,255,.66); }
    .expense-value { color: var(--accent); font-size: clamp(2rem,4vw,3.4rem); }
    .widgets-grid { gap: 18px; margin: 20px 0; }
    .widget-box { min-height: 270px; padding: 25px; border-radius: 25px 25px 25px 8px; position: relative; overflow: hidden; }
    .widget-box::before { content: ""; position: absolute; width: 90px; height: 90px; left: -44px; top: -44px; border: 18px solid color-mix(in srgb,var(--brand) 8%,transparent); border-radius: 50%; }
    .widget-icon { width: 48px; height: 48px; border-radius: 16px 16px 16px 5px; margin-bottom: 22px; background: var(--navy); color: var(--accent); font-weight: 900; }
    .widget-title { font-size: 1.1rem; }
    .widget-subtitle { min-height: 44px; font-size: .8rem; line-height: 1.65; }
    .btn-widget { min-height: 44px; border-radius: 13px; }
    .calc-input-wrap input { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; }
    .rate-status { min-height: 36px; }
    .rate-refresh { min-height: 44px; }
    .sync-widget { min-height: 132px; padding: 28px 30px; border-radius: 28px 28px 28px 8px; background: linear-gradient(120deg,#153e79,#245eaa); }
    .floating-planner { min-height: 58px; left: 24px; bottom: calc(22px + env(safe-area-inset-bottom)); padding: 0 22px; border-radius: 18px 18px 18px 6px; background: var(--accent); color: var(--navy); box-shadow: 0 16px 38px rgba(8,26,54,.25); }
    .floating-planner span { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-inline-start: 8px; border-radius: 50%; background: var(--navy); color: #fff; }
    .scroll-top { width: 50px; height: 50px; right: 24px; bottom: calc(26px + env(safe-area-inset-bottom)); border-radius: 50%; }
    .modal-overlay { background: rgba(3,11,26,.74); }
    .modal-content { border-radius: 28px 28px 28px 9px; }
    .site-footer { margin-top: 12px; }

    .grid-container:not(.list-view) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 8px; column-gap: 22px; row-gap: 0; align-items: start; }
    .grid-container:not(.list-view) .poi-card { width: 100%; margin: 0; grid-row-end: span 78; }
    .grid-container.list-view { display: grid; grid-template-columns: 1fr; }
    .grid-container.list-view .poi-card { grid-row-end: auto!important; }

    .smart-hub { margin: 18px 0; padding: 28px; border-radius: 30px 30px 30px 9px; background: linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--brand-soft) 48%,var(--surface))); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
    .smart-hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
    .smart-hub h2 { margin-top: 7px; font-size: clamp(1.7rem,3vw,2.8rem); letter-spacing: -.045em; }
    .smart-hub-head p { margin-top: 7px; color: var(--muted); font-size: .82rem; }
    .smart-hub-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .smart-hub-actions button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 900; cursor: pointer; }
    .smart-hub-actions button:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
    .smart-insights { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }
    .smart-insights article { min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: color-mix(in srgb,var(--surface) 88%,transparent); }
    .insight-code { display: block; margin-bottom: 17px; color: var(--gold); font-size: .59rem; font-weight: 900; letter-spacing: .14em; }
    .smart-insights strong { display: block; font-size: .93rem; }
    .smart-insights p { margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.6; }

    .places-map { width: 100%; height: 100%; background: var(--surface-soft); }
    .map-fallback { height: 100%; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); }
    .map-fallback strong { color: var(--ink); }
    .map-fallback button { justify-self: center; min-height: 44px; margin-top: 7px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; cursor: pointer; }
    .map-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
    .map-head-actions .soft-btn { white-space: nowrap; }
    .map-head-actions .map-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
    .leaflet-container { font-family: Arial,"Segoe UI",sans-serif; direction: ltr; background: #dce6f1; }
    .leaflet-popup-content { direction: rtl; text-align: right; margin: 15px 17px; min-width: 180px; }
    .leaflet-popup-content strong { display: block; color: #0a1b37; font-size: .92rem; }
    .leaflet-popup-content span { display: block; color: #5e6d82; font-size: .72rem; margin: 4px 0 10px; }
    .leaflet-popup-content button { min-height: 44px; border: 0; border-radius: 9px; padding: 0 13px; background: #0a1b37; color: #fff; font-weight: 800; cursor: pointer; }
    .place-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 7px; background: var(--navy); color: #fff; font-size: .65rem; font-weight: 900; box-shadow: 0 8px 20px rgba(8,26,54,.28); transform: rotate(-10deg); }
    .place-pin span { transform: rotate(10deg); }
    .place-pin.favorite { background: #d5a936; color: #081a36; }
    .place-pin.hotel { background: #3976cb; }

    .poi-visual { cursor: pointer; }
    .poi-visual:focus-visible { outline: 4px solid var(--accent); outline-offset: -4px; }
    .vote-row { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: var(--surface-soft); }
    .vote-row span { flex: 1; color: var(--muted); font-size: .67rem; font-weight: 800; }
    .vote-row button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 900; cursor: pointer; }
    .vote-row button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
    .journal-fields { display: none; grid-column: 1 / -1; gap: 8px; padding-top: 4px; }
    .journal-fields.show { display: grid; }
    .journal-fields label { color: var(--muted); font-size: .67rem; font-weight: 800; }
    .journal-fields textarea { width: 100%; min-height: 72px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink); }
    .journal-upload { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; }
    .journal-upload input { max-width: 100%; font-size: .7rem; }
    .journal-preview { width: 100%; max-height: 170px; object-fit: cover; border-radius: 12px; }

    .modal-content.wide-modal { width: min(1180px,100%); }
    .smart-plan-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; margin: 14px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
    .smart-plan-bar label { display: grid; gap: 5px; color: var(--muted); font-size: .69rem; font-weight: 900; }
    .smart-plan-bar select,.smart-plan-bar button { min-height: 44px; border-radius: 11px; border: 1px solid var(--line); padding: 0 12px; background: var(--surface); color: var(--ink); font-weight: 800; }
    .smart-plan-bar button { align-self: end; background: var(--navy); color: #fff; cursor: pointer; }
    .smart-plan-bar .start-trip-btn { background: var(--accent); color: var(--navy); border-color: var(--accent); }
    .day-board { grid-template-columns: repeat(4,minmax(230px,1fr)); align-items: start; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
    .day-column { min-height: 210px; border: 1px solid var(--line); background: var(--surface-soft); }
    .day-column.drag-over { border-color: var(--brand); box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--brand) 22%,transparent); }
    .day-column h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; }
    .day-column h3 button { min-height: 44px; padding: 0 11px; border: 0; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: .65rem; font-weight: 900; cursor: pointer; }
    .day-place { display: block; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: grab; }
    .day-place:active { cursor: grabbing; }
    .day-place.dragging { opacity: .42; }
    .day-place-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
    .drag-handle { color: var(--muted); font-weight: 900; letter-spacing: -2px; }
    .day-place-name { min-width: 0; font-size: .75rem; font-weight: 900; }
    .day-time { width: 82px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 6px; background: var(--surface-soft); color: var(--ink); font-size: .69rem; }
    .day-place-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 8px; }
    .day-place-tools select,.day-place-tools button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: var(--surface-soft); color: var(--ink); font-size: .64rem; cursor: pointer; }
    .route-leg { margin: 7px 0 0; padding-inline-start: 19px; color: var(--muted); font-size: .63rem; }
    .hours-warning { margin-top: 7px; color: var(--danger); font-size: .64rem; font-weight: 900; }
    .day-total { margin-top: 10px; padding: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; font-weight: 900; }
    .empty-day { padding: 24px 8px; color: var(--muted); text-align: center; font-size: .72rem; }

    .nearby-list,.journal-timeline,.budget-breakdown,.collab-list { display: grid; gap: 9px; margin-top: 14px; }
    .nearby-item,.journal-entry,.budget-row,.collab-place { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
    .nearby-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
    .nearby-rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 900; }
    .nearby-item strong,.nearby-item span { display: block; }
    .nearby-item span { color: var(--muted); font-size: .7rem; }
    .nearby-item button { min-height: 44px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
    .budget-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
    .budget-summary > div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
    .budget-summary span { display: block; color: var(--muted); font-size: .68rem; }
    .budget-summary strong { display: block; margin-top: 5px; font-size: 1.4rem; }
    .budget-limit-form { display: flex; align-items: end; gap: 8px; }
    .budget-limit-form label { display: grid; gap: 4px; color: var(--muted); font-size: .68rem; }
    .budget-limit-form input { min-height: 44px; width: 130px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface-soft); color: var(--ink); }
    .budget-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: .73rem; font-weight: 900; }
    .budget-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
    .budget-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),var(--accent)); }
    .journal-entry { display: grid; grid-template-columns: 110px 1fr; gap: 13px; }
    .journal-entry img { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; }
    .journal-entry p { color: var(--muted); font-size: .76rem; margin-top: 5px; }
    .collab-profile { display: flex; align-items: end; gap: 8px; margin: 12px 0; }
    .collab-profile label { display: grid; gap: 4px; flex: 1; color: var(--muted); font-size: .68rem; }
    .collab-profile input,.collab-code { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface-soft); color: var(--ink); }
    .collab-actions { display: flex; flex-wrap: wrap; gap: 7px; }
    .collab-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--ink); font-weight: 800; cursor: pointer; }

    .expense-summary-actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
    .expense-summary-actions button { min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 0 13px; background: rgba(255,255,255,.08); color: #fff; font-weight: 900; cursor: pointer; }

    .trip-mode { position: fixed; inset: 0; z-index: 3000; overflow-y: auto; background: linear-gradient(145deg,var(--navy),#153c73); color: #fff; padding: max(22px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
    .trip-mode[hidden] { display: none; }
    .trip-mode-head { width: min(720px,100%); margin: 0 auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .trip-mode-head span { color: var(--accent); font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
    .trip-mode-head h2 { font-size: 1.6rem; }
    .trip-mode-head button { min-height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 0 14px; background: rgba(255,255,255,.08); color: #fff; font-weight: 900; cursor: pointer; }
    .trip-mode-body { width: min(720px,100%); margin: 0 auto; }
    .trip-progress { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
    .trip-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
    .trip-next-card { margin-top: 18px; overflow: hidden; border-radius: 28px 28px 28px 8px; background: #fff; color: #0a1b37; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
    .trip-next-card img { width: 100%; height: min(42vh,350px); display: block; object-fit: cover; }
    .trip-next-content { padding: 23px; }
    .trip-next-content .trip-kicker { color: #a97808; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
    .trip-next-content h3 { margin-top: 6px; font-size: clamp(1.8rem,8vw,3.2rem); line-height: 1; }
    .trip-next-content p { margin-top: 10px; color: #5e6d82; }
    .trip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
    .trip-actions a,.trip-actions button { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 13px; background: #0a1b37; color: #fff; text-decoration: none; font-weight: 900; cursor: pointer; }
    .trip-actions .trip-done { background: #d5a936; color: #081a36; }
    .trip-up-next { margin-top: 16px; color: rgba(255,255,255,.7); font-size: .75rem; text-align: center; }

    .motion-ready [data-reveal],.motion-ready .poi-card { opacity: 0; transform: translateY(26px); }
    .motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .75s ease,transform .75s cubic-bezier(.2,.75,.2,1); }
    .motion-ready .poi-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity .55s ease var(--card-delay,0ms),transform .65s cubic-bezier(.2,.75,.2,1) var(--card-delay,0ms),box-shadow .25s ease,border-color .25s ease; }
    body.auth-pending { overflow: hidden; }
    body.auth-pending > :not(.auth-gate):not(.auth-restore):not(script) { visibility: hidden; }
    .auth-restore { position: fixed; inset: 0; z-index: 5001; display: none; place-items: center; padding: 24px; background: var(--navy); color: #f8fbff; }
    html[data-auth-returning="true"] .auth-restore { display: grid; }
    html[data-auth-returning="true"] .auth-gate { visibility: hidden; pointer-events: none; }
    .auth-restore-inner { display: grid; justify-items: center; gap: 15px; text-align: center; }
    .auth-restore-mark { width: 72px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(239,198,93,.38); border-radius: 50%; color: var(--gold); font-size: 1.05rem; font-weight: 950; letter-spacing: -.05em; box-shadow: 0 0 0 10px rgba(239,198,93,.06); animation: authRestorePulse 1.4s ease-in-out infinite; }
    .auth-restore-text { color: rgba(248,251,255,.78); font-size: .86rem; font-weight: 800; }
    @keyframes authRestorePulse { 50% { transform: scale(.96); box-shadow: 0 0 0 16px rgba(239,198,93,.025); } }
    .auth-gate[hidden] { display: none; }
    .auth-gate { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px; overflow-x: hidden; overflow-y: auto; background: var(--navy); color: #f8fbff; isolation: isolate; }
    .auth-gate::before,.auth-gate::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
    .auth-gate::before { width: min(70vw,760px); aspect-ratio: 1; top: -46%; left: -12%; border: 92px solid rgba(239,198,93,.12); }
    .auth-gate::after { width: min(64vw,680px); aspect-ratio: 1; right: -20%; bottom: -48%; background: radial-gradient(circle,rgba(74,139,226,.34),transparent 68%); }
    .auth-shell { width: min(940px,100%); min-height: 550px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 38px 38px 38px 12px; background: rgba(255,255,255,.07); box-shadow: 0 38px 110px rgba(0,0,0,.34); backdrop-filter: blur(24px); }
    .auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px,5vw,56px); background: linear-gradient(150deg,#173f76 0%,#0e2a55 66%,#0a1d3e 100%); overflow: hidden; }
    .auth-visual::after { content: ""; position: absolute; width: 310px; height: 310px; left: -135px; bottom: -110px; border: 54px solid rgba(239,198,93,.14); border-radius: 50%; }
    .auth-edition { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.68); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
    .auth-monogram { align-self: center; width: 190px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; color: var(--accent); }
    .auth-monogram::before,.auth-monogram::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
    .auth-monogram::before { inset: 18px; }
    .auth-monogram::after { inset: 42px; border-color: rgba(239,198,93,.24); }
    .auth-monogram strong { font-size: 3rem; letter-spacing: -.08em; color: #fff; z-index: 1; }
    .auth-monogram span { position: absolute; bottom: 34px; font-size: .66rem; font-weight: 900; letter-spacing: .14em; z-index: 1; }
    .auth-visual-note { max-width: 270px; color: rgba(255,255,255,.73); font-size: .83rem; }
    .auth-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px,6vw,74px); background: color-mix(in srgb,var(--surface) 96%,transparent); color: var(--ink); }
    .auth-kicker { color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
    .auth-title { margin: 15px 0 12px; font-size: clamp(2.25rem,5vw,4rem); line-height: .98; letter-spacing: -.065em; }
    .auth-copy { max-width: 440px; color: var(--muted); font-size: .96rem; }
    .auth-google-btn { width: 100%; min-height: 56px; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--navy); color: #fff; cursor: pointer; font-weight: 900; box-shadow: 0 14px 32px rgba(8,26,54,.18); transition: transform .18s ease,box-shadow .18s ease,opacity .18s ease; }
    .auth-google-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(8,26,54,.24); }
    .auth-google-btn:disabled { cursor: wait; opacity: .68; }
    .auth-google-btn svg { width: 21px; height: 21px; flex: 0 0 21px; }
    .auth-status { min-height: 24px; margin-top: 14px; color: var(--muted); font-size: .8rem; text-align: center; }
    .auth-status.is-error { color: var(--danger); font-weight: 800; }
    .auth-privacy { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
    .auth-privacy-mark { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--gold); font-weight: 900; }
    .auth-account-btn { min-height: 46px; max-width: 190px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; }
    .auth-account-btn[hidden] { display: none; }
    .auth-account-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb,var(--success) 15%,transparent); }
    .auth-account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; font-weight: 900; }

    @media (max-width: 700px) {
      .auth-gate { padding: max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom)); }
      .auth-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 30px 30px 30px 10px; }
      .auth-visual { min-height: 190px; padding: 24px; }
      .auth-monogram { width: 118px; margin: 12px auto; }
      .auth-monogram strong { font-size: 2rem; }
      .auth-monogram span { bottom: 17px; font-size: .55rem; }
      .auth-visual-note { display: none; }
      .auth-content { padding: 31px 24px 29px; }
      .auth-title { font-size: clamp(2.35rem,12vw,3.35rem); }
      .auth-google-btn { min-height: 58px; }
      .auth-account-btn { width: 46px; padding: 0; justify-content: center; }
      .auth-account-name { display: none; }
    }

    @media (hover:hover) and (pointer:fine) { .motion-ready .poi-card.is-visible:hover { transform: translateY(-9px); } }

    @media (max-width: 1120px) {
      .container { width: min(100% - 36px,1420px); }
      .hero { min-height: 560px; }
      .hero-art { min-height: 560px; }
      .hero-stamp { left: 32%; }
      .stats-grid { grid-template-columns: 1.2fr 1fr 1fr; }
      .stat-budget { grid-column: 2 / 4; min-height: 110px; }
      .grid-container:not(.list-view) { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .widgets-grid { grid-template-columns: repeat(2,1fr); }
      .widget-box:last-child { grid-column: 1 / -1; }
    }
    @media (max-width: 820px) {
      .container { width: min(100% - 24px,1420px); }
      .topbar-inner { min-height: 70px; }
      .nav-links { display: none; }
      .brand-copy > strong { font-size: .74rem; }
      .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; border-radius: 30px 30px 30px 10px; }
      .hero-copy { padding: 42px 25px 22px; }
      .hero h1 span { font-size: clamp(3.25rem,17vw,6.2rem); }
      .hero h1 em { max-width: 330px; }
      .hero-art { min-height: 390px; }
      .hero-photo-main { width: 58%; height: 69%; right: 7%; top: 8%; }
      .hero-photo-side { width: 43%; height: 45%; left: 4%; bottom: 5%; }
      .hero-photo-mini { width: 28%; height: 26%; }
      .hero-stamp { width: 88px; left: 34%; top: 12%; }
      .hero-stamp strong { font-size: 1.6rem; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .stat-progress,.stat-budget { grid-column: auto; }
      .stat-card { min-height: 135px; padding: 20px; }
      .now-action { display: none; }
      .filter-top { grid-template-columns: 1fr auto; }
      .sort-select { grid-column: 1 / -1; }
      .filter-bottom { align-items: stretch; }
      .filter-group-left,.quick-actions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; scroll-snap-type: x proximity; }
      .filter-group-left::-webkit-scrollbar,.quick-actions::-webkit-scrollbar { display: none; }
      .btn-filter { flex: 0 0 auto; scroll-snap-align: start; }
      .section-head { align-items: flex-start; }
      .grid-container:not(.list-view) { grid-template-columns: 1fr; }
      .widgets-grid { grid-template-columns: 1fr; }
      .widget-box:last-child { grid-column: auto; }
      .grid-container.list-view .poi-card { display: flex; }
      .grid-container.list-view .poi-visual { min-height: 0; aspect-ratio: 16 / 10.6; }
      .widgets-grid .widget-box { min-height: 0; }
      .sync-widget { align-items: flex-start; }
      .smart-hub-head { align-items: flex-start; flex-direction: column; }
      .smart-hub-actions { justify-content: flex-start; }
      .smart-insights { grid-template-columns: 1fr; }
      .day-board { grid-template-columns: repeat(4,minmax(250px,1fr)); }
    }
    @media (max-width: 520px) {
      .top-actions .top-planner-btn,.theme-label { display: none; }
      .theme-toggle { width: 46px; padding: 0; }
      .brand-mark { width: 46px; height: 46px; }
      .hero-copy { padding: 36px 21px 20px; }
      .hero h1 { margin-top: 21px; }
      .hero h1 span { font-size: clamp(3.05rem,17vw,4.7rem); }
      .hero p { font-size: .92rem; }
      .hero-actions > * { flex: 1 1 150px; }
      .hero-proof { gap: 12px; }
      .hero-proof span { width: calc(50% - 6px); }
      .hero-art { min-height: 330px; }
      .hero-stamp { width: 76px; left: 35%; }
      .hero-ticker { display: none; }
      .stats-grid { gap: 10px; }
      .stat-card { min-height: 125px; padding: 17px; }
      .stat-value { font-size: 1.75rem; }
      .now-activity-box { align-items: flex-start; }
      .now-icon { width: 48px; height: 48px; flex-basis: 48px; }
      .meta-divider { display: none; }
      .now-activity-title { gap: 5px; }
      .now-activity-title > span:not(.live-dot) { width: 100%; }
      .map-container { height: 310px; }
      .filters-section { padding: 13px; }
      .filter-bottom { flex-direction: column; }
      .category-title { font-size: 2.5rem; }
      .section-head { flex-direction: column; margin-top: 46px; }
      .results-count { align-self: flex-start; }
      .card-body { padding: 19px; }
      .card-fields { grid-template-columns: 1fr; }
      .select-rating,.input-notes { grid-column: 1; }
      .card-actions { grid-template-columns: 1fr; }
      .total-expense-bar { min-height: 0; align-items: flex-start; flex-direction: column; }
      .sync-widget { padding: 24px 20px; }
      .sync-btns { width: 100%; display: grid; grid-template-columns: 1fr; }
      .smart-hub { padding: 21px; }
      .smart-hub-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
      .map-section .panel-head { align-items: flex-start; flex-direction: column; }
      .map-head-actions { width: 100%; justify-content: flex-start; }
      .smart-plan-bar { grid-template-columns: 1fr; }
      .budget-summary { grid-template-columns: 1fr; }
      .journal-entry { grid-template-columns: 1fr; }
      .journal-entry img { width: 100%; height: 180px; }
      .expense-summary-actions { width: 100%; align-items: flex-start; flex-direction: column; }
      .floating-planner { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
      .scroll-top { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); }
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-stamp,.live-dot { animation: none!important; }
      .motion-ready [data-reveal],.motion-ready .poi-card { opacity: 1!important; transform: none!important; }
      .hero-photo,.hero-photo img { transform: none!important; }
      .auth-google-btn { transition: none!important; }
      .offline-ready-badge[data-state="preparing"] .offline-ready-dot { animation: none!important; }
    }
    @media print {
      body::before,.hero-grid,.hero-stamp,.hero-ticker { display: none!important; }
    }

/* Amsterdam 51 v3: offline, reservations, live trip and custom places */
button, a, input, select, textarea { touch-action: manipulation; }

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  max-width: 190px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.connection-status::before { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--gold); }
.connection-status[data-state="connected"]::before { background: var(--success); }
.connection-status[data-state="offline"]::before { background: var(--accent); }
.connection-status[data-state="error"]::before { background: var(--danger); }
.connection-status[data-state="syncing"]::before { box-shadow: 0 0 0 4px color-mix(in srgb,var(--gold) 18%,transparent); }

.sync-copy { display: grid; gap: 8px; }
.offline-ready-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(4,24,52,.28);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.offline-ready-badge[hidden] { display: none; }
.offline-ready-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #f3ca64;
  box-shadow: 0 0 0 5px rgba(243,202,100,.14);
}
.offline-ready-badge[data-state="preparing"] .offline-ready-dot { animation: offline-ready-pulse 1.4s ease-in-out infinite; }
.offline-ready-badge[data-state="ready"] { background: rgba(12,91,74,.45); border-color: rgba(174,243,215,.38); }
.offline-ready-badge[data-state="ready"] .offline-ready-dot { background: #9ce6bd; box-shadow: 0 0 0 5px rgba(156,230,189,.14); }
.offline-ready-badge[data-state="error"] { background: rgba(115,40,44,.42); border-color: rgba(255,190,190,.35); }
.offline-ready-badge[data-state="error"] .offline-ready-dot { background: #ffc0c0; box-shadow: 0 0 0 5px rgba(255,192,192,.12); }
@keyframes offline-ready-pulse { 50% { opacity: .45; transform: scale(.78); } }

.feature-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}
.feature-card-actions button,
.form-actions button,
.booking-toolbar button,
.booking-actions button,
.booking-actions a {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.feature-card-actions button:first-child { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

.place-editor,
.booking-editor { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-grid .form-span { grid-column: 1 / -1; }
.place-editor label,
.booking-editor label { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 900; }
.place-editor input,
.place-editor select,
.place-editor textarea,
.booking-editor input,
.booking-editor select,
.booking-editor textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
}
.place-editor textarea,
.booking-editor textarea { min-height: 92px; resize: vertical; }
.place-editor input:focus,
.place-editor select:focus,
.place-editor textarea:focus,
.booking-editor input:focus,
.booking-editor select:focus,
.booking-editor textarea:focus { background: var(--surface); border-color: var(--brand); }
.form-error-summary { padding: 14px 16px; border: 1px solid color-mix(in srgb,var(--danger) 42%,var(--line)); border-radius: 14px; background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); }
.form-error-summary ul { margin: 8px 20px 0 0; }
.form-error-summary a { color: inherit; }
.map-picker-help { color: var(--muted); font-size: .8rem; }
.place-picker-map { min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions .danger-action { color: var(--danger); background: color-mix(in srgb,var(--danger) 8%,var(--surface)); }

.booking-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.booking-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.booking-timeline { display: grid; gap: 12px; }
.booking-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.55fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); }
.booking-card.has-conflict { border-color: color-mix(in srgb,var(--danger) 46%,var(--line)); }
.booking-card h3 { margin: 4px 0; font-size: 1.05rem; }
.booking-card p { color: var(--muted); font-size: .78rem; }
.booking-status { color: var(--brand); font-size: .68rem; font-weight: 900; letter-spacing: .04em; }
.booking-conflicts { padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); font-size: .75rem; font-weight: 800; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-actions > * { display: inline-flex; align-items: center; justify-content: center; }
.feature-empty { padding: 36px 18px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.feature-empty strong { display: block; color: var(--ink); margin-bottom: 5px; }

.live-location-status { margin: 12px 0; color: var(--muted); font-size: .75rem; font-weight: 800; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-actions > button,
.trip-actions > a { min-height: 44px; padding: 9px 14px; }
.trip-alternatives { margin-top: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.trip-alternatives h3 { margin-bottom: 12px; font-size: .95rem; }
.trip-alternatives button { width: 100%; min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink); cursor: pointer; text-align: right; }
.trip-alternatives button span { color: var(--muted); font-size: .74rem; }

.offline-map-list { height: 100%; overflow: auto; padding: 22px; background: var(--surface-soft); }
.offline-map-list > strong { display: block; font-size: 1rem; }
.offline-map-list p { margin: 4px 0 14px; color: var(--muted); font-size: .8rem; }
.offline-map-list ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; list-style: none; }
.offline-map-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface); font-size: .73rem; }
.offline-map-list li span { color: var(--muted); direction: ltr; }
.leaflet-control-zoom a,
.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }

@media (max-width: 980px) {
  .connection-status { max-width: 120px; }
  .booking-card { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-span { grid-column: auto; }
  .place-picker-map { min-height: 260px; }
  .offline-map-list ul { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .connection-status { max-width: 98px; min-height: 32px; padding: 5px 9px; }
  .feature-card-actions { grid-template-columns: 1fr; }
  .form-actions,.booking-toolbar,.booking-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions > *, .booking-toolbar > *, .booking-actions > * { width: 100%; }
  .trip-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .trip-actions > * { width: 100%; }
  .trip-alternatives button { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .connection-status::before { box-shadow: none!important; }
}

/* Group expenses v4 */
.expense-workspace { display: grid; gap: 16px; }
.expense-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 19px; background: linear-gradient(125deg,var(--navy),#17477f); color: #fff; }
.expense-toolbar p { margin-top: 6px; color: rgba(255,255,255,.7); font-size: .75rem; }
.expense-toolbar .primary-btn { flex: 0 0 auto; }
.expense-sync-status { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 900; }
.expense-sync-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.expense-sync-status[data-state="connected"]::before { background: var(--success); }
.expense-sync-status[data-state="offline"]::before { background: var(--accent); }
.expense-sync-status[data-state="error"]::before { background: var(--danger); }
.expense-panel { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.expense-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.expense-panel-head h3 { margin-top: 3px; font-size: 1.08rem; }
.expense-panel-head > span { color: var(--muted); font-size: .72rem; font-weight: 900; }
.expense-kicker { color: var(--gold); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.expense-dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }

.participant-add-form { display: flex; align-items: end; gap: 8px; }
.participant-add-form label { flex: 1; display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 900; }
.participant-add-form input,
.participant-add-form button,
.expense-filters input,
.expense-filters select,
.expense-filters button,
.expense-budget-editor input,
.expense-budget-editor button { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; background: var(--surface-soft); color: var(--ink); font: inherit; }
.participant-add-form button,.expense-budget-editor button { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 900; cursor: pointer; }
.participant-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.participant-chips > span { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 3px 2px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .75rem; font-weight: 900; }
.participant-chips button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb,var(--brand) 12%,transparent); color: inherit; cursor: pointer; }

.expense-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.expense-summary-grid > div { padding: 13px; border-radius: 13px; background: var(--surface-soft); }
.expense-summary-grid span { display: block; color: var(--muted); font-size: .68rem; }
.expense-summary-grid strong { display: block; margin-top: 5px; font-size: 1.18rem; }
.expense-budget-meter { height: 10px; margin: 13px 0 8px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.expense-budget-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--success),var(--brand)); transition: width .3s ease; }
.expense-budget.is-near .expense-budget-meter i { background: linear-gradient(90deg,var(--gold),var(--accent)); }
.expense-budget.is-over { border-color: color-mix(in srgb,var(--danger) 48%,var(--line)); }
.expense-budget.is-over .expense-budget-meter i { background: var(--danger); }
.expense-warning { margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); font-size: .74rem; font-weight: 800; }
.expense-budget-editor { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.expense-budget-editor summary { min-height: 44px; display: flex; align-items: center; color: var(--brand); font-size: .76rem; font-weight: 900; cursor: pointer; }
.expense-budget-editor form { display: grid; gap: 10px; padding-top: 8px; }
.expense-budget-editor label { display: grid; gap: 5px; color: var(--muted); font-size: .68rem; font-weight: 900; }
.category-budget-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.category-actuals { display: grid; gap: 8px; margin-top: 14px; }
.category-actual > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .69rem; font-weight: 800; }
.category-actual > i { display: block; height: 6px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.category-actual > i b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

.balance-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.balance-person { display: grid; gap: 4px; padding: 12px; border-radius: 13px; background: var(--surface-soft); }
.balance-person strong { font-size: .82rem; }
.balance-person span { color: var(--muted); font-size: .68rem; }
.balance-person b { margin-top: 3px; font-size: .72rem; }
.balance-person b.positive { color: var(--success); }
.balance-person b.negative { color: var(--danger); }
.transfer-list { margin-top: 15px; padding: 14px; border-radius: 14px; background: var(--brand-soft); }
.transfer-list h4 { font-size: .82rem; }
.transfer-list ul { display: grid; gap: 7px; margin: 9px 18px 0 0; }
.transfer-list li,.transfer-list p { color: var(--muted); font-size: .73rem; }
.transfer-list strong { color: var(--ink); }
.expense-legacy-note { padding: 12px 14px; border: 1px solid color-mix(in srgb,var(--gold) 36%,var(--line)); border-radius: 13px; background: color-mix(in srgb,var(--gold) 8%,var(--surface)); color: var(--muted); font-size: .73rem; }

.expense-filters { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)) auto; gap: 8px; margin-bottom: 14px; }
.expense-filters label { display: grid; gap: 4px; color: var(--muted); font-size: .65rem; font-weight: 900; }
.expense-filters button { align-self: end; cursor: pointer; font-weight: 900; }
.group-expense-list { display: grid; gap: 10px; }
.group-expense-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,.45fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.expense-card-main { min-width: 0; display: grid; gap: 3px; border: 0; background: transparent; color: var(--ink); text-align: right; cursor: pointer; }
.expense-card-main strong { overflow-wrap: anywhere; font-size: .9rem; }
.expense-card-main > span:not(.expense-category),.expense-card-main small { color: var(--muted); font-size: .68rem; }
.expense-category { width: fit-content; padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .6rem; font-weight: 900; }
.expense-card-amount { display: grid; gap: 3px; text-align: left; direction: rtl; }
.expense-card-amount strong { font-size: 1rem; }
.expense-card-amount span { color: var(--muted); font-size: .65rem; }
.expense-card-actions { display: flex; gap: 6px; }
.expense-card-actions button { min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 900; cursor: pointer; }
.expense-card-actions .danger-action { color: var(--danger); }

.expense-editor { display: grid; gap: 18px; }
.expense-editor label { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 900; }
.expense-editor input,.expense-editor select,.expense-editor textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink); font: inherit; }
.expense-editor textarea { min-height: 92px; resize: vertical; }
.expense-editor input:focus,.expense-editor select:focus,.expense-editor textarea:focus { border-color: var(--brand); background: var(--surface); }
.expense-participant-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.expense-participant-picker legend { padding: 0 5px; color: var(--muted); font-size: .72rem; font-weight: 900; }
.expense-participant-picker label { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.expense-participant-picker input { width: 20px; min-height: 20px; accent-color: var(--brand); }
.expense-rate-note { padding: 11px 13px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: .72rem; }
.expense-rate-note.is-error { background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); }
.expense-detail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.expense-detail > div { display: grid; gap: 5px; padding: 14px; border-radius: 13px; background: var(--surface-soft); }
.expense-detail .wide { grid-column: 1 / -1; }
.expense-detail span,.expense-detail small { color: var(--muted); font-size: .68rem; }
.expense-detail .expense-audit { padding: 9px 12px; }

@media (max-width: 980px) {
  .expense-dashboard-grid { grid-template-columns: 1fr; }
  .expense-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .group-expense-card { grid-template-columns: minmax(0,1fr) auto; }
  .expense-card-actions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .expense-toolbar { align-items: stretch; flex-direction: column; }
  .expense-toolbar .primary-btn { width: 100%; }
  .expense-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .group-expense-card { grid-template-columns: 1fr; }
  .expense-card-amount { text-align: right; }
  .expense-card-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .expense-panel { padding: 14px; }
  .participant-add-form { align-items: stretch; flex-direction: column; }
  .participant-add-form button { width: 100%; }
  .expense-summary-grid,.balance-people,.category-budget-grid,.expense-filters,.expense-detail { grid-template-columns: 1fr; }
  .expense-detail .wide { grid-column: auto; }
  .expense-card-actions { grid-template-columns: 1fr; }
  .expense-card-actions button { width: 100%; }
  .expense-participant-picker { display: grid; grid-template-columns: 1fr; }
}
