/* Tokens from the design canvas https://claude.ai/artifact/TbsJnYNYaAEzoLqh3JNGHE */
:root {
  --paper: #F6F3EC; --card: #FFFDF8; --inset: #EEEAE0; --ink: #1F2822; --muted: #5C665F;
  --line: #E2DED3; --green: #263D34; --verm: #B4412F; --verm-dark: #8E3021; --gold: #D9B377;
  --f1: #2D5A4A; --f2: #3D4F8F; --warn-bg: #F6E3DC; --warn-ink: #5A2015; --tip-bg: #F3EBDA; --tip-ink: #4A3A1C;
  --serif: 'Lora', Georgia, serif; --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; }
a { color: var(--verm); }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.s { width: 16px; height: 16px; }
.ic.xs { width: 13px; height: 13px; }

#app { max-width: 560px; margin: 0 auto; padding-bottom: calc(110px + var(--safe-b)); min-height: 100vh; }
.pad { padding: 0 20px; }
.top { padding: calc(18px + var(--safe-t)) 20px 0; display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.1; letter-spacing: -.01em; }
h1.big { font-size: 34px; line-height: 1.05; }
h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.section { padding: 26px 20px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--inset); color: var(--ink); white-space: nowrap; }
.fam-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.clock { text-align: right; font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 600; }
.clock b { color: var(--ink); font-weight: 800; font-size: 15px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.list { overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: inherit; text-decoration: none; min-height: 60px; }
.lrow:active { background: #FBF8F1; }
.th { width: 44px; height: 44px; border-radius: 12px; background: var(--inset); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.ttl { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.sub { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; line-height: 1.4; flex-wrap: wrap; }
.chev { color: var(--muted); }

.progress { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line); }
.progress .done { background: var(--green); }
.progress .now { background: var(--verm); }

.now-card { margin: 20px 16px 0; padding: 20px; border-radius: 24px; background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.now-card .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.now-card .t { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.now-card .d { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.8); }
.now-card .ib { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.btn-row { display: flex; gap: 8px; }
.btn-w { flex: 1; height: 44px; border-radius: 14px; background: #fff; color: var(--green); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; text-decoration: none; border: 0; }
.btn-o { flex: 1; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-decoration: none; }

/* timeline */
.tl { display: flex; gap: 12px; }
.tl .t { width: 48px; flex: none; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl .rail { width: 14px; flex: none; display: flex; flex-direction: column; align-items: center; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); background: var(--paper); margin-top: 6px; flex: none; }
.tl .ln { width: 2px; flex: 1; background: var(--line); margin: 3px 0; }
.tl .body { flex: 1; min-width: 0; padding-bottom: 16px; }
.tl.done { color: var(--muted); }
.tl.done .dot { background: var(--muted); }
.tl.next .t { color: var(--verm); }
.tl.next .dot { border-color: var(--verm); }
.tl.place .dot { border-color: var(--verm); background: var(--verm); }
.tl.done.place .dot { border-color: var(--muted); background: var(--muted); }
.tl .text { font-size: 14.5px; line-height: 1.45; }
.tl.compact .text { font-weight: 700; font-size: 15px; }
.now-line { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; color: var(--verm); font-size: 12px; font-weight: 800; }
.now-line .t { width: 48px; font-variant-numeric: tabular-nums; }
.now-line i { width: 10px; height: 10px; border-radius: 50%; background: var(--verm); margin-left: 2px; }
.now-line hr { flex: 1; height: 2px; border: 0; background: var(--verm); margin: 0; }
.now-line span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.move { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--inset); font-size: 13.5px; line-height: 1.4; }
.move .ic { margin-top: 1px; }
.place-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.place-card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
.pt { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.pt::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--verm); margin-top: 8px; flex: none; }
.bul { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.note-box { padding: 12px 14px; border-radius: 16px; background: var(--tip-bg); color: var(--tip-ink); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.warn { margin: 10px 16px 0; padding: 16px; border-radius: 20px; background: var(--warn-bg); display: flex; gap: 12px; color: var(--warn-ink); font-size: 14px; line-height: 1.45; }
.warn .ic { color: var(--verm); margin-top: 1px; }
.btn { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:active { background: var(--inset); }
.btn.danger { color: var(--verm); }
.link-btn { border: 0; background: none; padding: 8px 0; font-size: 14px; font-weight: 800; color: var(--verm); cursor: pointer; }

/* cover */
.cover { position: relative; height: 300px; background: #14201B; }
.cover img { width: 100%; height: 300px; object-fit: cover; }
.cover .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,19,.35) 0%, rgba(15,22,19,0) 35%, rgba(15,22,19,.8) 100%); }
.cover .back { position: absolute; left: 16px; top: calc(14px + var(--safe-t)); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cover .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.cover .cap .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.cover .cap h1 { margin-top: 6px; font-size: 27px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.daynav { display: flex; gap: 8px; padding: 22px 20px 0; }
.daynav a { flex: 1; }

/* route */
.filters { display: flex; gap: 8px; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.stay-h { display: flex; align-items: flex-start; gap: 10px; padding: 20px 4px 10px; }
.stay-h .ic { color: var(--verm); margin-top: 2px; }
.day-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.day-row + .day-row { margin-top: 8px; }
.day-row img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; flex: none; }
.day-row .k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-row .n { font-family: var(--serif); font-size: 17px; line-height: 1.2; display: block; margin-top: 2px; }
.day-row.past { opacity: .62; }
.day-row.now { border: 2px solid var(--verm); padding: 9px; }
.move-line { display: flex; align-items: center; gap: 8px; padding: 12px 6px 0 30px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* segmented */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--inset); }
.seg button { flex: 1; height: 40px; border-radius: 12px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(31,40,34,.12); }

/* docs */
.gh { display: flex; align-items: center; gap: 8px; padding: 22px 4px 10px; font-size: 13px; font-weight: 800; }
.gh span { color: var(--muted); font-weight: 700; }
.quick { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 2px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.qt { flex: none; width: 140px; padding: 14px; border-radius: 18px; background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.qt .ic { color: var(--gold); }
.qt b { font-size: 14px; line-height: 1.25; }
.qt span { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; }
.fab { position: fixed; right: max(18px, calc(50vw - 262px)); bottom: calc(104px + var(--safe-b)); height: 54px; padding: 0 22px 0 18px; border-radius: 27px; background: var(--verm); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; border: 0; box-shadow: 0 8px 20px -6px rgba(180,65,47,.55); z-index: 15; cursor: pointer; }
.doc-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.55; padding: 16px; }
.doc-img { border-radius: 16px; border: 1px solid var(--line); background: #fff; width: 100%; }
.privacy { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 600; }

/* photos */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.pgrid a { aspect-ratio: 1; background: var(--inset); display: block; overflow: hidden; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; }
.viewer { position: fixed; inset: 0; background: #0E1410; color: #fff; z-index: 40; display: flex; flex-direction: column; }
.viewer .vbar { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-t)) 14px 10px; gap: 10px; }
.viewer .vimg { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer .vimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vfoot { padding: 12px 20px calc(18px + var(--safe-b)); font-size: 13px; color: rgba(255,255,255,.75); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cb { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; border: 0; text-decoration: none; cursor: pointer; }
.cb.light { background: var(--inset); color: var(--ink); }

/* money */
.bal { margin: 16px 16px 0; padding: 20px; border-radius: 24px; background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.bal .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.bal .big { font-family: var(--serif); font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.bal .dash { border-top: 1px dashed rgba(255,255,255,.25); }
.bal .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bal .grid small { display: block; font-size: 12px; color: rgba(255,255,255,.72); font-weight: 600; }
.bal .grid b { font-size: 15px; font-variant-numeric: tabular-nums; }
.who { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* checklist */
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; cursor: pointer; }
.ck input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); flex: none; }
.ck.ok .ttl { text-decoration: line-through; color: var(--muted); }
.x { border: 0; background: none; color: var(--muted); padding: 6px; cursor: pointer; display: inline-flex; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.in { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-size: 15px; font-weight: 600; }
textarea.in { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.in:focus { outline: none; border-color: var(--verm); }
.note-card { padding: 14px 16px; }
.note-card .by { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.note-card .tx { font-size: 14px; line-height: 1.5; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(17,24,20,.5); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
.lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.vis { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.vis.on { border: 2px solid var(--f1); padding: 13px; background: #F1F6F3; }
.vis input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--f1); flex: none; }
.primary { height: 54px; border-radius: 16px; border: 0; background: var(--verm); color: #fff; font-size: 16px; font-weight: 800; width: 100%; cursor: pointer; }
.primary:disabled { opacity: .5; }
.err { color: var(--verm); font-size: 13px; font-weight: 700; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(64px + var(--safe-b)); padding: 6px 6px var(--safe-b); background: rgba(255,253,248,.97); border-top: 1px solid var(--line); display: flex; justify-content: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tabs .in-tabs { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tab.on { color: var(--verm); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; z-index: 50; max-width: 90vw; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; background: #14201B url(/img/day00.jpg) top center / 100% auto no-repeat; color: #fff; padding: 0 24px calc(40px + var(--safe-b)); }
.login h1 { font-size: 44px; }
.offline { background: var(--tip-bg); color: var(--tip-ink); font-size: 12.5px; font-weight: 700; padding: 8px 20px; text-align: center; }

/* photo feed */
.feed { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.post { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.post-img img { width: 100%; height: auto; background: var(--inset); }
.post-a { display: flex; align-items: center; gap: 8px; padding: 6px 8px 2px; }
.post-a .likes { font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; }
.post-a .likes b { color: var(--ink); }
.post-c { padding: 2px 14px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.like { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.like .ic { width: 26px; height: 26px; }
.like.on { color: var(--verm); }
.like.on .ic { fill: currentColor; }
.like.dark { color: #fff; width: auto; padding: 0 10px; }
.like.dark.on { color: #FF8A73; }
@media (min-width: 560px) { .post { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 0 16px; } }

/* upload progress, outside #app */
.upbar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + var(--safe-t)); width: calc(100% - 24px); max-width: 536px; z-index: 45; background: var(--green); color: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 24px -8px rgba(17,24,20,.45); font-size: 13.5px; font-weight: 600; }
.up-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.up-row > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.up-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); margin-top: 9px; overflow: hidden; }
.up-track span { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .2s; }
.up-note { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.75); }
.upbar .btn { height: 34px; }
