:root {
  --bg: #071a24; --bg2: #0a2532; --panel: rgba(18, 58, 74, .55); --panel-solid: #103341; --panel2: #0d2c39;
  --line: rgba(130, 190, 205, .18); --line2: rgba(130, 190, 205, .32);
  --text: #e8f1f3; --muted: #93b0b9; --dim: #6a8a94;
  --gold: #e3b553; --gold2: #f2d58a; --gold-ink: #241a05;
  --ok: #6fd39a; --warn: #f0b45a; --bad: #ef7a6e; --info: #79b8e6;
  --radius: 14px; --side: 248px;
  --serif: "Cormorant Infant", Georgia, serif; --sans: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f1ea; --bg2: #ebe6db; --panel: rgba(255, 255, 255, .8); --panel-solid: #ffffff; --panel2: #f7f4ee;
  --line: rgba(20, 50, 60, .12); --line2: rgba(20, 50, 60, .25);
  --text: #12303a; --muted: #4f6b74; --dim: #7c939a; --gold: #b5852a; --gold2: #8c6418; --gold-ink: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); line-height: 1.45; font-variant-numeric: lining-nums;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(40, 120, 140, .35), transparent 60%),
              linear-gradient(180deg, var(--bg2) 0, var(--bg) 900px) var(--bg);
}
:root[data-theme="light"] body { background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 900px) var(--bg); }
[style*="var(--serif)"], .kpi .v, h1, .step .n, .hk h4 { font-variant-numeric: lining-nums tabular-nums; }
a { color: var(--gold); text-decoration: none; }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.btn.sm .ico { width: 15px; height: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.shell.collapsed { --side: 68px; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 80, 100, .55), rgba(8, 35, 48, .85)); border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
:root[data-theme="light"] .side { background: #fbfaf6; }
.side .brand { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 14px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--text); }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold2), var(--gold)); color: var(--gold-ink); }
.logo b { color: var(--gold); font-weight: 800; }
.tenant-pill { margin: 0 12px 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 700;
  display: flex; justify-content: space-between; background: rgba(0, 0, 0, .12); }
.nav-group { margin-top: 8px; }
.nav-title { display: flex; align-items: center; gap: 8px; padding: 10px 16px 4px; font: 600 11px var(--mono); letter-spacing: 2px;
  color: var(--muted); cursor: pointer; user-select: none; }
.nav-title::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line2) 0 3px, transparent 3px 6px); }
.nav a { display: flex; align-items: center; gap: 12px; margin: 2px 8px; padding: 8px 10px; border-radius: 9px; color: var(--text);
  font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.active { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(227, 181, 83, .25); }
.nav a .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a .tag { margin-left: auto; font: 700 9.5px var(--mono); letter-spacing: 1px; padding: 2px 6px; border: 1px solid var(--gold); color: var(--gold); border-radius: 5px; }
.nav a.active .tag { border-color: var(--gold-ink); color: var(--gold-ink); }
.nav a .count { margin-left: auto; background: var(--bad); color: #fff; font: 700 11px var(--sans); border-radius: 10px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); }
.side-foot .row { display: flex; gap: 8px; }
.side-foot .row button { flex: 1; }
.plan-box { margin-top: 10px; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.plan-box .t { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; }
.plan-box .bar { height: 5px; background: rgba(255, 255, 255, .08); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.plan-box .bar i { display: block; height: 100%; background: var(--gold); }
.plan-box .m { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11px var(--mono); letter-spacing: 1px; color: var(--muted); }
.me { padding: 12px 16px 16px; font-weight: 700; }
.me small { display: block; color: var(--muted); font-weight: 500; }
.shell.collapsed .nav a span, .shell.collapsed .nav-title, .shell.collapsed .tenant-pill, .shell.collapsed .plan-box,
.shell.collapsed .me, .shell.collapsed .logo span, .shell.collapsed .nav a .tag, .shell.collapsed .side-foot .lbl { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .15);
  display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line2);
  display: grid; place-items: center; font-weight: 800; }
.content { padding: 28px 32px 60px; max-width: 1500px; width: 100%; }

/* ---------- intestazione pagina ---------- */
.eyebrow { font: 600 12px var(--mono); letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font: 500 52px/1.05 var(--serif); letter-spacing: 1px; text-transform: uppercase; margin: 6px 0 6px; }
.page-head p { margin: 0; color: var(--muted); max-width: 780px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- card e KPI ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .card { box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
.card-h .meta { font: 600 12px var(--mono); color: var(--muted); letter-spacing: 1px; }
.card-b { padding: 16px 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; }
.kpi .l { font: 600 11px var(--mono); letter-spacing: 2.5px; color: var(--muted); text-transform: uppercase; }
.kpi .v { font: 500 46px/1.1 var(--serif); margin: 6px 0 2px; }
.kpi .s { color: var(--muted); font-size: 13px; }
.kpi.hl { border-color: var(--gold); position: relative; overflow: hidden; }
.kpi.hl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 14px, #7cc 14px 22px, transparent 22px 26px); }
.kpi.hl .v { color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1100px) { .grid2, .grid2.even, .grid3 { grid-template-columns: 1fr; } }

/* ---------- controlli ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 700; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); border-color: transparent;
  box-shadow: 0 6px 18px rgba(227, 181, 83, .22); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--gold); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font: 600 11px var(--mono); letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
label.f > small { display: block; color: var(--dim); margin-top: 4px; }
.in, select.in, textarea.in { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .18); outline: none; }
:root[data-theme="light"] .in { background: #fff; }
.in:focus { border-color: var(--gold); }
textarea.in { min-height: 90px; resize: vertical; }
select.in option { background: var(--panel-solid); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fields3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(0, 0, 0, .15); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); }
.tabs button.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line2); cursor: pointer; font-weight: 600; font-size: 13px; background: none; }
.chip.on { border-color: var(--gold); color: var(--gold); background: rgba(227, 181, 83, .08); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: rgba(255, 255, 255, .15); cursor: pointer; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { left: 21px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px var(--mono); letter-spacing: 1.3px; padding: 3px 8px;
  border-radius: 5px; border: 1px solid currentColor; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 1px; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); }
.badge.info { color: var(--info); } .badge.mute { color: var(--muted); } .badge.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 12.5px; }

/* ---------- tabelle e liste ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font: 600 11px var(--mono); letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase;
  padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255, 255, 255, .03); }
.list-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-item .ic { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); display: grid; place-items: center; flex: none; color: var(--gold); }
.list-item h4 { margin: 0 0 3px; font-size: 15px; }
.list-item p { margin: 0; color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid var(--gold); border-radius: 12px;
  background: rgba(227, 181, 83, .07); margin-bottom: 20px; }
.banner::before { content: ""; width: 10px; height: 10px; background: var(--gold); border-radius: 2px; flex: none; }
.banner .grow { flex: 1; }

/* ---------- chat ---------- */
.inbox { display: grid; grid-template-columns: 380px 1fr; min-height: 560px; }
.inbox .lst { border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.conv-row { padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv-row:hover, .conv-row.on { background: rgba(227, 181, 83, .07); }
.conv-row .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.conv-row .last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.thread { display: flex; flex-direction: column; }
.thread .msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 58vh; }
.bubble { max-width: 75%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; font-size: 14px; }
.bubble.user { align-self: flex-start; background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; }
.bubble.ai { align-self: flex-end; background: rgba(121, 184, 230, .16); border-bottom-right-radius: 4px; }
.bubble.operator { align-self: flex-end; background: rgba(227, 181, 83, .2); border-bottom-right-radius: 4px; }
.bubble small { display: block; font: 600 10px var(--mono); letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } }

/* ---------- planning / calendario ---------- */
.plan-wrap { overflow-x: auto; }
.planning { display: grid; font-size: 12.5px; min-width: 900px; }
.planning .hd { position: sticky; top: 0; padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
  font: 600 11px var(--mono); color: var(--muted); background: var(--panel2); }
.planning .hd.today { color: var(--gold); }
.planning .rm { padding: 10px; border-bottom: 1px solid var(--line); font-weight: 700; background: var(--panel2); position: sticky; left: 0; z-index: 2; }
.planning .rm small { display: block; color: var(--muted); font-weight: 500; }
.planning .cell { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 46px; cursor: cell; position: relative; }
.planning .cell:hover { background: rgba(255, 255, 255, .04); }
.planning .cell.we { background: rgba(255, 255, 255, .02); }
.res-bar { position: absolute; top: 6px; bottom: 6px; z-index: 1; border-radius: 7px; padding: 4px 8px; font-weight: 700; font-size: 12px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; color: #0b1f27; }
.st-CONFIRMED { background: #8fd1c0; } .st-PENDING { background: #f0c56a; } .st-CHECKED_IN { background: #7ab8e6; }
.st-CHECKED_OUT { background: #a5b4ba; } .st-CANCELLED { background: #e9a198; text-decoration: line-through; } .st-NO_SHOW { background: #e9a198; }
.cal { display: grid; position: relative; min-width: 600px; }
.cal .col-h { padding: 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.cal .col-h i { width: 10px; height: 10px; border-radius: 3px; }
.cal .hour { height: 56px; border-bottom: 1px solid var(--line); font: 600 11px var(--mono); color: var(--dim); padding: 2px 6px; }
.cal .slotcol { position: relative; border-left: 1px solid var(--line); }
.cal .slotcol .hl { height: 56px; border-bottom: 1px solid var(--line); cursor: cell; }
.cal .slotcol .hl.closed { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 6px, transparent 6px 12px); }
.appt { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; color: #0b1f27; overflow: hidden; cursor: grab; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hk { padding: 16px; border-radius: 14px; border: 1px solid var(--line2); }
.hk h4 { margin: 0; font: 500 30px var(--serif); }
.hk.CLEAN { border-color: var(--ok); } .hk.DIRTY { border-color: var(--bad); } .hk.IN_PROGRESS { border-color: var(--warn); } .hk.BROKEN { border-color: #b79ae0; }

/* ---------- modale, toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 16px; }
.modal.wide { width: min(920px, 100%); }
.modal .card-h { position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 80; padding: 12px 18px; border-radius: 12px; background: var(--panel-solid);
  border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-weight: 600; max-width: 420px; }
.toast.err { border-color: var(--bad); }
.dropdown { position: absolute; right: 0; top: 50px; width: 360px; z-index: 40; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth .box { width: min(440px, 100%); }
.auth h1 { font: 500 50px var(--serif); text-transform: uppercase; margin: 8px 0 18px; }
.auth .card-b { padding: 22px; }

/* ---------- varie ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: var(--gold); min-height: 3px; display: block; }
.bars .b i.f { background: var(--bad); }
.bars .b span { font: 600 11px var(--mono); color: var(--muted); }
.steps { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.step { flex: 1; min-width: 150px; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; }
.step.on { border-color: var(--gold); background: rgba(227, 181, 83, .07); }
.step.done .n { color: var(--ok); }
.step .n { font: 500 30px var(--serif); color: var(--gold); }
.step .l { font: 600 10.5px var(--mono); letter-spacing: 2px; color: var(--muted); }
.code { font-family: var(--mono); font-size: 12.5px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; }
.pill-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pill-select .opt { padding: 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; }
.pill-select .opt.on { border-color: var(--gold); background: rgba(227, 181, 83, .08); }
.pill-select .opt b { display: block; }
.pill-select .opt small { color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 260px; transform: translateX(-100%); transition: .25s; }
  .shell.mobile-open .side { transform: none; }
  .content { padding: 20px 16px 50px; }
  .page-head h1 { font-size: 38px; }
  .fields2, .fields3 { grid-template-columns: 1fr; }
}
.only-mobile { display: none; } @media (max-width: 760px) { .only-mobile { display: grid; } }

/* Firma Powered by GT */
.powered { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; color: var(--muted, #8a93a6); text-decoration: none; opacity: .75; transition: opacity .2s, color .2s; }
.powered b { color: var(--gold); font-weight: 700; }
.powered:hover { opacity: 1; color: var(--gold); }
.side-powered { padding: 6px 16px 14px; text-align: center; }
.shell.collapsed .side-powered { display: none; }

/* ---------- telefono ---------- */
.bottom-nav { display: none; }
.topbar .tname { display: none; }
.paircode { font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--gold); padding: 14px 18px; border: 1px dashed var(--gold);
  border-radius: 12px; text-align: center; background: rgba(227, 181, 83, .06); }
.pairbox { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .inbox.sel .lst { display: none; }
  .inbox:not(.sel) .thread { display: none; }
  .inbox .lst { max-height: none; border-right: 0; }
  .thread .msgs { max-height: none; min-height: 45vh; }
  .conv-sel .page-head, .conv-sel .banner, .conv-sel #k, .conv-sel .row.mb { display: none; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 12px 14px; }
  .kpi .l { font-size: 9.5px; letter-spacing: 1.5px; }
  .kpi .v { font-size: 30px; }
  .kpi .s { font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .page-head { margin-bottom: 16px; gap: 12px; }
  .page-head h1 { font-size: 30px; }
  .page-head .actions { width: 100%; }
  .banner { flex-wrap: wrap; padding: 12px 14px; }
  .card-h { padding: 13px 14px; flex-wrap: wrap; }
  .bubble { max-width: 88%; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .tabs button { white-space: nowrap; }
  .composer { position: sticky; bottom: 0; background: var(--panel-solid); }
  .paircode { font-size: 28px; letter-spacing: 4px; }
  table.t { display: block; overflow-x: auto; white-space: nowrap; }
  #askbtn { right: 14px !important; bottom: 16px !important; padding: 14px !important; border-radius: 50% !important; }
  #askbtn .lbl { display: none; }
  #askpanel { right: 12px !important; left: 12px; width: auto !important; bottom: 76px !important; }
  /* versione semplice: barra in basso al posto del menu laterale */
  .shell.simple #mob { display: none; }
  .shell.simple .topbar .tname { display: block; margin-right: auto; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shell.simple .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--panel-solid);
    border-top: 1px solid var(--line2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700;
    color: var(--muted); padding: 6px 0; border-radius: 10px; text-decoration: none; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--gold); background: rgba(227, 181, 83, .08); }
  .shell.simple .content { padding-bottom: 110px; }
  .shell.simple ~ #askbtn { bottom: 84px !important; }
  .shell.simple .composer { bottom: 64px; }
  .shell.simple ~ #askpanel { bottom: 142px !important; }
}
