/* Nova Business Template v1.0 · © 2026 Matibox (Neo Lapse Creative Corporation)
   Use of this file is governed by the license you purchased. Do not redistribute or resell. */
/* Control panel styles */
:root {
  --bg: #0d0e13; --panel: #161821; --panel-2: #1e2130; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --fg: #EDEAE3; --muted: #9a968f; --accent: #8B7CFF; --on-accent: #0D0B1A;
  --ok: #8fcf8a; --warn: #e9a65a; --err: #ee8f7a; --info: #7fb6d6;
  --r: 12px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); }
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
code { font: 13px ui-monospace, Menlo, Consolas, monospace; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 18px; }
h3 { margin: 6px 0 0; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 14px var(--font); color: var(--fg); background: rgba(255,255,255,.1); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, opacity .2s; }
.btn:hover { background: rgba(255,255,255,.18); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: var(--fg); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger:hover { color: var(--err); background: rgba(238,143,122,.12); }
.btn:disabled { opacity: .6; cursor: progress; }
.link { color: var(--accent); cursor: pointer; text-decoration: underline; }

/* forms */
label, .lbl { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label small { font-weight: 400; }
input, textarea, select { font: 15px var(--font); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,124,255,.18); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.stack { display: grid; gap: 16px; }
.stack.tight { gap: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.tight { gap: 4px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.row.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.row.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .row.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .row.two, .row.three, .row.four { grid-template-columns: 1fr; } }

.alert { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: var(--panel); border-left: 3px solid var(--info); }
.alert.ok { border-color: var(--ok); }
.alert.warn { border-color: var(--warn); }
.alert.err { border-color: var(--err); color: #ffd9cf; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
.pill.draft { background: rgba(233,166,90,.14); color: var(--warn); }
.pill.ok { background: rgba(139,124,255,.16); color: var(--ok); }
.pill.big { font-size: 14px; padding: 6px 14px; }
.bar { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* auth */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(60vw 60vw at 80% 0%, rgba(139,124,255,.08), transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); background: var(--panel); border-radius: 18px; padding: 32px; display: grid; gap: 14px; box-shadow: 0 30px 80px -40px #000; }
.auth-logo { width: 56px; height: 56px; }

/* shell */
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; padding: 0 8px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.side-nav a[aria-current="page"] { background: rgba(139,124,255,.12); color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-foot .btn { justify-content: flex-start; width: 100%; }
.side-foot form { margin: 0; }
.main { padding: 26px clamp(16px, 3vw, 40px) 80px; max-width: 1280px; width: 100%; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; overflow-x: auto; }
  .side-brand span, .side-nav a span { display: none; }
  .side-nav { display: flex; }
  .side-foot { margin: 0 0 0 auto; display: flex; }
  .side-foot .btn { width: auto; }
}

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.page-head.sticky { position: sticky; top: 0; z-index: 10; background: rgba(13,14,19,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: -26px calc(-1 * clamp(16px, 3vw, 40px)) 20px; padding: 18px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .page-head.sticky { top: 58px; } }
body.dirty [data-save], body.dirty [data-save-settings], body.dirty [data-save-menu], body.dirty [data-save-design] { box-shadow: 0 0 0 3px rgba(139,124,255,.35); }
.back { color: var(--muted); text-decoration: none; font-size: 13px; }
.card { background: var(--panel); border-radius: 16px; padding: clamp(16px, 2vw, 24px); margin-bottom: 16px; }

/* project list */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; background: var(--panel); border-radius: 12px; }
.prow.dragging { opacity: .5; outline: 2px dashed var(--accent); }
.prow.is-draft .pthumb { opacity: .55; }
.handle { color: var(--muted); cursor: grab; display: grid; place-items: center; border-radius: 6px; }
.pthumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ptitle { color: var(--fg); font-weight: 700; text-decoration: none; display: block; }
.ptitle:hover { color: var(--accent); }
.pills { display: flex; gap: 6px; }
.pactions { display: flex; gap: 4px; }
@media (max-width: 900px) {
  .prow { grid-template-columns: 24px 72px minmax(0, 1fr); }
  .pthumb { width: 72px; }
  .pills { grid-column: 3; }
  .pactions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
}

/* modal */
.modal { border: 0; padding: 26px; border-radius: 16px; background: var(--panel); color: var(--fg); width: min(460px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }

/* switches */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--fg); font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* settings */
.rep { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; border-radius: 12px; background: var(--panel-2); margin-bottom: 10px; align-items: start; }
.rep .w2 { grid-column: span 2; }
.rep .w3 { grid-column: span 3; }
.rep .w4 { grid-column: 1 / -1; }
.rep-tools { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 4px; }
@media (max-width: 760px) { .rep, .rep-compact .rep { grid-template-columns: 1fr; } .rep .w2, .rep .w3 { grid-column: auto; } }
.file-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; }
.file-field img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #0e1116; padding: 4px; }
.file-field a { font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field .bar { width: 120px; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.library button { border: 0; padding: 0; background: var(--panel-2); border-radius: 8px; overflow: hidden; cursor: pointer; color: var(--muted); text-align: left; }
.library button:hover { outline: 2px solid var(--accent); }
.library img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.library span { display: block; font-size: 11px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tools */
.backups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.backups li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel-2); border-radius: 10px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(560px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 12px; background: #262c31; color: var(--fg); font-weight: 600; box-shadow: 0 20px 50px -20px #000; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #3a2420; color: #ffd9cf; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Messages */
.side-nav a .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 20px; text-align: center; }
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg { display: grid; gap: 10px; margin: 0; }
.msg.unread { box-shadow: inset 3px 0 0 var(--accent); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.msg-head a { margin-left: 6px; word-break: break-all; }
.msg-head .pill { margin-left: 6px; background: rgba(139,124,255,.16); color: var(--accent); }
.msg-body { margin: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.msg-actions { display: flex; gap: 8px; }

/* Language switch (panel) */
.lang-switch { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.lang-switch a { color: inherit; text-decoration: none; }
.lang-switch a:hover { color: var(--fg); text-decoration: underline; }
.lang-switch b { color: var(--fg); font-weight: 600; }
.side-foot .lang-switch { justify-content: flex-start; padding: 2px 10px; }

/* ===== Nova ===== */
.side-brand img { border-radius: 9px; }
.page-ico { display: grid; place-items: center; color: var(--accent); aspect-ratio: auto; height: 46px; width: 46px !important; background: rgba(139,124,255,.1); }
.page-ico .ico { width: 22px; height: 22px; }
.prow { grid-template-columns: 28px 46px minmax(0, 1fr) auto auto; }
@media (max-width: 900px) { .prow { grid-template-columns: 24px 46px minmax(0, 1fr); } }
.prow.is-draft .ptitle { opacity: .6; }
.modal.wide { width: min(920px, calc(100% - 32px)); }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--fg) !important; font-weight: 500 !important; font-size: 14px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* page editor */
.editor { display: grid; gap: 18px; align-items: start; }
body.with-live .editor, .editor.with-live { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
body.with-live .main, body[data-page="design"] .main { max-width: none; }
@media (max-width: 1100px) { body.with-live .editor, .editor.with-live { grid-template-columns: 1fr; } .live { position: static !important; height: 70vh !important; } }
.page-props { padding: 14px 18px; }
.page-props summary { color: var(--fg); list-style: none; display: flex; gap: 10px; align-items: baseline; }
.page-props summary::before { content: "▸"; color: var(--accent); }
.page-props[open] summary::before { content: "▾"; }
.page-props[open] summary { margin-bottom: 14px; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blk { background: var(--panel); border-radius: 14px; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.blk.open { border-color: rgba(139,124,255,.45); box-shadow: 0 20px 50px -30px rgba(139,124,255,.5); }
.blk.is-hidden .blk-title { opacity: .55; }
.blk.dragging { opacity: .45; outline: 2px dashed var(--accent); }
.blk-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 8px 10px 8px 6px; }
.blk-title { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; padding: 6px; border-radius: 10px; }
.blk-title:hover { background: rgba(255,255,255,.04); }
.blk-title b { white-space: nowrap; }
.blk-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.blk-ico, .pk-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(139,124,255,.12); }
.blk-ico svg, .pk-ico svg { width: 18px; height: 18px; }
.blk-tools .btn { padding: 6px 9px; min-width: 32px; }
.blk-tools .btn svg { width: 16px; height: 16px; }
.blk-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.blk-body > p { margin: 10px 0 0; }
.blk-more summary { font-size: 13px; }
.blk-more[open] summary { margin-bottom: 12px; }
@media (max-width: 640px) { .blk-head { grid-template-columns: 22px minmax(0, 1fr); } .blk-tools { grid-column: 1 / -1; justify-content: flex-end; } .blk-sum { display: none; } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
.fields .w2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; min-width: 0; }
.fl { font-size: 13px; font-weight: 600; color: var(--muted); }
.fl small { font-weight: 400; opacity: .85; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.img-field { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
.img-field > img, .img-empty { width: 92px; height: 62px; flex: none; border-radius: 8px; object-fit: cover; background: #0b0c10; }
.img-empty { display: grid; place-items: center; color: var(--muted); }
.img-empty svg { width: 22px; height: 22px; }
.img-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-tools .bar { width: 100px; }
.ico-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font: 14px var(--font); cursor: pointer; justify-self: start; }
.ico-btn svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: rgba(139,124,255,.14); color: var(--accent); }
.list-field .items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--panel-2); border-radius: 12px; padding: 10px 12px 14px; border: 1px solid var(--line); }
.item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.item-sum { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .btn { padding: 4px 8px; }
.item input, .item textarea, .item select { background: var(--panel); }
.list-field > .btn { justify-self: start; }
.add-block { width: 100%; padding: 16px; border-radius: 14px; border: 2px dashed rgba(139,124,255,.4); background: rgba(139,124,255,.05); color: var(--accent); font: 700 15px var(--font); cursor: pointer; transition: background .2s, border-color .2s; }
.add-block:hover { background: rgba(139,124,255,.12); border-color: var(--accent); }
.add-block span { font-size: 20px; vertical-align: -2px; }
.empty.card { color: var(--muted); text-align: center; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.picker button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font: 14px var(--font); cursor: pointer; }
.picker button:hover { border-color: var(--accent); background: rgba(139,124,255,.08); }
.picker .pk-ico { grid-row: span 2; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; }
.icons button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 8px; border: 1px solid transparent; border-radius: 10px; background: var(--panel-2); color: var(--fg); cursor: pointer; }
.icons button:hover { border-color: var(--accent); color: var(--accent); }
.icons svg { width: 24px; height: 24px; }
.icons span { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* live preview */
.live { position: sticky; top: 96px; height: calc(100vh - 116px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.live-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-bar [aria-pressed="true"] { background: rgba(139,124,255,.16); color: var(--accent); }
.live-frame { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); display: grid; justify-items: center; align-items: start; transition: background .2s; }
.live-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; justify-self: start; }
.live-frame.mobile iframe { justify-self: center; height: 100%; }
.live-frame.mobile { background: var(--panel-2); padding: 14px 0; }
.live-frame.mobile iframe { width: 390px; max-width: 100%; border-radius: 22px; box-shadow: 0 0 0 8px #000, 0 30px 60px -20px #000; }
[data-live][aria-pressed="true"] { background: rgba(139,124,255,.16); color: var(--accent); }

/* design */
.palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.pal { display: flex; padding: 4px; gap: 3px; border-radius: 12px; border: 2px solid transparent; background: var(--panel-2); cursor: pointer; }
.pal i { width: 22px; height: 30px; border-radius: 7px; }
.pal.on, .pal:hover { border-color: var(--accent); }
.color { display: flex; gap: 8px; align-items: center; }
.color input[type=color] { width: 46px; height: 42px; padding: 3px; flex: none; cursor: pointer; }
.color input:not([type]) { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.font-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pair-btn { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 2px solid transparent; background: var(--panel-2); color: var(--fg); font: 14px var(--font); cursor: pointer; }
.pair-btn span { color: var(--muted); font-size: 12.5px; }
.pair-btn.on, .pair-btn:hover { border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); color: var(--fg); font-weight: 600; font-size: 14px; border: 2px solid transparent; }
.choice small { color: var(--muted); font-weight: 400; }
.choice input:checked + span { border-color: var(--accent); background: rgba(139,124,255,.1); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.corner { width: 22px; height: 16px; border: 2px solid currentColor; border-right: 0; border-bottom: 0; }
.corner.soft { border-top-left-radius: 6px; } .corner.round { border-top-left-radius: 14px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.preset { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font: 14px var(--font); cursor: pointer; text-align: left; }
.preset:hover { border-color: var(--accent); }
.preset.on { border-color: rgba(139,124,255,.6); }

/* menu */
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mi { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel-2); border-radius: 12px; }
.mi.lvl1 { margin-left: 44px; border-left: 3px solid rgba(139,124,255,.5); }
.mi-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.mi .pair { flex: 1; }
@media (max-width: 640px) { .mi { grid-template-columns: 36px minmax(0, 1fr); } .mi > .row { grid-column: 1 / -1; justify-content: flex-end; } .mi.lvl1 { margin-left: 20px; } }
.rep.pair3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; margin-bottom: 8px; padding: 10px; }
@media (max-width: 640px) { .rep.pair3 { grid-template-columns: 1fr; } }
.reps:empty::after { content: ""; }
@media (max-width: 1100px) { [data-live] { display: none; } body.with-live .live { display: none; } }

/* Matibox WebControl */
.wc-brand{padding:2px 8px 0}.wc-brand .wc-full{width:168px;height:auto;border-radius:0}.wc-brand .wc-icon{display:none}.auth-logo.wc-logo{width:240px;height:auto;border-radius:0;margin:0 auto 6px}
@media (max-width: 860px){.wc-brand{flex:none;padding:0 4px}.wc-brand .wc-full{display:none}.wc-brand .wc-icon{display:block;width:34px;min-width:34px;height:34px}}
