/*
 * Sirio Hub — la struttura del pannello fornitori di MaxPlayer (barra
 * laterale a sezioni, barra superiore, titolo con percorso, schede e
 * tabelle) con i colori e il marchio di Sirio (brand/sirio-logo):
 * blu profondo a gradiente, voce scelta con il bordo bianco, il simbolo
 * ad anello in quattro colori, SIRIO in Archivo largo e «Hub» in corsivo.
 */

/* Caratteri del marchio, ospitati qui (licenza OFL, vedi assets/fonts). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-ExpandedExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-stretch: 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/DMMono-Regular.ttf") format("truetype");
  font-display: swap;
}

:root,
[data-theme="dark"] {
  /* Il blu notte del marchio, lo stesso della splash e dell'accesso. */
  --bg: #070b1f;
  --bg-top: #0d1331;
  --bg-mid: #090e26;
  --sidebar: #0a0f27;
  --sidebar-text: #a9b2d3;
  --sidebar-title: #6f7aa3;
  --topbar: rgba(7, 11, 31, 0.82);
  --card: #10163a;
  --card-solid: #10163a;
  --card-head: rgba(255, 255, 255, 0.025);
  --line: rgba(169, 178, 211, 0.13);
  --line-strong: rgba(169, 178, 211, 0.26);
  --text: #f5f3ee;
  --dim: #a9b2d3;
  --muted: #8b95bb;
  --input: rgba(255, 255, 255, 0.04);
  --hover: rgba(255, 255, 255, 0.06);
  --primary: #2f62e8;
  --primary-hover: #3d70f5;
  --accent: #39b7ff;
  --ok: #45d483;
  --bad: #ff6b6b;
  --warn: #ffc24b;
  --info: #39b7ff;
  --violet: #9b4dff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --spectrum: linear-gradient(135deg, #ffc24b 0%, #ff3d9a 36%, #9b4dff 68%, #39b7ff 100%);
  --stage:
    radial-gradient(90% 60% at 0% -10%, rgba(57, 183, 255, 0.07), rgba(57, 183, 255, 0) 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg) 100%);
  --r: 8px;
  --side: 250px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #eef2fc;
  --topbar: rgba(255, 255, 255, 0.86);
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-head: #f7f9ff;
  --line: #e1e7f6;
  --line-strong: #c9d3ee;
  --text: #0b1030;
  --dim: #44547f;
  --muted: #7a87ab;
  --input: #ffffff;
  --hover: rgba(18, 58, 184, 0.06);
  --primary: #1f4fd6;
  --primary-hover: #2a5ce6;
  --shadow: 0 6px 22px rgba(7, 11, 31, 0.08);
  --stage: linear-gradient(180deg, #f3f6fe 0%, #e8eefb 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
code, .mono { font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.ic {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  font-variation-settings: "FILL" 0, "wght" 400;
  -webkit-font-feature-settings: "liga";
  user-select: none;
  flex: none;
}
.ic.fill { font-variation-settings: "FILL" 1, "wght" 500; }

/* ------------------------------------------------------------- marchio */

.lockup, .home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #f5f3ee; }
.lockup .mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-family: "Archivo", "Arial Black", sans-serif;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark i {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-size: 1.13em;
  letter-spacing: 0;
  margin-left: 0.28em;
}

/* ----------------------------------------------------------- struttura */

.app { min-height: 100vh; background: var(--stage); background-attachment: fixed; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  z-index: 30;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: width 0.15s;
}
.sidebar .brand { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 20px; flex: none; }
.sidebar .collapse {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(184, 198, 242, 0.3); border-radius: 6px;
  background: none; color: var(--sidebar-text); cursor: pointer;
}
.sidebar .collapse:hover { color: #fff; border-color: #fff; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sidebar-title); padding: 16px 12px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; margin: 2px 0;
  border-radius: 6px; border: 1.5px solid transparent;
  color: var(--sidebar-text); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.nav-link .ic { font-size: 20px; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-link[aria-current="page"] { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 500; }
.nav-link .badge { margin-left: auto; }

.wrap { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; transition: margin 0.15s; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: var(--topbar); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.search { position: relative; width: min(320px, 100%); }
.search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input { width: 100%; height: 36px; padding: 0 12px 0 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tool {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: none; color: var(--dim); cursor: pointer; text-decoration: none;
}
.tool:hover, .tool[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.tool .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--spectrum); color: #fff; font-weight: 700; font-size: 13px; border: 2px solid rgba(255,255,255,.7);
}
.content { flex: 1; padding: 22px 28px 40px; width: 100%; max-width: 1480px; }
.footer { padding: 16px 28px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer b { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Barra laterale ridotta: solo icone. */
[data-sidebar="condensed"] { --side: 72px; }
[data-sidebar="condensed"] .sidebar .wordmark,
[data-sidebar="condensed"] .nav-link .t, [data-sidebar="condensed"] .nav-title, [data-sidebar="condensed"] .nav-link .badge { display: none; }
[data-sidebar="condensed"] .sidebar .brand { flex-direction: column; justify-content: center; gap: 6px; height: 88px; padding: 0; }
[data-sidebar="condensed"] .nav-link { justify-content: center; padding: 0; }
[data-sidebar="condensed"] .sidebar nav { padding-top: 8px; }

.scrim { display: none; }

/* -------------------------------------------------- titolo della pagina */

.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-title h1 { font-size: 19px; font-weight: 500; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { font-size: 16px; }
.crumbs span:last-child { color: var(--dim); }

/* ------------------------------------------------------------- schede */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-header h2 { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card-header .sub { color: var(--muted); font-size: 13px; }
.card-header a.more { color: var(--muted); font-size: 13px; text-decoration: none; }
.card-header a.more:hover { color: var(--text); }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.grid .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* Riquadri dei numeri della dashboard. */
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat .sq { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.stat .sq .ic { font-size: 22px; }
.sq.red { background: rgba(255, 107, 107, 0.16); color: var(--bad); }
.sq.green { background: rgba(69, 212, 131, 0.16); color: var(--ok); }
.sq.blue { background: rgba(79, 184, 255, 0.16); color: var(--info); }
.sq.violet { background: rgba(160, 123, 255, 0.18); color: var(--violet); }
.sq.yellow { background: rgba(255, 194, 75, 0.16); color: var(--warn); }
.stat .lbl { color: var(--muted); font-size: 13px; }
.stat .val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .val small { font-size: 13px; color: var(--muted); font-weight: 400; }
.stat .body { flex: 1; min-width: 0; }

.progress { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--spectrum); border-radius: 3px; }
.progress.bad i { background: var(--bad); }

/* Avviso in alto e striscia di benvenuto. */
.alert {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; margin-bottom: 18px;
  border-radius: var(--r); border: 1px solid; font-size: 13.5px;
}
.alert .ic { font-size: 20px; }
.alert > div { flex: 1; }
.alert a, .alert button.link { font-weight: 500; white-space: nowrap; }
.alert.warn { background: rgba(255, 194, 75, 0.1); border-color: rgba(255, 194, 75, 0.35); color: var(--warn); }
.alert.bad { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.35); color: #ff9c9c; }
.alert.ok { background: rgba(69, 212, 131, 0.1); border-color: rgba(69, 212, 131, 0.35); color: var(--ok); }
.alert.info { background: rgba(79, 184, 255, 0.1); border-color: rgba(79, 184, 255, 0.35); color: var(--info); }
[data-theme="light"] .alert.warn { color: #9a6300; }
[data-theme="light"] .alert.bad { color: #c22f2f; }
[data-theme="light"] .alert.ok { color: #1c8a4c; }
[data-theme="light"] .alert.info { color: #1366a8; }

.banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid; border-image: var(--spectrum) 1;
  border-radius: var(--r); box-shadow: var(--shadow);
}
.banner .sq { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.banner > div { flex: 1; }
.banner b { display: block; font-weight: 500; }
.banner p { color: var(--muted); font-size: 13px; }

/* Elenchi semplici (agenti migliori, attività). */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .who { flex: 1; min-width: 0; }
.rows .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .who small { color: var(--muted); }
.rows .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.rows a { text-decoration: none; }
.boxed { margin: 14px 18px; border: 1px solid var(--line); border-radius: 6px; }

.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty .ic { font-size: 34px; display: block; margin: 0 auto 8px; }

/* Chiave/valore nella scheda di un account. */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.profile-head { text-align: center; padding: 22px 18px 6px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 22px; margin: 0 auto 10px; }
.profile-head h3 { font-size: 17px; }
.profile-head p { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ pulsanti */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 6px; border: 1.5px solid transparent;
  background: var(--primary); color: #fff; font: inherit; font-size: 13.5px; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn .ic { font-size: 18px; }
.btn:hover { background: var(--primary-hover); }
.btn:focus-visible { outline: none; border-color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.sm .ic { font-size: 16px; }
.btn.soft { background: rgba(79, 184, 255, 0.12); color: var(--accent); }
.btn.soft:hover { background: rgba(79, 184, 255, 0.22); }
.btn.ghost { background: transparent; color: var(--dim); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { background: rgba(255, 107, 107, 0.14); color: var(--bad); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.26); }
.btn.success { background: rgba(69, 212, 131, 0.14); color: var(--ok); }
.btn.success:hover { background: rgba(69, 212, 131, 0.26); }
.btn.white { background: #fff; color: #070b1f; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { width: 30px; height: 30px; padding: 0; border-radius: 6px; display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--dim); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.bad:hover { color: var(--bad); }
.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 4px; align-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }

/* ------------------------------------------------------------- bollini */

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: var(--hover); color: var(--dim);
}
.badge.ok { background: rgba(69, 212, 131, 0.15); color: var(--ok); }
.badge.bad { background: rgba(255, 107, 107, 0.16); color: var(--bad); }
.badge.warn { background: rgba(255, 194, 75, 0.16); color: var(--warn); }
.badge.info { background: rgba(79, 184, 255, 0.15); color: var(--info); }
.badge.violet { background: rgba(160, 123, 255, 0.18); color: var(--violet); }
.badge.solid { background: var(--bad); color: #fff; }
.badge.spectrum { background: var(--spectrum); color: #fff; }
.dotline { display: inline-flex; align-items: center; gap: 6px; }
.dotline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dotline.ok::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(69, 212, 131, 0.18); }
.dotline.bad::before { background: var(--bad); }
.dotline.warn::before { background: var(--warn); }

/* ------------------------------------------------------------- tabelle */

.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px 0; }
.table-wrap { overflow-x: auto; padding: 14px 18px; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; border: 1px solid var(--line); border-radius: 6px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; background: var(--card-head); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]::after { content: "unfold_more"; font-family: "Material Symbols Rounded"; font-size: 14px; vertical-align: -2px; margin-left: 4px; opacity: 0.5; }
.table th[data-sort][data-dir="asc"]::after { content: "expand_less"; opacity: 1; }
.table th[data-sort][data-dir="desc"]::after { content: "expand_more"; opacity: 1; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td .sub { display: block; color: var(--muted); font-size: 12px; }
.table a.strong { font-weight: 500; text-decoration: none; }
.table a.strong:hover { color: var(--accent); }
.table td.noresults { text-align: center; color: var(--muted); padding: 22px; }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.secret { display: inline-flex; align-items: center; gap: 4px; }
.secret code { letter-spacing: 0.04em; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 30px; padding: 0 10px; display: grid; place-items: center; border-radius: 6px; text-decoration: none; border: 1px solid var(--line); }
.pager span.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager a:hover { background: var(--hover); }
.pager .off { opacity: 0.4; pointer-events: none; }
.bulkbar { display: none; align-items: center; gap: 10px; padding: 10px 18px; background: rgba(79, 184, 255, 0.08); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bulkbar.on { display: flex; }

/* -------------------------------------------------------------- moduli */

.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label, .label { font-size: 13px; font-weight: 500; color: var(--dim); }
.field .req { color: var(--bad); }
.field small, .hint { color: var(--muted); font-size: 12px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], input[type="date"],
input[type="search"], input[type="time"], input[type="file"], select, textarea {
  width: 100%; min-height: 38px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--input); color: var(--text); font: inherit; font-size: 14px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select[multiple] { background-image: none; padding-right: 12px; min-height: 160px; }
select option { background: var(--card-solid); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 184, 255, 0.15); }
input[readonly] { opacity: 0.8; }
.input-group { display: flex; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn, .input-group .addon { border-top-left-radius: 0; border-bottom-left-radius: 0; height: auto; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 6px 6px 0; color: var(--muted); background: var(--card-head); }
.errors { margin: 0; padding: 10px 14px 10px 32px; border-radius: 6px; background: rgba(255, 107, 107, 0.12); color: var(--bad); font-size: 13px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0 6px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Interruttore. */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; flex: none; transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(79, 184, 255, 0.35); }

/* Scelte a pulsanti (protocollo, intervallo). */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--dim); }
.seg input:checked + span { background: var(--primary); color: #fff; }
.seg a { display: block; padding: 6px 12px; font-size: 13px; text-decoration: none; color: var(--dim); }
.seg a[aria-current="true"] { background: var(--primary); color: #fff; }

/* Elenco di caselle (categorie). */
.checks { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; }
.checks label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.checks label:hover { background: var(--hover); }
.checks input { accent-color: var(--accent); }

/* ------------------------------------------------------- menu a tendina */

.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px;
  background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 8, 50, 0.45);
  padding: 6px; display: none;
}
.dropdown.open > .menu { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px;
  background: none; border: 0; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--hover); }
.menu .ic { font-size: 18px; color: var(--muted); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu .head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .head b { display: block; font-weight: 500; }
.menu .head small { color: var(--muted); }
.menu.wide { width: 340px; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.apps a { flex-direction: column; gap: 6px; padding: 14px 6px; text-align: center; font-size: 12px; }
.apps a .ic { font-size: 24px; color: var(--accent); }
.notes { max-height: 360px; overflow-y: auto; }
.notes a { align-items: flex-start; }
.notes small { display: block; color: var(--muted); font-size: 12px; }

/* --------------------------------------------------- pannello attività */

.offcanvas {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 60;
  background: var(--card-solid); border-left: 1px solid var(--line-strong); box-shadow: -20px 0 50px rgba(0, 8, 50, 0.4);
  transform: translateX(105%); transition: transform 0.2s; display: flex; flex-direction: column;
}
.offcanvas.open { transform: none; }
.offcanvas header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.offcanvas header h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.offcanvas .body { overflow-y: auto; flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs a, .tabs button {
  padding: 10px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer;
  border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.tabs a[aria-current="true"], .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11px; color: var(--muted); margin-left: 4px; }
.card > .tabs { padding: 0 18px; }
[data-tabpanel][hidden] { display: none; }

/* -------------------------------------------------------------- finestre */

dialog.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card-solid); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 8, 50, 0.55);
}
dialog.modal.lg { width: min(760px, calc(100% - 24px)); }
dialog.modal::backdrop { background: rgba(2, 10, 40, 0.6); backdrop-filter: blur(2px); }
.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 42px); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h3 { font-size: 16px; }
.modal .body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.modal h4 { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------- pacchetti */

.pricing { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.plan.current { border-color: #fff; border-width: 2px; }
.plan h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13.5px; }
.plan li .ic { color: var(--accent); font-size: 18px; }
.plan .ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--spectrum); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 40px; }
.section-head { text-align: center; margin: 6px 0 26px; }
.section-head h2 { font-size: 22px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------- conversazione */

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 10px; background: var(--hover); border: 1px solid var(--line); }
.msg.staff { align-self: flex-start; border-left: 3px solid var(--accent); }
.msg.mine { align-self: flex-end; background: rgba(47, 98, 232, 0.2); }
.msg header { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Codice e blocchi di documentazione. */
pre.code { margin: 0; padding: 12px 14px; border-radius: 6px; background: rgba(2, 10, 40, 0.5); border: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; line-height: 1.5; color: #dfe7ff; }
[data-theme="light"] pre.code { background: #0b1030; }
.method { display: inline-block; min-width: 58px; text-align: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.method.get { background: rgba(69, 212, 131, 0.16); color: var(--ok); }
.method.post { background: rgba(79, 184, 255, 0.16); color: var(--info); }
.method.patch, .method.put { background: rgba(255, 194, 75, 0.16); color: var(--warn); }
.method.delete { background: rgba(255, 107, 107, 0.16); color: var(--bad); }
details.endpoint { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
details.endpoint summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
details.endpoint summary::-webkit-details-marker { display: none; }
details.endpoint summary code { font-weight: 500; }
details.endpoint summary span.d { color: var(--muted); margin-left: auto; font-size: 13px; }
details.endpoint > div { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }

/* Grafico a barre semplice. */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bars i { display: block; background: var(--spectrum); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.err { background: var(--bad); border-radius: 0; }
.bars span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.bars-wrap { padding-bottom: 22px; }

.qr { background: #fff; padding: 12px; border-radius: 8px; width: max-content; }
.qr img, .qr svg, .qr canvas { width: 180px; height: 180px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }

.langs { font-size: 13px; color: var(--muted); }
.langs a { text-decoration: none; color: inherit; }
.langs a[aria-current="true"] { color: var(--text); font-weight: 700; }
.code-input { font-size: 26px !important; letter-spacing: 0.4em; text-align: center; font-family: ui-monospace, Consolas, monospace !important; }

/* ------------------------------------------------------------- telefono */

@media (max-width: 980px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s; width: 260px; }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(3, 5, 16, 0.65); z-index: 25; }
  .wrap { margin-left: 0; }
  [data-sidebar="condensed"] .wrap { margin-left: 0; }
  .topbar { padding: 0 12px; }
  .topbar .menu-btn { display: grid; }
  .content { padding: 16px 12px 32px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
  .table-wrap { padding: 12px; }
  .menu.wide { width: min(340px, calc(100vw - 24px)); }
}
/* Intestazioni ordinate dal server e piccoli ritocchi. */
.table th[data-sorted] a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table th[data-sorted] a::after { content: "unfold_more"; font-family: "Material Symbols Rounded"; font-size: 14px; opacity: 0.5; }
.table th[data-sorted][data-dir="asc"] a::after { content: "expand_less"; opacity: 1; }
.table th[data-sorted][data-dir="desc"] a::after { content: "expand_more"; opacity: 1; }
.table th[data-sorted]:hover { color: var(--text); }
a.card.stat:hover { border-color: var(--line-strong); }
[hidden] { display: none !important; }
.modal .body > *, .form > *, .stack > * { flex-shrink: 0; }
.seg { align-self: flex-start; flex-wrap: wrap; }
.search input[type="search"] { padding: 0 12px 0 36px; min-height: 36px; height: 36px; }


/* ---------------------------------------------- accesso e area personale */
/* Cielo (assets/js/space.js), l'anello del marchio all'orizzonte, vetro. */

body.space {
  --s-bg: #070b1f;
  --s-ink: #f5f3ee;
  --s-dim: #a9b2d3;
  --s-mute: #8b95bb;
  --s-glass: rgba(255, 255, 255, 0.055);
  --s-line: rgba(255, 255, 255, 0.12);
  --s-ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  min-height: 100vh;
  margin: 0;
  background: var(--s-bg);
  color: var(--s-ink);
  overflow-x: hidden;
  color-scheme: dark;
}
body.space .sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
body.space .horizon {
  position: fixed; left: 50%; bottom: -14vh; z-index: 0; pointer-events: none;
  width: 170vw; height: 46vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 194, 75, 0.30) 0%, rgba(255, 61, 154, 0.22) 24%, rgba(155, 77, 255, 0.15) 44%, rgba(57, 183, 255, 0.07) 62%, transparent 76%);
  filter: blur(34px); opacity: 0; transition: opacity 1.8s ease 0.2s;
}
body.space.in .sky { opacity: 1; }
body.space.in .horizon { opacity: 1; }

/* Il simbolo che fluttua accanto al modulo, come un satellite. */
body.space .drift {
  position: fixed; z-index: 1; pointer-events: none;
  left: max(3vw, calc(50% - 640px)); top: 24vh; width: 200px;
  opacity: 0; transition: opacity 1.4s ease 0.5s;
  transform: translate(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 18px));
}
body.space .drift img { width: 100%; animation: drift-bob 8s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }
body.space .drift .glint {
  position: absolute; left: 77.6%; top: 22.4%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: radial-gradient(circle, rgba(245, 243, 238, 0.55), rgba(255, 194, 75, 0.12) 45%, transparent 70%);
  animation: drift-glint 3.2s ease-in-out infinite; mix-blend-mode: screen;
}
body.space.in .drift { opacity: 0.95; }
@keyframes drift-bob { 0%, 100% { transform: translateY(-10px) rotate(-3deg); } 50% { transform: translateY(12px) rotate(3deg); } }
@keyframes drift-glint { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 1100px) { body.space .drift { display: none; } }

body.space .space-top, body.space .space-main, body.space .space-foot { position: relative; z-index: 2; }
body.space .space-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 48px); }
body.space .space-top .lockup .mark { width: 34px; height: 34px; }
body.space .space-top .wordmark { font-size: 20px; }
body.space .space-tools { display: flex; align-items: center; gap: 18px; color: var(--s-dim); font-size: 13px; }
body.space .langs, body.space .langs a { color: var(--s-mute); text-decoration: none; }
body.space .langs a[aria-current="true"] { color: var(--s-ink); }
body.space .space-main { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 12px 16px 20vh; }
body.space .space-main.full { display: block; place-items: normal; width: min(1180px, 100%); margin: 0 auto; padding: 8px 16px 22vh; }
body.space .space-foot { text-align: center; color: var(--s-mute); font-size: 12px; padding: 0 16px 22px; margin-top: -16vh; }

/* Entrata: i pezzi salgono uno dopo l'altro (ritardo messo da space.js). */
.js body.space .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--s-ease), transform 1s var(--s-ease); }
.js body.space.in .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js body.space .rise { transform: none; transition: opacity 0.3s ease; }
  body.space .drift img, body.space .drift .glint { animation: none; }
}

body.space .pane { width: 100%; max-width: 420px; }
body.space .pane.wide { max-width: 640px; }
body.space h1 {
  font-family: "Archivo", "Arial Black", sans-serif; font-stretch: 125%; font-weight: 800;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.04; letter-spacing: -0.01em; text-align: center; margin: 0;
}
body.space .lead { color: var(--s-dim); font-size: 15px; text-align: center; margin: 12px auto 28px; max-width: 46ch; line-height: 1.5; }

body.space .gform { display: flex; flex-direction: column; gap: 18px; }
body.space .gform.tight { gap: 12px; margin-top: 10px; }
body.space .gfield { display: flex; flex-direction: column; gap: 8px; }
body.space .gfield > span:first-child { font-size: 14px; font-weight: 500; color: #dce1f2; letter-spacing: 0.01em; }
body.space .gfield small { color: var(--s-mute); font-size: 12px; }
body.space .glass {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px;
  border-radius: 14px; background: var(--s-glass); border: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
body.space .glass:focus-within { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(57, 183, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
body.space .glass input, body.space .glass select {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--s-ink); font: 500 15px/1 Roboto, "Segoe UI", system-ui, sans-serif; padding: 0;
}
body.space .glass select option { color: #0b1030; }
body.space .glass input::placeholder { color: rgba(220, 225, 242, 0.36); }
body.space .glass input:-webkit-autofill { -webkit-text-fill-color: var(--s-ink); transition: background-color 9999s ease 0s; caret-color: var(--s-ink); }
body.space .peek { border: 0; background: none; color: var(--s-mute); cursor: pointer; padding: 4px; display: grid; place-items: center; }
body.space .peek:hover { color: var(--s-ink); }
body.space .code-input { letter-spacing: 0.3em; font-size: 20px !important; text-align: center; }

body.space .gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--s-ink); color: #070b1f; font: 600 15px/1 Roboto, "Segoe UI", system-ui, sans-serif; text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(245, 243, 238, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
body.space .gbtn:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(245, 243, 238, 0.12), 0 14px 34px -12px rgba(245, 243, 238, 0.55); }
body.space .gbtn:active { transform: translateY(0) scale(0.99); }
body.space .gbtn:disabled { cursor: progress; }
body.space .gbtn.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: s-spin 0.7s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
body.space .gbtn.ghost { width: auto; height: 42px; background: transparent; color: var(--s-ink); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none; }
body.space .gbtn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
body.space .gbtn.danger { background: #ff5a6e; color: #fff; box-shadow: none; }
body.space .gbtn .ic { font-size: 18px; }
body.space .alt { text-align: center; font-size: 13.5px; color: var(--s-dim); margin: 2px 0 0; }
body.space .alt a, body.space .linkish { color: var(--s-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(245, 243, 238, 0.3); }
body.space .linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; color: var(--s-dim); }
body.space .linkish.danger, body.space summary.danger { color: #ff8a98; }
body.space ul.errors { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 90, 110, 0.12); border: 1px solid rgba(255, 90, 110, 0.3); color: #ffc6cd; font-size: 13.5px; }
body.space ul.errors li + li { margin-top: 4px; }
body.space .note { border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px; background: rgba(57, 183, 255, 0.12); border: 1px solid rgba(57, 183, 255, 0.3); color: #cfeaff; }
body.space .note.bad { background: rgba(255, 90, 110, 0.12); border-color: rgba(255, 90, 110, 0.3); color: #ffc6cd; }
body.space .note.warn { background: rgba(255, 194, 75, 0.12); border-color: rgba(255, 194, 75, 0.32); color: #ffe3a8; }

/* ------------------------------------------------------ registrazione */
/* Stesso stile del pannello: barra scura in alto, una scheda al centro. */

body.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 24px; background: var(--sidebar); }
.auth-top .langs, .auth-top .langs a { color: var(--sidebar-text); }
.auth-top .langs a[aria-current="true"] { color: #fff; }
.auth-main { flex: 1; width: min(600px, 100% - 32px); margin: 40px auto 24px; }
.auth-main .card-header h2 { font-size: 17px; }
.auth-foot { justify-content: space-between; align-items: center; }
.auth-foot a:not(.btn) { color: var(--primary, var(--accent)); text-decoration: none; font-weight: 500; }
.rows.pick li { padding: 0; }
.rows.pick a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; color: inherit; text-decoration: none; }
.rows.pick a:hover { background: var(--hover); }
.rows.pick .sq { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.rows.pick .who b { white-space: normal; }
.rows.pick .who small { display: block; margin-top: 2px; line-height: 1.45; }
.rows.pick > li > a > .ic:last-child { color: var(--muted); }

/* Contenuti per adulti (assets/js/adult.js) */
.adult-list { max-height: 620px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.arow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.arow:last-child { border-bottom: 0; }
.arow:hover { background: rgba(127, 127, 127, 0.06); }
.arow input { margin-top: 3px; }
.arow .aname { flex: 1; min-width: 0; }
.arow .aname .badge { margin-left: 6px; }
.arow .acount { color: var(--muted); font-size: 12px; white-space: nowrap; }
.arow .asample { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-height: 150px; overflow-y: auto; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 12px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 12px; }
.chip:hover { border-color: var(--primary); }
