:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #193b40;
  --text-muted: #55706f;   /* 5.3:1 on --bg */
  --primary: #176d70;
  --primary-press: #115558;
  --primary-soft: #e3efee;
  --accent: #d66b50;
  --accent-text: #b04f36;  /* AA on white for small text */
  --accent-soft: #f8e7e1;
  --border: #dce5e2;
  --radius-card: 14px;
  --radius-btn: 10px;
  --tap: 44px;
  --shadow-card: 0 1px 2px rgba(25,59,64,.06), 0 4px 14px rgba(25,59,64,.07);
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, sans-serif;
  /* 入れ物の色タグ（ティール/テラコッタ基調＋くすみ色） */
  --tag-teal: #176d70;
  --tag-terracotta: #d66b50;
  --tag-sage: #7f9e8a;
  --tag-sand: #c9a66b;
  --tag-slate: #5b7a8c;
  --tag-rose: #c08a86;
  --tag-ink: #193b40;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.6; letter-spacing: .01em; font-feature-settings: "palt" 1; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

#app { max-width: 720px; margin: 0 auto; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar h1 { text-wrap: balance; flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: .02em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.topbar-actions { display: flex; gap: 4px; flex: none; align-self: flex-start; }
#backBtn { flex: none; align-self: flex-start; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--radius-btn); cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#backBtn { margin-left: -10px; }

main { padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 32px); outline: none; } /* 72px+ clear of the tab bar */
@media (min-width: 760px) { main { padding-bottom: calc(var(--tabbar-h) + 16px + var(--safe-b) + 32px); } }
.view-enter { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tab bar */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; max-width: 720px; margin: 0 auto; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 600; min-height: var(--tap); }
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tabbar a.active { color: var(--primary); }
.tabbar a.active svg { transform: translateY(-1px); stroke-width: 2.2; }
@media (min-width: 760px) { .tabbar { bottom: 16px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); height: var(--tabbar-h); padding: 0; left: 16px; right: 16px; } }

/* Generic */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; }
.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-btn); border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-press); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-danger { background: transparent; color: var(--accent-text); border-color: var(--border); }
.btn-danger:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty svg { width: 64px; height: 64px; stroke: var(--border); fill: none; stroke-width: 1.6; margin: 0 auto 8px; display: block; }

/* Trip list */
.hero { padding: 18px; margin-top: 6px; background: var(--primary); color: #fff; border-radius: var(--radius-card); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero p { margin: 0 0 12px; font-size: 14px; opacity: .92; }
.hero h2 { margin: 0 0 4px; font-size: 18px; }
.hero .btn { background: #fff; color: var(--primary); }
.trip-card { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; text-decoration: none; color: inherit; transition: transform .15s; }
.trip-card:active { transform: scale(.99); }
.trip-card .avatars { display: flex; flex: none; }
.trip-card .avatars .av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; overflow: hidden; background: var(--primary-soft); }
.trip-card .avatars .av:first-child { margin-left: 0; }
.trip-card .meta { flex: 1; min-width: 0; }
.trip-card .meta strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-card .ring { flex: none; }
.ring { width: 46px; height: 46px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: var(--border); }
.ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .5s ease; transform: rotate(-90deg); transform-origin: center; }
.ring text { font-size: 12px; font-weight: 700; fill: var(--text); text-anchor: middle; dominant-baseline: central; }

/* Character grid */
.char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .char-grid { grid-template-columns: repeat(3, 1fr); } }
.char-card { position: relative; padding: 0; border: 0; text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .2s; }
.char-card .photo { aspect-ratio: 1; background: var(--primary-soft); overflow: hidden; }
.char-card .photo img, .char-card .photo svg { width: 100%; height: 100%; object-fit: cover; }
.char-card .info { padding: 10px 12px 12px; }
.char-card .info strong { display: block; font-size: 15px; }
.char-card .info span { font-size: 12px; color: var(--text-muted); }
.char-card.selectable { outline: 0 solid var(--primary); }
.char-card.selected { box-shadow: 0 0 0 3px var(--primary), var(--shadow-card); }
.char-card .check-badge { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid #176d70; box-shadow: 0 1px 4px rgba(25,59,64,.25); display: grid; place-items: center; transition: all .2s; }
.char-card .check-badge svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .2s; }
.char-card.selected .check-badge { background: var(--primary); border-color: var(--primary); }
.char-card.selected .check-badge svg { opacity: 1; transform: scale(1); }
.add-card { border: 2px dashed var(--border); background: transparent; box-shadow: none; border-radius: var(--radius-card); display: grid; place-items: center; min-height: 180px; color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: none; gap: 4px; }
.add-card svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Checklist */
.progress-card { padding: 16px; margin-top: 6px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.progress-head .count { font-size: 28px; font-weight: 800; letter-spacing: .01em; }
.progress-head .count small { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.bar.done > i { background: var(--accent); }
.seg { display: flex; padding: 4px; gap: 4px; background: #ecebe5; border-radius: 12px; margin: 14px 0 6px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(25,59,64,.12); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 2px; font-size: 14px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.group { margin-top: 16px; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.group-head .av { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; background: var(--primary-soft); display: grid; place-items: center; }
.group-head .av svg, .group-head .av img { width: 100%; height: 100%; object-fit: cover; }
.group-head .av.tag { border-radius: 12px; }
.group-head .av.tag svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.group-head h3 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.group-head .mini { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.group-head .mini.done { color: var(--primary); }

.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-bottom: 1px solid var(--border); transition: background .25s; }
.item:last-child { border-bottom: 0; }
.item { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.item:hover { background: #fbfbf9; }
.item.packed > .checkbox, .item.packed > .name { opacity: .6; }
.item.packed .name { color: #575750; text-decoration: line-through; text-decoration-color: rgba(87,87,80,.55); }
.item.packed .cselect { opacity: .75; }
.item.packed .move-btn { opacity: .5; } /* lighter but still tappable */
.item.packed .move-btn:hover, .item.packed .move-btn:focus-visible { opacity: 1; }
.item .name .owner-chip { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; text-decoration: none; }
.move-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.move-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.move-btn:hover { background: var(--primary-soft); }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-list button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius-btn); border: 1px solid var(--border); background: #fff; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.pick-list button[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.pick-list .sw { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.checkbox { flex: none; width: var(--tap); height: var(--tap); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 12px; }
.checkbox .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #b9c9c5; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.checkbox svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .28s ease .05s; }
.item.packed .checkbox .box { background: var(--primary); border-color: var(--primary); }
.item.packed .checkbox svg { stroke-dashoffset: 0; }
.item.pop .checkbox .box { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.item .name { flex: 1; min-width: 0; font-size: 15px; transition: color .2s; overflow-wrap: anywhere; }
.item .name small { display: block; font-size: 12px; color: var(--text-muted); text-decoration: none; }
.cselect { position: relative; flex: none; max-width: 120px; }
.cselect select { width: 100%; overflow: hidden; white-space: nowrap; }
.cselect select { appearance: none; -webkit-appearance: none; min-height: 36px; max-width: 100%; padding: 4px 28px 4px 26px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer; text-overflow: ellipsis; }
.cselect::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--c, #c8d3d0); pointer-events: none; }
.cselect::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); pointer-events: none; }
.cselect.unset select { color: var(--text-muted); border-style: dashed; }
.item.leaving { animation: leave .3s ease forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(16px); } }
.all-done { text-align: center; padding: 26px 16px; }
.all-done .big { font-size: 40px; line-height: 1; }

/* Containers */
.cont-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 12px; cursor: pointer; text-decoration: none; color: inherit; }
.cont-card .thumb { width: 56px; height: 56px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center; }
.cont-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cont-card .thumb svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linejoin: round; }
.cont-card strong { display: block; }

/* Forms / sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(25,59,64,.35); animation: fade .2s ease; display: flex; align-items: flex-end; justify-content: center; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 8px 18px calc(20px + var(--safe-b)); animation: up .28s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 10px; }
.sheet h2 { font-size: 19px; margin: 4px 0 14px; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.input { width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: var(--radius-btn); border: 1px solid var(--border); background: #fff; font-size: 16px; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(214,107,80,.35); }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .preview { width: 96px; height: 96px; border-radius: var(--radius-card); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); flex: none; display: grid; place-items: center; }
.photo-pick .preview img, .photo-pick .preview svg { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .actions { display: flex; flex-direction: column; gap: 8px; }
.photo-pick input[type=file] { display: none; }
.item-editor { list-style: none; margin: 0; padding: 0; }
.item-editor li { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-btn); margin-bottom: 6px; }
.item-editor li input { flex: 1; border: 0; min-height: 40px; background: transparent; font-size: 15px; min-width: 0; }
.item-editor li input:focus { outline: none; }
.item-editor li:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(214,107,80,.3); }
.item-editor .icon-btn { width: 40px; height: 40px; color: var(--text-muted); }
.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { border: 1px dashed var(--border); background: transparent; border-radius: 999px; padding: 4px 12px; min-height: 34px; font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 600; }
.suggest button:hover { background: var(--primary-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); transition: transform .15s, box-shadow .15s; }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--text); transform: scale(1.05); }
.swatches input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: calc(-20px - var(--safe-b)); padding: 12px 0 calc(4px + var(--safe-b)); background: var(--bg); }
.sheet-actions .btn { flex: 1; }

/* settings */
.list-card { overflow: hidden; }
.list-card .row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-bottom: 1px solid var(--border); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; text-decoration: none; color: inherit; font-size: 15px; }
.list-card .row:last-child { border-bottom: 0; }
.list-card .row:hover { background: #fbfbf9; }
.list-card .row .grow { flex: 1; }
.list-card .row.danger { color: var(--accent-text); }

#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); background: #193b40; color: #fff; box-shadow: 0 6px 20px rgba(25,59,64,.25); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.update { font-size: 15px; padding: 12px 20px; }

/* confetti lives inside the progress card, behind its text */
.progress-card { position: relative; overflow: hidden; isolation: isolate; }
.progress-card > :not(.confetti) { position: relative; z-index: 1; }
.confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i { position: absolute; top: -14px; width: 7px; height: 11px; border-radius: 2px; opacity: .9; animation: fall 1.1s ease-in forwards; }
@keyframes fall { to { transform: translateY(190px) rotate(420deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* wordmark */
.wordmark { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding-right: 2px; }
.wordmark b { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.wordmark span { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: .14em; }
/* 100% packed */
.progress-card { transition: background .4s ease, color .4s ease; }
.progress-card.complete { background: #b9553d; color: #fff; }
.progress-card.complete .muted, .progress-card.complete .count small { color: #fff; opacity: .95; }
.progress-card.complete .bar { background: rgba(255,255,255,.35); }
.progress-card.complete .bar > i { background: #fff; }
.ok-badge { display: none; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.ok-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.progress-card.complete .ok-badge { display: inline-flex; animation: pop .45s ease; }
.progress-card.complete .date-label { display: none; }

@media (max-width: 340px) { .topbar h1 { font-size: 18px; } }
/* v2.3: trip menu, one-off items, sync diff */
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: #fff; text-align: left; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; }
.menu-row:hover { background: #fbfbf9; }
.menu-row svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-row .grow { flex: 1; min-width: 0; }
.menu-row small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.menu-row.danger { color: var(--accent-text); }
.menu-row.danger svg { stroke: var(--accent-text); }
#moreTrip svg circle { fill: currentColor; stroke: none; }
.add-extra { width: 100%; min-height: 56px; margin-top: 16px; display: flex; gap: 8px; place-items: center; justify-content: center; font-size: 14px; }
.add-extra svg { width: 22px; height: 22px; }
.group-head .av.tag svg[viewBox] { stroke: #fff; }
.diff-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.diff-sum .chip { font-size: 13px; padding: 4px 12px; }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip-muted { background: #ecebe5; color: var(--text-muted); }
.sheet .label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 10px 0 4px; }
.diff-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-btn); }
.diff-list li { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.diff-list li:last-child { border-bottom: 0; }
.diff-list li small { color: var(--text-muted); margin-left: 6px; }
.diff-list.add li { color: var(--primary); font-weight: 600; }
.diff-list.rm li { color: var(--accent-text); font-weight: 600; }
select.input { appearance: auto; }

/* v2.3.1: one-off rows — long-press to delete */
.item[data-extra] { -webkit-touch-callout: none; touch-action: manipulation; }
.item.pressing { background: #fbf3ef; transition: background .5s linear; }
.item.armed { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.extra-del-list button { justify-content: space-between; }
.extra-del-list .del-label { color: var(--accent-text); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.extra-del-list .del-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hint { font-size: 12px; color: var(--text-muted); padding: 8px 16px 10px; }

/* v2.3.2: 「ー」や小さいかなで行が始まらないように（全ての持ち物行） */
.item .name { line-break: strict; word-break: normal; }
