/* iPhone 番茄钟 · single-column touch layout. Scoped to .mf-* only. */
html.plan-mobile-host body.mf-focus-page .pageDesc{display:none}
html.plan-mobile-host body.mf-focus-page .pageIntro{margin-bottom:11px}
html.plan-mobile-host body.mf-focus-page .workspace{padding-bottom:calc(166px + env(safe-area-inset-bottom))}
.mf-page{--mf-blue:#426fbd;--mf-blue-deep:#315e9e;--mf-ink:#24384e;--mf-muted:#8b9bab;--mf-line:#e5ebf2;--mf-soft:#f6f9fc;display:flex;flex-direction:column;gap:12px;max-width:680px;margin:0 auto;padding-bottom:8px}
.mf-loading{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#8b9bab;font-size:13px}
.mf-spinner{width:22px;height:22px;border:2px solid #dce6ef;border-top-color:#4d78bd;border-radius:50%;animation:mfSpin .8s linear infinite}
@keyframes mfSpin{to{transform:rotate(360deg)}}
.mf-card{background:#fff;border:1px solid var(--mf-line);border-radius:22px;box-shadow:0 7px 24px rgba(35,66,99,.055);padding:15px 16px}
.mf-hero{padding:15px 16px 16px;border-radius:24px;overflow:hidden}
.mf-hero::before{content:"";display:block;height:3px;margin:-15px -16px 10px;background:linear-gradient(90deg,#b9d6ec,#eaf3fa 60%,#f7fbff)}
.mf-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mf-seg{display:inline-flex;gap:2px;padding:3px;background:#f1f5f9;border-radius:11px;border:1px solid #edf2f7}
.mf-seg button{min-height:34px;border:0;background:transparent;border-radius:8px;padding:0 15px;color:#8c9bad;font:600 13px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.mf-seg button.on{background:#fff;color:#315d95;box-shadow:0 2px 8px rgba(27,52,82,.10)}
.mf-seg button:disabled{opacity:.55}
.mf-icon-btn{width:38px;height:36px;border:1px solid #e6edf4;background:#fbfdff;color:#7f97ad;border-radius:11px;display:grid;place-items:center;font-size:18px;line-height:1;padding:0}
.mf-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.mf-preset{min-height:58px;border:1px solid #e5ecf3;background:#fbfcfe;border-radius:12px;padding:8px 6px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px;color:#6b8093;min-width:0}
.mf-preset b{font:700 14px/1.1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#48627b;letter-spacing:-.01em}
.mf-preset small{font-size:9px;line-height:1.25;color:#9aabba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-preset.on{border-color:#8bb5d5;background:#f1f9fe;box-shadow:inset 0 0 0 1px #d7ecf8;color:#356b94}
.mf-preset.on b{color:#2f648c}
.mf-preset:active{transform:scale(.975)}
.mf-plan-active{margin-top:12px;display:flex;align-items:center;gap:7px;color:#8b9baa;font-size:11px;flex-wrap:wrap}
.mf-plan-active b{color:#4c6e8b;font-weight:650}
.mf-timer{display:flex;flex-direction:column;align-items:center;padding:10px 0 8px;min-height:190px;justify-content:center}
.mf-state{display:inline-flex;align-items:center;gap:6px;color:#8497a8;font-size:11px;font-weight:600;padding:5px 10px;border-radius:20px;background:#f5f8fb;border:1px solid #edf2f7}
.mf-state i{width:6px;height:6px;border-radius:50%;background:#a8b7c3;display:block}
.mf-state.running{color:#438073;background:#f1faf6;border-color:#dfefe8}
.mf-state.running i{background:#58a488;box-shadow:0 0 0 3px #e4f4ec}
.mf-state.paused{color:#a47a47;background:#fff9ef;border-color:#f4e8d4}
.mf-state.paused i{background:#d0a15b}
.mf-state.break{color:#527b98;background:#f2f8fc;border-color:#e1eef6}
.mf-state.break i{background:#74a4c0}
.mf-state.recovery{color:#ad6b59;background:#fff6f2;border-color:#f2ded5}
.mf-state.recovery i{background:#d48b72}
.mf-clock{margin:12px 0 2px;font:500 clamp(58px,16.5vw,78px)/1 "SF Pro Display","Helvetica Neue",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.055em;color:#20384d;font-variant-numeric:tabular-nums;min-width:4.2em;text-align:center}
.mf-plan-line{color:#9babba;font-size:11px;line-height:1.5;text-align:center;max-width:260px}
.mf-assoc{width:100%;min-height:42px;border:1px solid #e7eef5;background:#f9fcfe;border-radius:12px;display:flex;align-items:center;gap:7px;padding:8px 11px;text-align:left;color:#71879a;font:600 11.5px/1.35 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin-top:4px}
.mf-assoc span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.mf-assoc svg{color:#91a7b8}
.mf-assoc:disabled{opacity:.8}
.mf-assoc b{font-weight:700;color:#466b85}
.mf-actions{display:flex;gap:8px;margin-top:10px}
.mf-btn{border:1px solid #dfe8f1;background:#fff;color:#577287;border-radius:13px;min-height:48px;padding:0 14px;font:650 14px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;display:flex;align-items:center;justify-content:center;gap:7px;flex:1}
.mf-btn.primary{border-color:#3f73b6;background:linear-gradient(180deg,#4c82c2,#3e6eaf);color:#fff;box-shadow:0 5px 14px rgba(45,88,139,.16)}
.mf-btn.primary:active{background:#3865a3;transform:scale(.985)}
.mf-btn.warm{border-color:#ead5bd;background:#fffaf3;color:#9b7446}
.mf-btn.danger{border-color:#efd3d0;background:#fffaf9;color:#b3665d}
.mf-btn.small{min-height:38px;font-size:12px;flex:0 0 auto;padding:0 14px}
.mf-post{border:1px solid #dcece2;background:#f5fbf8;border-radius:14px;padding:11px 12px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.mf-post b{display:block;color:#527762;font-size:12px;margin-bottom:2px}
.mf-post small{display:block;color:#8fa59a;font-size:10px;line-height:1.45}
.mf-post-actions{display:flex;gap:6px}
.mf-recovery{border:1px solid #f0dccf;background:#fff9f3;border-radius:14px;padding:11px 12px;margin-top:10px;display:flex;gap:9px;align-items:flex-start;flex-direction:column}
.mf-recovery b{font-size:12px;color:#9a6f50}
.mf-recovery p{margin:3px 0 0;font-size:10.5px;line-height:1.5;color:#a38772}
.mf-sync{display:flex;align-items:center;gap:5px;justify-content:flex-end;color:#9aaab7;font-size:9.5px;padding:0 2px;min-height:12px}
.mf-sync i{width:5px;height:5px;border-radius:50%;background:#76ab91;display:block}
.mf-sync.bad i{background:#d58b73}
.mf-error{border:1px solid #f0d4cf;background:#fff8f5;border-radius:13px;padding:11px 12px;color:#a36555;font-size:11.5px;line-height:1.5;display:flex;align-items:center;gap:8px;justify-content:space-between}
.mf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 0;border-radius:18px}
.mf-stat{padding:8px 11px;border-right:1px solid #edf2f6;min-width:0}
.mf-stat:last-child{border-right:0}
.mf-stat small{display:block;font-size:10px;color:#93a4b2;margin-bottom:4px;white-space:nowrap}
.mf-stat b{display:block;font:700 18px/1.15 "SF Pro Display",-apple-system,BlinkMacSystemFont,sans-serif;color:#36566e;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.mf-stat span{display:block;font-size:9px;color:#a7b5c1;margin-top:3px}
.mf-tabs{display:flex;gap:2px;border-bottom:1px solid #e8eef4;margin-top:1px}
.mf-tab{border:0;background:transparent;position:relative;padding:11px 12px 10px;color:#93a3b1;font:600 12px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.mf-tab.on{color:#396c9a}
.mf-tab.on::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:#4c84b3}
.mf-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.mf-list-head h3{margin:0;font-size:14px;color:#344f65;letter-spacing:-.01em}
.mf-chip-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.mf-chip-row::-webkit-scrollbar{display:none}
.mf-chip{border:1px solid #e5edf4;background:#fff;border-radius:20px;padding:8px 11px;color:#8195a5;font:600 10.5px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:nowrap}
.mf-chip.on{background:#edf6fc;border-color:#d9ebf7;color:#416f92}
.mf-history-row{width:100%;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:9px;align-items:center;border:0;border-bottom:1px solid #eef3f7;background:transparent;padding:12px 0;text-align:left;color:#4f667a}
.mf-history-row:active{background:#f8fbfd}
.mf-history-date b{display:block;font:700 12px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#526d82}
.mf-history-date span{display:block;font-size:9.5px;color:#a2b1bd;margin-top:3px}
.mf-history-main strong{display:block;font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:normal;overflow:hidden;text-overflow:ellipsis;color:#3f5d73}
.mf-history-main small{display:block;font-size:9.5px;color:#9aacb9;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-history-right{text-align:right}
.mf-history-right b{display:block;font:700 12px/1.2 "SF Pro Display",-apple-system,BlinkMacSystemFont,sans-serif;color:#426a89;white-space:nowrap}
.mf-history-right span{display:block;font-size:9px;color:#9aacb9;margin-top:4px}
.mf-empty{padding:28px 12px;text-align:center;color:#9cacb8;font-size:11.5px;line-height:1.6}
.mf-breakdown{display:flex;flex-direction:column;gap:9px}
.mf-breakdown-row{display:grid;grid-template-columns:minmax(0,1fr) 78px 54px;gap:7px;align-items:center;font-size:10.5px;color:#738a9b}
.mf-breakdown-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-breakdown-row i{display:block;height:5px;border-radius:5px;background:#d9e7f1;overflow:hidden}
.mf-breakdown-row i b{display:block;height:100%;border-radius:5px;background:#6d9cbd}
.mf-breakdown-row strong{font:600 10px/1 -apple-system,BlinkMacSystemFont,sans-serif;color:#52758d;text-align:right;white-space:nowrap}
.mf-chart{display:flex;align-items:flex-end;gap:5px;height:150px;padding:8px 1px 0;border-bottom:1px solid #e8eef4;overflow:hidden}
.mf-bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;position:relative}
.mf-bar-col em{display:block;width:min(22px,75%);border-radius:4px 4px 0 0;background:#aec9dc;min-height:2px}
.mf-bar-col.high em{background:#5f91b1}
.mf-bar-col span{font-size:8.5px;color:#9eb0bd;white-space:nowrap;position:static;transform:none;margin-top:3px;line-height:1}
.mf-chart-wrap{display:flex;gap:6px;align-items:stretch;width:100%}
.mf-chart-wrap .mf-chart{flex:1;min-width:0}
.mf-yaxis{display:flex;flex-direction:column;justify-content:space-between;padding:1px 0 19px;color:#a8b7c2;font-size:8px;min-width:26px;text-align:right}
.mf-custom-range{display:flex;align-items:center;gap:5px;margin-top:7px}
.mf-custom-range input{min-height:38px;border:1px solid #e3ebf2;border-radius:9px;padding:0 8px;color:#637b8d;font-size:11px;background:#fff;min-width:0;flex:1}
.mf-section-title{font-size:10px;color:#91a5b3;font-weight:700;letter-spacing:.04em;margin:16px 0 8px}
.mf-stats-card .mf-section-title:first-child{margin-top:0}
.mf-stats-card .mf-chart{margin-top:4px}
.mf-sheet-layer{position:fixed;inset:0;z-index:125;display:none}
.mf-sheet-layer.show{display:block}
.mf-sheet-backdrop{position:absolute;inset:0;background:rgba(21,36,54,.36);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:mfFade .18s ease-out}
.mf-sheet{position:absolute;left:0;right:0;bottom:0;max-height:88dvh;background:#fff;border-radius:24px 24px 0 0;padding:8px 17px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -20px 50px rgba(20,38,60,.2);overflow:auto;-webkit-overflow-scrolling:touch;animation:mfSheetUp .25s cubic-bezier(.2,.8,.2,1)}
.mf-sheet-handle{width:36px;height:4px;border-radius:4px;background:#d9e1e8;margin:0 auto 12px}
.mf-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.mf-sheet-head h3{margin:0;font:700 20px/1.25 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#283f54;letter-spacing:-.025em}
.mf-sheet-head p{margin:4px 0 0;color:#91a2b0;font-size:11px;line-height:1.5}
.mf-sheet-close{width:32px;height:32px;flex:none;border:1px solid #e7eef4;background:#f8fbfd;border-radius:9px;color:#8499a8;font-size:18px;line-height:1;padding:0}
.mf-field{margin:10px 0}
.mf-field label{display:block;font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#728697;margin-bottom:6px}
.mf-field input,.mf-field textarea,.mf-field select{width:100%;min-height:46px;border:1px solid #e2eaf1;border-radius:11px;background:#fbfdff;padding:10px 11px;color:#314c61;font-size:14px;outline:none}
.mf-field textarea{min-height:72px;resize:vertical}
.mf-field input:focus,.mf-field textarea:focus,.mf-field select:focus{border-color:#8db4d2;background:#fff;box-shadow:0 0 0 3px #e9f5fc}
.mf-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mf-check{display:flex;align-items:center;gap:9px;padding:9px 2px;color:#587083;font-size:12px;line-height:1.4}
.mf-check input{width:19px;height:19px;accent-color:#4d86b8;flex:none;min-height:0}
.mf-sheet-actions{display:flex;gap:8px;margin-top:14px;position:sticky;bottom:0;background:#fff;padding-top:6px}
.mf-sheet-actions .mf-btn{min-height:46px}
.mf-option-group{border:1px solid #e7eef5;border-radius:13px;overflow:hidden;margin:10px 0}
.mf-option{border:0;border-bottom:1px solid #eff3f7;background:#fff;width:100%;padding:13px 12px;text-align:left;color:#4f677a;font:550 12.5px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.mf-option:last-child{border-bottom:0}
.mf-option:active{background:#f4f9fc}
.mf-option b{display:block;font-weight:650;color:#3f5c72;white-space:normal;overflow-wrap:anywhere}
.mf-option small{display:block;color:#9babb8;font-size:10px;margin-top:3px;line-height:1.4}
.mf-option .mf-radio{float:right;width:16px;height:16px;border:1.5px solid #cad9e3;border-radius:50%;margin-top:2px}
.mf-option.on .mf-radio{border-color:#4f89b2;background:#4f89b2;box-shadow:inset 0 0 0 3px #fff}
.mf-search{width:100%;min-height:42px;border:1px solid #e2eaf1;border-radius:11px;background:#f8fbfd;padding:0 12px;color:#456176;font-size:13px;margin-bottom:8px}
.mf-sheet-tabs{display:flex;gap:4px;padding:3px;background:#f2f6f9;border-radius:11px;margin:8px 0}
.mf-sheet-tab{flex:1;border:0;background:transparent;border-radius:8px;min-height:36px;color:#8fa1ae;font:600 11.5px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.mf-sheet-tab.on{background:#fff;color:#3d6e90;box-shadow:0 2px 7px rgba(25,55,80,.08)}
.mf-task-opt{max-height:42dvh;overflow:auto}
.mf-hint{font-size:10.5px;color:#9aabb7;line-height:1.55;margin:8px 0 0}
.mf-mini{position:fixed;z-index:35;left:50%;transform:translateX(-50%);bottom:calc(137px + env(safe-area-inset-bottom));display:none;align-items:center;gap:8px;max-width:calc(100vw - 34px);padding:7px 12px;border-radius:20px;border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.9);box-shadow:0 7px 22px rgba(37,63,103,.16);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);color:#395b73;font:650 11px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.mf-mini.show{display:flex}
.mf-mini i{width:6px;height:6px;border-radius:50%;background:#4e9a80;display:block}
.mf-mini span{font-variant-numeric:tabular-nums;color:#315a74}
.mf-mini small{color:#8fa2b0;font-weight:500}
.mf-keyboard .mf-sheet{max-height:58dvh}
@media(max-width:370px){.mf-clock{font-size:56px}.mf-seg button{padding:0 11px}.mf-preset b{font-size:13px}.mf-preset small{font-size:8px}.mf-stat b{font-size:16px}.mf-stat{padding:7px 8px}.mf-card{padding:13px 13px}.mf-history-row{grid-template-columns:52px minmax(0,1fr) auto}}
@media(min-width:430px){.mf-clock{font-size:80px}.mf-hero{padding:17px 18px 17px}.mf-preset{min-height:62px}}
@media(orientation:landscape) and (max-height:520px){.mf-page{gap:9px}.mf-timer{min-height:120px}.mf-clock{font-size:48px;margin:6px 0}.mf-presets{margin-top:8px}.mf-card{padding:12px}.mf-mini{display:none!important}}
@media(prefers-reduced-motion:reduce){.mf-sheet,.mf-sheet-backdrop,.mf-spinner{animation:none!important}.mf-preset:active,.mf-btn.primary:active{transform:none}}
.mf-stats-card,.mf-history-card{scroll-margin-top:12px}
/* iPhone PWA landscape: keep the phone shell instead of Mac sidebar. */
@media (orientation:landscape) and (max-height:520px) and (min-width:721px) and (max-width:950px){
  html.plan-mobile-host .sidebar{display:none!important}
  html.plan-mobile-host .app{display:block;min-height:100dvh}
  html.plan-mobile-host .main{height:100dvh;width:100%}
  html.plan-mobile-host .workspace{max-width:none;padding:calc(10px + env(safe-area-inset-top)) 26px calc(84px + env(safe-area-inset-bottom))}
  html.plan-mobile-host .pageIntro{margin-bottom:8px}
  html.plan-mobile-host .pageTitle{font-size:25px}
  html.plan-mobile-host .pageDesc{display:none}
  html.plan-mobile-host .mobileTabs,html.plan-mobile-host .mobileSecondaryNav,html.plan-mobile-host .mobileTertiaryNav,html.plan-mobile-host .mobileCompactHeader{display:none!important}
  html.plan-mobile-host #planMobileBottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:45;left:50%;transform:translateX(-50%);bottom:calc(4px + env(safe-area-inset-bottom));width:min(calc(100% - 54px),350px);height:58px;padding:4px;border-radius:28px;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(30,55,90,.16);backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}
  html.plan-mobile-host .planMobileTab{position:relative;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;padding:0;border-radius:18px;color:#000;font-size:9px;font-weight:600;line-height:1}
  html.plan-mobile-host .planMobileTab::before{content:"";position:absolute;left:2px;right:2px;top:1px;bottom:1px;border-radius:999px;background:rgba(79,110,203,.19);opacity:0;pointer-events:none}
  html.plan-mobile-host .planMobileTab.is-active::before{opacity:1}
  html.plan-mobile-host .planMobileTab>*{position:relative;z-index:1}
  html.plan-mobile-host .planMobileTab svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
  html.plan-mobile-host #planMobileCascade{position:fixed;z-index:44;bottom:calc(68px + env(safe-area-inset-bottom));right:16px;display:none;align-items:flex-start;gap:7px;max-width:calc(100vw - 24px)}
  html.plan-mobile-host #planMobileCascade.is-open{display:flex}
  html.plan-mobile-host .planMobileCascadePane{display:none;flex-direction:column;gap:1px;box-sizing:border-box;padding:5px;border-radius:22px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.98);box-shadow:0 12px 30px rgba(9,24,49,.2);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);max-height:min(66dvh,310px);overflow:auto;pointer-events:auto}
  html.plan-mobile-host #planMobileCascade.is-open .planMobileSecondPane{display:flex;width:118px}
  html.plan-mobile-host #planMobileCascade.is-open.is-third-open .planMobileThirdPane{display:flex;position:absolute;right:calc(100% + 7px);top:0;width:108px}
  html.plan-mobile-host .planMobileCascadeItem{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;padding:0 11px;border:0;border-radius:13px;background:transparent;color:#53647d;text-align:center;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap}
  html.plan-mobile-host .planMobileCascadeItem.is-selected{color:#365fbd;font-weight:750;background:#e1ebff}
  html.plan-mobile-host .planMobileCascadeItem .planMobileCascadeArrow{position:absolute;right:7px;color:#9aabc2;font-size:15px}
  html.plan-mobile-host #planMobileDrawerShade{position:fixed;inset:0;z-index:46;background:rgba(25,39,45,.34);display:block;opacity:0;pointer-events:none}
  html.plan-mobile-host #planMobileDrawerShade.is-open{opacity:1;pointer-events:auto}
  html.plan-mobile-host #planMobileDrawer{position:fixed;z-index:47;top:0;bottom:0;left:0;width:min(70vw,300px);display:flex;flex-direction:column;overflow:hidden;background:#fbfdfe;box-shadow:8px 0 24px rgba(23,55,69,.1);padding:calc(12px + env(safe-area-inset-top)) 13px calc(12px + env(safe-area-inset-bottom));visibility:hidden;transform:translateX(-103%);pointer-events:none;transition:transform .24s ease,visibility .24s}
  html.plan-mobile-host #planMobileDrawer.is-open{visibility:visible;transform:translateX(0);pointer-events:auto}
  html.plan-mobile-host body .mf-mini{bottom:calc(74px + env(safe-area-inset-bottom))}
  html.plan-mobile-host body .mf-page{max-width:760px}
  html.plan-mobile-host .updateNotice{left:12px;right:12px;width:auto;top:calc(8px + env(safe-area-inset-top))}
  html.plan-mobile-host .mf-clock{font-size:48px}
  html.plan-mobile-host .mf-timer{min-height:100px}
  html.plan-mobile-host .mf-hero{padding:11px 15px}
}
/* ===== Ring/full-screen redesign ===== */
.mf-first{padding:14px 16px 16px}
.mf-ring-zone{display:flex;justify-content:center;padding:6px 0 2px}
.mf-ring{position:relative;width:min(300px,78vw);aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none;flex:none}
.mf-ring svg.mf-ring-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
.mf-ring-track{fill:none;stroke:#e9f0f6;stroke-width:10}
.mf-ring-arc{fill:none;stroke:#4f7faf;stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset .34s cubic-bezier(.2,.8,.2,1),stroke .2s ease}
.mf-ring-arc.rest{stroke:#68a08d}
.mf-ring-handle-wrap{transition:transform .34s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.mf-ring.dragging .mf-ring-arc,.mf-ring.dragging .mf-ring-handle-wrap{transition:none}
.mf-ring-handle{fill:#fff;stroke:#4f7faf;stroke-width:3;filter:drop-shadow(0 2px 4px rgba(34,66,98,.2));pointer-events:none}
.mf-ring-handle-hit{fill:transparent;pointer-events:all;cursor:grab}
.mf-ring-center{position:absolute;inset:16%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.mf-ring-kicker{font-size:10px;font-weight:700;letter-spacing:.07em;color:#8ba1b2;margin-bottom:2px}
.mf-ring-value{font:600 clamp(48px,14vw,62px)/1 "SF Pro Display",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.055em;color:#244057;font-variant-numeric:tabular-nums}
.mf-ring-value small{font:600 12px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;color:#8da3b3;margin-left:4px}
.mf-ring-word{font:600 30px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#31536b;letter-spacing:-.02em}
.mf-ring-clock{font:500 clamp(44px,12vw,56px)/1 "SF Pro Display","Helvetica Neue",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.05em;color:#20394e;font-variant-numeric:tabular-nums;white-space:nowrap}
.mf-ring-sub{font-size:10px;color:#93a8b7;margin-top:7px;line-height:1.4;max-width:150px}
.mf-quick-note{text-align:center;color:#a2b3bf;font-size:9px;line-height:1.4;margin:-2px 0 8px}
.mf-first .mf-presets{margin-top:2px}
.mf-first .mf-assoc{margin-top:8px}
.mf-lower{margin-top:104px;padding-top:16px;border-top:1px solid #e8eef4}
.mf-lower-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 9px}
.mf-lower-head span{font-size:11px;font-weight:750;color:#758b9d;letter-spacing:.04em}
.mf-lower-head small{font-size:9px;color:#a5b4c0}
.mf-summary-quiet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--mf-line);border-radius:16px;padding:5px 0;box-shadow:none}
.mf-summary-quiet .mf-stat{padding:9px 12px}
.mf-summary-quiet .mf-stat b{font-size:18px}
.mf-tab-card{padding:0 14px 0;border-radius:16px;margin-top:11px;box-shadow:none}
.mf-tab-card .mf-tabs{margin:0}
.mf-lower .mf-history-card,.mf-lower .mf-stats-card{margin-top:10px;box-shadow:none}
/* full-screen focus */
.mf-fullscreen{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;align-items:center;padding:calc(12px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#f8fbfe 0%,#f4f8fb 54%,#edf5fa 100%);overflow:hidden;animation:mfFsIn .26s cubic-bezier(.2,.8,.2,1)}
@keyframes mfFsIn{from{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:none}}
.mf-fs-top{width:100%;max-width:430px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;flex:none}
.mf-fs-collapse{width:39px;height:39px;border:1px solid #e1ebf2;border-radius:12px;background:rgba(255,255,255,.72);color:#6f8aa0;font-size:21px;line-height:1;padding:0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mf-fs-title{text-align:center;min-width:0;flex:1}
.mf-fs-title b{display:block;font:650 15px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#31536b;letter-spacing:-.015em}
.mf-fs-title small{display:block;margin-top:3px;color:#8fa5b5;font-size:10px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.mf-fs-top-space{width:39px;height:39px;flex:none}
.mf-fs-ring{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;width:100%}
.mf-ring-large{width:min(310px,76vw);max-width:310px}
.mf-fs-meta{display:flex;justify-content:center;align-items:center;gap:7px;color:#94a8b7;font-size:10px;line-height:1.4;margin:0 0 10px;flex-wrap:wrap}
.mf-fs-meta i{font-style:normal;color:#a7b6c1}
.mf-fs-meta i::before{content:"·";margin-right:7px}
.mf-fs-recovery{max-width:320px;text-align:center;color:#a36f58;font-size:10.5px;line-height:1.5;background:#fff7f1;border:1px solid #f0ded0;border-radius:10px;padding:8px 11px;margin-bottom:9px}
.mf-fs-actions{width:min(100%,360px);max-width:360px;flex:none;display:flex;gap:9px;margin-top:0;padding:0}
.mf-fs-actions .mf-btn{min-height:52px;border-radius:16px;font-size:14px}
.mf-fs-actions .mf-btn.warm{background:rgba(255,255,255,.82);border-color:#e3ecf3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.mf-fs-actions .mf-btn.danger{background:rgba(255,250,249,.9);border-color:#efd6d2}
.mf-fs-actions .mf-hint{color:#8ba0b0;background:rgba(255,255,255,.65);border:1px solid #e5eef4;border-radius:12px;padding:9px 10px;font-size:10px;line-height:1.45}
body.mf-fs-open #planMobileBottom,body.mf-fs-open #planMobileCascade,body.mf-fs-open #planMobileDrawer,body.mf-fs-open #planMobileDrawerShade,body.mf-fs-open #mfMini,body.mf-fs-open .mobileTabs,body.mf-fs-open .mobileSecondaryNav,body.mf-fs-open .mobileCompactHeader{display:none!important}
body.mf-fs-open{overflow:hidden!important;overscroll-behavior:none}
body.mf-fs-open .workspace{padding-bottom:0!important}
@media(max-width:370px){
  .mf-ring{width:min(268px,82vw)}
  .mf-ring-value{font-size:46px}
  .mf-ring-clock{font-size:42px}
  .mf-fs-ring{padding:4px 0}
  .mf-ring-large{width:min(274px,82vw)}
  .mf-lower{margin-top:22px}
  .mf-fs-actions .mf-btn{min-height:48px}
}
@media(orientation:landscape) and (max-height:520px){
  .mf-ring{width:min(208px,52vh)}
  .mf-ring-large{width:min(240px,62vh);max-width:240px}
  .mf-ring-clock{font-size:40px}.mf-ring-value{font-size:44px}.mf-ring-word{font-size:25px}
  .mf-ring-kicker{font-size:9px}.mf-ring-sub{font-size:9px;margin-top:4px}
  .mf-fullscreen{padding:calc(7px + env(safe-area-inset-top)) 20px calc(8px + env(safe-area-inset-bottom))}
  .mf-fs-top{min-height:34px}.mf-fs-collapse{width:34px;height:34px}
  .mf-fs-actions .mf-btn{min-height:44px}
  .mf-fs-meta{margin-bottom:6px}
  .mf-lower{margin-top:14px;padding-top:10px}
}
#macTaskCard .macTaskFocus{border:1px solid #dbe8f2;background:#f7fbfe;color:#396d93;border-radius:8px;padding:7px 10px;font:600 11px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer;margin-right:2px}
#macTaskCard .macTaskFocus:hover{background:#eef7fd;border-color:#c5dcea}
#macTaskCard .macTaskFocus[hidden]{display:none!important}

#macScheduleCard .macCardFocus{border:1px solid #dbe8f2;background:#f7fbfe;color:#396d93;border-radius:7px;padding:7px 9px;font:600 10.5px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer;margin-right:2px}
#macScheduleCard .macCardFocus:hover{background:#eef7fd;border-color:#c5dcea}
@media(max-width:720px){
  html.plan-mobile-host #macTaskCard.show,html.plan-mobile-host #macScheduleCard.show{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;
    bottom:calc(78px + env(safe-area-inset-bottom))!important;width:auto!important;
    max-width:calc(100vw - 16px)!important;max-height:72dvh!important;border-radius:22px!important;
    z-index:60!important;
  }
  html.plan-mobile-host #macTaskCard .macTaskArrow,html.plan-mobile-host #macScheduleCard .macCardArrow{display:none!important}
}
@media (orientation:landscape) and (max-height:520px){
  body.mf-focus-page .workspace{padding-top:2px!important}
  body.mf-focus-page .pageTitle{font-size:26px!important;line-height:1.1!important;margin-bottom:2px!important}
  body.mf-focus-page .pageSubtitle{display:none!important}
  .mf-first{display:grid;grid-template-columns:178px minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:14px;row-gap:5px;padding:8px 14px!important;align-items:center}
  .mf-first .mf-top{grid-column:1/-1;grid-row:1;min-height:30px;margin-bottom:0}
  .mf-first .mf-ring-zone{grid-column:1;grid-row:2/5;padding:0;justify-content:center}
  .mf-first .mf-presets{grid-column:2;grid-row:2;margin:0;gap:6px}
  .mf-first .mf-assoc{grid-column:2;grid-row:3;margin:0;min-height:36px}
  .mf-first .mf-actions{grid-column:2;grid-row:4;margin:0}
  .mf-first .mf-plan-active{grid-column:2;grid-row:2;margin:0}
  .mf-first .mf-quick-note{display:none}
  .mf-first .mf-recovery,.mf-first .mf-post{grid-column:1/-1;grid-row:5;margin:2px 0 0}
  .mf-first .mf-ring{width:min(168px,44vh)}
  .mf-first .mf-ring-kicker{font-size:8.5px}
  .mf-first .mf-ring-value{font-size:40px}
  .mf-first .mf-ring-word{font-size:24px}
  .mf-first .mf-ring-clock{font-size:38px}
  .mf-first .mf-ring-sub{font-size:8.5px;margin-top:4px;max-width:120px}
  .mf-first .mf-preset{min-height:40px;padding:5px 7px}
  .mf-first .mf-preset b{font-size:11px}
  .mf-first .mf-preset small{display:none}
  .mf-first .mf-assoc{font-size:10.5px;padding:7px 9px}
  .mf-first .mf-btn{min-height:44px;font-size:13px}
  .mf-lower{margin-top:12px;padding-top:8px}
  body.mf-focus-page .pageIntro{display:none!important}
}

/* ===== iPhone 番茄钟 V4 · 纯白简约粗进度圆环 ===== */
html.plan-mobile-host body.mf-focus-page{background:#fff!important;--mf-v4-blue:#4d83bf;--mf-v4-ink:#223b55;--mf-v4-muted:#879bae;--mf-v4-line:#e8eef5}
html.plan-mobile-host body.mf-focus-page .main{background:#fff!important}
html.plan-mobile-host body.mf-focus-page .workspace{padding:0!important;max-width:none!important;margin:0!important}
body.mf-focus-page .pageIntro,body.mf-focus-page .pageDesc{display:none!important}
body.mf-focus-page .mf-v4-page{width:100%;max-width:430px;margin:0 auto;min-height:100dvh;background:#fff;color:var(--mf-v4-ink);padding:calc(28px + env(safe-area-inset-top)) 24px calc(132px + env(safe-area-inset-bottom));box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft Yahei",sans-serif;-webkit-font-smoothing:antialiased}
body.mf-focus-page .mf-v4-page *{box-sizing:border-box}
body.mf-focus-page .mf-v4-title{margin:0;font-size:32px;line-height:1.13;font-weight:750;letter-spacing:-.75px;color:#223b55}
body.mf-focus-page .mf-v4-head{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:16px}
body.mf-focus-page .mf-v4-timer{background:transparent;border:0;box-shadow:none;padding:0}
body.mf-focus-page .mf-v4-mode-wrap{display:flex;justify-content:center;margin-top:7px}
body.mf-focus-page .mf-v4-mode{display:inline-flex;gap:3px;padding:4px;background:#f1f5f9;border-radius:15px;min-width:214px;justify-content:center}
body.mf-focus-page .mf-v4-mode button{min-width:102px;border:0;background:transparent;border-radius:11px;padding:10px 15px;color:#8598ac;font-size:13px;font-weight:680;line-height:1.2;transition:background .22s,color .22s,box-shadow .22s}
body.mf-focus-page .mf-v4-mode button.is-active{background:#fff;color:#356fa9;box-shadow:0 2px 9px rgba(82,111,146,.125)}
body.mf-focus-page .mf-v4-mode button:disabled{opacity:.55}
body.mf-focus-page .mf-v4-ring{position:relative;width:min(100%,267px);aspect-ratio:1;margin:24px auto 8px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
body.mf-focus-page .mf-v4-ring:not([data-idle-ring="1"]){cursor:default}
body.mf-focus-page .mf-v4-ring-svg{width:100%;height:100%;overflow:visible;display:block}
body.mf-focus-page .mf-v4-ring-track{fill:none;stroke:#e9f0f7;stroke-width:17}
body.mf-focus-page .mf-v4-ring-fill{fill:none;stroke:#4d83bf;stroke-width:17;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .52s cubic-bezier(.22,.83,.25,1)}
body.mf-focus-page .mf-v4-ring.dragging .mf-v4-ring-fill{transition:none}
body.mf-focus-page .mf-v4-ring-inner{position:absolute;inset:17%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;pointer-events:none}
body.mf-focus-page .mf-v4-ring-kicker{font-size:11px;font-weight:650;letter-spacing:1px;color:#849bb2;margin-bottom:4px}
body.mf-focus-page .mf-v4-ring-clock{font-size:53px;font-weight:680;letter-spacing:-1.6px;line-height:1.2;color:#213c56;font-variant-numeric:tabular-nums;white-space:nowrap}
body.mf-focus-page .mf-v4-ring-clock span{font-size:17px;font-weight:600;color:#8399af;letter-spacing:0;margin-left:1px}
body.mf-focus-page .mf-v4-ring-sub{font-size:12px;color:#778da2;margin-top:7px;font-weight:500;line-height:1.4}
body.mf-focus-page .mf-v4-presets{display:flex;justify-content:center;gap:9px;margin:15px auto 16px;flex-wrap:nowrap}
body.mf-focus-page .mf-v4-preset{border:1px solid #e7edf4;background:#f7f9fb;border-radius:40px;color:#5f7891;font-size:13px;font-weight:700;padding:10px 16px;min-height:40px;white-space:nowrap;line-height:1.2;transition:background .22s,border-color .22s,color .22s}
body.mf-focus-page .mf-v4-preset.is-active{background:#ecf5fd;border-color:#cfe2f4;color:#3976b1}
body.mf-focus-page .mf-v4-preset:active{transform:scale(.98)}
body.mf-focus-page .mf-v4-assoc{max-width:min(100%,255px);display:flex;align-items:center;justify-content:center;gap:8px;height:43px;padding:0 15px;background:#f3f7fb;border:1px solid #e3ecf5;border-radius:999px;color:#5c7a97;font-size:13px;font-weight:670;margin:4px auto 17px;white-space:nowrap;max-width:255px}
body.mf-focus-page .mf-v4-assoc span{overflow:hidden;text-overflow:ellipsis;min-width:0}
body.mf-focus-page .mf-v4-assoc svg{flex:none;color:#7197bc}
body.mf-focus-page .mf-v4-assoc svg:last-child{color:#96abbd}
body.mf-focus-page .mf-v4-assoc.is-static{background:#f7fafc;color:#728ba0;border-color:#e8eff5}
body.mf-focus-page .mf-v4-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,218px);min-height:54px;margin:0 auto;border:0;border-radius:15px;background:#4d83bf;color:#fff;font-size:17px;font-weight:730;padding:15px 17px;box-shadow:none;line-height:1.2}
body.mf-focus-page .mf-v4-cta:active{transform:scale(.99);background:#4377b1}
body.mf-focus-page .mf-v4-cta.is-quiet{width:min(100%,280px);font-size:13px;background:#f4f8fb;color:#5f7f99;border:1px solid #e4edf5}
body.mf-focus-page .mf-v4-net{margin:12px auto 0;text-align:center;font-size:10px;color:#b0856f;line-height:1.5}
body.mf-focus-page .mf-v4-record-entry{display:flex;align-items:center;gap:12px;background:transparent;border:0;border-top:1px solid #e5ecf3;border-bottom:1px solid #e5ecf3;border-radius:0;margin:39px 0 0;width:100%;min-height:72px;padding:13px 2px;text-align:left;color:#284560;transition:background .2s}
body.mf-focus-page .mf-v4-record-entry:active{background:#f8fbfe}
body.mf-focus-page .mf-v4-record-icon{width:30px;height:34px;display:grid;place-items:center;color:#6a94bd;flex:none}
body.mf-focus-page .mf-v4-record-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
body.mf-focus-page .mf-v4-record-copy strong{font-size:15px;font-weight:740}
body.mf-focus-page .mf-v4-record-copy small{font-size:12px;color:#91a4b6;font-weight:500}
body.mf-focus-page .mf-v4-record-arrow{color:#9aafc1;display:grid;place-items:center;flex:none}
body.mf-focus-page .mf-v4-loading{min-height:60dvh;display:flex;align-items:center;justify-content:center;gap:10px;color:#91a4b6;font-size:13px}
body.mf-focus-page .mf-v4-spinner{width:20px;height:20px;border:2px solid #e0eaf3;border-top-color:#4d83bf;border-radius:50%;animation:mfSpin .8s linear infinite}
body.mf-focus-page .mf-v4-error{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff8f5;border:1px solid #f0d9d1;border-radius:12px;padding:12px;color:#a36555;font-size:12px;line-height:1.5}
body.mf-focus-page .mf-v4-error button{border:0;background:#f6e6df;color:#985b49;border-radius:8px;padding:7px 10px;font-size:11px}
body.mf-focus-page .mfFocusSettingsButton{position:fixed!important;z-index:30!important;top:calc(env(safe-area-inset-top) + 8px)!important;right:16px!important}
body.mf-records-open .mfFocusSettingsButton{display:none!important}

/* full-screen focus */
body.mf-focus-page .mf-v4-full{position:fixed;inset:0;z-index:90;background:#fff;display:flex;flex-direction:column;align-items:center;padding:calc(36px + env(safe-area-inset-top)) 25px calc(30px + env(safe-area-inset-bottom));overflow:hidden;animation:mfV4FullIn .28s cubic-bezier(.22,.8,.2,1)}
@keyframes mfV4FullIn{from{opacity:.6;transform:translateY(10px)}to{opacity:1;transform:none}}
body.mf-focus-page .mf-v4-full-head{width:100%;max-width:430px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}
body.mf-focus-page .mf-v4-ghost{width:38px;height:38px;border:1px solid #dce8f4;background:rgba(255,255,255,.7);display:grid;place-items:center;color:#718aa5;border-radius:13px;padding:0;flex:none}
body.mf-focus-page .mf-v4-full-heading{text-align:center;min-width:0;flex:1}
body.mf-focus-page .mf-v4-full-heading strong{font-size:16px;display:block;font-weight:720;color:#223b55}
body.mf-focus-page .mf-v4-full-heading span{display:block;max-width:230px;margin:4px auto 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#8a9eb2}
body.mf-focus-page .mf-v4-head-spacer{width:38px;height:38px;flex:none}
body.mf-focus-page .mf-v4-full-space{flex:1;min-height:18px}
body.mf-focus-page .mf-v4-full-ring{width:min(100%,325px);margin:auto;flex:none}
body.mf-focus-page .mf-v4-full-ring .mf-v4-ring{width:100%;margin:0;cursor:default}
body.mf-focus-page .mf-v4-full-ring .mf-v4-ring-inner{inset:10%}
body.mf-focus-page .mf-v4-full-ring .mf-v4-ring-clock{font-size:52px}
body.mf-focus-page .mf-v4-full-ring .mf-v4-ring-sub{font-size:13px}
body.mf-focus-page .mf-v4-full-ring .mf-v4-ring-kicker{display:none}
body.mf-focus-page .mf-v4-round-actions{display:flex;justify-content:center;align-items:center;gap:27px;margin:8px 0 0;flex:none}
body.mf-focus-page .mf-v4-round{width:58px;height:58px;border:1px solid #dbe7f4;background:#fff;color:#597894;border-radius:50%;display:grid;place-items:center;padding:0;box-shadow:0 4px 12px rgba(41,71,103,.035)}
body.mf-focus-page .mf-v4-round.is-main{flex:none;width:74px;height:74px;background:#4b83c0;color:#fff;border-color:#4b83c0;box-shadow:0 10px 24px rgba(77,131,192,.21)}
body.mf-focus-page .mf-v4-round:active{transform:scale(.96)}
body.mf-focus-page .mf-v4-end-hint{font-size:11px;color:#7a90a5;margin-top:12px;text-align:center;min-height:15px}
body.mf-focus-page .mf-v4-full-foot{text-align:center;color:#95a7b9;font-size:11px;margin-top:8px}
body.mf-focus-page .mf-v4-complete-saved{text-align:center;color:#72899f;font-size:12px;margin:12px 0 0}
body.mf-focus-page .mf-v4-round-actions.is-complete-actions{margin-top:0}
body.mf-focus-page .mf-v4-recovery-note{max-width:280px;text-align:center;color:#a36f58;font-size:10.5px;line-height:1.5;background:#fff7f1;border:1px solid #f0ded0;border-radius:10px;padding:8px 11px;margin:8px 0}
body.mf-fs-open{overflow:hidden!important;overscroll-behavior:none}
body.mf-fs-open #planMobileBottom,body.mf-fs-open #planMobileCascade,body.mf-fs-open #planMobileDrawer,body.mf-fs-open #planMobileDrawerShade,body.mf-fs-open #mfMini,body.mf-fs-open .mobileTabs,body.mf-fs-open .mobileSecondaryNav,body.mf-fs-open .mobileCompactHeader{display:none!important}
body.mf-fs-open .workspace{padding-bottom:0!important}

/* records page — stays below the global floating navigation */
body.mf-focus-page .mf-v4-records{position:fixed;inset:0;z-index:17;background:#fff;overflow:hidden;visibility:hidden;opacity:0;will-change:clip-path}
body.mf-focus-page .mf-v4-records.is-open{visibility:visible;opacity:1}
body.mf-focus-page .mf-v4-records-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
body.mf-focus-page .mf-v4-records-scroll::-webkit-scrollbar{display:none}
body.mf-focus-page .mf-v4-records-content{padding:calc(37px + env(safe-area-inset-top)) 25px calc(140px + env(safe-area-inset-bottom));opacity:0;transform:translateY(10px);transition:opacity .24s ease,transform .28s ease;max-width:430px;margin:0 auto}
body.mf-focus-page .mf-v4-records.content-visible .mf-v4-records-content{opacity:1;transform:none}
body.mf-focus-page .mf-v4-records-head{display:flex;align-items:center;gap:12px;margin-bottom:27px}
body.mf-focus-page .mf-v4-records-back{width:40px;height:40px;border:0;background:#f4f7fa;color:#557c9f;display:grid;place-items:center;border-radius:14px;flex-shrink:0;padding:0}
body.mf-focus-page .mf-v4-records-head h2{font-size:28px;letter-spacing:-.6px;line-height:1.25;margin:0;font-weight:770;color:#223b55}
body.mf-focus-page .mf-v4-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid #e9eef4;padding:9px 0 26px}
body.mf-focus-page .mf-v4-overview-item{padding:0 12px;border-left:1px solid #edf1f5;min-width:0}
body.mf-focus-page .mf-v4-overview-item:first-child{padding-left:0;border-left:0}
body.mf-focus-page .mf-v4-overview-item>span{display:block;font-size:12px;color:#7c92a6;margin-bottom:10px}
body.mf-focus-page .mf-v4-overview-item strong{display:block;font-size:24px;font-weight:780;letter-spacing:-1px;color:#223b55;font-variant-numeric:tabular-nums;white-space:nowrap}
body.mf-focus-page .mf-v4-overview-item small{display:block;font-size:11px;color:#8299ad;margin-top:5px}
body.mf-focus-page .mf-v4-context{font-size:12px;font-weight:690;color:#8a9daf;letter-spacing:.4px;margin:29px 0 13px}
body.mf-focus-page .mf-v4-records-tabs{display:flex;gap:24px;border-bottom:1px solid #e8eef4}
body.mf-focus-page .mf-v4-records-tabs button{border:0;background:none;padding:12px 0 14px;font-size:15px;font-weight:700;color:#889db0;position:relative}
body.mf-focus-page .mf-v4-records-tabs button.is-active{color:#2f70ae}
body.mf-focus-page .mf-v4-records-tabs button.is-active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#4d83bf;border-radius:2px}
body.mf-focus-page .mf-v4-records-body{min-height:180px}
body.mf-focus-page .mf-v4-record{display:flex;gap:10px;align-items:center;width:100%;padding:15px 2px;border:0;border-bottom:1px solid #f0f3f7;background:transparent;text-align:left;color:#284560}
body.mf-focus-page .mf-v4-record:last-child{border-bottom:0}
body.mf-focus-page .mf-v4-record-symbol{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf5fc;color:#6189b5;flex:none}
body.mf-focus-page .mf-v4-record-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
body.mf-focus-page .mf-v4-record-date{display:flex;align-items:baseline;gap:7px;font-size:13px;font-weight:700;color:#334f68}
body.mf-focus-page .mf-v4-record-date em{font-style:normal;font-size:11px;font-weight:500;color:#91a2b2}
body.mf-focus-page .mf-v4-record-meta{font-size:11px;color:#8397a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mf-focus-page .mf-v4-record-assoc{font-size:10px;color:#a1b0bd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mf-focus-page .mf-v4-record-minutes{font-size:14px;font-weight:750;color:#385b77;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
body.mf-focus-page .mf-v4-record-minutes small{display:block;font-size:9px;color:#9babb8;font-weight:500;margin-top:2px}
body.mf-focus-page .mf-v4-rec-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:62px 10px 25px;text-align:center;color:#9aaabb}
body.mf-focus-page .mf-v4-rec-empty svg{color:#bed0e1}
body.mf-focus-page .mf-v4-rec-empty strong{font-size:15px;color:#5b7790;font-weight:650}
body.mf-focus-page .mf-v4-rec-empty small{font-size:12px;line-height:1.7;color:#91a3b4}
body.mf-focus-page .mf-v4-chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 9px}
body.mf-focus-page .mf-v4-chart-head strong{font-size:12px;color:#647d95;font-weight:700}
body.mf-focus-page .mf-v4-range{display:flex;gap:4px}
body.mf-focus-page .mf-v4-range button{border:0;border-radius:8px;background:#f3f6fa;color:#7990a4;font-size:11px;padding:6px 8px}
body.mf-focus-page .mf-v4-range button.is-active{background:#e6f1fc;color:#387bb8}
body.mf-focus-page .mf-v4-chart{height:205px;display:flex;gap:9px;align-items:flex-end;padding:10px 4px 0;border-bottom:1px solid #e8eef4}
body.mf-focus-page .mf-v4-bar-wrap{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0}
body.mf-focus-page .mf-v4-bar{width:60%;min-height:3px;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,#83aed5,#a7cae7);display:block}
body.mf-focus-page .mf-v4-bar-label{font-size:9px;color:#99aabe;height:12px;white-space:nowrap}
body.mf-records-open .main{overflow:hidden!important}
body.mf-records-open .mf-focus-settings{visibility:hidden!important}

/* settings popover uses existing To Do liquid component; focus-only rows */
.mtodoLiquidMenu .mfFocusMenuRow{min-height:51px;gap:7px}
.mtodoLiquidMenu .mfFocusMenuRow>span:nth-child(2){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px}
.mtodoLiquidMenu .mfFocusStepper{display:flex;align-items:center;gap:6px;flex:none}
.mtodoLiquidMenu .mfFocusStepper button{border:0;background:rgba(238,245,251,.9);border-radius:8px;width:25px;height:25px;color:#437bab;font-size:17px;line-height:1;padding:0}
.mtodoLiquidMenu .mfFocusStepper strong{font-size:11px;color:#32506d;min-width:43px;text-align:center;white-space:nowrap;font-weight:650}
.mtodoLiquidMenu .mfFocusMenuValue{color:#366fa6;margin-left:auto;font-weight:720;font-size:13px;white-space:nowrap}
.mtodoLiquidMenu .mfFocusMenuRow:disabled{opacity:.55}
.mtodoLiquidMenu .mfFocusMenuRow .mtodoSettingsChevron{color:#a0b3c4;width:14px;height:14px}
body.mf-sheet-open .mfFocusSettingsButton{visibility:hidden}
.mf-v4-assoc-info{display:flex;align-items:center;gap:10px;background:#f5f9fc;border:1px solid #e6eef5;border-radius:13px;padding:14px;color:#466984;font-size:13px;line-height:1.5}
.mf-v4-assoc-info svg{color:#6a94bd;flex:none}

/* responsive */
@media(max-width:355px){
 body.mf-focus-page .mf-v4-page{padding-left:17px;padding-right:17px}
 body.mf-focus-page .mf-v4-ring{width:245px}
 body.mf-focus-page .mf-v4-preset{padding:10px 11px}
 body.mf-focus-page .mf-v4-cta{width:min(100%,208px)}
 body.mf-focus-page .mf-v4-overview-item strong{font-size:20px}
 body.mf-focus-page .mf-v4-records-content{padding-left:17px;padding-right:17px}
}
@media(orientation:landscape) and (max-height:520px){
 body.mf-focus-page .mf-v4-page{max-width:760px;padding:calc(8px + env(safe-area-inset-top)) 24px calc(76px + env(safe-area-inset-bottom));min-height:100dvh}
 body.mf-focus-page .mf-v4-head{display:none}
 body.mf-focus-page .mf-v4-timer{display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:16px;row-gap:4px;align-items:center}
 body.mf-focus-page .mf-v4-mode-wrap{grid-column:1/-1;grid-row:1;margin:0 0 2px}
 body.mf-focus-page .mf-v4-ring{grid-column:1;grid-row:2/5;width:min(168px,46vh);margin:0 auto}
 body.mf-focus-page .mf-v4-presets{grid-column:2;grid-row:2;margin:0;justify-content:flex-start;gap:6px}
 body.mf-focus-page .mf-v4-preset{padding:8px 11px;font-size:11px;min-height:36px}
 body.mf-focus-page .mf-v4-assoc{grid-column:2;grid-row:3;margin:2px 0 0;max-width:none;height:38px;font-size:11px;justify-content:flex-start}
 body.mf-focus-page .mf-v4-cta{grid-column:2;grid-row:4;margin:0;min-height:42px;width:100%;font-size:14px}
 body.mf-focus-page .mf-v4-record-entry{margin-top:8px;min-height:48px;padding:6px 2px}
 body.mf-focus-page .mf-v4-record-copy small{display:none}
 body.mf-focus-page .mf-v4-ring-kicker{font-size:8px}
 body.mf-focus-page .mf-v4-ring-clock{font-size:39px}
 body.mf-focus-page .mf-v4-ring-clock span{font-size:12px}
 body.mf-focus-page .mf-v4-ring-sub{font-size:8.5px;margin-top:3px}
 body.mf-focus-page .mf-v4-full{padding:calc(7px + env(safe-area-inset-top)) 20px calc(8px + env(safe-area-inset-bottom))}
 body.mf-focus-page .mf-v4-full-head{min-height:34px}
 body.mf-focus-page .mf-v4-ghost,body.mf-focus-page .mf-v4-head-spacer{width:34px;height:34px}
 body.mf-focus-page .mf-v4-full-ring{width:min(240px,62vh)}
 body.mf-focus-page .mf-v4-round{width:48px;height:48px}
 body.mf-focus-page .mf-v4-round.is-main{width:62px;height:62px}
 body.mf-focus-page .mf-v4-round-actions{gap:20px}
 body.mf-focus-page .mf-v4-end-hint{margin-top:7px;font-size:10px}
 body.mf-focus-page .mf-v4-full-foot{margin-top:4px;font-size:10px}
 body.mf-focus-page .mf-v4-records-content{padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:90px}
 body.mf-focus-page .mf-v4-records-head{margin-bottom:12px}
 body.mf-focus-page .mf-v4-records-head h2{font-size:23px}
 body.mf-focus-page .mf-v4-overview{padding-bottom:14px}
 body.mf-focus-page .mf-v4-context{margin-top:14px}
}
@media(prefers-reduced-motion:reduce){
 body.mf-focus-page .mf-v4-full,body.mf-focus-page .mf-v4-ring-fill,body.mf-focus-page .mf-v4-records-content{animation:none!important;transition:none!important}
}

/* V4 · keep the To Do settings launcher intact when the app is in landscape */
body.mf-focus-page .mfFocusSettingsButton{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.96)!important;background:rgba(226,235,245,.10)!important;overflow:hidden!important;-webkit-backdrop-filter:blur(9px) saturate(1.25)!important;backdrop-filter:blur(9px) saturate(1.25)!important;box-shadow:0 8px 20px rgba(9,24,49,.17),inset 0 0 8px rgba(255,255,255,.18),inset 0 1px 1px rgba(255,255,255,.2)!important;color:#65788e!important;padding:0!important;transform:translate(var(--todo-settings-x,0px),var(--todo-settings-y,0px))!important}
body.mf-focus-page .mfFocusSettingsButton::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:radial-gradient(circle at 30% 15%,rgba(255,255,255,.26),transparent 46%),linear-gradient(145deg,rgba(255,255,255,.1),transparent 40%,transparent 70%,rgba(255,255,255,.04))}
body.mf-focus-page .mfFocusSettingsButton::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:radial-gradient(circle at 50% 50%,transparent 54%,rgba(91,116,143,.045) 96%,transparent 100%),linear-gradient(135deg,rgba(255,255,255,.1),transparent 44%)}
body.mf-focus-page .mfFocusSettingsButton>svg{position:relative;z-index:1;width:24px;height:24px}
@media(orientation:landscape) and (max-height:520px){
 body.mf-focus-page .mf-v4-cta{width:218px;max-width:100%;justify-self:start}
 body.mf-focus-page .mf-v4-assoc{width:min(100%,255px);max-width:255px;justify-self:start;justify-content:flex-start}
 body.mf-focus-page .mf-v4-full-ring{width:min(195px,50vh)}
 body.mf-focus-page .mf-v4-full-space{min-height:8px}
 body.mf-focus-page .mf-v4-round{width:48px;height:48px}
 body.mf-focus-page .mf-v4-round.is-main{width:62px;height:62px}
 body.mf-focus-page .mf-v4-round-actions{gap:20px}
 body.mf-focus-page .mf-v4-end-hint{margin-top:6px;font-size:10px}
 body.mf-focus-page .mf-v4-full-foot{margin-top:3px;font-size:10px}
}
/* final layer guard */
body.mf-records-open .mfFocusSettingsButton,
body.mf-records-open .mtodoSettingsButton,
body.mf-sheet-open .mfFocusSettingsButton,
body.mf-fs-open .mfFocusSettingsButton{display:none!important;visibility:hidden!important;pointer-events:none!important}
