/* Generated from AI-Skill/ux/ux_common.py (v2026-12-05 21:28 · ux_common.py · modified 2026-12-05 21:28:30) — do not hand-edit. */
:root, .ux-app {
  --bg: #ffffff;
    --bg-sub: #f7f9fc;
    --bg-card: #ffffff;
    --line: #e2e6f0;
    --line-strong: #c8d0e0;
    --ink: #1a2233;
    --ink-2: #334155;
    --muted: #697489;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-mid: rgba(37, 99, 235, 0.24);
    --pink: var(--accent);
    --pink-soft: var(--accent-soft);
    --pink-mid: var(--accent-mid);
    --ok: #239168;
    --warn: #d97706;
    --amber: #c68023;
    --err: #c9564e;
    --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --tb-h: 28px;
    --tb-ctrl-h: 22px;
    --r-pill: 999px;
    --r-seg: 4px;
    --r-btn: 5px;
    --r-inp: 6px;
    --r-panel: 7px;
    --r-card: 8px;
    --r-dock: 9px;
    --r-modal: 10px;
}

.ux-app.shell {
    width: 100%;
    padding: 3px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
  }
/* Band 1: Unified Ultra-Slim Single-Row Porcelain Command Bar */
.ux-app .topbar {
    flex: 0 0 auto; height: var(--tb-h); display: flex; align-items: center; justify-content: space-between;
    background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-inp);
    padding: 0 6px; gap: 6px; flex-wrap: nowrap; position: relative; z-index: 42;
  }
.ux-app .top-l, .ux-app .top-c, .ux-app .top-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ux-app .top-l { flex: 0 1 auto; }
.ux-app .top-c { flex: 1 1 auto; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.ux-app .top-c::-webkit-scrollbar { display: none; }
.ux-app .top-r { flex: 0 0 auto; position: relative; }
.ux-app .tb-div { width: 1px; height: 15px; background: #e2e8f0; flex-shrink: 0; }
.ux-app .brand { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ux-app .brand h1 { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); }
.ux-app .brand-ver {
    font-family: var(--mono); font-size: 9.5px; font-weight: 600; line-height: 1;
    letter-spacing: 0.02em; color: var(--muted); white-space: nowrap;
    font-variant-numeric: tabular-nums; flex-shrink: 0;
  }
@media (max-width: 560px) {
  .ux-app .brand-ver { display: none; }
}
.ux-app .brand .sub { color: var(--muted); font-size: 9px; }
.ux-app .top-controls { display: flex; align-items: center; gap: 4px; font-size: 9.5px; }
.ux-app .live-dot {
    display: inline-block; width: 6.5px; height: 6.5px; border-radius: 50%; flex-shrink: 0;
    background: var(--ok); box-shadow: 0 0 5px rgba(35, 145, 104, 0.55);
    animation: pulse 2s infinite;
  }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.ux-app .tb-search {
    position: relative; display: inline-flex; align-items: center; height: var(--tb-ctrl-h);
    padding: 0 5px 0 7px; gap: 4px; border: 1px solid #dce3ee; border-radius: var(--r-btn);
    background: #f8fafc; flex-shrink: 0;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
  }
.ux-app .tb-search:focus-within { background: #ffffff; border-color: var(--pink); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10); }
.ux-app .tb-search svg { width: 11px; height: 11px; stroke: #94a3b8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ux-app .tb-pill {
    display: inline-flex; align-items: center; gap: 4px; height: var(--tb-ctrl-h); padding: 0 8px;
    border: 1px solid #dce3ee; border-radius: var(--r-btn); background: #f8fafc;
    font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--ink);
    white-space: nowrap; cursor: pointer; touch-action: manipulation;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
  }
.ux-app .tb-pill svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; pointer-events: none; }
.ux-app .tb-pill:hover { border-color: #cbd5e1; background: #f1f5f9; color: var(--ink); }
.ux-app .tb-pill:disabled { opacity: 0.42; cursor: default; pointer-events: none; }
.ux-app .tb-pill.active, .ux-app .tb-pill.open { border-color: #93c5fd; background: #eff6ff; color: var(--pink); }
.ux-app .tb-pill.primary { border-color: var(--pink); background: var(--pink); color: #ffffff; }
.ux-app .tb-pill.primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.ux-app .tb-pill.soft { border-color: #bfdbfe; background: #eff6ff; color: var(--pink); }
.ux-app .tb-pill.soft:hover { background: #dbeafe; }
.ux-app .tb-pill.warn { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.ux-app .tb-pill.warn:hover { background: #fef3c7; }
.ux-app .tb-ibtn {
    width: var(--tb-ctrl-h); height: var(--tb-ctrl-h); border: 1px solid #dce3ee; border-radius: var(--r-btn);
    background: #f8fafc; color: #475569; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; cursor: pointer; flex-shrink: 0;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
  }
.ux-app .tb-ibtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ux-app .tb-ibtn:hover { border-color: #cbd5e1; background: #f1f5f9; color: var(--ink); }
.ux-app .tb-ibtn.active, .ux-app .tb-ibtn.open { border-color: #93c5fd; background: var(--pink-soft); color: var(--pink); }
.ux-app .tb-ibtn:disabled { opacity: 0.45; cursor: default; }
.ux-app .tb-meta-chip {
    font-size: 8.5px; font-weight: 700; color: var(--muted); padding: 1px 7px;
    border: 1px solid #e2e8f0; border-radius: var(--r-pill); background: #f8fafc; white-space: nowrap;
  }
.ux-app .tb-pop {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 65; width: 276px;
    background: #ffffff; border: 1px solid #cbd5e1; border-radius: var(--r-dock); padding: 10px 11px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
    display: none; flex-direction: column; gap: 8px;
  }
.ux-app .tb-pop.open { display: flex; }
.ux-app .tb-pop-mhdr {
    display: none; align-items: center; justify-content: space-between; gap: 8px;
    padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid #edf2f7;
    font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink);
  }
.ux-app .tb-pop-close {
    width: 24px; height: 24px; border: 1px solid #dce3ee; border-radius: var(--r-btn);
    background: #f8fafc; color: var(--ink-2); font-size: 14px; line-height: 1; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
    touch-action: manipulation;
  }
.ux-app .tb-pop-close:hover { border-color: #93c5fd; background: var(--pink-soft); color: var(--pink); }
@media (max-width: 900px) {
  .ux-app .tb-pop {
        position: fixed !important; top: max(38px, calc(env(safe-area-inset-top) + 34px));
        right: max(8px, env(safe-area-inset-right)) !important; left: auto !important;
        width: min(304px, calc(100vw - 16px)) !important; max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 52px) !important; overflow-y: auto !important;
        -webkit-overflow-scrolling: touch; z-index: 950 !important;
      }
  .ux-app .tb-pop.filters {
        left: max(8px, env(safe-area-inset-left)) !important;
        right: max(8px, env(safe-area-inset-right)) !important;
        width: auto !important;
      }
  .ux-app .tb-pop-mhdr { display: flex; }
}
.ux-app .tb-pop-sec { display: flex; flex-direction: column; gap: 4px; }
.ux-app .tb-pop-lbl { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.ux-app .tb-pop-stat {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: var(--r-inp); background: #f8fafc;
    font-size: 9px; color: var(--muted);
  }
.ux-app .tb-pop-sub { font-size: 9px; color: var(--muted); line-height: 1.4; }
.ux-app .tb-pop-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.ux-app .tb-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--ink-2); }
.ux-app .tb-pop-sep { height: 1px; background: #edf2f7; }
.ux-app .tb-pop-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px;
    border: 0; border-radius: var(--r-inp); background: transparent; text-align: left; cursor: pointer;
    font-family: var(--sans); font-size: 11.5px; font-weight: 550; color: #1e293b;
    transition: background 0.1s, color 0.1s;
  }
.ux-app .tb-pop-btn:hover { background: #f1f5f9; color: var(--pink); }
.ux-app .tb-pop-btn.confirm-warn { background: #dc2626 !important; color: #ffffff !important; }
.ux-app .tb-pop-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: 0.85; pointer-events: none; }
/* Shared Controls: Buttons, Segmented Toggles, Chief AI / Sync Pickers, Modals & Pill Toasts */
.ux-app .btn {
    font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em;
    padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
    background: var(--bg); color: var(--ink); cursor: pointer; white-space: nowrap;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
  }
.ux-app .btn:hover { border-color: var(--pink); color: var(--pink); }
.ux-app .btn:disabled { opacity: 0.45; cursor: default; }
.ux-app .btn.active, .ux-app .btn.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.ux-app .btn.primary { border-color: var(--pink); background: var(--pink); color: #ffffff; }
.ux-app .btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.ux-app .btn.soft { border-color: #bfdbfe; background: var(--pink-soft); color: var(--pink); }
.ux-app .btn.soft:hover { background: #dbeafe; }
.ux-app .btn.ok { border-color: var(--ok); color: var(--ok); background: rgba(35, 145, 104, 0.06); }
.ux-app .btn.ok:hover { background: var(--ok); color: #ffffff; }
.ux-app .btn.warn { border-color: var(--amber); color: var(--amber); }
.ux-app .btn.danger { border-color: #e7b8b4; color: var(--err); }
.ux-app .btn.danger:hover { background: var(--err); border-color: var(--err); color: #ffffff; }
.ux-app .btn.mini { font-size: 8.5px; padding: 1.5px 5.5px; }
.ux-app .seg {
    display: inline-flex; align-items: center; height: var(--tb-ctrl-h); padding: 1.5px; gap: 1px;
    border: 1px solid #dce3ee; border-radius: var(--r-btn); background: #f1f5f9; overflow: hidden; flex-shrink: 0;
  }
.ux-app .seg button {
    border: 0; border-radius: 3.5px; background: transparent; height: 18px; padding: 0 6px;
    font: 800 8px var(--mono); letter-spacing: 0.04em; color: #64748b; white-space: nowrap; cursor: pointer;
    transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  }
.ux-app .seg button:hover { color: var(--ink); }
.ux-app .seg button.active, .ux-app .seg button.on { background: #ffffff; color: var(--pink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.ux-app .sync-chip {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
    padding: 4px 8px; border: 1px solid #e2e8f0; border-radius: var(--r-inp); background: #f8fafc;
    font-size: 9px; color: var(--muted); white-space: nowrap;
  }
.ux-app .sync-chip select {
    border: 1px solid #cbd5e1; border-radius: var(--r-seg); background: #ffffff; padding: 1px 4px;
    font: 700 9px var(--mono); color: var(--ink); outline: none; cursor: pointer;
  }
.ux-app .chief-box {
    display: inline-flex; align-items: center; width: 100%;
    border: 1px solid #bfdbfe; border-radius: var(--r-inp); background: #ffffff; overflow: hidden;
  }
.ux-app .chief-box .clbl {
    background: var(--pink); color: #ffffff; font-size: 8px; font-weight: 800; padding: 5px 7px; letter-spacing: 0.05em; flex-shrink: 0;
  }
.ux-app .chief-box select {
    border: 0; background: #ffffff; font: 700 9.5px var(--mono); padding: 2px 6px; flex: 1 1 0; min-width: 0;
    height: 24px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; cursor: pointer; color: var(--ink);
  }
.ux-app .modal-bg {
    position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.36);
    display: none; align-items: center; justify-content: center; padding: 14px;
  }
.ux-app .modal-bg.show, .ux-app .modal-bg.open { display: flex; }
.ux-app .toast {
    position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 120;
    background: rgba(26, 34, 51, 0.95); color: #ffffff; padding: 6px 14px;
    border-radius: var(--r-pill); font-size: 9.5px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    opacity: 0; pointer-events: none; transition: opacity 0.16s;
  }
.ux-app .toast.show { opacity: 1; }
/* Band 2: Full-Height 3D Viewport & Floating Overlay Cards */
.ux-app .graph-frame {
    flex: 1 1 0;
    min-height: 170px;
    position: relative;
    border: 1px solid var(--line); border-radius: var(--r-panel);
    background: radial-gradient(circle at 50% 48%, #ffffff 0%, #fcfcfe 70%, #f5f5fa 100%);
    overflow: hidden;
  }
.ux-app .graph-meta-tl { position: absolute; top: 5px; left: 9px; font-size: 9px; letter-spacing: 0.06em; color: var(--muted); pointer-events: none; }
.ux-app .graph-meta-tr { position: absolute; top: 5px; right: 9px; font-size: 9px; letter-spacing: 0.06em; color: var(--muted); pointer-events: none; }
.ux-app .legend-bar {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 2px 11px; font-size: 8.5px; color: var(--muted);
    display: flex; align-items: center; gap: 9px; pointer-events: none; white-space: nowrap;
  }
.ux-app .lg-i { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); }
.ux-app .lg-d { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ux-app .counter-card {
    position: absolute; top: 22px; left: 9px; width: 215px;
    background: rgba(255,255,255,0.96); border: 1px solid var(--line-strong); border-radius: var(--r-card);
    padding: 6px 9px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }
.ux-app .counter-card .k { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; }
.ux-app .counter-card .big-row { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.ux-app .counter-card .big { font-size: 24px; font-weight: 800; color: var(--pink); line-height: 1; }
.ux-app .counter-card .sub { font-size: 9.5px; color: var(--muted); }
.ux-app .spotlight-card {
    position: absolute; bottom: 8px; left: 9px; width: 325px;
    background: rgba(255,255,255,0.97); border: 1px solid var(--pink); border-radius: var(--r-card);
    padding: 6px 9px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  }
.ux-app .spot-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 2px; }
.ux-app .spot-title { font-size: 11px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-app .spot-badge { background: var(--pink); color: #fff; font-size: 8.5px; font-weight: 800; padding: 1.5px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.ux-app .spot-desc { font-size: 9.5px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux-app .spot-cli {
    font-size: 9.5px; color: var(--ink); background: var(--bg-sub);
    border-left: 2px solid var(--pink); border-radius: 0 var(--r-seg) var(--r-seg) 0; padding: 2px 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
.ux-app .minimap-box {
    position: absolute; bottom: 8px; right: 9px; width: 112px; height: 74px;
    background: rgba(255,255,255,0.92); border: 1px solid var(--line-strong); border-radius: var(--r-panel); overflow: hidden; pointer-events: none;
  }
.ux-app .minimap-box .mlbl { position: absolute; top: 2px; left: 5px; font-size: 8px; color: var(--muted); }
.ux-app canvas#miniCanvas { width: 100%; height: 100%; display: block; }
.ux-app .hover-tip {
    position: absolute; pointer-events: none; display: none;
    background: rgba(26, 26, 34, 0.94); color: #fff; border-radius: var(--r-inp);
    padding: 4px 8px; font-size: 9px; border-left: 2px solid var(--pink);
    white-space: nowrap; z-index: 20;
  }
.ux-app .panel { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ux-app .panel-h {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
    padding: 2px 6px; border-bottom: 1px solid var(--line); background: var(--bg-sub); font-size: 9px; gap: 6px;
  }
.ux-app .panel-h .title { font-weight: 800; letter-spacing: 0.04em; }
.ux-app .panel-h .title span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.ux-app .panel-h .right { font-weight: 800; color: var(--pink); white-space: nowrap; }
.ux-app .panel-b { flex: 1 1 auto; padding: 2px 6px; overflow-y: auto; font-size: 9.5px; min-height: 0; }
.ux-app .bar-track { height: 5px; border-radius: var(--r-pill); background: #eeeef4; position: relative; overflow: hidden; }
.ux-app .bar-fill { height: 100%; border-radius: var(--r-pill); background: var(--pink); }
.ux-app .empty-note { color: var(--muted); padding: 8px 0; text-align: center; }
.ux-app .cat-bar {
    display: inline-flex; align-items: center; gap: 1px; height: var(--tb-ctrl-h); padding: 1.5px;
    border: 1px solid #dce3ee; border-radius: var(--r-btn); background: #f1f5f9; flex-shrink: 0;
  }
.ux-app .cat-tab {
    display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px;
    border: 0; border-radius: 3.5px; background: transparent; cursor: pointer; user-select: none; white-space: nowrap;
    transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  }
.ux-app .cat-tab:hover { background: rgba(255, 255, 255, 0.65); }
.ux-app .cat-tab.active { background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.ux-app .cat-tab .lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.03em; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ux-app .cat-tab.active .lbl { color: var(--pink); }
.ux-app .cat-tab .sq { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--muted); flex-shrink: 0; }
.ux-app .cat-tab.active .sq { background: var(--pink); }
.ux-app .cat-tab .val { font-size: 9px; font-weight: 800; color: var(--ink); }
.ux-app .cat-tab.active .val { color: var(--pink); }
.ux-app .pipeline-strip {
    flex: 0 0 auto;
    display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-panel);
    padding: 2px 7px; gap: 7px; background: var(--bg);
  }
.ux-app .pipe-tag { font-weight: 800; font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; }
.ux-app .pipe-stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; flex: 1; }
.ux-app .pipe-item { display: flex; align-items: center; justify-content: space-between; padding: 1px 6px; border: 1px solid transparent; border-radius: var(--r-inp); gap: 5px; }
.ux-app .pipe-item.active { border-color: var(--pink); background: var(--pink-soft); }
.ux-app .pipe-name { font-size: 9.5px; font-weight: 800; }
.ux-app .pipe-item.active .pipe-name { color: var(--pink); }
.ux-app .spark { display: flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.ux-app .spark i { width: 2px; background: var(--pink-mid); display: block; }
.ux-app .pipe-item.active .spark i { background: var(--pink); }
.ux-app .pipe-num { font-size: 10.5px; font-weight: 800; }
.ux-app .sel-row { background: var(--pink-soft) !important; outline: 1px solid var(--pink); }

/* Embedded full-viewport shell & host-site isolation (preserves ux_common 3-tier radii) */
html:has(body.ux-viewport), body.ux-viewport,
html:has(body.fdh-viewport), body.fdh-viewport {
  height: 100dvh;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}
body.ux-viewport, body.fdh-viewport {
  display: flex;
  flex-direction: column;
}
body.ux-viewport > header.topbar, body.fdh-viewport > header.topbar {
  flex: 0 0 auto;
  z-index: 60 !important;
}
.ux-app {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.ux-app, .ux-app * { box-sizing: border-box; }
.ux-app h1, .ux-app h2, .ux-app h3 { margin: 0; }
.ux-app.shell {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  width: 100%;
  padding: 6px 24px 8px;
  gap: 5px;
}
.ux-app.shell.ux-contained, .ux-app.shell.layout-center {
  max-width: 1240px;
  margin: 0 auto;
}
.ux-app .topbar { top: auto; backdrop-filter: none; }
.ux-app .panel { color: var(--ink); padding: 0; box-shadow: none; }
.ux-app .btn { flex: 0 0 auto; line-height: 1.2; }
@media (max-width: 820px) {
  .ux-app.shell { padding: 6px 10px 8px; }
}
@media (max-height: 620px) {
  html:has(body.ux-viewport), body.ux-viewport,
  html:has(body.fdh-viewport), body.fdh-viewport {
    height: auto;
    overflow-y: auto;
  }
  .ux-app.shell { flex: none; height: auto; overflow: visible; }
  .ux-app .graph-frame { height: 340px; }
}
