/* Google-Maps-like chrome. Colours and sizes follow the 2023+ Google Maps web UI loosely. */
:root {
  --font: Roboto, "Google Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 -1px 0 rgba(0, 0, 0, .02);
  --blue: #1a73e8;
  --text: #202124;
  --muted: #70757a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--text); overflow: hidden; }
#map { position: absolute; inset: 0; background: #2f3833; }
#map.mode-map { background: #ebe8e1; }
.leaflet-container { font-family: var(--font); }
.leaflet-tile { image-rendering: auto; }

/* ---------- search & card */
#sidebar { position: absolute; top: 12px; left: 12px; width: 392px; z-index: 1000; max-height: calc(100% - 24px); display: flex; flex-direction: column; }
#searchbox { display: flex; align-items: center; background: #fff; border-radius: 24px; height: 48px; box-shadow: var(--shadow); padding: 0 4px 0 8px; }
#searchbox input { flex: 1; border: 0; outline: 0; font-size: 15px; padding: 0 8px; height: 100%; background: transparent; font-family: var(--font); }
#searchbox button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
#searchbox button:hover { background: #f1f3f4; }
#searchbox svg { width: 24px; height: 24px; fill: #5f6368; }
#search-btn svg { fill: var(--blue); }
#suggestions { background: #fff; margin-top: 6px; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 60vh; overflow-y: auto; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; font-size: 14px; }
.sugg:hover, .sugg.active { background: #f1f3f4; }
.sugg .ico { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 14px; flex: none; }
.sugg .sub { color: var(--muted); font-size: 12px; }
.sugg b { font-weight: 600; }

#card { background: #fff; margin-top: 8px; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
#card .photo { width: 100%; height: 220px; display: block; background: #e8eaed; object-fit: cover; }
#card .photo-wrap { position: relative; }
#card .ph-tabs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
#card .ph-tabs button { border: 0; border-radius: 14px; padding: 4px 10px; font: 12px var(--font); background: rgba(32, 33, 36, .7); color: #fff; cursor: pointer; }
#card .ph-tabs button.on { background: #fff; color: #202124; }
#card .ph-credit { position: absolute; right: 8px; top: 8px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 6px; border-radius: 3px; text-decoration: none; max-width: 70%; }
#card .ph-credit:hover { text-decoration: underline; }
#card .body { padding: 16px 20px 8px; }
#card h1 { font-size: 22px; font-weight: 400; margin: 0 0 2px; line-height: 1.25; }
#card .aka { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
#card .cat { color: var(--muted); font-size: 14px; }
#card .actions { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #e8eaed; }
#card .act { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--blue); background: none; border: 0; cursor: pointer; width: 64px; font-family: var(--font); }
#card .act span.ring { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dadce0; display: grid; place-items: center; font-size: 17px; }
#card .act:first-child span.ring { background: var(--blue); color: #fff; border-color: var(--blue); }
#card .desc { padding: 14px 20px; font-size: 14px; line-height: 1.55; border-bottom: 1px solid #e8eaed; }
#card .row { display: flex; gap: 16px; padding: 10px 20px; font-size: 14px; align-items: flex-start; }
#card .row .ri { width: 20px; text-align: center; color: var(--blue); flex: none; }
#card h2 { font-size: 16px; font-weight: 500; margin: 16px 20px 6px; }
#card .ev { display: flex; gap: 12px; padding: 10px 20px; cursor: pointer; font-size: 14px; }
#card .ev:hover { background: #f8f9fa; }
#card .ev .badge { flex: none; }
#card .ev .date { color: var(--muted); font-size: 12px; }
#card .src { color: var(--muted); font-size: 12px; padding: 8px 20px 16px; }
#card .close { position: absolute; }

/* ---------- chips */
#chips { position: absolute; top: 16px; left: 418px; z-index: 900; display: flex; gap: 8px; }
.chip { height: 32px; border-radius: 16px; border: 0; background: #fff; box-shadow: var(--shadow); padding: 0 14px; font-size: 14px; cursor: pointer; font-family: var(--font); color: #3c4043; white-space: nowrap; }
.chip:hover { background: #f1f3f4; }
.chip.on { background: #e8f0fe; color: #1967d2; }

/* ---------- layer switch */
#layerswitch { position: absolute; left: 12px; bottom: 28px; z-index: 900; display: flex; align-items: flex-end; gap: 8px; }
#layer-thumb { width: 84px; height: 84px; border-radius: 10px; border: 2px solid #fff; padding: 0; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; background: #ccc; }
#layer-thumb canvas { width: 100%; height: 100%; display: block; }
#layer-thumb span { position: absolute; left: 0; right: 0; bottom: 4px; color: #fff; font-size: 12px; font-weight: 500; text-shadow: 0 0 3px #000, 0 0 2px #000; }
#layer-thumb.dark span { color: #fff; }
#layer-more { display: none; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 8px; gap: 4px; height: 84px; align-items: center; }
@media (hover: hover) { #layerswitch:hover #layer-more { display: flex; } }
#layerswitch.open #layer-more { display: flex; }
.lopt { display: flex; flex-direction: column; align-items: center; width: 64px; font-size: 12px; color: #3c4043; cursor: pointer; gap: 6px; }
.lopt input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ---------- leaflet controls */
.leaflet-bottom.leaflet-right .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; margin-bottom: 8px; margin-right: 12px; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 22px !important; color: #666 !important; }
.me-scale { background: rgba(255, 255, 255, .8); padding: 2px 6px; font-size: 11px; color: #333; display: flex; align-items: center; gap: 6px; margin: 0 12px 6px 0 !important; border-radius: 2px; }
.me-scale .bar { border: 1px solid #555; border-top: 0; height: 6px; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75) !important; }
.mode-sat .me-scale { background: rgba(0, 0, 0, .45); color: #fff; }
.mode-sat .me-scale .bar { border-color: #fff; }
.me-coords { background: rgba(255, 255, 255, .8); font-size: 11px; padding: 2px 6px; margin: 0 4px 6px 0 !important; border-radius: 2px; }
.mode-sat .me-coords { background: rgba(0, 0, 0, .45); color: #fff; }

/* ---------- labels */
.me-labels { position: absolute; left: 0; top: 0; pointer-events: none; }
.lbl { position: absolute; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; font-size: 12px; line-height: 1.2; text-align: center; user-select: none; }
.lbl .t { display: inline-block; }
.lbl.has-ico { transform: translate(-9px, -50%); display: flex; align-items: center; gap: 4px; }
.lbl .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: none; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid #5f6368; flex: none; }
.lbl.has-dot { transform: translate(-4px, -50%); display: flex; align-items: center; gap: 4px; }
/* map mode */
.mode-map .lbl { color: #3c4043; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.mode-map .lbl.city { font-size: 14px; font-weight: 500; color: #202124; }
.mode-map .lbl.region { color: #80868b; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.mode-map .lbl.area { color: #80868b; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.mode-map .lbl.water { color: #1a6cb0; font-style: italic; text-shadow: 0 0 2px #aadaff, 0 0 3px #aadaff; }
.mode-map .lbl.river { color: #3d7bb5; font-style: italic; font-size: 11px; }
.mode-map .lbl.mount { color: #6d5d4b; font-style: italic; }
.mode-map .lbl.range { color: #7a6a58; font-size: 13px; letter-spacing: .25em; font-style: italic; }
.mode-map .lbl.forest { color: #2e7d32; font-style: italic; }
/* satellite (hybrid) mode */
.mode-sat .lbl { color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000, 0 1px 3px #000; }
.mode-sat .lbl.city { font-size: 14px; font-weight: 500; }
.mode-sat .lbl.region { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: #f1f1f1; font-weight: 500; }
.mode-sat .lbl.area { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #e8e8e8; }
.mode-sat .lbl.water { color: #b7dcff; font-style: italic; }
.mode-sat .lbl.river { color: #b7dcff; font-style: italic; font-size: 11px; }
.mode-sat .lbl.mount { color: #f3e7d3; font-style: italic; }
.mode-sat .lbl.range { color: #f3e7d3; font-size: 13px; letter-spacing: .25em; font-style: italic; }
.mode-sat .lbl.forest { color: #c8f0c0; font-style: italic; }
.lbl:hover .t { text-decoration: underline; }

/* ---------- event markers */
.evpin { width: 30px; height: 38px; position: relative; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.evpin svg { width: 30px; height: 38px; position: absolute; inset: 0; }
.evpin .g { position: absolute; top: 5px; left: 0; width: 30px; text-align: center; font-size: 13px; line-height: 18px; }
.evpin.small { transform: scale(.75); transform-origin: 50% 100%; }

/* ---------- misc */
#ctxmenu { position: absolute; z-index: 2000; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); padding: 6px 0; min-width: 220px; font-size: 14px; }
#ctxmenu div { padding: 8px 16px; cursor: pointer; }
#ctxmenu div:hover { background: #f1f3f4; }
#ctxmenu .coords { color: var(--muted); font-size: 12px; cursor: default; }
#toast { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); background: #323232; color: #fff; padding: 12px 20px; border-radius: 6px; z-index: 3000; font-size: 14px; box-shadow: var(--shadow); max-width: 80%; }
#measure-box { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: #fff; border-radius: 8px; padding: 10px 16px; z-index: 1500; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 14px; align-items: center; }
#measure-box button { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 14px; }
.timeline { max-height: calc(100vh - 300px); overflow-y: auto; }
.tl-item { display: flex; gap: 10px; padding: 7px 4px; cursor: pointer; border-radius: 6px; }
.tl-item:hover { background: #f1f3f4; }
.tl-item .date { color: var(--muted); font-size: 11px; }
.tl-filter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tl-filter button { font-size: 11px; border: 1px solid #dadce0; background: #fff; border-radius: 12px; padding: 2px 8px; cursor: pointer; }
.tl-filter button.on { background: #e8f0fe; border-color: #e8f0fe; color: #1967d2; }
.leaflet-tooltip.jt { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- 3D viewer */
#v3d { position: fixed; inset: 0; z-index: 5000; background: #0b0d12; }
#v3d .v3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
#v3d .v3d-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff; pointer-events: none; }
#v3d .v3d-top > * { pointer-events: auto; }
#v3d .v3d-title { font-size: 20px; font-weight: 500; text-shadow: 0 1px 4px #000; }
#v3d .v3d-sub { font-size: 12px; opacity: .8; }
#v3d .v3d-tabs { display: flex; gap: 6px; margin-left: auto; }
#v3d .v3d-tabs button { border: 0; border-radius: 16px; padding: 6px 12px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font: 13px var(--font); }
#v3d .v3d-tabs button.on { background: #fff; color: #202124; }
#v3d .v3d-close { margin-left: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 18px; cursor: pointer; }
#v3d .v3d-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #ddd; font-size: 15px; letter-spacing: .05em; }
.pin3d { background: #202124; color: #fff; border-radius: 12px; font: 600 11px Roboto, Arial; padding: 3px 7px 3px 6px; box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: pointer; white-space: nowrap; border: 1.5px solid #fff; }
.pin3d:hover { background: #1a73e8; }
.model-overlay { image-rendering: auto; }

/* ---------- journey timeline: hover pill and stage card */
.leaflet-tooltip.jt-pill { padding: 6px 10px; border-radius: 10px; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25); font: 12px/1.35 var(--font); color: #202124; max-width: 360px; white-space: normal; }
.leaflet-tooltip.jt-pill::before { display: none; }
.jt-head { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.jt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.jt-date { margin-left: auto; color: #5f6368; font-weight: 500; padding-left: 8px; }
.jt-line { margin-top: 2px; color: #3c4043; }
.jt-more { margin-top: 3px; color: #1a73e8; font-size: 11px; }
.jt-hit { cursor: pointer; }
.jt-small .jt-stage { display: none; }
#card .muted, .muted { color: #70757a; font-size: 12px; }
.tl-list { padding: 0 12px 8px 20px; max-height: 300px; overflow-y: auto; position: relative; }
.tl-stage { display: flex; gap: 12px; padding: 6px 8px 6px 0; cursor: pointer; border-radius: 8px; position: relative; }
.tl-stage:hover { background: #f8f9fa; }
.tl-stage::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: #e0e3e7; z-index: 0; }
.tl-stage:first-child::before { top: 14px; } .tl-stage:last-child::before { bottom: calc(100% - 14px); }
.tl-pin { width: 8px; height: 8px; border-radius: 50%; border: 2px solid; background: #fff; margin-top: 4px; flex: none; position: relative; z-index: 1; }
.tl-when { color: #70757a; font-size: 11px; }
.tl-name { font-size: 14px; }
.tl-stage.here .tl-name { font-weight: 500; }
.tl-text { font-size: 13px; color: #3c4043; margin-top: 3px; line-height: 1.45; }
.tl-you { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: 12px; font-weight: 500; color: #202124; position: relative; }
.tl-you span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); margin-left: -1px; flex: none; z-index: 1; }
.leaflet-interactive:focus, .jt-hit:focus { outline: none; }

/* ---------- layer options button (touch) */
#layer-opts { display: none; position: absolute; left: 66px; top: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 14px; cursor: pointer; }
#layerswitch { position: absolute; }
@media (hover: none) { #layer-opts { display: block; } }

/* ---------- chips with selection */
.chip { display: inline-flex; align-items: center; gap: 6px; transition: background .15s, box-shadow .15s; }
.chip.active { background: #e8f0fe; color: #174ea6; font-weight: 500; padding-right: 6px; }
.chip.on { box-shadow: 0 0 0 2px #1a73e8, var(--shadow); }
.chip-x { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; color: #174ea6; background: rgba(26,115,232,.12); margin-left: 2px; }
.chip-x:hover { background: rgba(26,115,232,.25); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #fff; }
.chip-dots { display: inline-flex; }
.chip-dots .chip-dot + .chip-dot { margin-left: -3px; }

/* ---------- panels (chip lists) */
#legend { position: absolute; top: 60px; right: 12px; z-index: 950; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.12); width: 320px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; overflow: hidden; animation: pnIn .18s ease-out; }
@keyframes pnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pn-grab { display: none; }
.pn-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 12px 8px 18px; }
.pn-title { font-size: 17px; font-weight: 500; }
.pn-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pn-close { width: 32px; height: 32px; border: 0; background: #f1f3f4; border-radius: 50%; cursor: pointer; font-size: 13px; color: #5f6368; flex: none; }
.pn-close:hover { background: #e3e5e8; }
.pn-body { overflow-y: auto; padding: 4px 12px 10px; }
.pn-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #eef0f2; }
.pn-btn { border: 1px solid #dadce0; background: #fff; border-radius: 18px; padding: 7px 14px; font: 500 13px var(--font); color: #1a73e8; cursor: pointer; }
.pn-btn:disabled { color: #b0b4b9; cursor: default; }
.pn-btn.primary { margin-left: auto; background: #1a73e8; border-color: #1a73e8; color: #fff; padding: 7px 20px; }
.pn-note { color: var(--muted); font-size: 12px; padding: 8px 6px 2px; line-height: 1.45; }
#legend .timeline { max-height: none; }
#legend .tl-filter { padding: 0 4px 8px; }
/* journey checklist */
.jsel { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.jsel:hover { background: #f6f8fa; }
.jsel input { position: absolute; opacity: 0; pointer-events: none; }
.jbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--c); flex: none; display: grid; place-items: center; transition: background .12s; }
.jsel.on .jbox { background: var(--c); }
.jsel.on .jbox::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.jtxt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jname { font-size: 14px; color: #202124; }
.jsub { font-size: 11.5px; color: var(--muted); }
.jswatch { width: 26px; height: 4px; border-radius: 2px; background: var(--c); flex: none; opacity: .9; }
.jsel:not(.on) .jswatch { opacity: .35; }

/* ---------- phones: bottom sheets instead of side panels */
.sheet-grab { display: none; }
@media (max-width: 700px) {
  #chips { top: 68px; left: 0; right: 0; max-width: none; padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; }
  #chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  #legend { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; animation: sheetUp .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .pn-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #dadce0; margin: 8px auto 0; touch-action: none; }
  .pn-head { padding-top: 6px; touch-action: none; }
  #sidebar { width: auto; right: 12px; }
  #card { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 18px 18px 0 0; max-height: 92vh; transition: height .22s ease; z-index: 1100; box-shadow: 0 -4px 20px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom); }
  #card.dragging { transition: none; }
  .sheet-grab { display: block; position: sticky; top: 0; z-index: 3; height: 22px; margin-bottom: -22px; touch-action: none; cursor: grab; }
  .sheet-grab::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.95); box-shadow: 0 0 4px rgba(0,0,0,.4); margin: 8px auto 0; }
  #card .photo { height: 180px; }
  body.card-open #layerswitch, body.card-open .leaflet-bottom, body.panel-open #layerswitch, body.panel-open .leaflet-bottom { display: none; }
  .leaflet-control-attribution { max-width: 62vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
  .me-coords { display: none; }
  #layer-thumb { width: 64px; height: 64px; }
  #layer-opts { left: 48px; }
  #layer-more { height: 64px; }
  #suggestions { max-height: 55vh; }
}

/* ---------- GitHub star button: quiet pill at the top right (end of the chip row on phones) */
.gh-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 9px; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); color: #24292f; text-decoration: none; font: 500 13px var(--font); white-space: nowrap; flex: none; transition: background .15s, transform .15s; }
.gh-chip svg { width: 16px; height: 16px; fill: #24292f; }
.gh-chip .gh-star-ico { color: #e3b341; font-size: 14px; line-height: 1; transition: transform .3s; }
.gh-chip .gh-count { padding-left: 7px; margin-left: 1px; border-left: 1px solid #d0d7de; color: #57606a; font-weight: 400; }
.gh-chip:hover { background: #fff; }
.gh-chip:hover .gh-star-ico { transform: rotate(72deg) scale(1.2); }
@media (min-width: 701px) { .gh-chip { position: fixed; top: 16px; right: 12px; z-index: 900; } }
#card .gh-card-btn { flex: none; display: inline-block; background: #24292f; color: #fff; text-decoration: none; border-radius: 16px; padding: 6px 12px; font: 500 13px var(--font); margin-right: 4px; }
#card .row:has(.gh-card-btn) { flex-direction: column; gap: 6px; }
