/* The admin's and the console's shell, on top of /cdn/main.css (the base design system), served at /cdn/shell.css,
   the pair of /cdn/shell.js. One file for both (Morris, 29/10/2026: "admin e console usando 1 só arquivo", so a style
   one module needs is there when another needs it): the header and its fold (the admin's groups too), the page's
   head, crumbs and tabs, tables, fields and forms, buttons, and the kit's pieces (/cdn/kit.js, the admin's and the
   console's, T-2386): lists, the list + detail split, panes, the badges' tones, sheets, the chat and the box people
   write in. Every admin and console page loads it after /cdn/main.css and before its module's own stylesheet; a class
   one surface uses today is here for the other.
   The product colour arrives as --product via theme.js. Usable from 360 px wide up. */
:root { --wa: #1f9d55; --ig: #c13584; --li: #0a66c2; --mail: #5c6066; --web: #2f5fa8; --game: #6d4ab0;
  --info: #2f5fa8; --info-tint: #e7eef9; --wrap-page: 1320px; }

/* ---- header: brand, menu, the person; where the menu does not fit (always on a phone) it folds into one button */
header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px var(--gutter); background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
header .brand { display: flex; align-items: baseline; gap: 8px; }
header nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; align-items: center; font-size: 14px; }
header nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  padding: 6px 10px; border-radius: var(--r-btn); }
header nav a.current, header .group-toggle.current { color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline); }
header nav .nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alert);
  color: var(--surface); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
header .who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; }
header .who a { color: inherit; }
header .who a:hover { color: var(--ink); }
header .who .btn { padding: 8px 14px; font-size: 13.5px; }
header .who .who-me { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
header .who .who-me .avatar { width: 30px; height: 30px; font-size: 11.5px; }
header .who .company-switch { max-width: 200px; padding: 6px 8px; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-btn); background: var(--surface); }
/* A group of a bar (the admin's, assets/admin/main.js; the console's Configurações, assets/console/main.js) and the
   console's person's corner: its button opens its entries under it; one open at a time. */
header .group { position: relative; }
header .group-toggle { color: var(--muted); padding: 6px 10px; border-radius: var(--r-btn); font: inherit;
  font-weight: inherit; border: 0; background: none; cursor: pointer; }
header .group-toggle:hover { color: var(--ink); }
header .group-toggle::after { content: " ▾"; font-size: 11px; }
header .drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 180px; display: grid;
  padding: 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: 0 12px 32px rgb(0 0 0 / .1); }
header .group .drop a { padding: 8px 10px; border-radius: var(--r-btn); color: var(--ink); white-space: nowrap; }
header .group .drop a:hover, header .group .drop a.current { background: var(--hairline-soft); box-shadow: none; }
/* the person's corner (the console's): their photo and name open Sua conta, Equipe and Faturas, and Sair under a
   line, hanging from its right edge so it stays on a phone's screen; it is current on one of those pages */
header .who .group-toggle { padding: 3px 8px 3px 3px; border-radius: var(--r-pill); }
header .who .drop { left: auto; right: 0; font-size: 14px; }
header .who .drop hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--hairline-soft); }
header .who .drop button { padding: 8px 10px; border: 0; border-radius: var(--r-btn); background: none; font: inherit;
  color: var(--ink); text-align: left; cursor: pointer; }
header .who .drop button:hover { background: var(--hairline-soft); }
header .fold { display: none; }
/* tight, then folded (each shell's main.js, fit()): where the menu's entries do not fit on one line beside the brand
   and the person, the console's person's name goes first, then the menu folds into its button, measured, never by a
   width the CSS guesses; a phone folds it always (Canais made twelve entries: at 1366 px Equipe went down to a second
   line). A group of the bar opens inside the column; the person's corner keeps its own, on the first line. */
header.tight #who .who-name { display: none; }
header.folded { gap: 10px; }
header.folded .who { order: 2; margin-left: auto; }
header.folded .fold { order: 3; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  cursor: pointer; border: 1px solid var(--hairline); border-radius: var(--r-btn); background: var(--surface);
  color: var(--ink); font-size: 18px; line-height: 1; }   /* the console's holds an icon, the admin's a ☰ */
header.folded nav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px;
  padding-top: 4px; }
header.folded.open nav { display: flex; }
header.folded nav a, header.folded nav .group-toggle, header.folded nav .group .drop a { padding: 10px 12px; }
header.folded nav .group-toggle { width: 100%; text-align: left; }
header.folded nav .drop { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; }
@media (max-width: 560px) {
  header #who .who-name { display: none; }   /* the photo stays: it opens the person's menu */
  header .who .company-switch { max-width: 130px; }
}

/* ---- page: every console page's content is as wide as the widest (Morris, 23/10/2026: Faturas was narrower than
   Conteúdo, and the width changed from page to page); the admin's uses the whole width of the window (Morris,
   16/10/2026: tables and lists use it all), its pages' body being .admin. Running text keeps its own reading width
   (.body, .lead, in ch), forms and facts theirs (.form, .frame.narrow, .account): only the box is the same everywhere. */
main { max-width: var(--wrap-page); margin: 0 auto; padding: 32px var(--gutter) 72px; }
body.admin { --wrap-page: none; }
main h1 { font-size: 28px; font-weight: 650; letter-spacing: -.03em; margin: 8px 0 6px; }
main h2 { font-size: 18px; font-weight: 600; margin: 40px 0 6px; }
main > .body, .page-head + .body { margin: 0 0 18px; }
@media (max-width: 560px) { main { padding-top: 20px; } main h1 { font-size: 23px; } }
/* One task per page: tabs inside a module or an item, crumbs above the title, the main action beside it. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--hairline);
  text-underline-offset: 3px; }
.crumbs + .page-head, .crumbs + h1 { margin-top: 6px; }
/* the tabs scroll sideways where they do not fit (a phone), on one line */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hairline);
  margin: 14px 0 22px; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.current { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }
/* A list inside a page (the flows a signup sets off) wears the text around it, not the browser's: its size, bullets
   close in; and a link in running text or in such a list reads as a link (Morris, 28/10/2026). */
main ul:not([class]) { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
main ul:not([class]) a, .body a, .kind a { text-decoration: underline; text-decoration-color: var(--border);
  text-underline-offset: 3px; }
.kind { font-size: 12.5px; color: var(--muted); }   /* a small line of words: a cell's second line, a state */
p code { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 5px; }
.secret { letter-spacing: .15em; color: var(--faint-text); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar select { flex: 1 1 140px; }
/* a list's filters as small fields, two a line, as many lines as they need (Conversas: situação, canal, conta,
   etiqueta); one hidden leaves no hole. An action after a line of chips (.chips-end) stands at its end. */
.toolbar-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toolbar-fields:not(:has(> :not([hidden]))) { display: none; }
main .toolbar-fields select { padding: 6px 8px; font-size: 13px; }
.toolbar .chips-end { margin-left: auto; padding: 6px 12px; font-size: 13px; }
.chip-toggle { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); white-space: nowrap; }
.chip-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--fill); }
.chip-count { margin-left: 6px; font-size: 12px; color: var(--faint-text); font-variant-numeric: tabular-nums; }
.chip-toggle[aria-pressed="true"] .chip-count { color: var(--muted); }   /* --faint-text on --fill is under 4.5:1 */
.chip-count:empty { display: none; }
.note-member { font-size: 13px; color: var(--muted); background: var(--fill); padding: 8px 12px;
  border-radius: var(--r-input); margin: 0 0 14px; }
.locked { cursor: not-allowed; }
/* a refusal in the page's own words; a <p> keeps its paragraph's margins */
.error { color: var(--alert); font-size: 13px; }
[hidden] { display: none !important; }
.verify-banner { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--r-card); font-size: 14px; color: var(--ink);
  background: var(--accent-tint); border: 1px solid var(--hairline); }
.verify-banner a { font-weight: 600; }
/* a session our team opened in the person's name: the header's first line (assets/console/main.js puts it there), from
   edge to edge over the header's padding, so it stays on top with the header and covers none of it (the menu, the
   bell, the person), folded or not. Sticky on its own, beside the header, it hid the header's first line. */
.impersonation-banner { order: -1; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: -12px calc(-1 * var(--gutter)) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px var(--gutter); font-size: 14px; color: var(--ink); background: var(--alert-tint);
  border-bottom: 1px solid var(--alert); }
.account { margin-top: 28px; max-width: 520px; }
.next-step { margin-top: 16px; }   /* the action that follows what the page just showed */
.frame.narrow { max-width: 640px; }   /* key / value facts (shell.js facts()), kept to a readable width */

/* ---- buttons: .btn (/cdn/main.css) in a smaller size, the dangerous ones, icons; the plain buttons the shell makes
   (shell.js button(): a <button> with no class, or .primary) and a link drawn as one (a.button). The plain ones are
   only those in a page's <main>: a component's button (the bell, a toast, a row, a chip) keeps its own look. */
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-danger { background: var(--alert); color: var(--surface); }
.btn-danger:hover { background: color-mix(in srgb, var(--alert) 85%, #000); color: var(--surface); }
.btn-quiet-danger { background: transparent; color: var(--alert);
  border-color: color-mix(in srgb, var(--alert) 45%, transparent); }
.btn-quiet-danger:hover { border-color: var(--alert); color: var(--alert); }
.btn:disabled, .btn[aria-busy="true"], .icon-btn:disabled { opacity: .55; cursor: default; }
/* a button on its own in a stacked section (a one-column grid) keeps its own width: stretched across the section it
   reads as a field, not a button (T-2228). A button meant to fill the line says so with .btn-block. */
:where(.block, .sheet-body, .form, .field, .spans, .usage, .key-list)
  > :is(.btn, button, a.button, .confirm-step):not(.btn-block) { justify-self: start; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--hairline); border-radius: var(--r-btn); background: var(--surface); color: var(--muted);
  cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--border-strong); }
main button:not([class]), main button.primary, a.button { font: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-btn); border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); cursor: pointer; }
main button:not([class]):hover { border-color: var(--ink); }
main button.primary, a.button.primary { background: var(--primary); color: var(--bg); border-color: var(--primary); }
a.button { display: inline-block; }

/* ---- tables (the admin's lists, the console's older pages): they scroll sideways on a phone instead of breaking the
   page */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); font-size: 14px;
  vertical-align: top; }
th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-text); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* a cell's second line in the page's face; what is code in it (an id, a key) carries .mono or <code> */
td code { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
td button + button { margin-left: 6px; }
@media (max-width: 640px) { main table { display: block; overflow-x: auto; white-space: nowrap; } }
.inline-form { display: flex; align-items: flex-end; gap: 10px 12px; flex-wrap: wrap; margin: 16px 0; max-width: 760px; }
/* a short form on one line: each field with its label above it, the button beside the last field */
.inline-form > .field { flex: 1 1 220px; min-width: 0; }
.inline-form > .field-short { flex: 0 1 160px; }
.inline-form > .form-error { flex-basis: 100%; }   /* the kit's line over a form (form()), over its whole line */
.inline-form.tight { margin: 0; }
/* the admin's filters over a list: one card, the fields on one line and the button beside the last */
form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); }
td form.inline { padding: 8px 0 0; border: 0; margin: 0; background: none; }

/* ---- fields */
/* the same in a sheet over the page (kit.sheet), which lives outside <main>. The family is the page's (/cdn/main.css
   gives it to every control), so a code's field (.mono, a device's code) keeps its own. */
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), main select, main textarea,
.sheet input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .sheet select, .sheet textarea {
  font-size: 14px; font-weight: inherit; line-height: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-input); padding: 9px 12px; min-width: 0; max-width: 100%; }
main textarea, .sheet textarea { line-height: 1.5; resize: vertical; min-height: 40px; }
/* what is typed as code (JSON, HTML, a key, a list of ids) in the code face */
textarea.mono, textarea.code { font-family: var(--font-mono); font-size: 12.5px; }
main select:focus, main textarea:focus, .sheet select:focus, .sheet textarea:focus { outline: none;
  border-color: var(--ink); }
/* the field rule above outweighs a plain input:disabled, so the disabled look names the same inputs */
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):disabled, main select:disabled,
main textarea:disabled, .sheet input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):disabled,
.sheet select:disabled, .sheet textarea:disabled { background: var(--fill); color: var(--muted); }
main [aria-invalid="true"], .sheet [aria-invalid="true"] { border-color: var(--alert) !important; }
/* Controls inside tables follow the table's type size and never break into several lines; a link drawn as a button
   (Equipe's "Trocar em Sua conta") is as tall as the buttons beside it. */
main td button:not([class]), main td button.primary, td a.button, main td select,
main td input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { font-size: 12.5px; padding: 6px 10px;
  white-space: nowrap; }
td a.button { line-height: normal; }
main td select { max-width: 200px; }
td .confirm-step span { white-space: normal; }   /* a confirm's question says what happens, in words */
td .kind { font-size: 11.5px; }
/* A form: its fields one under the other at a readable width; .card frames it on a page (the admin's forms, a
   console's own page), and a sheet's goes without. A field is its title (.field-label) above its control, with a
   hint under it: the kit's field(), a page's <label class="field">, the kit's labeled(). */
.form { display: grid; gap: 16px; max-width: 680px; }
.form.card { padding: 20px; }
main > .form.card, main > section > .form.card { margin-top: 20px; }
.field { display: grid; gap: 6px; align-content: start; }   /* beside a taller field (a hint under it) it keeps its height */
/* a field in a line beside its buttons, where no form holds it (labeled(): a cell, an action's note) */
.field-inline { display: inline-grid; vertical-align: bottom; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.field-error { font-size: 12.5px; color: var(--alert); }
.form-error { padding: 10px 12px; border-radius: var(--r-input); background: var(--alert-tint); color: var(--alert);
  font-size: 13.5px; }
.form-error a, p.error a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 12px 16px 16px; margin: 0;
  display: grid; gap: 10px; min-width: 0; }
legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { margin: 3px 0 0; accent-color: var(--accent); }
/* a box with its hint (an admin page's "ligado", a version's setting) reads as a field of its form, as a switch does:
   its words a field's title (.field-label's size and weight) beside the box, and its hint under them */
.check:has(> .hint) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; font-size: 13px;
  font-weight: 500; line-height: 20px; color: var(--ink); }
.check > .hint { grid-column: 2; font-weight: 400; }
/* a fieldset's boxes in blocks (an agent's tools, a block per module): each under its name, a hairline between */
.check-group { display: grid; gap: 10px; }
.check-group + .check-group { padding-top: 14px; border-top: 1px solid var(--hairline-soft); }
legend + .check-group { margin-top: 6px; }   /* the first block stands off the fieldset's title */
.check-group-name { font-size: 12.5px; font-weight: 600; color: var(--muted); }
/* an on/off switch (kit.js toggle()) reads as a field of its form: its words a field's title (.field-label's size and
   weight) beside it, the switch on their first line, and under them the hint a label carried in parentheses */
.switch { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500;
  line-height: 20px; color: var(--ink); cursor: pointer; }
.switch > span { display: grid; gap: 2px; min-width: 0; }
.switch .hint { font-weight: 400; }
.switch input { appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0;
  border-radius: 99px; background: var(--border); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A disclosure (<details>: "Mais opções"): its <summary> a section's title in a form (a legend's size and weight), in
   ink, with a chevron of our own in its colour that turns down when it opens (the browser's marker hidden, so every
   browser draws the same) and the keyboard's ring; what it opens comes under it with room. A summary of its own keeps
   its size and colour (a message's Transcrição, an Instagram's days, a module's own) and takes the chevron. */
summary { display: list-item; list-style: none; width: fit-content; max-width: 100%; font-size: 13px; font-weight: 600;
  line-height: 20px; color: var(--ink); cursor: pointer; border-radius: 4px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px;
  vertical-align: middle; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
  transition: transform .15s; }
details[open] > summary::before { transform: translate(0, -2px) rotate(45deg); }
details.card > summary { width: auto; }   /* a disclosure that is a card (atray's Histórico): its whole line opens it */
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details > summary + * { margin-top: 12px; }

/* ---- lists */
.list { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.list-rows > .row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--ink);
  border-bottom: 1px solid var(--hairline-soft); }
.list-rows > .row:last-child { border-bottom: 0; }
/* a row that acts in place (Canais' Meu LinkedIn among the kinds to connect) reads as a row, not a button */
button.row { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
a.row:hover, button.row:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); color: var(--ink); }
.row.current { background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.row-title { flex: 1; min-width: 0; font-weight: 550; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.row-end { font-size: 12px; color: var(--faint-text); white-space: nowrap; }
.row-sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text { font-size: 13.5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.row-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.row.unread .row-title { font-weight: 700; }
.row.unread .row-sub { color: var(--ink); }
.unread-dot { flex: none; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.unread-count { flex: none; align-self: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--surface); font-size: 11.5px; font-weight: 600; display: grid;
  place-items: center; }
/* "Carregar mais" under what comes a page at a time (kit.js list(): under a table, or inside a list under its rows) */
.load-more { margin-top: 12px; }
.list-rows + .load-more { margin: 10px 14px 14px; }
/* What a list or a box says with nothing in it (kit.js emptyState()): its words in the middle, a title over a line,
   and at most a quiet way out. In a table's body it is one row, a cell across its columns, the same words stacked. */
.empty { padding: 32px 20px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
td.empty { display: table-cell; }
td.empty > strong { display: block; }
td.empty > p { margin-left: auto; margin-right: auto; }
td.empty > * + * { margin-top: 8px; }
.empty strong { color: var(--ink); font-size: 15px; }
.empty p { margin: 0; font-size: 14px; max-width: 46ch; line-height: 1.55; }
.empty .form-actions { justify-content: center; }
.skeleton-row { padding: 14px; display: grid; gap: 8px; border-bottom: 1px solid var(--hairline-soft); }
td.skeleton > .sk-line + .sk-line { margin-top: 8px; }   /* a table's rows on their way (kit.js loading()) */
.sk-line { display: block; height: 10px; border-radius: 5px; background: var(--fill);
  animation: sk 1.2s ease-in-out infinite; }
.sk-line.short { width: 60%; }
@keyframes sk { 50% { opacity: .45; } }

/* ---- badges and marks: a badge's tones (its shape is /cdn/main.css's, the Histórico's results' too); a status in
   colours of its own, never the product's (ok is --ok's green on every product: tetô's online was its terracotta) */
.tone-ok { color: var(--ok); background: var(--ok-tint); }
.tone-warn, .tone-error { color: var(--alert); background: var(--alert-tint); }
.tone-info { color: var(--info); background: var(--info-tint); }
.tone-muted { color: var(--muted); background: var(--fill); }
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid;
  place-items: center; background: var(--fill); color: var(--muted); font-size: 14px; font-weight: 600; }
.avatar-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.account-photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.key-list { display: grid; gap: 2px; }
.key-shown { word-break: break-all; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-input); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.form fieldset legend { padding: 0; }   /* no border to stand off: it lines up with the labels */
.account-photo .avatar { width: 64px; height: 64px; font-size: 20px; }
.avatar-channel { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 2px solid var(--surface); }
.ch-whatsapp { background: var(--wa); }
.ch-instagram { background: var(--ig); }
.ch-email { background: var(--mail); }
.ch-webchat { background: var(--web); }
.ch-linkedin { background: var(--li); }
.ch-game { background: var(--game); }

/* ---- the list + detail split: side by side, or one at a time on a phone */
.split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.split-list .list { max-height: calc(100dvh - 230px); overflow-y: auto; }
.split-detail { min-width: 0; }
.split-back { display: none; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-list .list { max-height: none; }
  .split.detail-open .split-list, .split:not(.detail-open) .split-detail { display: none; }
  .split-back { display: inline-grid; }
  body.detail-open main > .page-head, body.detail-open main > .tabs, body.detail-open main > .crumbs,
  body.detail-open main > .page-head + .body, body.detail-open main > .tabs + .body { display: none; }
}

/* ---- panes: a detail, its head, its sections */
.pane { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); min-width: 0; }
.pane-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  border-bottom: 1px solid var(--hairline-soft); }
.pane-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pane-title strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-title span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.pane-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* on a phone a conversation's buttons go under its head: beside it they squeezed the name (or the subject) out */
@media (max-width: 560px) {
  .pane-head:has(> .pane-actions:not(:empty)) { flex-wrap: wrap; }
  .pane-head:has(> .pane-actions:not(:empty)) > .pane-actions { flex-basis: 100%; justify-content: flex-start; }
}
.block { padding: 16px; border-top: 1px solid var(--hairline-soft); display: grid; gap: 10px; }
.block:first-child { border-top: 0; }
.block h2 { font-size: 15px; margin: 0; }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; font-size: 13.5px;
  line-height: 1.5; border-bottom: 1px solid var(--hairline-soft); color: var(--ink); }
.banner > span { flex: 1 1 220px; }
.banner.tone-warn { background: var(--alert-tint); color: var(--ink); }
.banner.tone-info { background: var(--info-tint); color: var(--ink); }
.banner.tone-muted { background: var(--fill); color: var(--ink); }
.banner.tone-ok { background: var(--ok-tint); color: var(--ink); }
/* a grid of cards (a <div>: a table whose rows turn into cards on a phone, geth's table.cards, is not one) */
div.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.cards > .card { display: flex; flex-direction: column; min-width: 0; }
/* Two columns of cards, for a page that opts in with .card-grid (Marca, in Configurações; Morris, 03/11/2026: "atualmente
   estamos usando só 50/60% da tela... e as páginas estão ficando uma tripa enorme pra baixo"): the cards in pairs,
   each filling its column, a form's card past the form's reading width too, the two of a line as tall as the taller,
   their fields from the top. What is not a card (a member's note) and a card marked .card-wide go across both; at
   900 px and less, one under the other. */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card-grid > * { min-width: 0; }
.card-grid > .form { max-width: none; align-content: start; }
.card-grid > :not(.card), .card-grid > .card-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 16px 18px 8px; }
.card-head h2 { margin: 0; font-size: 15px; }
.card-head a { font-size: 13px; color: var(--muted); }
.card-head .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }   /* a list's own action */
.card .list { border: 0; border-top: 1px solid var(--hairline-soft); border-radius: 0; }
.card-foot { padding: 12px 18px 16px; font-size: 13.5px; color: var(--muted); }
.big-number { font-size: 30px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  padding: 0 18px 8px; }
.usage { display: grid; gap: 12px; padding: 4px 18px 16px; }
.usage-line { display: grid; gap: 5px; font-size: 13.5px; }
.usage-line .usage-top { display: flex; justify-content: space-between; gap: 8px; }
.usage-line .bar > i { background: var(--accent); }
.usage-line.full .bar > i { background: var(--alert); }

/* ---- sheets (the confirm step and the toasts are /cdn/main.css's, the admin's too) */
dialog.sheet { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: min(84vh, 760px);
  border-radius: var(--r-frame); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / .25); }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgb(22 24 29 / .45); }
/* a browser without <dialog> (kit.js sheet(): Safari before 15.4): the sheet in the middle of a veil of its own */
.sheet-veil { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(22, 24, 29, .45); }
.sheet-veil > dialog.sheet { position: static; margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft); }
.sheet-body { padding: 16px; display: grid; gap: 12px; overflow-y: auto; }
@media (max-width: 560px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-frame) var(--r-frame) 0 0;
    max-height: 90vh; }
  .sheet-veil { align-items: flex-end; padding: 0; }
}
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--hairline);
  border-radius: var(--r-input); cursor: pointer; font-size: 14px; }
.choice:has(input:checked) { border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---- a company's labels (their colour comes with each one), and a conversation's tools: its state, the person it was
   given to, its contact's labels */
.label-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 160px; font-size: 11px; font-weight: 600;
  line-height: 1.5; padding: 1px 8px; border-radius: var(--r-pill); color: var(--muted); background: var(--fill);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-chip .label-take { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; display: grid; }
.label-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.label-choice { border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-pill);
  padding: 6px 8px; cursor: pointer; }
.label-choice:hover { border-color: var(--ink); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.swatch input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.conv-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 14px;
  border-bottom: 1px solid var(--hairline-soft); }
.conv-tools:empty { display: none; }
.conv-tools .assignee { flex: 0 1 200px; padding: 5px 8px; font-size: 13px; }
.conv-labels { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---- a conversation: day marks, messages, what they carry, and the box to write in */
.chat-pane { display: flex; flex-direction: column; height: calc(100dvh - 230px); min-height: 440px; overflow: hidden; }
@media (max-width: 860px) { .chat-pane { height: calc(100dvh - 120px); min-height: 380px; } }
.chat { position: relative; flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column;
  gap: 6px;
  background: color-mix(in srgb, var(--fill) 55%, var(--surface)); }
.chat .load-more { align-self: center; margin: 0 0 6px; }
.msg { max-width: min(80%, 560px); align-self: flex-start; padding: 8px 12px; border-radius: 14px; font-size: 14px;
  line-height: 1.5; background: var(--surface); border: 1px solid var(--hairline); overflow-wrap: anywhere; }
.msg.out { align-self: flex-end; background: var(--accent-tint); border-color: transparent; }
.msg.failed { border-color: var(--alert); }
.msg-text { white-space: pre-wrap; }
.msg-text a { color: inherit; text-decoration: underline; }
.msg-meta { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; font-size: 11px;
  color: var(--muted); }
.msg-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.msg-note.warn { color: var(--alert); }
.msg-note.msg-subject { margin: 0 0 4px; font-weight: 600; color: inherit; }   /* an e-mail's own subject */
.day-mark { align-self: center; margin: 8px 0; padding: 2px 10px; font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-pill); }
.new-below { position: sticky; bottom: 4px; align-self: center; display: inline-flex; gap: 6px; align-items: center;
  font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.att { display: grid; gap: 4px; margin-bottom: 6px; }
.att img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; cursor: zoom-in;
  background: var(--fill); }
.att audio { width: min(280px, 100%); }
.att video { max-width: 100%; max-height: 320px; border-radius: 10px; }
.att-file { display: inline-flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font: inherit;
  font-size: 13px; color: var(--ink); background: var(--fill); border: 0; cursor: pointer; text-align: left; }
.att-wait { font-size: 12.5px; color: var(--muted); font-style: italic; }
/* a file that never came in: its name, dimmed, with its mark; why, under it on a tap (and on the mouse, its title) */
.att-file.att-missing { color: var(--muted); cursor: help; }
.att-mark { font-size: 12px; font-style: italic; color: var(--muted); }
.att-why { font-size: 12px; color: var(--muted); max-width: 360px; overflow-wrap: anywhere; }
.att details { font-size: 12.5px; color: var(--muted); }
.att summary { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.composer { position: relative; display: grid; gap: 8px; padding: 10px 12px; background: var(--surface);
  border-top: 1px solid var(--hairline-soft); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row textarea { flex: 1; resize: none; max-height: 180px; min-height: 40px; }
.composer-tools { display: flex; gap: 4px; }
.composer-tools:empty { display: none; }
.composer-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.composer-picked { flex: 1; display: grid; gap: 6px; justify-items: start; padding: 10px 12px;
  border-radius: var(--r-input);
  background: var(--fill); }
.composer-picked-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.composer-preview { margin: 0; font-size: 13.5px; white-space: pre-wrap; color: var(--ink-soft); }
.picker { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); z-index: 20; max-height: 280px;
  overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.pick { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0;
  border-radius: var(--r-btn);
  background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.pick strong { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.pick span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick[aria-selected="true"], .pick:hover { background: var(--fill); }
.pick-none { padding: 10px; font-size: 13px; color: var(--muted); }

/* ---- pairing a number: the QR and the code */
.qr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.qr img { width: 264px; height: 264px; padding: 10px; background: #fff; border-radius: var(--r-card);
  border: 1px solid var(--hairline); image-rendering: pixelated; }
.code-big { font-family: var(--font-mono); font-size: 26px; letter-spacing: .14em; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5;
  color: var(--ink); }
@media (max-width: 640px) {
  .qr { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .qr img { width: min(264px, 78vw); height: auto; }
}

/* ---- a week's hours (an agent's behaviour) */
.week { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.day-row:last-child { border-bottom: 0; }
.spans { display: grid; gap: 6px; }
.span-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.span-row input[type="time"] { width: 112px; }
.chips-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips-edit .badge button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px;
  font: inherit; }
@media (max-width: 560px) { .day-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- two columns of panes (a contact's page): .col-main and .col-more on the left, .col-side on the right; on a
   phone one under the other, the side's panes before .col-more */
.columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); grid-template-rows: auto 1fr;
  grid-template-areas: "main side" "more side"; gap: 16px; align-items: start; }
.columns > * { min-width: 0; }
.col-main { grid-area: main; }
.col-more { grid-area: more; }
.col-side { grid-area: side; display: grid; gap: 16px; }
@media (max-width: 860px) {
  .columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "main" "side" "more"; }
}
.pane > .list { border: 0; border-radius: 0 0 var(--r-card) var(--r-card); }
.pane-head h2 { flex: 1; margin: 0; font-size: 15px; }
/* a <dl> of label and value (a box of the shell's facts() rows, .data-row, is not one) */
dl.facts { display: grid; gap: 6px; margin: 0; font-size: 13.5px; }
dl.facts > div { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.toolbar input[type="search"] { flex: 2 1 220px; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  background: var(--hairline-soft); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.numbers > div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.numbers strong { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 12.5px; color: var(--muted); }

/* ---- a channel's profile as its network shows it (an Instagram account's page in Canais): its photo and words, its
   counts (.numbers) and the days kept */
.profile { display: grid; gap: 14px; }
.profile-head { display: flex; gap: 14px; align-items: flex-start; }
.profile-who { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.profile-bio { margin: 0; white-space: pre-line; color: var(--muted); }
.profile-days > summary { width: auto; cursor: pointer; font-size: 14px; font-weight: 550; }   /* opens from its line */
.profile-days > .list { margin-top: 10px; }

/* ---- an account's uses (Canais): a group per family, each use its switch (or, fixed, its mark) with its line under
   the switch's words */
.uses fieldset { gap: 12px; }
.use { display: grid; gap: 4px; }
.use > .hint { padding-left: 46px; }   /* the switch (36 px) and its gap (10 px): under its words */
.use-fixed { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.use-fixed + .hint { padding-left: 0; }

/* ---- choosing a contact (contactPicker): a search, the matches under it, the one chosen */
.contact-pick { position: relative; display: grid; }
.contact-pick input[type="search"] { width: 100%; }
.pick-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 300px;
  overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.pick-results .pick { align-items: center; }
.pick-results .avatar, .pick-chosen .avatar { width: 32px; height: 32px; font-size: 12px; }
.pick-results .pick strong { font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.pick-results .row-main span { font-size: 12.5px; }
.pick-chosen { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--r-input); background: var(--surface); }

/* ---- a done mark on a row (a task): a round button that completes it, filled once done */
.done-toggle { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: transparent;
  cursor: pointer; }
.done-toggle:hover { border-color: var(--accent); color: var(--accent); }
.done-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.done-toggle:disabled { cursor: default; opacity: .55; }
.row.is-done .row-title { text-decoration: line-through; color: var(--muted); }

/* ---- a browser without flex gap (Safari before 14.1: an iPad that stays on iOS 12; it has no inset either, which is
   how it is told apart): the shell's and the kit's parts keep their room, as margins */
@supports not (inset: 0) {
  header > * + *, header .who > * + * { margin-left: 14px; }
  header.folded nav { margin-left: 0; }
  header > .impersonation-banner { margin-bottom: 12px; }   /* the band over the header's line, which starts the line */
  header > .impersonation-banner + * { margin-left: 0; }
  header .brand > * + *, header nav a > * + *, header .who .who-me > * + *, .list-rows > .row > * + *,
  .row-top > * + *, .pane-head > * + *, .card-head > * + *, .sheet-head > * + *, .check > * + *, .switch > * + *,
  .badge > * + *, .pick-chosen > * + *, .usage-line .usage-top > * + * { margin-left: 8px; }
  header nav a + a { margin-left: 2px; }
  .page-head > * { margin: 0 20px 12px 0; }
  .page-head .actions > *, .toolbar > *, .form-actions > *, .row-marks > *, .row-actions > *, .pane-actions > *,
  .banner > *, .card-head .actions > *, .inline-form > * { margin: 0 8px 8px 0; }
  .split-list > * + * { margin-top: 10px; }
}
