:root {
  /* "Glacier" palette: cool navy-black, mint = taken / go, amber = still need */
  --bg: #0a0e13;
  --card: #121922;
  --card-2: #1a2330;
  --line: #243042;
  --text: #eef3f8;
  --muted: #8796a8;
  --dim: #56647a;
  --accent: #3fe0c5;
  --accent-ink: #032019;
  --need: #ffb547;
  --skip: #7d8a9c;
  --danger: #ff6b6b;
  --radius: 14px;
  --head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
/* Feel like an app, not a web page:
   - no text selection on tap/long-press (stops Android's "Touch to Search" / Google define popup)
   - no double-tap zoom (pinch-zoom still works for accessibility) */
html { touch-action: manipulation; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 22px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Type ---------- */
h1, h2, .display {
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}
h1 { font-size: 27px; }
h2 { font-size: 20px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.accent { color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 36px;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid; place-items: center;
  flex: none;
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.section { margin: 22px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.card + .card { margin-top: 10px; }
.card.tap { width: 100%; text-align: left; display: block; }
.card.tap:active { background: var(--card-2); }
.card.highlight { border-color: var(--accent); }
.card.dashed {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.list-card { display: flex; gap: 14px; align-items: center; }
.list-card .emoji {
  font-size: 28px; width: 52px; height: 52px; border-radius: 12px;
  background: var(--card-2); display: grid; place-items: center; flex: none;
}
.list-card .info { flex: 1; min-width: 0; }
.list-card .name { font-weight: 700; font-size: 18px; }
.list-card.actions { display: flex; gap: 8px; margin-top: 14px; }

.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--card-2); border-radius: 6px; padding: 3px 7px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  padding: 10px 14px;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); background: transparent; border-color: #3d2530; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 17px; height: 17px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; display: flex; }
.progress > span { display: block; height: 100%; transition: width 0.25s ease; }
.progress .p { background: var(--accent); }
.progress .s { background: var(--skip); }
.progress .n { background: var(--need); }

/* ---------- Check (card mode) ---------- */
.check { flex: 1; display: flex; flex-direction: column; }
.check-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 14px; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip.on { border-color: var(--accent); color: var(--accent); }
.chip.done { color: var(--dim); text-decoration: line-through; }

.item-card {
  flex: 1;
  min-height: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  touch-action: pan-y;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.15s;
  user-select: none;
}
.item-card .cat { position: absolute; top: 18px; left: 0; right: 0; }
.item-card .q { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.item-card .item-name { font-family: var(--head); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(30px, 9vw, 46px); line-height: 1.05; word-break: break-word; }
.item-card .note {
  margin-top: 16px; display: inline-block; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 700;
}
.item-card .was { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 13px; color: var(--muted); }
.item-card.fly-right { transform: translateX(110%) rotate(8deg); opacity: 0; }
.item-card.fly-left { transform: translateX(-110%) rotate(-8deg); opacity: 0; }
.item-card.fly-down { transform: translateY(40px); opacity: 0; }
.item-card.drag-p { border-color: var(--accent); }
.item-card.drag-n { border-color: var(--need); }

.answer { margin-top: 14px; }
.answer .btn { min-height: 54px; font-size: 16px; }
.answer .btn.big { min-height: 62px; font-size: 20px; font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; }
.answer .btn.need { color: var(--need); border-color: #4a3b22; }
.answer .btn.skip { color: #b8c3d1; }
.answer .btn-row { margin-top: 10px; }
.subnav { display: flex; justify-content: space-between; margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--muted); font-weight: 600; padding: 8px 4px; display: inline-flex; gap: 6px; align-items: center; }
.link-btn svg { width: 16px; height: 16px; }
.hint { text-align: center; font-size: 12px; color: var(--dim); margin-top: 10px; }

/* ---------- Trip list mode ---------- */
.cat-block { margin-top: 14px; }
.cat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 4px 8px;
}
.cat-head .name { font-family: var(--head); font-weight: 400; font-size: 17px; letter-spacing: 0.02em; }
.items { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: none; }
.item-row .label { flex: 1; min-width: 0; background: none; border: none; text-align: left; padding: 4px 0; }
.item-row .label .n { font-weight: 600; }
.item-row .label .nt { font-size: 13px; color: var(--muted); }
.item-row.st-packed .label .n { color: var(--muted); text-decoration: line-through; }
.item-row.st-skip .label .n { color: var(--dim); }
.seg { display: flex; gap: 4px; flex: none; }
.seg button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2);
  display: grid; place-items: center; color: var(--dim);
}
.seg button svg { width: 18px; height: 18px; }
.seg button.on-packed { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg button.on-need { background: var(--need); color: #1f1400; border-color: var(--need); }
.seg button.on-skip { background: var(--skip); color: #0a0e13; border-color: var(--skip); }

/* ---------- Summary ---------- */
.hero { text-align: center; padding: 10px 0 6px; }
.hero .big-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
}
.hero .big-icon.warn { background: var(--need); }
.hero .big-icon svg { width: 34px; height: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.stat .v { font-family: var(--head); font-weight: 400; font-size: 25px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.p .v { color: var(--accent); }
.stat.n .v { color: var(--need); }
.stat.s .v { color: var(--skip); }
details.sum { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
details.sum > summary {
  list-style: none; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; cursor: pointer;
}
details.sum > summary::-webkit-details-marker { display: none; }
details.sum > summary .chev { transition: transform 0.2s; color: var(--muted); }
details.sum[open] > summary .chev { transform: rotate(90deg); }
details.sum .body { padding: 0 16px 14px; }
.sum-cat { margin-top: 10px; }
.sum-cat .eyebrow { margin-bottom: 4px; }
.sum-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.sum-line:first-of-type { border-top: none; }
.sum-line .btn { flex: none; white-space: nowrap; }
.btn.got { background: transparent; color: var(--accent); border-color: #1d4a44; }
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; margin-right: 8px; }
.dot.p { background: var(--accent); } .dot.n { background: var(--need); } .dot.s { background: var(--skip); } .dot.u { background: var(--dim); }

/* ---------- Edit ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.input {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  min-height: 44px;
}
.input:focus { border-color: var(--accent); }
.input.bare { background: transparent; border-color: transparent; padding: 6px 8px; min-height: 0; }
.input.bare:focus { background: var(--card-2); border-color: var(--line); }
.cat-edit { margin-top: 14px; }
.cat-edit .cat-title { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cat-edit .cat-title .input { font-family: var(--head); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; }
.mini { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.mini:active { background: var(--card-2); }
.mini svg { width: 17px; height: 17px; }
.mini:disabled { opacity: 0.25; }
.edit-row { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-top: 1px solid var(--line); }
.edit-row:first-child { border-top: none; }
.edit-row .label { flex: 1; min-width: 0; background: none; border: none; text-align: left; padding: 6px 0; }
.edit-row .label .nt { font-size: 13px; color: var(--accent); }
.add-row { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.add-row .input { min-height: 40px; padding: 8px 12px; }
.add-row .btn { min-height: 40px; }
.empty { padding: 14px; color: var(--dim); font-size: 14px; text-align: center; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(3,6,10,0.7); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.15s ease;
}
.modal {
  width: 100%; max-width: 560px;
  background: #0f151d; border: 1px solid var(--line); border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px);
  animation: up 0.2s ease;
  max-height: 90dvh; overflow-y: auto;
}
.modal h2 { margin-bottom: 6px; }
.modal .msg { color: var(--muted); margin: 0 0 16px; }
.modal .fields > * + * { margin-top: 12px; }
.modal .btn-row { margin-top: 18px; }
.modal .opts > * + * { margin-top: 8px; }
@media (min-width: 600px) {
  .modal-back { align-items: center; }
  .modal { border-radius: 22px; border-bottom: 1px solid var(--line); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 700;
  padding: 10px 16px; border-radius: 99px; z-index: 60; transition: all 0.2s ease;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer-note { margin-top: auto; padding-top: 28px; text-align: center; font-size: 12px; color: var(--dim); }
.spacer { height: 8px; }

/* ---------- v0.2: bottom tab bar, resume pill, settings menu, import/paste ---------- */
[hidden] { display: none !important; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(12, 17, 24, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar button {
  background: none; border: none; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0 7px; min-height: 54px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tabbar button svg { width: 20px; height: 20px; }
.tabbar button.on { color: var(--accent); }
.tabbar button:active { color: var(--text); }

.resume-pill {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 41;
  bottom: calc(env(safe-area-inset-bottom) + 66px);
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px);
  background: var(--accent); color: var(--accent-ink); border: none; border-radius: 99px;
  padding: 9px 16px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.resume-pill svg { width: 14px; height: 14px; flex: none; }
.resume-pill .pill-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-pill .pill-count { flex: none; font-size: 12px; letter-spacing: 0.06em; opacity: 0.75; }

body.has-tabbar .app { padding-bottom: calc(env(safe-area-inset-bottom) + 86px); }
body.has-tabbar.has-pill .app { padding-bottom: calc(env(safe-area-inset-bottom) + 136px); }
body.has-tabbar .toast { bottom: calc(env(safe-area-inset-bottom) + 72px); }
body.has-tabbar.has-pill .toast { bottom: calc(env(safe-area-inset-bottom) + 118px); }

/* settings-style rows (icon · title/subtitle · chevron) */
.menu-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 12px 14px;
}
.menu-row:active { background: var(--card-2); }
.menu-row .mi { color: var(--accent); display: grid; place-items: center; flex: none; }
.menu-row .mi svg { width: 22px; height: 22px; }
.menu-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-row .t { font-weight: 700; }
.menu-row .s { font-size: 12.5px; color: var(--muted); }
.menu-row.flat { border: none; border-radius: 0; border-top: 1px solid var(--line); background: transparent; }
.items > .menu-row.flat:first-child { border-top: none; }
.emoji-sm { font-size: 19px; width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; flex: none; }

.add-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.add-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13px;
}
.add-tile svg { width: 22px; height: 22px; color: var(--accent); }
.add-tile:active { background: var(--card-2); }

.empty-state { text-align: center; color: var(--muted); padding: 36px 12px; }
.empty-state svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 8px; }
.empty-state .small { margin-top: 6px; }

textarea.input.paste-box { min-height: 200px; resize: vertical; line-height: 1.45; font-size: 15px; }
.pv-cat + .pv-cat { margin-top: 12px; }
.pv-name { font-family: var(--head); font-weight: 400; font-size: 16px; letter-spacing: 0.02em; }
.tag.lc { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: #c7d1dd; padding: 4px 8px; }
.tag.lc b { color: var(--accent); font-weight: 700; }
.btn:disabled { opacity: 0.4; }
.toast { width: max-content; }

/* add an item mid-check */
.link-btn.accent { color: var(--accent); }
.add-line {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: none; border: none; border-top: 1px solid var(--line);
  color: var(--accent); font-weight: 700; font-size: 14px; padding: 12px 14px; text-align: left;
}
.add-line svg { width: 16px; height: 16px; }
.add-line:active { background: var(--card-2); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.35; }
.check-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.check-row b { color: var(--text); }

/* labelled header button (e.g. "Share") so it can't be mistaken for upload/backup */
.icon-btn.label { width: auto; padding: 0 14px; gap: 7px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--accent); }
.icon-btn.label svg { width: 18px; height: 18px; }

/* ---------- v0.4: section picker, last-time hints, share link, update banner ---------- */
.pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pick-head > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pick-head .link-btn { padding: 0; color: var(--accent); font-size: 13px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick {
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 99px;
  background: transparent; border: 1px solid var(--line); color: var(--dim); text-decoration: line-through;
}
.pick span { font-weight: 600; opacity: 0.7; margin-left: 2px; }
.pick.on { border-color: var(--accent); color: var(--accent); background: rgba(63, 224, 197, 0.08); text-decoration: none; }
.last-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35;
  color: var(--need); background: rgba(255, 181, 71, 0.07); border: 1px solid #4a3b22; border-radius: 12px; padding: 10px 12px;
}
.last-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.item-card .last-hint {
  margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 181, 71, 0.1); border: 1px solid #4a3b22; color: var(--need); font-weight: 700; font-size: 14px;
}
.item-card .last-hint svg { width: 15px; height: 15px; }
.item-row .label .lh { font-size: 12px; color: var(--need); font-weight: 700; margin-top: 2px; }
.shared-by {
  display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 12px 14px;
  background: rgba(63, 224, 197, 0.08); border: 1px solid #1d4a44; border-radius: 12px; color: var(--text);
}
.shared-by svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.shared-by b { color: var(--accent); }
.update-bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 10px); z-index: 45;
  display: flex; gap: 12px; align-items: center; white-space: nowrap; max-width: calc(100% - 24px);
  background: var(--card-2); color: var(--text); border: 1px solid var(--accent); border-radius: 99px;
  padding: 10px 16px; font-size: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); animation: fade 0.2s ease;
}
.update-bar .v { color: var(--muted); font-size: 12px; }
.update-bar .go { color: var(--accent); font-weight: 700; }
body.has-update .app { padding-top: calc(env(safe-area-inset-top) + 72px); }

/* ---------- v0.4.2: calmer home — compact "start a check" rows ---------- */
.start-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(63, 224, 197, 0.12); color: var(--accent); border: 1px solid #1d4a44;
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px;
}
.start-pill svg { width: 11px; height: 11px; }
.home-row { padding: 10px 10px 10px 12px; gap: 12px; }
.home-row:active .start-pill { background: var(--accent); color: var(--accent-ink); }
.resume-card { padding: 12px; }
.resume-card .row { gap: 12px; }
.resume-card .grow { display: flex; flex-direction: column; }
.resume-card .t { font-weight: 700; }
.resume-card .s { font-size: 13px; color: var(--muted); }
.resume-card .start-pill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.manage-link { margin: 10px auto 0; display: flex; color: var(--muted); }

/* Lists tab: rows open the editor — say so, in neutral grey (mint "Start" lives on Home) */
.edit-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-2); color: #c7d1dd; border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px;
}
.edit-pill svg { width: 14px; height: 14px; }
.menu-row:active .edit-pill { border-color: var(--muted); }

/* a list just added from Starter lists: mint glow that fades out */
.menu-row.flash { animation: flash-row 2.4s ease-out; }
@keyframes flash-row {
  0%, 25% { background: rgba(63, 224, 197, 0.22); box-shadow: inset 3px 0 0 var(--accent); }
  100% { background: transparent; box-shadow: inset 3px 0 0 transparent; }
}

/* ---------- v0.5: How it works (swipe cards) + Contact ---------- */
.guide { flex: 1; display: flex; flex-direction: column; }
.guide-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.guide-track {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; overscroll-behavior-x: contain;
}
.guide-track::-webkit-scrollbar { display: none; }
.guide-card {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  padding: 8px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.guide-art {
  width: 100%; max-width: 340px; min-height: 270px; margin: 12px 0 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; pointer-events: none;
}
.guide-card h2 { font-size: 24px; margin-bottom: 10px; }
.guide-card p { color: var(--muted); margin: 0; max-width: 340px; line-height: 1.5; }
.guide-dots { display: flex; justify-content: center; gap: 7px; margin: 18px 0 14px; }
.guide-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: all 0.2s ease; }
.guide-dots span.on { width: 22px; background: var(--accent); }
.guide-nav .hide, .guide-top .hide { visibility: hidden; }
.g-mark { width: 88px; height: 88px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto; }
.g-mark svg { width: 50px; height: 50px; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.g-center { justify-content: center; }
.g-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; }
.g-card.g-left { text-align: left; }
.g-card .q { color: var(--muted); font-weight: 600; font-size: 14px; }
.g-card .nm { font-family: var(--head); font-weight: 400; font-size: 28px; letter-spacing: 0.01em; margin-top: 4px; line-height: 1.1; }
.guide-art .answer { margin-top: 0; }
.g-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-btns .btn { min-height: 48px; font-size: 16px; }
.g-btns .btn.primary { grid-column: span 2; }
.g-add { color: var(--accent); font-weight: 700; display: flex; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.g-add svg { width: 15px; height: 15px; }
.g-tick { width: 20px; height: 20px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.g-tick svg { width: 14px; height: 14px; }
.g-stats { margin: 0; }
.guide-art .last-hint {
  margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 181, 71, 0.1); border: 1px solid #4a3b22; color: var(--need); font-weight: 700; font-size: 14px;
}
.guide-art .last-hint svg { width: 15px; height: 15px; }
.guide-art .shared-by { margin: 0; text-align: left; }
.contact-email { font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; font-size: 22px; color: var(--accent); text-align: center; padding: 6px 0; }
a.btn { text-decoration: none; color: inherit; }
a.btn.primary { color: var(--accent-ink); }

/* v0.5.2: "Starter" tag on lists that are still exactly as they came */
.starter-tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--card-2);
}
