.ml-timer-panel{position:fixed;z-index:2147482000;inset:3% max(10px,calc((100vw - 800px)/2));background:#fff;color:#20242a;border:1px solid #aab3bb;border-radius:15px;box-shadow:0 10px 45px #0008;display:flex;flex-direction:column;font:16px system-ui,sans-serif}.ml-timer-panel[hidden]{display:none}.ml-timer-panel>header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #ddd}.ml-timer-panel>header h2{margin:0}.ml-timer-panel>header button{font-size:30px;border:0;background:transparent}.ml-timer-body{overflow:auto;padding:16px;display:grid;gap:16px}.ml-timer-body section{border:1px solid #ddd;border-radius:12px;padding:14px}.ml-timer-body h3{margin:0 0 12px}.ml-timer-new label,.ml-timer-finish label{display:block;margin:8px 0}.ml-timer-new input,.ml-timer-new select,.ml-timer-finish textarea,.ml-timer-finish select{display:block;width:100%;box-sizing:border-box;padding:9px;font:inherit}.ml-timer-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ml-timer-body button{border:1px solid #66737e;border-radius:8px;padding:9px 12px;background:#edf1f5;color:#20242a;font:inherit;cursor:pointer}.ml-timer-new>button,.ml-timer-done,.ml-timer-finish button[data-timer-action=save]{background:#17673c!important;color:#fff!important}.ml-timer-card{padding:12px 0;border-top:1px solid #ddd}.ml-timer-title{font-weight:700}.ml-timer-clock{font-size:clamp(44px,10vw,76px);font-weight:750;font-variant-numeric:tabular-nums;line-height:1.25;color:#222}.ml-timer-clock.over{color:#c5222e}.ml-timer-meta{font-size:13px;color:#4c5862}.ml-timer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.ml-timer-preset{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid #ddd;padding:10px 0}.ml-timer-preset span{font-size:13px;color:#4c5862;flex:1 1 180px}.ml-timer-detail:empty{display:none}@media(max-width:600px){.ml-timer-panel{inset:1% 5px}.ml-timer-body{padding:10px}.ml-timer-body section{padding:10px}}
/* v0.3.89 Timer: one-timer Simple view and equal prominence for both clocks. */
.ml-timer-nav{display:flex;gap:10px;justify-content:space-between}.ml-timer-nav button{flex:1}.ml-timer-clocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.ml-timer-clocks>div{min-width:0;background:#f1f4f7;padding:12px;border-radius:10px}.ml-timer-clocks small{display:block;font-size:11px;letter-spacing:.03em;font-weight:700}.ml-timer-clocks .ml-timer-clock{font-size:clamp(26px,5.5vw,58px);overflow-wrap:anywhere}.ml-timer-primary{width:100%;font-size:22px!important;min-height:58px;background:#17673c!important;color:white!important}.ml-timer-simple .ml-timer-actions{display:none}.ml-timer-simple-primary{margin:14px 0}.ml-timer-switch{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.ml-timer-error{color:#b42318;font-weight:650}.ml-timer-error:empty{display:none}@media(max-width:600px){.ml-timer-clocks{gap:5px}.ml-timer-clocks>div{padding:8px}.ml-timer-clocks .ml-timer-clock{font-size:clamp(24px,7vw,42px)}}

/* v0.3.90: self-contained dark Timer and compact one-handed iPhone Simple mode. */
.ml-timer-panel{background:#101820;color:#f5f8fb;border-color:#40515d;box-shadow:0 16px 60px #000b}
.ml-timer-panel>header{border-color:#40515d}.ml-timer-panel>header h2{font-weight:850;color:#fff}.ml-timer-panel>header button{color:#fff}
.ml-timer-body section{background:#15212b;border-color:#40515d}.ml-timer-body button{background:#243644;color:#f6f9fc;border-color:#607687}
.ml-timer-clocks>div{background:#1b2934}.ml-timer-clocks small,.ml-timer-meta,.ml-timer-preset span{color:#bacbd5}
.ml-timer-clock{color:#fff!important}.ml-timer-clock.over{color:#ff6969!important}.ml-timer-title{color:#fff}
.ml-timer-new input,.ml-timer-new select,.ml-timer-finish textarea,.ml-timer-finish select{background:#263746;color:#fff;border:1px solid #607687;border-radius:6px}
.ml-timer-card,.ml-timer-preset{border-color:#40515d}.ml-timer-primary{background:#236b4a!important;border-color:#55b987!important;color:#fff!important}
.ml-timer-error{color:#ffaaa2}.ml-timer-panel button:focus-visible,.ml-timer-panel input:focus-visible{outline:3px solid #85b8ff;outline-offset:2px}
@media(max-width:600px){.ml-timer-panel{inset:0;border-radius:0}.ml-timer-body{padding:12px;gap:10px}.ml-timer-body section{padding:12px}.ml-timer-simple .ml-timer-clocks{grid-template-columns:minmax(0,1fr);gap:0}.ml-timer-simple .ml-timer-clocks>div{padding:14px;text-align:center}.ml-timer-simple .ml-timer-clocks>div+div{border-top:1px solid #40515d;border-radius:0 0 10px 10px}.ml-timer-simple .ml-timer-clocks .ml-timer-clock{font-size:clamp(46px,12vw,70px);overflow-wrap:normal}.ml-timer-simple .ml-timer-meta{font-size:12px}.ml-timer-simple .ml-timer-primary{min-height:72px;font-size:26px!important}.ml-timer-simple .ml-timer-switch button{min-height:48px}.ml-timer-simple .ml-timer-card{padding-top:0}.ml-timer-simple .ml-timer-title{margin:5px 0}}

/* v0.3.91: lifecycle clarity. Completed sessions cannot masquerade as active timers. */
.ml-timer-completed{border-color:#876b40!important}.ml-timer-finished{background:#202c34;border:1px solid #876b40;border-radius:9px;padding:12px;margin:10px 0}.ml-timer-status{display:inline-block;color:#f4cb82;font-size:12px;letter-spacing:.025em;margin-left:6px}.ml-timer-finished label{display:block;margin:10px 0}.ml-timer-finished select,.ml-timer-finished textarea{display:block;width:100%;box-sizing:border-box;background:#263746;color:white;border:1px solid #607687;border-radius:6px;padding:9px}.ml-timer-finished [data-timer-action=save]{background:#236b4a;color:#fff;border-color:#55b987}.ml-timer-finished [data-timer-action=discard]{border-color:#ce8b86}.ml-timer-running .ml-timer-card{margin-bottom:10px}

/* v0.3.92: completed Advanced timer stays readable until Save to History or Clear. */
.ml-timer-dev-id{display:none;margin-left:auto;color:#f4cb82;font-weight:800;font-size:13px;letter-spacing:.05em}.ml-app[data-dev="1"] ~ .ml-timer-panel .ml-timer-dev-id{display:inline-block}.ml-timer-panel[data-dev="1"] .ml-timer-dev-id{display:inline-block}.ml-timer-finished .ml-timer-clocks{margin:12px 0}.ml-timer-finished [data-timer-action=clear]{border-color:#ce8b86}

/* v0.3.93 timer symmetry, history and gear */
.ml-timer-simple .ml-timer-switch{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}.ml-timer-simple .ml-timer-switch button{width:100%;min-width:0;min-height:48px}.ml-timer-simple .ml-timer-new-simple{display:block;width:100%;box-sizing:border-box;min-height:54px;margin-top:12px}.ml-timer-history-row{padding:12px 0;border-bottom:1px solid #40515d}.ml-timer-history-row button{float:right}.ml-timer-history-note{display:block;clear:both;margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}.ml-timer-gear{border:1px solid #607687;border-radius:10px;padding:14px;margin:10px 0}.ml-timer-gear label{display:block;margin:8px 0}.ml-timer-gear input[type=number]{width:100%;box-sizing:border-box}.ml-timer-gear p{font-size:13px;color:#bacbd5}

/* v0.3.94 history and MindLife-only confirmation */
.ml-timer-saved-details>summary{cursor:pointer;font-size:1.2em;font-weight:700;padding:14px;background:#263846;border:1px solid #617887;border-radius:9px}.ml-timer-saved-details[open]>summary{margin-bottom:12px}.ml-timer-preset{display:block;padding:14px 0;border-bottom:1px solid #40515d}.ml-timer-preset-info{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ml-timer-preset-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.ml-timer-inline-history{margin-top:14px;padding:12px;border:1px solid #536c7c;border-radius:10px}.ml-timer-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.ml-timer-settings-button{margin-left:auto}.ml-timer-confirm-backdrop{position:fixed;inset:0;background:#000b;display:flex;align-items:center;justify-content:center;z-index:2147483647;padding:20px}.ml-timer-confirm{width:min(440px,100%);background:#17242e;color:white;border:2px solid #6d8796;border-radius:14px;padding:24px;box-shadow:0 15px 60px #000b}.ml-timer-confirm>div{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.ml-timer-confirm button{min-height:44px}
/* v0.3.95: modal settings, consistent field spacing and visible Simple Repeat. */
.ml-timer-simple-primary{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.ml-timer-simple-primary>button{width:100%;min-height:68px}
.ml-timer-simple-primary .ml-timer-repeat-simple{font-size:21px;font-weight:750;border-color:#8ba8bb}
.ml-timer-settings-backdrop{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:#000c;padding:14px;box-sizing:border-box}
.ml-timer-body .ml-timer-settings-modal{display:flex;flex-direction:column;gap:0;width:min(640px,100%);max-height:min(88vh,900px);overflow:hidden;padding:0;background:#17242e;border:2px solid #607687;border-radius:14px;box-shadow:0 20px 65px #000c}
.ml-timer-settings-modal>header,.ml-timer-settings-modal>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;flex:none}
.ml-timer-settings-modal>header{border-bottom:1px solid #536b79}.ml-timer-settings-modal>header h3{margin:0}.ml-timer-settings-modal>footer{border-top:1px solid #536b79;justify-content:flex-end}.ml-timer-settings-modal>footer .ml-timer-primary{width:auto;min-width:140px;min-height:48px;font-size:18px!important}
.ml-timer-settings-content{overflow:auto;padding:6px 18px 18px}.ml-timer-body .ml-timer-setting-group{padding:18px 0;border:0;border-bottom:1px solid #536b79;border-radius:0;background:transparent}.ml-timer-setting-group:last-child{border-bottom:0}.ml-timer-setting-group h4{margin:0 0 14px;font-size:17px}.ml-timer-setting-group label{display:block;margin:12px 0 0;line-height:1.5}.ml-timer-setting-group label>input:not([type=checkbox]),.ml-timer-setting-group label>select{display:block;margin-top:6px;width:100%;box-sizing:border-box;min-height:42px;padding:8px;border:1px solid #7892a3;border-radius:7px;background:#263746;color:#fff;font:inherit}.ml-timer-setting-group p{font-size:13px;color:#bacbd5}.ml-timer-setting-group .ml-timer-inputs{gap:12px}.ml-timer-settings-modal button{min-height:44px}
@media(max-width:600px){.ml-timer-simple-primary{grid-template-columns:1fr 1fr;gap:8px}.ml-timer-simple-primary>button{min-height:68px}.ml-timer-settings-backdrop{padding:7px}.ml-timer-body .ml-timer-settings-modal{max-height:95vh}.ml-timer-setting-group .ml-timer-inputs{grid-template-columns:1fr}}
