/* NEXAKOR V4.35 — Persistent Command Bar + stable Appearance Studio */
html.nx-v435-prepaint *,html.nx-v435-prepaint *::before,html.nx-v435-prepaint *::after{transition:none!important;animation:none!important}
/* The old conditional quick rail is replaced by a single invariant command bar. */
.nx-v431-quickrail{display:none!important}
.top-actions{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;white-space:nowrap!important}
.nx435-commandbar{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line)!important;border-radius:10px;background:color-mix(in srgb,var(--surface) 94%,transparent)!important;box-shadow:0 4px 14px rgba(15,23,42,.06);min-width:0}
.nx435-commandbar button{height:30px;min-height:30px;min-width:30px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:4px 7px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:600 11px/1 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.nx435-commandbar button:hover,.nx435-commandbar button:focus-visible{background:color-mix(in srgb,var(--primary) 10%,var(--surface));outline:0}
.nx435-commandbar button:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 50%,transparent)}
.nx435-commandbar .nx435-cmd-icon{display:grid;place-items:center;width:17px;height:17px;flex:0 0 17px;color:var(--primary)}
.nx435-commandbar .nx435-cmd-icon .nx433-icon-wrap,.nx435-commandbar .nx435-cmd-icon svg{width:17px!important;height:17px!important;display:block!important}
.nx435-commandbar .nx435-cmd-sep{width:1px;height:18px;background:var(--line);margin:0 1px}
/* Existing controls that duplicate Command Bar actions are kept out of the scarce topbar quadrant. */
.top-actions>[data-nav-experience],.top-actions>.nexa-top,.top-actions>[data-design-studio],.top-actions>[data-nexakor-theme]{display:none!important}
/* No mode can leave the user without a way to switch modules. */
.nx435-commandbar{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
/* Studio becomes a proper configuration workspace with readable cards and a realistic live preview. */
.nx-v430-studio{width:min(1240px,calc(100vw - 28px))!important;height:min(820px,calc(100vh - 28px))!important;max-height:calc(100vh - 28px)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important}
.nx-v430-studio>header{padding:14px 18px!important;border-bottom:1px solid var(--line)!important}.nx-v430-studio>header h2{font-size:18px!important;margin:2px 0 3px!important}.nx-v430-studio>header p{font-size:11px!important;margin:0!important;color:var(--muted)!important}
.nx-v430-studio-body{display:grid!important;grid-template-columns:minmax(360px,42%) minmax(0,58%)!important;min-height:0!important;overflow:hidden!important}
.nx-v430-preview-pane{display:flex!important;flex-direction:column!important;gap:10px!important;padding:14px!important;overflow:auto!important;border-right:1px solid var(--line)!important;background:color-mix(in srgb,var(--surface2) 82%,var(--bg))!important}
.nx-v430-options{padding:14px!important;overflow:auto!important;min-height:0!important}.nx-v430-options section{margin:0 0 14px!important}.nx-v430-section-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:12px!important;margin-bottom:7px!important}.nx-v430-section-head>div{display:flex!important;align-items:center!important;gap:7px!important}.nx-v430-section-head h3{font-size:13px!important;margin:0!important}.nx-v430-section-head p{font-size:10px!important;margin:0!important;color:var(--muted)!important}
.nx-v430-choice-grid,.nx-v430-variant-grid{gap:8px!important}.nx-v430-choice,.nx-v430-variant{position:relative!important;min-width:0!important;padding:8px!important;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:11px!important;color:var(--ink)!important;box-shadow:none!important;overflow:hidden!important}.nx-v430-choice:hover,.nx-v430-variant:hover{border-color:color-mix(in srgb,var(--primary) 48%,var(--line))!important}.nx-v430-choice.active,.nx-v430-variant.active{border-color:var(--primary)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 24%,transparent)!important;background:color-mix(in srgb,var(--surface) 94%,var(--primary) 6%)!important}.nx-v430-choice.active:after,.nx-v430-variant.active:after{content:'✓';position:absolute;top:6px;right:6px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font:700 11px/1 system-ui}
.nx-v430-choice strong,.nx-v430-variant strong{display:block!important;font-size:11px!important;margin-top:5px!important}.nx-v430-choice small,.nx-v430-variant small{display:block!important;font-size:9px!important;line-height:1.25!important;color:var(--muted)!important;margin-top:2px!important}
/* Realistic live preview */
.nx435-live-shell{--p-bg:#f5f7fb;--p-surface:#fff;--p-nav:#172033;--p-text:#172033;--p-muted:#7a879a;--p-line:#dbe3ee;--p-primary:#2563eb;position:relative;height:330px;border:1px solid var(--p-line);border-radius:14px;overflow:hidden;background:var(--p-bg);color:var(--p-text);box-shadow:0 12px 30px rgba(15,23,42,.08)}
.nx435-live-shell[data-preview-theme="veltria-oscuro"]{--p-bg:#0b1118;--p-surface:#111827;--p-nav:#0b1220;--p-text:#e8eef7;--p-muted:#93a4b8;--p-line:#29384b;--p-primary:#2dd4bf}.nx435-live-shell[data-preview-theme="industrial"]{--p-bg:#eef3f8;--p-surface:#fbfdff;--p-nav:#17324d;--p-text:#14283c;--p-muted:#6d8194;--p-line:#d3dee8;--p-primary:#1d5fa7}.nx435-live-shell[data-preview-theme="ejecutivo"]{--p-bg:#101218;--p-surface:#181c24;--p-nav:#0b0e13;--p-text:#eef0f4;--p-muted:#9aa2ae;--p-line:#343a46;--p-primary:#c6a45a}
.nx435-live-top{height:26px;display:flex;align-items:center;gap:5px;padding:0 7px;background:var(--p-surface);border-bottom:1px solid var(--p-line)}.nx435-live-top b{font-size:6px;margin-right:auto}.nx435-live-top i{width:22px;height:7px;border-radius:3px;background:var(--p-line)}.nx435-live-top i:last-child{background:var(--p-primary)}
.nx435-live-nav{position:absolute;background:var(--p-nav);color:white}.nx435-live-canvas{position:absolute;inset:26px 0 0 0;padding:9px;background:var(--p-bg);transition:none!important}.nx435-live-shell[data-preview-nav="sidebar"] .nx435-live-nav{left:0;top:26px;bottom:0;width:23%}.nx435-live-shell[data-preview-nav="sidebar"] .nx435-live-canvas{left:23%}.nx435-live-shell[data-preview-nav="sidebar"][data-preview-variant="b"] .nx435-live-nav{width:9%}.nx435-live-shell[data-preview-nav="sidebar"][data-preview-variant="b"] .nx435-live-canvas{left:9%}.nx435-live-shell[data-preview-nav="sidebar"][data-preview-variant="c"] .nx435-live-nav{width:27%}.nx435-live-shell[data-preview-nav="sidebar"][data-preview-variant="c"] .nx435-live-canvas{left:27%}.nx435-live-shell[data-preview-nav="dock"] .nx435-live-nav{left:27%;right:27%;bottom:8px;height:27px;border-radius:10px}.nx435-live-shell[data-preview-nav="windows"] .nx435-live-nav{left:8%;right:8%;top:44px;height:86px;border-radius:10px;background:var(--p-surface);border:1px solid var(--p-line)}.nx435-live-shell[data-preview-nav="tablet"] .nx435-live-nav{left:6%;right:6%;top:42px;bottom:14px;border-radius:10px;background:var(--p-surface);border:1px solid var(--p-line);opacity:.96}.nx435-live-shell[data-preview-nav="windows"] .nx435-live-canvas,.nx435-live-shell[data-preview-nav="tablet"] .nx435-live-canvas{opacity:.36}
.nx435-live-title{height:9px;width:34%;border-radius:3px;background:var(--p-text);opacity:.86;margin:2px 0 4px}.nx435-live-sub{height:5px;width:52%;border-radius:3px;background:var(--p-muted);opacity:.55;margin-bottom:9px}.nx435-live-tabs{height:24px;border:1px solid var(--p-line);background:var(--p-surface);border-radius:7px;display:flex;gap:4px;align-items:center;padding:4px;margin-bottom:7px}.nx435-live-tabs i{height:9px;width:13%;border-radius:3px;background:var(--p-line)}.nx435-live-tabs i.active{background:var(--p-primary);width:17%}.nx435-live-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.nx435-live-kpis i{height:38px;background:var(--p-surface);border:1px solid var(--p-line);border-radius:6px}.nx435-live-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:5px;margin-top:5px}.nx435-live-grid i{height:78px;background:var(--p-surface);border:1px solid var(--p-line);border-radius:6px}.nx435-live-grid i:last-child{background:linear-gradient(180deg,var(--p-surface),color-mix(in srgb,var(--p-primary) 8%,var(--p-surface)))}
.nx435-live-icons{position:absolute;display:flex;gap:4px}.nx435-live-shell[data-preview-nav="sidebar"] .nx435-live-icons{left:7px;top:39px;flex-direction:column}.nx435-live-shell[data-preview-nav="dock"] .nx435-live-icons{left:31%;bottom:12px}.nx435-live-shell[data-preview-nav="windows"] .nx435-live-icons{left:13%;top:58px}.nx435-live-shell[data-preview-nav="tablet"] .nx435-live-icons{left:12%;top:60px;display:grid;grid-template-columns:repeat(4,28px);gap:9px}.nx435-live-icons .nx433-icon-wrap,.nx435-live-icons svg{width:20px!important;height:20px!important}.nx435-live-shell[data-preview-icon="soft3d"] .nx435-live-icons>*{transform:scale(1.08)}.nx435-live-shell[data-preview-icon="geometric"] .nx435-live-icons>*{filter:none!important}
.nx435-preview-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:10px}.nx435-preview-summary strong{font-size:11px}.nx435-preview-summary span{color:var(--muted)}
/* Theme cards are miniature screenshots, large enough to understand the result. */
.nx435-theme-shot,.nx435-nav-shot{height:88px;border-radius:8px;overflow:hidden;border:1px solid var(--line);position:relative;margin-bottom:6px;background:var(--p-bg,#f5f7fb)}
.nx435-theme-shot .bar{height:12px;background:var(--p-surface);border-bottom:1px solid var(--p-line)}.nx435-theme-shot .nav{position:absolute;left:0;top:12px;bottom:0;width:24%;background:var(--p-nav)}.nx435-theme-shot .work{position:absolute;left:26%;right:4%;top:20px;bottom:7px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px}.nx435-theme-shot .work i{background:var(--p-surface);border:1px solid var(--p-line);border-radius:4px}.nx435-theme-shot .work i:first-child{grid-column:1/-1;background:linear-gradient(90deg,var(--p-primary),color-mix(in srgb,var(--p-primary) 45%,var(--p-surface)))}
.nx435-theme-shot,.nx435-nav-shot,.nx435-nav-shot-preview{display:block!important;width:100%!important;flex:0 0 auto!important}.nx435-theme-shot .bar{display:block!important}.nx-v430-choice.theme,.nx-v430-choice.icon,.nx-v430-choice.nav,.nx-v430-variant{display:flex!important;flex-direction:column!important}
/* Prevent legacy v434 tiny thumbnail definitions from winning inside the new studio. */
.nx-v430-studio .nx434-theme-thumb,.nx-v430-studio .nx434-nav-thumb{display:none!important}
/* Mobile/topbar compaction */
@media(max-width:1180px){.nx435-commandbar .nx435-cmd-label{display:none}.nx435-commandbar button{width:30px;padding:4px}.top-actions>[data-health]{display:none!important}.nx-v430-studio-body{grid-template-columns:330px minmax(0,1fr)!important}}
@media(max-width:900px){.topbar.nx-v416-topbar .top-actions{display:flex!important}.nx435-commandbar{position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));top:auto;transform:translateX(-50%);z-index:1900;box-shadow:0 10px 30px rgba(15,23,42,.18)}.nx435-commandbar .nx435-cmd-label{display:none}.nx435-commandbar [data-v435-action="logout"]{min-width:58px;padding:4px 7px}.nx435-commandbar [data-v435-action="logout"] .nx435-cmd-label{display:inline}.nx-v430-studio{width:calc(100vw - 10px)!important;height:calc(100vh - 10px)!important}.nx-v430-studio-body{grid-template-columns:1fr!important}.nx-v430-preview-pane{display:flex!important;max-height:250px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}.nx435-live-shell{height:190px}.nx-v430-choice-grid.themes,.nx-v430-choice-grid.navigation{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.nx-v430-preview-pane{max-height:220px!important}.nx435-live-shell{height:160px}.nx-v430-choice-grid.themes,.nx-v430-choice-grid.icons,.nx-v430-choice-grid.navigation,.nx-v430-variant-grid{grid-template-columns:1fr!important}.nx-v430-section-head{align-items:flex-start!important;flex-direction:column!important}.nx435-commandbar{max-width:calc(100vw - 12px)}}
.nx435-nav-shot-preview{height:88px!important;margin-bottom:6px!important;border-radius:8px!important;box-shadow:none!important}.nx435-nav-shot-preview .nx435-live-top{height:12px!important;padding:0 3px!important}.nx435-nav-shot-preview .nx435-live-top b{display:none!important}.nx435-nav-shot-preview .nx435-live-top i{width:10px!important;height:3px!important}.nx435-nav-shot-preview .nx435-live-canvas{top:12px!important;padding:5px!important}.nx435-nav-shot-preview .nx435-live-title{height:4px!important;margin:1px 0 3px!important}.nx435-nav-shot-preview .nx435-live-sub{height:3px!important;margin-bottom:4px!important}.nx435-nav-shot-preview .nx435-live-kpis{gap:2px!important}.nx435-nav-shot-preview .nx435-live-kpis i{height:14px!important}.nx435-nav-shot-preview[data-preview-nav="sidebar"] .nx435-live-nav{top:12px!important}.nx435-nav-shot-preview[data-preview-nav="windows"] .nx435-live-nav,.nx435-nav-shot-preview[data-preview-nav="tablet"] .nx435-live-nav{top:20px!important;height:38px!important;bottom:auto!important}.nx435-nav-shot-preview[data-preview-nav="dock"] .nx435-live-nav{height:12px!important;bottom:4px!important}
