/* EMD Casino System – admin panel */
:root {
  --a-bg: #f4f5f8; --a-card: #fff; --a-text: #1d2330; --a-muted: #6b7385; --a-border: #e2e5ec;
  --a-primary: #3b5bdb; --a-primary-h: #2f4bc4; --a-side: #151a26; --a-side-t: #c5cbd8; --a-side-a: #ffffff;
  --a-ok: #1f9d55; --a-warn: #c27c0e; --a-err: #d63939; --a-info: #2b7bb9; --r: 10px;
}
* { box-sizing: border-box; }
body.admin { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--a-bg); color: var(--a-text); }
a { color: var(--a-primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .8rem; }
h2 { font-size: 1.05rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: #eef0f5; padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--a-muted); } .small { font-size: .85rem; } .strong { font-weight: 600; }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--a-side); color: var(--a-side-t); overflow-y: auto; z-index: 20; transition: transform .2s; }
.sidebar .brand { padding: 18px 18px 14px; border-bottom: 1px solid #ffffff14; }
.sidebar .brand a { color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; display: block; }
.sidebar .brand small { color: #8b93a7; }
.sidebar nav { padding: 8px 0 24px; }
.sidebar .nav-section { padding: 14px 18px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7890; }
.sidebar nav a, .logout-form button { display: flex; align-items: center; gap: 6px; padding: 7px 18px; color: var(--a-side-t); text-decoration: none; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: #ffffff0d; color: #fff; }
.sidebar nav a.active { background: #ffffff14; color: var(--a-side-a); border-left-color: var(--a-primary); font-weight: 600; }
.logout-form { margin-top: 10px; border-top: 1px solid #ffffff14; padding-top: 8px; }
.logout-form button { background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.logout-form button:hover { color: #fff; }

.main { margin-left: 240px; min-height: 100vh; }
.main.no-sidebar { margin-left: 0; display: grid; place-items: center; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--a-border); padding: 10px 24px; }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { color: var(--a-muted); font-size: .85rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--a-border); border-radius: 6px; padding: 4px 10px; font-size: 1.1rem; cursor: pointer; }
.content { padding: 22px 24px 60px; max-width: 1280px; }

/* Cards & layout */
.card { background: var(--a-card); border: 1px solid var(--a-border); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + * { margin-top: 18px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.edit-grid > .card { margin: 0; }
.side .sticky { position: sticky; top: 70px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar h2 { margin: 0; } .toolbar p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--a-muted); margin: 0; }
.stat .num { font-size: 1.6rem; font-weight: 700; color: var(--a-text); }
.stat .num.status-ok { color: var(--a-ok); font-size: 1.2rem; } .stat .num.status-warn { color: var(--a-warn); font-size: 1.2rem; }
a.stat:hover { border-color: var(--a-primary); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0 0 14px; }
.kv dt { color: var(--a-muted); } .kv dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0 0 18px; } .plain-list li { padding: 6px 0; border-bottom: 1px solid var(--a-border); }
.check-list { list-style: none; padding: 0; } .check-list li { padding: 4px 0; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms */
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.field > label { font-weight: 600; font-size: .88rem; }
.req { color: var(--a-err); }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4de; border-radius: 7px; font: inherit; background: #fff; color: inherit;
}
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid #3b5bdb44; border-color: var(--a-primary); }
.help { color: var(--a-muted); font-size: .8rem; } .error { color: var(--a-err); font-size: .82rem; font-weight: 600; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--a-err); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; cursor: pointer; margin-bottom: 8px; }
.check input { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .wide, .form-grid .field-html, .form-grid .field-hosts { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }
form.inline { display: inline; }
.save-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--a-bg) 30%); padding: 14px 0; display: flex; gap: 10px; }
.thumb-preview { max-width: 160px; max-height: 100px; border-radius: 6px; border: 1px solid var(--a-border); object-fit: cover; background: #eee; }
.color-row { display: flex; gap: 8px; } .color-row input[type=color] { width: 46px; height: 38px; padding: 2px; border: 1px solid #cfd4de; border-radius: 7px; background: #fff; }
.color-hex { max-width: 110px; font-family: ui-monospace, monospace; }
.colors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
details.seo-box { border: 1px dashed var(--a-border); border-radius: 8px; padding: 10px 14px; margin-top: 10px; }
details.seo-box summary { cursor: pointer; font-weight: 600; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-toolbar button { border: 1px solid #cfd4de; background: #f7f8fb; border-radius: 5px; padding: 3px 8px; cursor: pointer; font-size: .8rem; }
.editor-toolbar button:hover { background: #eceff6; }
.content-preview { border: 1px solid var(--a-border); border-radius: 7px; padding: 10px 16px; min-height: 200px; max-height: 560px; overflow: auto; }
.content-preview table { border-collapse: collapse; } .content-preview td, .content-preview th { border: 1px solid var(--a-border); padding: 4px 8px; }

/* Buttons & badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--a-primary); background: var(--a-primary); color: #fff; padding: 8px 16px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--a-primary-h); }
.btn.ghost { background: #fff; color: var(--a-text); border-color: #cfd4de; } .btn.ghost:hover { background: #f2f4f8; }
.btn.danger { background: var(--a-err); border-color: var(--a-err); } .btn.danger:hover { background: #b92f2f; }
.btn.small { padding: 4px 10px; font-size: .82rem; } .btn.big { padding: 12px 22px; font-size: 1rem; letter-spacing: .02em; }
.btn.block { width: 100%; margin-bottom: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: .74rem; font-weight: 600; background: #eef0f5; color: var(--a-muted); vertical-align: middle; }
.badge.ok { background: #e3f5ea; color: var(--a-ok); } .badge.warn { background: #fdf1dc; color: var(--a-warn); }
.badge.sample { background: #e8eefc; color: var(--a-primary); }

/* Alerts */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.alert.success { background: #ecf8f0; border-color: #bfe5cd; color: #17683b; }
.alert.error { background: #fdeeee; border-color: #f3c2c2; color: #9b2222; }
.alert.warn { background: #fff6e5; border-color: #f2d9a7; color: #7c5208; }
.alert.info { background: #edf5fc; border-color: #c3dcf1; color: #1d5b8a; }
.alert.compact { padding: 6px 10px; margin-bottom: 8px; font-size: .88rem; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* Tables */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--a-border); text-align: left; vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--a-muted); background: #fafbfc; }
.table tr:hover td { background: #fafbfd; }
.table .cb { width: 34px; } .table .actions { text-align: right; white-space: nowrap; }
.table.compact th, .table.compact td { padding: 6px 10px; }
.list-thumb { width: 56px; height: 36px; object-fit: cover; border-radius: 5px; display: block; background: #eef0f5; }
.empty { padding: 36px; text-align: center; color: var(--a-muted); }
.bulk-bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: #fafbfc; }
.bulk-bar select { width: auto; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; } .pager a { padding: 4px 10px; border: 1px solid var(--a-border); border-radius: 6px; background: #fff; text-decoration: none; }
.pager a.active { background: var(--a-primary); color: #fff; border-color: var(--a-primary); }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-color: #f3c2c2; }
.danger-card { border-color: #f3c2c2; background: #fffafa; }

/* Appearance */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.preset { border: 2px solid var(--a-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.preset.current { border-color: var(--a-primary); }
.swatches { display: flex; gap: 4px; padding: 10px; border-radius: 6px; } .swatches span { flex: 1; height: 26px; border-radius: 4px; border: 1px solid #0002; }
.theme-preview { --p:#d4af37; --s:#8c6d1f; --a:#f5d76e; --bg:#0f0e0c; --hb:#16140f; --fb:#0b0a08; --cb:#1c1a15; --t:#ece6d6; --b:#d4af37; --l:#f0c94f; --bd:#2e2a20; --bh:#f0c94f;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--a-border); margin-bottom: 18px; background: var(--bg); color: var(--t); }
.tp-header { background: var(--hb); padding: 10px 14px; border-bottom: 1px solid var(--bd); font-weight: 600; color: var(--p); }
.tp-body { padding: 16px; } .tp-card { background: var(--cb); border: 1px solid var(--bd); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.tp-card p { margin: 4px 0 10px; } .tp-link { color: var(--l); text-decoration: underline; }
.tp-btn { display: inline-block; background: var(--b); color: #111; padding: 6px 14px; border-radius: 6px; font-weight: 700; }
.tp-btn:hover { background: var(--bh); }
.tp-accent, .tp-primary, .tp-secondary { display: inline-block; padding: 2px 10px; border-radius: 20px; color: #111; font-size: .8rem; font-weight: 600; }
.tp-accent { background: var(--a); } .tp-primary { background: var(--p); } .tp-secondary { background: var(--s); color: #fff; }
.tp-footer { background: var(--fb); padding: 10px 14px; font-size: .8rem; opacity: .9; }

/* Switches & features */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input[type=checkbox] { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cfd4de; border-radius: 24px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--a-ok); } .switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--a-primary); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.feature { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; margin: 0; }
.feature-text { display: flex; flex-direction: column; gap: 2px; } .feature-text small { color: var(--a-muted); }
.sections-list .section-row { padding: 12px 16px; margin-bottom: 10px; transition: background .3s; }
.section-row.disabled { opacity: .6; } .section-row.moved { background: #eef3ff; }
.section-head { display: flex; align-items: center; gap: 12px; } .push-right { margin-left: auto; }
.section-body { margin-top: 14px; } .move { display: flex; gap: 4px; }

/* Featured / media */
.pick-list { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; margin-bottom: 16px; }
.pick { display: flex; align-items: center; gap: 12px; border: 1px solid var(--a-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--a-primary); background: #f3f6ff; }
.pick img { width: 64px; height: 40px; object-fit: cover; border-radius: 5px; }
.pick-body { display: flex; flex-direction: column; } .pick-body small { color: var(--a-muted); }
.preview-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-item { padding: 0; overflow: hidden; margin: 0; } .media-item.highlight { outline: 3px solid var(--a-err); }
.media-item img { width: 100%; height: 140px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px; display: block; }
.media-meta { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.copy { cursor: copy; font-size: .78rem !important; } .copy.copied { border-color: var(--a-ok); background: #ecf8f0; }
.steps { padding-left: 18px; }

/* Login */
.login-box { width: min(400px, 92vw); margin: 10vh auto; padding: 28px; }
.login-box h1 { font-size: 1.3rem; margin-bottom: 4px; }

@media (max-width: 1000px) {
  .grid-2, .edit-grid { grid-template-columns: 1fr; }
  .side .sticky { position: static; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px #0006; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-block; }
  .content { padding: 16px; }
  .form-grid, .form-grid.three, .colors-grid, .check-grid { grid-template-columns: 1fr; }
  .who { display: none; }
}

/* Installer */
body.install { background: linear-gradient(160deg, #151a26, #2a3350); min-height: 100vh; }
.install-wrap { width: min(820px, 94vw); margin: 40px auto; }
.install-title { color: #fff; font-size: 1.4rem; } .install-title small { color: #aab3c7; font-size: .85rem; font-weight: 400; }
.install-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.install-steps li { color: #aab3c7; background: #ffffff10; padding: 6px 12px; border-radius: 20px; font-size: .85rem; }
.install-steps li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ffffff22; font-size: .75rem; margin-right: 4px; }
.install-steps li.active { background: #fff; color: var(--a-text); font-weight: 600; } .install-steps li.active span { background: var(--a-primary); color: #fff; }
.install-steps li.done span { background: var(--a-ok); color: #fff; }
.big-pick { align-items: flex-start; padding: 16px; } .big-pick input { margin-top: 4px; }
.install .card .btn { margin-top: 6px; }

/* ===== Visual editor ===== */
.ve { border: 1px solid #cfd4de; border-radius: 10px; background: #fff; overflow: visible; }
.ve:focus-within { border-color: var(--a-primary); box-shadow: 0 0 0 3px #3b5bdb22; }
.ve-toolbar { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; background: #f7f8fb; border-bottom: 1px solid #e2e5ec; border-radius: 10px 10px 0 0; }
.ve-toolbar button, .ve-context button { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px 9px; cursor: pointer; font: inherit; font-size: .85rem; color: var(--a-text); line-height: 1.2; }
.ve-toolbar button:hover, .ve-context button:hover { background: #e8ebf3; border-color: #d6dae4; }
.ve-toolbar button.on { background: #dfe6fb; border-color: #b9c7f3; color: var(--a-primary); }
.ve-toolbar button:disabled, .ve-toolbar select:disabled { opacity: .35; cursor: not-allowed; }
.ve-toolbar select { width: auto; padding: 5px 8px; font-size: .85rem; border-radius: 6px; background: #fff; }
.ve-sep { width: 1px; height: 22px; background: #d6dae4; margin: 0 3px; }
.ve-spacer { flex: 1; }
.ve-code-btn { font-family: ui-monospace, monospace; color: var(--a-muted) !important; font-size: .78rem !important; }
.ve-context { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; background: #eef3ff; border-bottom: 1px solid #d5def7; font-size: .85rem; }
.ve-context[hidden] { display: none; }
.ve-context span { font-weight: 600; color: var(--a-primary); margin-right: 4px; }
.ve-context button.danger { color: var(--a-err); }
.ve-area { min-height: 380px; max-height: 75vh; overflow-y: auto; padding: 26px 30px; outline: none; font: 16px/1.7 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: #1f2937; }
.ve-source { border: 0; border-radius: 0; min-height: 380px; font-size: 13px; }
.ve-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 12px; border-top: 1px solid #e2e5ec; font-size: .78rem; color: var(--a-muted); background: #fafbfc; border-radius: 0 0 10px 10px; }
/* page-like preview inside the editor */
.ve-area h2 { font-size: 1.45rem; margin: 1.4em 0 .6em; padding-bottom: 8px; position: relative; }
.ve-area h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1e73be, #f5a623); }
.ve-area h3 { font-size: 1.12rem; margin: 1.2em 0 .5em; color: #0b3d6e; }
.ve-area > :first-child { margin-top: 0; }
.ve-area p { margin: 0 0 1em; }
.ve-area ul, .ve-area ol { padding-left: 1.5em; margin: 0 0 1em; }
.ve-area a { color: #1a66ad; }
.ve-area img { max-width: 100%; height: auto; border-radius: 8px; cursor: pointer; }
.ve-area img.ve-selected { outline: 3px solid var(--a-primary); outline-offset: 2px; }
.ve-area table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; }
.ve-area th, .ve-area td { border: 1px solid #dde5ef; padding: 8px 10px; min-width: 60px; text-align: left; vertical-align: top; }
.ve-area thead th { background: linear-gradient(135deg, #0b3d6e, #1e73be); color: #fff; }
.ve-area hr { border: 0; border-top: 2px dashed #dde5ef; margin: 1.5em 0; }
.ve-area .btn, .ve-area a.btn { display: inline-block; background: #1e73be; color: #fff; padding: 9px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; }
.ve-area a.btn-secondary { background: #f5a623; color: #1b1300; }
.ve-area .callout { border: 1px solid #b9d3ee; border-left: 5px solid #1e73be; background: #eef5fc; border-radius: 10px; padding: 12px 16px; margin: 0 0 1em; }
.ve-area .callout > :last-child { margin-bottom: 0; }
.ve-area .callout.callout-warn { background: #fff6e8; border-color: #f6d6a0; border-left-color: #f5a623; }
.ve-area .callout.callout-success { background: #ecf8f0; border-color: #bfe5cd; border-left-color: #1a9a5a; }
.ve-area ol.steps { list-style: none; counter-reset: s; padding: 0; }
.ve-area ol.steps > li { counter-increment: s; position: relative; padding: 10px 14px 10px 54px; margin-bottom: 8px; background: #eef5fc; border: 1px solid #dde5ef; border-radius: 10px; }
.ve-area ol.steps > li::before { content: counter(s); position: absolute; left: 12px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1e73be; color: #fff; font-weight: 800; font-size: .85rem; }
.ve-area ul.checklist { list-style: none; padding: 0; }
.ve-area ul.checklist > li { position: relative; padding-left: 30px; }
.ve-area ul.checklist > li::before { content: "✓"; position: absolute; left: 0; color: #168a50; font-weight: 900; }
.ve-area ul.checklist.callout-warn { background: none; border: 0; padding: 0; }
.ve-area ul.checklist.callout-warn > li::before { content: "✕"; color: #c23434; }
.ve-area .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1em; }
.ve-area .feature-card { border: 1px solid #dde5ef; border-top: 4px solid #1e73be; border-radius: 12px; padding: 12px 14px; }
.ve-area .feature-card h3 { margin: 6px 0 4px; }
.ve-area .feature-icon { font-size: 1.4rem; }
.ve-area:empty::before { content: "Start writing here…"; color: #9aa3b5; }
/* modal */
.ve-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.ve-modal-box { background: #fff; border-radius: 14px; width: min(460px, 100%); padding: 22px 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.ve-modal-box h3 { margin: 0 0 14px; font-size: 1.1rem; }
.ve-modal-body label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
.ve-modal-body label input:not([type=checkbox]), .ve-modal-body label select { margin-top: 5px; font-weight: 400; }
.ve-modal-body .ve-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.ve-modal-body .ve-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ve-or { text-align: center; color: var(--a-muted); font-size: .8rem; margin: -4px 0 8px; }
.ve-modal-error { color: var(--a-err); font-weight: 600; font-size: .88rem; margin: 0 0 10px; }
.ve-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 800px) {
  .ve-toolbar { top: 0; position: static; }
  .ve-area { padding: 16px; }
  .ve-area .feature-grid { grid-template-columns: 1fr; }
}

/* Row lists */
.pairs { border: 1px solid #e2e5ec; border-radius: 10px; padding: 10px; background: #fafbfc; }
.pair-head, .pair-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto auto; gap: 8px; align-items: center; }
.pair-head { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-muted); padding: 0 2px 6px; }
.pair-head span:nth-child(2) { grid-column: 2 / 5; }
.pair-row { margin-bottom: 8px; }
.pair-move { display: flex; gap: 2px; }
.danger-text { color: var(--a-err) !important; }
@media (max-width: 800px) { .pair-row { grid-template-columns: 1fr auto; } .pair-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .pair-move { display: none; } .pair-head { display: none; } }
details.adv { margin-top: 4px; font-size: .8rem; color: var(--a-muted); }
details.adv summary { cursor: pointer; }
details.adv input { margin-top: 6px; }
