:root {
  color-scheme: dark;
  --bg: #15181b;
  --paper: #1d2125;
  --paper-2: #252a2f;
  --text: #d9dde1;
  --muted: #8b949c;
  --line: #2f353b;
  --accent: #6fa86a;
  --link: #8fbde3;
  --danger: #e07a6f;
  --warn: #e0a84e;
  --info: #6cb2d9;
  --top: 44px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 "Segoe UI", Roboto, system-ui, sans-serif; }
a { color: var(--link); }
h1 { font: 600 1.2rem/1.25 "Segoe UI", system-ui, sans-serif; margin: 0; }
h2 { font: 600 1rem "Segoe UI", system-ui, sans-serif; margin: 0 0 6px; }
code { font: 12px ui-monospace, Consolas, monospace; }

.atop { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #0f1214; border-bottom: 1px solid var(--line); }
.abrand { display: flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.abrand .logo { width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.atop nav { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.atop nav a, .atop nav button { color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.atop nav a:hover, .atop nav button:hover { color: var(--text); background: var(--paper-2); }
.atop nav a.on { color: #fff; background: var(--paper-2); }
.atop form { margin: 0; }
.amain { padding: 12px 14px 40px; }
.amain.full { padding: 0; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.flash { background: #1f3324; border: 1px solid #335a3a; color: #cfe8cb; padding: 7px 12px; border-radius: 6px; margin-bottom: 10px; }
.amain.full .flash { margin: 8px 12px; }
.err { color: var(--danger); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.narrow { max-width: 380px; margin: 40px auto; display: grid; gap: 10px; }
label { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); }
input, select, textarea { font: 13px "Segoe UI", system-ui, sans-serif; color: var(--text); padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #111417; width: 100%; }
input[type=file] { padding: 5px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.hint { font-size: .74rem; opacity: .8; }
.check { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: .85rem; }
.check input { width: auto; }
.check.danger { color: var(--danger); }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 11px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper-2); color: var(--text); font: 600 12.5px "Segoe UI", system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.abtn:hover { border-color: #46505a; background: #2d333a; }
.abtn.primary { background: #3d6b3a; border-color: #4b7f47; color: #fff; }
.abtn.primary:hover { background: #4a7f46; }
.abtn.danger { color: var(--danger); border-color: #5a3330; }
.abtn.small { padding: 2px 8px; font-size: 12px; }
.abtn:disabled { opacity: .5; cursor: default; }
.search { margin-bottom: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tabs a { padding: 3px 9px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .8rem; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: #2c4a2b; color: #fff; border-color: #3d6b3a; }
.flagtabs a { font-size: .76rem; }
.tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; color: var(--muted); font-weight: 600; background: var(--paper); }
tbody tr:hover td, tbody tr.hl td { background: #232a30; }
td a { color: var(--text); }
.sub { font-size: .76rem; color: var(--muted); }
.tag { font-size: .68rem; padding: 1px 6px; border-radius: 3px; background: #26362a; color: #9fd09a; white-space: nowrap; }
.tag.demo { background: #3a3320; color: #e0c46e; }
.tag.warn { background: #3d2f1c; color: var(--warn); }
.tag.more { background: #1f3040; color: var(--info); }
.tag.ai { background: #2f2645; color: #cdb8ff; }
.mergebox summary { cursor: pointer; font-weight: 600; }
.mergebox .mrow { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mergedin { border-left: 3px solid var(--info); }
tr.undone td { opacity: .55; }
.impdec { min-width: 150px; }
.aibox { border: 1px solid #5b4a86; background: #221c33; border-radius: 6px; padding: 8px 10px; margin: 0 0 10px; }
.aibox .sub { margin: 4px 0; }
.st { font-size: .7rem; padding: 1px 7px; border-radius: 3px; white-space: nowrap; background: #2a2f34; color: var(--muted); }
.st-to_verify { background: #3d2f1c; color: var(--warn); }
.st-on_trip { background: #1d3446; color: var(--info); }
.st-editing { background: #33264a; color: #b99be6; }
.st-published { background: #213a24; color: #8fd08a; }
.st-not_found { background: #45241f; color: var(--danger); }
.st-rejected, .st-hidden { background: #2a2f34; color: #8b949c; }
.st-trip-planned { background: #1d3446; color: var(--info); }
.st-trip-done { background: #213a24; color: #8fd08a; }
.st-trip-cancelled { background: #2a2f34; color: var(--muted); }
.inline { display: inline-block; margin-top: 10px; }
.row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
details summary { cursor: pointer; }

.edit fieldset { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; display: grid; gap: 8px; min-width: 0; }
.edit legend { float: left; width: 100%; font-weight: 600; font-size: .9rem; margin-bottom: 2px; color: var(--text); }
.edit.tabbed fieldset[data-tab] > legend { display: none; }
.edit .head { position: sticky; top: var(--top); z-index: 20; background: var(--bg); padding: 8px 0; margin: -12px 0 8px; border-bottom: 1px solid var(--line); }
.etabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.etab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 12.5px "Segoe UI", system-ui, sans-serif; padding: 6px 12px; cursor: pointer; }
.etab:hover { color: var(--text); }
.etab.on { color: #fff; border-bottom-color: var(--accent); }
.picker { height: min(60vh, 520px); border-radius: 6px; overflow: hidden; }
.srow { display: grid; gap: 5px; grid-template-columns: 2fr 1fr 2fr 1fr 2fr auto; }
.phgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ph { display: grid; gap: 4px; background: var(--paper-2); border-radius: 6px; padding: 6px; }
.ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.ph.ref { outline: 1px dashed var(--warn); }
.foot-acts { display: none; }
.langtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.langtab { border: 1px solid var(--line); background: var(--paper-2); border-radius: 5px 5px 0 0; padding: 4px 10px; font: 600 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; color: var(--muted); }
.langtab.on { background: #2c4a2b; color: #fff; border-color: #3d6b3a; }
.tabmark { font-size: .66rem; font-weight: 600; padding: 0 5px; border-radius: 3px; background: #3d2f1c; color: var(--warn); }
.tabmark.empty { background: #2a2f34; color: var(--muted); }
.pane { display: grid; gap: 8px; }
.uform { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 2px 0; }
.uform select, .uform input { width: auto; min-width: 140px; }
.adduser { margin-top: 12px; display: grid; gap: 8px; }
.checks { margin: 0 0 8px; padding: 6px 10px; }
.checks ul { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: .8rem; }
.checks li.y { color: #8fd08a; }
.checks li.n { color: var(--danger); }
.dupbox { margin: 0 0 8px; padding: 8px 10px; border-color: #6b5326; background: #2b2418; }
.dupbox label { margin-top: 5px; }
fieldset.private { border-style: dashed; }
.refimg { max-width: 300px; max-height: 200px; border-radius: 6px; margin-top: 4px; }
.row.more { margin-top: 4px; align-items: end; }
td.flags { white-space: nowrap; }
.yn { display: inline-block; width: 1.3em; text-align: center; font-weight: 700; }
.yn.y { color: #8fd08a; }
.yn.n { color: var(--danger); opacity: .75; }
table.imp tr.imp-dup td { background: #2b2418; }
table.imp tr.imp-no_gps td { background: #1b2733; }
table.imp tr.imp-skip td { color: #666; text-decoration: line-through; }
.imp-sum { display: grid; gap: 8px; margin-bottom: 10px; }

.dash { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.stat-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.stat { display: block; padding: 8px 10px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.stat:hover { border-color: #46505a; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .76rem; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: #111417; overflow: hidden; margin: 4px 0 2px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .82rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.listmap { height: 340px; border-radius: 6px; overflow: hidden; margin: 6px 0; border: 1px solid var(--line); }
.listmap.tall { height: calc(100vh - var(--top) - 230px); min-height: 360px; }
.lm-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .6); cursor: pointer; transition: transform .12s; }
.lm-dot.hl { transform: scale(1.8); z-index: 5; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.lm-dot.pick { width: 13px; height: 13px; background: #c8892f; }
.lm-dot.pick.s-not_found { background: #c4533f; }
.lm-dot.pick.s-editing, .lm-dot.pick.s-published { background: #8c6ac0; }
.lm-dot.pick.on { background: #3aa0d8; width: 17px; height: 17px; box-shadow: 0 0 0 3px rgba(58, 160, 216, .4); }
.maplibregl-popup-content { background: var(--paper); color: var(--text); padding: 8px 10px; border-radius: 6px; font-size: 12.5px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--paper); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--paper); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--paper); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--paper); }
.mpop { display: grid; gap: 3px; min-width: 180px; }
.mpop strong { font-size: 13px; }
.mpop .acts { margin-top: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); height: calc(100vh - var(--top)); }
.nearbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; margin-top: 6px; }
.nearbar label { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.nearbar input[name=r] { width: 90px; }
.nearbar input[name=near] { width: 190px; }
.listmap.picking, .listmap.picking canvas { cursor: crosshair !important; }
.split-map { position: relative; border-right: 1px solid var(--line); }
.split-map .listmap { position: absolute; inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; }
.split-list { overflow-y: auto; padding: 10px 12px 30px; }
.fullmap-wrap { position: relative; height: calc(100vh - var(--top)); }
.fullmap { position: absolute; inset: 0; }
.maplegend { position: absolute; left: 10px; bottom: 26px; z-index: 2; background: rgba(21, 24, 27, .9); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; display: grid; gap: 2px; font-size: 12px; }
.maplegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; border: 1px solid #fff; vertical-align: -1px; }
@media (max-width: 900px) {
  .split { display: block; height: auto; }
  .split-map { height: 45vh; position: relative; border: 0; border-bottom: 1px solid var(--line); }
  .split-list { overflow: visible; }
}

.pickbar { align-items: center; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.showfilter { align-items: center; gap: 12px; display: flex; flex-wrap: wrap; margin-bottom: 6px; }
.picklist { columns: 3 220px; margin: 8px 0; padding-left: 20px; font-size: .82rem; }
.tm-num { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: #3d6b3a; color: #fff; font: 700 11px/22px system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); cursor: pointer; }
.tm-num.r-found { background: #2f8a3c; }
.tm-num.r-not_found { background: #b5523b; }
.tm-num.r-skipped { background: #777; }
.tripbar { align-items: center; margin: 8px 0; display: flex; gap: 8px; }
.tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tcard { display: flex; gap: 10px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 60px; }
.tcard.r-found { border-left: 4px solid #2f8a3c; }
.tcard.r-not_found { border-left: 4px solid #b5523b; }
.tcard.r-skipped { border-left: 4px solid #777; opacity: .8; }
.tnum { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #3d6b3a; color: #fff; font-weight: 700; display: grid; place-items: center; }
.tbody { flex: 1; min-width: 0; display: grid; gap: 4px; }
.thead { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.leg { font-size: .76rem; color: var(--info); }
.coords code { background: #111417; padding: 1px 5px; border-radius: 3px; }
.coords.warn { color: var(--warn); font-size: .8rem; }
.hinttxt { font-size: .8rem; color: #b8bfc5; background: #191d21; padding: 4px 8px; border-radius: 4px; }
.refthumb { max-width: 160px; max-height: 110px; border-radius: 4px; }
.tres { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tres input { flex: 1 1 200px; min-width: 0; width: auto; }
.tres .on.res-found { background: #2f8a3c; color: #fff; }
.tres .on.res-not_found { background: #b5523b; color: #fff; }
.tres .on.res-skipped { background: #777; color: #fff; }
.tacts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.anavbtn { display: none; margin-left: auto; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px; color: var(--text); background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.anavbtn svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) {
  .anavbtn { display: inline-flex; }
  .atop nav { display: none; position: absolute; top: var(--top); right: 8px; flex-direction: column; align-items: stretch; gap: 2px; min-width: 210px; max-height: calc(100vh - var(--top) - 16px);
    overflow-y: auto; padding: 8px; background: #0f1214; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); z-index: 40; }
  .atop nav a, .atop nav button { padding: 9px 12px; text-align: left; width: 100%; }
  .anavtg:checked ~ nav { display: flex; }
  .anavtg:checked + .anavbtn { color: #fff; border-color: var(--muted); }
}
@media (max-width: 700px) {
  body { font-size: 12.5px; }
  .amain { padding: 8px 8px 30px; }
  .srow { grid-template-columns: 1fr; }
  .atop { gap: 8px; }
  .abrand span { display: none; }
}

body.tprint { background: #fff; color: #111; padding: 16px; max-width: 1000px; margin: 0 auto; font: 13px/1.4 system-ui, sans-serif; height: auto; color-scheme: light; }
body.tprint { --bg: #fff; --paper: #fff; --paper-2: #f2f3ef; --text: #111; --muted: #555; --line: #ddd; --link: #2f5d3a; }
html:has(body.tprint) { background: #fff; color-scheme: light; }
.tprint h1 { font-size: 1.5rem; margin: 6px 0; color: #111; }
.tprint .meta { color: #555; }
.tprint .abtn { background: #fff; color: #2f5d3a; border-color: #ccc; }
.tprint .abtn.primary { background: #2f5d3a; color: #fff; }
.printmap { height: 440px; border: 1px solid #ccc; margin: 10px 0; }
.plist { list-style: none; padding: 0; margin: 0; }
.plist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ddd; break-inside: avoid; }
.plist .pn { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #414833; color: #fff; font-weight: 700; display: grid; place-items: center; }
.plist .pb { flex: 1; min-width: 0; }
.plist .pt span { color: #555; }
.plist .pc { font-family: ui-monospace, Consolas, monospace; font-size: 12px; margin: 2px 0; }
.plist .ph { display: block; font-size: 12px; color: #222; margin: 4px 0; padding: 4px 6px; background: #f2f3ef; border-radius: 4px; }
.plist .pf { font-size: 12px; margin-top: 4px; }
.plist img { flex: none; width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
.noprint { margin-bottom: 10px; display: flex; gap: 8px; }
@media print {
  .noprint { display: none; }
  body.tprint { padding: 0; }
  .printmap { height: 380px; }
}
.lg-to_verify { background: #e0a84e; }
.lg-on_trip { background: #6cb2d9; }
.lg-editing { background: #b99be6; }
.lg-published { background: #6fd06a; }
.lg-not_found { background: #e07a6f; }
.lg-rejected { background: #888; }
.lg-hidden { background: #666; }
.stat .st { display: inline-block; margin-top: 2px; }
#plist th a { color: inherit; text-decoration: none; white-space: nowrap; }
#plist th.sorted a { color: var(--info); }
#plist td.num { text-align: right; font-variant-numeric: tabular-nums; }
.yn.h { color: #cdb8ff; }
.split-side .split-map { display: flex; flex-direction: column; min-height: 0; }
.split-side .side-ctl { padding: 10px 12px 6px; overflow-y: auto; max-height: 55%; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.split-side .side-ctl .tabs { flex-wrap: wrap; }
.split-side .side-ctl .nearbar input[name=near] { width: 100%; }
.split-side .side-ctl .nearbar label { flex: 1 1 140px; }
.split-side .split-map .listmap { position: relative; inset: auto; flex: 1 1 auto; min-height: 200px; }
.split-side .split-list { padding-top: 6px; }
@media (max-width: 900px) {
  .split-side .split-map { height: auto; }
  .split-side .side-ctl { max-height: none; }
  .split-side .split-map .listmap { height: 45vh; flex: none; }
}
.split-side .side-ctl .nearbar label { flex-direction: column; align-items: stretch; gap: 2px; }
.split-side .side-ctl .nearbar input[name=r] { width: 100%; }
.split-side .side-ctl .nearbar label:first-child { flex: 0 0 110px; }
.lm-dot.pick.other { box-shadow: 0 0 0 3px #a77ee8, 0 1px 3px rgba(0, 0, 0, .6); }
.lm-dot.pick.s-on_trip { background: #6cb2d9; }
.tag.other { background: #2b2440; color: #cdb8ff; }
.tag.other a { color: inherit; }
.tcard.other { border-left: 3px solid #a77ee8; }
.aibrief { display: block; margin: 0 0 10px; color: #cdb8ff; font-size: .85rem; }
.aibrief textarea { margin-top: 4px; }
.sform { display: flex; flex-direction: column; gap: 4px; }
.sform input[type=search] { width: 100%; }
.ssec { border-top: 1px solid var(--line); padding-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ssec .sbody { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; flex: 1 1 200px; opacity: .5; }
.ssec.on .sbody { opacity: 1; }
.ssec select { width: 100%; margin: 0; }
.sform label.chk { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; font-size: .82rem; white-space: nowrap; margin: 0; flex: 0 0 auto; }
.sform label.chk input { width: auto; margin: 0; }
.sform .shead { font-weight: 600; min-width: 96px; }
.sform .shead .sub { font-weight: 400; }
.sform .nearbar { margin-top: 0; }
.sform .nearbar label { flex: 0 1 auto; }
.sform .nearbar input[name=near] { width: 170px; }
.sbtns { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.split-side .side-ctl { max-height: 70%; }
.split-side .side-ctl .sform .nearbar label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; flex: 0 1 auto; }
.sform .nearbar input[name=r] { width: 80px; }
.sform .shead.bare { min-width: 0; }
.split-side .side-ctl .sform .nearbar { flex-wrap: nowrap; }
.split-side .side-ctl .sform .nearbar input[name=near] { width: 150px; }
.split-side .side-ctl .sform .nearbar #rkm { width: 72px; }
.split-side .side-ctl .sform .nearbar label { white-space: nowrap; }
.split-side .side-ctl .sform .nearbar input[name=near] { width: 140px; flex: 1 1 140px; }
.sform .ssec:has(.shead.bare) { flex-wrap: nowrap; }
.sform .ssec:has(.shead.bare) .sbody { flex: 1 1 auto; min-width: 0; }
#plist th.num { text-align: right; }
#plist a.pv { text-decoration: none; font-size: .95rem; line-height: 1.6; }
#plist .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
#plist .tags .tag { margin: 0; }
.tripgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.tripmain #trippick { height: calc(100vh - 230px); min-height: 420px; }
.tripside { position: sticky; top: 10px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tripside .stack { display: flex; flex-direction: column; gap: 6px; }
.tripside .stack input { width: 100%; }
.tripside .picktitle { margin: 4px 0 0; font-size: .9rem; }
.tripside .picklist { flex: 1 1 auto; overflow-y: auto; min-height: 60px; margin: 0; }
@media (max-width: 900px) {
  .tripgrid { grid-template-columns: 1fr; }
  .tripmain #trippick { height: 60vh; min-height: 300px; }
  .tripside { position: static; max-height: none; }
}
a.plain, #plist td a { text-decoration: none; }
a.plain:hover, #plist td a:hover { text-decoration: underline; }
.tag.revisit { background: #5a3d1e; color: #f3d9b0; }
