/* Travel Time — antique atlas styling */
:root {
  --paper: #F0E6D0;
  --paper-hi: #FAF5E9;
  --paper-lo: #E5D7BA;
  --ink: #2A2017;
  --ink-2: #4A3B2B;
  --ink-3: #6E5B46;
  --ink-4: #8F7C64;
  --rule: rgba(92, 68, 40, .22);
  --rule-2: rgba(92, 68, 40, .42);
  --claret: #8A2E23;
  --green: #2F5E3E;
  --gold: #A9792A;
  --f-display: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  --f-text: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 48px -22px rgba(58,38,14,.5), 0 3px 10px -2px rgba(58,38,14,.16);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.75) inset, 0 6px 16px -8px rgba(58,38,14,.45), 0 1px 3px rgba(58,38,14,.12);
  --panel-w: min(460px, 40vw);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
  overflow: hidden;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--claret); text-decoration-thickness: 1px; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icon circle[r="1.1"], .icon circle[r=".9"], .icon circle[r=".7"] { fill: currentColor; }
:focus-visible { outline: 2px solid var(--claret); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: .88em; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper-hi); padding: 8px 14px; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; font-size: 20px; }

/* ------------------------------------------------------------ map */
.map-wrap {
  position: fixed; inset: 0; overflow: hidden;
  touch-action: none; cursor: grab;
  background:
    radial-gradient(120% 90% at 50% 45%, #F2E9D5 0%, #EADDC2 60%, #DDCBA6 100%);
}
.map-wrap:active { cursor: grabbing; }
.map-base, .map-pins { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-base { z-index: 1; }
.compass { position: absolute; z-index: 2; right: 40px; bottom: 150px; width: 112px; pointer-events: none; opacity: .5; }
.paper {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: url(../img/paper.webp) repeat;
  background-size: 512px 512px;
  mix-blend-mode: multiply; opacity: .85;
}
.paper::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 58%, rgba(120, 84, 38, .16) 88%, rgba(100, 66, 26, .28) 100%);
}
.compass-rose { width: 100%; height: auto; display: block; overflow: visible; }
.cr-ring { fill: none; stroke: #4F3D2A; stroke-width: 1.4; }
.cr-ring.thin { stroke-width: .7; }
.cr-ring.hair { stroke-width: .5; stroke-dasharray: 1.5 2.5; }
.cr-ticks { fill: none; stroke: #4F3D2A; stroke-width: .8; }
.cr-dark { fill: #4F3D2A; }
.cr-light { fill: #F4ECDA; stroke: #4F3D2A; stroke-width: .8; stroke-linejoin: round; }
.cr-hub { fill: #F4ECDA; stroke: #4F3D2A; stroke-width: 1; }
.cr-hubdot { fill: var(--claret); }
.cr-n { font: 600 22px var(--f-display); fill: #4F3D2A; }
.map-pins { z-index: 4; pointer-events: none; overflow: visible; }
.map-pins .marker { pointer-events: auto; }
.map-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; pointer-events: none; font: italic 500 22px var(--f-display); color: var(--ink-3); transition: opacity .6s; }
.map-loading.done { opacity: 0; }

.world path { vector-effect: non-scaling-stroke; }
.ocean { stroke: none; }
.sphere-shadow { fill: none; stroke: rgba(82, 56, 24, .12); stroke-width: 16; }
.graticule { fill: none; stroke: #8E7552; stroke-opacity: .3; stroke-width: .55; }
.parallel { fill: none; stroke: #7E6444; stroke-width: .7; stroke-opacity: .42; }
.parallel.equator { stroke-opacity: .55; stroke-width: .85; }
.parallel.tropic { stroke-dasharray: 6 4; }
.parallel.polar { stroke-dasharray: 2 4; stroke-opacity: .35; }
.coast-halo { fill: none; stroke-linejoin: round; }
.coast-halo.h1 { stroke: #BCA67E; stroke-width: 11; stroke-opacity: .16; }
.coast-halo.h2 { stroke: #B29B72; stroke-width: 6; stroke-opacity: .22; }
.coast-halo.h3 { stroke: #9C845E; stroke-width: 2.6; stroke-opacity: .32; }
.countries path { stroke: none; }
.borders { fill: none; stroke: #866E50; stroke-width: .65; stroke-opacity: .85; stroke-linejoin: round; }
.coast { fill: none; stroke: #5F4C35; stroke-width: .8; stroke-opacity: .9; stroke-linejoin: round; }
.states { fill: none; stroke: #866E50; stroke-width: .5; stroke-linejoin: round; }
.sphere-edge { fill: none; stroke: #4F3D2A; stroke-width: 1.3; }
.sphere-edge.outer { stroke-width: 5; stroke-opacity: .1; }

.lbl { font-family: var(--f-display); fill: #4A3926; pointer-events: none; user-select: none; -webkit-user-select: none;
  paint-order: stroke; stroke: rgba(240, 230, 208, .7); stroke-width: 2.6px; stroke-linejoin: round; }
.lbl-country { font-weight: 600; fill-opacity: .74; }
.lbl-state { font-family: var(--f-text); font-style: italic; font-weight: 400; fill: #5E4B36; fill-opacity: .85; }
.lbl-ocean { font-style: italic; font-weight: 500; fill: #735C40; fill-opacity: .72; stroke: none; }
.lbl-ocean.small { font-weight: 500; fill-opacity: .66; }
.lbl-line { font-family: var(--f-text); font-style: italic; font-size: 10px; fill: #7E6444; fill-opacity: .7; stroke: none; }

/* pins */
.marker { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.marker .pin-body, .marker .pin-shadow, .marker .needle-shadow { transition: transform .2s var(--ease), opacity .2s; }
.marker .pin-shadow, .marker .cl-base { transform-box: fill-box; transform-origin: center; }
.marker:hover .pin-body { transform: translate(0, -2px); }
.marker:hover .pin-shadow { transform: translate(1.5px, 1px) scale(1.12); opacity: .85; }
.needle { stroke: #8D8780; stroke-width: 1.35; stroke-linecap: round; }
.needle-shadow { stroke: rgba(52, 34, 16, .26); stroke-width: 1.3; stroke-linecap: round; }
.head { stroke-width: .7; }
.glint { fill: #fff; opacity: .78; }
.head.ring { fill: #FBF6EA; stroke-width: 2.6; }
.cl-tent { fill: none; stroke: var(--ink-2, #5B4630); stroke-width: 1.6; stroke-dasharray: 2.6 2.1; }
.head.tentative { fill: rgba(251,246,234,.55); stroke-width: 2; stroke-dasharray: 2.6 2.1; }
.tag-tent { background: transparent; color: var(--ink-2); border: 1.5px dashed currentColor; }
.halo { fill: none; stroke-width: 1.15; stroke-dasharray: 2.3 2.5; opacity: .85; animation: tt-spin 18s linear infinite; }
.hit { fill: transparent; }
.focus-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2.5; opacity: 0; }
.marker:focus-visible .focus-ring { opacity: 1; }
.sel-ring { fill: none; stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.marker.is-selected .sel-ring { animation: tt-pulse 1.8s var(--ease) infinite; }
.marker.is-selected .pin-body { transform: translate(0, -3px) scale(1.2); }
.marker.is-selected .pin-shadow { transform: translate(2px, 1.5px) scale(1.2); opacity: .8; }
.flag-staff { stroke: #3B2E22; stroke-width: 1.3; stroke-linecap: round; }
.flag-cloth { stroke-width: .8; stroke-linejoin: round; }
.flag-sheen { fill: #fff; opacity: .3; }
.flag-finial { fill: #C49A3E; stroke: #7A5A1C; stroke-width: .5; }
.cl-rim { fill: none; stroke: #4A3A2A; stroke-width: 1; }
.cl-count { font: 700 13.5px var(--f-display); fill: var(--ink); pointer-events: none; }
.cluster.has-selected .cl-rim { stroke: var(--claret); stroke-width: 2; }
.cluster:hover .pin-body { transform: scale(1.08); }
.spider-leg { stroke: #5B4630; stroke-width: 1; stroke-dasharray: 2 2.5; opacity: .7; }
.spider-hub { fill: #5B4630; }
.home-ring { fill: #FBF6EA; stroke: #4F3D2A; stroke-width: 1.2; }
.home-dot { fill: var(--claret); }
.home-label { font: italic 500 12px var(--f-text); fill: #4F3D2A; paint-order: stroke; stroke: rgba(240, 230, 208, .85); stroke-width: 3px; }
.marker.drop .pin-body { animation: tt-drop .6s cubic-bezier(.25, .9, .35, 1.25) backwards; animation-delay: var(--d, 0ms); }
.marker.drop .pin-shadow, .marker.drop .needle-shadow { animation: tt-fade .6s ease backwards; animation-delay: calc(var(--d, 0ms) + 120ms); }
@keyframes tt-drop { from { transform: translate(-6px, -30px); opacity: 0; } 60% { opacity: 1; } }
@keyframes tt-fade { from { opacity: 0; } }
@keyframes tt-spin { to { transform: rotate(360deg); } }
@keyframes tt-pulse { 0% { opacity: .75; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.4); } }

.map-tip {
  position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px)) translateY(4px);
  background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 4px;
  padding: 6px 11px 7px; box-shadow: var(--shadow-sm); white-space: nowrap;
  opacity: 0; transition: opacity .15s, transform .15s var(--ease);
  display: flex; flex-direction: column; line-height: 1.2;
}
.map-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 8px)); }
.map-tip strong { font: 600 17px var(--f-display); }
.map-tip span { font-size: 13px; font-style: italic; color: var(--ink-3); }
.map-tip span:empty { display: none; }

/* ------------------------------------------------------------ chrome: masthead */
.masthead {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  padding: calc(18px + var(--sat)) 26px 34px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(240, 230, 208, .94) 0%, rgba(240, 230, 208, .72) 55%, rgba(240, 230, 208, 0) 100%);
}
.masthead > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-title { font: 600 40px/0.95 var(--f-display); letter-spacing: .005em; }
.brand-title em { font-style: italic; font-weight: 500; color: var(--claret); }
.brand-sub { margin-top: 7px; font: 500 11.5px var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.brand-sub::after { content: ""; width: 46px; height: 1px; background: var(--rule-2); }
.actions { display: flex; align-items: center; gap: 8px; position: relative; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px;
  padding: 7px 15px 8px; border-radius: 4px;
  border: 1px solid rgba(74, 59, 43, .38);
  background: linear-gradient(#FBF7EC, #F1E7D2);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px; letter-spacing: .01em; color: var(--ink); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: linear-gradient(#FFFCF4, #F6EDDA); border-color: rgba(74, 59, 43, .6); }
.btn:active { transform: translateY(1px); }
.btn .icon { color: var(--claret); }
.btn-quiet { background: rgba(250, 245, 233, .55); box-shadow: none; border-color: transparent; }
.btn-quiet:hover { background: rgba(250, 245, 233, .9); border-color: var(--rule-2); }
.btn-quiet .icon { color: var(--ink-2); }
.btn-primary { background: linear-gradient(#3A2C1F, #261C13); color: #F7F0E0; border-color: #1C140D; }
.btn-primary:hover { background: linear-gradient(#45352586, #2E2218); background: #3A2C1F; border-color: #000; }
.btn-primary .icon { color: #E6C98E; }
.btn-danger { color: var(--claret); }
.btn-danger:hover { border-color: var(--claret); }
.btn-sm { min-height: 32px; padding: 4px 11px 5px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.dash { color: var(--ink-4); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--claret); color: #FFF7EC; font: 600 12px/1 var(--f-text); font-feature-settings: "lnum"; }
.btn-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(74, 59, 43, .3); background: linear-gradient(#FBF7EC, #F1E7D2); box-shadow: var(--shadow-sm);
  color: var(--ink-2);
}
.btn-icon:hover { border-color: rgba(74, 59, 43, .6); color: var(--ink); }
.btn-icon .icon { width: 20px; height: 20px; }
.menu-toggle { display: none; position: relative; }
.menu-toggle .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--claret); border: 2px solid var(--paper-hi); }
.link { background: none; border: 0; padding: 0; color: var(--claret); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }

.account-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.account-who { margin: 6px 10px 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 4px; text-align: left; font-size: 16px; }
.account-menu button:hover, .account-menu button:focus-visible { background: rgba(92, 68, 40, .08); }
.account-menu .badge { margin-left: auto; }

/* ------------------------------------------------------------ stats cartouche */
.stats {
  position: fixed; z-index: 15; left: 50%; bottom: calc(22px + var(--sab)); transform: translateX(-50%);
  background: var(--paper-hi) url(../img/paper.webp); background-size: 512px;
  border: 1px solid var(--rule-2); border-radius: 3px;
  box-shadow: 0 0 0 4px var(--paper-hi), 0 0 0 5px var(--rule-2), var(--shadow);
  padding: 10px 30px 11px;
  transition: transform .35s var(--ease), left .35s var(--ease);
  text-align: center;
}
.stats-inner { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.stat .num { font: 600 32px/1 var(--f-display); color: var(--ink); font-feature-settings: "lnum"; letter-spacing: .01em; }
.stat .lbl { margin-top: 4px; font: 500 10.5px var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sep { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--rule-2); flex: none; }
.stats-note { margin: 4px 0 0; font: italic 13.5px var(--f-text); color: var(--ink-3); }
.stats-empty { margin: 0; font: italic 500 20px var(--f-display); color: var(--ink-2); white-space: nowrap; }
.stats-empty .orn { color: var(--claret); font-style: normal; margin-right: 6px; }

/* ------------------------------------------------------------ key */
.key {
  position: fixed; z-index: 15; left: 22px; bottom: calc(22px + var(--sab));
  width: 250px; background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow);
  transition: opacity .25s, transform .35s var(--ease);
}
.key-toggle { display: none; }
.key-body { padding: 14px 14px 12px; }
.key-title { margin: 0 4px 8px; font: 600 21px var(--f-display); display: flex; align-items: baseline; justify-content: space-between; }
.key-title span { font: italic 13px var(--f-text); color: var(--ink-3); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.chip {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 6px; border: 0; border-radius: 4px; background: none; text-align: left;
  font-size: 15.5px; color: var(--ink); transition: background .15s, opacity .15s;
}
.chip:hover { background: rgba(92, 68, 40, .07); }
.swatch {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 28%, white) 0, var(--c) 52%, color-mix(in srgb, var(--c) 55%, black) 100%);
  box-shadow: 2px 2px 2.5px rgba(52, 34, 16, .32), inset 0 0 0 .5px rgba(0, 0, 0, .25);
}
.chip.metal .swatch { background: radial-gradient(circle at 34% 30%, #fff 0, #D5DADF 22%, var(--c) 58%, #5E656C 100%); }
.chip-label { flex: 1; }
.chip-n { font-size: 13.5px; color: var(--ink-3); font-feature-settings: "lnum"; }
.chip:not(.on) { opacity: .5; }
.chip:not(.on) .swatch { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.chip:not(.on) .chip-label { text-decoration: line-through; text-decoration-color: var(--rule-2); }
.chip-all { padding: 4px 6px 0; font-size: 14px; }
.key-styles { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.key-style { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); padding: 2px 4px; }
.key-sub { display: block; font-size: 12px; color: var(--ink-3, #7a6a58); line-height: 1.2; }
.kpin { width: 22px; height: 24px; flex: none; overflow: visible; }
.key-switch { cursor: pointer; position: relative; }
.key-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.key-switch .switch { margin-left: auto; width: 34px; height: 19px; border-radius: 10px; background: rgba(92, 68, 40, .25); position: relative; transition: background .2s; }
.key-switch .switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #FFFDF7; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.key-switch input:checked + .switch { background: var(--ink-2); }
.key-switch input:checked + .switch::after { transform: translateX(15px); }
.key-switch input:focus-visible + .switch { outline: 2px solid var(--claret); outline-offset: 2px; }

/* ------------------------------------------------------------ zoom */
.zoom { position: fixed; z-index: 15; right: 22px; bottom: calc(22px + var(--sab)); display: flex; flex-direction: column; gap: 8px; transition: right .35s var(--ease); }
body.panel-open .zoom { right: calc(var(--panel-w) + 40px); }
body.panel-open .compass { opacity: 0; }
body.panel-open .stats { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }
.stats { transition: transform .35s var(--ease), opacity .3s; }
.compass { transition: opacity .3s; }
body.timeline-open .key { opacity: 0; pointer-events: none; transform: translateX(-20px); }

/* ------------------------------------------------------------ panel */
.panel {
  position: fixed; z-index: 25; top: 84px; right: 14px; bottom: 14px; width: var(--panel-w);
  background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: var(--shadow);
  transform: translateX(calc(100% + 30px)); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow: hidden; outline: none;
}
.panel.open { transform: none; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.panel-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.sheet-handle { display: none; }
.trip { padding-bottom: 6px; }
.tp-cover { margin: 0; position: relative; }
.tp-cover-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tp-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.tp-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--paper-hi)); pointer-events: none; }
.tp-band { height: 74px; background:
  linear-gradient(var(--c), var(--c)) top / 100% 4px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(92, 68, 40, .1) 39px 40px),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(92, 68, 40, .1) 39px 40px),
  linear-gradient(to bottom, rgba(234, 222, 196, .9), var(--paper-hi)); }
.panel.metal .tp-band { background-color: #CDD2D7; }
.tp-head { padding: 0 30px 4px; margin-top: -26px; position: relative; }
.tp-cover + .tp-head { margin-top: -34px; }
.tp-eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 12px var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.gdot { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 30%, white), var(--c) 52%, color-mix(in srgb, var(--c) 55%, black)); box-shadow: 1.5px 1.5px 2px rgba(52, 34, 16, .3); }
.tag { display: inline-block; padding: 2px 8px 2px; border-radius: 20px; font: 600 10.5px/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; }
.tag-up { color: var(--claret); background: rgba(138, 46, 35, .06); }
.tag-next { color: var(--claret); } .tag-soon { color: var(--gold); } .tag-someday { color: var(--ink-3); }
.tp-title { margin: 8px 0 6px; font: 600 38px/1.02 var(--f-display); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; outline: none; padding-right: 30px; }
.tp-dates { margin: 0; font: italic 18px var(--f-text); color: var(--ink-2); }
.tp-place { margin: 4px 0 0; color: var(--ink-3); font-size: 15.5px; display: flex; gap: 6px; align-items: baseline; }
.tp-place .icon { color: var(--claret); }
.stars { display: inline-flex; gap: 1px; line-height: 1; white-space: nowrap; }
.stars .on { color: var(--gold); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.stars .off { color: rgba(92, 68, 40, .2); }
.tp-stars { margin-top: 10px; font-size: 22px; letter-spacing: 2px; }
.stars.sm { font-size: 14px; } .stars.xs { font-size: 11px; }
.tp-facts { margin: 18px 30px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px 18px; }
.tp-facts dt { font: 500 10.5px var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.tp-facts dd { margin: 0; font-size: 16px; }
.people { display: flex; flex-wrap: wrap; gap: 4px; }
.person { padding: 0 9px 1px; border: 1px solid var(--rule-2); border-radius: 20px; font-size: 14.5px; background: rgba(255, 255, 255, .4); }
.person.guest { border-style: dashed; }
.transport { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tr { display: inline-flex; align-items: center; gap: 5px; }
.tr .icon { color: var(--ink-3); }
.miles { font: 600 24px/1 var(--f-display); font-feature-settings: "lnum"; }
.miles-note { display: block; font-size: 13px; font-style: italic; color: var(--ink-3); margin-top: 2px; }
.tp-sec { padding: 0 30px; margin-top: 24px; }
.tp-h { margin: 0 0 10px; display: flex; align-items: center; gap: 12px; font: 600 11.5px var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.tp-h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.tp-text { font-size: 17px; line-height: 1.58; color: var(--ink-2); }
.tp-text p { margin: 0 0 .6em; } .tp-text p:last-child { margin-bottom: 0; }
.tp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tp-pair .tp-sec:only-child { grid-column: 1 / -1; }
.tp-pair .tp-sec + .tp-sec { padding-left: 14px; border-left: 1px solid var(--rule); margin-left: -16px; }
.liked .tp-h { color: var(--green); } .hated .tp-h { color: var(--claret); }
.route { list-style: none; margin: 0; padding: 0 0 0 4px; }
.route li { position: relative; padding: 0 0 12px 22px; display: flex; flex-direction: column; line-height: 1.25; }
.route li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--paper-hi); z-index: 1; }
.route li::after { content: ""; position: absolute; left: 4.5px; top: 12px; bottom: -4px; border-left: 1.5px dotted var(--rule-2); }
.route li:last-child { padding-bottom: 0; } .route li:last-child::after { display: none; }
.route li.primary::before { background: var(--c); border-color: color-mix(in srgb, var(--c) 60%, black); }
.route li.home span { font-style: italic; color: var(--ink-3); }
.route span { font-size: 16.5px; }
.route small { font-size: 13.5px; color: var(--ink-3); }
.route small:empty { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 5px; background: rgba(255, 255, 255, .38); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-name { font: 600 19px/1.15 var(--f-display); color: var(--ink); text-decoration: none; }
a.card-name:hover { color: var(--claret); text-decoration: underline; }
.card-name .ext { width: 13px; height: 13px; margin-left: 4px; color: var(--ink-4); vertical-align: 0; }
.card-sub { display: block; font: italic 14.5px var(--f-text); color: var(--ink-3); }
.type { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid var(--rule-2); border-radius: 3px; font: 500 10.5px/1.6 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); vertical-align: 2px; }
.badge-again { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 1px 8px 2px; border-radius: 20px; font: 500 11px var(--f-text); letter-spacing: .12em; text-transform: uppercase; }
.badge-again.yes { color: var(--green); background: rgba(47, 94, 62, .08); border: 1px solid rgba(47, 94, 62, .35); }
.badge-again.no { color: var(--claret); background: rgba(138, 46, 35, .05); border: 1px solid rgba(138, 46, 35, .3); }
.card-notes { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.card-notes p { margin: 0 0 .4em; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; border-radius: 3px; overflow: hidden; aspect-ratio: 1; background: var(--paper-lo); cursor: zoom-in; box-shadow: 0 1px 3px rgba(58, 38, 14, .2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.thumb:hover img { transform: scale(1.05); }
.tp-foot { margin: 28px 30px 22px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tp-foot p { margin: 0; font: italic 14.5px var(--f-text); color: var(--ink-3); }
.tp-admin { display: flex; gap: 6px; }
.tp-band.flag { background:
  linear-gradient(var(--c), var(--c)) top / 100% 4px no-repeat,
  repeating-linear-gradient(-45deg, transparent 0 9px, rgba(92, 68, 40, .07) 9px 10px),
  linear-gradient(to bottom, rgba(234, 222, 196, .9), var(--paper-hi)); }

/* ------------------------------------------------------------ timeline drawer */
.drawer {
  position: fixed; z-index: 24; top: 96px; left: 14px; bottom: 14px; width: min(390px, 34vw);
  background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: var(--shadow);
  transform: translateX(calc(-100% - 30px)); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow: hidden; outline: none;
}
.drawer.open { transform: none; }
.drawer-head { padding: 20px 24px 0; position: relative; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { margin: 0; font: 600 32px/1 var(--f-display); outline: none; }
.drawer-head .btn-icon { position: absolute; top: 14px; right: 14px; }
.tabs { display: flex; gap: 22px; margin-top: 14px; }
.tabs [role=tab] { border: 0; background: none; padding: 8px 0 10px; font-size: 16px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--claret); }
.tabs [role=tab] span { font-size: 13.5px; color: var(--ink-4); font-feature-settings: "lnum"; }
.drawer-body { overflow-y: auto; flex: 1; padding: 6px 16px 24px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.tl-tools { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0; font-size: 14px; font-style: italic; }
.tl-tools .link { font-style: normal; }
.tl-year h3 { margin: 18px 8px 6px; display: flex; align-items: baseline; gap: 10px; }
.tl-year h3 span { font: 600 28px/1 var(--f-display); color: var(--ink); font-feature-settings: "lnum"; }
.tl-year h3 small { font: italic 14px var(--f-text); color: var(--ink-3); }
.tl-year h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); align-self: center; }
.tl-year.upcoming h3 span { color: var(--claret); font-style: italic; }
.tl-year ol { list-style: none; margin: 0; padding: 0; }
.tl-item { width: 100%; display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border: 0; border-radius: 5px; background: none; text-align: left; transition: background .15s; }
.tl-item:hover, .tl-item.current { background: rgba(92, 68, 40, .07); }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 30%, white), var(--c) 52%, color-mix(in srgb, var(--c) 55%, black)); box-shadow: 1.5px 1.5px 2px rgba(52, 34, 16, .3); }
.tl-dot.metal { background: radial-gradient(circle at 34% 30%, #fff, #D5DADF 22%, var(--c) 58%, #5E656C); }
.tl-dot.ring { background: var(--paper-hi); box-shadow: inset 0 0 0 2.5px var(--c); }
.tl-flag { color: var(--c, var(--gold)); width: 16px; height: 16px; }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-main strong { font: 600 19px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-place { font: italic 14px var(--f-text); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tl-date { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; font-feature-settings: "lnum"; }
.tl-year.done .tl-main strong { text-decoration: line-through; text-decoration-color: var(--rule-2); color: var(--ink-3); }
.empty { text-align: center; padding: 50px 20px; }
.empty-orn { font-size: 30px; color: var(--claret); margin: 0; }
.empty-title { font: italic 500 23px var(--f-display); margin: 6px 0 4px; }

/* ------------------------------------------------------------ lightbox, toast, mobile menu */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(26, 18, 10, .93); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; transition: opacity .22s; }
.lightbox.open { opacity: 1; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 56px 0 20px; grid-column: 2; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border: 6px solid #F7F0E0; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.lb-figure img.ready { opacity: 1; }
.lb-figure figcaption { margin-top: 12px; color: #E9DFC8; font: italic 16px var(--f-text); text-align: center; max-width: 70ch; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev { grid-column: 1; justify-self: center; } .lb-next { grid-column: 3; justify-self: center; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(110px + var(--sab)); transform: translate(-50%, 16px); background: var(--ink); color: #F7F0E0; padding: 10px 18px; border-radius: 5px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); font-size: 15.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #6E2119; }
.mobile-menu { position: fixed; z-index: 30; top: calc(64px + var(--sat)); right: 12px; width: min(300px, calc(100vw - 24px)); background: var(--paper-hi); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; }
.mm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; background: none; border-radius: 5px; text-align: left; font-size: 17px; }
.mm-item:hover, .mm-item:focus-visible { background: rgba(92, 68, 40, .08); }
.mm-item .icon { color: var(--claret); width: 20px; height: 20px; }
.mm-item .badge { margin-left: auto; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .actions .btn span.dash, .btn .long { display: none; }
  .brand-title { font-size: 34px; }
}
@media (max-width: 980px) and (min-width: 760px) {
  #timeline-open span, #account .account-label { display: none; }
}
@media (max-width: 759px) {
  :root { --panel-w: 100vw; }
  body.panel-open .stats { opacity: 1; transform: none; pointer-events: auto; }
  body.panel-open .compass { opacity: .5; }
  .masthead { padding: calc(10px + var(--sat)) 14px 26px; align-items: center; }
  .brand-title { font-size: 29px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .26em; margin-top: 5px; }
  .brand-sub::after { width: 24px; }
  .actions { display: none; }
  .menu-toggle { display: inline-grid; }
  .stats { top: calc(64px + var(--sat)); bottom: auto; left: 12px; right: 12px; transform: none; padding: 7px 10px 7px; box-shadow: 0 0 0 3px var(--paper-hi), 0 0 0 4px var(--rule-2), var(--shadow-sm); }
  body.panel-open .stats { left: 12px; }
  .stats-inner { gap: 6px; justify-content: space-between; }
  .stat { min-width: 0; flex: 1; }
  .stat .num { font-size: 22px; }
  .stat .lbl { font-size: 8.5px; letter-spacing: .14em; }
  .sep { width: 5px; height: 5px; }
  .stats-note { font-size: 12px; margin-top: 2px; }
  .stats-empty { font-size: 16.5px; white-space: normal; }
  .compass { width: 76px; right: 18px; bottom: calc(80px + var(--sab)); opacity: .5; }
  body.panel-open .compass { right: 18px; }
  .key { left: 12px; bottom: calc(14px + var(--sab)); width: min(290px, calc(100vw - 80px)); }
  .key-toggle { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 14px; font-size: 16px; width: 100%; }
  .key-toggle .icon { color: var(--claret); }
  .key.collapsed { width: auto; border-radius: 22px; }
  .key.collapsed .key-body { display: none; }
  .key:not(.collapsed) .key-toggle { border-bottom: 1px solid var(--rule); }
  .key-title { display: none; }
  .key-body { padding: 8px 10px 10px; }
  .zoom { right: 12px; bottom: calc(14px + var(--sab)); gap: 6px; }
  .zoom .btn-icon { width: 42px; height: 42px; }
  body.panel-open .zoom { right: 12px; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 62dvh; border-radius: 16px 16px 0 0; border-bottom: 0; transform: translateY(105%); transition: transform .38s var(--ease), height .3s var(--ease); }
  .panel.expanded { height: calc(100dvh - 16px - var(--sat)); }
  .panel.open { transform: none; }
  .sheet-handle { display: flex; justify-content: center; padding: 8px 0 4px; position: absolute; top: 0; left: 0; right: 0; z-index: 3; cursor: grab; }
  .sheet-handle span { width: 42px; height: 5px; border-radius: 3px; background: rgba(74, 59, 43, .35); }
  .panel-close { top: 14px; right: 12px; width: 36px; height: 36px; }
  .tp-head, .tp-sec { padding-left: 20px; padding-right: 20px; }
  .tp-facts { margin-left: 20px; margin-right: 20px; }
  .tp-foot { margin-left: 20px; margin-right: 20px; }
  .tp-title { font-size: 32px; }
  .tp-band { height: 60px; }
  .tp-pair { grid-template-columns: 1fr; }
  .tp-pair .tp-sec + .tp-sec { padding-left: 20px; border-left: 0; margin-left: 0; }
  .drawer { inset: 0; width: 100%; border-radius: 0; border: 0; transform: translateY(100%); padding-top: var(--sat); }
  .drawer.open { transform: none; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(20px + var(--sab)); }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lb-figure { padding: 60px 8px 80px; }
  .toast { bottom: calc(80px + var(--sab)); }
  .map-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================ signed-in tools (dialogs & forms) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dlg {
  padding: 0; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper-hi); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(40, 25, 8, .6), 0 6px 20px rgba(40, 25, 8, .2);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
}
.dlg:not([open]) { display: none; }
.dlg[open] { animation: tt-dlg .28s var(--ease); }
.dlg::backdrop { background: rgba(42, 28, 12, .42); backdrop-filter: blur(2px); }
@keyframes tt-dlg { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.dlg-sm { width: min(440px, calc(100vw - 32px)); }
.dlg-md { width: min(620px, calc(100vw - 32px)); }
.dlg-lg { width: min(800px, calc(100vw - 32px)); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(to bottom, rgba(234, 222, 196, .55), transparent); }
.dlg-head h2 { margin: 0; font: 600 30px/1.05 var(--f-display); }
.dlg-sub { margin: 6px 0 0; font: italic 15.5px var(--f-text); color: var(--ink-3); }
.dlg-x { flex: none; width: 36px; height: 36px; }
.dlg-body { padding: 8px 26px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--rule); background: rgba(234, 222, 196, .35); flex-wrap: wrap; }
.dlg-text { font-size: 17px; color: var(--ink-2); margin: 14px 0 4px; }
.dlg-note { font: italic 14.5px var(--f-text); color: var(--ink-3); margin: 14px 0 0; }
.btn-danger-solid { background: linear-gradient(#9B3528, #7D261C); color: #FFF5EA; border-color: #5E1A12; }
.btn-danger-solid:hover { background: #8A2E23; border-color: #4A130D; }

.form { display: block; }
.fsec { padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.fsec:last-child { border-bottom: 0; }
.fsec-h { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; font: 600 21px var(--f-display); color: var(--ink); list-style: none; }
.fsec-h small { font: italic 14px var(--f-text); color: var(--ink-3); }
.fdet > summary { cursor: pointer; margin-bottom: 0; padding: 2px 0 10px; }
.fdet > summary::-webkit-details-marker { display: none; }
.fdet > summary .chev { margin-left: auto; color: var(--ink-3); transition: transform .2s; align-self: center; }
.fdet[open] > summary .chev { transform: rotate(180deg); }
.fdet[open] > summary { margin-bottom: 8px; }
.field, .fgroup { margin: 0 0 14px; min-width: 0; }
.field > label, .flabel { display: block; margin-bottom: 5px; font: 500 12px var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.field > label .hint, .flabel .hint { text-transform: none; letter-spacing: 0; font-style: italic; font-size: 13.5px; margin-left: 6px; color: var(--ink-4); }
.req { color: var(--claret); }
.form input[type=text], .form input[type=search], .form input[type=password], .form input[type=date], .form input[type=url], .form input[type=number], .form select, .form textarea {
  width: 100%; padding: 9px 12px; font-size: 16.5px; line-height: 1.35; color: var(--ink);
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(74, 59, 43, .32); border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(58, 38, 14, .06); transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form textarea { resize: vertical; min-height: 72px; font-family: var(--f-text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink-2); background: #FFFDF8; box-shadow: 0 0 0 3px rgba(138, 46, 35, .14); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-4); font-style: italic; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--claret); }
.field-err { margin: 4px 0 0; font-size: 14px; color: var(--claret); min-height: 0; }
.field-err:empty { display: none; }
.form-err { color: var(--claret); margin: 0 0 8px; }
.form-err:empty { display: none; }
.hint-line { margin: 2px 0 10px; font: italic 14px var(--f-text); color: var(--ink-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-2 .span-2 { grid-column: 1 / -1; }

.seg { display: inline-flex; border: 1px solid rgba(74, 59, 43, .35); border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .5); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { padding: 8px 16px; font-size: 16px; cursor: pointer; border-right: 1px solid var(--rule); transition: background .15s, color .15s; }
.seg label:last-child { border-right: 0; }
.seg input:checked + label { background: var(--ink); color: #F7F0E0; }
.seg input:focus-visible + label { outline: 2px solid var(--claret); outline-offset: -3px; }

.ps-box { position: relative; }
.ps-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.form input.ps-input { padding-left: 38px; }
.ps-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #FFFDF7; border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; }
.ps-list li { padding: 8px 10px; border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.25; }
.ps-list li strong { font-weight: 500; font-size: 16.5px; }
.ps-list li span { font-size: 14px; color: var(--ink-3); font-style: italic; }
.ps-list li.active, .ps-list li:hover { background: rgba(138, 46, 35, .08); }
.ps-status { margin: 4px 0 0; font: italic 14px var(--f-text); color: var(--ink-3); }
.ps-status:empty { display: none; }
.ps-card { margin-top: 8px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, .35); padding: 10px 12px; }
.ps-chosen { display: flex; align-items: center; gap: 10px; }
.ps-chosen > .icon { color: var(--claret); width: 20px; height: 20px; }
.ps-chosen div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ps-chosen strong { font: 600 18px var(--f-display); }
.ps-chosen span { font-size: 14px; color: var(--ink-3); }
.ps-coords { font-size: 12.5px; color: var(--ink-4); font-feature-settings: "lnum", "tnum"; white-space: nowrap; }
.ps-adjust { margin-top: 8px; }
.ps-adjust summary { cursor: pointer; font-size: 14.5px; color: var(--claret); }
.ps-adjust[open] summary { margin-bottom: 10px; }
.mini-wrap { position: relative; }
.mini-map { width: 100%; height: auto; display: block; border-radius: 5px; border: 1px solid var(--rule-2); cursor: crosshair; touch-action: none; }
.mini-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.mm-sea { fill: #EEE4CD; }
.mm-grat { fill: none; stroke: #8E7552; stroke-opacity: .25; stroke-width: .6; }
.mm-land { fill: #E2CFAE; stroke: #5F4C35; stroke-width: .8; }
.mm-states { fill: none; stroke: #866E50; stroke-width: .6; stroke-dasharray: 3 2; }
.mm-pin { cursor: grab; outline: none; }
.mm-pin:focus-visible .mm-head { stroke: var(--claret); stroke-width: 2.5; }
.mm-shadow { fill: rgba(52, 34, 16, .3); }
.mm-needle { stroke: #8D8780; stroke-width: 1.5; stroke-linecap: round; }
.mm-head { fill: var(--claret); stroke: #4A130D; stroke-width: 1; }
.btn-icon.sm { width: 32px; height: 32px; }
.btn-icon.sm .icon { width: 16px; height: 16px; }
.btn-icon[disabled] { opacity: .35; cursor: default; }

.group-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.group-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.group-pick label { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 9px 11px; border: 1px solid rgba(74, 59, 43, .28); border-radius: 6px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.group-pick label .swatch { grid-row: 1 / 3; }
.group-pick label.metal .swatch { background: radial-gradient(circle at 34% 30%, #fff 0, #D5DADF 22%, var(--c) 58%, #5E656C 100%); }
.gp-name { font-size: 16px; line-height: 1.2; }
.gp-who { font-size: 12.5px; color: var(--ink-3); font-style: italic; line-height: 1.2; }
.group-pick label:hover { border-color: rgba(74, 59, 43, .5); }
.group-pick input:checked + label { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, #FFFDF7); box-shadow: inset 0 0 0 1px var(--c); }
.group-pick input:focus-visible + label { outline: 2px solid var(--claret); outline-offset: 2px; }
.toggles, .travelers { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 6px; border: 1px solid rgba(74, 59, 43, .3); border-radius: 20px; background: rgba(255, 255, 255, .45); font-size: 15.5px; transition: background .15s, color .15s, border-color .15s; }
.toggle[aria-pressed=true] { background: var(--ink); color: #F7F0E0; border-color: var(--ink); }
.toggle[aria-pressed=true] .icon { color: #E6C98E; }
.toggle .icon { color: var(--ink-3); }
.toggle.guest { padding-right: 4px; border-style: dashed; }
.toggle.guest[aria-pressed=true] { background: var(--ink-2); }
.toggle .x { border: 0; background: rgba(255, 255, 255, .15); color: inherit; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; }
.toggle .x .icon { width: 13px; height: 13px; color: inherit; }
.guest-add { display: flex; gap: 8px; margin-top: 8px; max-width: 380px; }
.star-input { display: inline-flex; align-items: center; gap: 0; }
.star-input button { border: 0; background: none; padding: 0 3px; font-size: 27px; line-height: 1; color: rgba(92, 68, 40, .22); transition: color .1s, transform .1s; }
.star-input button.on { color: var(--gold); }
.star-input button:hover { transform: scale(1.12); }
.star-input .star-clear { margin-left: 10px; font-size: 14px; }
.stops { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.stop { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; }
.stop .field { margin: 0; }
.stop .field > label { display: none; }
.st-n { width: 24px; height: 24px; margin-top: 9px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; font: 600 13px var(--f-display); font-feature-settings: "lnum"; color: var(--ink-2); }
.st-ctl { display: flex; gap: 4px; margin-top: 4px; }
.repeat { display: grid; gap: 10px; margin-bottom: 10px; }
.rep-item { position: relative; margin: 0; padding: 14px 52px 2px 14px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, .3); min-width: 0; }
.rep-x { position: absolute; top: 10px; right: 10px; }
.dropzone { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px dashed rgba(74, 59, 43, .4); border-radius: 8px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .15s, border-color .15s; font-size: 15.5px; color: var(--ink-2); }
.dropzone .icon { width: 28px; height: 28px; color: var(--claret); }
.dropzone:hover, .dropzone.over { background: rgba(255, 255, 255, .7); border-color: var(--ink-2); }
input[type=file]:focus-visible + .dropzone { outline: 2px solid var(--claret); outline-offset: 2px; }
.photo-msg { font-size: 14.5px; color: var(--ink-3); margin: 8px 0; }
.photo-msg:empty { display: none; }
.photo-msg.err { color: var(--claret); }
.photo-edit { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { position: relative; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .45); display: flex; flex-direction: column; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ph .form input, .ph input[type=text] { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 6px 8px; font-size: 14.5px; background: transparent; width: 100%; }
.ph-ctl { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 8px; }
.ph-cover { display: inline-flex; gap: 5px; align-items: center; font-size: 14px; }
.ph-new { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--ink); color: #F7F0E0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.progress { position: relative; flex: 1; min-width: 160px; height: 30px; border-radius: 5px; background: rgba(92, 68, 40, .1); overflow: hidden; margin-right: auto; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(138, 46, 35, .25), rgba(138, 46, 35, .4)); transition: width .2s; }
.progress .label { position: relative; display: block; padding: 4px 10px; font-size: 14px; font-style: italic; }
.pending-list { display: grid; gap: 10px; padding-top: 12px; }
.pend { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 6px; background: rgba(255, 255, 255, .4); }
.pend h3 { margin: 4px 0 2px; font: 600 22px var(--f-display); }
.pend-meta { margin: 0; font-style: italic; color: var(--ink-2); }
.pend-notes { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.pend-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
/* Unset group (pending only): neutral gray, Confirm blocked until a group is picked */
.pend-main { min-width: 0; flex: 1; }
.pend-unset { background: repeating-linear-gradient(135deg, rgba(138, 138, 138, .07) 0 10px, rgba(255, 255, 255, .35) 10px 20px); }
.pend-unset .tp-eyebrow { color: #5F5F5F; }
.pend-block { margin: 8px 0 0; font-size: 15px; color: #4F4F4F; }
.btn.is-blocked, .btn.is-blocked:hover { background: #CFCAC0; border-color: #B5AFA4; color: #6A645B; cursor: not-allowed; box-shadow: none; }
.btn.is-blocked .icon { color: #8A8478; }
.unset-note { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 8px 12px; border: 1px dashed #8A8A8A; border-radius: 6px; background: rgba(138, 138, 138, .1); color: #3F3F3F; font-size: 15px; }
/* Private review notes (catalog evidence, open questions) on pending cards and in the edit dialog */
.review { margin: 10px 0 0; padding: 8px 12px 10px; border: 1px solid rgba(92, 68, 40, .18); border-radius: 6px; background: rgba(250, 245, 233, .75); font-size: 14px; color: var(--ink-2); }
.review:not(.compact) { margin: 0 0 14px; font-size: 15px; }
.rv-head { margin: 0 0 4px; font: 600 11px var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.rv-head small { font-weight: 500; letter-spacing: .08em; text-transform: none; font-style: italic; font-size: 12px; }
.rv-flag { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 6px; padding: 4px 8px; border-radius: 4px; background: rgba(176, 120, 30, .14); color: #5A3A0C; font-weight: 600; }
.rv-flag .icon { flex: none; margin-top: 3px; color: #A26A12; }
.rv-flag.rv-unset { background: rgba(110, 110, 110, .15); color: #333; }
.rv-flag.rv-unset .icon { color: #6A6A6A; }
.rv-list { display: grid; gap: 2px; margin: 0; }
.rv-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.rv-row dt { color: var(--ink-3); font-style: italic; }
.rv-row dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 759px) {
  .dlg, .dlg-sm, .dlg-md, .dlg-lg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .dlg-sm { height: auto; max-height: 100dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .dlg-head { padding: calc(16px + var(--sat)) 18px 12px; }
  .dlg-head h2 { font-size: 26px; }
  .dlg-body { padding: 4px 18px 20px; }
  .dlg-foot { padding: 12px 18px calc(12px + var(--sab)); }
  .dlg-foot .btn { flex: 1; justify-content: center; }
  .dlg-foot .progress { flex-basis: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .group-pick { grid-template-columns: 1fr 1fr; }
  .pend { flex-direction: column; }
  .pend-actions { flex-direction: row; flex-wrap: wrap; }
  .rv-row { grid-template-columns: 1fr; gap: 0; }
  .stop { grid-template-columns: 24px 1fr; }
  .st-ctl { grid-column: 2; margin-top: 0; }
}
