/* Панель консультанта. Монохромная палитра и сетка: боковое меню 240 px, карточки, панели с шапкой,
   табличные цифры. Сборки нет — обычный CSS с переменными. */
:root {
  color-scheme: light;
  --ink: #0a0a0a; --ink-soft: #171717; --ink-muted: #525252; --ink-faint: #a3a3a3;
  --paper: #ffffff; --paper-soft: #fafafa; --paper-muted: #f5f5f5; --paper-sunk: #efefef;
  --line: #e5e5e5; --line-strong: #d4d4d4;
  --alert: #b42318; --ok: #15803d;
  --radius: 1rem; --radius-sm: .5rem;
  --shadow-card: 0 1px 2px rgba(10,10,10,.04); --shadow-pop: 0 8px 30px rgba(10,10,10,.10);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper-soft); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01'; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.muted { color: var(--ink-muted); } .faint { color: var(--ink-faint); } .small { font-size: 12px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 6px; } .mt2 { margin-top: 12px; } .mt3 { margin-top: 20px; } .mb2 { margin-bottom: 12px; }
.hidden { display: none !important; }
.icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- каркас ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 240px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar .brand { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.logo { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: inline-grid; place-items: center; white-space: nowrap; font: 600 12px/1 var(--font-display); letter-spacing: .04em; }
.brand-word { font: 500 13px/1.1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav a, .nav .locked { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--ink-muted); text-decoration: none; transition: background .15s, color .15s; margin-bottom: 2px; }
.nav a:hover { background: var(--paper-muted); color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--paper); }
.nav .locked { opacity: .5; cursor: not-allowed; }
.nav .icon.end { margin-left: auto; width: 14px; height: 14px; }
.nav-group { padding: 16px 12px 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.nav .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.nav .dot.alert { background: var(--alert); }
.side-foot { border-top: 1px solid var(--line); padding: 14px 20px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who .name { font-size: 14px; } .who .role { font-size: 11px; color: var(--ink-faint); }
.main { flex: 1; overflow-y: auto; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 32px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 24px; font-weight: 600; }
.page-head p { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- карточки ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.panel { margin-bottom: 16px; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.panel > header h2 { font-size: 14px; font-weight: 600; }
.panel > header p { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }
.panel > .body { padding: 16px 20px; }
.panel > .body.flush { padding: 0; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.cols-even { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.kpi { padding: 16px 20px; }
.kpi .label { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.kpi .value { margin-top: 8px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .hint { margin-top: 6px; font-size: 12px; color: var(--ink-faint); }
.kpi.emph { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kpi.emph .label { color: rgba(255,255,255,.6); } .kpi.emph .hint { color: rgba(255,255,255,.5); }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); padding: 8px 14px;
  font: 500 14px/1.2 var(--font); cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  text-decoration: none; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--paper-muted); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-soft); }
.btn.danger { color: var(--alert); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .4; pointer-events: none; }
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-muted); cursor: pointer; text-decoration: underline; }
.input, input[type=text], input[type=number], input[type=password], input[type=email], input[type=url], input[type=search], input[type=time], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 8px 12px;
  font: 14px/1.4 var(--font); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(10,10,10,.4); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
textarea { resize: vertical; min-height: 80px; }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 420px; }
input[type=color] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.label, label > span.l { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.field { margin-bottom: 14px; }
.field .help { margin-top: 4px; font-size: 12px; color: var(--ink-faint); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; }
.filters input[type=search] { min-width: 240px; }

/* ---------- чипы и метки ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px;
  font-weight: 500; color: var(--ink-muted); text-decoration: none; background: var(--paper); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: var(--paper-muted); color: var(--ink-muted); white-space: nowrap; }
.badge.dark { background: var(--ink); color: var(--paper); }
.badge.alert { background: #fdecea; color: var(--alert); }
.badge.ok { background: #e8f5ec; color: var(--ok); }
.badge.line { background: transparent; border: 1px solid var(--line-strong); }

/* ---------- таблицы ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
table.t td { padding: 10px 12px; font-size: 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: var(--paper-soft); }
table.t td.clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t a.rowlink { text-decoration: none; }
table.t a.rowlink:hover { text-decoration: underline; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-muted); }

/* ---------- сообщения ---------- */
.flash { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--line); background: var(--paper); }
.flash.ok { border-color: #bbdfc6; background: #f2faf4; }
.flash.err { border-color: #f3c1bb; background: #fdf3f2; color: var(--alert); }

/* ---------- графики ---------- */
.chart { width: 100%; height: 220px; }
.chart .bar-a { fill: var(--ink); } .chart .bar-b { fill: var(--line-strong); }
.chart .axis { stroke: var(--line); } .chart text { fill: var(--ink-faint); font-size: 10px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .a { background: var(--ink); } .legend .b { background: var(--line-strong); }
.funnel .step { display: grid; grid-template-columns: 160px 1fr 60px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.funnel .track { height: 10px; background: var(--paper-muted); border-radius: 999px; overflow: hidden; }
.funnel .fill { height: 100%; background: var(--ink); border-radius: 999px; }
.funnel .fill.w0 { width: 0; }
.meter-list .item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.meter-list .item:first-child { border-top: 0; }

/* ---------- диалог ---------- */
/* «Переписка» — как чат базы знаний: колонка по центру, вопрос пузырём справа, ответ без пузыря.
   pre-wrap — только у текста сообщения: переносы строк шаблона вокруг него не должны становиться пустыми строками. */
.chat { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.chat-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-day { align-self: center; font-size: 12px; color: var(--ink-faint); }
.chat-q { align-self: flex-end; max-width: 78%; }
.chat-q .chat-text { background: var(--paper-muted); border-radius: 18px; padding: 10px 16px; }
.chat-file { max-width: 88%; }
.chat-file .kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 6px 0; font-size: 12.5px; }
.chat-file .kv dt { color: var(--ink-muted); } .chat-file .kv dd { margin: 0; overflow-wrap: anywhere; }
.chat-time { margin-top: 4px; font-size: 11px; color: var(--ink-faint); text-align: right; }
.chat-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; font-size: 12px; color: var(--ink-faint); }
.chat-who b { font-size: 13px; font-weight: 600; color: var(--ink); }
.chat-src { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 12px; color: var(--ink-muted); }
.chat-src summary { cursor: pointer; font-weight: 500; }
.chat-src ol { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink); }
.chat-src li { margin: 3px 0; }
.chat-meta { margin-top: 6px; font-size: 11px; color: var(--ink-faint); }
.chat-tools { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.chat-fix { margin-top: 10px; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-soft); }
.chat-fix .row { margin-bottom: 8px; }
.chat-done { margin-top: 6px; font-size: 12px; color: var(--ok); }
.chat-event { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: var(--ink-muted);
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* «Как видел клиент» — та же переписка в оформлении виджета: значения как в widget.css, цвета шапки и
   сообщений посетителя ставит panel.js из настроек «Виджета». */
.cw-look { --cw-head: #008069; --cw-out: #d9fdd3; --cw-in: #ffffff; --cw-bg: #efeae2; --cw-text: #111b21; --cw-muted: #667781;
  max-width: 400px; margin: 12px auto 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card);
  color: var(--cw-text); font: 14.2px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.cw-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--cw-head); color: #fff; }
.cw-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.25); flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.cw-name { font-weight: 600; font-size: 16px; }
.cw-status { font-size: 12.5px; opacity: .85; }
.cw-feed { display: flex; flex-direction: column; gap: 4px; min-height: 240px; padding: 12px 14px 8px; background-color: var(--cw-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d6cfc4' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Cpath d='M70 14l8 8m0-8l-8 8'/%3E%3Cpath d='M95 55c6-6 14 2 8 8s-14-2-8-8z'/%3E%3Crect x='20' y='70' width='14' height='18' rx='3'/%3E%3Cpath d='M60 95q8-10 16 0'/%3E%3Cpath d='M45 45h10M50 40v10'/%3E%3Ccircle cx='100' cy='100' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px; }
.cw-feed.custom-bg { background-size: cover; background-position: center; }
.cw-day { align-self: center; background: rgba(255,255,255,.92); color: var(--cw-muted); font-size: 12px; padding: 4px 10px; border-radius: 8px;
  margin: 6px 0; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.cw-bubble { position: relative; max-width: 82%; padding: 6px 9px 8px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13);
  word-wrap: break-word; overflow-wrap: anywhere; margin-top: 2px; }
.cw-text { white-space: pre-wrap; }
.cw-bubble.in { align-self: flex-start; background: var(--cw-in); border-top-left-radius: 0; }
.cw-bubble.out { align-self: flex-end; background: var(--cw-out); border-top-right-radius: 0; }
.cw-bubble.first::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.cw-bubble.in.first::before { left: -8px; background: linear-gradient(to bottom right, transparent 50%, var(--cw-in) 50%); }
.cw-bubble.out.first::before { right: -8px; background: linear-gradient(to bottom left, transparent 50%, var(--cw-out) 50%); }
.cw-bubble.sys { align-self: center; background: #fff7d6; color: #54656f; font-size: 12.5px; text-align: center; max-width: 90%; }
.cw-time { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--cw-muted); white-space: nowrap; }
.cw-form { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 6px 0; padding: 10px 12px;
  background: #fff; border-radius: 10px; box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 13px; }
.cw-form span { color: var(--cw-muted); }

/* ---------- песочница ---------- */
.sandbox { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.device { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.device .bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.device .bar .dots { display: flex; gap: 6px; } .device .bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.device .bar .addr { flex: 1; font-size: 12px; color: var(--ink-faint); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.device iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; margin: 0 auto; }
.device.mobile iframe { width: 390px; height: 760px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.metrics .kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.metrics .kv dt { color: var(--ink-muted); } .metrics .kv dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.metrics .hits .hit { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.metrics .hits .hit:first-child { border-top: 0; }
.metrics pre { white-space: pre-wrap; word-wrap: break-word; font: 12px/1.5 ui-monospace, Consolas, monospace; background: var(--paper-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; max-height: 280px; overflow: auto; margin: 0; }
.scorebar { display: inline-block; width: 60px; height: 6px; background: var(--paper-muted); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.scorebar b { display: block; height: 100%; background: var(--ink); }

/* ---------- одобрение знаний ---------- */
.mod-card { padding: 16px 20px; margin-bottom: 12px; transition: opacity .25s, transform .25s; }
.mod-card.leaving { opacity: 0; transform: translateX(16px); }
.mod-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mod-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.mod-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mod-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; }
.mod-note { color: var(--ink-muted); border-left: 3px solid var(--line-strong); padding-left: 10px; }
.mod-actions { margin-top: 12px; }
.mod-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.track { height: 8px; background: var(--paper-muted); border-radius: 999px; overflow: hidden; }
.track .fill { height: 100%; background: var(--ink); border-radius: 999px; }
.kpi.emph .track { background: rgba(255,255,255,.2); } .kpi.emph .track .fill { background: var(--paper); }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); font-size: 14px; z-index: 50; }

/* ---------- вход ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--paper-soft); }
.login-card { width: 360px; max-width: calc(100vw - 32px); padding: 28px; }
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-card .sub { color: var(--ink-muted); font-size: 13px; margin-bottom: 20px; }
.login-card label { display: block; margin-bottom: 14px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-error { border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px; font-size: 13px; background: #fdf3f2; color: var(--alert); border: 1px solid #f3c1bb; }

/* ---------- превью виджета в «Виджете» ---------- */
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--paper-muted); }
.thumb.wide { width: 160px; height: 90px; border-radius: var(--radius-sm); }
.snippet { font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; word-break: break-all; }

/* ---------- «Настройки» ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sub-h { font-size: 13px; font-weight: 600; margin: 18px 0 10px; }
.chat-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
table.t tr.edit-row td, table.t tr.edit-row:hover td { background: var(--paper-soft); }
.row.bottom { align-items: flex-end; } .row.bottom > .field { margin-bottom: 0; }
.pw { display: flex; gap: 6px; align-items: center; } .pw input { width: 210px; }

@media (max-width: 1100px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .cols-even, .sandbox { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; height: auto; overflow: visible; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav-group { width: 100%; padding: 8px 12px 0; }
  .main { overflow: visible; } .wrap { padding: 20px 16px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .device.mobile iframe { width: 100%; }
}
