/* MindRoot.ru — витрина маркетплейса. Без внешних зависимостей и шрифтов:
   всё работает в изолированном контуре и не тянет запросы наружу. */

/* Атрибут hidden обязан скрывать элемент: авторские display (flex и др.)
   иначе перебивают встроенный стиль user-agent — drawer/modal на мгновение
   (или навсегда) становятся видны пустыми. */
[hidden] { display: none !important; }

:root {
  --bg:            #0a0f1c;
  --bg-soft:       #0d1424;
  --surface:       #121b30;
  --surface-2:     #16203a;
  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text:          #e9eefb;
  --text-muted:    #93a2c4;
  --text-dim:      #6b7a9c;
  --accent:        #6d8cff;
  --accent-soft:   rgba(109, 140, 255, .14);
  --accent-2:      #3ddc97;
  --accent-3:      #ffb454;
  --danger:        #ff6b81;
  --radius:        14px;
  --radius-lg:     20px;
  --shadow:        0 18px 50px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(109, 140, 255, .16), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(61, 220, 151, .10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1220px, 100% - 40px); margin: 0 auto; }

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; color: #bcd0ff; }

/* ---------------- Топбар ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 28, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.2px; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 19px; }
.brand-text em { font-style: normal; color: var(--accent); }
.brand-sm .brand-text { font-size: 17px; }

.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-link {
  padding: 8px 13px; border-radius: 10px; font-size: 14.5px; color: var(--text-muted);
  transition: background .16s, color .16s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link.active { color: var(--text); background: var(--accent-soft); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border);
}
.badge-rf { color: #bff3dd; background: rgba(61, 220, 151, .10); border-color: rgba(61, 220, 151, .3); }
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, .18);
}

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .12s, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8a6dff);
  color: #0a0f1c; border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-outline:hover { background: rgba(255, 255, 255, .06); }
.btn-ghost { color: var(--text-muted); border-color: var(--border); background: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: 15px;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 26px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.eyebrow {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-facts { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-facts li { color: var(--text-dim); font-size: 13.5px; }
.hero-facts strong { display: block; font-size: 24px; color: var(--text); letter-spacing: -.4px; }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.hero-card-head { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.hero-code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #b9c9f0;
  background: #080d18; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; max-height: 280px; overflow: auto; white-space: pre-wrap;
}
.hero-card-foot { margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }

/* ---------------- Секции ---------------- */
.section { padding: 62px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.022), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; letter-spacing: -.015em; }
.section-sub { color: var(--text-muted); margin: 0; max-width: 68ch; }
.section-stat { color: var(--text-dim); font-size: 13.5px; text-align: right; white-space: nowrap; }

/* ---------------- Тулбар ---------------- */
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 280px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px;
  color: var(--text-dim);
}
.search:focus-within { border-color: rgba(109, 140, 255, .55); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--text);
  font: inherit; font-size: 15px; padding: 13px 0;
}
.search kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px;
}
.select { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); }
.select select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 12px; font: inherit; font-size: 14px;
}
.toolbar-right { display: flex; gap: 12px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font: inherit; font-size: 13.5px;
  cursor: pointer; transition: all .16s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--accent-soft); border-color: rgba(109,140,255,.45); color: #d8e2ff; }
.chip .cnt { color: var(--text-dim); margin-left: 6px; font-size: 12px; }

/* ---------------- Сетка карточек ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.grid-agents { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px 160px at 110% -20%, rgba(109,140,255,.16), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 21px; background: var(--accent-soft); border: 1px solid rgba(109,140,255,.28);
}
.card h3 { margin: 0 0 4px; font-size: 17.5px; letter-spacing: -.01em; }
.card-cat { font-size: 12.5px; color: var(--text-dim); }
.card p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border);
}
.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px;
}
.card-metrics { display: flex; gap: 14px; color: var(--text-dim); }
.card-metrics b { color: var(--text); font-weight: 600; }
.rating { color: var(--accent-3); font-weight: 600; }
.price-free { color: var(--accent-2); font-weight: 600; font-size: 13px; }
.price-paid { color: var(--accent-3); font-weight: 600; font-size: 13px; }
.vendor-badge {
  font-size: 11.5px; color: #cfe0ff; background: var(--accent-soft);
  border: 1px solid rgba(109,140,255,.3); border-radius: 6px; padding: 3px 8px;
}
.card-highlight {
  font-size: 13px; color: #c7d5f5; background: rgba(61,220,151,.07);
  border-left: 2px solid rgba(61,220,151,.5); border-radius: 0 8px 8px 0;
  padding: 9px 12px; margin-bottom: 14px;
}

.skeleton-card { height: 250px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%,100% { opacity: .55 } 50% { opacity: .95 } }
.empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

/* ---------------- Drawer ---------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 7, 14, .66); backdrop-filter: blur(2px); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(760px, 100%);
  background: var(--bg-soft); border-left: 1px solid var(--border-strong);
  z-index: 61; display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .6 } to { transform: none; opacity: 1 } }
.drawer-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0 0 6px; font-size: 22px; }
.drawer-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.drawer-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border); }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 12px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.drawer-body { padding: 22px 24px; overflow: auto; flex: 1; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.drawer-foot .grow { flex: 1; color: var(--text-dim); font-size: 12.5px; }

.detail-h { font-size: 15px; margin: 22px 0 10px; letter-spacing: -.01em; }
.detail-h:first-child { margin-top: 0; }
.detail-p { color: var(--text-muted); font-size: 14.5px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--text-muted); font-size: 14.5px; }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

.cmd-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cmd-row { display: grid; grid-template-columns: minmax(200px, 34%) 1fr; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cmd-row:last-child { border-bottom: 0; }
.cmd-row:nth-child(odd) { background: rgba(255, 255, 255, .018); }
.cmd-name { font-family: var(--mono); font-size: 12.8px; color: #bcd0ff; word-break: break-all; }
.cmd-desc { color: var(--text-muted); font-size: 13.5px; }

.kv { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.kv-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv-row:last-child { border-bottom: 0; }
.kv-key { color: var(--text-dim); }
.kv-val { color: var(--text); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-ok { background: rgba(61,220,151,.13); color: #a5f0cd; border: 1px solid rgba(61,220,151,.3); }
.pill-warn { background: rgba(255,180,84,.13); color: #ffd9a4; border: 1px solid rgba(255,180,84,.3); }
.pill-info { background: var(--accent-soft); color: #cfe0ff; border: 1px solid rgba(109,140,255,.3); }

.install-block { background: #080d18; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.install-block h4 { margin: 0 0 10px; font-size: 14px; }
.install-cmd { display: flex; gap: 10px; align-items: center; }
.install-cmd code {
  flex: 1; display: block; background: rgba(255,255,255,.04); border-radius: 8px;
  padding: 10px 12px; font-size: 12.8px; overflow-x: auto; white-space: nowrap;
}
.steps { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; }
.steps li { margin-bottom: 6px; }

.env-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.env-table th, .env-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.env-table th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.env-table td code { font-size: 12.5px; }

.callout {
  border: 1px solid rgba(109,140,255,.3); background: var(--accent-soft);
  border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #d7e2ff; margin-bottom: 16px;
}
.callout-warn { border-color: rgba(255,180,84,.34); background: rgba(255,180,84,.09); color: #ffe4bd; }

/* ---------------- Тарифы ---------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; position: relative;
}
.plan.popular { border-color: rgba(109,140,255,.55); box-shadow: 0 0 0 1px rgba(109,140,255,.25), var(--shadow); }
.plan-flag {
  position: absolute; top: -11px; left: 22px; font-size: 11.5px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #8a6dff); color: #0a0f1c;
  padding: 4px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 6px; font-size: 19px; }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.plan-limits { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--border); padding-top: 14px; }
.plan-limits li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 8px; color: var(--text-muted); }
.plan-limits b { color: var(--text); font-weight: 600; text-align: right; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-features li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.plan .btn { margin-top: auto; }

.payg {
  margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  background: rgba(255, 255, 255, .02);
}
.payg h3 { margin: 0 0 4px; font-size: 17px; }
.payg p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 70ch; }
.payg-price { font-size: 26px; font-weight: 700; white-space: nowrap; }
.payg-price span { font-size: 13px; color: var(--text-dim); font-weight: 500; }

/* ---------------- Комплаенс ---------------- */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.c-card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.c-icon { font-size: 24px; margin-bottom: 10px; }
.c-card h3 { margin: 0 0 8px; font-size: 16.5px; }
.c-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------------- Разработчикам ---------------- */
.dev-layout { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: start; }
.dev-list { list-style: none; padding: 0; margin: 18px 0; }
.dev-list li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--text-muted); font-size: 14.5px; }
.dev-list li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.dev-note { border-left: 2px solid var(--accent); padding: 10px 0 10px 14px; color: var(--text-muted); font-size: 14px; }
.dev-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.dev-form h3 { margin: 0 0 16px; font-size: 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: #0b1222; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 14px; padding: 11px 12px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: rgba(109,140,255,.6); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); }
.form-note { font-size: 12.5px; color: var(--text-dim); margin: 10px 0 0; }
.form-result { margin-top: 14px; border-radius: 12px; padding: 14px; font-size: 14px; }
.form-result.ok { background: rgba(61,220,151,.10); border: 1px solid rgba(61,220,151,.32); color: #bff3dd; }
.form-result.err { background: rgba(255,107,129,.10); border: 1px solid rgba(255,107,129,.32); color: #ffd0d8; }
.form-result ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------------- Футер ---------------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0 24px; background: rgba(0,0,0,.22); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.footer-note { color: var(--text-dim); font-size: 13.5px; max-width: 46ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.footer-cols a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 9px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px;
}

/* ---------------- Тосты ---------------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow); animation: pop .18s ease-out;
}
.toast.ok { border-color: rgba(61,220,151,.4); }
.toast.err { border-color: rgba(255,107,129,.45); }
@keyframes pop { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------------- Адаптив ---------------- */
@media (max-width: 1000px) {
  .hero-inner, .dev-layout, .footer-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap { width: min(1220px, 100% - 26px); }
  .field-row { grid-template-columns: 1fr; }
  .cmd-row { grid-template-columns: 1fr; gap: 6px; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-stat { text-align: left; }
  .drawer-foot { flex-direction: column; align-items: stretch; }
}
