/* Gabriele Cruciata · the mailbox, already open. Graphite rail, cool white panes, one electric cobalt. */
:root {
  --side: #161A21; --side-2: #1F242D; --side-3: #2B313C; --side-ink: #E4E8EF; --side-mute: #9AA3B3;
  --list: #F1F3F7; --paper: #FBFCFE; --white: #FFFFFF;
  --ink: #141820; --ink-2: #3F4756; --mute: #5C6575; --line: #DCE1E9; --line-2: #C6CDD8;
  --co: #2B45F0; --co-ink: #1C33C7; --co-wash: #E7EBFF; --co-dark: #A3B3FF;
  --sans: 'Commissioner', 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --e: cubic-bezier(.16, 1, .3, 1); --e2: cubic-bezier(.25, 1, .5, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--list); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'tnum' 0; }
::selection { background: var(--co); color: #fff; }
a { color: var(--co-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--co); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the three panes ---------- */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 264px minmax(330px, 410px) minmax(0, 1fr); }
.side, .list, .reader { min-width: 0; min-height: 0; }

/* rail: graphite */
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 14px 12px 14px; gap: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--side-3) transparent; }
.side-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; }
.acct-wrap { position: relative; }
.acct { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 9px 10px; background: transparent; border: 1px solid var(--side-3); border-radius: 8px; color: var(--side-mute); transition: background .25s var(--e2), border-color .25s var(--e2); }
.acct:hover, .acct[aria-expanded="true"] { background: var(--side-2); border-color: #3A4250; }
.acct img[data-logo] { height: 40px; width: auto; display: block; }
.acct .chev { transition: transform .3s var(--e); } .acct[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acct-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); color: var(--ink); border-radius: 8px; padding: 6px; box-shadow: 0 1px 2px rgba(10, 14, 22, .2), 0 18px 40px -12px rgba(10, 14, 22, .45); }
.acct-h { margin: 4px 8px 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.acct-menu a { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 5px; text-decoration: none; color: var(--ink); font-size: 14px; }
.acct-menu a span { color: var(--mute); font-size: 13px; } .acct-menu a:hover { background: var(--co-wash); }
.compose { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 6px; background: var(--co); color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -10px rgba(43, 69, 240, .9); transition: transform .3s var(--e), background .2s var(--e2); }
.compose:hover { background: #3B54FF; transform: translateY(-1px); }

.folders, .labels { display: flex; flex-direction: column; gap: 1px; }
.folders a, .labels a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; color: var(--side-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .2s var(--e2); }
.folders a:hover, .labels a:hover { background: var(--side-2); }
.folders a .ic { color: var(--side-mute); }
.folders a.on { background: var(--side-3); box-shadow: inset 3px 0 0 var(--co); } .folders a.on .ic { color: var(--co-dark); }
.fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc { font: 500 12px/1 var(--mono); color: var(--side-mute); font-variant-numeric: tabular-nums; }
.folders a.has[data-box="arrivo"] .fc { color: #fff; background: var(--co); padding: 3px 6px; border-radius: 3px; }
.labels { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--side-3); }
.lh { margin: 0 10px 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-mute); }
.labels a { font-size: 13.5px; padding: 6px 10px; color: #CDD3DD; } .labels a.on { background: var(--side-3); color: #fff; }
.sw { width: 9px; height: 9px; flex: none; display: inline-block; border-radius: 2px; background: currentColor; }
.lb-inchiesta .sw { background: var(--co); } .side .lb-inchiesta .sw { background: #5A70FF; }
.lb-lavoro .sw { background: var(--ink-2); } .side .lb-lavoro .sw { background: #C9D0DB; }
.lb-media .sw { background: transparent; box-shadow: inset 0 0 0 1.5px var(--co); } .side .lb-media .sw { box-shadow: inset 0 0 0 1.5px var(--co-dark); }
.lb-abbonati .sw { background: var(--co-ink); border-radius: 50%; } .side .lb-abbonati .sw { background: var(--co-dark); }
.lb-tbc .sw { background: transparent; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.side-end { margin-top: auto; padding: 16px 8px 2px; border-top: 1px solid var(--side-3); display: flex; flex-direction: column; gap: 12px; }
.disclose { margin: 0; font-size: 12px; line-height: 1.5; color: var(--side-mute); }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lang { display: inline-flex; border: 1px solid var(--side-3); border-radius: 5px; padding: 2px; }
.lang button { border: 0; background: transparent; color: var(--side-mute); font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 3px; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--side-ink); color: var(--side); }
.legal { margin: 0; font-size: 12px; color: var(--side-mute); line-height: 1.7; } .legal a { color: var(--side-ink); }

/* ---------- list ---------- */
.list { background: var(--list); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 20px 12px; }
.list-head h2 { margin: 0; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.tabs { display: inline-flex; background: #E3E7EE; border-radius: 6px; padding: 3px; flex: none; }
.tabs button { border: 0; background: transparent; padding: 6px 11px; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--mute); transition: background .2s var(--e2), color .2s; }
.tabs button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 32, .14); }
.search { margin: 0 20px 10px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--mute); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--co); box-shadow: 0 0 0 3px rgba(43, 69, 240, .14); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 14.5px; color: var(--ink); }
.search input::placeholder { color: #737C8B; }
.filter { margin: 0 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.filter button { border: 0; background: none; color: var(--co-ink); font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.items { list-style: none; margin: 0; padding: 4px 12px 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 14px 13px; border-radius: 7px; background: transparent; border: 1px solid transparent; text-decoration: none; color: var(--ink); position: relative; transition: background .2s var(--e2), border-color .2s var(--e2); }
.it:hover { background: var(--white); border-color: var(--line); }
.it.sel { background: var(--white); border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--co), 0 1px 2px rgba(20, 24, 32, .06); }
.it-from { font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-from .it-via { color: var(--mute); font-weight: 400; margin-left: -3px; overflow: hidden; text-overflow: ellipsis; }
.it.unread .it-from { color: var(--ink); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--co); flex: none; box-shadow: 0 0 0 3px rgba(43, 69, 240, .16); }
.it .pin { width: 14px; height: 14px; color: var(--co-ink); }
.it-side { font: 400 12px/1.6 var(--mono); color: var(--mute); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.it-side .ic { width: 13px; height: 13px; }
.it-subj { grid-column: 1 / -1; font-size: 15px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.it.unread .it-subj { font-weight: 700; }
.it-prev { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.it.issue .it-subj { font-size: 16px; }
.it.draft .it-from { color: var(--ink); }
.dtag { display: inline-flex; align-items: center; gap: 3px; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: #fff; background: var(--ink); padding: 4px 6px; border-radius: 3px; }
.dtag .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--mono); color: var(--ink-2); padding: 4px 7px 4px 6px; border-radius: 3px; background: #E6EAF0; }
.chip .ic { width: 12px; height: 12px; stroke-width: 2; }
.chip.lb-abbonati { background: var(--co-wash); color: var(--co-ink); }
.chip.lb-tbc { background: transparent; outline: 1px dashed #8A93A3; outline-offset: -1px; }
.empty { padding: 36px 10px; color: var(--mute); }
.empty b { display: block; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.empty p { margin: 6px 0 14px; max-width: 32ch; }
.empty button { border: 1px solid var(--ink); background: transparent; padding: 9px 14px; border-radius: 5px; font-weight: 600; font-size: 14px; }
.empty button:hover { background: var(--ink); color: #fff; }

/* ---------- reading pane ---------- */
.reader { background: var(--paper); display: flex; flex-direction: column; }
.tools { display: flex; align-items: center; gap: 2px; padding: 8px 14px; border-bottom: 1px solid var(--line); min-height: 54px; }
.tb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; color: var(--ink-2); text-decoration: none; transition: background .2s var(--e2), color .2s; }
.tb:hover:not(:disabled):not(.off) { background: #EBEEF4; color: var(--ink); }
.tb:disabled, .tb.off { color: #B4BBC7; cursor: default; }
.tb.back { display: none; }
.tb.wide { border: 1px solid var(--line-2); padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tsep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.tpos { margin-left: auto; margin-right: 10px; font: 400 12px/1 var(--mono); color: var(--mute); }
.scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.msg { padding: 34px clamp(24px, 4.2vw, 64px) 10px; max-width: 900px; }
.blank { height: 50vh; display: grid; place-items: center; color: var(--mute); }

.mh .who { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.av { width: 44px; height: 44px; border-radius: 10px; display: block; background: var(--side); }
/* his own messages carry his face in the same tile, framed on the head (the file is a 900 px half-length portrait) */
.av-ph { position: relative; overflow: hidden; }
.av-ph img { position: absolute; left: -18px; top: -5px; width: 80px; max-width: none; height: 80px; display: block; }
.who b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.who span { display: block; font-size: 13px; color: var(--mute); }
.who time { font: 400 12.5px/1 var(--mono); color: var(--mute); display: flex; align-items: center; gap: 5px; align-self: start; padding-top: 4px; }
.who time .ic { width: 13px; height: 13px; }
.subj { margin: 26px 0 14px; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.mh.big .subj { font-size: clamp(50px, 6.8vw, 112px); line-height: .94; letter-spacing: -.048em; max-width: 11ch; margin-top: 40px; }
.hdrs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 0 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.hk { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-right: 8px; }
.hchips { display: flex; flex-wrap: wrap; gap: 5px; }
.compose-h .mk { margin: 0 0 18px; font-size: clamp(32px, 3.3vw, 50px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.hdr { display: flex; align-items: center; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hdr:last-child { border-bottom: 1px solid var(--line); }
.hdr .hk { width: 74px; flex: none; }
.hdr select { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 5px; background: var(--white); padding: 8px 10px; font-size: 15px; font-weight: 600; }
.mute { color: var(--mute); }

.mb { padding: 24px 0 8px; max-width: 66ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.mb p { margin: 0 0 16px; }
.mb .lede { font-size: 19px; line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.mb h3 { margin: 30px 0 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mb strong { color: var(--ink); font-weight: 700; }
.pull { margin: 0 0 10px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
.src { font-size: 13.5px; color: var(--mute); }
.aside { font-size: 15px; color: var(--mute); }
.note { font-size: 13.5px; line-height: 1.55; color: var(--mute); border-left: 2px solid var(--line-2); padding-left: 14px; margin-top: 26px !important; }
.tbc { font: 500 11px/1 var(--mono); font-style: normal; color: var(--ink-2); padding: 3px 6px; outline: 1px dashed #7E8797; outline-offset: -1px; border-radius: 3px; white-space: nowrap; vertical-align: 2px; letter-spacing: .02em; }
.spec { margin: 18px 0 8px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.spec dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 7px 0; color: var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--co-ink); }
.quotes { margin: 0 0 8px; padding: 0; list-style: none; }
.quotes li { padding: 4px 0 4px 16px; border-left: 2px solid var(--co); margin-bottom: 8px; color: var(--ink); font-size: 16.5px; }
.record { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.record li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.record b { color: var(--ink); font-weight: 600; } .record span { color: var(--mute); }
.example { position: relative; margin: 24px 0; padding: 16px 18px 4px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.ex-k { position: absolute; top: -9px; left: 14px; background: var(--ink); color: #fff; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; }
.example p { font-size: 15px; }
.locked { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 6px; background: var(--co-wash); color: var(--ink); margin-bottom: 18px; }
.locked .ic { width: 22px; height: 22px; color: var(--co-ink); }
.locked b { color: var(--co-ink); }

table.index, table.plans { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
table.index thead th { text-align: left; font: 500 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line-2); }
table.index tbody th, table.index td, table.plans th, table.plans td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
table.index tbody th { width: 34%; font-weight: 600; } table.index tbody th a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--co), var(--co)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--e); }
table.index tbody tr:hover th a { background-size: 100% 1.5px; color: var(--co-ink); }
table.index td:last-child { color: var(--ink); white-space: normal; width: 24%; font-variant-numeric: tabular-nums; }
table.plans th { width: 26%; color: var(--ink); font-weight: 600; }
table.plans td.p { width: 22%; color: var(--ink); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 26px 0 8px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .25s var(--e2), color .25s, transform .3s var(--e); }
.cta .ic { width: 16px; height: 16px; transition: transform .3s var(--e); }
.cta:hover { background: var(--ink); color: #fff; } .cta:hover .ic { transform: translate(2px, -2px); }
.cta.main { background: var(--co); border-color: var(--co); color: #fff; }
.cta.main:hover { background: var(--co-ink); border-color: var(--co-ink); }
.ctas > a:not(.cta) { font-weight: 600; font-size: 14.5px; }

/* ---------- the reply box ---------- */
.reply { margin: 20px clamp(24px, 4.2vw, 64px) 34px; max-width: calc(900px - 2 * clamp(24px, 4.2vw, 64px)); background: var(--white); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px 14px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(20, 24, 32, .05); transition: border-color .25s var(--e2), box-shadow .35s var(--e); }
.reply.focus { border-color: var(--co); box-shadow: 0 0 0 3px rgba(43, 69, 240, .12), 0 18px 40px -24px rgba(20, 24, 32, .4); }
.reply-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 600; }
.re { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--mute); opacity: 0; transform: translateY(3px); transition: opacity .3s var(--e2), transform .4s var(--e); white-space: nowrap; }
.saved i { width: 7px; height: 7px; border-radius: 50%; background: var(--co); }
.saved.show { opacity: 1; transform: none; } .saved.copied i { background: var(--ink); }
.reply textarea { display: block; width: 100%; border: 0; resize: vertical; min-height: 76px; padding: 12px 2px; background: transparent; outline: none; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.reply textarea::placeholder, .reply input::placeholder { color: #737C8B; }
.reply-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 0 12px; border-top: 1px dashed var(--line); }
.reply-fields label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reply-fields span { font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.reply-fields input { width: 100%; border: 1px solid var(--line-2); border-radius: 5px; padding: 8px 10px; background: var(--paper); font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.reply-fields input:focus { border-color: var(--co); box-shadow: 0 0 0 3px rgba(43, 69, 240, .12); background: #fff; }
.reply .bad, .reply textarea.bad { box-shadow: inset 0 0 0 1.5px #C2283B; border-radius: 5px; }
.reply-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 32px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; transition: background .25s var(--e2); flex: none; }
.track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--e); }
.switch input:checked + .track { background: var(--co); } .switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--co); outline-offset: 2px; }
.via { font-size: 12.5px; color: var(--mute); margin-left: auto; } .via.warn { color: #A11E30; font-weight: 600; }
.send { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 5px; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; font-size: 14.5px; transition: background .2s var(--e2), transform .3s var(--e); }
.send:hover { background: var(--co); } .send:hover .ic { transform: translate(2px, -2px); } .send .ic { width: 16px; height: 16px; transition: transform .3s var(--e); }

/* ---------- toast: the client's own notice ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; gap: 12px; align-items: flex-start; max-width: min(460px, calc(100vw - 32px)); padding: 13px 16px; border-radius: 8px; background: var(--side); color: var(--side-ink); box-shadow: 0 20px 44px -16px rgba(10, 14, 22, .6); transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--e), opacity .3s var(--e2); pointer-events: none; font-size: 13.5px; line-height: 1.45; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .ic { color: var(--co-dark); stroke-width: 2.2; margin-top: 1px; }
.toast b { display: block; color: #fff; font-size: 14px; } .toast span { color: var(--side-mute); overflow-wrap: anywhere; }

/* ---------- arrival choreography ---------- */
@keyframes gc-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes gc-side { from { opacity: 0; transform: translate3d(-14px, 0, 0); } to { opacity: 1; transform: none; } }
html.js .side > * { animation: gc-side .7s var(--e) both; } html.js .side > :nth-child(2) { animation-delay: .06s; } html.js .side > :nth-child(3) { animation-delay: .12s; } html.js .side > :nth-child(4) { animation-delay: .18s; }
html.js .items > li { animation: gc-in .6s var(--e) both; animation-delay: calc(min(var(--i, 0), 10) * 35ms + 120ms); }
html.js .msg.in { animation: gc-in .55s var(--e) both; }
html.js .msg.in .subj { animation: gc-in .8s var(--e) both .06s; }
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- medium: narrower rail ---------- */
@media (max-width: 1239px) {
  .app { grid-template-columns: 220px minmax(300px, 350px) minmax(0, 1fr); }
  .reply-fields { grid-template-columns: 1fr 1fr; } .reply-fields label:last-child { grid-column: 1 / -1; }
  .record li { grid-template-columns: 1fr; }
}

/* ---------- phone and small tablet: one pane at a time ---------- */
@media (max-width: 899px) {
  html, body { height: auto; }
  .app { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .side { display: contents; }
  .side-head { order: 1; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); color: var(--side-ink); }
  .acct-wrap { flex: 1; min-width: 0; } .acct { border-color: transparent; padding: 6px 4px; justify-content: flex-start; } .acct img[data-logo] { height: 32px; }
  .acct-menu { right: auto; width: min(320px, calc(100vw - 32px)); }
  .compose { padding: 10px 12px; font-size: 13.5px; } .compose span { white-space: nowrap; }
  .folders { order: 2; flex-direction: row; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--side); scrollbar-width: none; position: sticky; top: 52px; z-index: 19; }
  .folders::-webkit-scrollbar { display: none; }
  .folders a { flex: none; padding: 7px 11px; background: var(--side-2); font-size: 13.5px; }
  .folders a.on { box-shadow: inset 0 -2px 0 var(--co); }
  .list { order: 3; border-right: 0; flex: 1; }
  .list-head { padding: 18px 16px 10px; } .list-head h2 { font-size: 26px; }
  .search, .filter { margin-left: 16px; margin-right: 16px; }
  .items { overflow: visible; padding: 4px 8px 16px; }
  .labels { order: 4; margin: 0; padding: 14px 8px; background: var(--side); color: var(--side-ink); flex-direction: row; flex-wrap: wrap; gap: 4px; border-top: 0; }
  .labels .lh { width: 100%; }
  .labels a { background: var(--side-2); }
  .side-end { order: 5; margin: 0; padding: 4px 16px 22px; background: var(--side); color: var(--side-ink); border-top: 0; }
  .reader { position: fixed; inset: 0; z-index: 40; transform: translate3d(100%, 0, 0); transition: transform .45s var(--e); visibility: hidden; }
  .app.reading .reader { transform: none; visibility: visible; }
  .tb.back { display: inline-flex; }
  .tools { padding: 8px 8px; } .tpos { display: none; } .tb.wide { margin-left: auto; }
  .msg { padding: 22px 18px 6px; }
  .mh.big .subj { font-size: clamp(42px, 13vw, 64px); }
  .subj { font-size: clamp(28px, 8vw, 38px); }
  .reply { margin: 14px 12px 28px; }
  .toast { left: 12px; right: 12px; max-width: none; transform: translate3d(0, 140%, 0); } .toast.show { transform: none; }
  .reply-fields { grid-template-columns: 1fr; } .reply-fields label:last-child { grid-column: auto; }
  .via { margin-left: 0; width: 100%; order: 3; }
  .send { margin-left: auto; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  table.index thead { display: none; }
  table.index, table.index tbody, table.index tr, table.index th, table.index td { display: block; width: auto !important; }
  table.index tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.index tbody th, table.index td { border: 0; padding: 2px 0; }
  table.plans th, table.plans td { padding-right: 8px; }
  table.plans td.p { white-space: normal; }
}
body.lgl-body { height: auto; }

/* ---------- legal pages: the same client, a message opened full width ---------- */
body.lgl-body { background: var(--paper); }
.lgl-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 4vw, 40px); background: var(--side); }
.lgl-home img[data-logo] { height: 34px; width: auto; display: block; }
.lgl-back { color: var(--side-ink); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--side-3); border-radius: 5px; padding: 8px 12px; white-space: nowrap; }
.lgl-back:hover { background: var(--side-2); }
.doc { max-width: 820px; margin: 0 auto; padding: 40px 16px 80px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; overflow-wrap: break-word; }
.doc h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); margin: 0 0 18px; font-weight: 700; }
.doc h2 { font-size: 20px; letter-spacing: -.02em; color: var(--ink); margin: 34px 0 10px; font-weight: 700; }
.doc h3 { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 22px 0 8px; }
.doc a { color: var(--co-ink); }
.doc th { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.doc code { font: 13px var(--mono); background: #EDF0F5; padding: 1px 4px; border-radius: 3px; }

@keyframes gc-bump { 0% { transform: scale(1); } 35% { transform: scale(1.6); color: #fff; } 100% { transform: scale(1); } }
.folders a.bump .fc { display: inline-block; animation: gc-bump .6s var(--e); } .folders a.bump { background: var(--side-2); }

/* the cookie page's own buttons: square, like the client's */
.lgl-body .ck-page button { border-radius: 5px; padding: 10px 16px; }
.lgl-body .ck-page button:hover { background: var(--ink); color: #fff; }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: gabriele-cruciata */
.ck { top: 16px; right: 16px; left: auto; bottom: auto; width: 384px; max-width: calc(100vw - 32px); background: #FFFFFF; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px 0 66px; font-family: var(--sans); box-shadow: 0 1px 2px rgba(10, 14, 22, .12), 0 26px 50px -18px rgba(10, 14, 22, .5); overflow: hidden; animation: gc-ck .6s var(--e) both .5s; }
.ck::before { content: ''; position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 9px; background: var(--side) url(logo-mark.svg) center / 30px no-repeat; }
.ck .ck-k { display: flex; align-items: center; gap: 7px; font: 500 11px/1.3 var(--mono); color: var(--mute); letter-spacing: .02em; }
.ck .ck-k::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--co); box-shadow: 0 0 0 3px rgba(43, 69, 240, .16); margin-left: auto; }
.ck .ck-t { margin-top: 4px; } .ck .ck-t b { display: block; font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: -.012em; color: var(--ink); }
.ck .ck-p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ck .b { margin: 12px -16px 0 -66px; gap: 0; flex-wrap: nowrap; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1.25fr; }
.ck button, .ck a.more { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 8px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; font: 600 13.5px/1.2 var(--sans); color: var(--ink); transition: background .2s var(--e2); }
.ck a.more { border-right: 0; color: var(--ink-2); font-weight: 500; }
.ck .ok { color: var(--co-ink); }
.ck button:hover, .ck a.more:hover { background: var(--co-wash); }
@keyframes gc-ck { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
html.static .ck { animation: none; }
@media (max-width: 600px) { .ck { top: auto; } }
/* seller block (panel mode): opens like a message window of the same client */
footer.seller.panel { background: #FFFFFF; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--sans); box-shadow: 0 1px 2px rgba(10, 14, 22, .12), 0 30px 60px -20px rgba(10, 14, 22, .55); padding-top: 46px; }
footer.seller.panel::before { content: 'Titolare del sito · Gabriele Cruciata'; position: absolute; left: 0; right: 0; top: 0; padding: 11px 26px; background: var(--side); color: var(--side-ink); font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 9px 9px 0 0; }
footer.seller.panel .x { color: var(--side-ink); top: 2px; z-index: 1; }
footer.seller.panel b { font-family: var(--mono); font-weight: 500; color: var(--mute); opacity: 1; }
footer.seller.panel strong { color: var(--ink); } footer.seller.panel a { color: var(--co-ink); }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
