/* 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[type=date], 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(--ht, 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: var(--btt, #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; color: var(--ft, inherit); }

/* 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; }

/* ---------- Multi-language ---------- */
.flag { display: inline-block; width: 22px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); vertical-align: middle; flex: none; }
.flag.flag-md { width: 30px; } .flag.flag-lg { width: 48px; border-radius: 5px; }
.flag-emoji, .flag-none { font-size: 18px; line-height: 1; box-shadow: none; width: auto; aspect-ratio: auto; }
.tr-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; flex: none; }
.tr-dot.ok { background: #e3f6ea; color: var(--a-ok); }
.tr-dot.warn { background: #fdf0d9; color: var(--a-warn); }
.tr-dot.draft { background: #eef0f5; color: var(--a-muted); }
.tr-dot.none { background: #eef2ff; color: var(--a-primary); border: 1px dashed #b7c3f5; }
.flag-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.flag-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--a-text); border: 1px solid transparent; }
.flag-list a:hover { background: #f4f6fb; border-color: var(--a-border); }
.flag-list a > span:not(.tr-dot) { flex: 1; line-height: 1.25; } .flag-list a small { display: block; }
.flag-list li.is-current a { background: #eef2ff; border-color: #c9d3fb; }
.flag-list li.is-working a { opacity: .6; } .flag-list li.is-working .tr-dot { animation: trspin 1s linear infinite; }
.flag-list li.is-error a { border-color: var(--a-err); }
@keyframes trspin { to { transform: rotate(360deg); } }
.tr-panel { margin-top: 16px; } .tr-panel h3 { font-size: 1rem; margin-bottom: 4px; }
.side .card .tr-panel { margin: 14px 0; padding: 12px 0; border: 0; border-top: 1px solid var(--a-border); border-bottom: 1px solid var(--a-border); border-radius: 0; box-shadow: none; background: none; }
.tr-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tr-head h2 { margin: 0 0 4px; } .tr-head p { margin: 0; } .tr-head-state { margin-left: auto; }
.tr-orig-line { display: flex; gap: 8px; align-items: flex-start; background: #f6f7fa; border: 1px solid var(--a-border); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; font-size: .9rem; color: #4a5266; }
.tr-orig-line .flag { margin-top: 3px; }
.tr-orig { margin-bottom: 6px; } .tr-orig summary { cursor: pointer; color: var(--a-muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.tr-orig-html { background: #f6f7fa; border: 1px solid var(--a-border); border-radius: 8px; padding: 10px 14px; margin-top: 6px; max-height: 360px; overflow: auto; font-size: .9rem; }
.tr-fields .tr-field { margin-bottom: 18px; }
.tr-fields input[type=text], .tr-fields textarea { width: 100%; }
.tr-auto, .tr-langs { border-top: 1px solid var(--a-border); margin-top: 14px; padding-top: 12px; display: grid; gap: 8px; }
.btn.is-busy { opacity: .75; cursor: progress; }
.tr-mini { white-space: nowrap; } .tr-mini-flag { display: inline-block; margin-right: 3px; position: relative; }
.tr-mini-flag.none .flag { filter: grayscale(1); opacity: .35; } .tr-mini-flag.draft .flag { opacity: .6; }
.tr-mini-flag.outdated::after { content: "!"; position: absolute; right: -4px; top: -6px; background: var(--a-warn); color: #fff; border-radius: 50%; width: 12px; height: 12px; font-size: 9px; line-height: 12px; text-align: center; font-weight: 700; }
.tr-bulk-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.tr-total { text-align: right; } .tr-total strong { display: block; font-size: 1.8rem; line-height: 1; color: var(--a-primary); }
.tr-bulk-row { display: grid; gap: 12px; }
.tr-bulk-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-lang-pick { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--a-border); border-radius: 999px; padding: 5px 12px 5px 8px; cursor: pointer; background: #fff; }
.tr-bulk-actions { display: flex; gap: 8px; }
.progress { height: 10px; background: #eef0f5; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a-primary), #6f8cff); transition: width .3s; }
.tr-matrix th.tr-col, .tr-matrix td.tr-col { text-align: center; width: 64px; }
.tr-matrix th.tr-col span { display: block; font-size: .68rem; color: var(--a-muted); margin-top: 2px; }
.tr-cell { display: inline-block; padding: 2px; border-radius: 50%; } .tr-cell:hover .tr-dot { outline: 2px solid var(--a-primary); }
.tr-cell.is-working .tr-dot { animation: trspin 1s linear infinite; } .tr-cell.is-error .tr-dot { background: #fde4e4; color: var(--a-err); }
.tr-legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.table-title { padding: 14px 16px 0; }
.lang-table input[type=text], .lang-table input[type=number], .lang-table select { padding: 5px 7px; font-size: .88rem; }
.lang-table td { vertical-align: middle; } .lang-table tr.is-default { background: #f5f8ff; } .lang-table tr.is-off td { opacity: .6; }
.w-40 { width: 44px; } .w-60 { width: 70px; } .w-120 { width: 130px; } .w-140 { width: 150px; }
.country-filter { max-width: 260px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 12px; }
.country-btn { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border: 1px solid var(--a-border); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--a-text); }
.country-btn:hover { border-color: var(--a-primary); background: #f5f7ff; }
.country-btn > span { display: flex; flex-direction: column; line-height: 1.25; } .country-btn small { color: var(--a-muted); }
.country-btn.taken { opacity: .45; cursor: not-allowed; } .country-btn[hidden] { display: none; }
.switch.small { transform: scale(.85); }
@media (max-width: 700px) { .tr-head { flex-wrap: wrap; } .tr-bulk-head { flex-direction: column; } }
.tr-fields [dir="rtl"] .ve-toolbar, .tr-fields [dir="rtl"] .ve-footer, .tr-fields [dir="rtl"] .ve-context { direction: ltr; }
.lang-list { display: grid; gap: 10px; margin-bottom: 14px; }
.lang-row { border: 1px solid var(--a-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.lang-row.is-default { background: #f5f8ff; border-color: #c9d3fb; } .lang-row.is-off .lang-main > .flag, .lang-row.is-off .lang-title { opacity: .5; }
.lang-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-title { display: flex; flex-direction: column; line-height: 1.35; min-width: 220px; flex: 1; }
.lang-title strong { font-size: 1rem; }
.lang-meta { display: flex; align-items: center; gap: 14px; }
.lang-active { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lang-actions { display: flex; gap: 6px; }
.lang-edit { margin-top: 8px; } .lang-edit summary { cursor: pointer; color: var(--a-muted); font-size: .85rem; }
.lang-edit .form-grid { margin-top: 10px; }
[hidden] { display: none !important; }

/* Manual translation (2.4.1) */
.tr-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tr-label-row label { margin: 0; }
.tr-howto { line-height: 1.5; }
.side .btn + small.muted { display: block; margin-top: 6px; }

/* One-page translation (2.4.2) */
.tr-fast summary { cursor: pointer; }
.tr-fast-steps { display: grid; gap: 12px; margin: 12px 0 6px; padding-left: 20px; }
.tr-fast-steps textarea { width: 100%; margin: 6px 0; }
.tr-block { margin-bottom: 16px; }
.tr-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--a-border); padding-bottom: 8px; margin-bottom: 14px; }
.tr-block-head h2 { margin: 0; font-size: 1.1rem; }
.tr-num { font-family: ui-monospace, monospace; font-size: .78rem; color: var(--a-muted); }
.tr-btns { display: inline-flex; gap: 6px; }
.tr-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end;
  background: #fff; border: 1px solid var(--a-border); border-radius: 10px; padding: 10px 14px; box-shadow: 0 -4px 16px rgba(0,0,0,.06); margin-bottom: 16px; }
.tr-savebar > span { margin-right: auto; }
.tr-savebar select { width: auto; }
.tr-lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-lang-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--a-border); border-radius: 999px; text-decoration: none; }
.tr-lang-tabs a.is-current { background: #eef2ff; border-color: #4f5bd5; font-weight: 600; }
.tr-list td.tr-prog { white-space: nowrap; }

/* Users & groups, activity log (2.5.0) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--a-border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; text-decoration: none; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: inherit; margin-bottom: -1px; }
.tabs a.active { background: #fff; border-color: var(--a-border); font-weight: 600; }
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.group-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.group-card.is-admin { border-color: #f0c36d; }
.group-card-head, .group-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.group-card-head h3 { margin: 0; }
.group-card-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--a-border); }
.perm-summary { margin: 0; padding-left: 18px; }
.perm-matrix th, .perm-matrix td { text-align: center; }
.perm-matrix tbody th { text-align: left; white-space: nowrap; }
.perm-cb { display: inline-flex; padding: 6px; cursor: pointer; }
.perm-cb input { width: 18px; height: 18px; }
.perm-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.perm-section { border: 1px solid var(--a-border); border-radius: 10px; padding: 10px 14px; margin: 0; }
.perm-section legend { font-weight: 700; padding: 0 6px; }
.perm-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.perm-row.is-disabled { opacity: .5; }
.perm-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.activity-filters .form-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.activity-table td { vertical-align: top; }
.activity-table .nowrap { white-space: nowrap; }
.act-deleted td:nth-child(3), .act-login_failed td:nth-child(3), .act-denied td:nth-child(3), .act-failed td:nth-child(3) { color: #b42318; }
.act-published td:nth-child(3), .act-created td:nth-child(3) { color: #067647; }
.is-readonly input, .is-readonly textarea, .is-readonly select { pointer-events: none; background: #f6f7f9; }

/* Editor 2.6: headings, colours, alignment */
.ve { position: relative; }
.ve-area h1 { font-size: 1.9rem; margin: 1.2em 0 .6em; }
.ve-area h4 { font-size: 1.05rem; margin: 1.1em 0 .5em; }
.ve-area h5 { font-size: .98rem; margin: 1em 0 .4em; }
.ve-area h6 { font-size: .85rem; margin: 1em 0 .4em; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.ve-area h2[style*="center"]::after { left: 50%; transform: translateX(-50%); }
.ve-area h2[style*="right"]::after { left: auto; right: 0; }
.ve-area blockquote { border-left: 4px solid #1e73be; margin: 0 0 1em; padding: 6px 16px; background: #f3f6fb; border-radius: 0 8px 8px 0; color: #4b5563; }
.ve-area pre { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; font: 14px/1.5 ui-monospace, monospace; }
.ve-area hr { border: 0; height: 2px; background: #e5e7eb; margin: 1.5em 0; }
.ve-toolbar button svg { display: block; }
.ve-color-btn { display: inline-flex !important; flex-direction: column; align-items: center; gap: 1px; padding: 3px 8px !important; }
.ve-color-btn .ve-a { font-weight: 700; line-height: 1; }
.ve-color-btn .ve-hl { font-weight: 600; line-height: 1; font-size: .8rem; }
.ve-swatch { display: block; width: 16px; height: 4px; border-radius: 2px; }
.ve-pop { position: absolute; z-index: 30; width: 250px; background: #fff; border: 1px solid #d6dae4; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); padding: 10px 12px; }
.ve-pop-title { font-weight: 700; margin-bottom: 6px; }
.ve-pop-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 8px 0 4px; }
.ve-sws { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ve-sw { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; }
.ve-sw:hover { transform: scale(1.12); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.ve-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .85rem; }
.ve-pop-row label { display: flex; align-items: center; gap: 6px; margin: 0; }
.ve-pop-row input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid #d6dae4; border-radius: 6px; }
.ve-pop-none { border: 1px solid #d6dae4; background: #fff; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: .8rem; }
.ve-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.ve-chars button { font-size: 1.15rem; padding: 6px 0; border: 1px solid #e2e5ec; background: #fff; border-radius: 6px; cursor: pointer; }
.ve-chars button:hover { background: #eef2ff; }

/* Appearance 2.6: undo, readability, logo palette */
.color-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-undo { border: 1px solid var(--a-border); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: .85rem; white-space: nowrap; }
.color-undo:hover:not(:disabled) { background: #eef2ff; border-color: #b9c7f3; color: var(--a-primary); }
.color-undo:disabled { opacity: .35; cursor: default; }
.field.color-changed > label::after { content: " • changed"; color: #b45309; font-weight: 500; font-size: .8rem; }
.card-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head-row h2 { margin: 0; }
.readability { margin: 12px 0 18px; padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.readability.is-bad { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.readability.is-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.readability ul { margin: 6px 0 0; padding-left: 18px; } .readability li { margin: 4px 0; }
.logo-palette { margin-bottom: 18px; }
.lp-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #c3cad9; border-radius: 12px; background: #f8f9fc; cursor: pointer; text-align: center; transition: .15s; }
.lp-drop:hover, .lp-drop.is-over { border-color: var(--a-primary); background: #eef2ff; }
.lp-drop-icon { font-size: 1.6rem; color: var(--a-primary); }
.lp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.lp-thumbs figure { position: relative; margin: 0; width: 84px; height: 84px; border: 1px solid var(--a-border); border-radius: 10px; padding: 6px;
  background: repeating-conic-gradient(#eef0f4 0 25%, #fff 0 50%) 0 0/14px 14px; }
.lp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lp-thumbs button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #111; color: #fff; cursor: pointer; font-size: .7rem; }
.lp-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lp-sw { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; width: 92px; height: 64px; border-radius: 10px; border: 2px solid rgba(0,0,0,.08); padding: 6px 8px; cursor: pointer; font: 600 .75rem ui-monospace, monospace; text-align: left; }
.lp-sw small { opacity: .8; font-weight: 500; }
.lp-sw.is-main { outline: 3px solid var(--a-primary); outline-offset: 2px; }
.lp-sw.is-main::before { content: "★ main"; font-size: .7rem; margin-bottom: auto; }
.lp-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lp-pal { border: 1px solid var(--a-border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.lp-prev { border: 1px solid; border-radius: 8px; overflow: hidden; font-size: .78rem; }
.lp-head { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; } .lp-head span { opacity: .85; }
.lp-body { padding: 10px; } .lp-card { border: 1px solid; border-radius: 8px; padding: 8px 10px; } .lp-card p { margin: 3px 0 8px; }
.lp-btn, .lp-chip { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 700; } .lp-chip { border-radius: 20px; font-size: .7rem; }
.lp-foot { padding: 6px 10px; }
.lp-strip { display: flex; height: 14px; border-radius: 6px; overflow: hidden; } .lp-strip span { flex: 1; }

/* Settings screens 2.6: section nav, sticky preview, counters */
.sec-nav { position: sticky; top: 56px; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 10px; margin-bottom: 8px; background: var(--a-bg, #f4f6fa); }
.sec-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-border); background: #fff; text-decoration: none; color: inherit; font-size: .88rem; white-space: nowrap; }
.sec-nav a:hover { border-color: #b9c7f3; }
.sec-nav a.active { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.sec-nav a.has-error { border-color: #f04438; color: #b42318; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.settings-main { min-width: 0; }
.settings-aside { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; }
.settings-sec { scroll-margin-top: 120px; }
.sec-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.sec-head h2 { margin: 0 0 2px; }
.sec-head p { margin: 0; }
.sec-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; background: #eef2ff; border-radius: 10px; }
.char-count { font-size: .78rem; margin-top: 4px; }
.char-count.is-good { color: #067647; } .char-count.is-short, .char-count.is-empty { color: #b54708; } .char-count.is-long { color: #b42318; }
.preview-card h3 { margin: 0 0 4px; font-size: 1rem; }
.pv-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin: 14px 0 6px; }
.pv-browser { border: 1px solid #d0d5dd; border-radius: 10px; overflow: hidden; background: #e9ecf1; }
.pv-tab { display: flex; align-items: center; gap: 8px; width: 78%; margin: 6px 0 0 8px; padding: 7px 10px; background: #fff; border-radius: 8px 8px 0 0; font-size: .8rem; }
.pv-tab-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .pv-x { color: #98a2b3; font-size: .7rem; }
.pv-fav, .g-fav { width: 16px; height: 16px; display: inline-grid; place-items: center; font-size: .75rem; flex: none; }
.pv-fav img, .g-fav img { width: 16px; height: 16px; object-fit: contain; }
.pv-url { background: #fff; padding: 6px 12px; font-size: .8rem; color: #475467; border-top: 1px solid #eaecf0; }
.pv-site { border: 1px solid #d0d5dd; border-radius: 10px; overflow: hidden; background: var(--bg); font-size: .8rem; }
.pv-notice { background: var(--pr); color: #fff; text-align: center; padding: 4px 8px; font-size: .72rem; }
.pv-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--hb); color: var(--ht); flex-wrap: wrap; }
.pv-logo { display: flex; align-items: center; gap: 6px; } .pv-logo img { max-width: 140px; object-fit: contain; }
.pv-menu { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; opacity: .9; }
.pv-btn { background: var(--bt); color: var(--btt); padding: 4px 10px; border-radius: 6px; font-weight: 700; }
.pv-hero { padding: 18px 12px; text-align: center; color: var(--pr); font-weight: 600; min-height: 20px; }
.pv-footer { background: var(--fb); color: var(--ft); padding: 10px 12px; display: grid; gap: 6px; }
.pv-about { opacity: .85; } .pv-copy { opacity: .7; font-size: .72rem; }
.pv-social { display: flex; gap: 6px; } .pv-social span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); font-size: .7rem; }
.g-result { border: 1px solid #eaecf0; border-radius: 10px; padding: 12px 14px; background: #fff; font-family: arial, sans-serif; margin: 10px 0; }
.g-site { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.g-site .g-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; }
.g-name { font-size: 14px; color: #202124; } .g-url { font-size: 12px; color: #4d5156; }
.g-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0 3px; }
.g-desc { color: #4d5156; font-size: 14px; line-height: 1.55; }
.small-res .g-title { font-size: 16px; margin: 0; }
.meter { display: grid; grid-template-columns: 80px 1fr 56px; gap: 8px; align-items: center; font-size: .78rem; margin: 6px 0; }
.meter-bar { height: 8px; background: #eaecf0; border-radius: 6px; overflow: hidden; } .meter-bar i { display: block; height: 100%; border-radius: 6px; background: #98a2b3; transition: width .2s; }
.meter.is-good i { background: #17b26a; } .meter.is-short i { background: #f79009; } .meter.is-long i { background: #f04438; }
.meter b { text-align: right; font-weight: 600; }
.share-card { border: 1px solid #d0d5dd; border-radius: 10px; overflow: hidden; background: #f2f3f5; margin-top: 10px; }
.share-img { aspect-ratio: 1200 / 630; background: #e4e7ec; display: grid; place-items: center; color: #667085; font-size: .8rem; }
.share-img img { width: 100%; height: 100%; object-fit: cover; }
.share-body { padding: 8px 12px; display: grid; gap: 2px; font-size: .8rem; } .share-body small { color: #667085; } .share-body span { color: #475467; }
.seo-health { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.seo-health.is-critical { border-color: #fda29b; background: #fffbfa; }
.seo-score { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(#17b26a calc(var(--p) * 1%), #eaecf0 0); }
.seo-score strong { font-size: 1.4rem; } .seo-score span { font-size: .72rem; color: #667085; }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 18px; flex: 1; font-size: .88rem; }
.seo-checks .pass { color: #067647; } .seo-checks .todo { color: #93370d; } .seo-checks .crit { color: #b42318; font-weight: 700; }
@media (max-width: 1100px) { .settings-layout { grid-template-columns: 1fr; } .settings-aside { position: static; max-height: none; } }
.ve-toolbar select[data-more] { max-width: 130px; } .ve-toolbar select[data-block] { max-width: 150px; } .ve-toolbar select[data-size] { max-width: 90px; }

/* Schema Markup screen (2.8) */
.schema-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.switch-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--a-border); border-radius: 12px; cursor: pointer; background: #fafbfc; transition: .15s; }
.switch-card.is-on { background: #fff; border-color: #b9c7f3; box-shadow: 0 1px 0 rgba(16, 24, 40, .04); }
.switch-card input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; width: 40px; height: 22px; border-radius: 22px; background: #d0d5dd; position: relative; transition: .15s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .15s; }
.switch-card.is-on .switch { background: var(--a-primary); } .switch-card.is-on .switch::after { left: 21px; }
.switch-card input:focus-visible + .switch { outline: 2px solid var(--a-primary); outline-offset: 2px; }
.switch-text { display: grid; gap: 3px; } .switch-text small { color: #475467; line-height: 1.4; } .switch-text em { font-style: normal; font-size: .75rem; color: #667085; }
.tpl-picker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tpl-picker select { width: auto; }
.schema-editor { border: 1px solid #b9c7f3; background: #f8faff; border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.schema-editor h3 { margin-top: 0; }
.json-box { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; white-space: pre; width: 100%; }
.json-status { margin-top: 4px; } .json-status.ok { color: #067647; } .json-status.bad { color: #b42318; font-weight: 600; }
.badge-btn { border: 1px solid; border-radius: 999px; padding: 2px 10px; font-size: .8rem; cursor: pointer; background: #fff; }
.badge-btn.on { color: #067647; border-color: #abefc6; background: #ecfdf3; } .badge-btn.off { color: #667085; border-color: #d0d5dd; }
.result-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .result-bar select { width: auto; max-width: 100%; flex: 1 1 260px; }
.result-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.type-chip { padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3538cd; font: 600 .8rem ui-monospace, monospace; }
.json-out { max-height: 460px; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; font-size: 12.5px; }
