/* Pannello editoriale: stile sobrio, nessuna dipendenza esterna. */
:root {
  --ink: #1b1f1d; --muted: #5b6560; --line: #d8d3c7; --bg: #f6f2ea; --card: #fffdf8;
  --green: #1f4d3a; --green-2: #2e6f52; --ochre: #b5651d; --red: #a32a1e; --amber: #8a5a00;
  --ok-bg: #e5f2ea; --err-bg: #fbe9e6; --warn-bg: #fff3d6;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--green-2); }
.topbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 10px 20px; background: var(--green); color: #fff; }
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 18px; }
.brand small { font-weight: 400; opacity: .8; font-size: 13px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.topbar nav a { padding: 6px 10px; border-radius: 6px; }
.topbar nav a.on, .topbar nav a:hover { background: rgba(255,255,255,.16); }
.who { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.who form { margin: 0; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px 20px 60px; }
.disclaimer { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-bg); border: 1px solid #b6d8c4; }
.flash.err { background: var(--err-bg); border: 1px solid #efb9b0; }
.flash ul { margin: 4px 0 0 18px; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #efe9dc; font-size: 13px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #bdb6a6; border-radius: 6px; font: inherit; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
textarea.tall { min-height: 220px; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid #f0b55a; outline-offset: 1px; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.btn { display: inline-block; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--green-2); color: #fff; }
.btn.secondary { background: #e7e1d3; color: var(--ink); }
.btn.warn { background: var(--ochre); }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.inline { display: inline; margin: 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e7e1d3; }
.badge.published, .badge.verified { background: #cfe8d9; color: #154630; }
.badge.in_review, .badge.unverified { background: var(--warn-bg); color: var(--amber); }
.badge.archived, .badge.rejected { background: #eadfdf; color: #6b2a24; }
.badge.premium { background: #efe0f5; color: #5a2a73; }
.badge.changes { background: #fde7c8; color: #7a4300; }
.badge.demo { background: #dfe9f5; color: #23466e; }
.problems { background: var(--warn-bg); border: 1px solid #ecd59a; border-radius: 8px; padding: 10px 14px; }
.problems ul { margin: 4px 0 0 18px; padding: 0; }
.workflow { position: sticky; top: 0; z-index: 2; }
.thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.checklist { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: #fff; }
.checklist label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 4px 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px 14px; margin: 0 0 12px; background: #fff; }
legend { font-weight: 700; padding: 0 6px; }
.pager { margin-top: 12px; }
.pager nav svg { width: 16px; }
.preview-phone { max-width: 420px; margin: 0 auto; background: #fbf8f2; border: 10px solid #222; border-radius: 28px; overflow: hidden; }
.preview-phone .cover { width: 100%; height: 200px; object-fit: cover; display: block; }
.preview-phone .body { padding: 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cols.src { grid-template-columns: 2fr 1fr 2fr 1fr; }
@media (max-width: 760px) { .cols.src { grid-template-columns: 1fr; } }
.narrow { max-width: 480px; }
.center { margin: 40px auto; }
.plain { text-decoration: none; color: inherit; }
.mt { margin-top: 10px; }
