:root{--ink:#182d35;--muted:#68777d;--line:#e4e9e8;--bg:#f5f7f7;--green:#195d4e;--mint:#d8f4e5;--blue:#3478f6;--radius:16px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,a,select,input,textarea{outline-offset:4px}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid var(--blue)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,2.4vw,2.3rem);font-weight:650;letter-spacing:-1.2px;line-height:1.2}h2{font-size:1.25rem;letter-spacing:-.45px;font-weight:650}h3{font-size:1.06rem;font-weight:650}p{line-height:1.55}small{font-size:.8125rem}.sidebar{width:230px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 18px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;text-decoration:none;font-size:1.9rem;font-weight:750;letter-spacing:-1.5px;padding:0 12px;gap:0}.brand img{margin-right:10px}.brand>span:not(.brand-period){font-weight:400}.brand-period{color:var(--green)}.nav-caption{font-size:.6875rem;letter-spacing:1.7px;color:#8b9699;margin:55px 16px 16px;font-weight:650}.nav-item{display:flex;width:100%;align-items:center;gap:14px;padding:14px;border-radius:8px;background:transparent;color:var(--muted);text-align:left;font-size:.875rem;margin-bottom:7px}.nav-item>span{font-size:1.4rem;line-height:1}.nav-item:hover{background:#f5f7f7}.nav-item.selected{background:#eaf3ef;color:var(--green);font-weight:650}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:20px;display:flex;gap:9px;align-items:center;font-size:.75rem}.personal-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf0f0;font-weight:650;flex-shrink:0}.sidebar-bottom small{display:block;font-size:.6875rem;color:var(--muted);margin-top:4px}.sidebar-bottom .icon-btn{margin-left:auto}.workspace{margin-left:230px}.topbar{height:77px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fff;font-size:.8125rem;color:var(--muted)}.topbar strong{font-weight:500;color:var(--ink)}.slash{padding:0 15px;color:#bac4c7}main{max-width:1580px;margin:auto;padding:35px 40px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 30px}.eyebrow{font-size:.625rem;font-weight:700;letter-spacing:2px;color:var(--green);margin-bottom:10px}.page-heading p:not(.eyebrow){color:var(--muted);font-size:.875rem;margin-top:12px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 18px;border-radius:8px;text-decoration:none;font-size:.875rem;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover{background:#104737}.secondary{background:#fff;border:1px solid #d8e0dd;color:var(--ink)}.secondary:hover{background:#f1f5f3}.danger{background:#ab3434;color:#fff}.small{min-height:36px;font-size:.8125rem;padding:8px 12px}.icon-btn{border-radius:6px;background:transparent;color:var(--muted);font-size:1.25rem;min-width:32px;min-height:36px}.icon-btn:hover{background:#edf2ef;color:var(--ink)}.timer-card{background:#fff;border:1px solid #dbe5df;border-radius:var(--radius);box-shadow:0 3px 12px #132d3503;padding:23px 25px;border-top:3px solid var(--green)}.timer-heading{display:flex;align-items:center;gap:12px;margin-bottom:24px}.timer-symbol{display:grid;place-items:center;background:#edf5f0;border-radius:10px;height:42px;width:42px;font-size:1.8rem;color:var(--green)}.timer-heading h2{font-size:1rem}.timer-heading p{color:var(--muted);font-size:.8125rem;margin-top:4px}.live-badge{margin-left:auto;font-size:.75rem;padding:6px 10px;background:var(--mint);color:var(--green);border-radius:99px}#timer-form{display:flex;align-items:flex-end;gap:14px}label{display:flex;flex-direction:column;gap:8px;font-size:.8125rem;font-weight:550;min-width:0}label>span{color:var(--muted);font-weight:400}input,select,textarea{width:100%;color:var(--ink);border:1px solid #dce3e1;border-radius:7px;background:#fff;padding:11px 12px;font-size:.875rem;min-height:44px}select{padding-right:26px}input::placeholder,textarea::placeholder{color:#8c979b}textarea{resize:vertical}#timer-form label{flex:1}#timer-form label:first-child{flex:1.25}#timer-form .timer-note{flex:1.25}.timer-note>span{display:none}.timer-clock{padding:0 8px;flex-shrink:0;text-align:center}.timer-clock output{font-size:2.2rem;line-height:1.15;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;font-weight:550}.timer-clock output span{color:#b0bcb7;padding:0 3px}.timer-clock small{display:block;font-size:.5rem;letter-spacing:1.3px;color:var(--muted);margin:7px 0 3px}.start-button{height:45px;min-width:126px}.start-button.running{background:#ae4038}.summary-grid{display:grid;grid-template-columns:1fr .8fr 1.2fr;gap:20px;margin:24px 0}.summary-grid article{padding:23px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}.summary-grid article>span{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--muted);gap:8px}.summary-grid b{font-size:.6875rem;font-weight:500;background:var(--bg);padding:3px 6px;border-radius:4px}.summary-grid strong{display:block;font-size:2rem;letter-spacing:-.7px;font-weight:650;margin:16px 0 8px}.summary-grid .category-summary{font-size:1.22rem;min-height:38px;display:flex;align-items:center;letter-spacing:-.3px}.summary-grid small{color:var(--muted);font-size:.75rem}.panel{padding:26px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.panel-heading p:not(.eyebrow),.section-heading p{font-size:.8125rem;color:var(--muted);margin-top:8px}.pill{background:#f4f7f5;color:var(--muted);font-size:.6875rem;padding:7px 11px;border-radius:6px;white-space:nowrap}.annual-panel{padding-bottom:22px}.annual-row{display:flex;align-items:center;gap:23px;margin:20px 0}.annual-year{width:40px;font-size:.875rem;font-weight:650;flex-shrink:0}.annual-track{height:45px;flex:1;display:flex;background:#f1f4f4;border-radius:6px;overflow:hidden}.annual-segment{display:flex;align-items:center;justify-content:center;min-width:0;color:#fff;font-size:.8125rem;font-weight:600;position:relative;border-right:2px solid white}.annual-segment:last-child{border:0}.annual-segment span{overflow:hidden;text-overflow:clip;white-space:nowrap}.annual-axis{display:flex;justify-content:space-between;margin:0 0 0 63px;color:#929e9f;font-size:.6875rem}.legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:25px;font-size:.75rem;color:var(--muted)}.legend span,.cat-name{display:inline-flex;align-items:center;gap:8px}.dot{display:inline-block;width:9px;height:9px;border-radius:3px;flex-shrink:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:32px 0 20px}.year-control{flex-direction:row;align-items:center;color:var(--muted);gap:12px}.year-control select{min-width:105px;background:#fff}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.charts-grid .panel{margin-bottom:24px}.muted{color:var(--muted);font-size:.8125rem}.chart-year{background:var(--bg);padding:4px 8px;border-radius:4px}.donut-layout{display:flex;align-items:center;gap:24px;min-height:210px}.donut{width:180px;max-width:46%;flex-shrink:0;position:relative}.donut svg{width:100%;display:block;transform:rotate(-90deg)}.donut-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut-label strong{font-size:1.35rem;letter-spacing:-.5px}.donut-label span{font-size:.6875rem;color:var(--muted);margin-top:5px}.donut-legend{flex:1;min-width:0}.donut-item{margin:18px 0;font-size:.75rem}.donut-item .cat-name{line-height:1.4}.donut-values{display:flex;justify-content:space-between;margin:7px 0 0 17px;gap:8px;color:var(--muted);font-size:.75rem}.donut-values strong{font-weight:600;color:var(--ink)}#detail-category{max-width:55%;min-height:34px;padding:6px 20px 6px 8px;font-size:.75rem}.sub-row{margin:23px 0}.sub-label{display:flex;justify-content:space-between;gap:10px;font-size:.8125rem;margin-bottom:10px}.sub-label>span:last-child{color:var(--muted);white-space:nowrap}.sub-track{height:9px;border-radius:4px;background:#f0f3f2;overflow:hidden}.sub-track>div{height:100%;border-radius:4px}.monthly-chart{height:218px;display:flex;gap:14px}.y-axis{width:34px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:27px;font-size:.625rem;color:var(--muted);text-align:right;flex-shrink:0}.month-columns{display:flex;flex:1;justify-content:space-around;gap:10px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0ef calc(25% - 1px),#edf0ef 25%);background-size:100% calc(100% - 27px);background-repeat:no-repeat}.month-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;flex:1}.month-stack{width:50%;min-width:12px;max-width:40px;display:flex;flex-direction:column-reverse;border-radius:5px 5px 0 0;overflow:hidden}.month-segment{width:100%;flex-shrink:0}.month-name{font-size:.625rem;color:var(--muted);height:27px;padding-top:13px;white-space:nowrap}.monthly-panel{margin-top:0}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.8125rem}th{font-weight:500;color:var(--muted);font-size:.6875rem;background:#f7f9f8;padding:13px 14px}td{padding:16px 14px;border-bottom:1px solid #eef1ef}th:not(:first-child),td:not(:first-child){text-align:right}.total-category{font-weight:600}.total-sub td:first-child{padding-left:34px;color:var(--muted)}tfoot{font-weight:650}tfoot td{border:0;padding-top:20px}.percent-cell{display:inline-flex;align-items:center;gap:12px}.tiny-track{width:90px;height:5px;border-radius:5px;background:#edf1ef;overflow:hidden}.tiny-track span{display:block;height:100%}.empty{padding:35px 12px;text-align:center;color:var(--muted);font-size:.875rem;line-height:1.6}.empty strong{display:block;color:var(--ink);margin-bottom:7px}.history-filters{display:flex;gap:10px;align-items:end}.history-filters select{max-width:230px}.history-filters label{font-size:.6875rem}.history-note{display:block;color:var(--muted);font-size:.75rem;margin-top:5px;max-width:300px;overflow-wrap:anywhere}.history-category{display:block;font-size:.6875rem;color:var(--muted);margin-top:4px}.history-actions{display:flex;justify-content:flex-end;gap:5px}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:10px;font-size:.75rem;color:var(--muted)}.categories-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.category-card{background:#fff;padding:23px;border:1px solid var(--line);border-radius:var(--radius)}.category-card.archived{opacity:.7}.category-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.category-card-heading h3{overflow-wrap:anywhere}.category-tools{display:flex;gap:8px;margin:15px 0;flex-wrap:wrap}.text-button{background:none;color:var(--green);padding:5px 0;font-size:.75rem;text-decoration:underline;text-underline-offset:3px}.text-button.delete{color:#a4423a}.subcategories{padding:0;list-style:none;margin:15px 0}.subcategories li{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 0;gap:10px;font-size:.8125rem}.subcategories li>span{overflow-wrap:anywhere}.subcategories li div{display:flex;gap:10px;flex-shrink:0}.archived-label{font-size:.625rem;color:var(--muted);font-weight:400}.preview-banner,.connection{padding:9px 25px;font-size:.75rem;text-align:center;background:#e9f2ff;color:#255589}.connection{background:#fff0db;color:#835212}footer{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding:24px 0 28px;margin-top:28px;font-weight:650;font-size:.875rem}footer span{font-weight:400;color:#82908f;font-size:.6875rem}footer span:last-child{margin-left:auto}dialog{border:1px solid var(--line);border-radius:18px;width:min(590px,calc(100% - 32px));padding:28px;color:var(--ink);max-height:90dvh;overflow:auto;box-shadow:0 20px 90px #152d3526}dialog::backdrop{background:#10222a66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.dialog-heading h2{font-size:1.3rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-help{font-size:.75rem;color:var(--muted);margin:16px 0 22px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}#color-label{margin-top:20px}input[type=color]{width:80px;padding:4px}.error{color:#ad352b;font-size:.8125rem;line-height:1.6;margin-top:12px;white-space:pre-line}.error:empty{display:none}#confirm-text{font-size:.9375rem;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:var(--ink);color:#fff;padding:14px 24px;border-radius:9px;box-shadow:0 4px 25px #0002;font-size:.875rem;max-width:calc(100% - 30px)}.loading{padding:50px;text-align:center;color:var(--muted)}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top right,#d8f4e5,transparent 65%),var(--bg)}.login-card{width:min(420px,100%);background:white;padding:36px;border:1px solid var(--line);border-radius:20px}.login-card h1{font-size:1.8rem;margin:24px 0 12px}.login-card>p{color:var(--muted);margin-bottom:26px;font-size:.875rem}.login-card button{width:100%;margin-top:20px}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;top:10px;left:10px;padding:15px;background:#fff;z-index:100}.wrap{flex-wrap:wrap}
@media(min-width:1600px){main{padding-top:45px}.timer-card{padding:28px}.annual-track{height:52px}.donut{width:210px}.donut-layout{min-height:240px}}
@media(max-width:1250px){.sidebar{width:195px;padding-left:12px;padding-right:12px}.workspace{margin-left:195px}main{padding:28px 25px 0}.topbar{padding:0 25px}.sidebar-bottom{flex-wrap:wrap}.sidebar-bottom .icon-btn{display:none}#timer-form{flex-wrap:wrap}#timer-form label{flex:1 1 25%}#timer-form .timer-note{flex:1 1 25%}.timer-clock{margin-left:auto}.donut-layout{gap:14px;flex-wrap:wrap;justify-content:center}.donut{max-width:100%;width:160px}.donut-legend{min-width:150px}.panel{padding:23px}.summary-grid{gap:14px}.summary-grid article{padding:20px}}
@media(max-width:900px){.sidebar{width:76px;padding:24px 12px}.brand{font-size:0;padding:0;justify-content:center}.brand img{margin:0}.nav-caption{display:none}.sidebar nav{margin-top:35px}.nav-item{font-size:0;justify-content:center;padding:14px 4px}.nav-item>span{font-size:1.6rem}.sidebar-bottom{justify-content:center}.sidebar-bottom>div:not(.personal-avatar){display:none}.sidebar-bottom .icon-btn{display:block;margin:0}.workspace{margin-left:76px}.summary-grid strong{font-size:1.7rem}.summary-grid .category-summary{font-size:1.05rem}.page-heading{align-items:flex-start}.page-heading .secondary{font-size:.75rem;padding:11px}.month-columns{gap:5px}.month-stack{width:60%}.history-filters{flex-wrap:wrap}.category-tools{gap:12px}}
@media(max-width:650px){.sidebar{position:sticky;top:0;width:100%;height:65px;flex-direction:row;align-items:center;padding:10px 16px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:1.5rem}.brand img{width:29px;height:29px;margin-right:7px}.sidebar nav{display:flex;margin:0 0 0 auto;gap:6px}.nav-item{margin:0;padding:9px 11px;width:auto}.nav-item>span{font-size:1.4rem}.sidebar-bottom{display:none}.workspace{margin-left:0}.topbar{height:46px;padding:0 18px;font-size:.6875rem}.topbar>span:last-child{font-size:.625rem}.slash{padding:0 6px}main{padding:25px 16px 0}.page-heading{display:block;margin-bottom:24px}.eyebrow{font-size:.5625rem}.page-heading h1{font-size:1.75rem}.page-heading p:not(.eyebrow){font-size:.8125rem}.page-heading .secondary{margin-top:17px;min-height:40px}.timer-card{padding:18px}.timer-heading{gap:9px}.timer-heading h2{font-size:.875rem}.timer-heading p{font-size:.75rem}.timer-symbol{width:34px;height:34px;flex-shrink:0;font-size:1.5rem}#timer-form{gap:14px 10px}#timer-form label,#timer-form label:first-child{flex:1 1 40%;font-size:.75rem}#timer-form .timer-note{flex-basis:100%}.timer-clock{margin:5px auto 0 0;text-align:left;padding:0}.timer-clock output{font-size:2.1rem}.start-button{flex:1;max-width:175px}.summary-grid{grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.summary-grid article{padding:16px}.summary-grid article:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.summary-grid article:last-child>span{grid-column:1/-1}.summary-grid article:last-child>strong{margin:0;min-height:28px}.summary-grid article:last-child>small{max-width:140px;text-align:right;font-size:.6875rem}.summary-grid article>span{font-size:.6875rem;align-items:start}.summary-grid b{font-size:.5625rem}.summary-grid strong{font-size:1.6rem;margin-top:14px}.summary-grid small{font-size:.6875rem}.panel{padding:19px;margin-bottom:18px;border-radius:12px}.panel-heading{gap:10px;margin-bottom:18px}.panel-heading h2{font-size:1.1rem}.panel-heading p:not(.eyebrow){font-size:.75rem}.pill{font-size:.5625rem;padding:6px}.annual-row{gap:12px}.annual-track{height:38px}.annual-year{font-size:.75rem;width:32px}.annual-segment{font-size:.625rem;border-right-width:1px}.annual-axis{margin-left:44px;font-size:.5625rem}.legend{gap:12px;font-size:.6875rem;margin-top:19px}.charts-grid{grid-template-columns:1fr;gap:0}.donut-layout{flex-wrap:nowrap;min-height:185px}.donut{width:155px;max-width:45%}.donut-legend{min-width:0}.section-heading h2{font-size:1.1rem}.section-heading p{font-size:.75rem}.year-control{font-size:0;gap:0}.year-control select{font-size:.8125rem;min-width:86px}.monthly-chart{height:200px;gap:7px}.month-columns{gap:4px}.month-stack{min-width:8px;width:65%}.month-name{font-size:.5rem}.y-axis{width:23px;font-size:.5625rem}.totals-panel .panel-heading{flex-wrap:wrap}th,td{padding:13px 9px}.total-sub td:first-child{padding-left:22px}.tiny-track{display:none}td:first-child{min-width:130px}table{font-size:.75rem}.categories-grid{grid-template-columns:1fr}.category-card{padding:19px}.section-heading:has(#add-category){flex-wrap:wrap}.history-filters{width:100%}.history-filters select{max-width:170px}.pagination{font-size:.6875rem}.pagination button{padding:8px;font-size:.6875rem}footer{gap:12px;font-size:.75rem}footer span{font-size:.5625rem}footer span:last-child{display:none}.preview-banner{font-size:.625rem;padding:8px 18px}.form-grid{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}dialog{padding:22px}.donut-label strong{font-size:1.15rem}input,select,textarea{font-size:16px}#detail-category{font-size:.8125rem}.login-card{padding:25px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s ease}.annual-segment,.sub-track>div{transition:width .25s ease}}

/* Conserver les défilements des tableaux dans leur panneau. */
.table-scroll{position:relative}.month-column{position:relative;padding-bottom:27px}.month-name{position:absolute;bottom:0}.year-control select{width:105px;flex-shrink:0}
@media(max-width:650px){.year-control select{width:94px}.legend{font-size:.75rem}.month-name{font-size:.625rem}.category-card .subcategories li{flex-wrap:wrap}}

.month-short{display:none}@media(max-width:650px){.month-long{display:none}.month-short{display:inline}.month-name{font-size:.75rem}.sub-label{flex-wrap:wrap}.category-summary{overflow-wrap:anywhere}}
@media(min-width:651px) and (max-width:1250px){#timer-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.timer-clock{grid-column:2;justify-self:end}.start-button{grid-column:3;justify-self:stretch}}

/* Installation et commandes accessibles dans tous les formats. */
.nav-item>.nav-label{font-size:.875rem;line-height:1.35}
.app-tools{display:flex;align-items:center;gap:14px}
.app-tools .icon-btn{min-width:44px;min-height:44px}
.topbar{gap:16px;height:auto;min-height:77px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:12px}
.connection{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 18px}
.login-card .install-app{background:none;margin-top:18px;font-weight:500}
#install-platform{margin-top:24px}
#install-steps{padding-left:22px;line-height:1.6}
#install-steps li{padding-left:5px;margin:12px 0}
.history-help{margin-bottom:20px;max-width:850px}
.history-locked{color:var(--muted);font-size:.75rem;white-space:nowrap}
.history-actions{align-items:center}
.delete-entry{color:#a4423a;min-width:44px;min-height:44px}
.history-name .cat-name{overflow-wrap:anywhere}
.history-note{white-space:pre-wrap}
.timer-heading>div{min-width:0;flex:1}
.timer-heading .live-badge{flex-shrink:0}
#timer-hint{overflow-wrap:anywhere}
@media(display-mode:standalone){.install-app{display:none!important}}
@media(max-width:1100px){.app-tools #today-label{display:none}}
@media(min-width:651px) and (max-width:900px){
  .sidebar{width:150px;padding:24px 10px}.workspace{margin-left:150px}
  .sidebar .brand{font-size:1.5rem}.sidebar .brand img{width:28px;height:28px;margin-right:6px}
  .sidebar .nav-item{justify-content:flex-start;gap:9px;padding:12px 8px}
  .sidebar .nav-item>span:first-child{font-size:1.4rem}
  .sidebar .nav-label{font-size:.8125rem}
  .sidebar-bottom{flex-wrap:wrap;text-align:center}
  .sidebar-bottom>div:not(.personal-avatar){display:block;overflow-wrap:anywhere}
  .charts-grid{grid-template-columns:1fr;gap:0}
  .summary-grid{grid-template-columns:1fr 1fr}
  .summary-grid article:last-child{grid-column:1/-1}
  #timer-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  #timer-form .timer-note{grid-column:1/-1}.timer-clock{grid-column:1;justify-self:start}.start-button{grid-column:2}
}
@media(max-width:900px){
  .small,.icon-btn{min-height:44px}.text-button{min-height:44px}
  input,select,textarea{font-size:16px}
  .category-tools{gap:6px 14px}.subcategories li{flex-wrap:wrap}.subcategories li div{flex-wrap:wrap}
  .history-scroll{overflow:visible}
  .history-table,.history-table tbody{display:block;width:100%}
  .history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .history-table tbody{display:grid;gap:14px}
  .history-table tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;min-width:0}
  .history-table td,.history-table td:not(:first-child){display:block;min-width:0;padding:6px 0;border:0;text-align:left;overflow-wrap:anywhere;font-size:.8125rem}
  .history-table .history-name{padding:0 0 12px;margin-bottom:6px;border-bottom:1px solid var(--line)}
  .history-table td[data-label]{display:grid;grid-template-columns:55px minmax(0,1fr);gap:12px;align-items:baseline}
  .history-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:.75rem}
  .history-table .history-actions-cell{padding-top:12px}
  .history-actions{justify-content:flex-start;gap:12px}
  .history-table .history-note{max-width:none}
  .history-table .live-badge{justify-self:start;margin:0}
}
@media(max-width:650px){
  .sidebar{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border:0;border-top:1px solid var(--line);background:#fff}
  .sidebar .brand,.sidebar .sidebar-bottom{display:none}
  .sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;gap:4px}
  .sidebar .nav-item{display:flex;flex-direction:column;justify-content:center;gap:0;min-height:56px;min-width:0;width:100%;padding:7px 2px;margin:0;border-radius:8px}
  .sidebar .nav-item>span:first-child{font-size:2rem;line-height:1}
  .sidebar .nav-label{display:none}
  .workspace{padding-bottom:calc(85px + env(safe-area-inset-bottom))}
  .topbar{min-height:60px;padding-right:max(16px,env(safe-area-inset-right));padding-left:max(16px,env(safe-area-inset-left));font-size:.75rem;gap:8px;flex-wrap:wrap}
  .app-tools{gap:5px}.app-tools .small{font-size:.75rem;padding:8px 10px}.slash{padding:0 5px}
  main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  #toast{bottom:calc(92px + env(safe-area-inset-bottom));padding:12px 18px}
  .timer-heading{flex-wrap:wrap}.timer-heading h2{line-height:1.4}
  #timer-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
  #timer-form .timer-note{grid-column:1/-1}.timer-clock{margin:8px 0 0;grid-column:1}.start-button{grid-column:2;width:100%;max-width:none;height:48px}
  .history-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;width:100%;align-items:end}
  .history-filters select{max-width:none}
  .pagination{flex-wrap:wrap;font-size:.75rem}.pagination button{font-size:.75rem}.pagination #page-info{order:-1;width:100%;text-align:center}
  .history-table tr{padding:14px}.history-help{font-size:.75rem;line-height:1.65}
  dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .dialog-actions>.primary,.dialog-actions>.danger{white-space:normal}
}
@media(max-width:360px){
  .timer-heading .live-badge{margin-left:43px}.history-filters{grid-template-columns:1fr 1fr}.history-filters>a{grid-column:1/-1;justify-self:start}
  .section-heading{flex-wrap:wrap}.donut-layout{flex-wrap:wrap}.donut{max-width:100%}.donut-legend{width:100%;flex-basis:100%}.dialog-actions>*{flex:1}
}

/* Pause et reprise du chronomètre. */
.update-banner{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 28px;background:var(--mint);color:var(--green);border-bottom:1px solid #b9dac8;font-size:.875rem}
.update-banner button{min-height:44px;flex-shrink:0}
@media(max-width:650px){.update-banner{padding:12px 16px;font-size:.8125rem}}
.live-badge.paused{background:#fff0db;color:#835212}
.timer-actions{display:flex;gap:10px;flex-shrink:0}
.timer-actions button{min-width:0;padding-left:14px;padding-right:14px}
@media(min-width:901px) and (max-width:1250px){.timer-clock{grid-column:1;justify-self:start}.timer-actions{grid-column:2/4;justify-self:end}}
@media(min-width:651px) and (max-width:900px){.timer-actions{grid-column:2;flex-wrap:wrap}.timer-actions button{flex:1}}
@media(max-width:650px){.timer-heading{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start}.timer-heading .live-badge{grid-column:2;margin-left:0;justify-self:start}.timer-clock{grid-column:1/-1}.timer-actions{grid-column:1/-1;width:100%}.timer-actions button{flex:1;min-height:48px}}
