:root {
  --ink: #171310; --muted: #6b5a4c; --paper: #fffdf9; --soft: #f5e7cd; --soft-2: #fbf3e4;
  --coral: #ff4d3d; --coral-deep: #a92f25; --sage: #c8e8b8; --line: #d9c9af; --gold: #e3a21a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--coral-deep); }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 80px; }
h1 { font: 700 clamp(26px, 5vw, 36px)/1.15 var(--serif); margin: 0 0 8px; }
h1 em { color: var(--coral); }
.barra { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wordmark { font: 800 22px/1 var(--sans); letter-spacing: -.06em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--coral); }
.wordmark small { font-weight: 500; letter-spacing: 0; font-size: 15px; color: var(--muted); }
.esci { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.chi { color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 45vw; white-space: nowrap; }
.modo { margin: 0; padding: 6px 16px; background: var(--soft); font-size: 13px; text-align: center; }
.avviso { background: var(--sage); padding: 10px 14px; border-radius: 12px; }
.nota, .briciole, .motivo { color: var(--muted); font-size: 14px; }
.vuoto { color: var(--muted); padding: 24px; background: var(--soft-2); border-radius: 16px; }
.bottone { display: inline-block; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--ink); color: #fff;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.bottone:hover { background: var(--coral-deep); }
.bottone.secondario { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.link { border: 0; background: none; color: var(--coral-deep); text-decoration: underline; cursor: pointer; font: inherit; padding: 8px; }
.testa { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.accesso { padding-top: 6vh; display: grid; gap: 14px; justify-items: start; }
.schede { list-style: none; padding: 0; display: grid; gap: 10px; }
.schede a { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; }
.schede a span { color: var(--muted); font-size: 14px; }
.pill { justify-self: start; font-style: normal; font-size: 13px; background: var(--coral); color: #fff; padding: 2px 10px; border-radius: 999px; }
.recensione { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; background: #fff; }
.recensione header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.stelle { color: var(--gold); letter-spacing: 1px; }
.stelle i { color: var(--line); font-style: normal; }
.data { color: var(--muted); font-size: 13px; }
.stato { margin-left: auto; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--soft); }
.stato-bozza .stato { background: var(--coral); color: #fff; }
.stato-pubblicata .stato { background: var(--sage); }
.stato-scartata, .stato-gia_risposta { opacity: .7; }
.testo { margin: 10px 0; }
.attenzione { background: #fff1ee; border-left: 3px solid var(--coral); padding: 8px 12px; font-size: 14px; }
.errore { color: var(--coral-deep); font-size: 14px; }
.risposta label, .profilo label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.profilo label small { font-weight: 400; color: var(--muted); }
textarea, input:not([type=checkbox]), select { width: 100%; font: 16px/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--coral); border-color: transparent; }
.azioni { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.pubblicata { margin: 8px 0 0; padding: 10px 14px; background: var(--soft-2); border-radius: 12px; }
.profilo { display: grid; gap: 14px; }
.profilo fieldset { border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; }
.profilo .riga { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.bottone[disabled] { opacity: .6; cursor: progress; }
.in-corso { display: flex; gap: 10px; align-items: center; background: var(--soft-2); padding: 10px 14px; border-radius: 12px; }
.rotella { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: gira 0.9s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rotella { animation: none; } }
h2 { font: 700 20px/1.2 var(--serif); margin: 0 0 6px; }
.blocco { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; background: #fff; display: grid; gap: 8px; justify-items: start; }
.blocco p { margin: 0; }
.blocco.pericolo { border-color: var(--coral); }
.elimina { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.elimina label { display: grid; gap: 4px; font-size: 14px; }
.bottone.pericolo { background: var(--coral-deep); }
.bottone.pericolo:hover { background: var(--ink); }
a.chi { color: var(--muted); text-decoration: none; }
a.chi:hover { text-decoration: underline; }
.admin-link { font-weight: 600; color: var(--coral-deep); text-decoration: none; }
.tabella-scorre { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.admin { border-collapse: collapse; width: 100%; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 10px; border-bottom: 1px solid var(--soft); vertical-align: top; }
table.admin th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.admin tr.sospesa td { opacity: .6; }
.nowrap { white-space: nowrap; }
.rosso { color: var(--coral-deep); font-weight: 700; }
.pill.grigia { background: var(--soft); color: var(--ink); margin-left: 4px; }
.parametri .aiuto { color: var(--muted); font-size: 13px; margin-top: -6px; }
main:has(table.admin) { max-width: 1100px; }
.stelle-scelta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.stelle-scelta .riga { font-weight: 400; }
.etichetta { font-weight: 600; font-size: 14px; }
