/* Dashboards and the KPI shop (A-29): a twelve-column grid of cards, the shop beside it while arranging. */
#indicators-host .db-tools{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin:0 0 12px;flex-wrap:wrap}
#indicators-host .db-tools.editing{justify-content:flex-start;background:var(--ki-card);border:1px solid var(--ki-line);border-radius:var(--ki-r);padding:8px 10px;box-shadow:var(--ki-shadow)}
#indicators-host .db-editor-details{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
#indicators-host .db-tools.editing{position:sticky;top:8px;z-index:45;box-shadow:var(--theme-shadow-pop)}
#indicators-host .db-tools.editing>[data-db-shop]{color:var(--ki-teal);font-weight:700;white-space:nowrap}
#indicators-host .db-status{min-height:18px;margin:4px 0}
#indicators-host .db-tools .db-gap{flex:1}
#indicators-host .db-tools label.db-style{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ki-muted)}
#indicators-host .db-tools select[data-db-style]{font:inherit;font-size:13px;color:var(--ki-text);background:var(--ki-card);border:1px solid var(--ki-field-line);border-radius:var(--theme-r-m);padding:6px 8px}
#indicators-host .db-name{font:inherit;font-size:14px;font-weight:700;color:var(--ki-text);background:var(--ki-field);border:1px solid var(--ki-field-line);border-radius:var(--theme-r-m);padding:7px 10px;min-width:220px}
#indicators-host .db-reason{font:inherit;font-size:13px;color:var(--ki-text);background:var(--ki-field);border:1px solid var(--ki-field-line);border-radius:var(--theme-r-m);padding:7px 10px;min-width:200px}
#indicators-host .db-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
#indicators-host .db-layout.with-shop{grid-template-columns:minmax(0,1fr) 330px}
#indicators-host .db-picker{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--ki-ink) 45%,transparent);padding:3vh 3vw;outline:none}
#indicators-host .db-pick-panel{background:var(--ki-card);border:1px solid var(--ki-line);border-radius:var(--theme-r-xl);box-shadow:var(--ki-shadow);width:min(1120px,100%);max-height:100%;display:flex;flex-direction:column;min-height:0}
#indicators-host .db-pick-panel>header,#indicators-host .db-pick-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px}
#indicators-host .db-pick-panel>header{border-bottom:1px solid var(--ki-line)}
#indicators-host .db-pick-panel>footer{border-top:1px solid var(--ki-line);justify-content:flex-end}
#indicators-host .db-pick-panel h3{margin:0;font-size:15px;color:var(--ki-text)}
#indicators-host .db-pick-tools{display:flex;gap:8px}
#indicators-host .db-pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;padding:14px 18px;overflow:auto;min-height:0}
#indicators-host .db-pick{display:flex;flex-direction:column;gap:8px;border:1px solid var(--ki-line);border-radius:var(--theme-r-l);padding:10px;cursor:pointer;min-width:0}
#indicators-host .db-pick:has(input:checked){border-color:var(--ki-teal)}
#indicators-host .db-pick:not(:has(input:checked)) .db-pick-preview{opacity:.35}
#indicators-host .db-pick-name{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:var(--ki-text)}
#indicators-host .db-pick-name input{margin-top:2px;flex:none}
#indicators-host .db-pick-preview{display:block;height:150px;overflow:hidden;border-radius:var(--theme-r-m);pointer-events:none;position:relative}
#indicators-host .db-pick-scale{display:block;width:200%;transform:scale(.5);transform-origin:0 0}
#indicators-host .db-pick-scale .ki-ask,#indicators-host .db-pick-scale .ki-info,#indicators-host .db-pick-scale .db-ask{display:none}
#indicators-host .db-unlinked{border:1px dashed var(--ki-line);border-radius:var(--theme-r-xl);padding:10px 14px;background:transparent}
#indicators-host .db-unlinked>summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ki-muted);list-style:none;display:flex;align-items:center;gap:6px}
#indicators-host .db-unlinked>summary::-webkit-details-marker{display:none}
#indicators-host .db-unlinked>summary::before{content:"▸";font-size:11px;transition:transform .15s}
#indicators-host .db-unlinked[open]>summary::before{transform:rotate(90deg)}
#indicators-host .db-unlinked>summary b{color:var(--ki-text)}
#indicators-host .db-unlinked>.db-grid{margin-top:12px}
#indicators-host .db-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;align-items:stretch;grid-auto-flow:row dense}
#indicators-host .db-cell{min-width:0;display:flex;flex-direction:column;position:relative}
#indicators-host .db-cell.s-s{grid-column:span 3}#indicators-host .db-cell.s-m{grid-column:span 4}
#indicators-host .db-cell.s-l{grid-column:span 6}#indicators-host .db-cell.s-w{grid-column:span 12}
#indicators-host .db-cell>.ki-card,#indicators-host .db-cell>.ki-strip,#indicators-host .db-cell>.db-card{flex:1;margin:0}
#indicators-host .db-cell>.ki-strip{grid-column:auto}
#indicators-host .db-card{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 16px 10px;border:1px solid var(--ki-line);border-radius:var(--ki-r);background:var(--ki-card);box-shadow:var(--ki-shadow);transition:box-shadow .2s}
#indicators-host .db-card:hover{box-shadow:0 0 0 2px color-mix(in srgb,var(--ki-teal) 22%,transparent),var(--ki-shadow)}
#indicators-host .db-card header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
#indicators-host .db-card .kl{font-size:var(--theme-fs-min);letter-spacing:.9px;text-transform:uppercase;color:var(--ki-muted);font-weight:700;line-height:1.35}
#indicators-host .db-head{display:flex;flex-direction:column;gap:3px}
#indicators-host .db-card .kv{font-size:clamp(22px,1.8vw,28px);font-weight:800;letter-spacing:-.6px;line-height:1.15;color:var(--ki-text);font-variant-numeric:tabular-nums;white-space:nowrap}
#indicators-host .db-card .kv small{font-size:13px;font-weight:600;letter-spacing:0;color:var(--ki-muted);margin-left:2px}
#indicators-host .db-deltas{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
/* A chart takes the room its card gives it and never asks for more (D4): its size does not depend on what the chart drew inside it,
   so a chart redrawn at its new size cannot make its card, its row and itself grow again, whatever the panel beside the board does. */
#indicators-host .db-chart{flex:1 1 0;min-height:170px;margin-top:4px;contain:size;overflow:hidden}
#indicators-host .db-cell.s-s .db-chart{min-height:120px}
#indicators-host .db-cell.s-l .db-chart,#indicators-host .db-cell.s-w .db-chart{min-height:230px}
#indicators-host .db-card.chart-bars_target .db-chart,#indicators-host .db-card.chart-bars_whole .db-chart,#indicators-host .db-card.chart-distribution .db-chart,#indicators-host .db-card.chart-dumbbell .db-chart{min-height:210px}
#indicators-host .db-why{margin:6px 0 0}
#indicators-host .db-card footer{display:flex;gap:6px;margin-top:auto;padding-top:6px;opacity:1;position:relative}
#indicators-host .db-card:hover footer,#indicators-host .db-card:focus-within footer{opacity:1}
#indicators-host .db-ask{font-size:11.5px!important;padding:4px 10px!important;border-radius:var(--theme-r-pill)!important}
#indicators-host .db-card.pending{border-style:dashed;justify-content:center;min-height:140px}
#indicators-host .db-empty{grid-column:1/-1;padding:40px;text-align:center;border:2px dashed var(--ki-line);border-radius:var(--ki-r)}
#indicators-host .db-ctl{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px 6px 4px;margin-bottom:-6px;background:color-mix(in srgb,var(--ki-teal) 8%,var(--ki-card));border:1px solid color-mix(in srgb,var(--ki-teal) 30%,var(--ki-line));border-bottom:0;border-radius:var(--ki-r) var(--ki-r) 0 0;position:relative;z-index:1}
#indicators-host .db-ctl button{font-size:11px;padding:3px 8px;border-radius:var(--theme-r-s)}
#indicators-host .db-ctl button[aria-pressed=true]{background:var(--ki-pick);color:var(--ki-on-pick);border-color:var(--ki-pick)}
#indicators-host .db-ctl select{font:inherit;font-size:11.5px;border:1px solid var(--ki-field-line);border-radius:var(--theme-r-s);padding:3px 6px;flex:1 1 120px;min-width:0;max-width:200px;background:var(--ki-card);color:var(--ki-text)}
#indicators-host .db-ctl .db-x{margin-left:auto;color:var(--ki-red)}
#indicators-host .db-grip{cursor:grab;color:var(--ki-muted);letter-spacing:-2px;padding:0 4px;user-select:none}
#indicators-host .db-cell[draggable=true]{cursor:grab}
#indicators-host .db-cell.dragging{opacity:.4}
#indicators-host .db-cell.over::before{content:"";position:absolute;left:-8px;top:0;bottom:0;width:3px;border-radius:var(--theme-r-xs);background:var(--ki-teal)}
#indicators-host .db-shop{position:sticky;top:10px;display:flex;flex-direction:column;gap:10px;max-height:calc(100dvh - 40px);padding:14px;border:1px solid var(--ki-line);border-radius:var(--ki-r);background:var(--ki-card);box-shadow:var(--ki-shadow)}
#indicators-host .db-shop header{display:flex;justify-content:space-between;align-items:center;gap:8px}
#indicators-host .db-shop header strong{color:var(--ki-text);font-size:14px}
#indicators-host .db-shop header button{font-size:11.5px;padding:6px 10px}
#indicators-host .db-shop input[type=search]{font:inherit;font-size:13px;border:1px solid var(--ki-field-line);border-radius:var(--theme-r-m);padding:8px 10px;width:100%;box-sizing:border-box}
#indicators-host .db-shelves{display:flex;gap:5px;flex-wrap:wrap}
#indicators-host .db-shelves button{font-size:11px;padding:4px 9px;border-radius:var(--theme-r-pill);background:var(--ki-soft);border-color:transparent;color:var(--ki-slate)}
#indicators-host .db-shelves button[aria-pressed=true]{background:var(--ki-pick);color:var(--ki-on-pick)}
#indicators-host .db-items{list-style:none;margin:0;padding:0;overflow:auto;display:flex;flex-direction:column;gap:6px}
#indicators-host .db-items li{display:flex;gap:9px;align-items:center;padding:8px 9px;border:1px dashed color-mix(in srgb,var(--ki-slate) 30%,var(--ki-line));border-radius:var(--theme-r-l);cursor:grab;background:color-mix(in srgb,var(--ki-soft) 40%,var(--ki-card))}
#indicators-host .db-items li span{flex:1;min-width:0;display:flex;flex-direction:column}
#indicators-host .db-items li b{font-size:12.3px;color:var(--ki-text);font-weight:600;line-height:1.3}
#indicators-host .db-items li small{font-size:var(--theme-fs-min);color:var(--ki-muted)}
#indicators-host .db-items li button{font-size:11px;padding:4px 9px}
#indicators-host .db-items li em{font-size:var(--theme-fs-min);color:var(--ki-green);font-style:normal;font-weight:600;white-space:nowrap}
#indicators-host .db-items li.on{cursor:default;border-style:solid;opacity:.7}
#indicators-host .db-removed{display:flex;gap:9px;align-items:center;justify-content:space-between;margin:0;padding:7px 9px;border-radius:var(--theme-r-l);background:color-mix(in srgb,var(--ki-soft) 60%,var(--ki-card));font-size:12px;color:var(--ki-text)}
#indicators-host .db-removed button{font-size:11px;padding:4px 9px}
#indicators-host .db-none{justify-content:center;color:var(--ki-muted);font-size:12px;cursor:default!important}
#indicators-host .db-glyph{flex:0 0 30px;width:30px;height:22px;fill:var(--ki-teal);stroke:var(--ki-teal);stroke-width:1.4;opacity:.9}
#indicators-host .db-glyph text{stroke:none;fill:var(--ki-teal)}
#indicators-host .db-stale{opacity:.5;transition:opacity .15s}
#indicators-host .db-skeleton{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#indicators-host .db-skeleton div{height:240px;border-radius:var(--ki-r);background:linear-gradient(90deg,var(--ki-soft) 0%,var(--ki-card) 50%,var(--ki-soft) 100%);background-size:220% 100%;animation:ki-shimmer 1.4s ease-in-out infinite}
/* A board nobody arranged fills its rows on a wide window (the width is worked out by the layout's `fill` and carried on the card);
   narrower windows change the sizes by the rules below, and an arranged board keeps its places. */
@media(min-width:1281px){#indicators-host .db-grid:not(.positioned)>.db-cell[style*="--fill"]{grid-column:span var(--fill)}}
/* A table in a card lets its header wrap: it asked for a scroll bar of its own to keep five headers on one line. */
#indicators-host .db-cell .ki-table th{white-space:normal}
@media(max-width:1280px){#indicators-host .db-cell.s-s{grid-column:span 4}#indicators-host .db-cell.s-m{grid-column:span 6}#indicators-host .db-layout.with-shop{grid-template-columns:minmax(0,1fr)}#indicators-host .db-shop{position:static;max-height:none}}
@media(max-width:900px){#indicators-host .db-cell.s-s,#indicators-host .db-cell.s-m{grid-column:span 6}#indicators-host .db-cell.s-l{grid-column:span 12}}
@media(max-width:700px){#indicators-host .db-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#indicators-host .db-cell.s-s{grid-column:span 1}#indicators-host .db-cell.s-m,#indicators-host .db-cell.s-l,#indicators-host .db-cell.s-w{grid-column:span 2}#indicators-host .db-skeleton{grid-template-columns:1fr}#indicators-host .db-card footer{opacity:1}}
@media(prefers-reduced-motion:reduce){#indicators-host .db-skeleton div{animation:none}#indicators-host .db-stale{transition:none}}
/* « Présenter »: the dashboard full screen, one card per slide. */
#indicators-host .db-present{position:fixed;inset:0;z-index:1000;background:var(--fr-bg);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3vh 3vw 0;outline:none}
#indicators-host .dp-slide{width:min(94vw,calc((100vh - 110px) * 16 / 9));aspect-ratio:16/9;background:var(--ki-card);border-radius:var(--theme-r-xl);box-shadow:var(--theme-shadow-modal);padding:clamp(22px,3.4vw,52px);display:flex;flex-direction:column;overflow:hidden;animation:dp-in .32s cubic-bezier(.2,.7,.2,1)}
/* #1484: on every width a slide taller than its box scrolls (Amin, card c797-28 « scroll_like_phone »), its section from its top (below). */
#indicators-host .dp-slide{overflow-y:auto}
@keyframes dp-in{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}
#indicators-host .dp-cover{margin:auto 0;display:flex;flex-direction:column;gap:10px;border-left:6px solid var(--ki-red);padding-left:28px}
#indicators-host .dp-cover h1{margin:0;font-size:clamp(30px,4.2vw,62px);font-weight:800;letter-spacing:-1.2px;color:var(--ki-text)}
#indicators-host .dp-cover p{margin:0;font-size:clamp(14px,1.5vw,22px);color:var(--ki-muted)}
#indicators-host .dp-eyebrow{font-size:clamp(10px,.9vw,13px);letter-spacing:1.4px;text-transform:uppercase;color:var(--ki-red);font-weight:700}
#indicators-host .dp-kpi{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.9fr);gap:clamp(18px,3vw,48px);height:100%}
#indicators-host .dp-left{display:flex;flex-direction:column;gap:12px;min-width:0}
#indicators-host .dp-left h2{margin:0;font-size:clamp(18px,2vw,30px);font-weight:800;letter-spacing:-.4px;color:var(--ki-text);line-height:1.2}
#indicators-host .dp-value{font-size:clamp(36px,5vw,76px);font-weight:800;letter-spacing:-1.6px;color:var(--ki-text);line-height:1;margin-top:auto}
#indicators-host .dp-value small{font-size:.38em;color:var(--ki-muted);font-weight:600;letter-spacing:0;margin-left:6px}
#indicators-host .dp-left .db-deltas{font-size:clamp(12px,1vw,15px)}
#indicators-host .dp-def{margin:auto 0 0;font-size:clamp(11px,.9vw,13px);color:var(--ki-muted);line-height:1.5}
#indicators-host .dp-right{min-width:0;display:flex;flex-direction:column;justify-content:center}
#indicators-host .dp-chart{width:100%;height:100%;min-height:260px}
#indicators-host .dp-section{height:100%;display:flex;flex-direction:column}
#indicators-host .dp-section>.ki-card,#indicators-host .dp-section>.ki-strip{flex:1;border:0;box-shadow:none;padding:0;margin:0}
#indicators-host .dp-section .ki-chart{height:100%!important;min-height:300px}
#indicators-host .dp-bar{width:min(94vw,calc((100vh - 110px) * 16 / 9));display:flex;justify-content:space-between;align-items:center;color:var(--paper-bar-muted);font-size:13px;padding:14px 4px}
#indicators-host .dp-nav{display:flex;gap:10px;align-items:center}
#indicators-host .dp-nav b{color:var(--paper-bar-ink);font-weight:600;min-width:56px;text-align:center}
#indicators-host .dp-bar button{background:var(--paper-bar-btn)!important;color:var(--paper-bar-ink)!important;border-color:var(--paper-bar-btn-line)!important;border-radius:var(--theme-r-pill)!important;padding:6px 14px!important}
#indicators-host .dp-bar button:disabled{opacity:.3}
/* #1469: at phone width the chart's row is the room left under the figures, never a size read from its own drawing (ECharts measures
   its box with the drawing hidden, so a row sized by the drawing makes it draw short of its box), and never under the chart's floor. */
@media(max-width:700px){#indicators-host .dp-kpi{grid-template-columns:1fr;grid-template-rows:auto minmax(260px,1fr)}#indicators-host .dp-slide{aspect-ratio:auto;height:calc(100vh - 110px);overflow-y:auto}}
/* #1472: on a short phone the slide scrolls (above) and the chart's floor and the slide's padding are smaller, so less of a card
   needs scrolling; the chart's row stays the room left under the figures (#1469). Amin card c797-25 « shrink_and_scroll ». */
@media(max-width:700px) and (max-height:700px){#indicators-host .dp-kpi{grid-template-rows:auto minmax(200px,1fr)}#indicators-host .dp-chart{min-height:200px}#indicators-host .dp-slide{padding:16px}}
@media(prefers-reduced-motion:reduce){#indicators-host .dp-slide{animation:none}}
#indicators-host .dp-section{justify-content:safe center}
/* #1472: on a phone a section taller than the slide starts at its top (centred only when it fits), so the slide's scroll reaches all of it. */
@media(max-width:700px){#indicators-host .dp-section{justify-content:safe center}}
/* #1477: on a phone the bar wraps, the deck's title and period on their own line above the buttons, so « Quitter » stays on the screen. */
@media(max-width:700px){#indicators-host .dp-bar{flex-wrap:wrap;row-gap:6px;padding:8px 4px}#indicators-host .dp-bar>span:first-child{flex:1 0 100%;min-width:0}#indicators-host .dp-nav{margin-left:auto}}
#indicators-host .dp-section>.ki-strip{flex:none;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
#indicators-host .db-present .ki-tile-actions,#indicators-host .db-present details.ki-definition,#indicators-host .db-present .ki-info,#indicators-host .db-present .ki-card-head button{display:none}
#indicators-host .dp-section>.ki-card{display:flex;flex-direction:column}
#indicators-host .dp-section>.ki-card .ki-chart{flex:1}
#indicators-host .dp-section>.ki-strip{zoom:1.45}
#indicators-host .dp-section>.ki-card:has(.ki-table){zoom:1.3}
/* #1493: on a phone a presented table is drawn at the board's scale; the projector size above would leave a 283 px table 238 px
   of card, and « Valeur » would scroll under the fixed Client cell. */
@media(max-width:700px){#indicators-host .dp-section>.ki-card:has(.ki-table){zoom:1}}
#indicators-host .db-present [data-ask]{display:none}

/* Optional coordinate layouts. Legacy size-only boards retain their original responsive grid. */
/* Native scroll anchoring must not counteract the deliberate reflow during a drag. */
#indicators-host .db-grid.positioned{grid-auto-rows:72px;grid-auto-flow:row;position:relative;overflow-anchor:none}
#indicators-host .db-grid.positioned .db-cell{min-height:0;transform-origin:top left}
#indicators-host .db-grid.positioned .db-cell>.db-card,#indicators-host .db-grid.positioned .db-cell>.ki-card,#indicators-host .db-grid.positioned .db-cell>.ki-strip{min-height:0;overflow:auto}
#indicators-host .db-grid.positioned .db-chart{min-height:60px!important}
#indicators-host .db-grid.positioned .db-card footer{opacity:1;flex:none}
#indicators-host .db-layout.with-shop{grid-template-columns:minmax(0,1fr)}
#indicators-host .db-layout.with-shop .db-shop{position:fixed;right:24px;top:150px;bottom:24px;z-index:100;width:min(370px,calc(100vw - 40px));box-sizing:border-box;max-height:none;box-shadow:var(--theme-shadow-modal)}
#indicators-host .db-add-tile{border:1.5px dashed var(--ki-slate);border-radius:var(--theme-r-l);background:var(--ki-soft);color:var(--ki-text);font:inherit;font-size:13px;min-height:100px}
#indicators-host .db-grip{touch-action:none;cursor:grab;border:0;background:transparent!important;color:var(--ki-muted)!important;font-size:18px!important;padding:3px 6px!important}
#indicators-host .db-resize{position:absolute;right:5px;bottom:5px;width:25px;height:25px;z-index:3;touch-action:none;cursor:nwse-resize;border:0;background:var(--ki-card);color:var(--ki-teal);padding:0;font-size:21px;border-radius:var(--theme-r-xs)}
#indicators-host .db-moving{z-index:5;will-change:transform,width,height;box-shadow:var(--theme-shadow-modal);opacity:.96}
#indicators-host .db-placement{border:2px dashed var(--ki-teal);border-radius:var(--theme-r-l);background:color-mix(in srgb,var(--ki-teal) 12%,transparent);pointer-events:none;z-index:0}
#indicators-host .db-cell>.db-card{padding-bottom:16px}
#indicators-host .db-editable{border-radius:var(--ki-r);outline:1px solid var(--ki-line)}
#indicators-host .db-editable:hover{outline-color:var(--ki-teal)}
#indicators-host .db-editable .db-ctl,#indicators-host .db-editable article>header{cursor:grab}
#indicators-host .db-editable .db-ctl button,#indicators-host .db-editable article>header button{cursor:pointer}
#indicators-host .db-edge{position:absolute;z-index:3;touch-action:none;cursor:grab}
#indicators-host .db-edge-top,#indicators-host .db-edge-bottom{left:8px;right:8px;height:8px}
#indicators-host .db-edge-top{top:0}#indicators-host .db-edge-bottom{bottom:0}
#indicators-host .db-edge-left,#indicators-host .db-edge-right{top:8px;bottom:8px;width:8px}
#indicators-host .db-edge-left{left:0}#indicators-host .db-edge-right{right:0}
#indicators-host .db-resize{z-index:4}
#indicators-host .db-moving,#indicators-host .db-moving .db-edge{cursor:grabbing}
@media(max-width:900px){#indicators-host .db-edge{display:none}#indicators-host .db-editor-details input{min-width:0;flex:1 1 180px}#indicators-host .db-tools.editing{top:4px;gap:5px}#indicators-host .db-tools.editing>button{padding:6px 8px;font-size:12px}}
@media(max-width:900px){#indicators-host .db-grid.positioned{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}#indicators-host .db-grid.positioned>.db-cell{grid-column:span 2!important;grid-row:auto!important;min-height:220px}#indicators-host .db-grid.positioned>.db-add-tile{grid-column:span 2!important;grid-row:auto!important}#indicators-host .db-grip,#indicators-host .db-resize{display:none}#indicators-host .db-grid.positioned .db-chart{min-height:180px!important}}
@media(prefers-reduced-motion:reduce){#indicators-host .db-cell{transition:none!important}}

/* Free resize (Fiori-like): the right edge changes the width, the bottom edge the height, the corner both; the size reads while dragging. */
#indicators-host .db-edge-right,#indicators-host .db-edge-bottom{cursor:ew-resize}
#indicators-host .db-edge-bottom{cursor:ns-resize}
#indicators-host .db-edge-right:hover,#indicators-host .db-edge-bottom:hover{background:color-mix(in srgb,var(--ki-teal) 35%,transparent);border-radius:var(--theme-r-xs)}
#indicators-host .db-placement[data-size]::after{content:attr(data-size);position:absolute;right:8px;top:6px;font:700 11px Inter,system-ui,sans-serif;color:var(--ki-teal);background:var(--ki-card);border-radius:var(--theme-r-s);padding:2px 7px}
#indicators-host .db-placement{position:relative}
/* A card a link arrived on. */
#indicators-host .db-cell.db-arrived>.db-card,#indicators-host .db-cell.db-arrived>.ki-card,#indicators-host .db-cell.db-arrived>.ki-strip{box-shadow:0 0 0 3px color-mix(in srgb,var(--ki-teal) 55%,transparent),var(--ki-shadow);animation:db-arrive 2.6s ease-out}
@keyframes db-arrive{0%,60%{box-shadow:0 0 0 5px color-mix(in srgb,var(--ki-teal) 60%,transparent),var(--ki-shadow)}}
#indicators-host .db-unset{border:1px dashed var(--ki-gold);background:transparent;color:var(--ki-body);cursor:pointer}
#indicators-host .db-unset:hover{border-color:var(--ki-teal);color:var(--ki-teal)}
@media(prefers-reduced-motion:reduce){#indicators-host .db-cell.db-arrived>.db-card,#indicators-host .db-cell.db-arrived>.ki-card,#indicators-host .db-cell.db-arrived>.ki-strip{animation:none}}
