/* QuickLand admin — щільний функціональний стиль за зразком mumba-gui (DR-021). */
@font-face { font-family: "Inter"; src: url(/static/inter.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --fg: #212529; --fg-sec: #495057; --muted: #6c757d; --light: #adb5bd;
  --bg: #f8f9fa; --card: #fff; --line: #dee2e6; --line-l: #e9ecef; --line-f: #f3f4f6;
  --accent: #2563eb; --accent-h: #1d4ed8; --accent-bg: #eff6ff;
  --ok: #065f46; --ok-bg: #d1fae5; --warn: #92400e; --warn-bg: #fef3c7;
  --danger: #991b1b; --danger-bg: #fee2e2; --danger-bd: #fca5a5;
  --hdr: #1a1a2e; --hdr-txt: #94a3b8; --hdr-sep: #475569;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
h1 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 11px; font-weight: 600; color: var(--fg-sec); text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .error { color: var(--danger); } .ok { color: var(--ok); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.break { word-break: break-all; }
[hidden] { display: none !important; }

/* ── Верхня смуга ── */
.topbar { background: var(--hdr); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; position: relative; flex: none; }
.topbar .hdr-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .brand { font-size: 14px; font-weight: 800; letter-spacing: 1.5px; color: #fff; text-decoration: none; }
.crumbs { color: var(--hdr-txt); font-size: 12px; padding-left: 14px; border-left: 1px solid var(--hdr-sep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--hdr-txt); } .crumbs a:hover { color: #fff; text-decoration: none; }
.crumbs .sep { margin: 0 6px; opacity: .6; }
.hdr-title { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.topbar .user { display: flex; gap: 12px; align-items: center; }
.topbar .user > a { font-size: 12px; color: #fff; }
.topbar .user button.hdr-btn, .topbar .user a.hdr-btn { background: transparent; border: 1px solid var(--hdr-sep); border-radius: 4px; color: var(--hdr-txt); padding: 4px 10px; font-size: 11px; cursor: pointer; }
.topbar .user .hdr-btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .hdr-title { display: none; } .crumbs { display: none; } .topbar { padding: 0 12px; } }

/* ── Журнал повідомлень ── */
.msglog { position: relative; display: flex; align-items: center; }
.msglog-btn { display: flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--hdr-sep); border-radius: 4px; color: var(--hdr-txt); padding: 4px 8px; cursor: pointer; }
.msglog-btn:hover { color: #fff; }
.msglog-count { font-size: 10px; background: var(--accent); color: #fff; border-radius: 8px; padding: 0 5px; line-height: 14px; }
.msglog-pulse { transform: scale(1.25); transition: transform .2s ease-out; }
.msglog-panel { position: absolute; top: 34px; right: 0; width: 340px; max-height: 60vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 60; }
.msglog-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-sec); }
.msglog-head button { padding: 2px 8px; font-size: 11px; }
.msglog-item { display: flex; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line-l); font-size: 12px; color: var(--fg-sec); }
.msglog-time { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); flex: none; }
.msglog-success .msglog-time { color: #059669; } .msglog-error .msglog-time { color: #dc2626; } .msglog-warning .msglog-time { color: #d97706; }
.msglog-empty { padding: 14px 10px; text-align: center; color: var(--muted); font-size: 12px; }
#flash-float { position: fixed; top: 22vh; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.flash-item { pointer-events: auto; cursor: pointer; padding: 12px 18px; border-radius: 8px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; max-width: min(560px, 92vw); border: 1px solid; }
.flash-item.in { opacity: 1; transform: none; }
.msg-success, .msg-info { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.msg-info { background: var(--accent-bg); border-color: #bfdbfe; color: #1e40af; }
.msg-error { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger); }
.msg-warning { background: var(--warn-bg); border-color: #fcd34d; color: var(--warn); }
.banner { padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; border: 1px solid; font-size: 13px; }
.banner.bad, .flash.bad { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger); }
.banner.warn { background: var(--warn-bg); border-color: #fcd34d; color: var(--warn); }
.banner.info, .flash { background: var(--accent-bg); border-color: #bfdbfe; color: #1e40af; padding: 10px 14px; border-radius: 6px; border-style: solid; border-width: 1px; }

/* ── Основне ── */
main { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 14px 20px 24px; }
footer.foot { text-align: center; color: var(--muted); font-size: 11px; padding: 6px 0 10px; flex: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead { color: var(--fg-sec); margin: -6px 0 14px; max-width: 760px; }

/* ── Кнопки й форми ── */
button, .btn { font: inherit; font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 5px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; white-space: nowrap; }
button:hover, .btn:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; text-decoration: none; }
button.secondary, .btn.secondary { background: #fff; color: var(--fg-sec); border-color: var(--line); }
button.secondary:hover, .btn.secondary:hover { border-color: var(--light); background: var(--line-f); color: var(--fg); }
button.danger, .btn.danger { background: #fff; color: var(--danger); border-color: var(--danger-bd); }
button.danger:hover { background: var(--danger-bg); color: var(--danger); }
button.link { background: none; border: 0; color: var(--accent); padding: 0; }
button.small, .btn.small { padding: 4px 9px; font-size: 11px; }
button.wide, .btn.wide { width: 100%; justify-content: center; }
button:disabled { opacity: .5; cursor: default; }
form.inline { display: inline; }
label { display: block; margin: 0 0 10px; font-size: 12px; color: var(--fg-sec); }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { display: block; width: 100%; margin-top: 4px; }
label.check { display: flex; gap: 6px; align-items: center; color: var(--fg); }
input, select, textarea { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--fg); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--accent); }
input[type=search] { min-width: 220px; }
textarea { width: 100%; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }

/* ── Картки, сітки ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin: 0 0 14px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.danger-zone { border-color: var(--danger-bd); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.grid2 > .card { margin: 0; }
.columns { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.columns > .main-col { flex: 1 1 520px; min-width: 0; }
.columns > .side-col { flex: 0 0 300px; }
@media (max-width: 900px) { .columns > .side-col { flex: 1 1 100%; } }

/* ── Таблиці ── */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 8px 12px; font-weight: 500; color: var(--muted); font-size: 12px; border-bottom: 2px solid var(--line); background: #fff; white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--line-l); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: var(--line-f); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ── Мітки стану ── */
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--line-l); color: var(--fg-sec); white-space: nowrap; vertical-align: 1px; }
.st-live, .st-active, .st-approved, .sev-ok { background: var(--ok-bg); color: var(--ok); }
.st-draft, .st-none, .st-superseded, .st-detached { background: var(--line-l); color: var(--fg-sec); }
.st-checking, .st-moderation, .st-appeal, .st-pending, .st-grace, .badge.warn, .sev-warning .badge { background: var(--warn-bg); color: var(--warn); }
.st-rejected, .st-failed, .st-taken_down, .st-deleted, .sev-error .badge { background: var(--danger-bg); color: var(--danger); }

/* ── Властивості (ліва картка) ── */
.props { width: 100%; border-collapse: collapse; }
.props th { width: 150px; font-weight: 400; color: var(--muted); background: none; border: 0; padding: 7px 0; vertical-align: top; white-space: normal; }
.props td { border: 0; border-bottom: 1px solid var(--line-f); padding: 7px 0; }
.props tr:last-child td { border-bottom: 0; }
.obj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.obj-head h2 { font-size: 17px; margin: 0; }

/* ── Панель дій ── */
.actions-panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.actions-panel > h2 { margin-bottom: 12px; }
.act { border: 1px solid var(--line-l); border-radius: 6px; padding: 12px; margin: 0 0 10px; }
.act:last-child { margin-bottom: 0; }
.act .t { font-weight: 600; font-size: 13px; }
.act .d { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.act.next { border-color: #bfdbfe; background: var(--accent-bg); }
.act.danger { border-color: var(--danger-bd); }
.act form { margin: 0; }

/* ── Сторінка сайту: бокова навігація ── */
.site-layout { display: flex; gap: 18px; align-items: flex-start; }
.site-nav { flex: 0 0 200px; position: sticky; top: 12px; }
.site-nav .group { margin-bottom: 12px; }
.site-nav .gt { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 0 10px 4px; }
.site-nav a { display: block; padding: 5px 10px; border-radius: 5px; color: var(--fg-sec); }
.site-nav a:hover { background: var(--line-l); text-decoration: none; color: var(--fg); }
.site-nav a.active { background: var(--accent); color: #fff; }
.site-main { flex: 1 1 auto; min-width: 0; }
.site-nav select { display: none; width: 100%; }
@media (max-width: 760px) {
  .site-layout { flex-direction: column; } .site-nav { position: static; flex: none; width: 100%; }
  .site-nav .group { display: none; } .site-nav select { display: block; }
}
.vswitch { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--fg-sec); background: #fff; cursor: pointer; }
.pill.active, .pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pill.active { background: var(--accent-bg); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 14px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; color: var(--fg-sec); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Кроки ── */
.steps { display: flex; gap: 0; margin: 0 0 14px; font-size: 12px; flex-wrap: wrap; }
.steps a, .steps span { padding: 6px 14px; border: 1px solid var(--line); background: #fff; color: var(--fg-sec); margin-left: -1px; }
.steps > :first-child { border-radius: 5px 0 0 5px; margin-left: 0; } .steps > :last-child { border-radius: 0 5px 5px 0; }
.steps .cur { background: var(--accent); color: #fff; border-color: var(--accent); position: relative; z-index: 1; }
.steps .done { color: var(--ok); }

/* ── Редактор ── */
.editor { position: relative; display: flex; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.editor textarea { flex: 1; min-width: 0; border: 0; border-radius: 0; margin: 0; resize: vertical; min-height: 62vh; padding: 8px 10px;
  font: 13px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow: auto; tab-size: 2; background: transparent; position: relative; z-index: 1; color: var(--fg); }
.editor textarea:focus { outline: 2px solid #bfdbfe; outline-offset: -2px; }
.editor .gutter { display: none; }
.editor.js .gutter { display: block; position: relative; z-index: 2; flex: 0 0 auto; min-width: 3em; overflow: hidden; background: #f1f5f9; border-right: 1px solid var(--line); color: var(--muted);
  text-align: right; font: 12px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 6px 8px 4px; user-select: none; }
.editor .gutter-inner { white-space: pre; }
.editor .hl { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.editor .hl-inner { position: relative; }
.editor .hl-inner div { position: absolute; left: 0; right: 0; }
.editor .hl-dir { background: #e0e7ff; } .editor .hl-warn { background: #fef3c7; } .editor .hl-err { background: #fee2e2; }
@media (max-width: 600px) { .editor textarea { font-size: 16px; line-height: 22px; min-height: 55vh; } .editor.js .gutter { font-size: 12px; line-height: 22px; min-width: 2.4em; } }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; margin: 0; z-index: 5; }
.diags ul { list-style: none; padding: 0; margin: 0; }
.diags li { padding: 6px 0; border-bottom: 1px solid var(--line-f); font-size: 12px; }
.diags li:last-child { border-bottom: 0; }
.comp-ref details { border-bottom: 1px solid var(--line-f); padding: 6px 0; }
.comp-ref summary { cursor: pointer; font-weight: 500; }
.comp-ref summary code { font-weight: 600; color: var(--fg); }
.comp-ref .p { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.comp-ref pre { background: var(--line-f); border-radius: 5px; padding: 8px; font-size: 11px; overflow-x: auto; margin: 0 0 6px; white-space: pre; }

/* ── Перегляд ── */
.pv-switch > input { position: absolute; opacity: 0; }
.pv-frame { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; justify-content: center; }
.pv-frame iframe { width: 390px; height: 720px; border: 0; transition: width .2s; }
#pv-d:checked ~ .pv-frame iframe { width: 100%; }
#pv-m:checked + label, #pv-d:checked + label { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* ── Статистика ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpi-v { font-size: 22px; font-weight: 700; } .kpi-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ── Різне ── */
.copy-field { display: flex; gap: 6px; } .copy-field input { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
.swatches { display: inline-flex; gap: 2px; vertical-align: middle; } .swatches i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.palettes label, .palette { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; display: flex; gap: 6px; align-items: center; margin: 0; color: var(--fg); }
.colors { display: flex; gap: 12px; flex-wrap: wrap; } .colors input[type=color] { width: 64px; height: 34px; padding: 2px; }
[data-dropzone] { border: 2px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center; background: #fff; }
[data-dropzone].over { border-color: var(--accent); background: var(--accent-bg); }
.qr img { max-width: 160px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--line-f); }
details > summary { cursor: pointer; }

/* ── Вхід ── */
.login-page main { max-width: none; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 380px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 36px 32px 30px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .logo { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: var(--hdr); }
.login-brand .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.login-card ul { padding-left: 18px; color: var(--fg-sec); margin: 0 0 20px; }
.login-card li { margin-bottom: 4px; }
.gbtn { width: 100%; justify-content: center; padding: 10px; font-size: 13px; background: #fff; color: var(--fg); border-color: var(--line); }
.gbtn:hover { background: var(--line-f); color: var(--fg); border-color: var(--light); }
.gbtn svg { flex: none; }
.login-card .fine { font-size: 11px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ── Заголовок підсторінки сайту і форми ── */
.page-head .sub { color: var(--muted); font-size: 12px; margin-top: 3px; max-width: 760px; }
.page-head .tools form { display: flex; gap: 6px; align-items: center; margin: 0; }
.narrow { max-width: 620px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 8px; margin: 0 0 14px; background: var(--card); min-width: 0; }
fieldset > legend { font-weight: 600; font-size: 13px; padding: 0 6px; margin-left: -6px; }
fieldset > .hint:first-of-type { margin-top: 0; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
label.inline > input:not([type=checkbox]):not([type=radio]), label.inline > select { display: inline-block; width: auto; margin: 0; }
.row > label { margin: 0; }
.row > label > input:not([type=checkbox]):not([type=radio]), .row > label > select { display: inline-block; width: auto; margin: 0 0 0 4px; }
textarea.code, input.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
h4 { font-size: 12px; font-weight: 600; margin: 12px 0 6px; color: var(--fg-sec); }
.card > h2 .small, h2 .small { font-weight: 400; }
.act label { margin-bottom: 8px; }
.act .row { margin: 0; }
.act .choice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; color: var(--fg); font-size: 12px; }
.act .choice input { margin-top: 2px; }
.act .choice span { color: var(--muted); display: block; }
.act .choice strong { color: var(--fg); font-weight: 500; }
td.actions { white-space: nowrap; }
td.actions form, td.actions a { margin: 0 2px 2px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line-f); }
ul.plain li:last-child { border-bottom: 0; }
blockquote.body { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--line-f); border-radius: 0 5px 5px 0; white-space: pre-wrap; }
tr.flagged td { background: var(--danger-bg); }
.dec-allow { background: var(--ok-bg); color: var(--ok); } .dec-review { background: var(--warn-bg); color: var(--warn); } .dec-block { background: var(--danger-bg); color: var(--danger); }
.pv-frame.op iframe { width: 100%; height: 520px; }

/* ── Картинки ── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.img-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.img-card .pic { aspect-ratio: 4 / 3; background: var(--line-f) repeating-conic-gradient(#e9ecef 0 25%, transparent 0 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; }
.img-card .pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.img-card .body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.img-card .name { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.img-card .name code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-card details summary { font-size: 12px; color: var(--accent); }
.img-card details .row { margin: 6px 0 0; }
.img-card details input { flex: 1; min-width: 0; }

/* ── Розміщення ── */
.plc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 12px; }
.plc .obj-head { margin-bottom: 8px; }
.plc .obj-head h2 { font-size: 14px; }
.plc-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.plc-body .props { flex: 1 1 320px; }
.plc-body .props th { width: 110px; }
.plc .qr img, img.qr { width: 132px; height: 132px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; display: block; }
.plc .qr .small { text-align: center; margin-top: 4px; }
.banner-preview { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.plc-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-f); margin-top: 10px; padding-top: 10px; }
.plc-foot form.row { margin: 0; }
div.copy-field { display: flex; gap: 6px; align-items: center; }
div.copy-field input { flex: 1; min-width: 0; }

/* ── Статистика і облік місця ── */
.kpi.main { border-color: #bfdbfe; background: var(--accent-bg); }
a.kpi { color: var(--fg); } a.kpi:hover { border-color: var(--accent); text-decoration: none; }
.kpi { display: flex; flex-direction: column; }
.bar { display: inline-block; height: 8px; background: var(--accent); border-radius: 2px; vertical-align: middle; margin-right: 6px; min-width: 1px; max-width: 70%; }
.meter { height: 8px; background: var(--line-l); border-radius: 4px; overflow: hidden; margin: 6px 0 10px; }
.meter span { display: block; height: 100%; background: var(--accent); }
.meter span.over { background: var(--danger); }
table.compact td, table.compact th { padding: 5px 8px; }
.act form.inline { display: block; }
.act[data-dropzone] { text-align: left; border: 2px dashed #bfdbfe; padding: 12px; }
/* Connect Claude: steps */
ol.howto { margin: 0 0 12px; padding-left: 22px; }
ol.howto > li { margin: 0 0 14px; }
ol.howto .t { font-weight: 600; margin-bottom: 2px; }
ol.howto .d { color: var(--fg-sec); font-size: 13px; margin-bottom: 6px; }
