:root {
  --bg: #F4F0E8;
  --paper: #FFFDF8;
  --sand: #F7F3EB;
  --sand2: #F3EFE6;
  --ink: #1A2A38;
  --ink2: #4F626F;
  --ink3: #6B7C88;
  --ink4: #52646F;
  --blue: #1B5C8A;
  --blue2: #2E7BB0;
  --gold: #C08A2E;
  --green: #2F6F63;
  --red: #C0472E;
  --line: rgba(26, 42, 56, .1);
  --line2: rgba(26, 42, 56, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue2); }
input, button, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #CFD8DC; border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes bzFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.shell {
  min-height: 100vh;
  background: radial-gradient(1100px 650px at 80% -14%, #FFFDF8 0%, var(--bg) 60%);
  padding-bottom: 80px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 243, 235, .92);
  border-bottom: 1px solid var(--line);
}

.top-row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 26px;
}

h1.title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -.01em;
}
h1.title span { color: var(--blue); }

svg.gwenn {
  display: block;
  width: 66px; height: auto;
  margin-top: 9px;
  border: 1px solid rgba(26, 42, 56, .18);
  border-radius: 2px;
}

.kicker {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink2);
}
.title-block .kicker { margin-top: 7px; }

.whoami { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-left: auto; }
.whoami .lab { text-align: right; line-height: 1.15; }
.whoami .lab b { display: block; font-size: 9.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.whoami .lab em { font-style: normal; font-size: 11px; color: var(--ink2); }

select.me {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(26, 42, 56, .18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  max-width: 46vw;
}

nav.tabs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 22px 0;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 10px 15px 12px;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--ink2);
  transition: color .15s;
}
nav.tabs button.on { color: var(--ink); border-bottom-color: var(--blue); }

/* ---------- layout primitives ---------- */

main { max-width: 1240px; margin: 0 auto; padding: 28px 22px 0; }
.tabpane { animation: bzFade .35s ease both; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.grid.tight { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.span-all { grid-column: 1 / -1; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
}
.card.pad-sm { padding: 22px 24px; }

h2.h { margin: 0; font-family: "Newsreader", serif; font-weight: 400; font-size: 26px; }
h2.h.big { font-size: 32px; }
h2.h.mid { font-size: 30px; }
h3.h { margin: 0 0 16px; font-family: "Newsreader", serif; font-weight: 400; font-size: 23px; }

.eyebrow {
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
}
.lede { margin: 0 0 22px; font-size: 13px; color: var(--ink2); max-width: 66ch; line-height: 1.65; }
.note { font-size: 11.5px; color: var(--ink3); line-height: 1.6; max-width: 78ch; }
.row-between { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ---------- home ---------- */

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.kpi {
  flex: 1 1 calc(50% - 1px);
  min-width: 200px;
  background: var(--paper);
  padding: 20px 22px;
  outline: 1px solid var(--line);
}
.kpi .big { font-family: "Newsreader", serif; font-size: 42px; line-height: 1.05; margin-top: 6px; }
.kpi .big.blue { color: var(--blue); }
.kpi .big.sm { font-size: 26px; line-height: 1.1; }
.kpi .sub { font-size: 12.5px; color: var(--ink2); margin-top: 3px; line-height: 1.5; }
.kpi .of { font-size: 20px; color: var(--ink3); }

.wx { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.wx > div {
  background: var(--sand);
  border: 1px solid var(--line2);
  border-radius: 11px;
  padding: 13px 12px;
  text-align: center;
}
.wx .d { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.wx .i { font-size: 23px; margin: 7px 0 5px; }
.wx .t { font-size: 13.5px; }
.wx .t span { color: var(--ink3); }
.wx .w { font-size: 10.5px; color: var(--ink3); margin-top: 4px; }

.tides { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tide { background: var(--sand); border: 1px solid var(--line2); border-radius: 11px; padding: 14px 16px; }
.tide .hd { display: flex; justify-content: space-between; align-items: baseline; }
.tide .hd .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.tide .hd .c { font-size: 11px; color: var(--gold); }
.tide .evs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev { font-size: 11.5px; border-radius: 7px; padding: 6px 10px; border: 1px solid rgba(26, 42, 56, .12); background: rgba(26, 42, 56, .03); color: var(--ink2); }
.ev.hw { border-color: rgba(62, 140, 126, .35); background: rgba(62, 140, 126, .1); color: var(--green); }

.nowgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.now {
  background: var(--sand);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--ink3);
  border-radius: 11px;
  padding: 12px 14px;
}
.now.yes { border-left-color: var(--green); }
.now .k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.now .n { font-size: 14px; line-height: 1.25; margin-top: 5px; }
.now .s { font-size: 11.5px; color: var(--ink2); margin-top: 5px; }
.now.yes .s { color: var(--green); }

.stack { display: flex; flex-direction: column; gap: 1px; background: var(--line2); border-radius: 10px; overflow: hidden; }
.stack > div { background: var(--sand); padding: 13px 15px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stack .k { font-size: 13px; color: var(--ink2); }
.stack .v { font-size: 13px; }

.sos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sos a {
  flex: 1 1 90px;
  background: var(--sand);
  border: 1px solid rgba(26, 42, 56, .12);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 10px;
  text-align: center;
}
.sos a.hot { background: #FBEDE9; border-color: rgba(192, 71, 46, .35); color: var(--red); }
.sos a b { display: block; font-size: 22px; font-weight: 400; line-height: 1; }
.sos a span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; color: var(--ink2); }
.sos a.hot span { color: inherit; opacity: .8; }

/* ---------- map ---------- */

.map-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
input.search {
  flex: 1 1 200px;
  background: var(--sand);
  border: 1px solid rgba(26, 42, 56, .14);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 16px;
  outline: none;
}
.chip {
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  white-space: nowrap;
  transition: all .15s;
  border: 1px solid rgba(26, 42, 56, .14);
  background: transparent;
  color: var(--ink4);
}
.chip .n { opacity: .55; }

.map-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
#map-slot, #map { height: min(72vh, 660px); min-height: 380px; border-radius: 14px; overflow: hidden; }
#map { border: 1px solid rgba(26, 42, 56, .12); width: 100%; }
#map-garage { position: absolute; left: -99999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.addbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.addbox .fl {
  display: block;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3);
  margin-top: 10px;
}
.addbox .fl input, .addbox .fl select {
  width: 100%; margin-top: 4px;
  background: var(--sand); color: var(--ink);
  border: 1px solid rgba(26, 42, 56, .14); border-radius: 9px;
  padding: 10px 12px; font-size: 16px; letter-spacing: 0; text-transform: none; outline: none;
}
.geolist { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; max-height: 210px; overflow: auto; }
.georow {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--sand); border: 1px solid var(--line2); border-radius: 9px;
  padding: 9px 12px; color: var(--ink);
}
.georow:hover { border-color: var(--blue); background: #EFF4F8; }
.georow b { display: block; font-weight: 500; font-size: 13.5px; }
.georow span { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.georow.muted { color: var(--ink3); font-size: 12.5px; cursor: default; background: transparent; border-style: dashed; }
.pinline { font-size: 12px; color: var(--ink3); padding: 8px 0 2px; }
.pinline .ok { color: var(--green); font-weight: 500; }
.bz-pin.pending { background: var(--gold); box-shadow: 0 0 0 6px rgba(192, 138, 46, .25), 0 2px 10px rgba(0, 0, 0, .35); }

.placewrap { position: relative; }
.placewrap .del {
  position: absolute; top: 6px; right: 6px;
  background: none; border: none; color: #8A98A0; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 5px;
}
.placewrap .del:hover { color: var(--red); }

.place-list { max-height: min(72vh, 660px); overflow: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 4px; }
button.place {
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: background .15s;
  border: 1px solid var(--line2);
  background: #FBF8F1;
  color: var(--ink);
}
button.place.on { border-color: rgba(27, 92, 138, .5); background: #EFF4F8; }
button.place .r1 { display: flex; align-items: baseline; gap: 8px; }
button.place .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
button.place .n { font-size: 13.5px; line-height: 1.3; flex: 1; }
button.place .km { font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
button.place .sub { font-size: 11px; color: var(--ink3); margin-top: 3px; padding-left: 16px; }

.leaflet-container { background: var(--bg) !important; font-family: "Karla", sans-serif !important; }
.leaflet-popup-content-wrapper { background: var(--sand2) !important; color: var(--ink) !important; border-radius: 10px !important; box-shadow: 0 12px 40px rgba(0, 0, 0, .35) !important; border: 1px solid rgba(26, 42, 56, .14) !important; }
.leaflet-popup-tip { background: var(--sand2) !important; border: 1px solid rgba(26, 42, 56, .14) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 13px !important; line-height: 1.45 !important; }
.leaflet-popup-close-button { color: var(--ink2) !important; }
.leaflet-control-zoom a { background: var(--sand2) !important; color: var(--ink) !important; border-color: rgba(26, 42, 56, .14) !important; }
.leaflet-control-attribution { background: rgba(247, 243, 235, .8) !important; color: var(--ink3) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--ink2) !important; }
.bz-pin { display: flex; border-radius: 50%; border: 1.5px solid rgba(255, 253, 248, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); width: 100%; height: 100%; }

/* ---------- ideas ---------- */

article.idea { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
article.idea .kind { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
article.idea .drive { font-size: 10.5px; color: var(--ink3); }
article.idea h3 { margin: 7px 0 0; font-family: "Newsreader", serif; font-weight: 400; font-size: 25px; line-height: 1.15; }
article.idea p { margin: 8px 0 0; font-size: 13px; color: var(--ink4); line-height: 1.6; }
article.idea .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line2); }
article.idea .voters { font-size: 11.5px; color: var(--ink3); line-height: 1.4; flex: 1; }

.tag { background: var(--sand2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 11px; color: var(--ink4); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

button.pill {
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12.5px;
  white-space: nowrap;
  border: 1px solid rgba(26, 42, 56, .2);
  background: transparent;
  color: var(--ink);
  transition: all .15s;
}
button.pill.on { border-color: var(--blue); background: var(--blue); color: var(--bg); }
button.pill:disabled { cursor: not-allowed; color: var(--ink3); }

/* ---------- people ---------- */

.gantt { min-width: 720px; }
.gantt .head { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: end; margin-bottom: 10px; }
.gantt .days { display: grid; gap: 2px; }
.gantt .days > div { text-align: center; font-size: 8.5px; color: var(--ink3); line-height: 1.3; }
.gantt .days b { display: block; font-weight: 400; color: var(--ink2); }
.gantt .rows { display: flex; flex-direction: column; gap: 9px; }
.gantt .row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; }
.gantt .who { min-width: 0; }
.gantt .who .nm { font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .who .st { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; color: var(--ink2); }
.gantt .who .st.yes { color: var(--blue); }
.gantt .track { position: relative; height: 34px; border-radius: 8px; background: var(--sand); border: 1px solid rgba(26, 42, 56, .07); }
.gantt .bar {
  position: absolute; top: 3px; bottom: 3px;
  border-radius: 6px; display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; overflow: hidden; white-space: nowrap;
  background: repeating-linear-gradient(45deg, #EDE8DE, #EDE8DE 6px, var(--sand) 6px, var(--sand) 12px);
  color: var(--ink2); border: 1px solid rgba(26, 42, 56, .12);
}
.gantt .bar.yes { background: linear-gradient(90deg, var(--blue), var(--blue2)); color: var(--bg); border: none; }

.person-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.person-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.person-card .nm { font-size: 14px; }
.person-card .dates { display: flex; gap: 8px; margin-top: 12px; }
.person-card label { flex: 1; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.person-card select {
  width: 100%; margin-top: 4px; background: var(--sand); color: var(--ink);
  border: 1px solid rgba(26, 42, 56, .14); border-radius: 7px; padding: 7px 8px;
  font-size: 12.5px; letter-spacing: 0; text-transform: none; outline: none;
}
button.mini {
  cursor: pointer; border-radius: 999px; padding: 5px 12px; font-size: 11.5px; white-space: nowrap;
  border: 1px solid rgba(26, 42, 56, .2); background: transparent; color: var(--ink4);
}
button.mini.on { border-color: var(--blue); background: var(--blue); color: var(--bg); }

/* ---------- journey ---------- */

.legs { display: flex; flex-direction: column; }
.leg { display: grid; grid-template-columns: 16px 1fr; gap: 14px; }
.leg .rail { display: flex; flex-direction: column; align-items: center; }
.leg .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: #C3CDD3; }
.leg.end .dot { width: 11px; height: 11px; background: var(--blue); }
.leg .line { flex: 1; width: 1px; background: linear-gradient(#C3CDD3, #DFE5E8); margin: 4px 0; }
.leg .body { padding-bottom: 20px; }
.leg:last-child .body { padding-bottom: 0; }
.leg .city { font-size: 15px; line-height: 1.2; }
.leg .n { font-size: 11.5px; color: var(--ink3); margin-top: 3px; }

.tile { background: var(--sand); border-radius: 10px; padding: 14px 16px; }
.tile .v { font-size: 16px; margin-top: 5px; }

.flight { background: var(--sand); border: 1px solid var(--line2); border-radius: 11px; padding: 16px 18px; }
.flight .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.flight .hd .dt { font-size: 12.5px; color: var(--ink2); }
.flight .fl { display: flex; flex-direction: column; gap: 11px; margin-top: 13px; }
.flight .r1 { display: flex; align-items: baseline; gap: 11px; }
.flight .no { font-size: 11px; color: var(--blue); width: 56px; flex: none; }
.flight .arc { flex: 1; display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.flight .arc .t { white-space: nowrap; }
.flight .arc .t b { font-weight: 400; font-size: 16px; }
.flight .arc .t span { font-size: 12px; color: var(--ink2); }
.flight .arc .dash { flex: 1; height: 1px; background: rgba(26, 42, 56, .16); }
.flight .detail { font-size: 11px; color: var(--ink3); margin-top: 4px; padding-left: 67px; line-height: 1.5; }
.flight .conn { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line2); font-size: 11.5px; color: var(--gold); line-height: 1.5; }

/* ---------- practical ---------- */

/* Deliberately NOT .stack: that sets display:flex on its direct children,
   which would lay each entry's lines out side by side. */
.poilist { display: flex; flex-direction: column; gap: 1px; background: var(--line2); border-radius: 10px; overflow: hidden; }
.poi { background: var(--sand); padding: 14px 15px; }
.poi .r1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.poi .nm { font-size: 14px; line-height: 1.3; }
.poi .addr { font-size: 11.5px; color: var(--ink2); margin-top: 4px; line-height: 1.55; }
.poi .hrs { font-size: 11.5px; color: var(--ink3); margin-top: 3px; line-height: 1.55; }
.poi .links { display: flex; gap: 12px; margin-top: 7px; }
.poi .links a { font-size: 11.5px; }
.poi .links a.route { color: var(--green); }
.chip.sel { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip.sel .n { opacity: .7; }

.status { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.status.yes { color: var(--green); font-weight: 500; }

.week { margin-top: 7px; display: flex; flex-direction: column; gap: 2px; }
.wrow { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink3); }
.wrow .wd { flex: none; }
.wrow .wt { text-align: right; }
.wrow.shut .wt { opacity: .6; }
.wrow.today { color: var(--ink); font-weight: 500; }

.open {
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; background: rgba(26, 42, 56, .06); color: var(--ink3);
}
.open.yes { background: rgba(62, 140, 126, .14); color: var(--green); }

/* ---------- lists ---------- */

form.add { display: flex; gap: 7px; margin-bottom: 14px; }
form.add input {
  flex: 1; background: var(--sand); border: 1px solid rgba(26, 42, 56, .14); color: var(--ink);
  border-radius: 9px; padding: 10px 13px; font-size: 16px; outline: none; min-width: 0;
}
form.add button { background: var(--blue); color: var(--bg); border: none; border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 500; cursor: pointer; }

.shop-row { display: flex; align-items: center; gap: 11px; background: var(--sand); border-radius: 9px; padding: 10px 13px; }
.shop-row .box {
  width: 21px; height: 21px; flex: none; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  border: 1px solid rgba(26, 42, 56, .25); background: transparent; color: var(--bg);
}
.shop-row .box.on { border-color: var(--green); background: var(--green); }
.shop-row .lbl { flex: 1; font-size: 13.5px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.shop-row .lbl.done { color: var(--ink3); text-decoration: line-through; }
.shop-row .by { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.shop-row .del { background: none; border: none; color: #8A98A0; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }

button.linky { background: none; border: none; color: var(--ink3); font-size: 11.5px; cursor: pointer; padding: 2px; }

button.pack {
  cursor: pointer; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; transition: all .15s;
  border: 1px solid rgba(26, 42, 56, .14); background: transparent; color: var(--ink4);
}
button.pack.on {
  border-color: rgba(62, 140, 126, .5); background: rgba(62, 140, 126, .14); color: var(--green);
  text-decoration: line-through; text-decoration-color: rgba(47, 111, 99, .45);
}

/* ---------- add to home screen ---------- */

.install {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 14px;
  padding: 16px 20px;
}
.install img { width: 44px; height: 44px; border-radius: 10px; flex: none; border: 1px solid var(--line); }
.install .txt { flex: 1 1 220px; min-width: 0; }
.install .txt b { display: block; font-weight: 400; font-family: 'Newsreader', serif; font-size: 19px; }
.install .txt span { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 3px; line-height: 1.5; }
.install .acts { display: flex; gap: 8px; align-items: center; }

.howto { margin-top: 12px; width: 100%; background: var(--sand); border-radius: 10px; padding: 14px 16px; }
.howto ol { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink4); line-height: 1.75; }
.howto .share {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; vertical-align: -4px;
  border: 1px solid var(--ink3); border-radius: 4px; color: var(--blue); font-size: 12px;
}

/* ---------- sync banner ---------- */

.sync {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60;
  background: var(--ink); color: var(--bg); border-radius: 999px;
  padding: 9px 18px; font-size: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sync.show { opacity: 1; }
.sync.warn { background: var(--gold); }

/* ---------- footer ---------- */

footer { max-width: 1240px; margin: 44px auto 0; padding: 0 22px; }
footer .rule { display: flex; flex-direction: column; gap: 2.5px; margin-bottom: 14px; }
footer .rule i { width: 100%; height: 2px; background: var(--ink); opacity: .18; }
footer .rule i:nth-child(2) { opacity: .07; }
footer p { margin: 0; font-size: 11.5px; color: var(--ink3); line-height: 1.7; max-width: 80ch; }

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .map-grid { grid-template-columns: 1fr; }
  #map-slot, #map { height: 52vh; min-height: 300px; }
  .place-list { max-height: none; }
  .top-row { padding-top: 12px; gap: 10px 16px; }
  .whoami { width: 100%; margin-left: 0; justify-content: space-between; padding-bottom: 4px; }
  .whoami .lab { text-align: left; }
  select.me { max-width: none; flex: 1; margin-left: 12px; }
  main { padding: 20px 16px 0; }
  .wrap, .top-row, nav.tabs, footer { padding-left: 16px; padding-right: 16px; }
  .card { padding: 20px 18px; }
  .card.pad-sm { padding: 18px 16px; }
  .gwenn { display: none; }
}
