/* app.css — the standalone CRM page on top of the extension's theme-v2.css + workspace-v3.css (same tokens, same
   components). Phone (≤ 820 px): the sidebar becomes a top bar, the lead panel a full-height sheet. */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; } body { margin: 0; min-height: 100%; }
body.full { display: grid; grid-template-columns: 208px minmax(0, 1fr); grid-template-areas: 'side top' 'side views'; grid-template-rows: auto 1fr; min-height: 100vh; }
body.full.rail { grid-template-columns: 64px minmax(0, 1fr); }
body.full .side { grid-area: side; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.brandrow { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; } .brandrow img { border-radius: 8px; background: #fff; }
body.full .top { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
body.full .top .pagehead { flex: 1; min-width: 0; } .pagehead h1 { margin: 0; display: inline; } .v3-crumb { margin-left: 10px; font-size: 13px; color: var(--faint); font-weight: 500; }
body.full .views { grid-area: views; padding: 20px; min-width: 0; }
.crm-pane { display: none; } .crm-pane.on { display: block; }
.crm-search { width: 300px; } .crm-search input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r); font: inherit; }
body.full .tabs { position: static; display: flex; flex-direction: column; gap: 4px; }
body.full .sidelic { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
body.full .sidelic .mono { font-size: 11.5px; } body.full .sidelic .v3-link { align-self: flex-start; color: var(--navy-ink); }
.card, .group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.hint { font-size: 12.5px; color: var(--muted); } .f { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; font-weight: 500; }
input, select, textarea { font: inherit; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); color: var(--ink); max-width: 100%; }
textarea { height: auto; min-height: 72px; padding: 10px 12px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } .mono { font-family: ui-monospace, Consolas, monospace; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); font-size: 13.5px; display: none; z-index: 99; } .toast.show { display: block; }
/* drawer */
.crm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; background: var(--surface); color: var(--ink); border-left: 1px solid var(--line); z-index: 60; transform: translateX(104%); transition: transform .18s; display: flex; flex-direction: column; }
.crm-drawer.open { transform: none; } .crm-drawer-scrim { position: fixed; inset: 0; background: #10243a44; z-index: 59; display: none; } .crm-drawer-scrim.open { display: block; }
body.dock .crm-drawer-scrim.open { display: none; } body.dock.drawer-open .views, body.dock.drawer-open .top { padding-right: 376px; }
.crm-drawer header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; } .crm-drawer header h3 { margin: 0; font-size: 18px; font-weight: 700; } .crm-drawer header .x { margin-left: auto; border: 0; background: var(--raise); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.crm-drawer .d-body { padding: 16px 20px 28px; overflow: auto; flex: 1; font-size: 13px; }
.crm-drawer .d-row { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; } .crm-drawer .d-row > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.d-stages { display: flex; flex-wrap: wrap; gap: 6px; } .d-stages button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font: inherit; font-size: 13px; cursor: pointer; } .d-stages button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; } .d-stages button[disabled] { color: var(--faint); background: var(--raise); border-style: dashed; }
/* board */
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.crm-col { background: #EEF2F7; border-radius: var(--r); padding: 10px; min-height: 200px; } .crm-col-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 4px 6px 10px; } .crm-col-head .n { margin-left: auto; color: var(--muted); }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; } .crm-card .co { font-weight: 600; } .crm-card .rq { font-size: 13px; color: #334155; margin-top: 3px; } .crm-card .meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.crm-col.over { outline: 2px dashed var(--brand); }
/* documents */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; } .docs-grid.with-preview { grid-template-columns: minmax(0, 1fr) 480px; }
.qi-preview { display: none; } .qi-grid.show-preview .qi-preview { display: block; } .qi-a4 { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; } .qi-a4 iframe { width: 794px; height: 1123px; border: 0; transform-origin: 0 0; }
.qi-item { display: grid; grid-template-columns: minmax(0, 1fr) 80px 70px 70px 110px 80px 32px; gap: 8px; align-items: center; margin-bottom: 8px; } .qi-item input, .qi-item select { height: 34px; padding: 0 8px; min-width: 0; width: 100%; }
.qi-tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13.5px; margin-top: 12px; max-width: 360px; margin-left: auto; } .qi-tot .grand { font-weight: 700; font-size: 16px; }
/* events table */
.ev-table { width: 100%; border-collapse: collapse; font-size: 13px; } .ev-table th, .ev-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); } .ev-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.qr { display: grid; grid-template-columns: repeat(var(--n), 1fr); width: 196px; height: 196px; border: 8px solid #fff; background: #fff; } .qr i { display: block; background: #fff; } .qr i.b { background: #000; }
/* phone */
@media (max-width: 820px) {
  body.full { grid-template-columns: 1fr; grid-template-areas: 'side' 'top' 'views'; } body.full .side { position: static; height: auto; padding: 10px 12px; } body.full .tabs .lp-kids, body.full .tabs .crm-subnav { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 4px !important; }
  body.full .tabs .crm-subnav button { width: auto !important; margin: 0 !important; min-height: 40px !important; padding: 0 10px !important; } .lp-modrow, .lp-collapse, .sidelic .mono { display: none; } body.full .sidelic { margin: 6px 0 0; flex-direction: row; align-items: center; gap: 12px; }
  body.full .top { padding: 12px 16px; flex-wrap: wrap; } .crm-search { width: 100%; } body.full .views { padding: 12px; }
  .crm-drawer { width: 100%; } body.dock.drawer-open .views, body.dock.drawer-open .top { padding-right: 12px; } .v3-table { min-width: 0 !important; } .v3-table th:nth-child(4), .v3-table td:nth-child(4), .v3-table th:nth-child(2), .v3-table td:nth-child(2) { display: none; }
  .qi-grid, .qi-grid.show-preview { grid-template-columns: 1fr !important; } /* workspace-v3.css sets the desktop columns with !important */ .qi-item { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; }
}
.lp-login { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: grid; place-items: center; padding: 16px; } .lp-login .card { width: min(420px, 100%); } .lp-login h1 { font-size: 22px; margin: 12px 0 4px; } .lp-login input { width: 100%; }
@media (max-width: 820px) { .v3-table th, .v3-table td { padding-left: 8px; padding-right: 8px; } .v3-table th { white-space: normal; line-height: 1.2; height: auto; padding-top: 8px; padding-bottom: 8px; } .v3-table td.money { white-space: normal; } }
.crm-card .meta .num { max-width: 55%; text-align: right; white-space: normal; }
@media (max-width: 820px) { body.full .side { overflow: visible; height: auto !important; min-height: 0; display: flex; flex-direction: column; } .brandrow { padding: 2px 4px 8px; } body.full .tabs { position: static; } .v3-vtabs { overflow-x: auto; } .v3-table td.money .t { white-space: normal; } }
@media (max-width: 820px) { body.full { grid-template-rows: min-content min-content 1fr; height: auto; } body.full .side { position: static !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 10px 12px 8px !important; } body.full .side .tabs { display: flex !important; flex-direction: column; } body.full .side .lp-mod { margin: 0; } body.full .side .lp-mod .lp-kids { display: flex !important; margin: 0; } }
@media (max-width: 820px) { body.full .side { display: block !important; } body.full .side > * { display: flex; } body.full .side .brandrow { margin-bottom: 6px; } body.full .sidelic { margin-top: 6px !important; } }
/* ---- 0.2: filters, brand, phone bottom bar, WhatsApp / portal panes ---- */
.brandrow img { background: transparent; border-radius: 0; object-fit: contain; }
.v3-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.v3-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.v3-filter select { height: 34px; min-width: 150px; font-weight: 500; }
.wrap { white-space: normal !important; overflow-wrap: anywhere; }
.ph-req, .ph-meta { display: none; }
.qi-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; height: auto; padding: 8px 10px; margin-bottom: 6px; font-weight: 500; text-align: left; }
.qi-row.on { border-color: var(--brand); background: var(--brand-bg, #EEF3FF); }
.crm-drawer .d-row.block { display: block; }
.crm-drawer .d-head { min-width: 0; flex: 1; } .crm-drawer .d-head h3 { overflow-wrap: anywhere; }
.v3-panel-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.v3-panel-acts > .btn { justify-content: center; }
.v3-panel-acts > .btn.primary { grid-column: 1 / -1; }
.v3-panel-acts > .v3-tplbtn { grid-column: 1 / -1; justify-content: center; }
.v3-panel-acts > .v3-nophone { grid-column: 1 / -1; }
.wa-bubble { white-space: pre-wrap; background: #E7F8EE; border: 1px solid #CDEBD8; border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 13.5px; line-height: 1.45; }
.wa-tpl { margin-bottom: 10px; padding: 10px 14px; } .wa-tplhead { all: unset; cursor: pointer; display: block; width: 100%; } .wa-tplhead:focus-visible { outline: 2px solid var(--brand); }
.v3-h3 { font-size: 15px; margin: 18px 0 10px; }
.ev-table tr.flagged td { background: #FFF6E5; } .ev-table tr.muted td { color: var(--faint); }
.mono.reveal { word-break: break-all; background: #FFF6E5; padding: 2px 4px; border-radius: 4px; }
.warntext { color: #B45309; }
#filterBtn { display: none; }
.mnav, .msheet { display: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.crm-drawer:focus { outline: none; }
@media (max-width: 820px) {
  /* compact phone navigation: the sidebar keeps only the brand + who; sections move to a bottom bar */
  body.full .side .tabs, body.full .side .lp-collapse { display: none !important; }
  body.full .side { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; padding: 8px 12px !important; }
  body.full .side .brandrow { padding: 0; margin: 0 !important; } body.full .sidelic { margin: 0 !important; flex-direction: row; gap: 10px; }
  body.full .sidelic #conn { display: none; }
  body.full { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--navy, #10243A); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mnav button { height: 50px; border: 0; background: transparent; color: #C8D3E2; font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 8px; }
  .mnav button.on { color: #fff; background: rgba(255,255,255,.12); }
  .msheet:not(.hidden) { display: grid; position: fixed; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 71; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; gap: 4px; box-shadow: 0 10px 30px #10243A33; }
  .msheet button { height: 46px; border: 0; background: transparent; text-align: left; padding: 0 14px; font: inherit; font-weight: 600; border-radius: 8px; }
  .msheet button.on { background: var(--brand-bg, #EEF3FF); color: var(--brand); }
  #filterBtn:not(.hidden) { display: inline-flex; }
  body.full .top { flex-wrap: nowrap; gap: 8px; } body.full .top .pagehead .v3-crumb { display: none; }
  body.full .top .crm-search { order: 3; flex: 1 1 100%; } body.full .top { flex-wrap: wrap; }
  .v3-filters { display: none; } .v3-filters.open { display: flex; } .v3-filter { flex: 1 1 45%; } .v3-filter select { min-width: 0; width: 100%; }
  /* lead list on a phone: one column, company + contact + requirement + stage/owner/value */
  .v3-table thead { display: none; } .v3-table th:nth-child(n+2), .v3-table td:nth-child(n+2) { display: none !important; }
  .v3-table td.clip:first-child { white-space: normal; } .ph-req { display: block; color: var(--ink) !important; font-weight: 500; margin-top: 3px; } .ph-meta { display: block; margin-top: 6px; }
  .v3-table td { padding-top: 12px !important; padding-bottom: 12px !important; }
  .crm-drawer { top: 0; bottom: 0; height: 100dvh; } .crm-drawer .d-body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .crm-drawer .d-row { grid-template-columns: 96px 1fr; }
  .crm-board { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; } .crm-col { scroll-snap-align: start; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .qr { width: 160px; height: 160px; }
}
.crm-drawer .d-row { grid-template-columns: 110px minmax(0, 1fr); } .crm-drawer .d-row select, .crm-drawer .d-row input { width: 100%; min-width: 0; }
@media (max-width: 820px) { body.drawer-open .mnav, body.drawer-open .msheet { display: none !important; } .crm-drawer .d-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } .crm-drawer .d-row { grid-template-columns: 96px minmax(0, 1fr); } }
/* 0.3.0: server paging, outstanding, payments, pairing, language, temporary-password gate */
.v3-foot { flex-wrap: wrap; }
.v3-pager { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .v3-pager .pg-text { font-variant-numeric: tabular-nums; margin-right: 4px; }
.qi-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.qi-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .qi-stat span { font-size: 12.5px; color: var(--muted); } .qi-stat b { font-size: 18px; overflow-wrap: anywhere; }
.qi-stat.due b { color: #B45309; } .qi-stat.late b { color: #B91C1C; }
.qi-tabs { padding: 0; margin: 0 0 4px; } .qi-tabs button { height: 36px; padding: 0 6px; font-size: 13px; }
.qi-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; } .qi-sec > b { display: block; margin-bottom: 4px; }
.qi-hist { margin-top: 8px; } .qi-hist summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.qi-pay td.clip { max-width: 220px; overflow-wrap: anywhere; } .qi-payform { margin-top: 8px; }
.v3-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.paircode { font-size: 30px; font-weight: 700; letter-spacing: 3px; margin: 10px 0 4px; color: var(--ink); }
.pairbox:empty { display: none; } .pairbox { margin: 6px 0 12px; }
.crm-more { margin: 4px 8px 8px; }
.bkstatus { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r, 8px); }
.lp-login .brandrow { position: relative; } .langsel { margin-left: auto; height: 32px; font-size: 13px; }
td.lease { font-size: 13px; }
@media (max-width: 820px) {
  .qi-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-foot { flex-direction: column; align-items: flex-start; }
  .qi-pay td.clip { max-width: 140px; }
}
.btn.qi-row { height: auto; min-height: 0; line-height: 1.35; white-space: normal; } .qi-row .hint { overflow-wrap: anywhere; }
.qi-out, .qi-list, .qi-editor { padding: 12px 14px; }
.crm-pane select, .crm-pane input[type="file"] { max-width: 100%; } .two > div { min-width: 0; }
/* 1.14.6: administrative override (confirm a bot is switched off) — visually separate from ordinary bot actions */
.override { border-top: 1px solid var(--line, #E5E7EB); padding-top: 10px; }
.override > summary { cursor: pointer; font-weight: 600; }
.override .warntext { margin: 8px 0; }
.btn.danger { border-color: var(--bad, #B42318); color: var(--bad, #B42318); background: var(--bad-bg, #FEF3F2); }
/* 1.14.8: stage arrows on cards, rep delete row, call list in the lead panel */
.crm-card .mv { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; } .crm-card .mv .btn.small { min-width: 34px; padding: 2px 8px; }
#repTable tr.on td { background: var(--brand-bg); } #repTable tr.rep-del td { background: var(--bad-bg); } #repTable td.acts .actions { flex-wrap: nowrap; margin: 0; }
.crm-drawer .d-calls { margin: 6px 0 0; padding-left: 18px; } .crm-drawer .d-calls li { margin: 2px 0; }
@media (max-width: 820px) { /* Team on a phone: one block per rep, labels inline, actions underneath */
  #repTable thead { display: none; } #repTable tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); } #repTable td { display: inline-block; border: 0; padding: 2px 10px 2px 0; }
  #repTable td:first-child { display: block; } #repTable td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); } #repTable td.acts { display: block; padding-top: 6px; } #repTable td.acts .actions { flex-wrap: wrap; }
  #repTable tr.rep-del td { display: block; } }

/* ---- 1.14.9 workspace polish: header, sidebar, documents table + preview, settings tabs, grouped panel ---- */
body.full .top { align-items: flex-start; padding-top: 14px; padding-bottom: 12px; } body.full .top .pagehead { display: flex; flex-direction: column; gap: 2px; }
.pagehead .v3-crumb { display: block; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); } body.full .pagehead h1 { font-size: 24px !important; line-height: 30px; } .pagehead .subtitle { margin: 0; font-size: 13.5px; color: var(--muted); }
.pageact { display: flex; align-items: center; gap: 8px; position: relative; } .pageact:empty { display: none; }
.v3-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 36, 58, .12); padding: 6px; display: flex; flex-direction: column; min-width: 220px; z-index: 40; }
.v3-menu button { font: inherit; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; color: var(--ink); } .v3-menu button:hover { background: var(--brand-bg); }
.sidecompany { color: var(--navy-ink); font-size: 13px; padding: 0 8px 12px; border-bottom: 1px solid var(--navy-line); margin-bottom: 10px; } .sidecompany:empty { display: none; }
body.full .side .brandrow img { width: 32px; height: 32px; } body.full .side .brand { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.userrow { display: flex; align-items: center; gap: 10px; } .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; } .userinfo { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; } .userinfo b { font-size: 13px; } .userrole { font-size: 12px; color: var(--navy-muted); }
body.full.rail .sidecompany, body.full.rail .userinfo { display: none; }
.lp-login { grid-template-columns: 1fr 1fr; place-items: stretch; padding: 0; } .lp-hero { background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 10px; } .lp-hero img { width: 100%; max-width: 720px; height: auto; background: #fff; border-radius: 8px; align-self: center; } .lp-hero h2 { margin: 24px 0 0; font-size: 22px; color: var(--ink); } .lp-hero p { margin: 0; color: var(--muted); }
.lp-login .card { place-self: center; width: min(420px, calc(100% - 32px)); } @media (max-width: 980px) { .lp-login { grid-template-columns: 1fr; } .lp-hero { display: none; } }
.qi-bar { display: flex; gap: 10px; align-items: center; margin: 8px 0 10px; } .qi-bar select { height: 40px; min-width: 150px; }
.docs-table tbody tr { cursor: pointer; } .docs-table tbody tr.on td { background: var(--brand-bg); } .docs-table tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; } .docs-table td.r, .docs-table th.r { text-align: right; } .docs-table td.c, .docs-table th.c { text-align: center; } .docs-table .doclink { color: var(--brand); text-decoration: none; } .docs-table .doclink:hover { text-decoration: underline; } .docs-table td { height: 44px; }
.qi-preview-card { padding: 16px; position: sticky; top: 12px; } .qi-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; } .qi-num { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .qi-ph .x { font: inherit; border: 0; background: var(--raise); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.qi-thumb { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; height: 300px; overflow: hidden; display: flex; justify-content: center; padding: 12px 0 0; margin-bottom: 12px; } .qi-thumb iframe { width: 794px; height: 1123px; border: 0; transform: scale(.26); transform-origin: top center; pointer-events: none; }
.qi-main .btn { flex: 1; justify-content: center; } .qi-preview-card .d-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .qi-preview-card .d-row > span:first-child { color: var(--muted); } .qi-preview-card .d-row.block { display: block; } .qi-chainlist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.qi-acts { margin-top: 12px; } .qi-acts .btn { flex: 1; justify-content: center; }
.v3-badge.ok { background: var(--ok-bg); color: var(--ok); } .v3-badge.bad { background: var(--bad-bg); color: var(--bad); } .v3-badge.warn { background: var(--warn-bg); color: var(--warn); }
.set-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; } .set-tabs button { font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; cursor: pointer; white-space: nowrap; } .set-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.d-group { margin-top: 14px; padding-top: 4px; } .d-group > .eyebrow { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 1240px) { .docs-grid.with-preview { grid-template-columns: minmax(0, 1fr) 400px; } }
@media (max-width: 820px) { .docs-grid.with-preview { grid-template-columns: 1fr !important; } .docs-grid.with-preview .qi-list { display: none; } .qi-preview-card { position: static; } body.doc-preview-open .qi-out { display: none; } .qi-thumb { height: 220px; } .qi-thumb iframe { transform: scale(.19); } .qi-bar { flex-wrap: wrap; } .qi-bar select { flex: 1; } }

/* ---- Zarvo brand (brand/zarvo, concept 01): wordmark on screens, standalone Z when the sidebar is a rail; no CSS effects on the logo ---- */
.brandrow img.zv-lockup { width: 110px; height: 35px; object-fit: contain; background: transparent; border-radius: 0; }
body.full .side .brandrow img.zv-lockup { width: 118px; height: 38px; margin-left: -6px; }
.brandrow img.zv-sym, body.full .side .brandrow img.zv-sym { display: none; width: 40px; height: 40px; margin: -4px; }
body.full.rail .side .brandrow img.zv-lockup, body.full.rail .side .brandrow .zv-crm { display: none; }
body.full.rail .side .brandrow img.zv-sym { display: block; }
/* "zarvo" + "CRM" side by side on one middle line (the wordmark is vertically centred in its SVG box) */
.zv-crm { font-size: 19px !important; line-height: 1 !important; font-weight: 700 !important; letter-spacing: .5px; color: #0E8C86; align-self: center; margin: 0 0 0 -2px; }
body.full .side .brandrow .zv-crm { color: #7FE3DA; }
.lp-login .lp-hero { align-items: center; text-align: center; }
.zv-heroline { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lp-hero img.zv-hero { width: min(340px, 60%); height: auto; margin: 0; background: transparent; border-radius: 0; align-self: center; }
.zv-crm.zv-crm-xl { font-size: 56px !important; letter-spacing: 1px; }
body.full .side .brandrow span.brand.zv-crm { font-size: 20px !important; line-height: 1 !important; font-weight: 700 !important; letter-spacing: .5px !important; color: #7FE3DA !important; margin: 0 0 0 -2px; align-self: center; }
/* phone: the top bar shares one row with the company and the user, so a smaller "zarvo CRM" (still one middle line) */
@media (max-width: 820px) { body.full .side .brandrow img.zv-lockup { width: 78px; height: 25px; margin-left: -4px; } body.full .side .brandrow span.brand.zv-crm { font-size: 14px !important; } }
