/* The clinic cabinet (/admin/), Plugix look: Manrope, ink #1A1A1A on #F7F7F7, white cards, green statuses;
   the site's teal marks what the visitor did live. */
:root {
  --bg: #F7F7F7; --card: #FFFFFF; --ink: #1A1A1A; --ink-2: #5C5C5C; --line: #E6E6E6; --line-2: #F0F0F0;
  --ok-bg: #E5F3E9; --ok: #14703A; --you-bg: #E3F4F2; --you: #1F7A70; --teal: #50BEB4;
  --warn-bg: #FFF6E5; --warn: #7A4A00; --bad-bg: #FDECEC; --bad: #B42318; --plain-bg: #F1F1F1;
  --f: 'Manrope', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: grid; grid-template: 64px 1fr / 232px minmax(0, 1fr); background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--you); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; } /* .pop, .room and the like set their own display */
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.mono-id { font-family: var(--mono); letter-spacing: .03em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* read, not shown */

.top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: rgba(247, 247, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand > span { display: grid; line-height: 1.15; } /* not the .brand-long inside the name: it would break the line */
.brand b { font-weight: 800; font-size: 15px; white-space: nowrap; }
.brand small { font-size: 12px; color: var(--ink-2); }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 700 12px/1.4 var(--f); white-space: nowrap; }
.pill-demo, .pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-you { background: var(--you-bg); color: var(--you); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-plain { background: var(--plain-bg); color: var(--ink-2); }
.room { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f); color: var(--ink-2); }
.room::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B9B9B9; }
.room[data-state="live"] { color: var(--ok); }
.room[data-state="live"]::before { background: #22A35A; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 163, 90, 0); } }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="false"] { color: #9A9A9A; }
.top-site { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }

.nav { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.nav a:hover { background: #EDEDED; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; }

.view { min-width: 0; padding: 24px clamp(16px, 3vw, 36px) 72px; }
.view:focus { outline: none; }
.v-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.v-head h1 { margin: 0; font: 800 26px/1.2 var(--f); letter-spacing: -.01em; }
.muted { margin: 0; color: var(--ink-2); font-size: 14px; }
.demo-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.hint { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed #CFCFCF; border-radius: 12px; background: #fff; font-size: 14px; }

.card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.card h2 { margin: 0 0 12px; font: 800 16px/1.3 var(--f); }
.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.kpi span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kpi b { font: 800 30px/1.1 var(--f); letter-spacing: -.02em; }
.kpi small { font-size: 12.5px; color: var(--ink-2); }

.chart { display: block; width: 100%; height: auto; }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-tick { fill: var(--ink-2); font: 500 11px var(--mono); }
.chart:focus-visible { outline: 2px solid var(--you); outline-offset: 4px; border-radius: 4px; }
.ch-end { fill: var(--ink); font: 800 12px var(--f); }
/* the readout per day (dataviz hover layer): a crosshair and every series, on hover or from the keyboard */
.ch-x { stroke: #9A9A9A; stroke-width: 1; }
.ch-tip rect { fill: #fff; stroke: var(--line); }
.ch-tip text { fill: var(--ink-2); font: 600 12px var(--f); }
.ch-tip .ch-tip-h { font: 500 11px var(--mono); }
.ch-tip .ch-tip-v { fill: var(--ink); font-weight: 800; }
.ch-x, .ch-tip { opacity: 0; pointer-events: none; }
.ch-col:hover .ch-x, .ch-col:hover .ch-tip, .ch-col.is-on .ch-x, .ch-col.is-on .ch-tip { opacity: 1; }
.ch-table { margin-top: 10px; font-size: 13px; }
.ch-table summary { color: var(--ink-2); }
.ch-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ch-table th, .ch-table td { padding: 4px 8px; border-top: 1px solid var(--line-2); text-align: right; }
.ch-table th:first-child { text-align: left; font: 500 12px var(--mono); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.lg { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.kpi small.up { color: var(--ok); }
.kpi small.down { color: var(--bad); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.bars-l { font-size: 14px; font-weight: 600; }
.bars b { font-weight: 800; font-size: 14px; }
.bars b small { color: var(--ink-2); font-weight: 600; }
.bars-t { grid-column: 1 / -1; height: 8px; border-radius: 0 4px 4px 0; background: var(--line-2); overflow: hidden; }
.bars-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; } /* square at the baseline, rounded at the value */

.topq { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: q; }
.topq li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; counter-increment: q; }
.topq li::before { content: counter(q) "."; width: 22px; flex: none; color: var(--ink-2); font-family: var(--mono); font-size: 12px; line-height: 21px; }
.topq span { flex: 1; }

.gaps, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gaps li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.gaps div { min-width: 0; flex: 1 1 180px; }
.gaps .btn-s { white-space: nowrap; } /* a narrow card puts the button under the text instead of squeezing it */
.gaps small { display: block; color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.feed li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.feed li span { overflow-wrap: anywhere; }
.feed time { font: 500 12px var(--mono); color: var(--ink-2); }
.feed li.is-you { background: var(--you-bg); }
.is-new { animation: arrive 1.2s cubic-bezier(.2, .7, .2, 1); }
@keyframes arrive { from { opacity: 0; transform: translateY(-6px); background: #BFEAE4; } }

.btn-s { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; text-align: center; border: 0; /* a label that wraps on a phone keeps its padding */ border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1.2 var(--f); text-decoration: none; cursor: pointer; }
.btn-s.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-s:disabled, .btn-s[aria-disabled="true"] { opacity: .5; cursor: default; }

.filters, .toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.toolbar { justify-content: space-between; }
.filters label, .toolbar label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
select, input[type="text"], textarea { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px; }
textarea { min-height: 84px; resize: vertical; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 72vh; overflow-y: auto; }
.row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.row.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.row-meta time { font-family: var(--mono); }
.row-text { grid-column: 1; font-size: 14px; overflow-wrap: anywhere; }
.row > .pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.detail { position: sticky; top: 80px; scroll-margin-top: 120px; } /* under the sticky header and the phone's tab strip */
.detail-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-h small { display: block; color: var(--ink-2); font: 500 12px var(--mono); }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-user { justify-self: end; background: var(--plain-bg); border-bottom-right-radius: 4px; }
.msg-assistant { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--you-bg); color: var(--you); font: 600 11.5px/1.5 var(--mono); }
.detail-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cal { min-width: 840px; }
.cal-row { display: grid; grid-template-columns: 60px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cal-head { border-top: 0; font-weight: 800; font-size: 13px; }
.cal-head span { padding: 10px 8px; }
.cal-h { padding: 8px; font: 500 12px var(--mono); color: var(--ink-2); }
.cal-cell { min-height: 46px; padding: 4px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line-2); }
.bk { position: relative; /* holds its .sr status inside the scrolling week */ display: block; width: 100%; padding: 5px 7px; border: 0; border-radius: 8px; text-align: left; font-size: 12px; line-height: 1.3; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk b { font-family: var(--mono); font-weight: 600; }
.bk-new { background: var(--you-bg); color: #0E4F48; box-shadow: inset 3px 0 0 var(--teal); }
.bk-confirmed { background: var(--ok-bg); color: var(--ok); box-shadow: inset 3px 0 0 #22A35A; }
.bk-moved { background: var(--warn-bg); color: var(--warn); box-shadow: inset 3px 0 0 #E0A21B; }
.bk-you { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--you); color: #fff; font-weight: 800; font-size: 11px; line-height: 1.5; } /* the visitor's own booking */
.bk.is-new { animation: arrive 1.2s cubic-bezier(.2, .7, .2, 1), glow 1.2s 1.2s 2; }
@keyframes glow { 50% { box-shadow: inset 3px 0 0 var(--teal), 0 0 0 4px rgba(80, 190, 180, .35); } }
.bk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.pop { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: min(380px, calc(100vw - 32px)); display: grid; gap: 8px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); }
.pop dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.pop dt { color: var(--ink-2); }
.pop dd { margin: 0; }

.flow { display: block; width: 100%; height: auto; }
.flow .node rect { fill: #fff; stroke: var(--line); }
.flow .node text { font: 700 13px var(--f); fill: var(--ink); }
.flow .hub rect { fill: var(--ink); stroke: var(--ink); }
.flow .hub text { fill: #fff; }
.flow path { fill: none; stroke: #D3D3D3; stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow .pulse { fill: var(--teal); }
.flow-narrow { display: none; max-width: 440px; margin: 0 auto; }
@media (max-width: 640px) { .flow-wide { display: none; } .flow-narrow { display: block; } }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.sys { display: grid; gap: 8px; align-content: start; }
.sys-h { display: flex; align-items: center; gap: 10px; }
.sys-logo { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: #fff; font: 800 13px/1 var(--f); }
.sys-h b { display: block; }
.sys-h small { color: var(--ink-2); font-size: 12.5px; }
.sys p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.sys .pill { justify-self: start; }
.sys-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sys-bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.sys-bar i { display: block; width: 0; height: 100%; background: var(--teal); transition: width .35s; }
.sys .btn-s { justify-self: start; }
.sys.is-off { background: #FBFBFB; }
.sys.is-off .sys-logo { background: #CFCFCF; }
.journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 380px; overflow-y: auto; font-size: 13.5px; }
.journal li { display: grid; grid-template-columns: 52px 18px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.journal li span:last-child { overflow-wrap: anywhere; }
.journal time { font: 500 12px var(--mono); color: var(--ink-2); }
.journal .st { width: 14px; height: 14px; display: grid; place-items: center; color: var(--ok); font-weight: 800; }
.journal li[data-state="wait"] .st { border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.journal li.is-live { background: var(--you-bg); }
@keyframes spin { to { transform: rotate(360deg); } }

.kb-src { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; }
.kb-src li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.kb-form { display: grid; gap: 8px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.kb-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.kb-form .btn-s { justify-self: start; }
details summary { cursor: pointer; font-weight: 700; }
table.mini { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
table.mini td { padding: 6px 4px; border-top: 1px solid var(--line-2); }
table.mini td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }

.tg { max-width: 540px; margin-bottom: 14px; padding: 16px; border-radius: 22px; background: #D9E6EE; }
.tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.tg-ava { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.tg-head small { color: #51626B; }
.tg-msg { position: relative; padding: 12px 14px 24px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 14px; line-height: 1.5; }
.tg-msg p { margin: 0 0 4px; }
.tg-msg time { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: #5E6E77; }

.settings-form { display: grid; gap: 14px; max-width: 680px; }
.settings-form > label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.switches legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 13.5px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px; }
.switch input { appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: #CFCFCF; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: #22A35A; }
.switch input:checked::after { transform: translateX(16px); }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-zone h2 { margin: 0 0 6px; font: 800 16px/1.3 var(--f); }
.danger-zone .btn-s { margin-top: 10px; }

.toasts { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); animation: toast .35s cubic-bezier(.2, .7, .2, 1); overflow-wrap: anywhere; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body { grid-template: 56px auto 1fr / minmax(0, 1fr); }
  .top { gap: 8px; padding: 0 12px; }
  .brand small { display: none; }
  .nav { position: sticky; top: 56px; z-index: 15; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .nav a { flex: none; padding: 8px 12px; }
  .nav svg { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-3, .g-2, .split { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .feed li { grid-template-columns: 72px minmax(0, 1fr); }
  .feed li .pill { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .brand-long, .top-site span, .room-t { display: none; }
  .kpi b { font-size: 24px; }
}
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.bk-cancelled { opacity: .55; text-decoration: line-through; }
.bk-dot.bk-cancelled { opacity: 1; }
.bk-wl { padding: 0 6px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 700; }

.sub-h { margin: 18px 0 8px; font: 800 14px/1.3 var(--f); }

/* «Запитати дані» */
.top-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--you-bg); color: var(--you); font: 700 14px/1 var(--f); cursor: pointer; }
.top-ask svg { width: 18px; height: 18px; }
.ask { width: min(460px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 18px; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.ask[open] { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; }
.ask::backdrop { background: rgba(0, 0, 0, .25); }
.ask-h { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.ask-h h2 { margin: 0; font: 800 18px/1.3 var(--f); }
.ask-log { overflow: auto; display: grid; align-content: start; gap: 10px; min-height: 0; }
.ask-u, .ask-a { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.ask-u { justify-self: end; max-width: 85%; background: var(--ink); color: #fff; }
.ask-a { border: 1px solid var(--line); background: var(--card); }
.ask-u p, .ask-a p { margin: 0 0 6px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 13px/1.3 var(--f); text-align: left; cursor: pointer; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.ask-chart { margin-top: 8px; }
.ask-ct { margin: 0 0 6px; font-weight: 700; }
@media (max-width: 640px) { .top-ask span { display: none; } }

.seg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--plain-bg); }
.seg button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px/1 var(--f); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.fups { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }

.tg { max-width: 400px; border: 10px solid #15191A; border-radius: 38px; } /* the report in a phone */
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.speak-bar { display: flex; align-items: center; gap: 12px; max-width: 540px; margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.speak-p { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.speak-p i { display: block; height: 100%; width: 0; background: var(--you); transition: width .25s linear; }
.speak-text { max-width: 540px; margin-bottom: 16px; font-size: 14px; }
.roi { max-width: 760px; }
.roi-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.roi-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.roi-form input[type="number"] { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); }
.roi-out { margin: 0 0 8px; font-size: 18px; }
.roi-how { font-size: 13.5px; color: var(--ink-2); }

/* «AI-пошук» */
.audit { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit th, .audit td { padding: 10px 8px; border-top: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.audit thead th { border-top: 0; color: var(--ink-2); font-size: 12.5px; }
.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: var(--plain-bg); font-size: 12px; font-weight: 800; }
.mark.ok { background: var(--ok-bg); color: var(--ok); }
.mark.bad { background: var(--bad-bg); color: var(--bad); }
.qa { display: grid; gap: 10px; margin: 10px 0; }
.qa-i { padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.qa-q { margin: 0 0 6px; font-weight: 700; }
.qa-a { margin: 0; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 640px) { .audit thead { display: none; } .audit tr { display: grid; padding: 8px 0; border-top: 1px solid var(--line-2); } .audit th, .audit td { border: 0; padding: 4px 0; } .audit td::before { content: attr(data-label) ': '; color: var(--ink-2); font-size: 12.5px; } }
