*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);margin:0}.fiche{max-width:calc(var(--fs-base) * 46);font-size:var(--fs-base);line-height:var(--line);color:var(--text);margin:0 auto;padding:1rem 1rem 5rem}.fiche p{margin:0}.fiche h1,.fiche h2,.fiche h3,.fiche h4{margin:0;line-height:1.25}.doc-title{text-align:center;color:var(--accent);font-size:var(--fs-title);margin-bottom:var(--sp-title-after)!important;line-height:1.15!important}.doc-subtitle{text-align:center;color:var(--muted);font-size:var(--fs-subtitle);margin-bottom:var(--sp-subtitle-after)!important}.para{margin-bottom:var(--sp-para)!important}h2.sec{background:var(--accent-fill);color:var(--on-accent);font-size:var(--fs-h1);padding:.18em .55em;margin:var(--sp-h1-before) 0 var(--sp-h1-after)!important}h3.sub{color:var(--accent);font-size:var(--fs-h2);border-bottom:2px solid var(--accent);margin:var(--sp-h2-before) 0 var(--sp-h2-after)!important}h4.min{color:var(--accent);font-size:var(--fs-h3);margin:var(--sp-h3-before) 0 var(--sp-h3-after)!important}h2.sec,h3.sub,h4.min{scroll-margin-top:4rem}.b,.r,.g,.xl{font-weight:700}.r,.xl,.x{color:var(--red)}.g{color:var(--green)}.list{margin:0 0 var(--sp-gap);padding:0;list-style:none}.list li{padding:calc(var(--sp-bullet) / 2) 0 calc(var(--sp-bullet) / 2) calc((var(--lvl) + 1) * 360 * var(--tw));position:relative}.list li.zebra{background:var(--zebra)}.list li:before{content:"•";left:calc(var(--lvl) * 360 * var(--tw) + 90 * var(--tw));color:var(--muted);position:absolute}.list li[data-s="1"]:before{content:"–"}.list li[data-s="2"]:before{content:"▪"}.tbl-wrap{margin-bottom:var(--sp-gap);overflow-x:auto}.fiche table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:var(--fs-table)}.fiche th,.fiche td{border:1px solid var(--border);padding:var(--sp-cell-v) var(--sp-cell-h);vertical-align:top;text-align:left;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}.fiche th{background:var(--accent-fill);color:var(--on-accent);font-weight:700}.fiche td p{margin-bottom:var(--sp-cell)}.fiche tbody tr:nth-child(2n) td{background:var(--zebra)}.fiche table.first-col td:first-child{font-weight:700}.legend td.red-f,.legend tr td.red-f{background:var(--red-fill)!important}.legend td.green-f{background:var(--green-fill)!important}.legend td.gray-f{background:var(--gray-fill)!important}.fiche table.risk tbody td:first-child{color:var(--on-accent);font-weight:700}.fiche table.risk tbody tr.lvl-low td{background:var(--risk-low-fill)}.fiche table.risk tbody tr.lvl-mid td{background:var(--risk-mid-fill)}.fiche table.risk tbody tr.lvl-high td{background:var(--risk-high-fill)}.fiche table.risk tbody tr.lvl-very td{background:var(--risk-very-fill)}.fiche table.risk tbody tr.lvl-low td:first-child{background:var(--risk-low-bar)}.fiche table.risk tbody tr.lvl-mid td:first-child{background:var(--risk-mid-bar)}.fiche table.risk tbody tr.lvl-high td:first-child{background:var(--risk-high-bar)}.fiche table.risk tbody tr.lvl-very td:first-child{background:var(--risk-very-bar)}.callout{--c:var(--accent);--f:var(--blue-fill);background:var(--f);border:1px solid var(--c);border-left:5px solid var(--c);padding:var(--sp-callout-v) var(--sp-callout-r) var(--sp-callout-v) var(--sp-callout-l);margin-bottom:var(--sp-gap)}.callout.red{--c:var(--red);--f:var(--red-fill)}.callout.green{--c:var(--green);--f:var(--green-fill)}.callout.gray{--c:var(--muted);--f:var(--gray-fill)}.callout p{margin-bottom:var(--sp-callout)}.callout p:last-child{margin-bottom:0}.card-gap{margin-bottom:var(--sp-card-gap)}.card-gap .callout{margin-bottom:0}.reveal{border:1px dashed var(--c);min-height:44px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:8px;margin-top:.15em;padding:.3em 1em;font-size:.92em}.reveal:hover,.reveal:focus-visible{background:color-mix(in srgb, var(--c) 14%, transparent)}.reveal.hide{opacity:.7;min-height:0;margin-top:.4em;padding:.1em .7em}.muted{color:var(--muted)}.pad{padding:1rem}.center{text-align:center}.mono{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:13px}.page{min-height:100vh;font-family:var(--font);color:var(--text)}.topbar{z-index:10;padding:.55rem max(1rem, env(safe-area-inset-right)) .55rem max(1rem, env(safe-area-inset-left));padding-top:calc(.55rem + env(safe-area-inset-top));background:var(--bg);border-bottom:1px solid var(--border);align-items:center;gap:.75rem;display:flex;position:sticky;top:0}.topbar h1{color:var(--accent);flex:1;min-width:0;margin:0;font-size:1.15rem;line-height:1.25}.topbar .crumb{text-overflow:ellipsis;white-space:nowrap;font-size:1rem;overflow:hidden}.topbar-actions{gap:.35rem;display:flex}.back{color:var(--accent);white-space:nowrap;padding:.4rem .2rem;font-weight:700;text-decoration:none}.back span{display:none}@media (width>=520px){.back span{display:inline}}.btn,.icon-btn,.seg button,.size button,.menu-item,.toast button{font:inherit;color:var(--text);cursor:pointer}.btn{border:1px solid var(--border);background:var(--gray-fill);border-radius:8px;justify-content:center;align-items:center;min-height:44px;padding:.4rem 1rem;text-decoration:none;display:inline-flex}.btn.primary{background:var(--accent-fill);color:var(--on-accent);border-color:var(--accent-fill)}.btn:disabled{opacity:.45;cursor:default}.icon-btn{border:1px solid var(--border);background:var(--gray-fill);border-radius:8px;min-width:44px;min-height:44px;font-size:1.1rem;font-weight:700}.btn:focus-visible,.icon-btn:focus-visible,.row-main:focus-visible,.menu-item:focus-visible,.back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.pop{position:relative}.pop-panel{z-index:20;background:var(--bg);border:1px solid var(--border);border-radius:10px;min-width:15rem;padding:.35rem;position:absolute;top:calc(100% + 6px);box-shadow:0 8px 24px #00000038}.pop-panel.right{right:0}.pop-panel.left{left:0}.menu{flex-direction:column;display:flex}.menu-item{text-align:left;background:0 0;border:0;border-radius:6px;min-height:44px;padding:.4rem .75rem}.menu-item:hover:not(:disabled){background:var(--gray-fill)}.menu-item:disabled{opacity:.45;cursor:default}.menu-item.danger{color:var(--red)}.set{flex-direction:column;gap:.7rem;min-width:17rem;padding:.5rem;font-size:.95rem;display:flex}.set-row{flex-direction:column;gap:.3rem;display:flex}.set-row.check{flex-direction:row;align-items:center;gap:.5rem;min-height:44px}.set select{font:inherit;color:inherit;background:var(--gray-fill);border:1px solid var(--border);border-radius:6px;min-height:44px;padding:.5rem}.seg{flex-wrap:wrap;align-items:center;gap:.3rem;display:flex}.seg button{border:1px solid var(--border);background:0 0;border-radius:999px;min-height:40px;padding:.3rem .8rem}.seg button.on{background:var(--accent-fill);color:var(--on-accent);border-color:var(--accent-fill)}.size{align-items:center;gap:.4rem;display:flex}.size input{flex:1;min-width:0}.size button{border:1px solid var(--border);background:var(--gray-fill);border-radius:8px;min-width:44px;min-height:44px}.size output{text-align:right;min-width:2ch;color:var(--muted)}.lib{max-width:42rem;padding:1rem max(1rem, env(safe-area-inset-left)) 4rem;margin:0 auto}.search{width:100%;font:inherit;color:inherit;background:var(--gray-fill);border:1px solid var(--border);border-radius:8px;margin-bottom:.75rem;padding:.6rem .8rem}.rows{border:1px solid var(--border);border-radius:10px;margin:0;padding:0;list-style:none}.row{align-items:stretch;gap:.25rem;padding-right:.4rem;display:flex}.row+.row{border-top:1px solid var(--border)}.row:nth-child(2n){background:var(--zebra)}.row-main{text-align:left;min-width:0;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;flex:1;justify-content:space-between;align-items:baseline;gap:1rem;min-height:52px;padding:.85rem .9rem;display:flex}.row-main:hover{background:var(--gray-fill)}.row-title{overflow-wrap:anywhere;font-weight:700}.row-time{color:var(--muted);white-space:nowrap;font-size:.85rem}.row .pop{align-self:center}.row .icon-btn{background:0 0;border-color:#0000}.empty{text-align:center;flex-direction:column;align-items:center;gap:.4rem;padding:3rem 1rem;display:flex}.empty-actions{flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:.8rem;display:flex}.page.drop{outline:3px dashed var(--accent);outline-offset:-8px}dialog{border:1px solid var(--border);background:var(--bg);width:100%;max-width:min(36rem,100vw - 2rem);color:var(--text);font-family:var(--font);border-radius:12px;padding:1.1rem 1.25rem}dialog::backdrop{background:#00000073}dialog h2{color:var(--accent);margin:0 0 .7rem;font-size:1.15rem}.field{width:100%;font:inherit;color:inherit;background:var(--gray-fill);border:1px solid var(--border);border-radius:8px;padding:.6rem .75rem}.dlg-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.imp-list{flex-direction:column;gap:.6rem;max-height:55vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.imp-list>li{border:1px solid var(--border);border-radius:8px;padding:.6rem .75rem}.imp-list>li.bad{border-color:var(--red)}.imp-head{flex-wrap:wrap;align-items:baseline;gap:.2rem .7rem;margin-bottom:.3rem;display:flex}.imp-head .muted{font-size:.8rem}.issues{margin:.3rem 0 0;padding-left:1.2rem;font-size:.85rem}.msg{margin:.3rem 0}.msg.err{color:var(--red);font-weight:700}details summary{cursor:pointer;font-size:.9rem}.toasts{left:0;right:0;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:50;pointer-events:none;flex-direction:column;align-items:center;gap:.4rem;display:flex;position:fixed}.toast{pointer-events:auto;background:var(--accent-fill);max-width:calc(100vw - 2rem);color:var(--on-accent);font:.95rem var(--font);border-radius:10px;align-items:center;gap:1rem;padding:.6rem .9rem;display:flex;box-shadow:0 6px 20px #0000004d}.toast button{color:inherit;background:0 0;border:1px solid;border-radius:6px;min-height:36px;padding:.3rem .7rem;font-weight:700}.head-stack{z-index:10;background:var(--bg);position:sticky;top:0}.head-stack .topbar{position:static}.btn.mode{min-height:44px}.btn.mode[aria-pressed=true]{background:var(--accent-fill);color:var(--on-accent);border-color:var(--accent-fill)}.mbar{padding:.4rem max(1rem, env(safe-area-inset-left));border-bottom:1px solid var(--border);background:var(--gray-fill);flex-wrap:wrap;align-items:center;gap:.4rem;font-size:14px;display:flex}.mbar .sep{background:var(--border);align-self:stretch;width:1px;margin:0 .2rem}.mbar .grow,.bbar .grow{flex:1}.chip{font:inherit;color:var(--text);border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:999px;min-height:36px;padding:.2rem .7rem}.chip:disabled{opacity:.4;cursor:default}.chip.c-red{color:var(--red);font-weight:700}.chip.c-green{color:var(--green);font-weight:700}.status{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:.3rem .4rem;font-size:13px}.status.st-dirty,.status.st-saving{color:var(--text)}.status.st-error{color:var(--red);font-weight:700}.editing .eb{border-radius:8px;margin:0}.editing .eb-view{cursor:pointer;outline-offset:3px;border-radius:8px;outline:2px solid #0000}.editing .eb-view:hover{outline-color:color-mix(in srgb, var(--accent) 45%, transparent)}.editing .eb-view:focus-visible{outline-color:var(--accent)}.editing .eb.active{outline:2px solid var(--accent);outline-offset:3px;background:var(--bg);margin:.4rem -.5rem;padding:.5rem}.editor{flex-direction:column;gap:.4rem;margin:.4rem 0;display:flex}.preview{border-top:1px dashed var(--border);margin-top:.6rem;padding-top:.5rem}.eb-label{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.3rem;font-size:.75em;display:block}.hint{color:var(--muted);font-size:.8em;margin:.2rem 0 0!important}.bbar{flex-wrap:wrap;align-items:center;gap:.3rem;font-size:.85em;display:flex}.bbar select{font:inherit;color:var(--text);background:var(--gray-fill);border:1px solid var(--border);border-radius:6px;min-height:34px;padding:.25rem .4rem}.bname{color:var(--accent);font-weight:700}.mini{font:inherit;color:var(--text);border:1px solid var(--border);background:var(--gray-fill);cursor:pointer;border-radius:6px;min-width:34px;min-height:34px;padding:0 .5rem;font-size:.85em}.mini:disabled{opacity:.35;cursor:default}.mini.danger{color:var(--red)}.mini.done{background:var(--accent-fill);color:var(--on-accent);border-color:var(--accent-fill);font-weight:700}.fld{box-sizing:border-box;width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);resize:none;border-radius:6px;padding:.35em .55em;font-size:.95em;line-height:1.4;display:block;overflow:hidden}.fld:focus{outline:2px solid var(--accent);outline-offset:0;border-color:#0000}.li-row,.line-row{align-items:flex-start;gap:.35rem;display:flex}.li-row{padding-left:calc(var(--lvl,0) * 1.5rem)}.li-dot{width:1ch;color:var(--muted);flex:none;padding-top:.45em}.li-row .fld,.line-row .fld{flex:1;min-width:0}.li-ctl{opacity:.55;flex:none;gap:.2rem;display:flex}.li-row:focus-within .li-ctl,.line-row:focus-within .li-ctl,.li-ctl:hover{opacity:1}.li-edit,.editor>div{flex-direction:column;gap:.3rem;display:flex}.add{font:inherit;color:var(--accent);border:1px dashed var(--border);cursor:pointer;background:0 0;border-radius:6px;align-self:flex-start;min-height:36px;padding:.35rem .8rem;font-size:.9em}.add:hover{background:var(--gray-fill)}.card-edit{border:1px solid var(--border);background:var(--gray-fill);border-radius:8px;flex-direction:column;gap:.3rem;padding:.5rem;display:flex}.card-ctl{justify-content:flex-end;align-items:center;gap:.2rem;display:flex}.card-ctl .muted{margin-right:auto;font-size:.8em}.meta-edit{color:var(--muted);flex-direction:column;gap:.6rem;margin:.4rem 0;font-size:.85em;display:flex}.meta-edit label{flex-direction:column;gap:.2rem;display:flex}.kind{font:inherit;border:2px solid var(--border);min-height:34px;color:var(--text);cursor:pointer;background:0 0;border-radius:999px;padding:.2rem .8rem;font-size:.85em}.kind.k-blue{border-color:var(--accent)}.kind.k-red{border-color:var(--red)}.kind.k-green{border-color:var(--green)}.kind.k-gray{border-color:var(--muted)}.kind.on{background:var(--gray-fill);font-weight:700;box-shadow:inset 0 0 0 2px}.insert{justify-content:center;align-items:center;height:1.1rem;display:flex;position:relative}.insert:before{content:"";border-top:1px dashed var(--border);opacity:0;transition:opacity .12s;position:absolute;top:50%;left:0;right:0}.insert:hover:before,.insert:focus-within:before{opacity:1}.insert .pop{z-index:2}.insert .icon-btn{opacity:.3;background:var(--bg);border-radius:999px;min-width:28px;height:22px;min-height:22px;padding:0 .6rem;font-size:.8rem;transition:opacity .12s}.insert:hover .icon-btn,.insert .icon-btn:focus-visible,.insert .icon-btn[aria-expanded=true]{opacity:1}.editing header .eb-view{margin-bottom:.2rem}.editing .eb{scroll-margin-top:9rem}.tb-opts{flex-wrap:wrap;align-items:center;gap:.4rem 1rem;font-size:.9em;display:flex}.tb-opts label{align-items:center;gap:.35rem;min-height:34px;display:inline-flex}.tb-scroll{padding-bottom:.3rem;overflow-x:auto}.tb-grid{align-items:start;gap:.35rem;min-width:min-content;display:grid}.tb-colctl{align-items:center;gap:.2rem;display:flex}.ratio{color:var(--muted);flex:1;align-items:center;gap:.3rem;min-width:0;font-size:.8em;display:inline-flex}.ratio input{width:4.2rem;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:6px;min-height:34px;padding:.25rem .4rem}.tb-cell{min-width:0}.tb-cell.head .fld{background:color-mix(in srgb, var(--accent-fill) 12%, var(--bg));font-weight:700}.cell-edit,.tb-rowctl{flex-direction:column;gap:.2rem;display:flex}.tb-add{flex-wrap:wrap;gap:.5rem;display:flex}.rk-head{border:1px solid var(--border);border-radius:8px;padding:.3rem .6rem;font-size:.9em}.rk-head-grid{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.5rem;margin:.5rem 0;display:grid}.rk-col{flex-direction:column;gap:.25rem;display:flex}.rk-cells{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.5rem;display:grid}.rk-row{border-left:6px solid var(--border)}.rk-row.lv-low{border-left-color:var(--risk-low-bar)}.rk-row.lv-mid{border-left-color:var(--risk-mid-bar)}.rk-row.lv-high{border-left-color:var(--risk-high-bar)}.rk-row.lv-very{border-left-color:var(--risk-very-bar)}.kind.lv-low{border-color:var(--risk-low-bar)}.kind.lv-mid{border-color:var(--risk-mid-bar)}.kind.lv-high{border-color:var(--risk-high-bar)}.kind.lv-very{border-color:var(--risk-very-bar)}.rk-row .card-ctl{flex-wrap:wrap;justify-content:flex-start}.rk-row .card-ctl .grow{flex:1}.iss-ok{color:var(--green);font-weight:700}.iss-warn{color:var(--text);font-weight:700}.iss-err{color:var(--red);font-weight:700}.mbar .pop>.icon-btn{background:0 0;border-color:#0000;min-width:0;min-height:36px;padding:0 .7rem;font-size:13px}.iss-panel{min-width:min(26rem,100vw - 2rem);max-height:60vh;overflow-y:auto}.iss-panel ul{margin:0;padding:0;list-style:none}.iss-panel .pad{margin:0;padding:.4rem .6rem}.iss-item{text-align:left;width:100%;font:inherit;color:var(--text);border:0;border-top:1px solid var(--border);cursor:pointer;background:0 0;flex-direction:column;gap:.1rem;padding:.5rem .6rem;font-size:.9rem;display:flex}.iss-item:hover,.iss-item:focus-visible{background:var(--gray-fill)}.iss-where{font-weight:700}.iss-item.error .iss-where{color:var(--red)}.iss-detail{color:var(--muted);font:11px ui-monospace,monospace}.tb-colctl{gap:.15rem}.tb-colctl .mini{min-width:28px;min-height:30px;padding:0 .25rem}.tb-colctl .ratio input{width:3.3rem;min-height:30px;padding:.15rem .3rem}.tb-rowctl{grid-template-columns:repeat(2,30px);align-content:start;gap:.15rem;display:grid}.tb-rowctl .mini{min-width:30px;min-height:30px;padding:0}.tb-rowctl{z-index:1;background:var(--bg);box-shadow:-6px 0 6px -6px var(--border);padding-left:.2rem;position:sticky;right:0}
