:root {
  --bg: #0d0e0c;
  --bg-raised: #121410;
  --panel: rgba(25, 27, 22, .94);
  --panel-2: #20231d;
  --line: rgba(238, 240, 226, .1);
  --line-strong: rgba(238, 240, 226, .18);
  --text: #f1f2e9;
  --muted: #999d91;
  --dim: #676b62;
  --lime: #d7ff55;
  --lime-dim: rgba(215, 255, 85, .12);
  --orange: #ff9f57;
  --red: #ff6a65;
  --green: #78d897;
  --blue: #7db8ff;
  --radius: 17px;
  --radius-sm: 11px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .26);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
.muted { color: var(--muted); }
.mono, code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.eyebrow { margin: 0 0 8px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.05; }
h2 { letter-spacing: -.025em; }

.button, .icon-button, .text-button { border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease; }
.button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; background: var(--panel-2); }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button:disabled, .icon-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.button.primary { color: #12140c; border-color: var(--lime); background: var(--lime); }
.button.secondary { color: var(--lime); border-color: rgba(215, 255, 85, .25); background: var(--lime-dim); }
.button.ghost { color: var(--muted); background: transparent; }
.button.danger { color: #25100f; border-color: var(--red); background: var(--red); }
.button.compact { min-height: 35px; padding: 0 12px; font-size: 12px; }
.button.wide { width: 100%; }
.icon-button { display: grid; min-width: 35px; height: 35px; place-items: center; padding: 0 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: transparent; font-weight: 700; }
.text-button { padding: 5px; color: var(--muted); background: none; font-size: 12px; }

input, select, textarea { color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: #11130f; }
input, select { min-height: 39px; padding: 0 11px; }
input::placeholder, textarea::placeholder { color: #555a50; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 12%, rgba(181, 210, 96, .09), transparent 34%), var(--bg); }
.login-card { width: min(100%, 440px); padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(30, 33, 26, .95), rgba(17, 19, 15, .98)); box-shadow: var(--shadow); }
.login-card h1 { font-size: 38px; }
.login-copy { line-height: 1.65; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 36px; height: 36px; margin-bottom: 28px; }
.brand-mark span { display: block; width: 8px; border-radius: 8px; background: var(--lime); transform: skew(-11deg); }
.brand-mark span:nth-child(1) { height: 17px; opacity: .45; }.brand-mark span:nth-child(2) { height: 27px; opacity: .72; }.brand-mark span:nth-child(3) { height: 36px; }
.brand-mark.small { width: 23px; height: 24px; margin: 0; gap: 2px; }.brand-mark.small span { width: 5px; }.brand-mark.small span:nth-child(1) { height: 11px; }.brand-mark.small span:nth-child(2) { height: 18px; }.brand-mark.small span:nth-child(3) { height: 24px; }
.login-form { display: grid; gap: 12px; margin-top: 30px; }
.login-form > label:first-child { margin-bottom: -5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.token-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.token-row input { min-width: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { min-height: auto; margin: 3px 0 0; accent-color: var(--lime); }
.check-row span { display: grid; gap: 2px; }.check-row strong { font-size: 12px; }.check-row small { color: var(--dim); font-size: 10px; line-height: 1.4; }
.remember-row { margin: 2px 0 8px; }
.form-error { margin: 0; padding: 9px 11px; color: #ffc2bf; border: 1px solid rgba(255, 106, 101, .25); border-radius: 8px; background: rgba(255, 106, 101, .08); font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: 58px 1fr; grid-template-areas: "topbar topbar" "nav workspace"; }
.topbar { position: sticky; top: 0; z-index: 30; grid-area: topbar; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 17px; border-bottom: 1px solid var(--line); background: rgba(13, 14, 12, .88); backdrop-filter: blur(18px); }
.topbar-brand, .topbar-brand > div:last-child, .header-actions, .catalog-status { display: flex; align-items: center; }
.topbar-brand { gap: 10px; }.topbar-brand > div:last-child { gap: 8px; }
.environment-badge { padding: 3px 6px; color: var(--green); border: 1px solid rgba(120, 216, 151, .2); border-radius: 5px; background: rgba(120, 216, 151, .08); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.environment-badge.mock { color: var(--orange); border-color: rgba(255, 159, 87, .2); background: rgba(255, 159, 87, .08); }
.catalog-status { justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(120, 216, 151, .1); }.status-dot.dirty { background: var(--orange); }.status-dot.error { background: var(--red); }
.divider { width: 1px; height: 13px; margin: 0 3px; background: var(--line-strong); }
.header-actions { justify-content: flex-end; gap: 7px; }
.mobile-only { display: none; }

.navigation { position: sticky; top: 58px; z-index: 20; grid-area: nav; display: flex; flex-direction: column; height: calc(100vh - 58px); padding: 23px 12px 16px; border-right: 1px solid var(--line); background: #10110e; }
.nav-label { margin: 0 10px 10px; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; width: 100%; min-height: 43px; padding: 0 11px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .025); }.nav-item.active { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 var(--lime); }
.nav-item > span:first-child { color: var(--dim); font-family: ui-monospace, monospace; }.nav-item.active > span:first-child { color: var(--lime); }
.count-badge { min-width: 22px; padding: 2px 5px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 9px; text-align: center; }
.nav-spacer { flex: 1; }
.nav-note { display: flex; gap: 9px; margin: 12px 3px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-raised); }
.nav-note div { display: grid; gap: 4px; }.nav-note strong { font-size: 10px; }.nav-note small { color: var(--dim); font-size: 9px; line-height: 1.45; }
.live-pulse { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.workspace { grid-area: workspace; min-width: 0; padding: 28px; }
.view { display: none; animation: enter .22s ease both; }.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 auto 23px; max-width: 1480px; }
.view-heading p:last-child { margin-bottom: 0; }.heading-actions { display: flex; gap: 8px; }
.page-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1480px; min-height: 62px; margin: -8px auto 14px; padding: 10px 12px 10px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20, 22, 18, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .11); }
.page-action-state { display: flex; align-items: center; min-width: 0; gap: 10px; }.page-action-state > div { display: grid; min-width: 0; gap: 3px; }.page-action-state strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.page-action-state small { overflow: hidden; color: var(--dim); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.page-state-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(120, 216, 151, .08); }.page-state-dot.dirty { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 159, 87, .09); }.page-state-dot.staged { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
.page-action-buttons { display: flex; flex: 0 0 auto; gap: 7px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 10px 35px rgba(0, 0, 0, .12); }

.filter-layout { display: grid; grid-template-columns: 238px minmax(380px, 1fr) 344px; gap: 13px; max-width: 1480px; min-height: calc(100vh - 250px); margin: 0 auto; }
.preset-browser, .preview-stage, .inspector { min-height: 0; overflow: hidden; }
.preset-browser { display: flex; flex-direction: column; max-height: calc(100vh - 250px); }
.panel-toolbar { display: grid; grid-template-columns: 1fr 70px; gap: 7px; padding: 13px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; }.search-field span { position: absolute; top: 10px; left: 10px; color: var(--dim); }.search-field input { width: 100%; padding-left: 27px; }
.panel-toolbar select { width: 100%; padding: 0 21px 0 8px; font-size: 11px; }
.list-summary { display: flex; justify-content: space-between; padding: 10px 14px 7px; color: var(--dim); font-size: 9px; }
.preset-list { flex: 1; overflow: auto; padding: 3px 7px 10px; scrollbar-width: thin; scrollbar-color: #373a32 transparent; }
.preset-row { display: grid; grid-template-columns: 15px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 53px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; user-select: none; }
.preset-row:hover { background: rgba(255, 255, 255, .025); }.preset-row.selected { border-color: rgba(215, 255, 85, .17); background: var(--lime-dim); }
.preset-row.dragging { opacity: .36; }.preset-row.drag-over { border-top-color: var(--lime); }
.drag-handle { color: #4c5047; font-size: 13px; cursor: grab; }
.preset-swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); }
.preset-row-text { min-width: 0; display: grid; gap: 3px; }.preset-row-text strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.preset-row-text small { overflow: hidden; color: var(--dim); font-family: ui-monospace, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.row-status { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.row-status.off { background: #484b44; }
.preset-list-empty { padding: 35px 10px; color: var(--dim); text-align: center; font-size: 11px; }

.preview-stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: #080907; }
.preview-toolbar, .preview-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--panel); }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0e100d; }.segmented button { min-width: 48px; padding: 5px 8px; color: var(--dim); border: 0; border-radius: 5px; background: transparent; font-size: 10px; cursor: pointer; }.segmented button.active { color: var(--text); background: #292c25; }
.preview-approx { color: var(--dim); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.preview-tools { display: flex; align-items: center; gap: 10px; }.preview-tools label { color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; }.preview-tools input { min-height: auto; margin: 0 3px 0 0; accent-color: var(--lime); vertical-align: -2px; }
.preview-dropzone { position: relative; display: grid; min-height: 430px; overflow: hidden; place-items: center; background-image: linear-gradient(45deg, #0d0e0c 25%, transparent 25%), linear-gradient(-45deg, #0d0e0c 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #0d0e0c 75%), linear-gradient(-45deg, transparent 75%, #0d0e0c 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.preview-dropzone.drag-active { box-shadow: inset 0 0 0 2px var(--lime); }.preview-dropzone canvas { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; }.preview-empty span { margin-bottom: 9px; color: var(--dim); font-size: 10px; }
.upload-orbit { display: grid; width: 54px; height: 54px; margin-bottom: 8px; place-items: center; color: var(--lime); border: 1px dashed rgba(215, 255, 85, .38); border-radius: 50%; background: var(--lime-dim); font-size: 24px; }
.split-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; }.split-handle span { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; background: #111; transform: translate(-50%, -50%); }
.preview-footer { border-top: 1px solid var(--line); border-bottom: 0; }.preview-footer > div { display: grid; gap: 3px; }.preview-footer span { font-size: 11px; font-weight: 700; }.preview-footer small { color: var(--dim); font-size: 9px; }
.intensity-control { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 9px; }.intensity-control input { width: 90px; min-height: auto; padding: 0; accent-color: var(--lime); }.intensity-control output { min-width: 29px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reference-assets { padding: 12px 15px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.reference-assets-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.reference-assets-head > div { display: flex; align-items: center; gap: 7px; }.reference-assets-head > div:first-child { display: grid; gap: 3px; }.reference-assets-head > div:last-child { flex-wrap: wrap; justify-content: flex-end; }.reference-assets-head strong { font-size: 10px; }.reference-assets-head small { color: var(--dim); font-size: 8px; }
#previewAssetPolicy { max-width: 520px; line-height: 1.45; }
.reference-asset-list { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #373a32 transparent; }
.reference-asset { display: grid; grid-template-columns: minmax(78px, 1fr) auto; flex: 0 0 170px; align-items: center; gap: 6px; min-width: 0; padding: 7px 7px 7px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #11130f; text-align: left; }
.reference-asset.selected { color: var(--text); border-color: rgba(215, 255, 85, .35); background: var(--lime-dim); }.reference-asset.current::before { content: "CURRENT"; grid-column: 1 / -1; color: var(--green); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.reference-asset-main { min-width: 0; padding: 0; color: inherit; border: 0; background: none; text-align: left; cursor: pointer; }.reference-asset-main strong, .reference-asset-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reference-asset-main strong { font-size: 9px; }.reference-asset-main small { margin-top: 3px; color: var(--dim); font-size: 7px; }
.reference-asset-delete { padding: 3px 5px; color: var(--red); border: 0; background: none; font-size: 12px; cursor: pointer; }.reference-asset-empty { color: var(--dim); font-size: 9px; }

.inspector { display: flex; flex-direction: column; max-height: calc(100vh - 250px); }
.inspector-head { display: flex; align-items: center; justify-content: space-between; min-height: 71px; padding: 12px 15px; border-bottom: 1px solid var(--line); }.inspector-head h2 { max-width: 190px; margin: 3px 0 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.preset-code { color: var(--lime); font-family: ui-monospace, monospace; font-size: 9px; }
.switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch span { position: relative; width: 31px; height: 18px; border-radius: 10px; background: #3b3e37; transition: background .18s; }.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #b7baaf; transition: transform .18s, background .18s; }.switch input:checked + span { background: var(--lime); }.switch input:checked + span::after { background: #16170f; transform: translateX(13px); }.switch em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; }.switch.large span { width: 40px; height: 23px; }.switch.large span::after { width: 17px; height: 17px; }.switch.large input:checked + span::after { transform: translateX(17px); }
.inspector-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 10px 0; border-bottom: 1px solid var(--line); }.inspector-tabs button { position: relative; padding: 9px 2px; color: var(--dim); border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }.inspector-tabs button.active { color: var(--text); }.inspector-tabs button.active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: var(--lime); }
.inspector-body { display: none; flex: 1; overflow: auto; padding: 13px; scrollbar-width: thin; scrollbar-color: #373a32 transparent; }.inspector-body.active { display: block; }
.control-group { margin-bottom: 17px; }.control-group:last-child { margin-bottom: 0; }.control-group-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.control-group-title button { padding: 2px 0; color: var(--dim); border: 0; background: none; font-size: 8px; cursor: pointer; }
.parameter-control { display: grid; grid-template-columns: 86px minmax(60px, 1fr) 60px; align-items: center; gap: 7px; min-height: 34px; }.parameter-control label { overflow: hidden; color: #c2c5bb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.parameter-control input[type="range"] { width: 100%; min-height: auto; height: 3px; padding: 0; border: 0; border-radius: 2px; background: #393c35; accent-color: var(--lime); }.parameter-control input[type="number"] { width: 60px; min-height: 27px; padding: 0 5px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; text-align: right; }
.boolean-control { display: flex; align-items: center; justify-content: space-between; min-height: 38px; color: #c2c5bb; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.field { display: grid; gap: 5px; }.field.full { grid-column: 1 / -1; }.field > span { color: var(--dim); font-size: 9px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; font-size: 11px; }.field textarea { min-height: 68px; padding: 9px; resize: vertical; }.field-help { color: var(--dim); font-size: 8px; line-height: 1.4; }
.color-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.color-input { display: grid; grid-template-columns: 33px 1fr; gap: 6px; }.color-input input[type="color"] { width: 33px; min-height: 33px; padding: 3px; }.color-input input[type="text"] { min-width: 0; padding: 0 6px; font-family: ui-monospace, monospace; font-size: 9px; }
.meta-danger { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); }

.tabs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 13px; max-width: 1240px; margin: 0 auto; }.tab-board-wrap { padding: 18px; }.phone-tabs-preview { margin-bottom: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #090a08; }.phone-tabs-preview > span { color: var(--dim); font-size: 8px; font-weight: 800; letter-spacing: .12em; }.phone-tabs-preview > div { display: flex; gap: 17px; margin-top: 14px; overflow-x: auto; }.phone-tab { flex: 0 0 auto; padding-bottom: 7px; color: var(--dim); font-size: 9px; font-weight: 800; }.phone-tab.on { color: var(--text); border-bottom: 2px solid var(--lime); }
.tab-board { display: grid; gap: 8px; }.tab-card { display: grid; grid-template-columns: 22px minmax(100px, 1fr) 112px 155px auto auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-raised); }.tab-card.dragging { opacity: .4; }.tab-card.drag-over { border-top-color: var(--lime); }.tab-card input, .tab-card select { width: 100%; min-width: 0; font-size: 10px; }.tab-query { display: grid; gap: 5px; }.tab-mini-check { display: flex; align-items: center; gap: 5px; color: var(--dim); font-size: 8px; cursor: pointer; }.tab-mini-check input { width: auto; min-height: auto; margin: 0; accent-color: var(--lime); }.tab-card .switch em { display: none; }.tab-card-id { color: var(--dim); font-family: ui-monospace, monospace; font-size: 8px; }.tab-delete { color: var(--red); }
.tab-help { align-self: start; padding: 20px; }.tab-help h2 { margin-bottom: 13px; }.tab-help ul { display: grid; gap: 12px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }.tab-help code { color: var(--lime); }

.effects-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr); gap: 13px; max-width: 1120px; margin: 0 auto; }.glow-demo { position: relative; min-height: 530px; display: flex; align-items: end; overflow: hidden; padding: 30px; background: linear-gradient(160deg, #171b22, #090b0f 62%); }.glow-demo > div:last-child { position: relative; z-index: 2; }.glow-demo span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .15em; }.glow-demo h2 { margin: 7px 0; font-size: 45px; }.glow-demo p { max-width: 280px; color: #a3acb8; line-height: 1.6; }.glow-orb { position: absolute; top: 16%; left: 50%; width: 180px; height: 180px; border-radius: 50%; background: #e6f4ff; transform: translateX(-50%); box-shadow: 0 0 34px 13px rgba(185, 223, 255, .5), 0 0 110px 50px rgba(73, 130, 192, .35); }.effect-editor { padding: 20px; }.effect-section { padding: 2px 0 19px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }.effect-section:last-child { border-bottom: 0; }.effect-section h3 { margin: 0 0 12px; font-size: 12px; }

.json-workspace { max-width: 1240px; margin: 0 auto; overflow: hidden; }.json-toolbar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9px; }.validation-pill { padding: 3px 7px; border-radius: 8px; }.validation-pill.neutral { color: var(--muted); background: rgba(255, 255, 255, .05); }.validation-pill.valid { color: var(--green); background: rgba(120, 216, 151, .08); }.validation-pill.invalid { color: var(--red); background: rgba(255, 106, 101, .08); }
.json-editor-wrap { display: grid; grid-template-columns: auto 1fr; height: min(68vh, 760px); background: #090a08; }.json-editor-wrap pre { min-width: 44px; margin: 0; padding: 16px 10px; overflow: hidden; color: #444940; border-right: 1px solid var(--line); font: 11px/1.62 ui-monospace, monospace; text-align: right; user-select: none; }.json-editor-wrap textarea { width: 100%; height: 100%; padding: 16px; border: 0; border-radius: 0; outline: none; background: transparent; resize: none; color: #d7dbc9; font: 11px/1.62 ui-monospace, monospace; tab-size: 2; white-space: pre; }.json-errors { padding: 13px 16px; color: #ffc2bf; border-top: 1px solid rgba(255, 106, 101, .2); background: rgba(255, 106, 101, .05); font-size: 10px; line-height: 1.6; }

.versions-panel { max-width: 950px; margin: 0 auto; padding: 8px 20px; }.version-row { display: grid; grid-template-columns: 23px 1fr auto; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--line); }.version-row:last-child { border-bottom: 0; }.version-node { position: relative; width: 10px; height: 10px; margin-top: 6px; border: 2px solid var(--dim); border-radius: 50%; }.version-row.current .version-node { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 5px var(--lime-dim); }.version-info { display: grid; gap: 5px; }.version-info strong { font-size: 12px; }.version-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--dim); font-size: 9px; }.version-message { color: var(--muted); font-size: 10px; }.version-current { align-self: center; padding: 4px 8px; color: var(--green); border-radius: 8px; background: rgba(120, 216, 151, .08); font-size: 8px; font-weight: 800; }
.empty-state { padding: 60px 20px; color: var(--dim); text-align: center; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; width: min(340px, calc(100vw - 36px)); gap: 8px; }.toast { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: #22251f; box-shadow: var(--shadow); animation: toast-in .2s ease; }.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.toast.error::before { background: var(--red); }.toast.warning::before { background: var(--orange); }.toast span { font-size: 11px; }.toast button { color: var(--muted); border: 0; background: none; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.dialog { width: min(440px, calc(100vw - 32px)); padding: 0; color: var(--text); border: 1px solid var(--line-strong); border-radius: 18px; background: #1b1e18; box-shadow: 0 30px 90px #000; }.dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }.dialog form { padding: 25px; }.dialog h2 { margin-bottom: 9px; }.dialog p.muted { line-height: 1.6; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }.confirm-phrase { display: grid; gap: 7px; margin-top: 17px; }.confirm-phrase span { color: var(--muted); font-size: 10px; }

@media (max-width: 1180px) {
  .filter-layout { grid-template-columns: 220px minmax(360px, 1fr); }.inspector { grid-column: 1 / -1; max-height: none; }.inspector-body { max-height: 470px; }.preset-browser { max-height: 660px; }.filter-layout { min-height: auto; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; grid-template-areas: "topbar" "workspace"; }.topbar { grid-template-columns: 1fr auto; }.catalog-status { display: none; }.navigation { position: fixed; top: 58px; bottom: 0; left: 0; width: 230px; height: auto; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 60px #000; }.navigation.open { transform: none; }.mobile-only { display: grid; }.tabs-layout, .effects-grid { grid-template-columns: 1fr; }.tab-help { display: none; }
}
@media (max-width: 680px) {
  .workspace { padding: 20px 12px; }.topbar { padding: 0 10px; }.topbar-brand strong, .environment-badge, #logoutButton { display: none; }.header-actions .button { min-height: 34px; padding: 0 9px; font-size: 10px; }.view-heading { align-items: flex-start; flex-direction: column; gap: 15px; }.page-action-bar { position: sticky; top: 66px; z-index: 15; align-items: stretch; flex-direction: column; gap: 9px; margin-top: -7px; padding: 11px; background: rgba(20, 22, 18, .98); }.page-action-buttons { display: grid; grid-template-columns: repeat(3, 1fr); }.page-action-buttons .button { min-width: 0; padding: 0 6px; font-size: 10px; }.filter-layout { grid-template-columns: 1fr; }.preset-browser { max-height: 360px; }.preview-stage { min-height: 590px; }.preview-dropzone { min-height: 440px; }.inspector { grid-column: auto; }.tab-card { grid-template-columns: 18px 1fr auto; }.tab-card > select, .tab-card > .tab-query { grid-column: 2 / -1; }.effects-grid { grid-template-columns: minmax(0, 1fr); }.glow-demo { min-height: 390px; }.login-card { padding: 28px 22px; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }
}
