:root{--pa-bg:#f8fafc;--pa-panel:#fff;--pa-panel-soft:#f1f5f9;--pa-text:#0f172a;--pa-muted:#64748b;--pa-line:#cbd5e1;--pa-link:#1d4ed8}
:root[data-theme=dark]{--pa-bg:#0b1220;--pa-panel:#111c2f;--pa-panel-soft:#19263b;--pa-text:#e2e8f0;--pa-muted:#a9b8cc;--pa-line:#334155;--pa-link:#93c5fd;color-scheme:dark}
.pa-preferences-enabled body>header>div>.flex{height:auto;min-height:64px;flex-wrap:wrap;gap:12px;padding-top:12px;padding-bottom:12px}
.pa-preferences{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0;font-size:12px}
.pa-language-form{display:flex;align-items:center;gap:6px;margin:0}
.pa-preferences select,.pa-preferences button{border:1px solid var(--pa-line);border-radius:8px;background:var(--pa-panel);color:var(--pa-text);font:inherit;padding:7px 9px;min-height:36px;cursor:pointer}
.pa-preferences select:focus-visible,.pa-preferences button:focus-visible{outline:2px solid var(--pa-link);outline-offset:2px}
@media(max-width:1279px){.pa-preferences{margin-left:0}.pa-preferences-enabled body>header nav{order:3}}
@media(max-width:479px){.pa-preferences{width:100%;justify-content:flex-end}.pa-preferences-enabled body>header nav{order:2}}
:root[data-theme=dark] body{background:var(--pa-bg);color:var(--pa-text)}
:root[data-theme=dark] .bg-white{background-color:var(--pa-panel)}
:root[data-theme=dark] .bg-slate-50,:root[data-theme=dark] [class~="bg-slate-50/50"],:root[data-theme=dark] [class~="bg-slate-50/40"]{background-color:var(--pa-bg)}
:root[data-theme=dark] .bg-slate-100,:root[data-theme=dark] .bg-slate-200{background-color:var(--pa-panel-soft)}
:root[data-theme=dark] [class*="border-slate-"],:root[data-theme=dark] [class*="divide-slate-"]>:not([hidden])~:not([hidden]){border-color:var(--pa-line)}
:root[data-theme=dark] .text-slate-900,:root[data-theme=dark] .text-slate-800,:root[data-theme=dark] .text-slate-700{color:var(--pa-text)}
:root[data-theme=dark] .text-slate-600,:root[data-theme=dark] .text-slate-500,:root[data-theme=dark] .text-slate-400{color:var(--pa-muted)}
:root[data-theme=dark] .text-slate-300{color:#8496ad}
:root[data-theme=dark] .text-brand-700,:root[data-theme=dark] .text-brand-600,:root[data-theme=dark] .text-brand-500{color:var(--pa-link)}
:root[data-theme=dark] [class*="hover:bg-slate-"]:hover,:root[data-theme=dark] .row-hover tr:hover{background-color:#203149}
:root[data-theme=dark] .seq-pill,:root[data-theme=dark] .bg-brand-50,:root[data-theme=dark] .bg-indigo-50,:root[data-theme=dark] .bg-blue-50{background-color:#172b4a;color:#bfdbfe}
:root[data-theme=dark] .text-indigo-700,:root[data-theme=dark] .text-blue-800{color:#bfdbfe}
:root[data-theme=dark] .bg-emerald-50,:root[data-theme=dark] .bg-teal-50{background-color:#11352f}
:root[data-theme=dark] [class*="text-emerald-"],:root[data-theme=dark] [class*="text-teal-"]{color:#6ee7b7}
:root[data-theme=dark] .bg-violet-50{background-color:#2a2044}
:root[data-theme=dark] [class*="text-violet-"]{color:#d8b4fe}
:root[data-theme=dark] .bg-amber-50,:root[data-theme=dark] .bg-amber-100{background-color:#33281a}
:root[data-theme=dark] [class*="text-amber-"]{color:#fde68a}
:root[data-theme=dark] .bg-rose-50{background-color:#3b1f2c}
:root[data-theme=dark] [class*="text-rose-"]{color:#fda4af}
:root[data-theme=dark] .bg-amber-300{background-color:#fcd34d;color:#172033}
:root[data-theme=dark] .bg-gradient-to-br{--tw-gradient-from:#142344;--tw-gradient-to:#1e40af;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}
:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{background-color:var(--pa-panel);color:var(--pa-text)}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:#8496ad}
:root[data-theme=dark] .panapta-complex-wrap,:root[data-theme=dark] .panapta-toolbar,:root[data-theme=dark] .panapta-canvas{background:var(--pa-panel);border-color:var(--pa-line);color:var(--pa-text)}
:root[data-theme=dark] .panapta-btn-primary{background:#143b38;border-color:#2b6d62;color:#99f6e4}
:root[data-theme=dark] .panapta-btn-primary[data-state=off],:root[data-theme=dark] .panapta-btn-secondary{background:#203149;border-color:#475569;color:#e2e8f0}
:root[data-theme=dark] .panapta-hint{color:var(--pa-muted)}
:root[data-theme=dark] .mfe-svg{background:#e4ecf5;border-radius:8px;padding:8px}
