: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}
