/* Colori Sinapps (da sinapps.it): blu elettrico, giallo fluo, fucsia solo per piccoli richiami. */
:root {
    --bg: #f4f4f7;
    --card: #ffffff;
    --ink: #111114;
    --muted: #5f6070;
    --line: #e3e3ea;
    --accent: #3500f7;
    --accent-hover: #2a00c6;
    --accent-ink: #ffffff;
    --accent-soft: #ebe6ff;
    --link: #3500f7;
    --yellow: #caff00;
    --yellow-ink: #0b0b0f;
    --fuchsia: #f100f1;
    --top: #0b0b0f;
    --top-ink: #f4f4f7;
    --top-muted: #a9a9b6;
    --dot-on: #19b45a;
    --dot-off: #e5383b;
    --error: #b42318;
    --error-soft: #fdecea;
    --warn: #8a5a00;
    --warn-soft: #fff4dc;
    --ok: #1b6b3a;
    --ok-soft: #e6f4ea;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0e12;
        --card: #17171d;
        --ink: #ececf1;
        --muted: #a2a3b0;
        --line: #2a2a33;
        --accent: #5b3cff;
        --accent-hover: #6f55ff;
        --accent-ink: #ffffff;
        --accent-soft: #221b4d;
        --link: #a594ff;
        --top: #050507;
        --error: #ff8a80;
        --error-soft: #3a1d1b;
        --warn: #f5c76a;
        --warn-soft: #3a2f17;
        --ok: #7fd49a;
        --ok-soft: #18301f;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 8px; }
p { margin: 8px 0; }
code { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.pre { white-space: pre-wrap; }
.text-warn { color: var(--warn); }
.offscreen { position: fixed; left: -9999px; opacity: 0; }
[hidden] { display: none !important; }
.js .js-hide { display: none; }
span.only-phone, div.only-phone { display: none; }
.phone-meta { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js-only, .js-only-inline { display: none; }
.js .js-only { display: block; }
.js .js-only-inline { display: inline-block; }
.js-only-flex { display: none; }
.js .js-only-flex { display: flex; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img, svg { max-width: 100%; }
.top-space { margin-top: 20px; }

/* Testata (nera come sinapps.it) */
.top { background: var(--top); color: var(--top-ink); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 58px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; letter-spacing: -.01em; }
.brand img { display: block; background: #fff; border-radius: 7px; padding: 2px; }
.brand span { background: var(--yellow); color: var(--yellow-ink); font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.brand-big { font-size: 22px; justify-content: center; display: flex; margin-bottom: 20px; color: var(--ink); }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; min-width: 0; }
.nav a, .me a { color: var(--top-muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .me a:hover { color: var(--top-ink); background: rgba(255, 255, 255, .08); }
.nav a.active, .me a.active { color: var(--yellow-ink); background: var(--yellow); font-weight: 600; }
.nav .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 99px; background: var(--fuchsia); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.me { display: flex; align-items: center; gap: 6px; }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 10px; }
.top .linklike { color: var(--top-muted); }
.linklike:hover, .top .linklike:hover { color: var(--top-ink); }

/* Struttura */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.wide { max-width: 1480px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { margin: 0 0 14px; font-size: 14px; }
.crumbs a { text-decoration: none; }
.btn.back-btn { font-size: 16px; padding: 11px 20px; border-radius: 11px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.narrow { max-width: 620px; }
.card.empty { text-align: center; padding: 40px 20px; }
.card.callout { border-color: var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.danger-zone { border-color: var(--line); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.grid2.cards { gap: 0 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* Accesso */
.bare .auth { max-width: 440px; margin: 0 auto; padding: 56px 16px; }
.auth-card.wide { max-width: none; }
body.bare main.auth:has(.wide) { max-width: 620px; }
.steps { padding-left: 20px; }
.steps li { margin: 10px 0; }
.qr { margin: 12px 0; }
.qr img { background: #fff; border-radius: 8px; padding: 4px; display: block; }
.secret { font-size: 15px; letter-spacing: .05em; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.path { display: inline-block; font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* Pulsanti e campi */
.btn {
    appearance: none; display: inline-block;
    border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
    font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
    padding: 9px 15px; border-radius: 9px; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { font-size: 13px; padding: 6px 11px; }
.btn.danger { background: transparent; border-color: var(--error); color: var(--error); }
.btn.danger:hover { background: var(--error-soft); border-color: var(--error); }
.btn:disabled:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost:disabled:hover { background: transparent; border-color: var(--link); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.field label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input[type=text], input:not([type]), input[type=password], input[type=search], input[type=file], input[type=date], select, textarea {
    width: 100%; font: inherit; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
}
input[type=search].search { width: 230px; }
textarea { resize: vertical; }
.help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.strength { font-size: 13px; font-weight: 600; margin: 6px 0 0; min-height: 1.4em; }
.strength-0, .strength-1, .strength-2 { color: var(--error); }
.strength-3 { color: var(--warn); }
.strength-4 { color: var(--ok); }

/* Messaggi e stati */
.msg { border-radius: 9px; padding: 10px 12px; margin: 0 0 14px; }
.msg-error { background: var(--error-soft); color: var(--error); }
.msg-warn { background: var(--warn-soft); color: var(--warn); }
.msg-ok { background: var(--ok-soft); color: var(--ok); }
.msg-info { background: var(--accent-soft); color: var(--link); }
.msg.small { font-size: 13px; padding: 7px 10px; margin: 4px 0 10px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-error { background: var(--error-soft); color: var(--error); }
.badge-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* Tabelle */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table th.right, .table td.right { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.compact td, .table.compact th { padding: 8px 12px; font-size: 14px; }
.table tr.inactive { opacity: .55; }
.table tr.row-warn td { background: var(--warn-soft); }
.reveal-row td { background: var(--bg); }
.site-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.site-name:hover { color: var(--link); }
.clamp { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; width: 46%; padding-right: 12px; }

/* Password */
.reveal { max-width: 720px; }
.pw { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; background: var(--card); }
.pw-primary { border-color: var(--accent); }
.pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-value { flex: 1 1 240px; font-family: var(--mono); font-size: 15px; background: var(--bg); border-radius: 7px; padding: 7px 10px; word-break: break-all; }
.pw-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
details.history summary { cursor: pointer; color: var(--muted); margin-top: 6px; }

/* Plugin presente o no */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; flex: none; }
.dot-on { background: var(--dot-on); box-shadow: 0 0 0 3px rgba(25, 180, 90, .18); }
.dot-off { background: var(--dot-off); box-shadow: 0 0 0 3px rgba(229, 56, 59, .16); }
.server-name { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink); }
span.server-name { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; margin-left: 4px; }

/* Filtri dell'elenco */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.chip { appearance: none; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--link); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-count { font-weight: 500; opacity: .75; }
.filters-note { margin-left: auto; }

/* Popup */
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--card); color: var(--ink); }
.dialog::backdrop { background: rgba(11, 11, 15, .55); }
.dialog[open] { overflow-y: auto; }
.dialog .field { margin: 10px 0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
fieldset.group { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 2px; margin: 14px 0; }
fieldset.group legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.date-row { display: flex; gap: 8px; align-items: center; }
.date-row input[type=date] { width: auto; flex: 1 1 160px; }
.updated-form { margin-top: 12px; }
.updated-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
details.manual { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
details.manual summary { cursor: pointer; font-weight: 600; }
.secret-box { margin-top: 10px; }
.secret-box .pre { background: var(--bg); border-radius: 9px; padding: 10px 12px; margin: 0 0 6px; }

/* Campi della scheda del sito (si salvano da soli) */
.input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-row input { flex: 1 1 180px; min-width: 0; width: auto; }
.server-label { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
/* Server (1.11): la tendina occupa la riga, accanto «trovato: …» e Plesk. */
.server-row > select, .server-row > .choice-wrap, .server-row > .choice-btn { flex: 1 1 240px; min-width: 0; }
.plesk-link { margin-left: 2px; }
.field-state { font-size: 12px; font-weight: 600; margin-left: 6px; }
.field-state.is-saving { color: var(--muted); }
.field-state.is-ok { color: var(--ok); }
.field-state.is-error { color: var(--error); }
/* «Aggiorna adesso» del plugin: risultato accanto a ogni sito */
.update-result.is-ok { color: var(--ok); }
.update-result.is-error { color: var(--error); }
/* Tabelle larghe (anteprima dell'importazione): si scorrono di lato sul telefono */
.table-scroll { overflow-x: auto; }
/* break-word e non anywhere: le colonne della tabella non devono stringersi spezzando le parole */
td, .kv td, .pw-value, .path { overflow-wrap: break-word; }

/* Impostazioni: menu laterale (Generali, Utenti, Registro) */
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.side-nav-title { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 4px 10px 6px; }
.side-nav a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 9px; font-weight: 500; }
.side-nav a:hover { background: var(--bg); }
.side-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.settings-main > h1:first-child, .settings-main > .page-head:first-child { margin-top: 0; }
.me .gear { display: inline-flex; align-items: center; padding: 6px 8px; }
.me .gear svg { display: block; }

/* Colori delle voci delle tendine e delle aziende (Impostazioni → Campi → Modifica voci) */
.co-blu { --co: #3500f7; --co-ink: #ffffff; }
.co-azzurro { --co: #0074db; --co-ink: #ffffff; }
.co-turchese { --co: #008a8a; --co-ink: #ffffff; }
.co-verde { --co: #12a150; --co-ink: #ffffff; }
.co-giallo { --co: #caff00; --co-ink: #0b0b0f; }
.co-arancione { --co: #ff7a00; --co-ink: #1a0d00; }
.co-rosso { --co: #d92d20; --co-ink: #ffffff; }
.co-rosa { --co: #ff8cc6; --co-ink: #2a0016; }
.co-fucsia { --co: #c100c1; --co-ink: #ffffff; }
.co-viola { --co: #7a3ff2; --co-ink: #ffffff; }
.co-marrone { --co: #8a5a3c; --co-ink: #ffffff; }
.co-grigio { --co: #6b6c7b; --co-ink: #ffffff; }
.co-nero { --co: #111114; --co-ink: #ffffff; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 6px; background: var(--co, #6b6c7b); color: var(--co-ink, #fff); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.pill-empty { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; }

/* Tendina colorata (stile Monday): pulsante con la voce scelta e, aprendolo, l'elenco delle voci */
.choice { position: relative; }
.choice-native { display: none; }
.choice-btn { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.choice-btn:hover { border-color: var(--link); }
.choice-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.choice-btn .pill { font-size: 14px; padding: 4px 12px; }
.choice-caret { color: var(--muted); font-size: 12px; }
.choice-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11, 11, 15, .2); padding: 8px; }
.choice-opts { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.choice-opt { appearance: none; display: flex; align-items: center; width: 100%; background: none; border: 0; border-radius: 8px; padding: 3px; cursor: pointer; font: inherit; }
.choice-opt .pill { flex: 1; text-align: center; font-size: 14px; padding: 7px 10px; }
.choice-opt:hover, .choice-opt:focus-visible { background: var(--bg); outline: none; }
.choice-opt.is-on .pill { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--co, var(--line)); }
.choice-opt.is-on .pill-empty { box-shadow: 0 0 0 2px var(--line); }
.choice-foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.choice-foot input[type=text] { flex: 1 1 120px; min-width: 0; width: auto; padding: 6px 9px; }
.choice-foot .linklike { padding: 4px 2px; color: var(--link); font-size: 13px; font-weight: 600; }
.choice-error { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--error); }
/* Finestra «Modifica voci» */
.choice-editor { width: min(560px, calc(100vw - 32px)); }
.choice-items { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choice-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.choice-item input[type=text] { flex: 1 1 150px; min-width: 0; width: auto; padding: 7px 10px; }
.choice-count { font-size: 12px; color: var(--muted); min-width: 52px; }
.swatch { appearance: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); background: var(--co); cursor: pointer; flex: none; padding: 0; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.palette { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; padding: 4px 0 6px 36px; }
.choice-new { display: flex; gap: 8px; align-items: center; }
.choice-new input { flex: 1 1 auto; min-width: 0; width: auto; }

/* Impostazioni → Campi */
.frows { display: flex; flex-direction: column; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow.fixed { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; }
.frow-order { display: flex; gap: 4px; grid-column: 1; }
.frow-order .btn { padding: 4px 9px; }
.frow-main { grid-column: 2; display: grid; grid-template-columns: minmax(140px, 230px) 112px minmax(120px, 200px) auto; gap: 8px; align-items: center; margin: 0; }
.frow-main .badge { justify-self: start; }
.frow-label input, .frow-section input { width: 100%; }
.frow-actions { grid-column: 3; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.frow-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.frow:not(.fixed) .frow-choices { grid-column: 2 / 4; grid-row: 2; }
.add-field { max-width: 520px; }

/* Riquadri della scheda del sito: due colonne su schermo largo, una su telefono */
.site-cards { columns: 2 440px; column-gap: 16px; }
.site-cards > .card { break-inside: avoid; display: inline-block; width: 100%; vertical-align: top; }
.unit { font-weight: 600; color: var(--muted); }
.state-line { margin: 0 0 4px; min-height: 0; }
.input-row input.num { flex: 0 1 170px; }
input.date-input { width: auto; min-width: 170px; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 280px; white-space: pre-line; font-size: 13px; }
#sites-table td.td-note { min-width: 140px; }
#sites-table td.td-note .clamp-2 { max-width: 220px; }
/* Aggiornamenti come una chat (1.15, stile Monday): fumetto in tabella, chat a destra o nel riquadro della scheda. */
.chat-btn { appearance: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; margin-left: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; vertical-align: middle; opacity: .75; }
/* Grigio: ci sono aggiornamenti. Rosso: mi hanno taggato e non ho ancora letto (1.16). */
.chat-btn.has-notes { opacity: 1; color: var(--ink); background: var(--bg); }
.chat-btn.has-mention { opacity: 1; color: #fff; background: #e5303a; border-color: #e5303a; box-shadow: 0 0 0 3px rgba(229, 48, 58, .18); }
.chat-btn:hover, .chat-btn:focus-visible { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.chat-btn.has-mention:hover, .chat-btn.has-mention:focus-visible { border-color: #b8202a; box-shadow: 0 0 0 3px rgba(229, 48, 58, .3); }
.chat-change { align-self: stretch; font-size: 11px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; margin: -4px 0; }
.chat-change strong { color: var(--ink); font-weight: 600; }
.chat-change-when { font-variant-numeric: tabular-nums; }
.hide-changes .chat-change { display: none; }
.chat-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mention { color: var(--link); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.mention.me { color: #b8202a; background: #fde3e4; }
.chat-msg.tags-me { box-shadow: inset 3px 0 0 #e5303a; }
.mention-pop { position: fixed; z-index: 80; min-width: 220px; max-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); padding: 4px; display: flex; flex-direction: column; }
.mention-opt { appearance: none; border: 0; background: transparent; text-align: left; font: inherit; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.mention-opt.is-on, .mention-opt:hover { background: var(--accent-soft); }
.chat-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 69; }
.chat-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 70; background: var(--card); box-shadow: -10px 0 32px rgba(0, 0, 0, .2); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.chat-titles { flex: 1 1 auto; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 18px; }
.chat-close { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 24px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.chat-close:hover, .chat-close:focus-visible { background: var(--accent-soft); color: var(--ink); outline: none; }
.chat-list { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overflow: auto; }
.chat-drawer .chat-list { flex: 1 1 auto; }
.chat-inline .chat-list { max-height: 420px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.chat-msg { max-width: 85%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.chat-msg.own { align-self: flex-end; background: var(--accent-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.chat-meta { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.chat-meta strong { color: var(--ink); }
.chat-text { white-space: pre-line; overflow-wrap: anywhere; margin-top: 2px; }
.chat-del { appearance: none; margin-left: auto; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; }
.chat-del:hover, .chat-del:focus-visible { background: rgba(0, 0, 0, .08); color: var(--ink); outline: none; }
.chat-empty { margin: 0; padding: 12px 16px; background: var(--bg); }
.chat-inline .chat-empty { border: 1px solid var(--line); border-top: 0; }
.chat-loading { align-self: center; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-inline .chat-compose { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.chat-compose textarea { flex: 1 1 auto; min-width: 0; min-height: 44px; resize: vertical; }
.chat-state { margin: 0; padding: 0 16px 10px; min-height: 0; }
.chat-state.is-error { color: var(--danger, #c0392b); }
.company-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.company-tab { appearance: none; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer; padding: 9px 18px; border-radius: 10px; border: 2px solid var(--co); background: var(--card); color: var(--ink); }
.company-tab:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.company-tab.active { background: var(--co); color: var(--co-ink); }
.company-tab .chip-count { font-weight: 500; opacity: .8; }
.company-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 6px; background: var(--co); color: var(--co-ink); }
.table tr.group-row td { background: var(--bg); padding-top: 8px; padding-bottom: 8px; }

/* Intestazioni dell'elenco: ordina e filtra (come Excel) */
.th-btn { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-align: left; }
.th-btn:hover, .th-btn:focus-visible { color: var(--link); outline: none; text-decoration: underline; }
.th-ind { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; }
th.is-sorted .th-btn, th.is-filtered .th-btn { color: var(--link); }
.col-menu { position: fixed; z-index: 60; width: min(300px, calc(100vw - 16px)); overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11, 11, 15, .22); padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.col-menu-item { appearance: none; background: none; border: 0; border-radius: 8px; padding: 8px 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.col-menu-item:hover, .col-menu-item:focus-visible { background: var(--bg); outline: none; }
.col-menu-item.is-on { color: var(--link); font-weight: 600; }
.col-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.col-menu-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 2px 10px; }
.col-menu input[type=search] { padding: 7px 10px; }
.col-values { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.col-value { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.col-value:hover { background: var(--bg); }
.col-value .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.col-value .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.col-all { font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; }
.col-menu-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.col-filters-bar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 10px; font-size: 14px; color: var(--link); background: var(--accent-soft); border-radius: 9px; padding: 7px 12px; }
/* Modifica dalla tabella */
.can-edit td[data-edit] { cursor: text; }
.can-edit td[data-edit]:hover { box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
#sites-table td.is-editing { padding: 4px 6px; background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); }
#sites-table td.is-saving { opacity: .5; }
.cell-input { width: 100%; min-width: 150px; padding: 6px 8px; font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 7px; }
textarea.cell-input { min-width: 220px; resize: vertical; }
.choice-pop.cell-pop { position: fixed; right: auto; width: 240px; overflow-y: auto; }
.site-links { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; color: var(--link); background: var(--accent-soft); }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
th.is-movable, th.is-movable .th-btn { cursor: grab; }
body.col-dragging, body.col-dragging * { cursor: grabbing !important; user-select: none; }
.col-ghost { position: fixed; z-index: 80; pointer-events: none; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; box-shadow: 0 10px 24px rgba(11, 11, 15, .25); }
/* Trascinamento delle colonne: colonna trascinata più chiara, linea blu dove verrà lasciata */
#sites-table .is-dragging { opacity: .35; }
#sites-table .drop-before { box-shadow: inset 4px 0 0 var(--accent); }
#sites-table .drop-after { box-shadow: inset -4px 0 0 var(--accent); }
#sites-table th.drop-before, #sites-table th.drop-after { background: var(--accent-soft); color: var(--link); }
#sites-table th.drop-before::before, #sites-table th.drop-after::after { content: "⬇"; position: absolute; top: -2px; font-size: 12px; color: var(--accent); }
#sites-table th.drop-before::before { left: -6px; }
#sites-table th.drop-after::after { right: -6px; }
#sites-table th.is-movable { position: relative; }
.col-filters-bar .linklike { color: var(--link); font-weight: 600; padding: 2px 0; text-decoration: underline; }

/* Vista completa dell'elenco: tutte le colonne, come in Excel (si scorre a destra e in basso dentro il riquadro) */
.wrap.full-width { max-width: none; }
.sites-card:not(.full-view) .col-full { display: none; }
.sites-card.full-view { max-height: calc(100vh - 140px); overflow: auto; }
.full-view #sites-table th, .full-view #sites-table td { padding: 7px 10px; font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); }
.full-view #sites-table td.td-note { min-width: 180px; max-width: 250px; white-space: normal; }
.full-view #sites-table thead th { position: sticky; top: 0; z-index: 3; background: var(--card); box-shadow: inset 0 -1px 0 var(--line); }
.full-view #sites-table .th-plugin, .full-view #sites-table .td-plugin { position: sticky; left: 0; z-index: 2; background: var(--card); width: 78px; min-width: 78px; max-width: 78px; }
.full-view #sites-table .th-site, .full-view #sites-table .td-site { position: sticky; left: 78px; z-index: 2; background: var(--card); box-shadow: inset -2px 0 0 var(--line); }
.full-view #sites-table thead .th-plugin, .full-view #sites-table thead .th-site { z-index: 4; }
.full-view #sites-table tbody tr[data-href]:hover td { background: var(--bg); }
.full-view #sites-table .hide-md, .full-view #sites-table .hide-sm { display: table-cell; }
.full-view #sites-table .clamp { max-width: 200px; }
.full-view span.only-phone, .full-view div.only-phone { display: none; }
.full-view-btn { display: inline-flex; align-items: center; gap: 6px; }
/* Viste salvate (1.14): bolle in cima all'elenco, uguali per tutti. */
.views-bar { flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.views-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.view-chip-wrap { display: inline-flex; align-items: center; }
.view-chip { appearance: none; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.view-chip:hover, .view-chip:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.view-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.view-chip-wrap.has-del .view-chip { padding-right: 32px; }
.view-del { appearance: none; margin-left: -28px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.view-chip.active + .view-del { color: var(--accent-ink); }
.view-del:hover, .view-del:focus-visible { background: var(--accent-soft); color: var(--ink); outline: none; }
.view-save { border-style: dashed; }
.view-pop { position: fixed; z-index: 60; width: min(360px, calc(100vw - 16px)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.view-pop p { margin: 0; }
.view-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* Gruppi di colonne che si chiudono (1.12): tasto «− FTP» nella prima colonna, chiusi resta una colonna stretta. */
.grp-btn { appearance: none; display: inline-flex; align-items: center; gap: 3px; margin: 0 6px 0 0; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--link); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap; cursor: pointer; vertical-align: middle; }
.grp-btn:hover, .grp-btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.grp-sign { font-size: 14px; line-height: 1; }
#sites-table thead th.grp-col { box-shadow: inset 0 3px 0 var(--accent-soft); }
#sites-table .grp-hidden { display: none !important; }
#sites-table th.grp-stub .th-btn { display: none; }
#sites-table td.grp-stub { width: 1%; min-width: 0; max-width: none; font-size: 0; cursor: pointer; background: repeating-linear-gradient(135deg, var(--bg) 0 6px, var(--card) 6px 12px); }
#sites-table td.grp-stub > * { display: none !important; }
#sites-table td.grp-stub:hover { background: var(--accent-soft); }
.full-view #sites-table thead th.grp-col { box-shadow: inset 0 3px 0 var(--accent-soft), inset 0 -1px 0 var(--line); }
.js .js-only-inline.full-view-btn { display: inline-flex; }
.btn.ghost[data-full-view][aria-pressed="true"], .btn.ghost[data-full-view][aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty-filter { padding: 16px; margin: 0; }
#sites-table .clamp { max-width: 220px; }
#sites-table td.td-actions { white-space: nowrap; }

/* Cronologia dei campi (come la cronologia della cella di Excel) */
.field-history { margin-top: 6px; font-size: 13px; }
.field-history summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-block; }
.field-history summary::-webkit-details-marker { display: none; }
.field-history summary::before { content: "▸ "; color: var(--link); }
.field-history[open] summary::before { content: "▾ "; }
.field-history ul { margin: 6px 0 0; padding: 8px 10px; list-style: none; background: var(--bg); border-radius: 8px; }
.field-history li { margin: 4px 0; overflow-wrap: anywhere; }
.field-history li .muted { display: block; font-size: 12px; }
/* Con JavaScript la cronologia di un campo si apre cliccando sul suo nome (orologio accanto) */
.field { position: relative; }
.hist-btn { appearance: none; background: none; border: 0; padding: 0 2px; margin-left: 4px; color: var(--link); cursor: pointer; display: inline-flex; vertical-align: -2px; }
.hist-btn:hover, .hist-btn:focus-visible { color: var(--accent-hover); outline: none; }
.history-label { cursor: pointer; }
.history-label:hover { color: var(--link); }
.hist-pop { position: absolute; z-index: 40; left: 0; top: 26px; width: min(400px, 100%); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11, 11, 15, .2); padding: 10px 12px; font-size: 13px; font-weight: 400; }
.hist-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hist-pop ul { list-style: none; margin: 6px 0; padding: 0; max-height: 260px; overflow-y: auto; }
.hist-pop li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.hist-pop li:last-child { border-bottom: 0; }
.hist-pop li .muted { display: block; font-size: 12px; }
.hist-pop .hist-all { padding: 4px 0; color: var(--link); font-size: 13px; font-weight: 600; }
.history-filter { width: auto; max-width: 260px; padding: 6px 10px; font-size: 14px; }
.js .js-only-inline.history-filter { display: inline-block; }
/* Dati del sito, Server e dominio: alcuni campi a metà riga (Azienda | Email, Responsabile | Capo team, IP | Dominio) */
.form-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: start; }
.form-2col > * { grid-column: 1 / -1; }
.form-2col > .field.half { grid-column: auto; }
/* Riquadri dei campi personalizzati (es. Assistenza): a tutta larghezza, campi corti tre per riga */
.section-grid form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.section-grid form > * { grid-column: 1 / -1; }
.section-grid form > .field:not(.field-wide) { grid-column: auto; }
.field-toggle label.check { font-size: 16px; font-weight: 700; gap: 10px; }
.field-toggle input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
.js .section-off form > .field:not(.field-toggle) { display: none; }
/* Matita accanto all'indirizzo: cambia indirizzo */
.site-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edit-pencil { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--link); background: var(--accent-soft); }
.edit-pencil:hover { background: var(--accent); color: var(--accent-ink); }
.site-dates { margin-top: 0; }

@media (max-width: 1400px) {
    .hide-md { display: none; }
}
@media (max-width: 1100px) {
    .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .side-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
    .side-nav-title { display: none; }
    .side-nav a { white-space: nowrap; }
    .wrap { padding: 16px 12px 48px; }
    .card { padding: 16px; border-radius: 12px; }
    h1 { font-size: 22px; }
    .page-head { align-items: stretch; }
    .page-head > div, .toolbar { width: 100%; }
    .toolbar .btn { flex: 1 1 auto; }
    /* Tabelle: su telefono quelle lunghe scorrono dentro il riquadro, mai la pagina intera */
    .table:not(.stack) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .kv th { width: 42%; }
    /* Elenco dei siti su telefono: una riga compatta per sito (nome, stato, dati essenziali) */
    .table.stack thead { display: none; }
    .table.stack, .table.stack tbody { display: block; width: 100%; }
    .table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .table.stack tr[hidden] { display: none; }
    .table.stack td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; text-align: left; }
    .table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .table.stack td.hide-sm { display: none; }
    .table.sites-stack tr[data-href] { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; align-items: center; cursor: pointer; }
    .table.sites-stack tr[data-href]:active { background: var(--accent-soft); }
    .table.sites-stack td { display: none; }
    .table.sites-stack td.td-site { display: block; grid-column: 1; grid-row: 1 / span 2; }
    .table.sites-stack td.td-status { display: block; grid-column: 2; grid-row: 1; text-align: right; }
    .table.sites-stack td.td-status .small { display: none; }
    .table.sites-stack td.td-actions { display: block; grid-column: 2; grid-row: 2; text-align: right; }
    .table.sites-stack td.td-actions [data-verify] { display: none; }
    .table.sites-stack td.td-actions .btn { padding: 5px 10px; }
    .table.sites-stack .site-name { color: var(--link); font-size: 16px; }
    .table.sites-stack .site-name::after { content: " ›"; font-weight: 700; }
    .table.sites-stack .dot { margin-right: 7px; }
    .table.sites-stack tr.reveal-row td { display: block; }
    .table.sites-stack tr.group-row { display: block; padding: 6px 12px; background: var(--bg); }
    .table.sites-stack tr.group-row[hidden] { display: none; }
    .table.sites-stack tr.group-row td { display: block; padding: 0; background: none; }
    .company-tabs { gap: 8px; }
    .company-tab { flex: 1 1 0; padding: 10px 12px; }
    span.only-phone { display: inline-block; }
    div.only-phone { display: block; }
    .only-desktop { display: none; }
    /* Elenco dei siti: in alto solo l'essenziale, così sotto stanno più siti */
    .page-head h1 + p.muted { display: none; }
    .page-head { margin-bottom: 10px; }
    .toolbar { flex-wrap: nowrap; }
    .toolbar input[type=search].search { flex: 1 1 auto; min-width: 0; }
    .toolbar .btn { flex: 0 0 auto; }
    .toolbar [data-verify-all] { display: none; }
    .filters { margin-bottom: 10px; }
    .table.stack tr.reveal-row { display: block; padding: 10px 14px; }
    .table.stack tr.reveal-row[hidden] { display: none; }
    .log-stack tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; }
    .log-stack td.td-when { grid-column: 1; font-size: 13px; }
    .log-stack td.td-who { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--muted); }
    .log-stack td.td-what { grid-column: 1 / -1; font-weight: 600; }
    .log-stack td.td-details { grid-column: 1 / -1; }
    .filters { gap: 6px; }
    .chip { padding: 6px 10px; }
    .dialog { padding: 16px; }
    .date-row { flex-wrap: wrap; }
    .top-inner { gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
    .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; }
    .nav a { white-space: nowrap; }
    .me { margin-left: auto; }
    .grid-main, .grid2, .grid3 { grid-template-columns: 1fr; }
    .site-cards { columns: 1; }
    .form-2col, .section-grid form { grid-template-columns: minmax(0, 1fr); }
    .full-view .table:not(.stack) { display: table; }
    .frow, .frow.fixed { grid-template-columns: minmax(0, 1fr) auto; }
    .frow-order { grid-column: 2; grid-row: 1; }
    .frow-main { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .frow-label { grid-column: 1 / -1; }
    .frow:not(.fixed) .frow-choices { grid-column: 1 / -1; grid-row: 3; }
    .frow-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .frow.fixed .frow-name { grid-column: 1; }
    .frow.fixed .frow-choices { grid-column: 1 / -1; grid-row: 2; }
    .frow.fixed .frow-actions { grid-column: 2; grid-row: 1; }
    .full-view-btn .fv-text { display: none; }
    .full-view-btn { padding: 9px 11px; }
    .phone-meta .pill { font-size: 11.5px; padding: 0 7px; }
    .filters-note { margin-left: 0; }
    .hide-sm { display: none; }
    input[type=search].search { width: 100%; }
}

/* Guida nella pagina Aggiornamenti */
details.guide > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::before { content: "▸"; color: var(--link); font-size: 14px; }
details.guide[open] > summary::before { content: "▾"; }
details.guide > summary h2 { margin: 0; }
details.guide h3 { font-size: 15px; margin: 18px 0 4px; }
details.guide ol { padding-left: 22px; margin: 6px 0; }
details.guide li { margin: 6px 0; }
@media (max-width: 480px) {
    /* Testata su una riga: fulmine + Sinapps a sinistra, impostazioni, nome ed Esci a destra */
    .brand span { display: none; }
    .me a, .linklike { padding: 6px 6px; }
}

/* 1.21: sola lettura (ruolo Collaboratore) e Siti in sviluppo */
input:disabled, select:disabled, textarea:disabled { opacity: .7; cursor: default; }
.choice.is-disabled .choice-btn { cursor: default; opacity: .8; }
.choice.is-disabled .choice-btn:hover { border-color: var(--line); }
fieldset.roles { border: 0; padding: 0; margin: 10px 0 16px; }
fieldset.roles legend { font-weight: 600; margin-bottom: 4px; }
fieldset.roles .check { display: block; margin: 6px 0; }
.role-form select { width: auto; min-width: 150px; padding: 5px 8px; }
details.dev-new { padding: 14px 20px; }
details.dev-new > summary { list-style: none; display: inline-block; }
details.dev-new > summary::-webkit-details-marker { display: none; }
details.dev-new[open] > summary { margin-bottom: 14px; }
.dev-group .dev-group-head { padding: 14px 16px 6px; }
.dev-group .dev-group-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.dev-group .dev-group-head .pill { font-size: 14px; padding: 4px 12px; }
.dev-empty { padding: 0 16px 14px; margin: 0; }
.dev-table tr[data-dev-row] { cursor: pointer; }
.dev-table tr[data-dev-row]:hover td { background: var(--bg); }
.dev-table .dev-note { max-width: 420px; }
.promote-form .input-row { margin-bottom: 8px; }
