/* Layout: header sottile + sezioni a colonna larga, griglie fotografiche 3:4, filetti al posto dei riquadri. */
@font-face{font-family:"Inter LIPARI";src:url(fonts/Inter-Light.woff) format("woff");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Inter LIPARI";src:url(fonts/Inter-Regular.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter LIPARI";src:url(fonts/Inter-Bold.woff) format("woff");font-weight:700;font-style:normal;font-display:swap}

:root {
  --paper: #ffffff; --paper-alt: #f4f4f4; --ink: #000000; --ink-muted: #5c5c5c; --on-ink: #ffffff;
  --line: #d9d9d9; --line-strong: #767676; --focus: #000000; --scrim: rgba(0,0,0,.42);
  --font: "Inter LIPARI", "Helvetica Neue", Arial, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 104px;
  --maxw: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #000000; --paper-alt: #141414; --ink: #ffffff; --ink-muted: #a3a3a3; --on-ink: #000000; --line: #2e2e2e; --line-strong: #8a8a8a; --focus: #ffffff; --scrim: rgba(0,0,0,.66); color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #000000; --paper-alt: #141414; --ink: #ffffff; --ink-muted: #a3a3a3; --on-ink: #000000; --line: #2e2e2e; --line-strong: #8a8a8a; --focus: #ffffff; --scrim: rgba(0,0,0,.66); color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Testo */
.label { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 1.45; }
.display { font-weight: 300; font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h1 { font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 300; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0; text-wrap: balance; }
.sub { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 64px; flex-wrap: wrap; padding-block: var(--s2); }
.brand { display: flex; align-items: baseline; gap: var(--s3); text-decoration: none; min-width: 0; }
.brand svg { height: 14px; width: auto; display: block; fill: currentColor; align-self: center; }
.brand .label { white-space: nowrap; }
.nav { display: flex; gap: var(--s4); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: var(--s2) 0; border-bottom: 1px solid transparent; white-space: nowrap; color: var(--ink-muted); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a:hover { color: var(--ink); }
.out { white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 2px; }
.out { margin-left: auto; }
@media (max-width: 760px) { .brand .label { display: none; } }

main { padding-block: var(--s6) var(--s7); }
.view[hidden] { display: none; }
.head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); }
.fact { display: grid; gap: 2px; }
.fact b { font-weight: 300; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.section { border-top: 1px solid var(--ink); padding-top: var(--s4); margin-top: var(--s6); }
.section > .label { display: block; margin-bottom: var(--s4); }
.cols { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 980px) { .cols.two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cols.half { grid-template-columns: 1fr 1fr; } }

/* Controlli */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 0; text-decoration: none; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn.sm { min-height: 32px; padding: 0 var(--s3); }
.btn:disabled { background: transparent; color: var(--ink-muted); border-color: var(--line-strong); cursor: not-allowed; }
.link { background: none; border: 0; padding: 0 0 2px; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link.quiet { color: var(--ink-muted); border-bottom-color: transparent; }
.link.quiet:hover { color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: transparent; padding: 0 var(--s3); min-height: 32px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.field { display: grid; gap: var(--s1); }
.field > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
input[type="text"], input[type="url"], input[type="date"], select, textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--paper); padding: 10px 12px; border-radius: 0; font-size: 15px; line-height: 1.45; }
textarea { min-height: 120px; resize: vertical; }
.grid2 { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { border: 1px solid var(--line-strong); background: transparent; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink-muted); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* Marcatori */
.tag { display: inline-block; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); white-space: nowrap; }
.tag.dash { border-style: dashed; border-color: var(--line-strong); color: var(--ink-muted); }
.tag.fill { background: var(--ink); color: var(--on-ink); }
.tag.none { border-color: transparent; color: var(--ink-muted); padding-left: 0; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); }

/* Anteprime */
.ph { position: relative; aspect-ratio: 3 / 4; background: var(--paper-alt); overflow: hidden; max-width: 100%; }
.ph img, .ph canvas { width: 100%; height: 100%; object-fit: cover; }
.ph .empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: var(--s1); padding: var(--s3); color: var(--ink-muted); }
.ph .badge { position: absolute; left: 8px; top: 8px; }
.ph .badge-r { position: absolute; right: 8px; top: 8px; }
.ph.typo { background: var(--paper-alt); color: var(--ink); }
.ph.typo .empty { color: var(--ink); place-content: end start; text-align: left; padding: 10px; gap: 2px; }
.ph.typo .empty .label { font-size: 9px; line-height: 13px; }
.ph.typo .empty .small { font-size: 11px; line-height: 1.3; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .ph.typo .empty .small { display: none; } }
.legend { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s3); font-size: 12px; color: var(--ink-muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 6px; vertical-align: -2px; }
.legend .lp::before { border: 1px dashed var(--line-strong); }
.legend .lu::before { background: var(--paper-alt); border: 1px solid var(--line); }
.ph.planned { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.gray .ph img { filter: grayscale(1); }

/* Overview */
.next { display: grid; gap: 0; }
.next a, .next button.rowbtn { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; width: 100%; }
.next .ph { width: 56px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 420px; }
.todo { display: grid; gap: var(--s2); }
.todo div { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.diag { display: grid; gap: var(--s1); margin-top: var(--s3); }
.diag div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); font-size: 13px; border-bottom: 1px solid var(--line); padding: 6px 0; }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.cal .dow { padding: var(--s2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { min-height: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s2); display: flex; flex-direction: column; gap: var(--s2); position: relative; min-width: 0; }
.day.out-m { background: var(--paper-alt); }
.day.over { outline: 2px solid var(--ink); outline-offset: -2px; }
.day .dn { display: flex; justify-content: space-between; align-items: center; }
.day .dn b { font-weight: 300; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.day.today .dn b { font-weight: 700; }
.day .add { opacity: 0; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; color: var(--ink-muted); }
.day:hover .add, .day:focus-within .add { opacity: 1; }
.ci { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; background: none; border: 0; padding: 0; text-align: left; cursor: grab; width: 100%; }
.ci .ph { width: 40px; }
.ci .t { font-size: 12px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.ci .m { font-size: 11px; line-height: 1.3; color: var(--ink-muted); }
.ci.dragging { opacity: .35; }
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; border-left: 0; }
  .cal .dow { display: none; }
  .day { min-height: 0; border-right: 0; flex-direction: row; align-items: flex-start; }
  .day.out-m.emptyday { display: none; }
  .day .dn { flex-direction: column; width: 48px; flex: none; }
  .day .add { opacity: 1; }
  .day .items { flex: 1; display: grid; gap: var(--s2); }
}
.day .items { display: grid; gap: var(--s2); }

/* Feed */
.feedwrap { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 1040px) { .feedwrap { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); } }
.phone { border: 1px solid var(--ink); padding: var(--s3) 0 0; max-width: 520px; width: 100%; background: var(--paper); }
.phone .prof { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s3) var(--s3); border-bottom: 1px solid var(--line); }
.phone .av { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.phone .av svg { width: 30px; fill: currentColor; }
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig .cell { position: relative; cursor: pointer; background: none; border: 0; padding: 0; }
.ig .cell.sel .ph { outline: 3px solid var(--ink); outline-offset: -3px; }
.ig .cell.drop .ph { opacity: .5; }
.ig .cell .ph { aspect-ratio: 3 / 4; }
.ig .cell .tagline { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.ig .cell .tagline .tag { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 520px) { .ig .cell .tagline .tag:not(:first-child) { display: none; } }
.ig .divider { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s2); }
.ig .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }
.balance { display: grid; gap: var(--s5); align-content: start; }
.obs { display: grid; gap: var(--s2); }
.obs div { border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.tone { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 240px; }
.tone span { aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.comps { display: grid; gap: 0; }
.comps > div { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); border-bottom: 1px solid var(--line); padding: var(--s2) 0; flex-wrap: wrap; }

/* Creative Direction */
.masonry { columns: 3 260px; column-gap: var(--s4); }
.mb { break-inside: avoid; margin-bottom: var(--s5); display: grid; gap: var(--s2); }
.mb img { width: 100%; height: auto; background: var(--paper-alt); }
.mb .cap { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.dropzone { border: 1px dashed var(--line-strong); padding: var(--s5) var(--s4); text-align: center; display: grid; gap: var(--s2); place-items: center; }
.dropzone.over { border-color: var(--ink); background: var(--paper-alt); }
.cards { display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { border-top: 1px solid var(--ink); padding-top: var(--s3); display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.card .acts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.refs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Performance */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--ink); }
table.t td { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t .r { text-align: right; }
.tw { overflow-x: auto; }
.bars { display: grid; gap: var(--s2); }
.bars .b { display: grid; grid-template-columns: 90px 1fr 70px; gap: var(--s3); align-items: center; font-size: 13px; }
.bars .b i { display: block; height: 14px; background: var(--ink); }
.bars .b i.lo { background: transparent; border: 1px solid var(--ink); }
.reads { display: grid; gap: var(--s3); }
.reads p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 300; max-width: 52ch; }

/* Scheda contenuto / modali */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: var(--scrim); }
.drawer[hidden] { display: none; }
.sheet { width: min(860px, 100%); height: 100%; overflow-y: auto; background: var(--paper); border-left: 1px solid var(--ink); padding: calc(var(--s5) + env(safe-area-inset-top, 0px)) max(var(--s5), env(safe-area-inset-right, 0px)) calc(var(--s6) + env(safe-area-inset-bottom, 0px)) var(--s5); }
@media (max-width: 700px) { .sheet { padding-left: 16px; padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.sheet .bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.sheet .split { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .sheet .split { grid-template-columns: 240px minmax(0, 1fr); } }
.sheet form { display: grid; gap: var(--s4); }
.sheet .foot { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; border-top: 1px solid var(--ink); padding-top: var(--s4); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--scrim); padding: max(16px, env(safe-area-inset-left, 0px)); }
.modal[hidden] { display: none; }
.modal .box { background: var(--paper); border: 1px solid var(--ink); padding: var(--s5); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; display: grid; gap: var(--s4); }
.modal .acts { display: flex; gap: var(--s3); justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--on-ink); padding: 12px 20px; font-size: 13px; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.notice { border: 1px solid var(--line-strong); padding: var(--s3); font-size: 13px; display: flex; gap: var(--s3); justify-content: space-between; align-items: center; flex-wrap: wrap; }
.stale { color: var(--ink-muted); font-size: 12px; }
.diff { display: grid; gap: 0; }
.diff div { display: grid; grid-template-columns: 1fr auto auto auto; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.blank { color: var(--ink-muted); padding: var(--s5) 0; max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) { .ph img { transition: opacity .3s; } }

.fileover, .ph.fileover { outline: 2px solid var(--ink) !important; outline-offset: -2px; }
.pvacts { display: grid; gap: var(--s2); justify-items: start; margin-top: var(--s3); }
.pvbox .ph { cursor: copy; }

/* ===== Shooting Planning — total black ===== */
.sp, .setmode { --k0: #0b0b0b; --k1: #111111; --k2: #1d1d1d; --k3: #242424; --k4: #2e2e2e; --kt: #f4f1ec; --kd: #9a9a9a; color: var(--kt); }
.sp { background: var(--k1); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: var(--s5) max(16px, env(safe-area-inset-left, 0px)) var(--s6); }
@media (min-width: 900px) { .sp { margin-inline: -40px; padding-inline: 40px; } }
.spdim { color: var(--kd); }
.sph { font-weight: 300; font-size: clamp(30px, 4vw, 48px); line-height: 1; margin: 4px 0 0; }
.sph2 { font-weight: 300; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; margin: 0; }
.sptop { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; border-bottom: 1px solid var(--k4); padding-bottom: var(--s4); }
.spsel { background: var(--k3); color: var(--kt); border: 1px solid var(--k4); width: auto; padding: 8px 12px; }
.spbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--s4); background: var(--kt); color: var(--k0); border: 1px solid var(--kt); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-decoration: none; border-radius: 0; }
.spbtn.ghost { background: transparent; color: var(--kt); border-color: var(--k4); }
.spbtn.ghost:hover { border-color: var(--kt); }
.spbtn.sm { min-height: 32px; padding: 0 12px; }
.spbtn:disabled { opacity: .35; cursor: default; }
.spbtn:focus-visible, .spchip:focus-visible, .setst:focus-visible, .splink:focus-visible { outline: 2px solid var(--kt); outline-offset: 2px; }
.splinkbtn { background: none; border: 0; color: var(--kd); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 4px 0; }
.splinkbtn:hover { color: var(--kt); }
.spchips { display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s4) 0 var(--s5); }
.spchip { display: grid; gap: 2px; text-align: left; background: var(--k2); color: var(--kt); border: 1px solid var(--k4); padding: 10px 14px; cursor: pointer; font-size: 13px; }
.spchip span { color: var(--kd); font-size: 12px; }
.spchip[aria-pressed="true"] { border-color: var(--kt); background: var(--k3); }
.spchip.add { color: var(--kd); align-content: center; border-style: dashed; }
.spchip.slim { padding: 6px 12px; font-size: 12px; display: inline-block; }
.sphead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.spprog { margin: var(--s4) 0 var(--s5); display: grid; gap: var(--s2); }
.spnums { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.spnums div { display: grid; }
.spnums b { font-weight: 300; font-size: 34px; line-height: 1; }
.spnums .label { color: var(--kd); }
.spbar { display: flex; height: 8px; background: var(--k3); gap: 2px; }
.spbar i { display: block; }
.spgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.spcard { background: var(--k2); padding: var(--s3); display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.spcard.dragging { opacity: .4; } .spcard.dropt { outline: 2px solid var(--kt); outline-offset: -2px; }
.spcardtop { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.spstsel { width: auto; border: 0; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.sppill { display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 10px; border: 0; white-space: nowrap; }
.spimgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spimg { position: relative; aspect-ratio: 3 / 4; background: var(--k3); display: grid; place-content: center; text-align: center; gap: 4px; color: var(--kd); overflow: hidden; cursor: pointer; max-width: 100%; }
.spimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spimg.over { outline: 2px solid var(--kt); outline-offset: -2px; }
.spimg .spcap { position: absolute; left: 6px; top: 6px; background: var(--k0); color: var(--kt); border-color: var(--k0); }
.spimgacts { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; opacity: 0; transition: opacity .15s; }
.spimg:hover .spimgacts, .spimg:focus-within .spimgacts { opacity: 1; }
@media (hover: none) { .spimgacts { opacity: 1; } }
.spimgacts .spbtn { min-height: 28px; padding: 0 8px; font-size: 10px; }
.spspec { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.spspec dt { color: var(--kd); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.spspec dd { margin: 0; overflow-wrap: anywhere; }
.splink { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; background: var(--k3); color: var(--kt); padding: 12px 14px; text-decoration: none; border-left: 0; }
.splink .label { color: var(--kd); }
.splink .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.splink:hover { background: var(--k4); }
.splink.empty { grid-template-columns: auto 1fr; }
.splink.big { padding: 18px; font-size: 16px; }
.spnote { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.spfoot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; border-top: 1px solid var(--k4); padding-top: var(--s2); }
.setmode { position: fixed; inset: 0; z-index: 45; background: var(--k0); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(var(--s6) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sethead { position: sticky; top: 0; z-index: 2; background: var(--k0); padding: var(--s3) 0; border-bottom: 1px solid var(--k4); display: grid; gap: var(--s2); }
.sethead .spprog { margin: 0; } .sethead .spnums b { font-size: 26px; } .sethead p { display: none; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.setlist { display: grid; gap: var(--s5); max-width: 900px; margin: var(--s4) auto 0; }
.setcard { background: var(--k1); padding: var(--s3); display: grid; gap: var(--s3); }
.setnum { font-weight: 300; font-size: 44px; line-height: 1; }
.setbrand { font-size: 20px; font-weight: 700; line-height: 1.25; }
.spimg.big { cursor: default; }
.setnote { font-size: 18px; line-height: 1.5; margin: 0; white-space: pre-wrap; }
.setstates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .setstates { grid-template-columns: repeat(4, 1fr); } }
.setst { min-height: 56px; background: transparent; color: var(--kt); border: 2px solid; font-size: 14px; font-weight: 700; cursor: pointer; }
.setst.on { box-shadow: inset 0 0 0 2px var(--k0); }
.mbimg { padding: 0; border: 0; background: none; cursor: pointer; width: 100%; }
.mbtypo { display: grid; gap: var(--s2); padding: var(--s4); background: var(--paper-alt); border: 0; text-align: left; width: 100%; cursor: pointer; min-height: 180px; align-content: end; color: var(--ink); font: inherit; }
#cdTabs, #pfRange { flex-wrap: wrap; max-width: 100%; }
.sppill.ver, .spstsel.ver { border: 1px dashed #8a8a8a; }
.refs .pick img, .refs .pick .mbtypo { width: 100%; height: 100%; object-fit: cover; min-height: 0; padding: 6px; }

.spmonths { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: var(--s4); }
.spmonth { background: transparent; color: var(--kd); border: 1px solid transparent; padding: 6px 10px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: baseline; }
.spmonth b { font-size: 10px; color: var(--kt); }
.spmonth[aria-pressed="true"] { color: var(--kt); border-color: var(--kt); }
.spmonth:hover { color: var(--kt); }
.splib .cap .small { color: var(--kt); }
.sp .mbtypo { background: var(--k3); color: var(--kt); }
.sp input[type="text"] { background: var(--k3); color: var(--kt); border-color: var(--k4); }

/* ===== Revisione grafica Shooting Planning: pagina nera, schede orizzontali ===== */
:root[data-sp] { --paper: #111111; --paper-alt: #1d1d1d; --ink: #f4f1ec; --ink-muted: #9a9a9a; --on-ink: #0b0b0b; --line: #2e2e2e; --line-strong: #8a8a8a; --focus: #f4f1ec; color-scheme: dark; }
:root[data-sp] .wrap { max-width: 1760px; }
:root[data-sp] main { padding-top: var(--s5); }
.sp { background: transparent; margin-inline: 0 !important; padding: 0 !important; }
.spgrid { grid-template-columns: 1fr; gap: var(--s5); }
/* Scheda contenuto: reference grande a sinistra, prodotti a destra, note a tutta larghezza */
.spcard { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s4) var(--s5); padding: var(--s4); background: var(--k2); align-items: start; }
.spcard > .spcardtop, .spcard > .spnotes, .spcard > .spfoot { grid-column: 1 / -1; }
.spcardtop .label { font-size: 13px; }
.spcard .spstsel, .spcard .sppill { font-size: 13px; padding: 8px 12px; }
.spref { display: grid; gap: var(--s2); min-width: 0; }
.spref .spimg { aspect-ratio: 4 / 5; width: 100%; }
.spcard .splink { padding: 14px 16px; font-size: 14px; }
.spright { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.spprodhead { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--k4); padding-bottom: var(--s2); }
.spprods { display: grid; gap: 6px; }
.spprod { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; background: var(--k3); padding: 8px; }
.spprodimg { width: 76px; aspect-ratio: 1; background: var(--k4); display: grid; place-content: center; color: var(--kd); font-size: 11px; position: relative; overflow: hidden; }
.spprodimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.spprodimg.big { width: 100%; }
.spprodtxt { display: grid; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.spprodtxt b { font-size: 14px; letter-spacing: .02em; }
.spprodtxt .splinkbtn { justify-self: start; font-size: 11px; }
.spprodacts { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; align-items: center; max-width: 230px; }
.spprodacts .splinkbtn { font-size: 11px; }
.spic { background: transparent; color: var(--kt); border: 1px solid var(--k4); width: 28px; height: 28px; cursor: pointer; font-size: 13px; }
.spic:disabled { opacity: .3; cursor: default; }
.spadd { justify-self: start; border-style: dashed; }
.spright > .spspec { grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 15px; border-top: 1px solid var(--k4); padding-top: var(--s3); margin-top: var(--s1); }
.spright > .spspec dt { font-size: 11px; padding-top: 3px; }
.spnotes { display: grid; gap: 6px; border-top: 1px solid var(--k4); padding-top: var(--s3); }
.spcard .spnote { font-size: 15px; line-height: 1.55; max-width: none; }
.setbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.setcard .spprod.ro { grid-template-columns: 110px minmax(0, 1fr); }
.setcard .spprodimg.big { width: 110px; }
.setcard .spprodtxt { font-size: 15px; } .setcard .spprodtxt b { font-size: 17px; }
/* Form prodotto */
.pimg { display: grid; gap: var(--s2); }
.pimgrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.ppreview { aspect-ratio: 1; background: var(--paper-alt); border: 1px solid var(--line); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; position: relative; overflow: hidden; padding: 6px; }
.ppreview img { max-width: 100%; max-height: 110px; object-fit: contain; background: #fff; }
.ppreview .spprodimg.big { width: 120px; }
.ppreview .tag { font-size: 9px; white-space: normal; text-align: center; }
.pimgside { display: grid; gap: var(--s2); min-width: 0; }
.pimgside .seg { flex-wrap: wrap; }
.pmode { display: grid; gap: var(--s2); }
.pdrop { border: 1px dashed var(--line-strong); padding: var(--s4); display: grid; gap: 4px; text-align: center; cursor: pointer; }
.pdrop.over { border-style: solid; background: var(--paper-alt); }
.pmsg.warn { color: var(--ink); border-left: 3px solid #b08a2e; padding-left: 8px; }
@media (max-width: 900px) {
  .spcard, .setbody { grid-template-columns: 1fr; }
  .spref .spimg { aspect-ratio: 4 / 5; max-width: 520px; }
}
@media (max-width: 600px) {
  .spcard { padding: var(--s3); gap: var(--s3); }
  .spprod { grid-template-columns: 60px minmax(0, 1fr); }
  .spprodimg { width: 60px; }
  .spprodacts { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .pimgrow { grid-template-columns: 1fr; }
  .ppreview { aspect-ratio: auto; min-height: 120px; }
  .setcard .spprod.ro { grid-template-columns: 80px minmax(0, 1fr); } .setcard .spprodimg.big { width: 80px; }
}
:root[data-sp] .modal { --k3: #242424; --k4: #2e2e2e; --kd: #9a9a9a; --kt: #f4f1ec; }
.ppreview { aspect-ratio: auto; min-height: 150px; align-content: center; } .ppreview .tag { position: static; }

/* ===== Editorial Calendar: Editorial View e scheda contenuto ===== */
.edcal .edtop { margin-bottom: 0; }
.edcal .seg { flex-wrap: wrap; }
.edhead { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0 var(--s2); }
.edweek { border-top: 1px solid var(--k4); padding: var(--s4) 0 var(--s5); }
.edweekhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.edgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s4); }
@media (min-width: 1100px) { .edgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.edcard { display: grid; gap: var(--s3); align-content: start; text-align: left; background: var(--k2); color: var(--kt); border: 1px solid transparent; padding: 0 0 var(--s3); cursor: pointer; font: inherit; }
.edcard:hover, .edcard:focus-visible { border-color: var(--k4); }
.edcard .ph { aspect-ratio: 4 / 5; width: 100%; background: var(--k3); }
.edcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.edcard .ph .empty { color: var(--kd); }
.edmeta { display: grid; gap: 4px; padding: 0 var(--s3); }
.eddate { color: var(--kd); }
.edbrand { font-size: 20px; font-weight: 700; line-height: 1.2; }
.edmeta .tags { margin-top: 6px; }
.edempty { border: 1px dashed var(--k4); background: transparent; color: var(--kd); padding: var(--s5); cursor: pointer; font: inherit; text-align: center; }
.edempty:hover { color: var(--kt); border-color: var(--kd); }
.copyrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: 6px; }
.copyrow .copybtn { min-height: 32px; }
.field.off textarea { opacity: .55; }
label.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: calc(-1 * var(--s2)) 0 var(--s2); cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--ink); }
/* scheda contenuto più ampia, anteprima protagonista */
.sheet { width: min(1120px, 100%); }
@media (min-width: 900px) { .sheet .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: var(--s6); } }
.sheet .pvbox .ph { aspect-ratio: 4 / 5; }
@media (max-width: 600px) { .edgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .edbrand { font-size: 15px; } .edmeta { padding: 0 8px; } .edcard .ph .empty .small { display: none; } }

/* ===== Feed Preview: griglia protagonista ===== */
.fdbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0 var(--s4); }
.fdbar .seg { flex-wrap: wrap; }
.fdgrid { max-width: 1080px; margin: 0 auto; }
.fdv .ig { gap: 4px; }
.fdv .ig .cell .ph { aspect-ratio: 3 / 4; background: var(--k3); }
.fdv .ig .cell .ph .empty { color: var(--kd); }
.fdv .ig .cell .tagline .tag { background: rgba(11, 11, 11, .78); color: #f4f1ec; border-color: transparent; font-size: 10px; }
.fdv .ig .cell .tagline .pubtag { background: rgba(244, 241, 236, .9); color: #0b0b0b; }
.fdv .ig .cell.moved .ph { outline: 2px solid #f4f1ec; outline-offset: -2px; }
.fdv .ig .cell.dragging { opacity: .4; }
.fdv .ig .cell.drop .ph { opacity: .5; }
.fdv .ig .cell.fileover .ph { outline: 2px dashed #f4f1ec; outline-offset: -2px; }
.fdv .ig .cell.pub { cursor: pointer; }
.fdv .legend { color: var(--kd); }
.fdv .legend .lp::before { border-color: #8a8a8a; }
.fdv .legend .lu::before { background: #f4f1ec; border-color: #f4f1ec; }
.fdprev { max-width: 240px; }
.fdprev .ph { aspect-ratio: 3 / 4; }
@media (max-width: 600px) { .fdv .ig { gap: 2px; } .fdv .ig .cell .tagline { left: 3px; bottom: 3px; } .fdv .ig .cell .tagline .tag { font-size: 9px; padding: 2px 4px; } }
.btn:disabled:hover { background: transparent; color: var(--ink-muted); }
.fdprev { max-width: 150px; }
.fdv .ig .cell .ph .empty { padding-bottom: 28px; }

/* ===== Versione compatta: Editorial Calendar e Feed Preview ===== */
.edcal .sptop, .fdv .sptop { padding-bottom: var(--s2); align-items: center; }
.edcal .sph, .fdv .sph { font-size: 26px; margin: 0; }
.edcal .sptop .label { display: none; }
.edcal .spmonths { margin-top: var(--s2); }
.edhead { margin: var(--s3) 0 2px; gap: var(--s2); }
.edhead .sph2 { font-size: 20px; }
#cal-hint { font-size: 12px; margin-bottom: var(--s3) !important; }
/* settimane affiancate quando lo schermo lo consente: tre contenuti per riga in ciascuna */
#edv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr)); gap: 0 var(--s5); align-items: start; }
.edweek { padding: var(--s2) 0 var(--s4); }
.edweekhead { margin-bottom: var(--s2); }
.edgrid { grid-template-columns: repeat(3, minmax(0, 180px)) !important; gap: 10px; justify-content: start; }
.edcard { gap: 6px; padding-bottom: 8px; }
.edcard .ph { aspect-ratio: 4 / 5; }
.edcard .ph .empty .small { display: none; }
.edcard .ph .empty .label { font-size: 9px; }
.edmeta { padding: 0 8px; gap: 2px; }
.eddate { font-size: 9px; }
.edbrand { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.edmeta .small { font-size: 11px; }
.edmeta .tags { margin-top: 3px; gap: 3px; }
.edmeta .tag { font-size: 9px; padding: 2px 5px; }
.edempty { padding: var(--s3); font-size: 12px; aspect-ratio: auto; }
@media (max-width: 600px) { .edgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; } .edbrand { font-size: 12px; } .edmeta .small { display: none; } }
/* Feed: griglia di 480 px, comandi a lato */
.fdv .sptop { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s2) var(--s5); }
.fdv .spmonths { margin-top: 0; }
.fdlayout { display: grid; grid-template-columns: minmax(0, 480px); gap: var(--s4) var(--s5); margin-top: var(--s3); align-items: start; }
@media (min-width: 820px) { .fdlayout { grid-template-columns: 480px minmax(200px, 300px); } }
.fdgrid { max-width: 480px; margin: 0; }
.fdv .ig { gap: 2px; }
.fdv .ig .cell .tagline { left: 4px; bottom: 4px; right: 4px; }
.fdv .ig .cell .tagline .tag { font-size: 9px; padding: 2px 4px; }
.fdv .ig .cell .ph .empty { padding-bottom: 0; }
.fdv .ig .cell .ph .empty .label { font-size: 9px; }
.fdside { display: grid; gap: var(--s3); align-content: start; justify-items: start; }
.fdside .seg { flex-wrap: wrap; }
.fdsave { display: grid; gap: var(--s2); border-bottom: 1px solid var(--k4); padding-bottom: var(--s3); width: 100%; }
.fdv .legend { display: grid; gap: 6px; margin: 0; }

/* ===== Shooting Planning compatto (solo #v-creative; la Modalità Set resta grande) ===== */
:root[data-view="creative"] { --paper: #000000; }
:root[data-view="creative"] body, :root[data-view="creative"] .top { background: #000000; }
#v-creative { max-width: 1000px; margin-inline: auto; font-size: 13px; }
#v-creative .sp { --k1: #000000; }
#v-creative .sptop { padding-bottom: var(--s2); align-items: center; gap: var(--s2) var(--s3); }
#v-creative .sph { font-size: 30px; margin: 2px 0 0; }
#v-creative .sph2 { font-size: 22px; }
#v-creative .spmonths { margin-top: var(--s2); }
#v-creative .spmonth { padding: 4px 8px; font-size: 11px; }
#v-creative .spsel { padding: 5px 10px; font-size: 13px; }
#v-creative .spchips { margin: var(--s2) 0 var(--s3); gap: 6px; }
#v-creative .spchip { padding: 6px 10px; font-size: 12px; }
#v-creative .sphead { gap: var(--s2); }
#v-creative .sphead .spdim { font-size: 13px; }
#v-creative .spbtn { min-height: 30px; padding: 0 10px; font-size: 10px; }
#v-creative .spprog { margin: var(--s2) 0 var(--s3); gap: 6px; }
#v-creative .spnums { gap: 4px var(--s4); }
#v-creative .spnums b { font-size: 22px; }
#v-creative .spnums .label { font-size: 9px; }
#v-creative .spprog p { margin: 0; font-size: 11px; }
#v-creative .spgrid { gap: var(--s3); }
#v-creative .spcard { grid-template-columns: 220px minmax(0, 1fr); gap: 8px var(--s4); padding: 10px 12px; }
#v-creative .spcardtop .label { font-size: 11px; }
#v-creative .spcard .spstsel, #v-creative .spcard .sppill { font-size: 11px; padding: 5px 8px; }
#v-creative .spref { gap: 4px; max-width: 220px; }
#v-creative .spref .spimg { aspect-ratio: 4 / 5; width: 100%; max-width: 220px; }
#v-creative .spimg .spcap { font-size: 8px; left: 4px; top: 4px; }
#v-creative .spimgacts .spbtn { min-height: 24px; font-size: 9px; padding: 0 6px; }
#v-creative .spimg > .label { font-size: 9px; } #v-creative .spimg > .small { font-size: 11px; }
#v-creative .spcard .splink { padding: 6px 8px; font-size: 12px; gap: 6px; }
#v-creative .spcard .splink .label { font-size: 9px; }
#v-creative .spcard .splink .u { font-size: 12px; }
#v-creative .spright { gap: 8px; }
#v-creative .spprodhead { padding-bottom: 4px; }
#v-creative .spprodhead .label { font-size: 10px; }
#v-creative .spprods { gap: 4px; }
#v-creative .spprod { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; padding: 5px; }
#v-creative .spprodimg { width: 72px; font-size: 10px; }
#v-creative .spprodtxt { font-size: 12px; line-height: 1.3; gap: 1px; }
#v-creative .spprodtxt b { font-size: 13px; }
#v-creative .spprodacts { gap: 2px 8px; max-width: 200px; }
#v-creative .spprodacts .splinkbtn { font-size: 10px; padding: 2px 0; }
#v-creative .spic { width: 24px; height: 24px; font-size: 12px; }
#v-creative .spadd { min-height: 28px; font-size: 10px; }
#v-creative .spright > .spspec { font-size: 13px; gap: 4px 14px; padding-top: 6px; margin-top: 0; }
#v-creative .spright > .spspec dt { font-size: 9px; padding-top: 2px; }
#v-creative .spright > p.small { font-size: 12px; }
#v-creative .spnotes { display: flex; gap: 10px; align-items: baseline; padding-top: 6px; }
#v-creative .spnotes .label { font-size: 9px; flex: none; }
#v-creative .spcard .spnote { font-size: 13px; line-height: 1.45; }
#v-creative .spfoot { padding-top: 6px; }
#v-creative .spfoot .spbtn.sm { min-height: 24px; width: 26px; padding: 0; }
#v-creative .spfoot .splinkbtn { font-size: 10px; }
@media (max-width: 600px) {
  #v-creative .spcard { grid-template-columns: 1fr; }
  #v-creative .spref, #v-creative .spref .spimg { max-width: 240px; }
  #v-creative .spprod { grid-template-columns: 64px minmax(0, 1fr); }
  #v-creative .spprodimg { width: 64px; }
  #v-creative .spnotes { display: grid; gap: 4px; }
}
#v-creative .spcard { gap: 6px var(--s4); padding: 8px 10px; }
#v-creative .spcardtop { min-height: 24px; }
#v-creative .spcard .spstsel, #v-creative .spcard .sppill { padding: 3px 8px; }
#v-creative .spcard .splink { padding: 5px 8px; }
#v-creative .spnotes { padding-top: 4px; }
#v-creative .spfoot { padding-top: 4px; }
#v-creative .spfoot .spbtn.sm { min-height: 22px; height: 22px; }
#v-creative .spfoot .splinkbtn { padding: 2px 0; }
#v-creative .spgrid { gap: 10px; }

/* Production Status: menu pieno colore, 185 × 36 px, maiuscolo */
#v-creative .spcard .spstsel { width: 185px; height: 36px; padding: 0 30px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 0; border-radius: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
#v-creative .spcard .spstsel.ver { border: 0; }
#v-creative .spcard .spstsel option { background: #1d1d1d; color: #f4f1ec; text-transform: uppercase; }
.sppill.ver { border: 0; }
/* foto prodotto sempre intere */
.spprodimg img, .ppreview .spprodimg img { object-fit: contain; background: #ffffff; }
/* pulizia immagini */
.cllist { display: grid; gap: 0; max-height: 240px; overflow-y: auto; border-top: 1px solid var(--line); }
.cllist > div { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.clout { display: grid; gap: var(--s2); }
#v-creative .spcard { row-gap: 4px; } #v-creative .spgrid { gap: 8px; }
.spprodimg .gone { font-size: 8px; line-height: 1.2; text-align: center; padding: 3px; text-transform: uppercase; letter-spacing: .06em; }

/* ===== Overview: homepage operativa compatta ===== */
:root[data-view="overview"] { --paper: #000000; }
:root[data-view="overview"] body, :root[data-view="overview"] .top { background: #000000; }
#v-overview { max-width: 1060px; margin-inline: auto; font-size: 13px; }
#v-overview .sp, #v-overview.sp { --k1: #000000; }
.ovv .sptop { padding-bottom: var(--s2); align-items: center; gap: var(--s2) var(--s4); justify-content: flex-start; }
.ovv .sph { font-size: 30px; margin: 0; min-width: 190px; }
.ovv .spmonths { margin-top: 0; }
.ovv .spmonth { padding: 4px 8px; font-size: 11px; }
.ovv .spsel { padding: 5px 10px; font-size: 13px; }
.ovkpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: var(--s3) 0; }
.ovk { display: grid; gap: 2px; background: var(--k2); color: var(--kt); padding: 10px 12px; text-decoration: none; border: 1px solid transparent; }
.ovk:hover, .ovk:focus-visible { border-color: var(--k4); }
.ovk b { font-weight: 300; font-size: 28px; line-height: 1.05; }
.ovk .label { font-size: 10px; }
.ovk .small { font-size: 11px; }
.ovgrid { display: grid; grid-template-columns: minmax(0, 1fr) 264px minmax(0, 1fr); gap: 8px; align-items: start; }
.ovbox { background: var(--k2); padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.ovhd { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); border-bottom: 1px solid var(--k4); padding-bottom: 6px; }
.ovhd .label { font-size: 10px; }
.ovlink { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kd); text-decoration: none; }
.ovlink:hover { color: var(--kt); }
.ovrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--k3); padding: 0 0 6px; color: var(--kt); text-align: left; cursor: pointer; font: inherit; }
.ovrow:last-child { border-bottom: 0; padding-bottom: 0; }
.ovrow .ph { width: 40px; aspect-ratio: 4 / 5; background: var(--k3); }
.ovrow .ph img { width: 100%; height: 100%; object-fit: cover; }
.ovrowtxt { display: grid; gap: 1px; min-width: 0; }
.ovrowtxt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovrowtxt .small { font-size: 11px; }
.ovrow .tag { font-size: 9px; padding: 2px 5px; }
.ovfeed .ovmini { display: block; width: 240px; max-width: 100%; }
.ovfeed .mini { max-width: 240px; gap: 2px; }
.ovfeed .mini .cell .ph { aspect-ratio: 3 / 4; background: var(--k3); }
.ovfeed .mini .cell .ph img { width: 100%; height: 100%; object-fit: cover; }
.ovshoot { display: grid; gap: 3px; color: var(--kt); text-decoration: none; border-bottom: 1px solid var(--k3); padding-bottom: 8px; }
.ovshoot:last-child { border-bottom: 0; padding-bottom: 0; }
.ovshootrow { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ovshootrow b { font-size: 13px; }
.ovbar { height: 4px; background: var(--k4); }
.ovbar i { display: block; height: 100%; background: #20603D; }
.ovtodo { margin-top: 8px; }
.ovtodos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ovtodo1 { display: grid; gap: 2px; color: var(--kt); text-decoration: none; padding: 6px 8px; background: var(--k3); border-left: 3px solid #E5C34B; }
.ovtodo1.ok { border-left-color: #20603D; }
.ovtodo1 span { font-size: 11px; color: var(--kd); }
.ovtodo1 b { font-size: 14px; font-weight: 700; }
.setbtn { background: none; border: 0; color: var(--ink-muted); cursor: pointer; padding: 4px 0; margin-left: auto; }
.setbtn:hover { color: var(--ink); }
.setsheet { width: min(560px, 100%); }
.setsheet .section { margin-top: var(--s5); }
@media (max-width: 900px) { .ovgrid { grid-template-columns: 1fr; } .ovtodos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ovkpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.setbtn + .out { margin-left: var(--s4); }
#v-overview.sp { margin-inline: auto !important; } .ovrow { width: 100%; }

/* avanzamento post-produzione (POST-PRODOTTO → READY TO PUBLISH) */
.spcard > .spsteps { grid-column: 1 / -1; }
.spsteps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spstep { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 10px 12px; border: 1px solid var(--kd, #9a9a9a); background: transparent; color: var(--kt, #f4f1ec); cursor: pointer; border-radius: 0; font: inherit; min-height: 48px; }
.spstep:hover { border-color: var(--kt, #f4f1ec); }
.spstep .spstepl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.spstep .spstepd { font-size: 12px; color: var(--kd, #9a9a9a); }
.spstep.on { background: var(--kt, #f4f1ec); color: var(--k0, #0b0b0b); border-color: var(--kt, #f4f1ec); }
.spstep.on .spstepd { color: var(--k0, #0b0b0b); opacity: .7; }
.spstep.wait { border-style: dashed; opacity: .6; }
@media (max-width: 480px) { .spsteps { grid-template-columns: 1fr; } }
