:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,Arial,sans-serif;--bg:#f7f6f2;--paper:#fff;--ink:#243739;--secondary:#677a7b;--muted:#8a9697;--green:#12876f;--green-dark:#0b6b5c;--mint:#e7f5ef;--coral:#db6660;--border:#e5e9e5;--shadow:0 10px 32px rgba(31,57,48,.065)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent}button,select,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}a{text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:3px solid #9edbc8;outline-offset:3px}.app-shell{max-width:660px;padding:0 17px 130px;margin:0 auto}.app-header{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:25px 0 20px}.brand{display:flex;gap:10px;align-items:center;min-width:0}.brand-mark{background:#e0f1e9;color:var(--green);width:43px;height:43px;border-radius:14px;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:26px;height:26px}.brand-eyebrow{color:#6b9688;font-size:9px;font-weight:850;letter-spacing:.13em}.brand-title{font-weight:900;font-size:17px;letter-spacing:-.05em;white-space:nowrap}.device-pill{font-size:10px;white-space:nowrap;color:#477c70;background:#e9f3ed;border-radius:99px;padding:9px 10px;font-weight:800}.device-dot{display:inline-block;width:6px;height:6px;background:#37a781;border-radius:50%;margin-right:3px;vertical-align:middle}.event-bar{margin-bottom:14px}.field-overline{font-size:11px;font-weight:850;color:#738583;margin-bottom:9px;letter-spacing:.02em}.event-bar-row{display:flex;gap:9px}.event-bar-row select{width:100%;appearance:none;background:#fff;border:1px solid #e1e7e3;border-radius:15px;padding:15px 38px 15px 15px;min-width:0;flex:1;color:#284747;font-weight:850;font-size:17px;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23607376' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.icon-button{width:51px;height:54px;flex:0 0 51px;border:1px solid #dfe9e3;border-radius:15px;color:var(--green);background:white;font-size:27px;font-weight:400}.event-meta{font-size:11px;margin:9px 3px 0;color:#899996}.panel{animation:fade .15s ease}@keyframes fade{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}.hero-card{background:#fff;border:1px solid #e8ede8;border-radius:26px;box-shadow:var(--shadow);padding:22px 21px 19px}.hero-header{display:flex;justify-content:space-between;align-items:center;gap:6px}.status-pill{background:#e7f6ee;border-radius:99px;padding:8px 12px;color:#18826a;font-weight:850;font-size:12px}.status-pill.running{background:#fff0eb;color:#d06656}.save-caption{color:#8da09a;font-size:11px;font-weight:650}.label-space{margin-top:25px}.program-picker{width:100%;border:1.5px solid #dce7e1;background:#fbfcfb;border-radius:15px;font-size:17px;font-weight:850;color:#253c3d;height:58px;padding:0 13px}.program-picker:disabled{opacity:.7}.count-wrap{text-align:center;padding:42px 0 32px}.clock{font-family:ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-size:clamp(68px,15vw,92px);font-weight:800;letter-spacing:-.09em;line-height:1.05;white-space:nowrap;font-variant-numeric:tabular-nums;color:#243e3c;padding-right:7px}.clock-caption{font-size:12px;color:#84938f;margin-top:12px;min-height:20px}.timer-button{border:0;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:82px;color:#fff;font-size:25px;font-weight:900;box-shadow:0 9px 14px rgba(19,135,111,.18);transition:transform .08s,background .16s}.timer-button:active{transform:scale(.984)}.timer-button.start{background:linear-gradient(115deg,#1ca887,#11826c)}.timer-button.stop{background:linear-gradient(110deg,#ec8172,#d65d59);box-shadow:0 9px 14px rgba(214,93,89,.15)}#timer-icon{font-size:18px}.timer-foot{font-size:11px;color:#96a29d;text-align:center;line-height:1.65;margin:15px 0 0}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:16px 0 25px}.metric{background:#fff;border-radius:18px;padding:17px 19px;border:1px solid #e8eae5}.metric-label{color:#8c9894;font-size:11px;font-weight:700}.metric-value{margin-top:8px;display:flex;align-items:baseline;gap:5px;font-size:32px;font-weight:900;letter-spacing:-.04em;line-height:1.1}.metric-value small{font-size:13px;color:#92a19a;font-weight:750}.section-head{display:flex;justify-content:space-between;align-items:end;margin:0 2px 12px}.section-eyebrow{color:#68a08e;font-size:10px;font-weight:850;letter-spacing:.15em}.section-head h2,.share-panel h2{font-size:20px;letter-spacing:-.035em;margin:5px 0 0}.link-button{background:none;border:0;color:var(--green);font-size:12px;font-weight:800;padding:9px 0}.recent-list,.record-list{display:grid;gap:8px}.recent-item,.record-item{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e9ebe8;border-radius:14px;padding:15px 15px}.recent-number{height:29px;width:29px;border-radius:9px;background:#edf5ef;display:grid;place-items:center;color:#5c8e78;font-size:11px;font-weight:900;flex-shrink:0}.recent-main,.record-main{flex:1;min-width:0}.recent-title,.record-title{font-size:14px;font-weight:850;overflow-wrap:anywhere}.recent-sub,.record-sub{font-size:11px;color:#87958f;margin-top:5px}.recent-duration{font-weight:900;font-size:17px;color:var(--green-dark);white-space:nowrap}.empty{background:#fff;border:1px dashed #d9e6dc;color:#8b9b92;text-align:center;border-radius:16px;padding:25px 15px;font-size:13px;line-height:1.8}.action{width:100%;border:0;border-radius:14px;min-height:52px;padding:12px 16px;display:flex;justify-content:center;align-items:center;gap:12px;font-size:14px;font-weight:850}.action.primary{background:#137f69;color:white;box-shadow:0 8px 20px rgba(17,127,105,.12)}.action.secondary{background:#e4f0e9;color:#16735f;margin-top:16px}.action.subtle{color:#346f61;background:#edf5ee;margin-bottom:12px}.section-title{padding:12px 3px 20px}.section-title h1{font-size:26px;font-weight:900;margin:5px 0 6px}.section-title p{font-size:13px;color:var(--secondary);line-height:1.7;margin:0}.share-summary{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px;margin-bottom:16px}.share-summary>div{display:grid;gap:6px}.summary-label{font-size:12px;color:#7a8c87}.share-summary strong{font-size:27px;line-height:1}.share-summary small{font-size:13px;color:#9baba3}.share-status{font-size:12px;font-weight:850;color:#ca8252;background:#fff1e6;border-radius:99px;padding:8px 11px}.share-status.done{background:#e8f5ed;color:#19816c}.record-item{align-items:flex-start}.record-duration{font-size:15px;font-weight:900;white-space:nowrap;color:#15866f}.record-actions{display:flex;gap:10px;margin-top:9px}.tiny-button{font-size:11px;color:#66827a;border:0;background:transparent;padding:0;font-weight:800}.tiny-button.danger{color:#ca7d70}.share-panel{background:#fff;border:1px solid var(--border);border-radius:23px;padding:23px 19px;margin-top:21px}.share-panel p{color:#71847f;font-size:13px;line-height:1.75;margin:11px 0 18px}.share-actions{display:grid;gap:10px}.line-action{color:white;background:#06b755}.email-action{color:#315865;background:#e9f0f4}.copy-action{color:#465d58;background:#f0f2ef}.share-icon{font-size:13px;font-weight:900}.preview-details{margin-top:20px;border-top:1px solid var(--border);padding-top:15px}.preview-details summary{list-style:none;display:flex;justify-content:space-between;color:#61716d;font-size:12px;font-weight:850;cursor:pointer;padding:5px 0}.preview-details summary::-webkit-details-marker{display:none}.preview-details textarea{width:100%;margin-top:12px;border:1px solid #e1e8e3;border-radius:12px;padding:13px;height:210px;font-size:12px;background:#fafcfa;color:#536662;line-height:1.7;resize:vertical}.shared-check{margin-top:20px;padding:14px;background:#f4f7f2;border-radius:14px}.shared-check label{display:flex;gap:11px;align-items:start;font-size:12px;font-weight:850;cursor:pointer}.shared-check input{width:20px;height:20px;accent-color:#0a9475;flex-shrink:0;margin:0}.shared-check small{display:block;font-size:10px;color:#85958e;line-height:1.6;margin:8px 0 0 31px}.settings-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:23px 20px;margin-bottom:16px}.settings-card-head{display:flex;justify-content:space-between;align-items:center;gap:5px}.settings-card h2{font-size:19px;letter-spacing:-.03em;margin:0 0 18px}.step-mark{font-size:10px;color:#8abca9;font-weight:900}.preset-row{display:flex;gap:8px;margin:8px 0 22px}.preset-button{flex:1;border:1px solid #e1eae2;background:#fff;border-radius:12px;color:#4e6f66;min-height:46px;font-size:12px;font-weight:850;padding:8px 4px}.preset-button.active{background:#e5f5ec;border:1.5px solid #32ad86;color:#08745b}.field-label{display:block;font-weight:800;color:#536b66;font-size:12px;margin:17px 0 8px}.field{display:block;width:100%;padding:14px;border:1px solid #dce4df;border-radius:12px;background:#fcfdfb;color:#293e3e;font-size:16px}.field.area{min-height:150px;font-size:14px;line-height:1.75;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}.inline-help{font-size:12px;color:#66887e;background:#edf6ed;padding:11px;border-radius:11px;line-height:1.6;margin-top:23px}.form-hint{font-size:11px;color:#899890;line-height:1.65;margin:7px 0 14px}#save-event{margin-top:5px}.text-muted{font-size:12px;line-height:1.65;color:#75867f}.settings-details{background:white;border:1px solid var(--border);border-radius:17px;margin-top:16px;overflow:hidden}.settings-details>summary{list-style:none;cursor:pointer;padding:18px;color:#49685e;font-size:13px;font-weight:900;display:flex;justify-content:space-between}.settings-details>summary::-webkit-details-marker{display:none}.details-inner{padding:0 17px 19px}.details-inner p{font-size:12px;color:#74847d;line-height:1.7}.details-inner hr{border:0;border-top:1px solid #e9ece8;margin:16px 0}.detail-button{width:100%;min-height:42px;border:1px solid #e0e7df;border-radius:10px;background:#f7faf5;color:#4c7366;font-size:12px;font-weight:850;padding:9px;margin:5px 0}.detail-button.danger{color:#bd7067;background:#fff9f7;border-color:#f0dfd9}.footer{text-align:center;margin:26px auto 0;font-size:10px;line-height:1.8;color:#98a59f}.footer span{display:block;letter-spacing:.14em;color:#a8b4ab;margin-top:8px}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:660px;padding:8px 16px calc(9px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e4e8e3;display:flex;justify-content:space-around;z-index:10;backdrop-filter:blur(14px)}.nav-tab{border:0;background:transparent;padding:5px 10px;color:#8ca09a;font-size:11px;min-width:100px;font-weight:800;display:grid;gap:2px;justify-items:center}.nav-tab span{font-size:22px;line-height:1.2}.nav-tab.active{color:#11816c}.undo-box{margin-top:17px;background:#fff8e9;border:1px solid #f0ddbb;border-radius:14px;padding:13px;display:grid;gap:9px}.undo-body{display:grid;gap:4px}.undo-body strong{font-size:13px;color:#795b36}.undo-body span{font-size:11px;color:#a18460}#undo-button{border:1px solid #e5c48c;background:#fff3d9;border-radius:10px;min-height:40px;color:#8b6235;font-size:12px;font-weight:900}.welcome-hero{background:linear-gradient(145deg,#eff8f0,#fff);border:1px solid #e3ede3;border-radius:26px;padding:30px 23px;text-align:center}.welcome-emoji{font-size:40px}.welcome-hero .eyebrow{font-size:11px;font-weight:900;color:#4eab8f;letter-spacing:.14em}.welcome-hero h1{font-size:30px;line-height:1.4;margin:6px 0 12px}.welcome-hero p{font-size:13px;line-height:1.8;color:#79918a;margin:8px 0 19px}.onboard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:15px}.onboard-grid>div{background:#fff;border:1px solid #e7ebe7;border-radius:15px;padding:13px 8px;text-align:center;display:grid;gap:6px}.onboard-grid strong{font-size:18px;color:#1c9878}.onboard-grid span{font-size:11px;color:#6f887d;font-weight:850}.critical-banner,.alert-banner{border-radius:12px;padding:12px;background:#fff2ed;border:1px solid #f2d6cc;color:#c26050;line-height:1.65;font-size:13px;margin-bottom:18px}.alert-banner{background:#fff8ee;color:#aa793e;border-color:#f1dcaf}.toast{position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:13px 20px;background:#283f3b;color:#fff;border-radius:13px;z-index:30;white-space:normal;max-width:90vw;width:max-content;box-shadow:0 8px 24px #0002;font-size:12px;line-height:1.6;font-weight:750}dialog{border:0;border-radius:22px;max-width:min(92vw,440px);width:100%;padding:0;background:#fff;color:var(--ink);box-shadow:0 22px 60px #203b3233}dialog::backdrop{background:rgba(22,45,38,.45)}.modal-inner{padding:25px 22px}.modal-inner h2{font-size:20px;letter-spacing:-.03em;margin:0 0 12px}.modal-inner p{font-size:13px;color:#647971;white-space:pre-line;line-height:1.75}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:21px}.modal-actions button{padding:12px 15px;border:0;border-radius:11px;background:#edf3ec;color:#477165;font-size:13px;font-weight:850;min-width:80px}.modal-actions button.confirm{background:#0d8d6e;color:white}.modal-actions button.danger{background:#dd665f;color:white}#modal-custom .field{font-size:14px}#modal-custom .field-label{margin-top:12px}
@media(max-width:365px){.app-shell{padding-inline:13px}.brand-title{font-size:15px}.device-pill{font-size:8px;padding:8px 7px}.hero-card{padding:19px 15px}.clock{font-size:64px}.nav-tab{min-width:80px}}@media(min-width:680px){.bottom-nav{border-radius:18px 18px 0 0;box-shadow:0 -9px 30px #0000000b}.app-header{padding-top:35px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* v5: readability, mistake recovery, accessible hit targets; intentionally no animations during timing. */
:root{--ink:#172e2e;--secondary:#4d6661;--green:#006e5e;--green-dark:#005548}
body{font-size:15px}
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #134fc2;outline-offset:3px}
button,select,summary{-webkit-tap-highlight-color:rgba(9,114,95,.15)}
.tiny-button{min-height:44px;padding:10px 12px;border:1px solid #d6e6dc;border-radius:10px;font-size:13px;color:#075f51;background:#f6fbf7}
.tiny-button.danger{background:#fff7f5;color:#a13c30;border-color:#efd5ce}
.record-actions{gap:8px;flex-wrap:wrap}
.record-sub,.recent-sub{font-size:12px;color:#506760}
.field-overline,.field-label,.metric-label{font-size:13px;color:#365b52}
.section-eyebrow,.section-head .section-eyebrow{font-size:11px}
.nav-tab{font-size:13px;min-height:53px;padding:6px 5px}
.nav-tab span{font-size:22px}
.timer-foot{font-size:13px;color:#526b63;line-height:1.65}
.offline-status{margin-top:11px;text-align:center;color:#677e74;font-size:12px;line-height:1.5;background:#f2f4ef;border-radius:10px;padding:9px 11px}
.offline-status.ready{background:#eaf5eb;color:#0b6953}
.undo-box{background:#fffaed;gap:12px}
.undo-body strong{font-size:14px}
.undo-body span{font-size:13px;color:#795c37;line-height:1.5}
.quick-adjust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.quick-adjust button{border:1px solid #d2b882;background:white;color:#765122;border-radius:11px;min-height:46px;font-size:13px;font-weight:800}
.quick-adjust button:disabled{opacity:.3}
#undo-button{min-height:48px;font-size:13px}
.modal-adjust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.adjust-chip{min-height:44px;background:#f2f8f4;color:#186851;border:1px solid #d4e8da;border-radius:9px;font-weight:800;font-size:13px}
.duration-preview{margin-top:14px;padding:13px;border-radius:10px;background:#e8f4eb;color:#085847;font-size:14px;font-weight:800}
.record-alert{margin-top:8px;border-radius:8px;padding:8px;font-size:12px;font-weight:700;color:#994919;background:#fff3e5}
.device-pill{font-size:11px;color:#075f52}
.share-panel p,.section-title p,.inline-help{font-size:14px}
.shared-check label{font-size:14px}
.shared-check small{font-size:12px;color:#50675c}
.footer{font-size:12px}
@media(max-width:365px){.device-pill{font-size:10px}.nav-tab{font-size:12px;min-width:70px}}

#metric-duration{font-size:29px;letter-spacing:-.035em}

/* Keep the daylight palette in both OS themes. Respect user font scaling. */
:root{color-scheme:light}
.app-header,.modal-actions,.share-summary{flex-wrap:wrap}
.welcome-tip,.form-hint,.details-inner p,.text-muted,.footer,.footer span,.offline-status,.welcome-hero p,.inline-help{color:#405b51;font-size:.9rem;line-height:1.65}
.welcome-tip{text-align:center;padding:0 1rem}
:where(button,summary,select){touch-action:manipulation}
button,summary,.detail-button,.icon-button,.link-button{min-height:44px}
button:disabled{cursor:default}
.field,.field.area,#modal-custom .field{font-size:1rem;max-width:100%;min-width:0}
select,.record-main,.recent-main,.form-grid>*{min-width:0;max-width:100%}
.record-title,.recent-title,.record-duration,.metric-value,.record-sub{overflow-wrap:anywhere}
.timer-button.start,.action.primary,.modal-actions button.confirm{background:#05624e;color:white}
.timer-button.stop{background:#a83a30;color:white}
.line-action{background:#166238;color:white}
.clock{font-variant-numeric:tabular-nums}
.nav-tab,.field-label,.timer-foot,.form-hint,.toast{font-size:.9rem}
.critical-banner{color:#862a1c}.alert-banner{color:#694619}
@media(max-width:380px){.form-grid{grid-template-columns:1fr}.app-header{gap:8px}.nav-tab{min-width:0;flex:1}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
