:root{--paper:#f4efe4;--ink:#292a23;--muted:#716e60;--red:#a34231;--green:#3e5d4d;--line:#d9d0bf;--wash:#eae3d5;--serif:"Shippori Mincho B1",serif;--sans:"Zen Kaku Gothic New",system-ui,sans-serif;--num:"Outfit",sans-serif}
*{box-sizing:border-box}body{margin:0;background:#ded9cd;color:var(--ink);font:15px/1.75 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;min-height:44px}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a9803d;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif)}a{color:var(--red);text-underline-offset:4px;overflow-wrap:anywhere}::selection{background:#d8b29c}.prose{white-space:pre-wrap;overflow-wrap:anywhere}.book{max-width:1000px;margin:28px auto 0;background:var(--paper);border-radius:16px 16px 0 0;box-shadow:0 12px 70px #31251414;min-height:calc(100dvh - 28px);padding-bottom:110px;overflow:clip}.hero{padding:22px 40px 24px}.topline,.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.edition{font-size:11px;letter-spacing:.14em;color:var(--muted)}.menu-button{font-size:19px;letter-spacing:3px;width:46px;border:1px solid var(--line);border-radius:50%}.hero-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 26px}.eyebrow{font:400 11px/1.6 var(--num);color:var(--red);letter-spacing:.19em}.hero h1{font-weight:800;font-size:40px;line-height:1.5;letter-spacing:.07em;margin:9px 0 7px}.subtitle{font-size:13px;color:var(--muted);letter-spacing:.1em}.travel-seal{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:74px;height:87px;border:1px solid var(--red);outline:1px solid var(--red);outline-offset:-5px;border-radius:36px 36px 5px 5px;transform:rotate(5deg);color:var(--red)}.travel-seal span{font:600 37px/1.2 var(--serif)}.travel-seal small{font:400 10px/1.6 var(--num);letter-spacing:.22em;padding-left:3px}.stamp-strip{display:flex;align-items:center;gap:20px;padding:18px 0 0;border-top:1px dashed #c7bcaa;min-height:110px}.stamp-caption{display:grid;grid-template-columns:auto auto;gap:0 14px;align-items:center}.stamp-caption>span{font-size:12px}.stamp-caption strong{font:400 36px/1 var(--num);color:var(--red)}.stamp-caption small{grid-column:1/-1;font-size:10px;color:var(--muted);margin-top:6px}.stamp-preview{display:flex;align-items:center;flex:1;min-width:0}.stamp-button{padding:0;margin-right:-10px;border-radius:50%;flex-shrink:0}.stamp-button:hover{transform:translateY(-4px)}.empty-stamps{display:flex;gap:12px}.empty-stamps span{width:60px;height:60px;display:grid;place-items:center;border:1px dashed #c6bca9;border-radius:50%;color:#aaa08d;font-size:26px}.first-hint,.badge-link{font-size:11px;color:var(--muted)}.badge-link{color:var(--red);text-align:right}.stamp{--stamp-color:var(--red);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;width:108px;height:108px;border:2px solid var(--stamp-color);outline:1px dashed var(--stamp-color);outline-offset:-7px;border-radius:50%;color:var(--stamp-color);transform:rotate(var(--tilt,-5deg));line-height:1.4;position:relative;background:var(--paper)}.stamp:after{content:"";position:absolute;inset:10px;border-top:1px solid var(--stamp-color);border-bottom:1px solid var(--stamp-color);border-radius:50%;opacity:.35}.stamp b{font:800 24px/1.7 var(--serif);letter-spacing:.08em}.stamp-top,.stamp-bottom{font:400 9px/1.3 var(--num);letter-spacing:.09em}.stamp.move{--stamp-color:#536975}.stamp.food{--stamp-color:#997126}.stamp.stay{--stamp-color:#766477}.stamp.other{--stamp-color:var(--green)}.stamp.small{width:72px;height:72px;outline-offset:-5px}.stamp.small b{font-size:17px}.stamp.small .stamp-top{font-size:7px;letter-spacing:0}.stamp.small .stamp-bottom{font-size:8px}.stamp.small:after{inset:7px}
.days{display:flex;position:sticky;top:0;z-index:5;background:var(--paper);border-block:1px solid var(--line);box-shadow:0 3px 10px #201c1705}.day{flex:1;position:relative;padding:13px 4px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center}.day:last-child{border-right:0}.day small{font:400 10px var(--num);letter-spacing:.16em;color:var(--muted)}.day b{font:600 20px/1.8 var(--serif)}.day span{font-size:11px;color:var(--muted)}.day[aria-pressed=true]{color:var(--red);background:#eadfcd40}.day[aria-pressed=true]:after{content:"";position:absolute;bottom:-1px;left:18px;right:18px;height:3px;background:var(--red)}.view-tabs{display:flex;align-items:center;gap:22px;padding:12px 40px 0}.view-tabs button{padding:0 2px;font-size:13px;border-bottom:2px solid transparent;color:var(--muted)}.view-tabs button.active{border-color:var(--red);color:var(--red);font-weight:700}.sync{margin-left:auto;font-size:10px;color:var(--muted)}.content{padding:28px 40px 0}.plan-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:36px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.section-head h2{font-size:24px;font-weight:600;margin-top:5px}.section-kicker{font-size:11px;letter-spacing:.08em;color:var(--muted);margin-bottom:16px}.section-kicker>span{display:block;font-size:10px;letter-spacing:0;margin-top:4px}.event-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;position:relative}.event-marker{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--red);font:500 16px/1.7 var(--num);padding-top:7px}.event-marker i{width:1px;flex:1;background:repeating-linear-gradient(to bottom,var(--line) 0 3px,transparent 3px 7px);margin-bottom:12px}.event-content{padding-bottom:22px;min-width:0}.kind-label{font-size:10px;letter-spacing:.1em;color:var(--muted)}.event-menu{min-height:32px;width:40px;color:var(--muted);font-size:14px;letter-spacing:2px}.event-content h3{font-size:20px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.event-content>.prose{font-size:13px;color:var(--muted);margin-top:7px}.event-content>a{font-size:12px;display:inline-block;margin-top:6px}.event-actions{margin-top:11px}.checkin-button,.visited-button{border:1px solid #c7bba6;border-radius:24px;font-size:11px;padding:3px 14px;min-height:36px}.checkin-button:hover{background:var(--wash)}.visited-button{color:var(--green);border-color:#a8b5a4;background:#e5e8dc}.visited .event-marker{color:var(--green)}.loose-section{margin-top:18px}.loose-section .event-marker>span{display:grid;place-items:center;width:34px;height:34px;font:500 13px var(--serif);border:1px solid var(--line);border-radius:50%;color:var(--muted)}.loose-section .event-content{padding-bottom:24px}.note-card{padding:22px 20px;border:1px solid var(--line);border-radius:3px;background:#eae3d550;position:relative;margin-top:7px}.note-card:before{content:"";position:absolute;top:-6px;left:calc(50% - 22px);width:44px;height:12px;background:#d9ccb4a8;transform:rotate(-4deg)}.note-card .prose{font-size:13px;color:var(--muted);line-height:1.9}.text-button{font-size:12px;color:var(--red);padding:5px 0;text-align:left;text-decoration:underline;text-decoration-color:#c7a18b;text-underline-offset:5px}.gentle-card{padding:30px 8px;margin-top:12px}.little-star{color:var(--green);font-size:25px}.gentle-card h3{font-size:16px;margin:8px 0 10px}.gentle-card p{font-size:12px;color:var(--muted)}footer{text-align:center;font-family:var(--serif);font-size:12px;color:var(--muted);padding:32px 20px 20px;letter-spacing:.1em;border-top:1px dashed var(--line);margin-top:18px}
.dock{position:fixed;z-index:10;bottom:0;left:0;right:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#f4efe4ed;border-top:1px solid var(--line);backdrop-filter:blur(16px)}.dock-inner{display:flex;gap:10px;max-width:580px;margin:auto}.btn{min-height:48px;padding:11px 20px;border-radius:7px;background:var(--red);color:white;font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;text-decoration:none}.btn.secondary{background:transparent;border-color:#bcaf98;color:var(--ink)}.dock .secondary{flex:1}.dock .primary{flex:1.5}.wide{width:100%;margin-top:12px}.danger{color:var(--red)}.memory-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.memory-card{display:flex;align-items:center;gap:22px;border:1px solid var(--line);padding:24px;text-align:left;border-radius:4px;background:#fcf9f140;min-width:0}.memory-card:hover{background:#fcf9f1}.memory-card-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.memory-card-copy small{font-size:11px;color:var(--muted)}.memory-card-copy strong{font:600 18px/1.6 var(--serif);overflow-wrap:anywhere}.quiz-teaser,.memory-sub{font-size:11px;color:var(--green);overflow-wrap:anywhere}.memory-sub{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty{text-align:center;padding:25px 0 40px;color:var(--muted)}.empty h3{font-size:21px;color:var(--ink);margin:16px 0 10px}.empty p{font-size:13px;margin-bottom:18px}.empty-stamp{display:grid;place-items:center;margin:10px auto 20px;width:108px;height:108px;border:1px dashed #b8ae9b;outline:1px dashed #c7bdab;outline-offset:-7px;border-radius:50%;font:600 36px var(--serif);color:#b6aa92;transform:rotate(-8deg)}
dialog{border:1px solid var(--line);border-radius:12px;padding:0;background:var(--paper);color:var(--ink);width:min(600px,calc(100% - 24px));max-height:90dvh;box-shadow:0 20px 100px #201c173d}dialog::backdrop{background:#201c1760;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}.modal-head h2{font-size:22px;font-weight:600;line-height:1.5}.close{font:300 26px var(--sans);width:40px;flex-shrink:0;color:var(--muted)}.modal-body{padding:24px}.field{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:12px;color:var(--muted);min-width:0}input,textarea,select{width:100%;min-width:0;min-height:46px;border:1px solid #bfb39e;border-radius:5px;padding:9px 11px;background:#fbf8f0;color:var(--ink);font-size:16px;line-height:1.6}textarea{min-height:105px;resize:vertical}.big-input{min-height:130px;line-height:1.8}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--red)}.check-label{display:flex;align-items:center;gap:10px;font-size:12px;margin:12px 0}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.form-grid .field{margin-block:0 10px}.actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;flex-wrap:wrap}.actions .btn{flex:1}.help{font-size:12px;color:var(--muted);line-height:1.85;margin-bottom:14px;overflow-wrap:anywhere}.fineprint{font-size:10px;color:var(--muted);line-height:1.85;margin-top:13px;overflow-wrap:anywhere}.optional{margin:18px 0 10px;border-block:1px solid var(--line);padding:5px 0}.optional summary,.sources summary{cursor:pointer;font-size:12px;color:var(--muted);padding:10px 0;min-height:44px}.optional>.text-button{display:block}.optional .field{margin-bottom:18px}.error{font-size:13px;color:var(--red);background:#f1dfd3;border:1px solid #d7b6a0;border-radius:6px;padding:12px;margin:14px 0;white-space:pre-wrap}.proposal{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}.proposal>.prose{font-size:14px}.change{padding:15px 0;border-bottom:1px dotted var(--line)}.change b,.change small{display:block}.change b{font-size:14px;margin:5px 0}.change p{font-size:12px;color:var(--muted)}.change small{font-size:11px;color:var(--red)}.change .before{color:#817766;font-size:11px;margin-top:8px}.sources{margin-top:15px}.sources a{display:block;font-size:12px;margin:6px 0}.memory-celebration{display:flex;align-items:center;gap:24px;margin:8px 0 24px}.memory-celebration h3{font-size:21px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.memory-celebration .help{margin:0}.memory-celebration>.stamp{animation:stamp-in .35s ease-out}.record-quote{white-space:pre-wrap;font-size:14px;color:var(--muted);border-left:2px solid #b9ae98;padding-left:14px;margin:24px 0;overflow-wrap:anywhere}.unlock{background:#e5e8dc;border:1px solid #bec8b3;border-radius:6px;padding:18px 20px;margin:20px 0;color:var(--green)}.unlock small{display:block;font-size:10px;letter-spacing:.1em}.unlock strong{display:block;font:600 23px/1.7 var(--serif);margin:4px 0}.unlock p{font-size:12px}.quiz-card{border:1px solid #b6c0ac;border-radius:6px;background:#e8ebdf;padding:24px 20px;margin-top:22px}.quiz-card .eyebrow{color:var(--green)}.quiz-card h3{font-size:20px;margin:7px 0 20px}.quiz-question{font-size:15px;line-height:1.9;margin-bottom:18px}.quiz-options{display:flex;flex-direction:column;gap:9px}.quiz-option{display:flex;gap:12px;align-items:center;border:1px solid #c3c9b9;border-radius:5px;background:#f4f3e9;text-align:left;padding:12px;font-size:13px}.quiz-option span{font:500 13px var(--num);border-right:1px solid #c3c9b9;padding-right:12px;color:var(--green)}.quiz-option.correct{border-color:var(--green);background:#d2dfc8}.quiz-option.selected{box-shadow:0 0 0 1px var(--green)}.quiz-result{border-top:1px solid #c3c9b9;padding-top:18px;margin-top:20px;font-size:13px;color:var(--green)}.quiz-result p{margin:10px 0;line-height:1.9}.quiz-result a{color:var(--green);font-size:11px}.ai-working{padding:20px 0;color:var(--red);font-size:12px}.ai-working:before{content:"";display:inline-block;width:12px;height:12px;border:1px solid #cba48e;border-top-color:var(--red);border-radius:50%;margin-right:10px;animation:spin 1s linear infinite}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px;padding-top:10px}.collection-item{display:flex;align-items:center;flex-direction:column;gap:12px;min-width:0;padding:0}.collection-item small{font-size:11px;overflow-wrap:anywhere}.menu-row{display:block;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:17px 0;font-size:14px}.menu-content>.help{margin-top:24px}.invite-box{overflow-wrap:anywhere;font-size:11px;background:var(--wash);padding:14px;border-radius:5px;user-select:all;margin:18px 0}.history-item{padding:15px 0;border-bottom:1px solid var(--line)}.history-item p{font-size:13px;overflow-wrap:anywhere}.history-item small{font-size:11px;color:var(--muted)}.loading,.welcome{max-width:440px;margin:10vh auto;text-align:center;padding:32px 24px}.welcome .travel-seal{margin:0 auto 32px}.welcome h1{font-size:32px;margin:9px 0}.welcome .subtitle{margin-bottom:35px}.welcome .field{text-align:left}.seal{display:inline-grid;place-items:center;color:var(--red);border:1px solid var(--red);width:58px;height:58px;border-radius:13px;font:600 34px var(--serif);margin-bottom:22px}#toast{position:fixed;z-index:100;left:50%;bottom:105px;transform:translateX(-50%) translateY(20px);max-width:min(500px,90vw);width:max-content;border-radius:8px;padding:12px 16px;font-size:13px;background:var(--ink);color:var(--paper);box-shadow:0 8px 24px #0002;opacity:0;transition:.2s;pointer-events:none}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes stamp-in{from{opacity:0;transform:scale(1.25) rotate(-15deg)}to{opacity:1;transform:scale(1) rotate(var(--tilt,-5deg))}}
@media(max-width:760px){body{background:var(--paper)}.book{margin:0;border-radius:0;min-height:100dvh;box-shadow:none}.hero{padding:17px 22px 20px}.hero-row{margin:23px 0}.hero h1{font-size:29px;letter-spacing:.04em}.hero .eyebrow{font-size:9px;letter-spacing:.12em}.travel-seal{width:56px;height:69px}.travel-seal span{font-size:29px}.travel-seal small{font-size:8px}.subtitle{font-size:11px}.stamp-strip{gap:15px;flex-wrap:wrap;min-height:102px;padding-top:18px}.stamp-caption{gap:0 9px}.stamp-caption>span{font-size:11px}.stamp-caption strong{font-size:31px}.stamp-caption small{font-size:9px}.stamp-preview{justify-content:flex-end}.stamp-preview .stamp-button{margin-right:-15px}.stamp-preview .stamp-button:last-child{margin-right:0}.stamp.small{width:56px;height:56px}.stamp.small b{font-size:14px}.stamp.small .stamp-top{font-size:5px}.stamp.small .stamp-bottom{font-size:7px}.empty-stamps{gap:8px}.empty-stamps span{width:44px;height:44px}.first-hint,.badge-link{display:none}.day{padding:12px 3px 14px}.day b{font-size:18px}.day span{font-size:10px}.view-tabs{padding:11px 22px 0;gap:24px}.sync{font-size:9px}.content{padding:24px 22px 0}.plan-grid{grid-template-columns:minmax(0,1fr);gap:12px}.section-head{margin-bottom:22px}.section-head h2{font-size:23px}.event-card{grid-template-columns:43px minmax(0,1fr);gap:12px}.event-content h3{font-size:19px}.event-content>.prose{font-size:12px}.event-marker{font-size:15px}.note-card{padding:20px}.gentle-card{padding:22px 3px;margin:0}.gentle-card .little-star{display:none}.memory-grid{grid-template-columns:minmax(0,1fr)}.memory-card{padding:22px 17px;gap:20px}.memory-card .stamp{width:94px;height:94px}.memory-card .stamp b{font-size:21px}.memory-card-copy strong{font-size:17px}.modal-head{padding:12px 18px}.modal-head h2{font-size:20px}.modal-body{padding:20px 18px}.memory-celebration{gap:18px}.memory-celebration .stamp{width:90px;height:90px}.memory-celebration .stamp b{font-size:20px}.memory-celebration h3{font-size:18px}.memory-celebration .eyebrow{font-size:9px}.quiz-card{padding:20px 16px}.collection-grid{gap:20px 10px}.collection-item .stamp{width:82px;height:82px}.collection-item .stamp b{font-size:19px}.collection-item .stamp-top{font-size:7px}.collection-item .stamp-bottom{font-size:8px}.dock{padding:11px 16px calc(11px + env(safe-area-inset-bottom))}.dock .btn{padding:11px 10px;font-size:13px}}
@media(max-width:365px){.hero{padding-inline:18px}.hero h1{font-size:27px}.hero-row{gap:10px}.hero .travel-seal{width:50px;height:64px}.stamp-caption small{font-size:8px}.stamp-strip{gap:9px}.stamp.small{width:50px;height:50px}.empty-stamps span{width:40px;height:40px}.view-tabs{gap:18px;padding-inline:18px}.content{padding-inline:18px}.sync{font-size:8px}.modal-body{padding:18px 15px}.collection-item .stamp{width:76px;height:76px}.collection-item .stamp b{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.event-marker>span{font-size:13px;white-space:nowrap}.day b{padding:7px 0}.stamp-bottom{letter-spacing:0}
/* Stamps are the main view; itinerary and maintenance stay secondary. */
.hero-row{margin-bottom:18px}.hero{padding-bottom:16px}.stamp-strip{min-height:92px}.first-hint{font-size:10px}.day{padding:8px 4px}.day b{padding:1px 0}.view-tabs{gap:24px}.plan-main{max-width:660px;margin:auto}.plan-main>.help{margin-top:-10px;margin-bottom:28px}.time-section .event-content{padding-top:4px}.memory-empty{max-width:430px;margin:auto;padding-top:12px}.memory-empty p{line-height:2}.empty-stamp .stamp-icon{width:47px;height:42px}.stamp{outline:0;border:2px solid var(--stamp-color);gap:0;background:transparent}.stamp:after{inset:5px;border:1px solid var(--stamp-color);border-radius:inherit;opacity:.55;pointer-events:none}.stamp.sight{border-radius:48% 48% 9px 9px}.stamp.food{border-radius:50%;border-style:dashed}.stamp.move{border-radius:11px}.stamp.other{border-radius:40% 40% 45% 45%}.stamp-icon{width:39px;height:32px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;margin:3px 0 0;flex-shrink:0}.stamp b{font-size:17px;line-height:1.65;letter-spacing:.13em}.stamp-top,.stamp-bottom{font-size:8px;line-height:1.5;letter-spacing:.08em}.stamp.small .stamp-icon{width:25px;height:22px;margin-top:1px}.stamp.small b{font-size:11px;line-height:1.5}.stamp.small .stamp-top,.stamp.small .stamp-bottom{font-size:6px;line-height:1.35}.stamp.small:after{inset:3px}.memory-card .stamp{width:108px;height:112px}.memory-card .stamp b,.memory-celebration .stamp b{font-size:17px}.memory-celebration .stamp{height:112px}.record-quote{margin-top:12px}.menu-content>.optional{margin-top:0}.menu-content .optional .optional{padding-inline:12px;border-inline:1px solid var(--line)}
@media(max-width:760px){.hero-row{margin:17px 0}.hero h1{font-size:27px}.hero .travel-seal{width:50px;height:62px}.hero .travel-seal span{font-size:26px}.stamp-strip{min-height:82px;padding-top:13px}.day{padding:7px 3px}.stamp.small{width:54px;height:59px}.stamp.small .stamp-icon{width:19px;height:16px}.stamp.small b{font-size:10px}.stamp.small .stamp-top,.stamp.small .stamp-bottom{font-size:5px}.stamp.small:after{inset:3px}.memory-card .stamp{width:92px;height:100px}.memory-card .stamp b,.memory-celebration .stamp b{font-size:15px}.memory-celebration .stamp{width:90px;height:100px}.memory-card .stamp .stamp-icon,.memory-celebration .stamp .stamp-icon{width:32px;height:27px}.memory-card{gap:19px}.memory-card-copy strong{font-size:16px}.memory-celebration{gap:18px}.memory-celebration h3{font-size:17px}.stamp-top,.stamp-bottom{font-size:7px}.dock-inner{max-width:480px}.dock .primary{font-size:14px}.view-tabs{padding-top:8px}.content{padding-top:20px}}
