/* AIS Edge dashboards: widget runtime (.dsh-*), the viewer served at /dash/ (.dv-*) and Studio's designer (.dd-*).
 * ISA-101 style: grey when normal, colour + shape + text only when abnormal. System fonts only. */
.dsh-root, .dv-app {
  --d-bg: #eceef1; --d-card: #ffffff; --d-card-2: #f6f7f9; --d-line: #d9dde2; --d-line-2: #c3c9d0;
  --d-fg: #1d2228; --d-fg-2: #4f5965; --d-muted: #6f7a86; --d-accent: #0f6cbd; --d-accent-fg: #ffffff;
  --d-ok: #0e7a0e; --d-ok-bg: #e2f4e2; --d-info: #0f6cbd; --d-info-bg: #e3eefa; --d-warn: #9a5b00; --d-warn-fill: #fab219; --d-warn-bg: #fff2d6;
  --d-crit: #c42b2b; --d-crit-fill: #d03b3b; --d-crit-bg: #fde6e6; --d-neutral: #6f7a86; --d-neutral-bg: #e9ecef;
  --d-gauge: #4f5965; --d-track: #e2e6ea; --d-grid: #e3e7eb;
  --p0: #2a78d6; --p1: #eb6834; --p2: #1baf7a; --p3: #eda100; --p4: #e87ba4; --p5: #008300; --p6: #6250d6; --p7: #e34948;
  --d-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Roboto, sans-serif;
  --d-mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .dsh-root, :root:where(:not([data-theme="light"])) .dv-app {
    --d-bg: #111315; --d-card: #1c2024; --d-card-2: #22272c; --d-line: #2e353c; --d-line-2: #3d454e;
    --d-fg: #eceef0; --d-fg-2: #b9c1ca; --d-muted: #8d97a2; --d-accent: #479ef5; --d-accent-fg: #06121f;
    --d-ok: #5cc45c; --d-ok-bg: #11301a; --d-info: #6aaef5; --d-info-bg: #102538; --d-warn: #fab219; --d-warn-fill: #fab219; --d-warn-bg: #3a2a07;
    --d-crit: #f07a7a; --d-crit-fill: #d03b3b; --d-crit-bg: #3d1414; --d-neutral: #8d97a2; --d-neutral-bg: #2a3036;
    --d-gauge: #c3cad2; --d-track: #2c3238; --d-grid: #2a3036;
    --p0: #3987e5; --p1: #d95926; --p2: #199e70; --p3: #c98500; --p4: #d55181; --p5: #008300; --p6: #9085e9; --p7: #e66767;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .dsh-root, :root[data-theme="dark"] .dv-app {
  --d-bg: #111315; --d-card: #1c2024; --d-card-2: #22272c; --d-line: #2e353c; --d-line-2: #3d454e;
  --d-fg: #eceef0; --d-fg-2: #b9c1ca; --d-muted: #8d97a2; --d-accent: #479ef5; --d-accent-fg: #06121f;
  --d-ok: #5cc45c; --d-ok-bg: #11301a; --d-info: #6aaef5; --d-info-bg: #102538; --d-warn: #fab219; --d-warn-fill: #fab219; --d-warn-bg: #3a2a07;
  --d-crit: #f07a7a; --d-crit-fill: #d03b3b; --d-crit-bg: #3d1414; --d-neutral: #8d97a2; --d-neutral-bg: #2a3036;
  --d-gauge: #c3cad2; --d-track: #2c3238; --d-grid: #2a3036;
  --p0: #3987e5; --p1: #d95926; --p2: #199e70; --p3: #c98500; --p4: #d55181; --p5: #008300; --p6: #9085e9; --p7: #e66767;
  color-scheme: dark;
}
@media (prefers-contrast: more) { .dsh-root, .dv-app { --d-line: #8a939c; --d-muted: #4f5965; --d-fg-2: #2f363d; } }

/* ------------------------------------------------------------------ grid */
.dsh-root { font-family: var(--d-font); color: var(--d-fg); position: relative; container-type: inline-size; }
.dsh-grid { display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); grid-auto-rows: var(--row, 64px); gap: var(--gap, 12px); grid-auto-flow: row; position: relative; }
.dsh-w { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 10px; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.dsh-w.dsh-bare { background: none; border-color: transparent; }
.dsh-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; min-height: 26px; flex: none; }
.dsh-ttl { font-size: 13px; font-weight: 600; color: var(--d-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.dsh-hx { flex: none; display: flex; gap: 6px; align-items: center; }
.dsh-b { flex: 1; min-height: 0; padding: 4px 12px 10px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.dsh-q { font-size: 12px; color: var(--d-muted); min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-mono { font-family: var(--d-mono); font-size: 13px; }
.dsh-num { font-variant-numeric: tabular-nums; }

/* alarm level: amber (HI/LO) or red (HIHI/LOLO) edge + badge with ▲/▼ and text */
.dsh-lv { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.dsh-lv.warn { background: var(--d-warn-bg); color: var(--d-warn); box-shadow: inset 0 0 0 1px var(--d-warn-fill); }
.dsh-lv.crit { background: var(--d-crit-fill); color: #fff; }
.dsh-w[data-lv="warn"] { border-color: var(--d-warn-fill); box-shadow: inset 4px 0 0 var(--d-warn-fill); }
.dsh-w[data-lv="crit"] { border-color: var(--d-crit-fill); box-shadow: inset 4px 0 0 var(--d-crit-fill); }

/* value */
.dsh-vb { container-type: size; padding-top: 0; }
.dsh-big { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: clamp(16px, min(58cqh, calc(170cqw / var(--len, 4))), 64px); line-height: 1.05; font-weight: 600; white-space: nowrap; overflow: hidden; }
.dsh-big .dsh-num { overflow: hidden; text-overflow: ellipsis; }
.dsh-unit { font-size: .45em; font-weight: 500; color: var(--d-fg-2); }
.dsh-bad .dsh-big, .dsh-bad .dsh-gnum, .dsh-bad .dsh-spv { color: var(--d-muted); }
.dsh-w[data-lv="crit"] .dsh-big .dsh-num { color: var(--d-crit); } .dsh-w[data-lv="warn"] .dsh-big .dsh-num { color: var(--d-warn); }

/* gauge */
.dsh-gb { padding: 0 8px 6px; align-items: center; }
.dsh-gb svg { width: 100%; flex: 1; min-height: 0; }
.dsh-gtrack { fill: none; stroke: var(--d-track); stroke-width: 16; }
.dsh-gval { fill: none; stroke: var(--d-gauge); stroke-width: 16; }
.dsh-w[data-lv="warn"] .dsh-gval { stroke: var(--d-warn-fill); } .dsh-w[data-lv="crit"] .dsh-gval { stroke: var(--d-crit-fill); }
.dsh-gband { fill: none; stroke-width: 5; } .dsh-gband.warn { stroke: var(--d-warn-fill); } .dsh-gband.crit { stroke: var(--d-crit-fill); }
.dsh-gnum { font: 600 30px var(--d-font); fill: var(--d-fg); font-variant-numeric: tabular-nums; } .dsh-bad .dsh-gnum { fill: var(--d-muted); }
.dsh-gunit { font: 500 13px var(--d-font); fill: var(--d-fg-2); } .dsh-gmm { font: 11px var(--d-font); fill: var(--d-muted); }
.dsh-gb .dsh-q { text-align: center; }

/* bar / level */
.dsh-bb { display: grid; gap: 6px; padding-top: 2px; }
.dsh-bb.ver { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; }
.dsh-bb.ver .dsh-bval { grid-column: 1 / -1; } .dsh-bb.ver .dsh-btrack { width: 100%; max-width: 72px; justify-self: center; }
.dsh-bb.hor { grid-template-rows: auto 1fr auto; } .dsh-bb.hor .dsh-bscale { flex-direction: row-reverse; }
.dsh-bval { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .dsh-bval .dsh-unit { font-size: 13px; }
.dsh-btrack { position: relative; background: var(--d-track); border-radius: 6px; overflow: hidden; min-height: 14px; }
.dsh-bfill { position: absolute; left: 0; bottom: 0; right: 0; background: var(--d-gauge); transition: height .2s, width .2s; }
.dsh-bb.hor .dsh-bfill { top: 0; right: auto; }
.dsh-w[data-lv="warn"] .dsh-bfill { background: var(--d-warn-fill); } .dsh-w[data-lv="crit"] .dsh-bfill { background: var(--d-crit-fill); }
.dsh-bmark { position: absolute; left: 0; right: 0; height: 2px; background: var(--d-warn-fill); } .dsh-bb.hor .dsh-bmark { top: 0; bottom: 0; width: 2px; height: auto; }
.dsh-bscale { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--d-muted); }
@media (prefers-reduced-motion: reduce) { .dsh-bfill { transition: none; } }

/* lamp */
.dsh-lb { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 12px; }
.dsh-lamp { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 3px solid var(--d-neutral); background: transparent; }
.dsh-lamp.on { border-color: transparent; } .dsh-lamp.bad { border-style: dashed; border-color: var(--d-muted); }
.dsh-lamp.on.c-ok { background: var(--d-ok); } .dsh-lamp.on.c-info { background: var(--d-info); } .dsh-lamp.on.c-warn { background: var(--d-warn-fill); } .dsh-lamp.on.c-alarm { background: var(--d-crit-fill); } .dsh-lamp.on.c-neutral { background: var(--d-neutral); }
.dsh-lamp.off.c-ok { border-color: var(--d-ok); } .dsh-lamp.off.c-alarm { border-color: var(--d-crit-fill); } .dsh-lamp.off.c-warn { border-color: var(--d-warn-fill); } .dsh-lamp.off.c-info { border-color: var(--d-info); }
.dsh-lb { container-type: inline-size; }
@container (max-width: 150px) { .dsh-lb { gap: 8px; padding: 6px 8px; } .dsh-lamp { width: 18px; height: 18px; border-width: 2px; } .dsh-ls { font-size: 14px; } .dsh-ll { font-size: 12px; } }
.dsh-lt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dsh-ll { font-size: 13px; font-weight: 600; color: var(--d-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-ls { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* state pill */
.dsh-sb { align-items: flex-start; gap: 4px; container-type: size; }
@container (max-height: 52px) { .dsh-sb .dsh-pill { font-size: 14px; padding: 3px 10px; } .dsh-sb .dsh-q { display: none; } }
.dsh-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 6px 14px; border-radius: 8px; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--d-neutral-bg); color: var(--d-fg); }
.dsh-pill.sm { padding: 1px 8px; font-size: 11.5px; border-radius: 10px; }
.dsh-pill.c-ok { background: var(--d-ok-bg); color: var(--d-ok); box-shadow: inset 0 0 0 1px var(--d-ok); } .dsh-pill.c-info { background: var(--d-info-bg); color: var(--d-info); box-shadow: inset 0 0 0 1px var(--d-info); }
.dsh-pill.c-warn { background: var(--d-warn-bg); color: var(--d-warn); box-shadow: inset 0 0 0 1px var(--d-warn-fill); } .dsh-pill.c-alarm { background: var(--d-crit-fill); color: #fff; }
.dsh-pill.c-neutral { background: var(--d-neutral-bg); color: var(--d-fg-2); } .dsh-pill.bad { color: var(--d-muted); border: 1px dashed var(--d-line-2); background: none; }

/* trend */
.dsh-tb { padding: 2px 8px 0 4px; }
.dsh-tsvg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.dsh-tgrid { stroke: var(--d-grid); stroke-width: 1; } .dsh-tax { font: 11px var(--d-font); fill: var(--d-muted); }
.dsh-tline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dsh-tcross { stroke: var(--d-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.dsh-leg { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 2px 12px 8px; font-size: 12px; color: var(--d-fg-2); flex: none; }
.dsh-legi { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .dsh-legn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.dsh-legi b, .dsh-tread b { color: var(--d-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.dsh-leg i, .dsh-tread i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
.dsh-tread { position: absolute; top: 4px; z-index: 2; background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 6px; padding: 6px 8px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.12); pointer-events: none; min-width: 140px; }
.dsh-tread[hidden] { display: none; }
.dsh-tread span { display: flex; align-items: center; gap: 6px; }
.p0 { stroke: var(--p0); } .p1 { stroke: var(--p1); } .p2 { stroke: var(--p2); } .p3 { stroke: var(--p3); } .p4 { stroke: var(--p4); } .p5 { stroke: var(--p5); } .p6 { stroke: var(--p6); } .p7 { stroke: var(--p7); }
i.p0 { background: var(--p0); } i.p1 { background: var(--p1); } i.p2 { background: var(--p2); } i.p3 { background: var(--p3); } i.p4 { background: var(--p4); } i.p5 { background: var(--p5); } i.p6 { background: var(--p6); } i.p7 { background: var(--p7); }

/* table */
.dsh-tab { justify-content: flex-start; overflow: auto; padding: 4px 4px 6px; container-type: inline-size; }
.dsh-tab table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dsh-tab th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--d-muted); padding: 4px 8px; border-bottom: 1px solid var(--d-line); position: sticky; top: 0; background: var(--d-card); }
.dsh-tab td { padding: 6px 8px; border-bottom: 1px solid var(--d-grid); white-space: nowrap; } .dsh-tab tr:last-child td { border-bottom: 0; }
.dsh-tab .n { text-align: right; font-variant-numeric: tabular-nums; } .dsh-tab td small { color: var(--d-muted); }
.dsh-tn { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.dsh-tab .c-q.bad { color: var(--d-crit); font-weight: 600; } .dsh-tab .c-t { color: var(--d-muted); font-variant-numeric: tabular-nums; }
.dsh-tab tr[data-lv="warn"] td:first-child { box-shadow: inset 3px 0 0 var(--d-warn-fill); } .dsh-tab tr[data-lv="crit"] td:first-child { box-shadow: inset 3px 0 0 var(--d-crit-fill); }
@container (max-width: 360px) { .dsh-tab .c-t { display: none; } }
@container (max-width: 260px) { .dsh-tab .c-q { display: none; } }

/* alarms */
.dsh-al { justify-content: flex-start; overflow: auto; padding: 4px 8px 8px; }
.dsh-al ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dsh-al li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--d-card-2); border-left: 4px solid var(--d-warn-fill); }
.dsh-al li.crit { border-left-color: var(--d-crit-fill); } .dsh-al li.none { border-left: 0; background: none; color: var(--d-muted); padding-left: 4px; }
.dsh-ash { font-size: 14px; color: var(--d-warn-fill); flex: none; width: 16px; text-align: center; } .dsh-al li.crit .dsh-ash { color: var(--d-crit-fill); } .dsh-ash.ok { color: var(--d-ok); }
.dsh-am { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12.5px; color: var(--d-fg-2); } .dsh-am b { color: var(--d-fg); font-size: 13px; }
.dsh-am span, .dsh-am b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-at { font-size: 12px; color: var(--d-fg-2); text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; flex: none; } .dsh-at small { color: var(--d-muted); }

/* controls */
.dsh-btn { font: 600 14px var(--d-font); min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--d-line-2); background: var(--d-card); color: var(--d-fg); cursor: pointer; touch-action: manipulation; }
.dsh-btn:hover:not(:disabled) { filter: brightness(.97); } .dsh-btn:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.dsh-btn.primary { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-accent-fg); }
.dsh-btn.danger { background: var(--d-crit-fill); border-color: var(--d-crit-fill); color: #fff; }
.dsh-btn:disabled { opacity: .45; cursor: not-allowed; } .dsh-btn.sq { padding: 0; width: 44px; font-size: 20px; }
.dsh-btnb { padding: 8px; gap: 2px; } .dsh-btn.big { width: 100%; height: 100%; font-size: 16px; }
.dsh-role { font-size: 11.5px; color: var(--d-muted); text-align: center; } .dsh-role:empty { display: none; }
.dsh-spb { gap: 6px; justify-content: flex-start; padding-top: 2px; }
.dsh-spv { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .dsh-spv .dsh-unit { font-size: 13px; }
.dsh-spf { display: flex; gap: 6px; min-width: 0; }
.dsh-in { flex: 1; min-width: 50px; height: 44px; border: 1px solid var(--d-line-2); border-radius: 8px; background: var(--d-card-2); color: var(--d-fg); font: 600 16px var(--d-font); padding: 0 10px; text-align: right; font-variant-numeric: tabular-nums; }
.dsh-in:focus { outline: 2px solid var(--d-accent); outline-offset: -1px; } .dsh-in.err { border-color: var(--d-crit-fill); box-shadow: inset 0 0 0 1px var(--d-crit-fill); }
.dsh-rng { font-size: 11.5px; color: var(--d-muted); }
.dsh-jb { gap: 6px; justify-content: flex-start; padding-top: 2px; }
.dsh-jn { font-family: var(--d-mono); font-size: 13px; color: var(--d-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsh-jc { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--d-muted); } .dsh-jc b { font-size: 20px; color: var(--d-fg); font-variant-numeric: tabular-nums; }
.dsh-jb .dsh-btn { align-self: flex-start; min-height: 40px; }
.dsh-flash { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; z-index: 3; }
.dsh-flash.on { opacity: 1; transform: none; } .dsh-flash.ok { background: var(--d-ok-bg); color: var(--d-ok); } .dsh-flash.err { background: var(--d-crit-bg); color: var(--d-crit); }

/* layout widgets */
.dsh-lbl { padding: 0 2px; display: flex; align-items: center; height: 100%; min-width: 0; }
.dsh-lbl.s-h1 { font-size: 26px; font-weight: 700; } .dsh-lbl.s-h2 { font-size: 18px; font-weight: 600; color: var(--d-fg-2); border-bottom: 1px solid var(--d-line); }
.dsh-lbl.s-body { font-size: 14px; color: var(--d-fg-2); } .dsh-lbl.s-small { font-size: 12px; color: var(--d-muted); }
.dsh-root[data-size="phone"] .dsh-lbl.s-h1 { font-size: 19px; line-height: 1.2; } .dsh-root[data-size="phone"] .dsh-lbl.s-h2 { font-size: 16px; }
.dsh-lbl.a-center { justify-content: center; text-align: center; } .dsh-lbl.a-right { justify-content: flex-end; text-align: right; }
.dsh-imb { padding: 6px; align-items: center; } .dsh-imb img { width: 100%; height: 100%; min-height: 0; } .dsh-imb img.fit-contain { object-fit: contain; } .dsh-imb img.fit-cover { object-fit: cover; border-radius: 6px; }
.dsh-lnk { all: unset; box-sizing: border-box; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; font: 600 15px var(--d-font); color: var(--d-accent); cursor: pointer; width: 100%; height: 100%; min-height: 44px; }
.dsh-lnk:focus-visible { outline: 2px solid var(--d-accent); outline-offset: -3px; border-radius: 10px; }

/* confirm dialog */
.dsh-dlg { position: fixed; inset: 0; background: rgba(0,0,0,.36); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.dsh-dlg-b { background: var(--d-card); color: var(--d-fg); border-radius: 12px; padding: 20px; width: min(380px, 100%); box-shadow: 0 16px 40px rgba(0,0,0,.3); font-family: var(--d-font); }
.dsh-dlg-b h3 { margin: 0 0 8px; font-size: 17px; } .dsh-dlg-t p { margin: 6px 0; } .dsh-chg { font-size: 22px; font-variant-numeric: tabular-nums; } .dsh-chg span { color: var(--d-muted); }
.dsh-dlg-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ------------------------------------------------------------------ charts (dash-charts.js) */
.dsh-cb { padding: 2px 8px 4px 4px; }
.dsh-csvg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; overflow: visible; }
.f0 { fill: var(--p0); } .f1 { fill: var(--p1); } .f2 { fill: var(--p2); } .f3 { fill: var(--p3); } .f4 { fill: var(--p4); } .f5 { fill: var(--p5); } .f6 { fill: var(--p6); } .f7 { fill: var(--p7); }
.dsh-fbar { fill: var(--d-gauge); } .dsh-fwarn { fill: var(--d-warn-fill); } .dsh-fcrit { fill: var(--d-crit-fill); } .dsh-fbad { fill: none; stroke: var(--d-line-2); stroke-dasharray: 3 3; }
.dsh-cval { font: 600 12px var(--d-font); fill: var(--d-fg); font-variant-numeric: tabular-nums; }
.dsh-cref { stroke: var(--d-fg-2); stroke-width: 1.5; stroke-dasharray: 6 4; }
.dsh-pieb { padding: 4px 10px 8px; container-type: size; display: block; }
.dsh-pin { display: flex; flex-direction: row; align-items: center; gap: 10px; height: 100%; min-height: 0; }
.dsh-pwrap { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.dsh-psvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dsh-pleg { flex-direction: column; flex-wrap: nowrap; padding: 0; gap: 4px; min-width: 0; flex: 0 1 auto; max-width: 52%; }
@container (max-width: 300px) { .dsh-pin { flex-direction: column; align-items: stretch; } .dsh-pwrap { width: 100%; flex: 1 1 0; min-height: 60px; } .dsh-pleg { flex-direction: row; flex-wrap: wrap; max-width: none; } }
.dsh-slice { stroke: var(--d-card); stroke-width: 1.5; }
.dsh-pnum { font: 600 26px var(--d-font); fill: var(--d-fg); font-variant-numeric: tabular-nums; }
.dsh-rgrid { fill: none; stroke: var(--d-grid); } .dsh-rval { fill: color-mix(in srgb, var(--p0) 22%, transparent); stroke: var(--p0); stroke-width: 2; stroke-linejoin: round; }
.dsh-rref { fill: none; stroke: var(--d-fg-2); stroke-width: 1.5; stroke-dasharray: 5 4; } .dsh-rdot { fill: var(--p0); } .dsh-cvt { font-weight: 600; fill: var(--d-fg); }
.dsh-hnone { fill: var(--d-card-2); } .dsh-hsel { fill: none; stroke: var(--d-fg); stroke-width: 2; }
.dsh-sdot { stroke: var(--d-card); stroke-width: .8; } .dsh-sdot.last { stroke: var(--d-fg); stroke-width: 1.5; }
.dsh-bub { fill-opacity: .55; stroke-width: 1.5; } .dsh-bub.f0 { stroke: var(--p0); } .dsh-bub.f1 { stroke: var(--p1); } .dsh-bub.f2 { stroke: var(--p2); } .dsh-bub.f3 { stroke: var(--p3); } .dsh-bub.f4 { stroke: var(--p4); } .dsh-bub.f5 { stroke: var(--p5); } .dsh-bub.f6 { stroke: var(--p6); } .dsh-bub.f7 { stroke: var(--p7); }
.dsh-bubt { font: 600 11px var(--d-font); fill: var(--d-fg); pointer-events: none; }
.dsh-seg.c-ok { fill: var(--d-ok); } .dsh-seg.c-info { fill: var(--d-info); } .dsh-seg.c-warn { fill: var(--d-warn-fill); } .dsh-seg.c-alarm { fill: var(--d-crit-fill); } .dsh-seg.c-neutral { fill: var(--d-neutral); opacity: .55; }
.dsh-sw { width: 12px !important; height: 10px !important; border-radius: 2px; } .dsh-sw.c-ok { background: var(--d-ok); } .dsh-sw.c-info { background: var(--d-info); } .dsh-sw.c-warn { background: var(--d-warn-fill); } .dsh-sw.c-alarm { background: var(--d-crit-fill); } .dsh-sw.c-neutral { background: var(--d-neutral); opacity: .55; }
/* SPC and histogram */
.dsh-ucl { stroke: var(--d-crit-fill); stroke-width: 1.2; stroke-dasharray: 6 4; } .dsh-cl { stroke: var(--d-fg-2); stroke-width: 1.2; } .dsh-spec { stroke: var(--d-warn-fill); stroke-width: 1.5; }
.dsh-spct { font-weight: 600; } .dsh-spcline { fill: none; stroke: var(--d-gauge); stroke-width: 1.6; stroke-linejoin: round; }
.dsh-spcdot { fill: var(--d-gauge); } .dsh-spcbad { fill: var(--d-crit-fill); stroke: var(--d-card); stroke-width: 1; } .dsh-spcann { font: 700 10px var(--d-font); fill: var(--d-crit); }
.dsh-spcl { padding-top: 0; font-variant-numeric: tabular-nums; } .dsh-spcr { color: var(--d-crit); font-weight: 600; }
.dsh-ncurve { fill: none; stroke: var(--p0); stroke-width: 2; } .dsh-specv { stroke: var(--d-warn-fill); stroke-width: 2; } .dsh-clv { stroke: var(--d-ok); stroke-width: 1.5; stroke-dasharray: 4 3; } .dsh-meanv { stroke: var(--d-fg-2); stroke-width: 1.2; stroke-dasharray: 2 3; }

/* ------------------------------------------------------------------ inputs (dash-inputs.js) */
.dsh-inb { gap: 6px; justify-content: center; padding-top: 2px; }
.dsh-h .dsh-role { font-size: 11px; }
.dsh-sel { height: 44px; border-radius: 8px; border: 1px solid var(--d-line-2); background: var(--d-card-2); color: var(--d-fg); font: 600 16px var(--d-font); padding: 0 10px; width: 100%; min-width: 0; }
.dsh-sel:focus-visible, .dsh-lst:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 1px; }
.dsh-inb.k-list { justify-content: flex-start; }
.dsh-lst { overflow: auto; border: 1px solid var(--d-line); border-radius: 8px; flex: 1; min-height: 0; }
.dsh-lst [role=option] { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--d-grid); cursor: pointer; font-size: 15px; }
.dsh-lst [role=option][aria-selected=true] { background: var(--d-info-bg); color: var(--d-info); font-weight: 700; box-shadow: inset 4px 0 0 var(--d-info); }
.dsh-lst[aria-disabled=true] { opacity: .5; pointer-events: none; }
.dsh-rad { display: flex; gap: 6px; flex-wrap: wrap; } .dsh-rad.col { flex-direction: column; }
.dsh-rad label { flex: 1 1 0; min-width: 64px; position: relative; }
.dsh-rad input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dsh-rad span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--d-line-2); background: var(--d-card); font: 600 14px var(--d-font); text-align: center; }
.dsh-rad input:checked + span { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-accent-fg); }
.dsh-rad input:focus-visible + span { outline: 2px solid var(--d-accent); outline-offset: 2px; } .dsh-rad input:disabled + span { opacity: .45; }
.dsh-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.dsh-chk input { width: 24px; height: 24px; accent-color: var(--d-accent); flex: none; }
.dsh-tgl { all: unset; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font: 700 15px var(--d-font); color: var(--d-fg-2); }
.dsh-tgl i { width: 52px; height: 30px; border-radius: 15px; background: var(--d-track); position: relative; flex: none; transition: background .15s; box-shadow: inset 0 0 0 1px var(--d-line-2); }
.dsh-tgl i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.dsh-tgl[aria-checked=true] i { background: var(--d-accent); } .dsh-tgl[aria-checked=true] i::after { left: 25px; } .dsh-tgl[aria-checked=true] { color: var(--d-fg); }
.dsh-tgl:focus-visible i { outline: 2px solid var(--d-accent); outline-offset: 2px; } .dsh-tgl:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .dsh-tgl i, .dsh-tgl i::after { transition: none; } }
.dsh-sldv, .dsh-entv { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dsh-sldv .dsh-unit, .dsh-entv .dsh-unit { font-size: 13px; }
.dsh-sld { width: 100%; height: 44px; margin: 0; accent-color: var(--d-accent); }
.dsh-sldm { display: flex; justify-content: space-between; font-size: 11px; color: var(--d-muted); }
.dsh-in.txt { text-align: left; }
.dsh-in[type=date], .dsh-in[type=time], .dsh-in[type=datetime-local] { text-align: left; font-size: 15px; }
.dsh-bcv { display: flex; flex-direction: column; min-width: 0; } .dsh-bcv small { font-size: 11px; color: var(--d-muted); } .dsh-bcv .dsh-mono { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 19px; }
.dsh-bcb { display: flex; gap: 6px; } .dsh-bcb .primary { flex: 1; }
.dsh-scan { position: fixed; inset: 0; z-index: 1100; background: #000; display: flex; flex-direction: column; color: #fff; font-family: var(--d-font); }
.dsh-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsh-scan-f { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.dsh-scan-f i { width: min(70vw, 70vh, 420px); height: min(70vw, 70vh, 420px); border: 3px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); transition: border-color .1s; }
.dsh-scan.hit .dsh-scan-f i { border-color: #5cc45c; }
.dsh-scan-t { position: absolute; left: 0; right: 0; top: calc(16px + env(safe-area-inset-top)); text-align: center; display: flex; flex-direction: column; gap: 4px; font-weight: 600; text-shadow: 0 1px 3px #000; padding: 0 16px; }
.dsh-scan-t small { font-weight: 400; opacity: .8; word-break: break-all; }
.dsh-scan-b { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 12px; }

/* ------------------------------------------------------------------ SQL widgets (dash-data.js) */
.dsh-ib { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--d-fg-2); font: 18px var(--d-font); cursor: pointer; display: inline-grid; place-items: center; }
.dsh-ib:hover:not(:disabled) { background: var(--d-card-2); } .dsh-ib:disabled { opacity: .35; cursor: default; } .dsh-ib:focus-visible { outline: 2px solid var(--d-accent); }
@media (pointer: coarse) { .dsh-ib { width: 44px; height: 44px; } }
.dsh-sqlb { padding-bottom: 0; } .dsh-sqlst { font-size: 11.5px; color: var(--d-muted); }
.dsh-sqlb th button { all: unset; cursor: pointer; display: block; width: 100%; min-height: 28px; } .dsh-sqlb th button:focus-visible { outline: 2px solid var(--d-accent); }
.dsh-sqlb tbody tr[tabindex="0"] { cursor: pointer; } .dsh-sqlb tbody tr[tabindex="0"]:hover td { background: var(--d-card-2); }
.dsh-sqlb tbody tr.sel td { background: var(--d-info-bg); } .dsh-sqlb tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--d-info); }
.dsh-sqlb tbody tr:focus-visible { outline: 2px solid var(--d-accent); outline-offset: -2px; }
.dsh-sqlmsg { padding: 8px; white-space: normal; }
.dsh-sqlpg { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 8px 4px; font-size: 12px; color: var(--d-muted); flex: none; }

/* ------------------------------------------------------------------ composition: sub-displays, navigation, layers */
.dsh-subb { padding: 4px; }
.dsh-subg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(var(--srows, 4), minmax(0, 1fr)); gap: 6px; flex: 1; min-height: 0; }
.dsh-subg > .dsh-w { border-radius: 8px; }
.dsh-w.dsh-noframe { background: none; border-color: transparent; } .dsh-w.dsh-noframe > .dsh-subb { padding: 0; }
.dsh-w.dsh-click { cursor: pointer; } .dsh-w.dsh-click:hover { border-color: var(--d-accent); }
.dsh-root[data-size="phone"] .dsh-subg { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(52px, auto); }
.dsh-root[data-size="phone"] .dsh-subg > .dsh-w { grid-column: span 2 !important; grid-row: auto !important; min-height: 64px; }
.dsh-nav { display: flex; gap: 6px; align-items: stretch; height: 100%; overflow-x: auto; scrollbar-width: thin; }
.dsh-nav button { font: 600 14px var(--d-font); min-height: 44px; padding: 0 16px; border: 1px solid var(--d-line-2); background: var(--d-card); color: var(--d-fg); border-radius: 8px; cursor: pointer; white-space: nowrap; flex: none; }
.dsh-nav.s-tabs { gap: 0; border-bottom: 1px solid var(--d-line); align-items: flex-end; }
.dsh-nav.s-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--d-fg-2); }
.dsh-nav.s-tabs button.on { border-bottom-color: var(--d-accent); color: var(--d-accent); }
.dsh-nav.s-buttons button.on, .dsh-nav.s-tree button.on { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-accent-fg); }
.dsh-nav button:focus-visible { outline: 2px solid var(--d-accent); outline-offset: -2px; }
.dsh-layers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.dsh-layers[hidden] { display: none; }
.dsh-lyt { font-size: 12px; color: var(--d-muted); font-weight: 600; margin-right: 2px; }
.dsh-chip { font: 600 13px var(--d-font); min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--d-line-2); background: var(--d-card); color: var(--d-fg-2); cursor: pointer; }
.dsh-chip[aria-pressed="true"] { background: var(--d-info-bg); border-color: var(--d-info); color: var(--d-info); }
.dsh-chip[aria-pressed="true"]::before { content: "✓ "; }
@media (pointer: coarse) { .dsh-chip { min-height: 44px; } }
.dsh-w.dsh-layer-off { opacity: .35; }

/* inert controls while designing */
.dsh-edit .dsh-w * { pointer-events: none; }
.dsh-comm .dsh-w { opacity: .55; }

/* ------------------------------------------------------------------ viewer (/dash/) */
html, body.dv { margin: 0; height: 100%; }
body.dv { background: #eceef1; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) body.dv { background: #111315; } }
:root[data-theme="dark"] body.dv { background: #111315; }
.dv-app { min-height: 100dvh; background: var(--d-bg); color: var(--d-fg); font-family: var(--d-font); font-size: 14px; display: flex; flex-direction: column; -webkit-text-size-adjust: 100%; }
.dv-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 6px calc(12px + env(safe-area-inset-left)); background: var(--d-card); border-bottom: 1px solid var(--d-line); min-height: 52px; box-sizing: border-box; }
.dv-logo { width: 30px; height: 30px; border-radius: 7px; background: #0f6cbd; color: #fff; font: 700 11px var(--d-font); display: grid; place-items: center; flex: none; text-decoration: none; }
.dv-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.dv-title small { display: block; font-size: 11.5px; font-weight: 400; color: var(--d-muted); }
.dv-st { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12px; font-weight: 600; background: var(--d-card-2); color: var(--d-fg-2); white-space: nowrap; flex: none; }
.dv-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--d-muted); } .dv-st.live i { background: var(--d-ok); } .dv-st.poll i { background: var(--d-info); } .dv-st.down i { background: var(--d-crit-fill); } .dv-st.sim i { background: var(--d-warn-fill); }
.dv-ib { width: 44px; height: 44px; border: 0; background: none; color: var(--d-fg-2); border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; font: 18px var(--d-font); }
.dv-ib:hover { background: var(--d-card-2); } .dv-ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dv-menu { position: absolute; right: 8px; top: 52px; background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); min-width: 240px; padding: 6px; z-index: 30; }
.dv-menu button, .dv-menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--d-fg); font: 14px var(--d-font); text-align: left; border-radius: 6px; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.dv-menu button:hover, .dv-menu a:hover { background: var(--d-card-2); } .dv-menu .on { font-weight: 700; color: var(--d-accent); } .dv-menu hr { border: 0; border-top: 1px solid var(--d-line); margin: 4px 0; }
.dv-menu .who { color: var(--d-muted); font-size: 12px; padding: 6px 12px; }
.dv-main { flex: 1; padding: 12px calc(12px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); max-width: 1680px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.dv-banner { margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; background: var(--d-warn-bg); color: var(--d-warn); font-weight: 600; display: flex; gap: 8px; align-items: center; box-shadow: inset 0 0 0 1px var(--d-warn-fill); }
.dv-banner[hidden] { display: none; }
.dv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dv-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 10px; background: var(--d-card); border: 1px solid var(--d-line); color: var(--d-fg); text-decoration: none; min-height: 44px; }
.dv-card:hover { border-color: var(--d-accent); } .dv-card b { font-size: 16px; } .dv-card span { color: var(--d-muted); font-size: 13px; }
.dv-h2 { font-size: 20px; margin: 4px 0 12px; font-weight: 600; }
.dv-login { max-width: 360px; margin: 10vh auto 0; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; padding: 24px; }
.dv-login h2 { margin: 0 0 4px; font-size: 20px; } .dv-login p { color: var(--d-muted); margin: 0 0 16px; }
.dv-login label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: var(--d-fg-2); }
.dv-login input { width: 100%; box-sizing: border-box; height: 44px; border-radius: 8px; border: 1px solid var(--d-line-2); background: var(--d-card-2); color: var(--d-fg); font: 16px var(--d-font); padding: 0 12px; }
.dv-login .dsh-btn { width: 100%; margin-top: 18px; } .dv-err { color: var(--d-crit); font-weight: 600; margin-top: 10px; min-height: 18px; }
.dv-empty { text-align: center; color: var(--d-muted); padding: 60px 16px; }
.dv-kiosk .dv-top { display: none; } .dv-kdot { position: fixed; right: 10px; bottom: 10px; z-index: 20; }

/* ------------------------------------------------------------------ designer (Studio) */
.dd { display: flex; flex: 1; min-height: 0; }
.dd-pal { width: 188px; flex: none; border-right: 1px solid var(--stroke); overflow: auto; background: var(--surface); padding: 6px 0 16px; }
.dd-pal h5 { margin: 10px 12px 4px; font-size: 11px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }
.dd-pi { display: flex; align-items: center; gap: 8px; margin: 1px 6px; padding: 6px 8px; border-radius: 4px; cursor: grab; font-size: 12.5px; user-select: none; }
.dd-pi:hover { background: var(--surface-3); } .dd-pi .i { width: 16px; height: 16px; color: var(--brand); flex: none; }
.dd-pi small { display: block; color: var(--fg-3); font-size: 11px; line-height: 1.25; }
.dd-stagewrap { flex: 1; min-width: 0; overflow: auto; background: var(--canvas); position: relative; }
.dd-stage { padding: 16px; min-width: 860px; box-sizing: border-box; }
.dd-stage.tablet, .dd-stage.phone { min-width: 0; display: flex; justify-content: center; }
.dd-frame { background: #eceef1; border-radius: 10px; padding: 12px; position: relative; }
:root[data-theme="dark"] .dd-frame { background: #111315; }
.dd-stage.desktop .dd-frame { min-height: calc(100% - 8px); }
.dd-stage.tablet .dd-frame { width: 820px; border: 10px solid #2b2f33; border-radius: 26px; }
.dd-stage.phone .dd-frame { width: 390px; border: 10px solid #2b2f33; border-radius: 34px; padding-top: 22px; }
.dd-cells { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); grid-auto-rows: var(--row); gap: var(--gap); pointer-events: none; z-index: 0; }
.dd-cells i { border-radius: 6px; background: color-mix(in srgb, var(--brand) 5%, transparent); outline: 1px dashed color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: -1px; }
.dd-frame .dsh-grid > .dsh-w { z-index: 1; }
.dsh-edit .dsh-w { cursor: move; }
.dsh-edit .dsh-w.dd-sel { outline: 2px solid var(--brand); outline-offset: 1px; z-index: 3; }
.dsh-edit .dsh-w.dd-iss::after { content: "!"; position: absolute; top: 4px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font: 700 11px/16px var(--font); text-align: center; }
.dsh-edit .dsh-w.dsh-bare { outline: 1px dashed var(--stroke-2); }
.dd-rz { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; pointer-events: auto !important; z-index: 4; background: linear-gradient(135deg, transparent 50%, var(--brand) 50%); border-bottom-right-radius: 9px; }
.dd-ghost { background: color-mix(in srgb, var(--brand) 18%, transparent); border: 2px dashed var(--brand); border-radius: 10px; z-index: 5; pointer-events: none; }
.dd-drag { opacity: .85; box-shadow: var(--shadow-16); }
.dd-hint { font-size: 12px; color: var(--fg-3); padding: 0 16px 10px; max-width: 980px; }
.dd-empty { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); color: var(--fg-3); text-align: center; pointer-events: none; z-index: 2; font-size: 13px; }
.dd-ac { position: fixed; z-index: 2000; background: var(--surface); border: 1px solid var(--stroke-2); border-radius: 6px; box-shadow: var(--shadow-16); max-height: 260px; overflow: auto; min-width: 260px; font-size: 12.5px; }
.dd-ac div { padding: 5px 10px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; } .dd-ac div.on, .dd-ac div:hover { background: var(--brand-bg); }
.dd-ac b { font-family: var(--mono); font-weight: 500; } .dd-ac small { color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-list { display: flex; flex-direction: column; gap: 4px; } .dd-li { display: flex; gap: 4px; align-items: center; } .dd-li .pp-in { flex: 1; min-width: 0; }
.dd-li .x { border: 0; background: none; cursor: pointer; color: var(--fg-3); width: 22px; height: 22px; border-radius: 4px; flex: none; } .dd-li .x:hover { background: var(--surface-3); color: var(--err); }
.dd-st3 { display: grid; grid-template-columns: 52px 1fr 76px 22px; gap: 4px; align-items: center; }
.dd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dd-mini { height: 120px; border-radius: 6px; background: var(--canvas); margin: 10px 0 8px; position: relative; overflow: hidden; border: 1px solid var(--stroke); }
.dd-mini i { position: absolute; background: var(--surface); border: 1px solid var(--stroke-2); border-radius: 3px; }
.dsh-svgi { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
/* designer: lists of small objects (choices, axes, parameters, columns, layers …) */
.dd-olr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; padding: 6px 26px 6px 6px; border: 1px solid var(--stroke); border-radius: 6px; background: var(--surface-2, transparent); }
.dd-olf { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 11px; color: var(--fg-3); }
.dd-olf .pp-in { min-width: 0; width: 100%; box-sizing: border-box; }
.dd-olf input[type=checkbox] { align-self: flex-start; margin: 4px 0; }
.dd-olr > .x { position: absolute; top: 4px; right: 2px; border: 0; background: none; cursor: pointer; color: var(--fg-3); width: 22px; height: 22px; border-radius: 4px; }
.dd-olr > .x:hover { background: var(--surface-3); color: var(--err); }
.dd-kv { display: grid; grid-template-columns: minmax(40px, auto) 1fr; gap: 6px; align-items: center; }
