/* Admin panel — built on the site's design tokens */
body.admin { background: var(--subtle); font-size: 15px; }
.admin h1 { font-size: 1.6rem; letter-spacing: -0.025em; }
.admin h2 { font-size: 0.95rem; letter-spacing: -0.01em; }
.admin code { font-size: 0.9em; background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.admin-muted { color: var(--text-muted); font-size: 13.5px; }
.admin-error { color: #c0392b; font-size: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.admin-center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.admin-card .brand-mark { width: 44px; height: 44px; }
.admin-card .brand-mark img { width: 44px; height: 44px; }

.admin label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.admin input:not([type=checkbox]), .admin textarea, .admin select {
  font: inherit; font-weight: 400; color: var(--text-strong); background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.admin textarea { resize: vertical; line-height: 1.55; }
.admin input:focus, .admin textarea:focus, .admin select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.admin input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

.admin-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-nav { flex: 1; display: flex; gap: 4px; }
.admin-tab { border: 0; background: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text-muted); }
.admin-tab.is-active, .admin-tab:hover { color: var(--text-strong); background: var(--subtle); }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); }
.admin-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-strong); text-decoration: underline; text-decoration-color: rgba(255, 107, 82, 0.55); text-underline-offset: 3px; cursor: pointer; }
.admin-danger { color: #c0392b; text-decoration-color: rgba(192, 57, 43, 0.4); }

.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head-actions { display: flex; align-items: flex-end; gap: 12px; }
.status-sel { min-width: 150px; }
.admin-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-bar input { max-width: 360px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.seg button.is-active { background: var(--cta); color: #fff; }

.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-title { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--text-strong); text-align: left; cursor: pointer; }
.admin-title:hover { text-decoration: underline; }
.admin-slug { margin-top: 2px; }
.admin-actions { text-align: right; white-space: nowrap; }
.admin-actions > * + * { margin-left: 16px; }
.admin-empty { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--text-muted); }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pill-ok { background: #e9f8ef; border-color: #bfe8cf; color: #1d7a45; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.editor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { display: flex; align-items: center; justify-content: space-between; }
.slug-row { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.slug-row span { padding: 0 0 0 12px; color: var(--text-muted); font-weight: 400; font-size: 13px; white-space: nowrap; }
.slug-row input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 2px !important; }
.counter { font-weight: 500; font-size: 12px; color: var(--text-muted); }
.counter[data-state=ok] { color: #1d7a45; }
.counter[data-state=warn] { color: #b7791f; }

.md-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.md-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.md-bar button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-strong); }
.md-bar button:hover { border-color: var(--accent); color: var(--accent); }
.md-cols { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.admin .md-cols textarea { border: 0; border-radius: 0; border-right: 1px solid var(--line); min-height: 520px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; box-shadow: none; resize: none; }
.md-preview { padding: 18px 22px; overflow: auto; max-height: 640px; font-size: 15.5px; background: #fff; }
.md-preview h2 { font-size: 1.35rem; } .md-preview h3 { font-size: 1.12rem; }

.score { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--card); }
.score[data-level=ok] { background: #e9f8ef; color: #1d7a45; }
.score[data-level=mid] { background: #fff6e0; color: #b7791f; }
.score[data-level=low] { background: #fdeceb; color: #c0392b; }
.checks { display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.4; }
.checks li { position: relative; padding-left: 22px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; }
.checks .is-ok::before { background: #35c07a; }
.checks .is-bad::before { background: #f0b3a8; border: 2px solid #e8806e; }
.serp { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.serp-url { font-size: 12px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: 18px; line-height: 1.3; color: #1a0dab; margin: 3px 0; }
.serp-desc { font-size: 13px; line-height: 1.5; color: #4d5156; }
.cover-prev { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: var(--cta); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); }
.toast[data-kind=err] { background: #c0392b; }

@media (max-width: 1080px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .md-cols { grid-template-columns: 1fr; }
  .md-preview { border-top: 1px solid var(--line); }
  .admin-user span { display: none; }
  .admin-top { padding-inline: 14px; }
}

.md-help { padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); background: #fff; border-bottom: 1px solid var(--line); }

/* ---------- clients, dashboards, client panel ---------- */
.pill { white-space: nowrap; }
.admin label.check { align-items: flex-start; }
.admin label.check input { margin-top: 2px; flex: none; }
.pill-warn { background: #fff6e0; border-color: #f3dca3; color: #9a6412; }
.pill-bad { background: #fdeceb; border-color: #f5c6c0; color: #b03a2e; }
.txt-bad { color: #b03a2e; font-weight: 600; }
.admin-nav { overflow-x: auto; scrollbar-width: none; }
.admin-tab { white-space: nowrap; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.dash-h { font-size: 1.1rem !important; margin: 28px 0 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-alert { border-color: #f5c6c0; background: #fffaf9; }
.kpi-l { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.kpi-v { font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.15; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.kpi-s, .kpi-d { font-size: 12.5px; color: var(--text-muted); }
.kpi-d.up { color: #1d7a45; } .kpi-d.down { color: #b03a2e; }
.kpi-d small { color: var(--text-muted); font-size: 11.5px; }

.usage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 8px; }
.usage-bar { height: 8px; border-radius: 99px; background: var(--subtle); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 99px; background: var(--cta); }
.usage-bar i.warn { background: #c98a1b; } .usage-bar i.over { background: #b03a2e; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; min-width: 0; }
.chart figcaption { font-size: 13.5px; font-weight: 650; color: var(--text-strong); margin-bottom: 6px; }
.chart-box { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-bar { fill: var(--text-strong); transition: fill 0.15s; }
.ch-hit.is-on .ch-bar { fill: var(--accent); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.chart-tip { position: absolute; pointer-events: none; white-space: nowrap; background: var(--cta); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; box-shadow: var(--shadow); }
.chart-table { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }
.chart-table summary { cursor: pointer; }
.chart-table .admin-table td, .chart-table .admin-table th { padding: 6px 10px; }

.subtabs { display: flex; gap: 4px; margin: -6px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs button { border: 0; background: none; padding: 10px 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.subtabs button.is-active { color: var(--text-strong); border-bottom-color: var(--accent); }
.subtabs button:hover { color: var(--text-strong); }

/* conversations */
.conv { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.conv-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: 72vh; overflow-y: auto; }
.conv-list li + li { border-top: 1px solid var(--line); }
.conv-list .admin-empty { border: 0; border-radius: 0; padding: 32px 16px; }
.conv-item { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 12px 14px; cursor: pointer; }
.conv-item:hover { background: var(--card); }
.conv-item.is-open { background: var(--accent-soft); }
.conv-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.conv-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }
.conv-top b { color: var(--text-strong); font-weight: 650; }
.conv-last { font-size: 13.5px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.conv-tags .pill { font-size: 11px; padding: 1px 8px; }
.conv-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.conv-thread > .admin-empty { border: 0; }
.thread-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.thread-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem !important; }
.thread-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.thread-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; margin: 0 0 14px; padding: 12px 14px; background: var(--card); border-radius: 12px; }
.thread-meta div { min-width: 0; }
.thread-meta dt { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.thread-meta dd { margin: 2px 0 0; font-size: 13.5px; color: var(--text-strong); overflow-wrap: anywhere; }
.thread-body { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.msg p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-who { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.msg-u { align-self: flex-start; } .msg-u p { background: var(--subtle); border-top-left-radius: 4px; }
.msg-a, .msg-h { align-self: flex-end; text-align: right; } .msg-a p, .msg-h p { text-align: left; background: var(--cta); color: #fff; border-top-right-radius: 4px; }
.msg-h p { background: #2f5d50; }
.ld-note { max-width: 380px; white-space: pre-wrap; font-size: 13.5px; }
.vs-mix { line-height: 1.8; margin-bottom: 14px; }

/* appearance editor + preview */
.look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 470px); gap: 18px; align-items: start; }
.look-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.look-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.color-row { display: flex; gap: 8px; }
.admin .color-row input[type=color] { width: 46px; min-width: 46px; height: 42px; padding: 3px; cursor: pointer; }
.look-preview { position: sticky; top: 76px; }
.wprev-site { --p: #171717; --op: #fff; position: relative; height: 500px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--card)); overflow: hidden; }
.wprev-win { position: absolute; right: 14px; bottom: 78px; width: calc(100% - 28px); max-width: 320px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; color: #1d1d1d; }
.wprev-win.is-left { right: auto; left: 14px; }
.wprev-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: var(--p); color: var(--op); font-size: 14px; }
.wprev-head img, .wprev-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); font-weight: 700; font-size: 13px; }
.wprev-head i { margin-left: auto; font-style: normal; font-size: 11.5px; opacity: 0.8; }
.wprev-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; font-size: 13px; line-height: 1.45; }
.wprev-bot { margin: 0; align-self: flex-start; max-width: 85%; background: #f1f0ed; padding: 9px 12px; border-radius: 12px 12px 12px 4px; }
.wprev-user { margin: 0; align-self: flex-end; max-width: 85%; background: var(--p); color: var(--op); padding: 9px 12px; border-radius: 12px 12px 4px 12px; }
.wprev-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.wprev-quick span { border: 1px solid var(--p); color: inherit; padding: 4px 10px; border-radius: 99px; font-size: 12px; }
.wprev-input { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 9px 9px 9px 12px; border: 1px solid #e3e1dc; border-radius: 12px; color: #8b8782; font-size: 12.5px; }
.wprev-input i { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--p); }
.wprev-launch { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wprev-launch.is-left { right: auto; left: 14px; flex-direction: row-reverse; }
.wprev-launch i { width: 52px; height: 52px; border-radius: 50%; background: var(--p); box-shadow: var(--shadow); }
.wprev-launch span { background: #fff; color: #1d1d1d; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 99px; box-shadow: var(--shadow); }
.wprev-site.is-dark { background: linear-gradient(180deg, #2a2927, #1c1b1a); }
.is-dark .wprev-win { background: #1f1f1f; color: #eee; }
.is-dark .wprev-bot { background: #2e2d2b; }
.is-dark .wprev-input { border-color: #3a3936; }

/* client forms, payments, access, integration */
.cform { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.cform-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pay-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.install p { margin: 0; font-size: 14px; line-height: 1.55; }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; background: #1d1c1b; color: #f3efe9; border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin textarea.code { background: #1d1c1b; color: #f3efe9; border: 0; min-height: 260px; }
.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-list li > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.acc-done { margin-top: 6px; padding: 12px; border-radius: 12px; background: #e9f8ef; display: flex; flex-direction: column; gap: 8px; }
.acc-done p { margin: 0; font-size: 13.5px; }
.setup { margin-bottom: 18px; border-color: #f3dca3; background: #fffcf3; }
.setup p { margin: 0; font-size: 14px; line-height: 1.55; }
.panel .admin-main { max-width: 1280px; }

@media (max-width: 900px) {
  .conv, .look, .pay-grid { grid-template-columns: 1fr; }
  .look-preview { position: static; }
  .conv-list { max-height: 40vh; }
}
@media (max-width: 560px) {
  .look-row { grid-template-columns: 1fr; }
  .int-grid, .cform { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 14px 60px; }
  .msg { max-width: 92%; }
}

/* products, widgets, rankings */
.flabel { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.color-row { align-items: center; }
.color-row label.check { font-weight: 500; }
.msg-widgets { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.msg-u .msg-widgets { justify-content: flex-start; }
.msg-widgets .pill { font-size: 11px; padding: 1px 8px; }
.msg-prods { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; max-width: 100%; justify-content: flex-end; flex-wrap: wrap; }
.mprod { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-strong); text-decoration: none; text-align: left; font-size: 12.5px; line-height: 1.3; }
a.mprod:hover { border-color: var(--accent); }
.mprod img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; flex: none; background: var(--card); }
.mprod span { display: flex; flex-direction: column; min-width: 0; }
.mprod b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mprod i { font-style: normal; color: var(--text-muted); }
.prod-table .mprod { max-width: 340px; border: 0; padding: 0; background: none; }
.prod-table .mprod img { width: 44px; height: 44px; }
.th-sort { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.th-sort.is-active { color: var(--text-strong); }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rank ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(60px, 1fr) 3.2rem; text-align: left; align-items: center; gap: 10px; font-size: 13.5px; }
.rank-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 8px; background: var(--subtle); border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--text-strong); border-radius: 0 4px 4px 0; }
.rank b { font-variant-numeric: tabular-nums; text-align: right; }
.has-teaser .wprev-win { bottom: 124px; }
.wprev-teaser { position: absolute; right: 14px; bottom: 76px; max-width: 200px; background: #fff; color: #1d1d1d; font-size: 12px; line-height: 1.35; padding: 8px 11px; border-radius: 12px 12px 4px 12px; box-shadow: var(--shadow); }
.wprev-teaser.is-left { right: auto; left: 14px; border-radius: 12px 12px 12px 4px; }
.wprev-launch span + i, .wprev-launch i:only-child { flex: none; }
.prod-table .mprod i { display: none; }

/* live chatbot preview: the client's real page in an iframe */
.pv-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.pv-wrap { position: relative; height: 560px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pv-frame { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.pv-note { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.pv-bar [hidden], .pv-note[hidden] { display: none; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1b7a43; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #1fb865; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.prod-form { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.prod-form[hidden] { display: none; }

/* Panel layout — the same warm neutrals, typography and coral accent as the site. */
body.admin { background: #f8f7f5; }
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.admin-workspace { min-width: 0; }
.admin-top {
  position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column;
  gap: 0; padding: 27px 16px 18px; background: #fff; border-right: 1px solid var(--line);
  border-bottom: 0; backdrop-filter: none; box-shadow: 8px 0 36px -32px rgba(23, 23, 23, .18); overflow-y: auto;
}
.admin-brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 10px; }
.admin-brand-row .brand { min-width: 0; }
.admin-brand-row .brand-name { max-width: none; font-size: 15px; }
.admin-brand-row .brand-mark, .admin-brand-row .brand-mark img { width: 32px; height: 32px; }
.panel-icon { display: inline-block; width: 19px; height: 19px; flex: none; background: currentColor; mask: var(--panel-icon) center / contain no-repeat; -webkit-mask: var(--panel-icon) center / contain no-repeat; }
.admin-workspace-name { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 34px 3px 29px; padding: 12px; border: 1px solid #ece8e2; border-radius: 14px; background: linear-gradient(135deg, #f9f6f2, #fff 75%); }
.admin-workspace-name > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.admin-workspace-name small, .admin-user-info small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.admin-workspace-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 13.5px; font-weight: 700; }
.admin-workspace-avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: none; border-radius: 11px; background: var(--cta); color: #fff; font-size: 14px; font-weight: 750; }
.admin-nav-label { padding: 0 15px; margin-bottom: 11px; color: #a09a95; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.admin-nav { display: flex; flex: initial; flex-direction: column; gap: 4px; overflow: visible; }
.admin-tab { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 43px; padding: 10px 14px; border: 1px solid transparent; border-radius: 11px; color: #68635f; text-align: left; font-size: 13.5px; font-weight: 600; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.admin-tab .panel-icon { width: 18px; height: 18px; opacity: .78; }
.admin-tab:hover { background: #f7f5f2; color: var(--text-strong); transform: translateX(3px); }
.admin-tab.is-active, .admin-tab.is-active:hover { color: #d84f39; background: #fff0ec; border-color: #ffe1da; transform: none; }
.admin-tab.is-active .panel-icon { opacity: 1; }
.admin-sidebar-foot { margin-top: auto; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.admin-site-link { display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 7px 10px; border-radius: 9px; color: var(--text-muted); font-size: 13px; font-weight: 600; transition: color .2s, background .2s; }
.admin-site-link:hover { color: var(--text-strong); background: var(--subtle); }
.admin-site-link .panel-icon:last-child { margin-left: auto; width: 14px; height: 14px; opacity: .6; }
.admin-user { display: flex; align-items: center; gap: 9px; min-width: 0; margin-top: 17px; padding: 13px 5px 0; border-top: 1px solid var(--line); }
.admin-user-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #eee9e4; color: var(--text-strong); font-size: 12px; font-weight: 750; }
.admin-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.admin-user-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 11.5px; font-weight: 650; }
.admin-signout, .admin-menu-open, .admin-menu-close { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); transition: color .2s, background .2s; }
.admin-signout:hover, .admin-menu-open:hover, .admin-menu-close:hover { color: var(--text-strong); background: var(--subtle); }
.admin-menu-close, .admin-mobilebar { display: none; }
.admin-context { display: flex; align-items: center; gap: 10px; height: 63px; padding: 0 clamp(28px, 3vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); color: var(--text-muted); font-size: 12.5px; }
.admin-context strong { color: var(--text-strong); font-weight: 650; }
.admin-context-sep { color: #c6c0b8; }
.admin-context-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 11px; border: 1px solid #e7e4df; border-radius: 99px; background: #fff; color: #68635f; font-size: 11.5px; font-weight: 600; }
.admin-context-status .panel-icon { width: 14px; height: 14px; color: #e16d58; }
.admin-main, .panel .admin-main { width: 100%; max-width: 1740px; margin: 0 auto; padding: 43px clamp(28px, 3vw, 58px) 96px; }
.admin-head { align-items: center; margin-bottom: 27px; }
.admin-head h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.2; letter-spacing: -.045em; }
.admin-head h2 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.25; }
.admin-head .admin-muted { margin-top: 7px; font-size: 13.5px; }
.admin-head > div > .admin-link + h1 { margin-top: 9px; }
.admin-head-actions { flex-wrap: wrap; }
.admin .btn { box-shadow: none; }
.admin .btn-dark { box-shadow: 0 6px 15px -9px rgba(0,0,0,.5); }
.admin .btn { transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease); }
.admin .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 20px -15px rgba(25,22,20,.35); }
.admin .btn:active:not(:disabled) { transform: translateY(0); }
.admin button:focus-visible, .admin a:focus-visible, .admin summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.admin input:not([type=checkbox]), .admin textarea, .admin select { min-height: 42px; border-color: #e4e0da; background: #fff; }
.admin input:hover, .admin textarea:hover, .admin select:hover { border-color: #c9c1ba; }
.admin-bar { gap: 10px; margin-bottom: 20px; }
.admin-bar input { max-width: 410px; }
.seg { border-color: #e9e5df; border-radius: 11px; }
.seg button { transition: background .2s, color .2s; }
.seg button:hover:not(.is-active) { color: var(--text-strong); background: var(--subtle); }
.admin-table-wrap, .side-card, .editor-main, .chart, .usage, .conv-list, .conv-thread { border-color: #ebe7e2; border-radius: 17px; box-shadow: 0 4px 18px -16px rgba(28,25,23,.24); }
.admin-table th { background: #fcfbf9; color: #8b857f; font-size: 10.5px; font-weight: 750; padding: 15px 20px; }
.admin-table td { padding: 17px 20px; border-color: #f0ede9; font-size: 13.5px; }
.admin-table tbody tr { transition: background .18s var(--ease); }
.admin-table tbody tr:hover { background: #fdfaf8; }
.admin-empty { border-radius: 17px; background: #fff; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpis-sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { position: relative; min-height: 139px; gap: 8px; overflow: hidden; padding: 21px 22px; border-color: #ebe7e2; border-radius: 17px; box-shadow: 0 5px 20px -18px rgba(28,25,23,.22); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.kpi-icon { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #fff1ed; color: #d95841; }
.kpi-icon .panel-icon { width: 16px; height: 16px; }
.kpi::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, #ff9b84, #ffd6ca); opacity: 0; transition: opacity .25s; }
.kpi:hover { transform: translateY(-3px); border-color: #eadbd4; box-shadow: 0 17px 30px -22px rgba(28,25,23,.25); }
.kpi:hover::after { opacity: 1; }
.kpi-alert { border-color: #f5c6c0; }
.kpi-l { max-width: calc(100% - 25px); font-size: 12px; font-weight: 650; }
.kpi-v { font-size: clamp(1.7rem, 2.3vw, 2.15rem); letter-spacing: -.055em; }
.kpi-s, .kpi-d { font-size: 12px; }
.charts, .ranks { gap: 16px; margin-bottom: 20px; }
.chart { padding: 22px 24px 17px; }
.chart figcaption { margin-bottom: 13px; font-size: 14px; }
.chart svg { max-height: 240px; }
.usage { padding: 18px 22px; margin-bottom: 22px; }
.usage-bar { height: 9px; }
.usage-bar i, .rank-bar i { transition: width .6s var(--ease); }
.side-card { gap: 15px; padding: 23px; }
.side-card h2 { font-size: 15px; }
.dash-h { margin: 35px 0 16px; font-size: 1.2rem !important; }
.editor-main { gap: 20px; padding: 26px; }
.editor-side { top: 20px; }
.subtabs { gap: 4px; margin: 0 0 23px; padding: 4px; border: 1px solid #ebe7e2; border-radius: 12px; background: #fff; }
.subtabs button { margin: 0; padding: 9px 12px; border: 0; border-radius: 8px; transition: background .2s, color .2s; }
.subtabs button.is-active { background: var(--accent-soft); color: #d84f39; }
.subtabs button:hover:not(.is-active) { background: var(--subtle); }
.conv { grid-template-columns: minmax(260px, 370px) minmax(0, 1fr); gap: 18px; }
.conv-item { padding: 15px 17px; transition: background .18s; }
.conv-thread { padding: 22px; }
.thread-meta { padding: 15px 17px; border-radius: 11px; }
.look { gap: 22px; }
.look-preview { top: 20px; }
.pay-grid, .int-grid, .cform { gap: 20px; }
.toast { right: 26px; bottom: 24px; border-radius: 12px; animation: panelToast .25s var(--ease) both; }
@keyframes panelToast { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.panel-loading { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #736b66; font-size: 12px; font-weight: 600; }
.panel-loading-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff1ed; color: #db644e; }
.panel-loading-mark .panel-icon { width: 15px; height: 15px; }
.panel-skeleton { display: flex; flex-direction: column; gap: 18px; }
.panel-skeleton-line, .panel-skeleton-cards i, .panel-skeleton-wide { display: block; border: 1px solid #f0ece8; border-radius: 16px; background: linear-gradient(105deg, #f1efec 8%, #faf9f8 26%, #f1efec 42%); background-size: 220% 100%; animation: panelShimmer 1.5s linear infinite; }
.panel-skeleton-line { width: min(300px, 60%); height: 28px; border-radius: 8px; }
.panel-skeleton-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }.panel-skeleton-cards i { height: 126px; }.panel-skeleton-wide { height: 210px; }
@keyframes panelShimmer { to { background-position-x: -220%; } }
#view, .panel #view { animation: panelViewIn .36s var(--ease) both; }
@keyframes panelViewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Login has the same editorial contrast as the public site hero. */
.admin-center { background: radial-gradient(circle at 15% 15%, #fff0eb 0, transparent 28%), #f8f7f5; }
.admin-login-layout { display: grid; grid-template-columns: 1fr 1fr; width: min(930px, 100%); min-height: 500px; border: 1px solid #ebe6df; border-radius: 25px; overflow: hidden; background: #fff; box-shadow: 0 34px 80px -46px rgba(25,22,20,.28); }
.admin-login-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 39px; background: #22201f; color: #fff; }
.admin-login-aside .brand { color: #fff; }
.admin-login-aside .brand-name { max-width: none; }
.admin-login-aside .brand-mark { background: #fff; border-radius: 10px; }
.admin-login-aside h2 { max-width: 350px; margin: 13px 0 18px; color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.admin-login-aside p { max-width: 310px; color: #d4d0cc; font-size: 14.5px; line-height: 1.6; }
.admin-login-aside-foot { color: #aaa5a1; font-size: 12.5px; }
.admin-login-aside { position: relative; isolation: isolate; overflow: hidden; }
.admin-login-aside::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -170px; bottom: -235px; border-radius: 50%; background: radial-gradient(circle, rgba(255,108,82,.21), transparent 68%); pointer-events: none; }
.admin-login-aside > div { margin: auto 0; }
.admin-login-preview { max-width: 355px; margin-top: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.07); box-shadow: 0 22px 45px -30px rgba(0,0,0,.7); transform: rotate(-2deg); animation: loginPreviewIn .75s .2s var(--ease) both; }
.admin-login-preview-top, .admin-login-preview-foot { display: flex; align-items: center; gap: 9px; padding: 10px 13px; font-size: 10px; color: #eee9e6; }
.admin-login-preview-top { border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-login-preview-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #ff765e; color: #fff; }
.admin-login-preview-mark .panel-icon { width: 13px; height: 13px; }
.admin-login-preview-top > i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #8bd4a4; box-shadow: 0 0 0 4px rgba(139,212,164,.13); }
.admin-login-preview-plot { position: relative; height: 104px; padding: 0 11px; }
.admin-login-preview-plot > span { position: absolute; left: 12px; right: 12px; border-top: 1px dashed rgba(255,255,255,.1); }
.admin-login-preview-plot > span:nth-child(1) { top: 20%; }.admin-login-preview-plot > span:nth-child(2) { top: 40%; }.admin-login-preview-plot > span:nth-child(3) { top: 60%; }.admin-login-preview-plot > span:nth-child(4) { top: 80%; }
.admin-login-preview-plot svg { position: absolute; inset: 7px 11px; width: calc(100% - 22px); height: calc(100% - 14px); color: #ff917a; filter: drop-shadow(0 4px 7px rgba(255,118,94,.32)); }
.admin-login-preview-foot { justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #bdb8b5; }
.admin-login-preview-foot > span { display: inline-flex; align-items: center; gap: 5px; }.admin-login-preview-foot i { width: 5px; height: 5px; border-radius: 50%; background: #ff917a; }.admin-login-preview-foot .panel-icon { width: 12px; height: 12px; }
.admin-login-layout { animation: loginCardIn .55s var(--ease) both; }
@keyframes loginCardIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes loginPreviewIn { from { opacity: 0; transform: translateY(18px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(-2deg); } }
.admin-login-kicker { color: #ee806a; font-size: 10.5px; font-weight: 750; letter-spacing: .16em; }
.admin-card { align-self: center; max-width: none; padding: 44px clamp(28px, 4vw, 56px); border: 0; border-radius: 0; box-shadow: none; gap: 16px; }
.admin-card > .brand-mark { margin-bottom: 9px; }
.admin-card > .brand-mark img { width: 42px; height: 42px; }
.admin-card h1 { margin-top: -9px; font-size: 1.8rem; }
.admin-card .admin-muted { margin: -9px 0 8px; line-height: 1.5; }
.admin-card .btn { margin-top: 5px; }
.admin-card .admin-link { align-self: center; text-decoration: none; }
.admin-card .admin-link:disabled { opacity: .55; cursor: wait; }
.admin-password-field { position: relative; display: block; }
.admin-password-field input { padding-right: 72px !important; }
.admin-password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 7px; border: 0; border-radius: 6px; background: transparent; color: #756b65; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.admin-password-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.admin-card .admin-error { margin: 0; padding: 10px 12px; border: 1px solid #f2c9c0; border-radius: 9px; background: #fff5f2; font-size: 12px; line-height: 1.45; }
.admin-card .admin-error[data-kind="success"] { border-color: #bfe8cf; background: #f2faf5; color: #267a4f; }
.admin-card .btn.is-busy { position: relative; padding-right: 36px; opacity: .8; cursor: wait; }
.admin-card .btn.is-busy::after { content: ""; position: absolute; top: calc(50% - 7px); right: 14px; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: loginSpin .7s linear infinite; }
@keyframes loginSpin { to { transform: rotate(360deg); } }
.admin-center > .admin-card { max-width: 440px; border: 1px solid #ebe6df; border-radius: 20px; box-shadow: var(--shadow); }

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 228px minmax(0, 1fr); }
  .admin-top { padding-inline: 11px; }
  .admin-brand-row { padding-inline: 8px; }
  .admin-brand-row .brand-name { font-size: 13.5px; }
  .admin-main, .panel .admin-main { padding-inline: 25px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; max-height: none; }
}
@media (max-width: 800px) {
  .admin-shell { display: block; }
  .admin-top { position: fixed; top: 0; left: 0; bottom: 0; width: min(292px, calc(100vw - 45px)); height: 100dvh; padding: 22px 15px 16px; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 20px 0 50px -35px rgba(0,0,0,.5); }
  .admin-menu-open .admin-top { transform: translateX(0); }
  .admin-menu-close { display: grid; }
  .admin-mobilebar { display: flex; }
  .admin-mobilebar { position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; height: 62px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
  .admin-mobilebar .brand-mark, .admin-mobilebar .brand-mark img { width: 30px; height: 30px; }
  .admin-mobilebar .brand-name { font-size: 14px; }
  .admin-menu-open { display: grid; }
  .admin-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(24,22,21,.42); animation: panelViewIn .2s ease both; }
  .admin-context { height: 50px; padding-inline: 22px; }
  .admin-main, .panel .admin-main { padding: 29px 22px 70px; }
  .admin-workspace-name { margin-top: 25px; }
  .admin-nav { overflow-y: auto; }
  .admin-user .admin-user-info { display: flex; }
  .admin-user .admin-user-avatar { display: grid; }
  .admin-login-layout { grid-template-columns: 1fr; max-width: 460px; min-height: 0; }
  .admin-login-aside { display: none; }
  .admin-card { padding: 38px 30px; }
}
@media (max-width: 560px) {
  .admin-context-status { display: none; }
  .admin-main, .panel .admin-main { padding: 25px 16px 60px; }
  .admin-head { align-items: flex-start; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .btn { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 126px; padding: 16px; }
  .kpi-v { font-size: 1.65rem; }
  .chart { padding: 18px 16px; }
  .side-card, .editor-main { padding: 18px; }
  .charts, .ranks { grid-template-columns: minmax(0, 1fr); }
  .conv { grid-template-columns: 1fr; }
  .admin-table td, .admin-table th { padding-inline: 14px; }
  .admin-login-layout { border-radius: 20px; }
  .panel-skeleton-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }.panel-skeleton-cards i:last-child { display: none; }
}
@media (max-width: 370px) { .kpis { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .admin #view, .admin .toast, .admin-backdrop:not([hidden]), .admin-login-layout, .admin-login-preview, .admin-card .btn.is-busy::after, .panel-skeleton-line, .panel-skeleton-cards i, .panel-skeleton-wide { animation: none; }
  .admin-top, .admin-tab, .admin .btn, .kpi, .kpi::after, .conv-item, .usage-bar i, .rank-bar i { transition: none; }
}

/* Analytics */
.analytics { display: flex; flex-direction: column; gap: 20px; }
.an-head { margin-bottom: 5px; }
.an-kicker { display: inline-block; margin-bottom: 7px; color: #d65f49; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.an-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.an-live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e3eee6; border-radius: 99px; background: #f4faf5; color: #267a4f; font-size: 11px; font-weight: 650; white-space: nowrap; }
.an-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #50b075; }
.an-actions .btn .panel-icon { width: 15px; height: 15px; }
.an-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.an-stat { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 22px; border: 1px solid #ebe7e2; border-radius: 18px; background: #fff; box-shadow: 0 5px 22px -20px rgba(28,25,23,.24); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.an-stat:hover { transform: translateY(-3px); box-shadow: 0 15px 32px -24px rgba(28,25,23,.25); }
.an-stat-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff1ed; color: #d65f49; }
.an-stat-icon .panel-icon { width: 17px; height: 17px; }
.an-stat-label { max-width: calc(100% - 34px); color: var(--text-muted); font-size: 12px; font-weight: 650; }
.an-stat > strong { margin-top: 4px; color: var(--text-strong); font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-weight: 750; line-height: 1.15; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.an-stat > small { margin-top: auto; color: var(--text-muted); font-size: 11.5px; }
.an-delta { display: inline-flex; align-items: center; gap: 5px; color: #9a6412; font-size: 11.5px; font-weight: 700; }
.an-delta.up { color: #268152; }
.an-delta.down { color: #b94c3e; }
.an-delta small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.an-card { min-width: 0; padding: 25px; border: 1px solid #ebe7e2; border-radius: 19px; background: #fff; box-shadow: 0 5px 22px -20px rgba(28,25,23,.24); }
.an-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 23px; flex-wrap: wrap; }
.an-section-head h2 { font-size: 1.17rem; line-height: 1.3; letter-spacing: -.025em; }
.an-section-head p { margin-top: 4px; color: var(--text-muted); font-size: 12.5px; }
.an-trend .an-section-head { margin-bottom: 14px; }
.an-chart-key { display: flex; gap: 18px; margin-bottom: 8px; color: var(--text-muted); font-size: 11.5px; }
.an-chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.an-chart-key i { width: 16px; border-top: 2px solid #ec765e; }
.an-chart-key span:last-child i { border-color: #a4a6a9; border-top-style: dashed; }
.an-chart-wrap { position: relative; }
.an-chart-wrap svg { display: block; width: 100%; overflow: visible; }
.an-chart-grid { stroke: #ece9e4; stroke-width: 1; }
.an-chart-label { fill: #96918b; font-family: var(--font); font-size: 11px; }
.an-chart-current { fill: none; stroke: #ec765e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: anChartIn .85s var(--ease) forwards; }
@keyframes anChartIn { to { stroke-dashoffset: 0; } }
.an-chart-previous { fill: none; stroke: #aeb0b2; stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; stroke-linejoin: round; }
.an-chart-crosshair { stroke: #d1c8c0; stroke-dasharray: 4 4; }
.an-chart-dot { fill: #ec765e; stroke: #fff; stroke-width: 2; }
.an-chart-crosshair[hidden], .an-chart-dot[hidden] { display: none; }
.an-chart-tip { position: absolute; z-index: 2; padding: 8px 11px; border-radius: 8px; background: #242120; color: #fff; box-shadow: var(--shadow); font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.an-chart-tip[hidden] { display: none; }
.an-trend .chart-table { margin-top: 9px; }
.an-detail-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 20px; }
.an-funnel-list { display: flex; flex-direction: column; gap: 19px; padding: 5px 0 2px; }
.an-funnel-list > div > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-strong); font-size: 12.5px; font-weight: 600; }
.an-funnel-list strong { font-variant-numeric: tabular-nums; }
.an-funnel-track { display: block; height: 9px; margin-top: 8px; border-radius: 99px; background: #f2efeb; overflow: hidden; }
.an-funnel-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffad92, #ef7056); transform-origin: left; animation: anGrow .6s var(--ease) both; }
@keyframes anGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.an-footnote, .an-data-note { color: var(--text-muted); font-size: 11.5px; line-height: 1.5; }
.an-footnote { margin-top: 21px; }
.an-globe-card { overflow: hidden; border-color: #2c3a3d; background: radial-gradient(circle at 42% 55%, #354c4f 0, #232c30 50%, #1e2629 100%); color: #f6f4ee; }
.an-globe-card h2 { color: #fff; }
.an-globe-card .an-kicker { color: #ffae96; }
.an-globe-card .an-section-head p, .an-globe-card .an-footnote { color: #b9c3c1; }
.an-globe-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(160px, .85fr); align-items: center; gap: 7px; }
.an-globe { position: relative; min-width: 0; display: grid; place-items: center; }
.an-globe canvas { width: min(100%, 330px); height: auto; aspect-ratio: 1; cursor: grab; touch-action: none; filter: drop-shadow(0 20px 26px rgba(0,0,0,.27)); }
.an-globe canvas:focus-visible { outline: 2px solid #ffc0ad; outline-offset: -16px; border-radius: 50%; }
.an-globe-tooltip { position: absolute; z-index: 2; max-width: 180px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(17,27,31,.93); color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.an-globe-hint { margin-top: -12px; color: #a9bdbe; font-size: 10px; }
.an-globe-reset { display: inline-flex; align-items: center; gap: 6px; align-self: start; padding: 7px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.06); color: #f5f7f5; font-size: 11px; cursor: pointer; transition: background .2s; }
.an-globe-reset:hover { background: rgba(255,255,255,.14); }.an-globe-reset .panel-icon { width: 13px; height: 13px; }
.an-globe-selection { min-height: 22px; margin-top: 9px; color: #ffb6a5; font-size: 11px; }
.an-geo-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.an-geo-list > strong { margin-bottom: 5px; color: #e4e9e6; font-size: 12px; }
.an-geo-list button { display: flex; justify-content: space-between; gap: 9px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #dce4e1; text-align: left; font-size: 11.5px; transition: background .2s, border-color .2s; }
.an-geo-list button:hover, .an-geo-list button.is-active { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12); }
.an-geo-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-geo-list button b { font-variant-numeric: tabular-nums; }
.an-cities { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.an-cities > strong { margin-bottom: 3px; color: #e4e9e6; font-size: 12px; }
.an-cities span { display: flex; justify-content: space-between; gap: 8px; color: #b9c9c7; font-size: 11.5px; }
.an-cities b { color: #e4e9e6; font-variant-numeric: tabular-nums; }
.an-globe-card .admin-muted { color: #b9c3c1; }
.an-ranks { display: flex; flex-direction: column; gap: 14px; }
.an-ranks li { display: grid; grid-template-columns: minmax(85px, 1fr) minmax(60px, 2fr) 40px; align-items: center; gap: 11px; color: var(--text-strong); font-size: 12.5px; }
.an-ranks li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-ranks strong { text-align: right; font-variant-numeric: tabular-nums; }
.an-rank-track { height: 8px; border-radius: 99px; background: #f2efeb; overflow: hidden; }
.an-rank-track i { display: block; height: 100%; border-radius: inherit; background: #48423e; }
.an-recent-list { display: flex; flex-direction: column; }
.an-recent-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #f0ede9; }
.an-recent-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent-soft); color: #d65f49; }
.an-recent-symbol .panel-icon { width: 17px; height: 17px; }
.an-recent-row > div { min-width: 0; flex: 1; }
.an-recent-row strong { color: var(--text-strong); font-size: 12.5px; }
.an-recent-row p { overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.an-recent-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.an-recent-row .admin-link { white-space: nowrap; }
.an-data-note { padding: 0 4px; }
.an-loading { display: grid; place-items: center; min-height: 230px; color: var(--text-muted); font-size: 13px; }
.an-loading-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 9px; border-radius: 12px; background: var(--accent-soft); color: #d65f49; animation: anPulse 1.5s ease-in-out infinite; }
@keyframes anPulse { 50% { opacity: .5; transform: scale(.94); } }
@media (max-width: 1440px) { .an-detail-grid { grid-template-columns: 1fr; } .an-globe canvas { width: min(100%, 370px); } }
@media (max-width: 1120px) { .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .an-actions { width: 100%; }
  .an-trend .an-section-head .seg { width: 100%; overflow-x: auto; }
  .an-card { padding: 19px; }
  .an-globe-layout { grid-template-columns: 1fr; }
  .an-geo-list { padding-top: 10px; }
  .an-stat { min-height: 135px; padding: 17px; }
  .an-stat > strong { font-size: 1.7rem; }
  .an-recent-time { display: none; }
}
@media (max-width: 390px) { .an-stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .an-stat, .an-funnel-track i, .an-loading-icon, .an-chart-current { animation: none; transition: none; } .an-chart-current { stroke-dashoffset: 0; } }

/* Appearance studio */
.look-studio { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 24px; }
.look-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.look-intro { padding: 3px 2px 4px; }
.look-intro h2 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.03em; }
.look-intro p { margin-top: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.look-section { gap: 17px; padding: 25px; }
.look-section-heading { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #f0ede9; }
.look-section-heading h3 { color: var(--text-strong); font-size: 14px; font-weight: 700; }
.look-section-heading p { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.look-section-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 10px; background: var(--accent-soft); color: #d65f49; }
.look-section-icon .panel-icon { width: 18px; height: 18px; }
.look-field-hint { color: var(--text-muted); font-weight: 450; }
.look-section .look-row { gap: 14px; }
.look-palette { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.look-palette > button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #e5e0da; transition: transform .2s, box-shadow .2s; }
.look-palette > button:hover { transform: translateY(-2px); }
.look-palette > button.is-active { box-shadow: 0 0 0 2px var(--accent); }
.look-palette > button.is-active:not(.look-palette-default)::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; text-shadow: 0 1px 2px #333; }
.look-palette > .look-palette-default { width: auto; padding: 0 12px; border: 1px solid #e8e3de; border-radius: 99px; background: #f7f5f2; color: var(--text); box-shadow: none; font-size: 11.5px; font-weight: 650; }
.look-palette > .look-palette-default.is-active { border-color: #ed816a; background: var(--accent-soft); color: #c45440; box-shadow: none; }
.look-custom-color { display: flex !important; flex-direction: row !important; align-items: center; gap: 5px !important; width: auto !important; margin-left: 4px; padding: 4px 7px 4px 4px; border: 1px solid #e8e3de; border-radius: 99px; background: #fff; }
.admin .look-custom-color input[type=color] { width: 27px; height: 27px; min-height: 27px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.look-custom-color span { color: var(--text-muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.look-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.look-choice { min-width: 0; padding: 0; border: 0; }
.look-choice legend { margin-bottom: 7px; color: var(--text-strong); font-size: 13px; font-weight: 600; }
.look-choice > div { display: flex; gap: 5px; padding: 4px; border: 1px solid #e8e3de; border-radius: 11px; background: #f8f7f5; }
.look-choice button { flex: 1; min-width: 0; padding: 8px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font-size: 11.5px; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; }
.look-choice button:hover { color: var(--text-strong); }
.look-choice button.is-active { background: #fff; color: var(--text-strong); box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.look-savebar { position: sticky; bottom: 13px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid #e9e4dd; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 14px 30px -22px rgba(0,0,0,.4); backdrop-filter: blur(14px); }
.look-savebar > span { color: #278253; font-size: 12px; font-weight: 650; }
.look-savebar > span[data-changed=true] { color: #b46b2b; }
.look-savebar .look-actions { gap: 11px; }
.look-savebar .btn { padding: 9px 15px; font-size: 12px; }
.look-savebar .btn:disabled { opacity: .45; cursor: not-allowed; }
.look-delay { padding-left: 3px; font-size: 11.5px; }
.look-preview { top: 20px; }
.look-preview-card { padding: 18px; border: 1px solid #e9e4de; border-radius: 19px; background: #fff; box-shadow: 0 8px 28px -24px rgba(0,0,0,.25); }
.look-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.look-preview-heading h3 { color: var(--text-strong); font-size: 14px; }
.look-preview-heading .an-kicker { margin-bottom: 3px; }
.look-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0836b; box-shadow: 0 0 0 5px #fff1ed; }
.look-preview .pv-bar { gap: 9px; }
.look-preview .seg button { font-size: 11.5px; }
.look-preview .wprev-site { height: 540px; border-color: #e8e3dc; background: #f8f7f5; }
.wprev-page { position: absolute; inset: 0; color: #242220; }
.wprev-page-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 43px; padding: 0 17px; border-bottom: 1px solid #e8e3dc; background: #fff; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.wprev-page-nav span:last-child { color: #8a847d; font-size: 8px; font-weight: 500; letter-spacing: 0; }
.wprev-page-hero { display: flex; flex-direction: column; gap: 8px; height: 180px; padding: 31px 23px; background: linear-gradient(115deg, #e8ddd1, #faf2eb 58%, #ded0c0); }
.wprev-page-hero small { color: #8c6d5d; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.wprev-page-hero strong { max-width: 240px; font-size: 21px; line-height: 1.08; letter-spacing: -.04em; }
.wprev-page-hero span { max-width: 185px; color: #736961; font-size: 10px; }
.wprev-page-products { display: flex; gap: 9px; padding: 15px; }
.wprev-page-products i { width: 27%; height: 83px; border-radius: 7px; background: linear-gradient(135deg, #f3eae0, #e9dfd5); }
.wprev-page-products i:nth-child(2) { background: linear-gradient(135deg, #e3e7df, #f4f6f0); }
.wprev-page-products i:nth-child(3) { background: linear-gradient(135deg, #e9e2df, #f7f2ef); }
.look-preview .wprev-win { right: 17px; bottom: 82px; max-width: 320px; border: 1px solid #e8e4de; box-shadow: 0 22px 48px -18px rgba(0,0,0,.3); }
.look-preview .wprev-win.is-left { right: auto; left: 17px; }
.look-preview .wprev-launch { right: 17px; bottom: 17px; }
.look-preview .wprev-launch.is-left { right: auto; left: 17px; }
.look-preview .wprev-teaser { right: 17px; }
.look-preview .wprev-teaser.is-left { right: auto; left: 17px; }
.look-preview .wprev-site.is-dark .wprev-page { filter: brightness(.72); }
.look-preview .wprev p.admin-muted { margin-top: 10px; }
.look-preview .pv-wrap { height: 540px; }
@media (max-width: 1270px) { .look-studio { grid-template-columns: 1fr; } .look-preview { position: static; } .look-preview-card { max-width: 700px; } }
@media (max-width: 650px) { .look-choice-grid { grid-template-columns: 1fr; } .look-savebar { flex-direction: column; align-items: stretch; } .look-savebar .look-actions { justify-content: space-between; } .look-preview-card { padding: 13px; } }
@media (prefers-reduced-motion: reduce) { .look-palette > button, .look-choice button { transition: none; } }

/* conversations, Messenger-style: the page stays put, the list and the thread scroll inside their own frames */
.conv { height: clamp(460px, calc(100dvh - 230px), 860px); align-items: stretch; }
.conv-list { max-height: none; height: 100%; min-height: 0; }
.conv-thread { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; padding: 16px 18px; }
.conv-thread > .thread-head { flex: none; margin-bottom: 8px; }
.thread-info { flex: none; margin-bottom: 10px; }
.thread-info summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-muted); list-style: none; }
.thread-info summary::-webkit-details-marker { display: none; }
.thread-info summary::before { content: "▸ "; }
.thread-info[open] summary::before { content: "▾ "; }
.thread-info .thread-meta { margin-top: 8px; max-height: 32vh; overflow-y: auto; }
.thread-body { flex: 1; min-height: 0; max-height: none; padding: 4px 6px 4px 0; scroll-behavior: auto; }
@media (max-width: 860px) {
  .conv { height: auto; }
  .conv-list { height: 34vh; }
  .conv-thread { height: 70dvh; }
}
/* appearance: profile photo and history controls */
.avatar-field { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-strong); font-weight: 700; font-size: 22px; color: var(--text-muted); }
.avatar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.avatar-pick { cursor: pointer; }
.look-history { display: inline-flex; gap: 6px; }
.look-history .btn:disabled { opacity: 0.4; cursor: default; }

/* "Wiedza" tab */
.kn-tabs { margin: 4px 0 18px; }
.kn-list { display: grid; gap: 12px; }
.kn-item { display: flex; flex-direction: column; gap: 10px; }
.kn-item.is-off { opacity: 0.6; }
.kn-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kn-item-head h3 { margin: 0 0 6px; font-size: 1rem; }
.kn-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.kn-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.kn-ideas h3 { margin: 0 0 4px; }
.kn-idea-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kn-idea-list .pill { cursor: pointer; border: 1px solid var(--line-strong); background: #fff; }
.kn-idea-list .pill:hover { background: var(--accent-soft); }
.kn-behavior { display: flex; flex-direction: column; gap: 14px; }
.kn-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.kn-check input { margin-top: 3px; }
.kn-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kn-widget { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; }
.kn-widget span { display: flex; flex-direction: column; gap: 2px; }
.kn-widget b { font-size: 14px; color: var(--text-strong); }
.kn-widget small { color: var(--text-muted); font-size: 12.5px; line-height: 1.4; }

/* password meter on /auth/action */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: -4px 0 -2px; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--line-strong); transition: background .2s; }
.pw-meter i.on { background: var(--accent); }

/* human handoff */
.ho-pulse { animation: hopulse 1.4s ease-in-out infinite; }
@keyframes hopulse { 50% { opacity: 0.55; } }
.ho-live { background: #eef6ff; border-color: #c9dff7; color: #2457a7; }
@media (prefers-reduced-motion: reduce) { .ho-pulse { animation: none; } }
.ho-banner { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.ho-banner.is-wait { background: #fff6e0; border-color: #f3dca3; }
.ho-banner.is-live { background: #e9f8ef; border-color: #bfe8cf; }
.ho-banner b { font-size: 14px; color: var(--text-strong); }
.ho-banner p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.ho-facts { display: grid; gap: 4px; margin: 8px 0 0; }
.ho-facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.ho-facts dd { margin: 0; font-size: 13px; color: var(--text-strong); overflow-wrap: anywhere; }
.ho-compose { flex: none; display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ho-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; }
.ho-inactive { flex: none; margin: 10px 0 0; font-size: 13px; }
.ho-notify { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.ho-notify h3 { margin: 0; }
