:root{color-scheme:light;--ink:#163746;--muted:#536873;--line:#d4e0e6;--paper:#fff;--bg:#f0f5f8;--accent:#087b88;--navy:#153e50;--soft:#e8f4f5;--orange:#b66035}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",sans-serif;font-size:18px;line-height:1.75}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:12px;padding:12px 20px;line-height:1.5;font-weight:600;min-height:48px}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #db8944;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:2px}.header{max-width:1200px;margin:auto;padding:26px 36px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:var(--navy);font-weight:750;font-size:24px;letter-spacing:.04em;display:flex;align-items:center;gap:12px}.brand-mark{color:var(--accent);font-size:33px}.edition{font-size:14px;letter-spacing:.12em;color:var(--muted)}main{max-width:1200px;padding:0 36px 40px;margin:auto}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:28px;overflow-x:auto}.tabs button{background:transparent;color:var(--muted);border-radius:0;white-space:nowrap;border-bottom:3px solid transparent;padding:15px 20px}.tabs .active{color:var(--accent);border-color:var(--accent)}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:26px;align-items:start}.morning{background:var(--navy);color:#fff;border-radius:22px;padding:32px;position:sticky;top:24px}.eyebrow{font-size:13px;letter-spacing:.18em;font-weight:700;margin:0 0 18px;color:var(--accent)}.morning .eyebrow{color:#a9dfe2}h1{font-size:30px;line-height:1.55;font-weight:650;letter-spacing:.03em;margin:0 0 20px}h2{font-size:24px;line-height:1.6;margin:0 0 12px}h3{font-size:20px;margin:0 0 12px}.date{font-size:16px;color:#c6dce3;margin:22px 0 8px}.schedule{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.schedule strong{font-size:48px;line-height:1.3;font-weight:450;letter-spacing:.02em;font-variant-numeric:tabular-nums}.schedule span{font-size:14px;color:#c6dce3}.morning-note{color:#d2e3e9;font-size:16px;margin:22px 0 28px}.steps{list-style:none;padding:24px 0 0;margin:0;border-top:1px solid #426373;display:grid;gap:16px}.steps li{display:flex;align-items:center;gap:13px;font-size:16px;color:#a7c2cd}.steps .current{color:white;font-weight:700}.steps .done{color:#a9dfe2}.step-number{height:29px;min-width:29px;border-radius:50%;border:1px solid #678995;display:inline-grid;place-items:center;font-size:14px}.current .step-number{background:#b5e5e6;color:var(--navy);border-color:transparent}.privacy{font-size:13px;color:#bed1da;margin:28px 0 0}.work-card,.settings-card{background:white;border:1px solid var(--line);padding:34px;border-radius:22px;box-shadow:0 8px 35px #16374605;min-width:0}.work-card{min-height:570px}.step-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:var(--muted);margin-bottom:20px}.step-caption span:first-child{color:var(--accent);font-weight:700}.intro{color:var(--muted);margin:0 0 24px}.primary{background:var(--accent);color:white}.secondary{background:var(--soft);color:var(--ink);border:1px solid #c3dadd}.quiet{color:var(--muted);background:transparent;border:1px solid var(--line)}.danger{color:#a63828;background:#fff2ee}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:26px}.actions .primary{flex:1}.full{width:100%}.muted{color:var(--muted);font-size:15px}.field{margin:25px 0;padding:0;border:0;min-width:0}.field legend{font-weight:650;padding:0;margin-bottom:12px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:#fff;color:var(--muted);font-size:16px;font-weight:500;padding:10px 14px}.chip[aria-pressed=true]{background:var(--soft);border:2px solid var(--accent);padding:9px 13px;color:#065965;font-weight:700}label{display:block;font-weight:600;margin:22px 0 8px}input[type=time],select,textarea{display:block;width:100%;border:1px solid #b8cbd5;border-radius:10px;background:white;color:var(--ink);padding:12px;margin-top:8px}textarea{resize:vertical;min-height:90px;font-size:17px}input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.check{display:flex;gap:12px;align-items:center}.hint{padding:14px 18px;background:#f4f7f9;border-left:3px solid #b6cbd5;border-radius:0 10px 10px 0;font-size:15px;color:var(--muted)}.timer-face{margin:22px auto;text-align:center;border-radius:20px;background:#edf6f7;padding:22px}.timer-digits{font-size:76px;font-weight:400;letter-spacing:.035em;line-height:1.4;font-variant-numeric:tabular-nums}.timer-label{font-size:14px;color:var(--muted);margin:0}.timer-progress{height:5px;background:#cce0e3;border-radius:10px;overflow:hidden;margin:18px 0 0}.timer-progress i{display:block;height:100%;background:var(--accent);transition:width .2s}.timer-controls{display:flex;gap:10px;justify-content:center;margin-top:14px}.timer-controls button{min-width:120px}#timerStatus{min-height:28px;font-size:15px;color:var(--accent);margin-top:10px}.help{margin:24px 0;color:var(--muted);font-size:15px}.help summary{cursor:pointer;padding:12px}.help p{padding:0 12px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.section-top h1{margin-bottom:4px}.empty{background:white;border:1px dashed #b7cbd6;padding:50px 24px;text-align:center;border-radius:20px;margin-top:28px}.empty p{color:var(--muted)}.record{background:white;border:1px solid var(--line);border-radius:18px;margin-top:18px;overflow:hidden}.record summary{padding:22px;cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.record summary strong{display:block;font-size:20px}.record summary span{font-size:14px;color:var(--muted)}.record-content{padding:0 24px 24px}.comparison{width:100%;border-collapse:collapse;font-size:16px;margin:14px 0 22px;table-layout:fixed}.comparison th,.comparison td{padding:12px 9px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}.comparison th{font-size:14px;color:var(--muted);font-weight:600}.comparison td:first-child{font-weight:600}.motion-result{padding:18px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.motion-result p{font-size:16px;margin:5px 0}.tag{display:inline-block;background:var(--soft);padding:3px 10px;border-radius:6px;font-size:14px}.saved-heading{color:var(--accent);margin:12px 0 24px}.settings-card{max-width:720px;margin:auto}.settings-card hr{border:0;border-top:1px solid var(--line);margin:32px 0}.import-label{font-size:16px}input[type=file]{font-size:15px;max-width:100%;margin-top:10px}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}#notice:not(:empty){background:#e0f0ef;padding:12px 20px;border-radius:12px;margin-bottom:22px}footer{max-width:1200px;margin:auto;padding:20px 36px 34px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);display:flex;justify-content:space-between;gap:20px} [hidden]{display:none!important}@media(max-width:850px){.workspace{grid-template-columns:1fr}.morning{position:static;padding:24px}.morning h1,.morning-note,.morning .privacy,.morning .eyebrow{display:none}.morning .date{margin:0}.schedule strong{font-size:36px}.steps{display:flex;justify-content:space-between;margin-top:18px;padding-top:18px;gap:8px}.steps li{font-size:13px;flex-direction:column;gap:6px}.work-card{min-height:0}.edition{display:none}}@media(max-width:520px){body{font-size:18px}.header{padding:16px 18px}.brand{font-size:21px}main{padding:0 14px 24px}.tabs{margin-bottom:18px;gap:0}.tabs button{font-size:15px;padding:13px 12px}.work-card,.settings-card{padding:22px 18px;border-radius:18px}.workspace{gap:16px}h1{font-size:25px}h2{font-size:23px}.timer-digits{font-size:64px}.chip{font-size:16px;padding:10px 12px}.chip[aria-pressed=true]{padding:9px 11px}.comparison{font-size:15px}.comparison th,.comparison td{padding:10px 5px}.record-content{padding:0 15px 20px}footer{padding:18px;flex-direction:column;gap:4px}.steps li{font-size:12px}.section-top{margin-top:26px}.actions{gap:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Keep the native time control inside the settings card on iOS. */
#routineTime {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3em;
}
