:root{--ink:#173d4e;--muted:#56717e;--accent:#eaa643;--paper:#fff;--line:#d6e4e9;--bg:#eff5f8;--sea:#d8ebf4}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans',sans-serif;font-size:16px;line-height:1.6}button,input{font:inherit}button,summary,.filebutton{cursor:pointer}button{border:0;transition:background .15s,transform .15s}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ecac4b;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}button,input,.filebutton{min-height:44px}input{width:100%;border:1px solid #c6d8e0;border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px}header{max-width:1060px;margin:auto;padding:28px 28px 20px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;display:flex;gap:12px;align-items:center;color:var(--ink);font-size:26px;font-weight:800;letter-spacing:.06em}.brand small{display:block;font-size:12px;letter-spacing:.02em;font-weight:500;color:var(--muted)}.brandcat{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:var(--ink);font-size:32px}.version{font-size:12px;color:var(--muted);letter-spacing:.1em}main{max-width:1060px;padding:0 28px;margin:auto}nav{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:22px}.nav{background:transparent;color:var(--muted);padding:10px 23px;border-bottom:3px solid transparent}.nav.active{border-color:var(--ink);font-weight:700;color:var(--ink)}.workspace{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.timer-card,.today,.journey,.settings-card{border-radius:22px;background:var(--paper)}.timer-card{padding:26px 30px;text-align:center}.eyebrow{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.12em;color:var(--muted);font-weight:600}.badge{background:#edf3f6;padding:3px 10px;border-radius:6px;letter-spacing:.08em}.badge.running{color:#fff;background:var(--ink)}.mode-switch{display:flex;background:#eff4f6;padding:4px;border-radius:12px;margin:22px 0}.mode-switch button{flex:1;background:transparent;border-radius:8px;font-size:14px;color:var(--muted);white-space:nowrap;padding:6px}.mode-switch .chosen{background:white;color:var(--ink);box-shadow:0 2px 5px #173d4e10;font-weight:700}.tasklabel{display:block;text-align:left;color:var(--muted);font-size:14px;margin-bottom:6px}#task{background:#f8fbfc}.timer-label{font-size:14px;color:var(--muted);margin:23px 0 0}.clock{font-family:ui-rounded,'SF Pro Rounded',ui-monospace,monospace;font-size:clamp(43px,6.5vw,70px);line-height:1.45;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.reward{font-size:14px;color:var(--muted);min-height:25px;margin-bottom:24px}.reward strong{font-size:22px;color:var(--ink)}.actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.primary{background:var(--ink);color:white;padding:12px 25px;border-radius:12px;font-weight:600}.primary:hover{background:#28576a}.actions .primary{flex:1}.secondary,.filebutton{background:#ecf3f6;color:var(--ink);border-radius:12px;padding:12px 16px;display:inline-block;text-align:center}.secondary:hover,.filebutton:hover{background:#dfeaf0}.hint{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:0}.duration-field{display:flex;align-items:center;gap:9px;justify-content:center;margin-top:12px;font-size:14px}.duration-field input{width:85px}.today{padding:26px 28px;background:var(--ink);color:#fff}h1{font-size:24px;margin:0 0 20px}h2{font-size:18px;margin:0 0 14px}.today h2{font-size:15px;font-weight:500;color:#c9dee7}.today-time{font-size:34px;font-weight:700;letter-spacing:-.02em;margin-bottom:12px}.today-bottom{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #ffffff20}.today-bottom>span{font-size:14px;color:#c9dee7}.today-bottom strong{font-size:22px}.today-bottom strong span{font-size:14px;margin-left:6px}.today .muted{color:#c9dee7}.small{font-size:12px}.goal{margin-top:16px}.goal-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px;gap:5px}.goal progress{height:5px}.journey{margin-top:22px;padding:26px 28px 22px;overflow:hidden}.journey-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.journey h2{font-size:24px;margin:4px 0 0}.journey h2 span{color:#b87715;font-size:34px;margin:0 5px}#location{font-size:14px;color:var(--muted);margin:3px 0 0}.totalcats{text-align:right;white-space:nowrap}.totalcats span{font-size:12px;display:block;color:var(--muted)}.totalcats strong{font-size:32px;line-height:1.1}.totalcats span:last-child{display:inline;margin-left:5px}.map-wrap{height:400px;background:var(--sea);position:relative;border-radius:16px;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.map-tag{position:absolute;top:16px;left:16px;background:#ffffffdf;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:600;pointer-events:none}.map-tools{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:5px}.map-tools button{min-height:40px;min-width:44px;padding:4px 10px;background:#ffffffee;border-radius:8px;color:var(--ink);box-shadow:0 2px 6px #173d4e08;font-size:14px}.map-tools button:nth-child(-n+2){font-size:22px}.map-caption{position:absolute;left:15px;bottom:10px;font-size:12px;color:#426678;pointer-events:none}.journey-bottom{display:flex;justify-content:space-between;margin:15px 0 7px;font-size:12px;color:var(--muted)}progress{width:100%;height:7px;display:block;border:0;border-radius:10px;overflow:hidden;background:#dde8ed}progress::-webkit-progress-bar{background:#dde8ed}progress::-webkit-progress-value{background:var(--accent);border-radius:10px}progress::-moz-progress-bar{background:var(--accent)}.today progress::-webkit-progress-bar{background:#ffffff25}.preview{border-top:1px solid var(--line);margin-top:20px;padding-top:14px;font-size:14px}.preview p{font-size:12px;color:var(--muted)}.preview label{display:flex;justify-content:space-between}.preview input{padding:0;accent-color:var(--ink)}.preview-buttons{display:flex;gap:7px;flex-wrap:wrap}.preview-buttons button{font-size:12px;min-height:36px;padding:6px 12px;border-radius:8px;background:#eff4f6;color:var(--ink)}footer{font-size:12px;color:var(--muted);padding:25px 0 35px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.section-heading h1{margin:0}.section-heading input{width:auto;max-width:55%}.summary{padding:20px 24px;background:var(--ink);color:#fff;border-radius:16px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.record{display:grid;grid-template-columns:1fr auto;gap:8px;padding:17px 21px;border-bottom:1px solid var(--line);background:white}.record:first-child{border-radius:16px 16px 0 0}.record:last-child{border-radius:0 0 16px 16px}.record h3{font-size:16px;margin:0;overflow-wrap:anywhere}.record .meta{font-size:12px;color:var(--muted)}.record-right{text-align:right}.record-right button{display:block;background:none;font-size:12px;color:#8a5050;min-height:32px;margin-left:auto}.empty{padding:40px;text-align:center;color:var(--muted);background:white;border-radius:16px}.manual{margin-top:22px;border:1px solid var(--line);border-radius:16px;padding:20px}.manual form{margin-top:16px}.settings-card{padding:26px 28px;margin-bottom:20px}.settings-card p{font-size:14px;color:var(--muted)}label{display:block;font-size:14px}label input{margin:6px 0 4px}label small{display:block;font-size:12px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:15px 0}.goals{grid-template-columns:repeat(3,1fr)}.settings-card h2:not(:first-child){margin-top:30px}.settings-card .primary{margin-top:18px}.backup{display:flex;flex-wrap:wrap;gap:10px}.backup button,.backup label{font-size:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#173d4ef2;color:#fff;border-radius:12px;padding:12px 20px;max-width:90%;z-index:20;box-shadow:0 10px 40px #173d4e30;font-size:14px}#storageWarning{padding:15px;background:#ffedc9;border-radius:12px;margin-bottom:20px;font-size:14px}[hidden]{display:none!important}@media(max-width:650px){header{padding:20px 18px 16px}.brand{font-size:23px}.brand small{font-size:11px}.version{font-size:10px}main{padding:0 16px}.workspace{grid-template-columns:1fr;gap:15px}.timer-card{padding:20px}.clock{font-size:56px}.today{padding:20px 22px}.today h2{margin-bottom:3px}.today-time{font-size:30px;margin-bottom:6px}.today-bottom{display:inline-flex;width:49%;border:0;gap:10px;padding-right:10px}.today-bottom strong{font-size:19px}.today-bottom>span{font-size:12px}.journey{margin-top:15px;padding:20px 16px}.journey h2{font-size:19px}.journey h2 span{font-size:28px}.totalcats strong{font-size:26px}.map-wrap{height:340px}.form-grid,.goals{grid-template-columns:1fr}.settings-card{padding:22px 20px}.actions .secondary{padding:10px 12px;font-size:14px}.mode-switch{margin:18px 0}.mode-switch button{font-size:12px}.journey-bottom{font-size:11px}.section-heading{align-items:flex-start}.section-heading h1{font-size:21px}.record{padding:14px 16px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}} 
@media(max-width:650px){#timer{display:flex;flex-direction:column}.workspace{display:contents}.timer-card{order:0}.journey{order:1}.today{order:2;margin-top:15px}.map-wrap{height:280px}}

.return-live{width:100%;margin:0 0 12px;background:#fff0d7;color:#785015;font-size:14px}

/* One continuous map-and-timer surface. */
.workspace{align-items:start;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr)}
.timer-card{background:#f8fbfc;padding:24px;overflow:hidden}
.timer-card .journey{background:transparent;border-radius:0;margin:20px 0 0;padding:0;text-align:left}
.timer-card .journey-title{margin-bottom:12px}
.timer-card .journey h2{font-size:21px}
.timer-card .journey h2 span{font-size:30px}
.timer-card .map-wrap{height:564px;border-radius:14px}
.timer-card .timer-label{margin-top:18px}
.timer-card .clock{font-size:60px;line-height:1.3}
.timer-card .reward{margin-bottom:18px}
.timer-card .preview{text-align:left}
.timer-card .journey-bottom{text-align:left;margin-top:20px}
.today{position:sticky;top:20px}
footer a{color:inherit}
@media(max-width:650px){.workspace{display:flex;flex-direction:column;gap:16px}.timer-card{width:100%;padding:18px 16px;order:0}.today{width:100%;position:static;margin-top:0;order:1}.timer-card .map-wrap{height:420px}.timer-card .journey{margin-top:16px}.timer-card .journey h2{font-size:18px}.timer-card .journey h2 span{font-size:26px}.timer-card .timer-label{margin-top:14px}.timer-card .clock{font-size:52px}.timer-card .mode-switch{margin:14px 0}.timer-card .reward{font-size:12px;margin-bottom:14px}.timer-card .totalcats strong{font-size:25px}.timer-card .totalcats span{font-size:11px}.timer-card .eyebrow{font-size:11px}}

/* Persistent bottom navigation and daily calendar. */
body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
.bottom-tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;gap:6px;margin:0;padding:8px max(16px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:0;border-top:1px solid var(--line);background:#fffffffa;box-shadow:0 -5px 24px #173d4e0a;backdrop-filter:blur(14px)}
.bottom-tabs .nav{flex:1;max-width:240px;min-height:48px;padding:10px 12px;border:0;border-radius:12px;font-size:16px}
.bottom-tabs .nav.active{background:var(--ink);color:white}
#toast{bottom:calc(90px + env(safe-area-inset-bottom))}
.calendar-card{background:white;padding:22px;border-radius:20px;margin-bottom:20px}
.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:center;margin-bottom:20px}
.calendar-heading h2{margin:0;font-size:20px}.calendar-heading p{margin:2px 0 0;color:var(--muted);font-size:14px}
.calendar-heading button{font-size:26px;padding:0;min-width:44px;line-height:1}
.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.calendar-weekdays{text-align:center;font-size:14px;color:var(--muted);margin-bottom:8px}.calendar-weekdays span:first-child{color:#a65858}.calendar-weekdays span:last-child{color:#487c9b}
.calendar-day{min-width:0;min-height:76px;background:#f5f8fa;color:var(--ink);border-radius:10px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent}
.calendar-day.has-work{background:#fff1d8}.calendar-day.selected{border-color:var(--ink)}.calendar-day.is-today .calendar-number{text-decoration:underline;text-underline-offset:4px;font-weight:800}
.calendar-number{font-size:16px}.calendar-hours{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.calendar-day:not(.has-work) .calendar-hours{color:#8397a1;font-weight:400}
.calendar-note{font-size:12px;color:var(--muted);margin:14px 0 0}
@media(max-width:650px){.calendar-card{padding:16px 10px}.calendar-days,.calendar-weekdays{gap:3px}.calendar-day{min-height:64px;border-radius:8px;padding:6px 0}.calendar-hours{font-size:14px}.calendar-heading{padding:0 6px;margin-bottom:16px}}

.bottom-tabs .nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 12px;font-size:14px;line-height:1.3;min-height:58px}
.bottom-tabs .nav svg{width:24px;height:24px;flex-shrink:0}
.calendar-hours{min-height:23px;display:flex;align-items:baseline;gap:1px}.calendar-hours small,#calendarTotal small{font-size:.7em;font-weight:400;margin-left:1px}
.calendar-day.is-today{position:static;order:0;width:auto;margin:0}
.day-record-title{font-size:19px;margin:4px 0 12px}
body{padding-bottom:calc(94px + env(safe-area-inset-bottom))}#toast{bottom:calc(102px + env(safe-area-inset-bottom))}

.brandcat{flex-shrink:0}.brand-name{font-size:clamp(18px,2.8vw,26px);letter-spacing:0;line-height:1.4}.version{white-space:nowrap}header{gap:12px}
.focus-launch{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;font-size:14px;padding:8px 18px}.focus-launch svg{width:18px;height:18px}
#focusView{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#fffdf7;color:var(--ink);overflow:auto}
#focusView::backdrop{background:#fffdf7}.focusing{overflow:hidden}
.focus-close{position:absolute;top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));width:44px;height:44px;padding:10px;border-radius:50%;background:transparent;color:var(--muted)}.focus-close svg{width:24px;height:24px}.focus-close:hover{background:#edf3f6}
.focus-content{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:48px;padding:calc(76px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom))}
#focusClock{font-size:clamp(44px,11vw,100px);font-weight:400;letter-spacing:-.045em;line-height:1.2;white-space:nowrap}
#focusCat{width:min(64vw,280px);height:min(64vw,280px);object-fit:contain}
@media(max-width:650px){header{flex-wrap:wrap}.brand{gap:10px}.brand-name{font-size:20px}.brand small{font-size:12px}.version{margin-left:auto;font-size:10px}}
@media(max-height:500px) and (min-width:600px){.focus-content{flex-direction:row;gap:50px;padding-top:60px}#focusClock{font-size:60px}#focusCat{width:180px;height:180px}}

.timer-setup{margin-top:22px;padding-top:4px;border-top:1px solid var(--line);text-align:left}.timer-setup .mode-switch{margin-top:16px}
.actions .focus-launch{margin:0;font-size:14px;padding:10px 14px}.timer-card .reward{margin-top:18px;margin-bottom:0}
@media(max-width:650px){header{padding:12px 16px}.brandcat{width:42px;height:42px;border-radius:14px}.brandcat img{width:32px;height:32px}.brand-name{font-size:18px}.version{display:none}.timer-card{padding:14px 16px}.timer-card .journey{margin-top:12px}.timer-card .map-wrap{height:clamp(284px,calc(100svh - 346px),544px)}.timer-card .clock{font-size:46px}.timer-card .timer-label{margin-top:10px;font-size:12px}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.actions button{min-width:0;padding:8px 10px;min-height:44px;font-size:14px}.actions .focus-launch{padding:8px 6px}.timer-card .reward{margin-top:20px}.timer-setup{margin-top:16px}}

/* Quiet outlined surfaces. */
main{padding-top:24px}
.bottom-tabs .nav{border:1px solid transparent}.bottom-tabs .nav.active{background:transparent;color:var(--ink);border-color:var(--ink)}
.today,.summary{background:transparent;border:1px solid var(--line);color:var(--ink)}
.today h2,.today-bottom>span,.today .muted{color:var(--muted)}.today-bottom{border-bottom-color:var(--line)}
.today progress::-webkit-progress-bar{background:#dde8ed}
@media(max-width:650px){main{padding-top:12px}}

#tutorial{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;border:1px solid var(--line);border-radius:22px;padding:22px;background:#fffdf7;color:var(--ink);overflow:auto}
#tutorial::backdrop{background:#173d4e55}.tutorial-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px}.tutorial-skip{background:transparent;color:var(--muted);padding:4px 8px;font-size:14px}
.tutorial-art{width:150px;height:150px;margin:8px auto 20px;background:#fffdf7;isolation:isolate;contain:paint}#tutorialCat{display:block;object-fit:contain;width:100%;height:100%}.tutorial-copy{min-height:190px}.tutorial-copy h2{font-size:22px;line-height:1.5;margin:0 0 14px}.tutorial-copy p{margin:0 0 12px;font-size:16px;line-height:1.75}
.tutorial-dots{display:flex;justify-content:center;gap:8px;margin:12px 0 20px}.tutorial-dots span{width:7px;height:7px;border-radius:50%;background:#d6e4e9}.tutorial-dots .current{background:var(--ink)}.tutorial-actions{display:flex;gap:10px}.tutorial-actions button{flex:1}.tutorial-actions #prevTutorial:disabled{visibility:hidden}.tutorial-open{overflow:hidden}
@media(max-height:650px){#tutorial{padding:16px}.tutorial-art{width:95px;height:95px;margin:0 auto 12px}.tutorial-copy{min-height:0}.tutorial-copy h2{font-size:20px}.tutorial-dots{margin:10px 0 14px}}

.timer-setup .tasklabel{margin-top:16px}

.about-app{background:#e3ebf3;line-height:1.65}.about-app h2{font-size:18px;margin-bottom:18px}.about-meta{margin-bottom:12px}.about-app h3{font-size:16px;color:#727b78;margin:12px 0 2px}.about-app p{color:#727b78;margin:0 0 12px}.about-app .contact-form{display:flex;justify-content:center;align-items:center;gap:9px;background:#fff;border:1px solid #b2bdc7;border-radius:16px;color:#417ab5;font-weight:700;text-decoration:none;min-height:52px;padding:10px 12px;margin:20px 0 8px}.contact-form svg{width:24px;height:24px;flex-shrink:0}.about-app .about-copyright{margin-top:22px;margin-bottom:0;font-size:14px}

.file-save-options{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:14px}.file-save-options a{display:block;overflow-wrap:anywhere;text-decoration:none;color:var(--ink)}

.date-and-lap{display:flex;align-items:center;gap:10px;flex-wrap:wrap;letter-spacing:.06em}#lapLabel{font-weight:500;white-space:nowrap}

/* A quiet, borderless canvas for the cat journey. */
:root{--bg:#fff;--ink:#253c43;--muted:#708187;--line:#e6ecee}
body{background:white;padding-bottom:calc(74px + env(safe-area-inset-bottom))}
main{padding-top:18px}
.timer-card{background:transparent;border-radius:0;padding:0;overflow:visible}
.journey-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:var(--muted);text-align:left;font-size:12px;font-weight:600;letter-spacing:.06em;line-height:1.6}
.journey-header h2{font:inherit;margin:0;color:inherit}
.journey-header .totalcats{font:inherit;letter-spacing:0;white-space:nowrap}
.journey-header .totalcats span{font:inherit;display:inline;color:inherit;margin:0}
.timer-card .journey{margin:0;padding:0;overflow:visible}
.timer-card .map-wrap{height:662px;border-radius:0}
.map-tools{right:10px;top:10px;gap:4px}
.map-tools button{background:#ffffffd9;box-shadow:none;border-radius:50%;width:44px;height:44px;padding:0;font-size:11px}
.timer-card .timer-label{margin:16px 0 2px;font-size:12px;font-weight:400}
.timer-card .clock{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;font-size:64px;font-weight:200;letter-spacing:.015em;line-height:1.15}
.actions{display:flex;align-items:center;justify-content:center;gap:36px;margin-top:12px}
.actions #start{flex:none;width:64px;height:54px;padding:9px;background:transparent;color:var(--ink);border-radius:50%;min-height:54px}
#start svg{width:34px;height:34px;display:block;margin:auto}
.actions .focus-launch{background:transparent;padding:8px 12px;font-size:14px;font-weight:400;gap:7px;min-height:54px}
.actions button:hover{background:#f6f8f9}
.secondary-actions{display:flex;justify-content:center;gap:12px;margin-top:28px}
.secondary-actions:has(button[hidden]):not(:has(button:not([hidden]))){display:none}
.secondary-actions button{background:transparent;font-size:14px;padding:8px 14px}
.bottom-tabs{background:#fffffff2;border:0;box-shadow:none;padding-top:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.bottom-tabs .nav,.bottom-tabs .nav.active{border:0;background:transparent;border-radius:0;min-height:48px;padding:8px;color:#8d999e;position:relative}
.bottom-tabs .nav.active{color:var(--ink)}
.bottom-tabs .nav svg{width:25px;height:25px;stroke-width:1.4}
.bottom-tabs .nav.active::after{content:'';position:absolute;bottom:0;width:4px;height:4px;border-radius:50%;background:var(--ink)}
.timer-setup{border:0;margin-top:28px}
.today{border:0;border-radius:0;padding:24px 4px}
#toast{bottom:calc(80px + env(safe-area-inset-bottom))}
@media(max-width:650px){
 main{padding:14px 16px 0}
 .timer-card{padding:0}
 .journey-header{font-size:11px;margin-bottom:10px}
 .timer-card .journey{margin:0}
 .timer-card .map-wrap{height:clamp(260px,calc(100svh - 268px - env(safe-area-inset-bottom)),760px);margin:0 -16px;width:calc(100% + 32px);border-radius:0}
 .timer-card .clock{font-size:54px;font-weight:200;line-height:1.15}
 .timer-card .timer-label{margin-top:12px}
 .actions{display:flex;gap:32px;margin-top:10px}
 .actions .focus-launch{padding:8px 12px;font-size:14px}
 .timer-card .totalcats span{font-size:inherit}
 .today{padding:20px 0}
}

.timer-card #clock{margin-top:10px}
.lap-progress{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;text-align:left}
#lapCount{white-space:nowrap}
.scroll-cue{height:14px;margin-top:4px;color:#b1bec3;pointer-events:none}
.scroll-cue svg{display:block;width:24px;height:12px;margin:auto;animation:swipe-cue 2.8s ease-in-out 2}
.scrolled .scroll-cue{opacity:0}
@keyframes swipe-cue{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.scroll-cue svg{animation:none}}

/* Gentle hierarchy for totals and goals. */
.today h2{font-size:15px;font-weight:400;letter-spacing:.02em}
.today .today-time{display:flex;align-items:baseline;gap:16px;font-size:42px;font-weight:400;line-height:1.25;margin:12px 0 20px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.today-time>span{white-space:nowrap}
.today-time small{font-size:.45em;font-weight:400;color:var(--muted);margin-left:3px;letter-spacing:0}
#goalRows{margin-top:24px}
.today .goal{margin-top:22px}
.goal-head{font-size:14px;line-height:1.4;margin-bottom:10px;color:var(--muted);align-items:baseline}
.goal-value{display:flex;align-items:baseline;gap:4px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.goal-value strong{font-weight:500}
.goal-value small{font-size:.75em;color:var(--muted)}
.goal-divider{color:#aab7bc;margin:0 3px;font-weight:300}
.goal progress{height:3px}
.today .small{font-size:12px;line-height:1.7;margin-top:18px;color:#87969c}
@media(max-width:650px){.today .today-time{font-size:40px}.today-bottom>span{font-size:12px}.today .goal{margin-top:20px}}

/* Records share the timer's light typography and open spacing. */
#history .section-heading{margin-bottom:28px;align-items:center;padding:10px 12px;background:#eff4f6;border-radius:16px;gap:12px}
#history h1{font-size:26px;font-weight:300;letter-spacing:.01em}
#history .section-heading input{font-size:14px;border-color:var(--line);border-radius:8px;padding:8px}
#history .calendar-card{padding:8px 0 24px;border-radius:0;background:transparent}
#history .calendar-heading h2{font-size:22px;font-weight:300;letter-spacing:.01em}
#history .calendar-heading p{font-size:13px;font-weight:400;margin-top:6px}
#history .calendar-heading button{background:transparent;font-weight:300;font-size:30px}
#history .calendar-weekdays{font-size:12px;font-weight:400;margin:20px 0 12px}
#history .calendar-day{background:transparent;border:1px solid transparent;border-radius:10px;min-height:72px}
#history .calendar-day.has-work{background:transparent}
#history .calendar-day.selected{border-color:#b4c3c9}
#history .calendar-number{font-size:15px;font-weight:300;text-decoration:none}
#history .calendar-day.is-today .calendar-number{font-weight:500}
#history .calendar-hours{font-size:14px;font-weight:400;color:#b67b29}
#history .calendar-note{font-size:12px;color:#87969c;line-height:1.7;margin-top:20px}
#history .day-record-title{font-size:18px;font-weight:300;margin:16px 0 18px}
#history .summary{background:transparent;border:0;border-radius:0;padding:0 0 24px;margin-bottom:8px;gap:18px;align-items:baseline;border-bottom:1px solid var(--line)}
#history .summary-label{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:5px}
#history .summary strong{font-size:19px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#history .summary .record-total strong{font-size:30px;font-weight:300;letter-spacing:-.02em}
#history .summary strong small{font-size:.5em;font-weight:400;color:var(--muted);margin-left:2px}
#history .record{padding:18px 0;background:transparent;border-radius:0;gap:12px}
#history .record h3{font-weight:400;font-size:15px}
#history .record .meta{font-size:12px;margin-top:5px}
#history .record-right{font-weight:300;font-size:20px;font-variant-numeric:tabular-nums}
#history .record-right button{font-size:12px;font-weight:400;padding-right:0;color:#9a7774}
#history .empty{background:transparent;border-radius:0;font-size:14px;font-weight:300;padding:30px 0}
#history .manual{border:0;border-radius:0;padding:18px 0;margin-top:16px}
#history .manual summary{font-weight:300;font-size:16px}
@media(max-width:650px){#history .calendar-day{min-height:62px}#history .summary{column-gap:14px;row-gap:12px}#history .summary .record-total strong{font-size:27px}}

/* Light finishing details */
#toast{background:#fff;color:var(--ink);border:1px solid var(--line);white-space:pre-line;box-shadow:0 6px 24px #253c4310}
.timer-card .reward strong,.today #todayMoney{font-weight:300}
.reward strong small,#todayMoney small{font-size:12px;font-weight:400;margin-left:3px;color:var(--muted)}
#settingsForm button[type="submit"]{background:#dfeaf0;color:var(--ink);font-weight:400;margin-top:18px}
#settingsForm button[type="submit"]:hover{background:#d3e2e9}

/* Keep each daily statistic together with breathing room. */
.today-stats{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap}
.today-stats .today-bottom{display:flex;width:auto;flex:1 1 auto;gap:16px;padding-right:0;border:0}
.today-stats .today-bottom:last-child{justify-content:flex-end;margin-left:auto}
.today-stats .today-bottom strong{white-space:nowrap}
@media(max-width:350px){.today-stats{gap:12px 28px}.today-stats .today-bottom{flex-basis:100%;justify-content:space-between}.today-stats .today-bottom:last-child{justify-content:space-between}}

#departure,#tutorialDeparture{font:inherit;width:100%;min-height:44px;margin-top:6px;padding:10px 12px;color:var(--ink);background:white;border:1px solid #c6d8e0;border-radius:10px}
#departure:focus-visible{outline:3px solid #ecac4b;outline-offset:3px}

#tutorialDepartureField{margin-top:16px;text-align:left}#tutorialDepartureNote{margin:8px 0 0}

/* Native app: fixed page scale, with independent map gestures. */
html,body{touch-action:pan-x pan-y}
button,a,input,select,textarea{touch-action:manipulation}
input,select,textarea{font-size:16px}
#map{touch-action:none}

.awake-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;min-height:44px}
.awake-switch input{appearance:none;-webkit-appearance:none;flex:0 0 46px;width:46px;height:28px;min-height:28px;margin:0;padding:0;border:0;border-radius:18px;background:#dfe7eb;position:relative;transition:background .15s}
.awake-switch input::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #293b4220;transition:transform .15s}
.awake-switch input:checked{background:var(--ink)}
.awake-switch input:checked::after{transform:translateX(18px)}
/* Wallpaper collection */
#wallpaperCollection{box-sizing:border-box;width:min(94vw,640px);max-width:640px;height:90dvh;max-height:90dvh;padding:18px;border:1px solid #dce7eb;border-radius:24px;background:#fffdf7;color:#243e46;overflow:auto}#wallpaperCollection::backdrop{background:#18333e88}.wp-head{display:flex;align-items:center;gap:10px;position:sticky;top:-18px;background:#fffdf7;z-index:1;padding:12px 0}.wp-head h2{flex:1;font-size:19px;margin:0}.wp-head button{padding:9px;font-size:14px}.wp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 28px}.wp-tile{display:flex;flex-direction:column;gap:6px;background:white;border:1px solid #dce7eb;border-radius:14px;padding:7px;color:#243e46;min-width:0;text-align:left}.wp-tile img{width:100%;aspect-ratio:9/19.5;object-fit:cover;border-radius:9px}.wp-tile span{font-size:13px}.wp-tile small{font-size:11px;color:#697e85}.wp-actions{display:flex;flex-wrap:wrap;gap:8px}.wp-actions button{font-size:14px}#wallpaperCollection button:disabled{opacity:.55}#wallpaperCollection [hidden]{display:none!important}@media(max-width:380px){.wp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.wp-tile img{max-width:108px;align-self:center;-webkit-touch-callout:none;user-select:none}.wp-save{width:100%;min-height:44px;padding:8px 3px;font-size:12px;margin-top:auto}

.wp-thumbnail{position:relative;width:100%;max-width:108px;align-self:center;overflow:hidden;border-radius:9px;-webkit-touch-callout:none;user-select:none}.wp-thumbnail img{display:block;width:100%;max-width:none}.wp-tile .wp-sample{position:absolute;left:50%;width:140%;text-align:center;font-family:system-ui,sans-serif;font-size:16px;font-weight:600;letter-spacing:1.4px;color:rgba(36,62,70,.22);text-shadow:0 1px 1px rgba(255,255,255,.4);transform:translate(-50%,-50%) rotate(-25deg);pointer-events:none;line-height:1}.wp-sample-0{top:25%}.wp-sample-1{top:50%}.wp-sample-2{top:75%}

.settings-card.wallpaper-entry{background:#f1f6f7}

.settings-card.wallpaper-entry #wallpapersOpen{background:#fff;border:1px solid #b2bdc7;border-radius:16px;color:#417ab5;font-weight:700;margin-top:16px}

/* Localized labels wrap without widening the viewport. */
html[lang="en"] .mode-switch button {font-size:12px;padding-inline:8px;min-width:0}
html[lang="en"] .journey-header h2 {font-size:14px;line-height:1.4}
html[lang="en"] .journey-bottom {gap:8px;font-size:11px}
.wp-actions {flex-wrap:wrap}
#wpDiagnostics {overflow-wrap:anywhere;white-space:pre-line}
#appLanguage {width:100%;max-width:100%}

/* Build 16: map-first layout and idle mode controls. */
main{padding-top:0}
.map-wrap{position:relative}
.map-wrap .journey-header{position:absolute;z-index:2;left:16px;top:12px;display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0;pointer-events:none;letter-spacing:0;color:var(--ink);font-weight:400;font-size:12px;line-height:1.45;text-shadow:0 1px 3px #fff}
.timer-card .timer-setup{margin:16px 0 0;padding:0}
.timer-setup .mode-switch{display:flex;justify-content:center;gap:16px;margin:0 0 12px;background:transparent}
.mode-switch button{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;color:var(--muted);padding:6px 10px;font-size:10px;border-radius:10px;min-height:48px}
.mode-switch button svg{width:23px;height:23px}
.mode-switch button.chosen{background:#edf5f7;color:var(--ink);box-shadow:none}
.timer-setup .tasklabel{margin:0 0 4px;font-size:11px}
.timer-setup #task{padding:9px 12px;font-size:14px}
.has-session .timer-setup .mode-switch{display:none}
.scroll-cue{display:none}
.secondary-actions:not(:has(button:not([hidden]))){display:none}
@media(max-width:650px){
 main{padding-top:0}
 .timer-card .map-wrap{height:clamp(240px,calc(100svh - 400px - env(safe-area-inset-bottom)),660px)}
 .timer-card #clock{margin-top:12px}
 .timer-card .clock{font-size:54px}
 .timer-card .timer-setup{margin-top:14px}
 .timer-setup .mode-switch{margin:0 0 10px}
 .timer-card .reward{margin-top:18px}
}

/* Build 17: larger map, with optional title editing below the first screen. */
.timer-card .map-wrap .journey-header #destination,
.timer-card .map-wrap .journey-header .totalcats,
.timer-card .map-wrap .journey-header .totalcats span{
 font-size:12px;font-weight:400;line-height:1.45;letter-spacing:0;
}
@media(max-width:650px){
 .timer-card .map-wrap{height:clamp(240px,calc(100svh - 315px - env(safe-area-inset-bottom)),745px)}
 .timer-setup .tasklabel{margin-top:60px}
}

/* Build 18: map mode picker, opened only on request. */
.timer-card .map-wrap{height:662px}
.map-wrap .mode-toggle{position:absolute;z-index:3;right:12px;bottom:12px;width:58px;height:58px;border-radius:50%;background:#fffffff0;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;font-size:10px;line-height:1.2}
.mode-toggle img{width:26px;height:26px;object-fit:contain}
.map-wrap .mode-menu{position:absolute;z-index:4;left:8px;right:8px;bottom:8px;display:flex;gap:4px;margin:0;padding:8px;background:#fffffff5;border-radius:12px;box-shadow:0 4px 22px #253c4320;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .18s ease,transform .18s ease,visibility .18s}
.map-wrap.mode-menu-open .mode-menu{opacity:1;visibility:visible;transform:translateY(0)}
.map-wrap.mode-menu-open .mode-toggle{visibility:hidden}
.mode-menu button{min-width:0;padding:5px 3px;white-space:normal;font-size:10px;line-height:1.3}
.has-session .mode-toggle{display:none}
.timer-card .timer-setup{margin-top:90px}
.scroll-cue{display:block;margin-top:14px;height:12px;color:#b7c4c9}
.scroll-cue svg{height:12px;width:24px}
@media(max-width:650px){
 .timer-card .map-wrap{height:clamp(260px,calc(100svh - 268px - env(safe-area-inset-bottom)),760px)}
 .timer-setup .tasklabel{margin-top:0}
}
@media(prefers-reduced-motion:reduce){.map-wrap .mode-menu{transition:none;transform:none}}

/* Build 19: restore the original progress row above the map. */
main{padding-top:18px}
.timer-card>.journey-header{position:static;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;color:var(--muted);text-align:left;font-size:12px;font-weight:600;letter-spacing:.06em;line-height:1.6;text-shadow:none}
.timer-card>.journey-header #destination,
.timer-card>.journey-header .totalcats,
.timer-card>.journey-header .totalcats span{font:inherit;margin:0;color:inherit;letter-spacing:0}
.timer-card>.journey-header #destination{min-width:0}
@media(max-width:650px){
 main{padding-top:14px}
 .timer-card>.journey-header{font-size:11px;margin-bottom:10px}
 .timer-card .map-wrap{height:clamp(260px,calc(100svh - 268px - env(safe-area-inset-bottom)),760px)}
}

/* Build 20: inspect the current mode during a session, keep session actions visible. */
.has-session .map-wrap .mode-toggle{display:flex}
.scroll-cue{display:none}
.secondary-actions{margin-top:4px;gap:12px}
.mode-menu button:disabled{opacity:.55;cursor:default}
.mode-menu button.chosen:disabled{opacity:1;background:#edf5f7;color:var(--ink)}
@media(max-width:650px){
 .has-session .timer-card .map-wrap{height:clamp(204px,calc(100svh - 324px - env(safe-area-inset-bottom)),704px)}
}

/* Build 21: release notes, shown once per public version. */
#updateNotes{width:min(440px,calc(100vw - 32px));max-height:calc(100svh - 48px);border:1px solid var(--line);border-radius:24px;padding:24px;color:var(--ink);background:#fffdf8;box-shadow:0 12px 48px #253c4325;overflow-y:auto;text-align:left}
#updateNotes::backdrop{background:#253c4366}
.update-notes-heading{display:flex;align-items:center;gap:14px}
.update-notes-heading img{width:54px;height:54px;object-fit:contain}
.update-notes-version{font-size:11px;color:var(--muted);margin:0}
#updateNotes h2{font-size:21px;margin:0}
#updateNotesIntro{font-size:13px;margin:18px 0}
#updateNotes ul{list-style:none;padding:0;margin:0}
#updateNotes li{padding:12px 0;border-top:1px solid var(--line);font-size:14px}
#updateNotes li p{font-size:12px;color:var(--muted);line-height:1.8;margin:4px 0 0}
.update-notes-footnote{font-size:11px;color:var(--muted);margin:14px 0}
#closeUpdateNotes{width:100%;margin-top:4px}
#showUpdateNotes{margin-top:16px}

/* Seoul prototype: reuse the timer and add a quiet, local-first journey. */
.journey-picker{position:absolute;z-index:3;left:12px;top:12px;padding:5px 12px;border:1px solid #d8e1d9;border-radius:18px;background:#fffffff0;color:var(--ink);font-size:11px;min-height:34px}
.seoul-album-open{position:absolute;z-index:3;left:12px;bottom:28px;padding:6px 12px;border-radius:18px;background:#fffffff0;color:var(--ink);font-size:11px;min-height:34px}
#seoulMapCredit{position:absolute;z-index:2;left:8px;bottom:3px;font-size:8px;color:#677d7d;background:#ffffffe0;padding:0 3px;max-width:calc(100% - 80px)}
.seoul-course .map-wrap{background:#f5f2e9}
.seoul-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100svh - 40px);overflow-y:auto;border:1px solid var(--line);border-radius:24px;background:#fffdf8;color:var(--ink);padding:22px}
.seoul-dialog::backdrop{background:#253c4355}
.seoul-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.seoul-dialog-head h2{font-size:20px;margin:0}.seoul-dialog-head small{font-size:9px;letter-spacing:.12em;color:var(--muted)}
.seoul-dialog-head button{font-size:12px;padding:7px 12px;flex-shrink:0}
.journey-choice{display:flex;width:100%;text-align:left;gap:16px;align-items:center;padding:18px;margin-top:12px;border:1px solid #dce4df;background:#fff;border-radius:18px;color:var(--ink)}
.journey-choice.selected{border-color:#b5c6b8;background:#edf3ed}.journey-choice strong{display:block;font-size:15px}.journey-choice small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.journey-choice-flag{display:grid;place-items:center;background:#f0e6da;border-radius:14px;width:60px;height:66px;font-family:Georgia,serif;font-size:20px;flex-shrink:0}.journey-choice-flag.seoul-flag{font-size:13px;background:#e4ebdf;letter-spacing:.1em}
.seoul-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.seoul-card{border:1px solid var(--line);border-radius:14px;padding:10px;background:white;min-width:0}.seoul-card-art{height:128px;border-radius:9px;position:relative;overflow:hidden;filter:grayscale(1);opacity:.5}.seoul-card.unlocked .seoul-card-art{filter:none;opacity:1}.seoul-card-art img{position:absolute;width:76px;height:80px;object-fit:contain;bottom:12px;left:calc(50% - 38px)}.seoul-card-symbol{position:absolute;top:5px;right:12px;color:#ffffffb0;font-size:65px;line-height:1}
.seoul-card h3{font-size:14px;margin:9px 0 0}.seoul-card p{font-size:10px;line-height:1.6;margin:3px 0;color:var(--muted)}.seoul-card small{font-size:10px;color:#87958b}
#seoulPreviewControls{border-radius:12px;background:#edf3ed;padding:14px;font-size:12px}#seoulPreviewControls input{padding:0;accent-color:#839d86}#seoulPreviewValue{display:block}
.seoul-demo-bar{position:absolute;z-index:4;left:12px;right:80px;bottom:76px;border:1px solid #dbe5de;border-radius:12px;background:#fffffff2;padding:8px 10px;box-shadow:0 3px 10px #253c4312;font-size:10px;line-height:1.4}.seoul-demo-bar>div{display:flex;align-items:center;gap:8px}.seoul-demo-bar button{min-height:24px;min-width:24px;padding:0;background:transparent;color:var(--ink);margin-left:auto;font-size:20px}.seoul-demo-bar input{width:100%;min-height:28px;margin:0;padding:0;accent-color:#8caa91}.seoul-demo-bar small{font-size:9px;color:var(--muted)}

/* Build 23: unopened travel cards, arrival celebration and focused settings. */
.seoul-card-view{display:block;width:100%;padding:0;border:0;background:none;text-align:inherit;border-radius:14px;overflow:hidden;cursor:pointer}
.seoul-card-view .seoul-card-art,.seoul-card-reveal .seoul-card-art{filter:none;opacity:1}
.seoul-card-mystery{aspect-ratio:1;border-radius:14px;background:repeating-linear-gradient(45deg,#edf0ec 0 10px,#e8ece7 10px 11px);display:grid;place-items:center;color:#9aa9a0;font:500 64px Georgia,serif;box-shadow:inset 0 0 0 8px #f6f7f3,inset 0 0 0 9px #dce3db;user-select:none}
.seoul-card-reveal{box-sizing:border-box;width:min(90vw,420px);max-height:90dvh;overflow:auto;border:0;border-radius:28px;padding:24px;background:#fffdf7;color:#283e43;text-align:center;animation:card-arrival .3s ease-out}
.seoul-card-reveal::backdrop{background:#263d43a6}
.seoul-card-reveal h2{margin:8px 0 18px;font-size:26px}.seoul-card-reveal .hint{font-size:13px}
.seoul-card-reveal .seoul-card-art{width:min(100%,290px);margin:auto;aspect-ratio:1;border-radius:18px}
.seoul-card-reveal .primary{width:100%;margin-top:8px}
@keyframes card-arrival{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}}
.settings-menu{display:grid;gap:12px;padding:0 0 24px}.settings-menu-button{position:relative;width:100%;padding:20px 42px 20px 18px;text-align:left;font-size:16px;font-weight:600;border:1px solid #dbe5e5;border-radius:16px;background:#f7faf9;color:#2c4348}.settings-menu-button::after{content:'›';position:absolute;right:18px;color:#82969a;font-size:22px;top:15px}
.settings-panel{box-sizing:border-box;width:min(94vw,580px);height:min(88dvh,800px);max-height:88dvh;border:0;border-radius:24px;padding:0;background:#fffdf8;color:#283e43;overflow:hidden}
.settings-panel::backdrop{background:#283e4380}.settings-panel[open]{display:flex;flex-direction:column}
.settings-panel>header{display:flex;gap:14px;align-items:center;padding:16px;border-bottom:1px solid #e1e8e6;flex:none}.settings-panel>header h2{font-size:19px;margin:0}.settings-panel>header button{padding:10px 14px;flex:none}
.settings-panel>form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0}.settings-panel-body{padding:20px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}.settings-panel-body label{display:block}.settings-panel-body input:not([type=checkbox]),.settings-panel-body select{box-sizing:border-box;width:100%;margin:8px 0 16px}.settings-panel-body .awake-switch{display:flex}.settings-panel-body .form-grid{grid-template-columns:1fr}.settings-panel-body>h2{font-size:18px}
.settings-panel-footer{flex:none;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e1e8e6;background:#fffdf8}.settings-panel-footer button{width:100%;margin:0}
@media(prefers-reduced-motion:reduce){.seoul-card-reveal{animation:none}}
.seoul-card-reveal .seoul-card-art{height:auto}
.seoul-card-reveal .seoul-card-art img{width:70%;height:72%;left:15%;bottom:8%;object-fit:contain}
.seoul-card-reveal .seoul-card-symbol{font-size:110px;top:10px;right:18px}
.settings-panel>header{width:100%;max-width:none;margin:0;justify-content:flex-start;flex-wrap:nowrap}

/* Finished paintings replace every symbolic draft composition. */
.travel-finished-art{aspect-ratio:1;height:auto!important;background:#f4f1e8}
.travel-finished-art img,.seoul-card-reveal .travel-finished-art img{position:static;display:block;width:100%;height:100%;object-fit:cover}
.travel-finished-art img{border-radius:inherit}
#japanAlbum .japan-album-meta{font-size:12px;color:var(--muted)}
.japan-preview{padding:14px;border-radius:14px;background:#edf2ed;margin:16px 0}
.japan-preview input{padding:0;min-height:40px}
.japan-preview .hint{margin:0 0 8px}
.album-launch-settings{order:0}

#seoulMapCredit{max-width:calc(100% - 84px);white-space:normal;line-height:1.3;text-align:left}
.seoul-card-view:focus-visible{outline:3px solid #dca35c;outline-offset:3px}

/* Build 25: explicit preview before sharing; no automatic posting. */
.travel-share-entry{display:block;width:100%;margin:14px 0 8px}
.travel-share-preview{box-sizing:border-box;width:min(94vw,500px);max-height:90dvh;overflow:auto;border:0;border-radius:24px;padding:20px;background:#fffdf7;color:#283e43}
.travel-share-preview::backdrop{background:#283e4399}
.travel-share-preview .seoul-dialog-head{align-items:center;gap:12px;margin-bottom:12px}
.travel-share-preview h2{font-size:20px;margin:0}
.travel-share-preview .awake-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-top:14px}
#travelShareImage{display:block;width:100%;height:auto;border-radius:16px;margin:12px 0;background:#f0f3ed}
#travelShareImage:not([src]){display:none}
.travel-share-actions{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.travel-share-actions button{font-size:14px;padding:12px 8px}
#travelShareDownload{display:block;margin-top:12px}
#travelSharePrivacy{font-size:11px}
#shareSettings .awake-switch{display:flex;justify-content:space-between;gap:16px;align-items:center}
@media(max-width:360px){.travel-share-preview{padding:16px}.travel-share-preview h2{font-size:17px}}

/* StoreKit-backed Seoul course access. */
.seoul-paywall-art{text-align:center;padding:20px;border-radius:20px;background:#edf1e9;margin-bottom:18px}.seoul-paywall-art img{width:116px;height:126px;object-fit:contain}.seoul-paywall-art p{font-size:10px;letter-spacing:.15em;color:#78908b}
.seoul-paywall #seoulBuy,.seoul-paywall #taiwanBuy{display:block;width:100%;min-height:48px;margin:20px 0 18px}.seoul-purchase-actions{display:flex;gap:10px;flex-wrap:wrap}.seoul-purchase-actions button{flex:1;min-height:48px;font-size:13px}.seoul-access-label{color:var(--muted)}
.seoul-locked-cover{display:none;position:absolute;inset:0;padding:24px;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#edf1e9;z-index:2}.seoul-entitlement-locked .seoul-locked-cover{display:flex}
.seoul-entitlement-locked .map-wrap canvas,.seoul-entitlement-locked .map-tools,.seoul-entitlement-locked #seoulAlbumOpen,.seoul-entitlement-locked #seoulMapCredit{visibility:hidden}
#seoulPreviewOpen,#seoulPreviewControls,#seoulDemoBar,#japanAlbum .japan-preview{display:none!important}

/* Build 27: a direct course invitation and a quieter, visual settings menu. */
.map-wrap .course-promotion{position:absolute;z-index:3;right:12px;bottom:80px;width:58px;height:58px;border-radius:50%;background:#fffffff0;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;font-size:10px;line-height:1.2}
.course-promotion img{width:26px;height:26px;object-fit:contain}.course-promotion span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-wrap.mode-menu-open .course-promotion{visibility:hidden}
.settings-menu-button{display:flex;align-items:center;gap:14px;min-height:68px}.settings-category-icon{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#6e8c85}.settings-menu-button::after{top:50%;transform:translateY(-50%)}
.wallpaper-banner{box-sizing:border-box;position:relative;width:100%;display:flex;align-items:center;gap:18px;padding:20px 18px;border:1px solid #d6dfd3;border-radius:22px;background:linear-gradient(120deg,#edf2e8,#fbf3e7);color:var(--ink);text-align:left;box-shadow:0 4px 14px #29433b08;margin:2px 0 24px;min-height:136px}
.wallpaper-banner-art{position:relative;display:block;width:86px;height:100px;flex:none}.wallpaper-banner-art img{position:absolute;top:6px;left:3px;width:48px;height:90px;object-fit:cover;border-radius:7px;border:2px solid white;box-shadow:0 3px 8px #29433b20;transform:rotate(-10deg)}.wallpaper-banner-art img+img{left:34px;top:0;transform:rotate(9deg)}
.wallpaper-banner-copy{display:grid;gap:7px;min-width:0;flex:1}.wallpaper-banner-copy strong{font-size:19px;line-height:1.5}.wallpaper-banner-copy small{font-size:11px;line-height:1.6;color:#687f79}.wallpaper-banner-arrow{font-size:27px;color:#6e8c85}.wallpaper-banner:focus-visible{outline:3px solid #dca84e;outline-offset:3px}
#settings>h1{margin-top:0}
@media(max-width:350px){.wallpaper-banner{gap:12px;padding:16px 12px}.wallpaper-banner-art{width:70px}.wallpaper-banner-art img+img{left:24px}.wallpaper-banner-copy strong{font-size:17px}}
/* Short map areas keep all six controls apart without shrinking the map. */
.map-wrap.compact-map-controls .map-tools{right:80px;top:12px;display:grid;grid-template-columns:44px 44px;gap:4px}
