:root{--bg:#ba4949;--bg-deep:#a83f3f;--panel:rgba(255,255,255,.11);--panel-strong:rgba(255,255,255,.16);--line:rgba(255,255,255,.22);--ink:#fff;--muted:rgba(255,255,255,.74);--shadow:0 30px 90px rgba(56,18,18,.2);--radius:18px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}html{background:var(--bg)}body{min-height:100dvh;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(160deg,var(--bg) 0%,var(--bg-deep) 100%);transition:background .35s ease,color .35s ease;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body[data-pomo-mode="work"]{--bg:#ba4949;--bg-deep:#a44141}body[data-pomo-mode="short"]{--bg:#3d7f91;--bg-deep:#326c7c}body[data-pomo-mode="long"]{--bg:#4f7d5b;--bg-deep:#40684b}
button,input{font:inherit}button{color:inherit}.pomo-topbar{height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:calc(6px + var(--safe-top)) clamp(12px,2.6vw,34px) 6px;border-bottom:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.055);backdrop-filter:blur(14px);position:relative;z-index:5}.pomo-topbar-left,.pomo-top-actions,.pomo-brand,.pomo-back{display:flex;align-items:center}.pomo-topbar-left{gap:10px;min-width:0}.pomo-back,.pomo-brand{text-decoration:none}.pomo-back{gap:6px;color:var(--muted);font-size:.78rem;font-weight:650}.pomo-back:hover{color:#fff}.pomo-separator{width:1px;height:22px;background:rgba(255,255,255,.2)}.pomo-brand{gap:8px;min-width:0}.pomo-brand-dot{width:12px;height:12px;border:2px solid #fff;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)}.pomo-brand strong{font-size:.86rem}.pomo-brand small{margin-left:2px;color:var(--muted);font-size:.59rem;text-transform:uppercase;letter-spacing:.09em}.pomo-top-actions{gap:6px}.pomo-top-button{height:34px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.09);padding:0 10px;cursor:pointer;font-size:.66rem;font-weight:700}.pomo-top-button:hover{background:rgba(255,255,255,.16)}.pomo-auto-dot{width:7px;height:7px;display:inline-block;margin-right:5px;border-radius:50%;background:rgba(255,255,255,.38)}.pomo-top-button[aria-pressed="true"] .pomo-auto-dot{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.14)}
.pomo-app{width:min(1180px,calc(100% - 28px));min-height:calc(100dvh - 58px - var(--safe-top));margin:0 auto;padding:clamp(18px,3.2vh,36px) 0 calc(26px + var(--safe-bottom));display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);gap:clamp(18px,3vw,38px);align-items:start}.pomo-focus{min-width:0;display:flex;flex-direction:column;align-items:center}.pomo-mode-tabs{width:min(620px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:12px;padding:4px;border-radius:14px;background:rgba(0,0,0,.08)}.pomo-mode-tabs button{min-height:38px;border:0;border-radius:10px;background:transparent;cursor:pointer;color:rgba(255,255,255,.78);font-size:.72rem;font-weight:750}.pomo-mode-tabs button:hover{background:rgba(255,255,255,.08);color:#fff}.pomo-mode-tabs button.is-active{background:rgba(255,255,255,.2);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.16) inset}
.pomo-timer-card{width:min(620px,100%);min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 34px 30px;border:1px solid var(--line);border-radius:24px;background:var(--panel);box-shadow:var(--shadow);backdrop-filter:blur(8px)}.pomo-session-line{width:100%;display:flex;justify-content:space-between;color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.pomo-time{margin:clamp(26px,5vh,54px) 0 4px;font-size:clamp(5.1rem,12vw,8.8rem);line-height:.92;font-weight:720;letter-spacing:-.075em;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 rgba(0,0,0,.04)}.pomo-phase-copy{min-height:24px;margin:10px 0 26px;color:var(--muted);font-size:.86rem;text-align:center}.pomo-main-actions{display:flex;align-items:center;justify-content:center;gap:10px}.pomo-start{min-width:190px;height:58px;border:0;border-radius:13px;background:#fff;color:var(--bg-deep);box-shadow:0 6px 0 rgba(0,0,0,.11);cursor:pointer;font-size:1rem;font-weight:820;text-transform:uppercase;letter-spacing:.03em;transition:transform .12s ease,box-shadow .12s ease}.pomo-start:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.1)}.pomo-skip{width:48px;height:48px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);cursor:pointer;font-size:1.45rem}.pomo-sub-actions{display:flex;gap:12px;margin-top:20px}.pomo-sub-actions button{border:0;background:transparent;padding:5px 6px;color:var(--muted);cursor:pointer;font-size:.65rem;font-weight:700}.pomo-sub-actions button:hover{color:#fff;text-decoration:underline}
.pomo-cycle-card,.pomo-active-task{width:min(620px,100%);margin-top:12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(0,0,0,.07);padding:12px 14px}.pomo-cycle-card{display:flex;align-items:center;justify-content:space-between;gap:14px}.pomo-cycle-card>div:first-child{display:grid;gap:3px}.pomo-cycle-card span,.pomo-active-task span{color:var(--muted);font-size:.58rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800}.pomo-cycle-card strong{font-size:.69rem}.pomo-cycle-dots{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.pomo-cycle-dots i{width:9px;height:9px;display:block;border:1px solid rgba(255,255,255,.42);border-radius:50%;background:transparent}.pomo-cycle-dots i.is-done{background:#fff;border-color:#fff}.pomo-active-task{display:grid;gap:3px}.pomo-active-task strong{font-size:.8rem}.pomo-active-task small{color:var(--muted);font-size:.65rem}
.pomo-sidebar{min-width:0;display:grid;gap:12px}.pomo-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pomo-stats>div{min-height:92px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:end;column-gap:8px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.08)}.pomo-stats span{grid-column:1/-1;align-self:start;color:var(--muted);font-size:.59rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.pomo-stats strong{font-size:1.8rem;line-height:1}.pomo-stats small{color:var(--muted);font-size:.64rem;padding-bottom:2px}
.pomo-tasks{border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.09);overflow:hidden}.pomo-tasks>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 13px;border-bottom:1px solid rgba(255,255,255,.14)}.pomo-tasks>header span{color:var(--muted);font-size:.56rem;text-transform:uppercase;letter-spacing:.09em;font-weight:800}.pomo-tasks h1{margin:2px 0 0;font-size:1.05rem}.pomo-tasks>header button{height:32px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.09);padding:0 9px;cursor:pointer;font-size:.64rem;font-weight:750}.pomo-task-form{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;padding:12px;border-bottom:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.06)}.pomo-task-form label{display:grid;gap:4px;color:var(--muted);font-size:.58rem;font-weight:750}.pomo-task-form input{height:36px;min-width:0;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.1);padding:0 10px;color:#fff;outline:0}.pomo-task-form input:focus{border-color:rgba(255,255,255,.5)}.pomo-task-form>div{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px}.pomo-task-form button,.pomo-task-footer button{height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.08);padding:0 9px;cursor:pointer;font-size:.6rem;font-weight:750}.pomo-task-form button.is-primary{background:#fff;color:var(--bg-deep)}
.pomo-task-list{display:grid}.pomo-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.11);cursor:pointer}.pomo-task:hover{background:rgba(255,255,255,.055)}.pomo-task.is-active{background:rgba(255,255,255,.12);box-shadow:inset 4px 0 0 #fff}.pomo-task.is-done{opacity:.58}.pomo-task.is-done .pomo-task-copy strong{text-decoration:line-through}.pomo-task-check{width:24px;height:24px;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:transparent;cursor:pointer}.pomo-task-check.is-done{background:#fff;color:var(--bg-deep)}.pomo-task-copy{min-width:0;display:grid;gap:2px}.pomo-task-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.pomo-task-copy small{color:var(--muted);font-size:.59rem}.pomo-task-actions{display:flex;gap:3px}.pomo-task-actions button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;cursor:pointer;color:var(--muted)}.pomo-task-actions button:hover{background:rgba(255,255,255,.1);color:#fff}.pomo-task-empty{padding:30px 22px;text-align:center}.pomo-task-empty strong{font-size:.78rem}.pomo-task-empty p{max-width:300px;margin:7px auto 0;color:var(--muted);font-size:.64rem;line-height:1.5}.pomo-task-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;color:var(--muted);font-size:.58rem}.pomo-task-footer button{color:var(--muted)}.pomo-shortcuts{display:flex;flex-wrap:wrap;gap:6px 12px;padding:2px 4px;color:var(--muted);font-size:.56rem}.pomo-shortcuts span{display:flex;align-items:center;gap:4px}.pomo-shortcuts kbd{min-width:19px;height:19px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:5px;background:rgba(255,255,255,.07);padding:0 4px;font:700 .55rem/1 inherit}
.pomo-settings{width:min(620px,calc(100% - 24px));max-height:min(760px,calc(100dvh - 24px));padding:0;border:0;border-radius:18px;background:transparent;color:#2f3134;box-shadow:0 28px 100px rgba(0,0,0,.3)}.pomo-settings::backdrop{background:rgba(21,22,24,.52);backdrop-filter:blur(4px)}.pomo-settings-card{max-height:inherit;overflow:auto;border-radius:18px;background:#fff}.pomo-settings-card>header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #ecebea}.pomo-settings-card>header span{color:#888;font-size:.58rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.pomo-settings-card h2{margin:3px 0 0;font-size:1.25rem}.pomo-settings-card>header button{width:32px;height:32px;border:1px solid #e5e2e0;border-radius:50%;background:#fff;cursor:pointer;font-size:1rem}.pomo-settings-card>section{padding:17px 20px;border-bottom:1px solid #ecebea}.pomo-settings-card h3{margin:0 0 11px;color:#797572;font-size:.65rem;text-transform:uppercase;letter-spacing:.08em}.pomo-settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pomo-settings-grid label{display:grid;grid-template-columns:1fr auto;gap:4px;color:#53504d;font-size:.68rem;font-weight:700}.pomo-settings-grid label span{color:#98938f;font-size:.56rem;font-weight:500}.pomo-settings-grid input{grid-column:1/-1;height:38px;border:1px solid #dedbd8;border-radius:9px;background:#f6f5f4;padding:0 10px;outline:0}.pomo-switch-row,.pomo-range-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 0}.pomo-switch-row>span,.pomo-range-row>span{display:grid;gap:2px}.pomo-switch-row strong,.pomo-range-row strong{font-size:.7rem}.pomo-switch-row small,.pomo-range-row small{color:#96918d;font-size:.58rem}.pomo-switch-row input{width:38px;height:21px;accent-color:#ba4949}.pomo-range-row input{width:min(180px,42%);accent-color:#ba4949}.pomo-settings-card>footer{display:flex;justify-content:flex-end;gap:7px;padding:14px 20px}.pomo-settings-card>footer button{height:36px;border:1px solid #dfddda;border-radius:9px;background:#fff;padding:0 13px;cursor:pointer;font-size:.65rem;font-weight:750}.pomo-settings-card>footer button.is-primary{border-color:#3e3e3e;background:#343434;color:#fff}.pomo-toast{position:fixed;left:50%;bottom:calc(18px + var(--safe-bottom));z-index:30;transform:translateX(-50%);max-width:min(420px,calc(100% - 24px));border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(24,24,26,.9);padding:10px 13px;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.24);font-size:.66rem;text-align:center}
body.is-immersive .pomo-topbar{display:none}body.is-immersive .pomo-app{min-height:100dvh;padding-top:max(12px,var(--safe-top));align-items:center}body.is-immersive .pomo-timer-card{min-height:min(620px,72dvh)}
@media(max-width:920px){.pomo-app{grid-template-columns:1fr;width:min(720px,calc(100% - 22px))}.pomo-sidebar{grid-row:2}.pomo-stats{max-width:620px;width:100%;margin:0 auto}.pomo-tasks,.pomo-shortcuts{max-width:620px;width:100%;margin-inline:auto}.pomo-timer-card{min-height:390px}.pomo-time{font-size:clamp(5.5rem,18vw,8.5rem)}}
@media(max-width:620px){.pomo-topbar{height:52px;padding-inline:9px}.pomo-brand small,.pomo-separator,.pomo-back span{display:none}.pomo-top-actions{gap:4px}.pomo-top-button{height:32px;padding:0 8px;font-size:.59rem}.pomo-top-button[data-auto-toggle] span:last-child{display:none}.pomo-top-button[data-auto-toggle]{width:34px;padding:0}.pomo-auto-dot{margin:0}.pomo-app{min-height:calc(100dvh - 52px);padding-top:12px}.pomo-mode-tabs{margin-bottom:8px}.pomo-mode-tabs button{min-height:36px;padding:0 5px;font-size:.64rem}.pomo-timer-card{min-height:340px;padding:20px 16px 22px;border-radius:18px}.pomo-time{margin:32px 0 6px;font-size:clamp(4.7rem,24vw,7rem)}.pomo-phase-copy{margin-bottom:20px;font-size:.75rem}.pomo-start{min-width:165px;height:52px}.pomo-skip{width:44px;height:44px}.pomo-cycle-card{align-items:flex-start;flex-direction:column}.pomo-cycle-dots{justify-content:flex-start}.pomo-task-form{grid-template-columns:1fr}.pomo-task-form>div{grid-column:1}.pomo-settings-grid{grid-template-columns:1fr}.pomo-shortcuts{display:none}}
@media(max-width:390px){.pomo-top-button[data-open-settings]{font-size:0;width:34px;padding:0}.pomo-top-button[data-open-settings]::after{content:'⚙';font-size:.82rem}.pomo-top-button[data-fullscreen]{font-size:0;width:34px;padding:0}.pomo-top-button[data-fullscreen]::after{content:'⛶';font-size:.82rem}.pomo-time{font-size:22vw}.pomo-start{min-width:145px}.pomo-stats>div{padding:12px}.pomo-task-footer{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.pomo-task-head-actions{display:flex;gap:5px}.pomo-task-head-actions button{height:32px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.09);padding:0 9px;cursor:pointer;font-size:.64rem;font-weight:750}.pomo-task-head-actions button:hover{background:rgba(255,255,255,.15)}
.pomo-report-summary{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px}.pomo-report-summary>div{display:grid;gap:3px;border:1px solid #e6e2df;border-radius:11px;background:#f7f6f5;padding:12px}.pomo-report-summary span{color:#8e8985;font-size:.57rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800}.pomo-report-summary strong{font-size:1.35rem}.pomo-report-summary small{color:#8e8985;font-size:.58rem}.pomo-report-chart{height:190px;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:8px;padding:12px 2px 0}.pomo-report-day{height:100%;display:grid;grid-template-rows:1fr auto;align-items:end;gap:7px;text-align:center}.pomo-report-bar-wrap{height:145px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #e4e1df}.pomo-report-bar{width:min(30px,72%);min-height:3px;border-radius:7px 7px 2px 2px;background:#ba4949;position:relative}.pomo-report-bar::after{content:attr(data-value);position:absolute;left:50%;bottom:100%;transform:translate(-50%,-4px);color:#77716d;font-size:.52rem;white-space:nowrap}.pomo-report-day small{color:#8d8884;font-size:.53rem}.pomo-settings-card>footer small{margin-right:auto;align-self:center;color:#96918d;font-size:.56rem}.pomo-template-save>div{display:flex;gap:7px}.pomo-template-save input{height:38px;min-width:0;flex:1;border:1px solid #dedbd8;border-radius:9px;background:#f6f5f4;padding:0 10px}.pomo-template-save button,.pomo-template-row button{height:38px;border:1px solid #dedbd8;border-radius:9px;background:#fff;padding:0 10px;cursor:pointer;font-size:.62rem;font-weight:750}.pomo-template-list{display:grid;gap:7px}.pomo-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;border:1px solid #e6e2df;border-radius:10px;padding:9px 10px}.pomo-template-row>div{min-width:0;display:grid;gap:2px}.pomo-template-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem}.pomo-template-row small{color:#918b87;font-size:.56rem}.pomo-template-row button.is-danger{color:#a64f4f}.pomo-template-empty{margin:0;color:#8e8985;font-size:.65rem;text-align:center;padding:20px}
@media(max-width:620px){.pomo-top-button[data-open-report]{display:none}.pomo-report-summary{grid-template-columns:1fr 1fr}.pomo-report-summary>div:last-child{grid-column:1/-1}.pomo-report-chart{gap:4px}.pomo-template-row{grid-template-columns:1fr auto}.pomo-template-row button.is-danger{grid-column:2}.pomo-template-save>div{flex-direction:column}.pomo-template-save button{width:100%}}

/* V2 — sons et rapports adaptatifs */
.pomo-select-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 0}.pomo-select-row>span{display:grid;gap:2px}.pomo-select-row strong{font-size:.7rem}.pomo-select-row small{color:#96918d;font-size:.58rem}.pomo-select-row select{min-width:150px;height:36px;border:1px solid #dedbd8;border-radius:9px;background:#f6f5f4;padding:0 9px;color:#53504d;outline:0}.pomo-report-controls{padding-bottom:0!important;border-bottom:0!important}.pomo-report-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:4px;border-radius:11px;background:#f3f1ef}.pomo-report-tabs button{height:34px;border:0;border-radius:8px;background:transparent;color:#77716d;cursor:pointer;font-size:.62rem;font-weight:760}.pomo-report-tabs button.is-active{background:#fff;color:#34312f;box-shadow:0 1px 5px rgba(0,0,0,.08)}.pomo-report-chart.is-month{grid-template-columns:repeat(30,minmax(16px,1fr));gap:3px;overflow-x:auto;align-items:end;padding-bottom:4px}.pomo-report-chart.is-month .pomo-report-day{min-width:16px}.pomo-report-chart.is-month .pomo-report-bar{width:min(18px,78%)}.pomo-report-chart.is-day{grid-template-columns:minmax(70px,120px);justify-content:center}.pomo-report-chart.is-day .pomo-report-bar{width:min(56px,70%)}
@media(max-width:620px){.pomo-select-row{align-items:flex-start;flex-direction:column;gap:6px}.pomo-select-row select{width:100%}.pomo-report-chart.is-month{grid-template-columns:repeat(30,18px)}}
/* Le rapport reste accessible sur mobile. */
@media(max-width:620px){.pomo-top-button[data-open-report]{display:inline-flex;align-items:center;justify-content:center}.pomo-report-chart.is-month .pomo-report-bar::after{display:none}}
@media(max-width:480px){.pomo-top-button[data-open-report]{width:34px;padding:0;font-size:0}.pomo-top-button[data-open-report]::after{content:'▥';font-size:.9rem}}

/* 20260928-study2 — lisibilité, navigation autonome et mode plein écran */
.pomo-brand{color:#fff;cursor:default;user-select:none}
.pomo-brand strong{color:#fff}
.pomo-task-form input::placeholder,.pomo-template-save input::placeholder{color:rgba(255,255,255,.72);opacity:1}
.pomo-task-form input:focus::placeholder{color:rgba(255,255,255,.48)}

html:fullscreen body,body.is-immersive{min-height:100dvh;overflow:auto}
html:fullscreen .pomo-topbar,body.is-immersive .pomo-topbar{display:none}
html:fullscreen .pomo-app,body.is-immersive .pomo-app{
  width:min(980px,calc(100% - 36px));
  min-height:100dvh;
  padding:max(18px,var(--safe-top)) 0 max(18px,var(--safe-bottom));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
}
html:fullscreen .pomo-focus,body.is-immersive .pomo-focus{width:min(900px,100%);margin:auto;justify-content:center}
html:fullscreen .pomo-mode-tabs,body.is-immersive .pomo-mode-tabs{width:min(820px,100%);margin-bottom:14px}
html:fullscreen .pomo-timer-card,body.is-immersive .pomo-timer-card{
  width:min(820px,100%);
  min-height:clamp(460px,68dvh,700px);
  padding:clamp(28px,4vh,48px) clamp(22px,4vw,54px);
  border-radius:30px;
}
html:fullscreen .pomo-time,body.is-immersive .pomo-time{
  margin:clamp(30px,6vh,70px) 0 8px;
  font-size:clamp(8.6rem,18vw,14rem);
  line-height:.86;
  letter-spacing:-.085em;
}
html:fullscreen .pomo-phase-copy,body.is-immersive .pomo-phase-copy{font-size:1rem;margin-bottom:30px}
html:fullscreen .pomo-start,body.is-immersive .pomo-start{min-width:220px;height:62px;font-size:1.04rem}
html:fullscreen .pomo-cycle-card,html:fullscreen .pomo-active-task,body.is-immersive .pomo-cycle-card,body.is-immersive .pomo-active-task{width:min(820px,100%)}
/* En plein écran, on privilégie volontairement le temps de concentration : les tâches et statistiques restent disponibles en quittant le plein écran. */
html:fullscreen .pomo-sidebar,body.is-immersive .pomo-sidebar{display:none}

@media(max-width:720px){
  html:fullscreen .pomo-app,body.is-immersive .pomo-app{width:min(100% - 18px,680px);padding-block:max(10px,var(--safe-top)) max(10px,var(--safe-bottom))}
  html:fullscreen .pomo-timer-card,body.is-immersive .pomo-timer-card{min-height:clamp(360px,72dvh,560px);padding:22px 14px;border-radius:20px}
  html:fullscreen .pomo-time,body.is-immersive .pomo-time{font-size:clamp(6.2rem,27vw,10rem);margin:28px 0 7px}
  html:fullscreen .pomo-mode-tabs,body.is-immersive .pomo-mode-tabs{margin-bottom:8px}
  html:fullscreen .pomo-cycle-card,body.is-immersive .pomo-cycle-card{margin-top:8px}
}

/* ===== 20261002-pomo4 — session complète, reprise, presets, anneau ===== */
.pomo-ring{--progress:0deg;position:relative;width:min(500px,88%);aspect-ratio:1.7/1;margin:24px auto 5px;display:grid;place-items:center;align-content:center;border-radius:999px;background:radial-gradient(ellipse at center,rgba(255,255,255,.10) 0 68%,transparent 69%),conic-gradient(from -90deg,rgba(255,255,255,.78) var(--progress),rgba(255,255,255,.15) 0);padding:8px}.pomo-ring::after{content:"";position:absolute;inset:8px;border-radius:inherit;background:rgba(255,255,255,.04);z-index:0}.pomo-ring>*{position:relative;z-index:1}.pomo-ring .pomo-time{margin:0}.pomo-ring>small{margin-top:4px;color:rgba(255,255,255,.76);font-size:.62rem;font-weight:700;letter-spacing:.03em}.pomo-sub-actions{flex-wrap:wrap}.pomo-sub-actions button[data-reset-session]{font-weight:800}.pomo-sub-actions button[data-finish-early]{border-color:rgba(255,255,255,.28)}
.pomo-cycle-controls{display:flex;align-items:center;gap:8px}.pomo-cycle-controls>button{width:30px;height:30px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:inherit;cursor:pointer}.pomo-cycle-dots{display:flex;gap:6px;align-items:center}.pomo-cycle-dots button{width:13px;height:13px;border:1px solid rgba(255,255,255,.36);border-radius:50%;background:rgba(255,255,255,.12);padding:0;cursor:pointer;transition:transform .16s ease,background .16s ease}.pomo-cycle-dots button:hover{transform:scale(1.15)}.pomo-cycle-dots button.is-done{background:rgba(255,255,255,.9)}.pomo-cycle-dots button.is-current{box-shadow:0 0 0 3px rgba(255,255,255,.18);background:rgba(255,255,255,.45)}
.pomo-session-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.pomo-session-overview>div{display:grid;gap:2px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07);padding:10px 12px}.pomo-session-overview span{font-size:.52rem;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.7)}.pomo-session-overview strong{font-size:.72rem;color:#fff}.pomo-quick-card{display:grid;gap:8px;margin-top:9px;border:1px solid rgba(255,255,255,.14);border-radius:13px;background:rgba(255,255,255,.05);padding:9px}.pomo-presets,.pomo-available{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.pomo-presets button,.pomo-available button{height:31px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.08);color:#fff;padding:0 9px;font-size:.57rem;font-weight:750;cursor:pointer}.pomo-available{padding-top:7px;border-top:1px solid rgba(255,255,255,.1)}.pomo-available label{display:flex;align-items:center;gap:5px;font-size:.57rem;color:rgba(255,255,255,.75)}.pomo-available input{width:64px;height:31px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.09);color:#fff;padding:0 7px}.pomo-session-notes{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.pomo-session-notes label{display:grid;gap:4px}.pomo-session-notes span{font-size:.52rem;text-transform:uppercase;letter-spacing:.06em;color:rgba(255,255,255,.7)}.pomo-session-notes input{height:36px;border:1px solid rgba(255,255,255,.15);border-radius:9px;background:rgba(255,255,255,.07);color:#fff;padding:0 10px;outline:0}.pomo-session-notes input::placeholder{color:rgba(255,255,255,.48)}
.pomo-setting-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.pomo-setting-presets button{min-height:38px;border:1px solid #dedbd8;border-radius:9px;background:#f7f6f5;cursor:pointer;font-size:.59rem;font-weight:750;color:#57514e}.pomo-settings-tools{display:flex;gap:6px;flex-wrap:wrap}.pomo-settings-tools>button,.pomo-settings-tools>label{height:36px;display:inline-flex;align-items:center;border:1px solid #dedbd8;border-radius:9px;background:#fff;padding:0 9px;cursor:pointer;font-size:.59rem;font-weight:700}.pomo-settings-tools input{display:none}.pomo-resume-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pomo-resume-actions button,.pomo-interruption-reasons button{min-height:42px;border:1px solid #dedbd8;border-radius:10px;background:#fff;cursor:pointer;font-weight:750}.pomo-resume-actions .is-primary{background:#343434;color:#fff;border-color:#343434}.pomo-interruption-reasons{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.pomo-resume p,.pomo-interruption p{font-size:.68rem;line-height:1.55;color:#756f6b}
body.is-immersive .pomo-ring,html:fullscreen .pomo-ring{width:min(650px,92%);margin:20px auto}.pomo-top-button[data-new-session]{border-color:rgba(255,255,255,.24)}
@media(max-width:920px){.pomo-ring{width:min(520px,92%)}.pomo-session-overview,.pomo-session-notes{max-width:620px;width:100%;margin-left:auto;margin-right:auto}}
@media(max-width:620px){.pomo-top-button[data-new-session]{display:none}.pomo-ring{width:94%;aspect-ratio:1.55/1;margin:16px auto 4px}.pomo-session-overview{grid-template-columns:1fr 1fr}.pomo-session-overview>div:last-child{grid-column:1/-1}.pomo-session-notes{grid-template-columns:1fr}.pomo-presets{display:grid;grid-template-columns:repeat(4,1fr)}.pomo-presets button{padding:0 3px}.pomo-available{align-items:stretch}.pomo-available label{width:100%;justify-content:space-between}.pomo-available button{flex:1}.pomo-sub-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:5px}.pomo-sub-actions button{min-height:38px}.pomo-setting-presets{grid-template-columns:1fr 1fr}.pomo-ring .pomo-time{font-size:clamp(4.3rem,21vw,6.4rem)}}
@media(max-width:390px){.pomo-presets{grid-template-columns:repeat(2,1fr)}.pomo-session-overview{grid-template-columns:1fr}.pomo-session-overview>div:last-child{grid-column:auto}.pomo-ring{aspect-ratio:1.35/1}}


/* Pomodoro V6 — arbre ASCII intégré au minuteur */
.pomo-ring{
  overflow:hidden;
  isolation:isolate;
}
.pomo-ring::after{
  z-index:0;
}
.pomo-ring .pomo-tree-backdrop{
  position:absolute;
  z-index:1;
  inset:12px 18px 14px;
  display:grid;
  place-items:end center;
  pointer-events:none;
  overflow:hidden;
  opacity:.28;
  -webkit-mask-image:linear-gradient(to bottom,transparent 2%,#000 18%,#000 100%);
  mask-image:linear-gradient(to bottom,transparent 2%,#000 18%,#000 100%);
}
.pomo-ring .pomo-tree-backdrop pre{
  margin:0;
  max-width:100%;
  color:rgba(255,255,255,.96);
  font:700 clamp(.46rem,1.02vw,.72rem)/1.02 "Cascadia Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  letter-spacing:0;
  white-space:pre;
  text-align:left;
  transform:translateY(9%);
  transform-origin:center bottom;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
  transition:opacity .18s ease;
}
.pomo-ring .pomo-tree-mini{
  position:absolute;
  z-index:3;
  top:17px;
  left:50%;
  width:calc(100% - 74px);
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  pointer-events:none;
  color:rgba(255,255,255,.68);
  font-size:.48rem;
  font-weight:760;
  letter-spacing:.035em;
}
.pomo-ring .pomo-tree-mini span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pomo-ring .pomo-tree-mini b{
  flex:0 0 auto;
  padding:3px 6px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(0,0,0,.07);
  color:rgba(255,255,255,.82);
  font-size:.46rem;
  font-variant-numeric:tabular-nums;
}
.pomo-ring .pomo-time,
.pomo-ring > small{
  z-index:4;
}
.pomo-ring .pomo-time{
  position:relative;
  color:#fff;
  text-shadow:0 2px 18px rgba(67,24,24,.18),0 1px 0 rgba(255,255,255,.06);
}
.pomo-ring > small{
  position:relative;
  text-shadow:0 1px 6px rgba(0,0,0,.12);
}
.pomo-ring .pomo-tree-steps{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  display:flex;
  justify-content:center;
  gap:4px;
  pointer-events:none;
}
.pomo-ring .pomo-tree-steps span{
  min-width:26px;
  padding:3px 5px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(0,0,0,.05);
  color:rgba(255,255,255,.52);
  font-size:.44rem;
  font-weight:800;
  text-align:center;
  box-shadow:0 1px 6px rgba(0,0,0,.04);
}
.pomo-ring .pomo-tree-steps span.is-growing{
  color:#fff;
  border-color:rgba(255,255,255,.36);
  background:rgba(255,255,255,.12);
}
.pomo-ring .pomo-tree-steps span.is-grown{
  color:#fff;
  border-color:rgba(255,255,255,.36);
  background:rgba(255,255,255,.23);
}
body[data-pomo-mode="short"] .pomo-ring .pomo-tree-backdrop,
body[data-pomo-mode="long"] .pomo-ring .pomo-tree-backdrop{
  opacity:.21;
}
body[data-pomo-mode="long"] .pomo-ring .pomo-tree-mini{
  color:rgba(255,255,255,.76);
}
html:fullscreen .pomo-ring .pomo-tree-backdrop pre,
body.is-immersive .pomo-ring .pomo-tree-backdrop pre{
  font-size:clamp(.58rem,1.15vw,.88rem);
}
@media(max-width:620px){
  .pomo-ring .pomo-tree-backdrop{
    inset:10px 8px 12px;
    opacity:.24;
  }
  .pomo-ring .pomo-tree-backdrop pre{
    font-size:clamp(.39rem,1.5vw,.55rem);
    transform:translateY(11%);
  }
  .pomo-ring .pomo-tree-mini{
    top:12px;
    width:calc(100% - 44px);
    font-size:.42rem;
  }
  .pomo-ring .pomo-tree-mini span{
    max-width:68%;
  }
  .pomo-ring .pomo-tree-mini b{
    font-size:.4rem;
  }
  .pomo-ring .pomo-tree-steps{
    bottom:9px;
    gap:3px;
  }
  .pomo-ring .pomo-tree-steps span{
    min-width:23px;
    padding:2px 4px;
    font-size:.39rem;
  }
}
@media(max-width:390px){
  .pomo-ring .pomo-tree-mini span{
    display:none;
  }
  .pomo-ring .pomo-tree-backdrop pre{
    font-size:clamp(.34rem,1.45vw,.48rem);
  }
}
@media(prefers-reduced-motion:reduce){
  .pomo-ring .pomo-tree-backdrop pre{
    transition:none;
  }
}
