:root {
  --bg: #0a0a0b; --panel: #131315; --panel2: #1a1a1d; --line: #26262b; --line2: #34343b;
  --text: #ecebe8; --muted: #8e8e97; --dim: #62626b;
  --accent: #ff7a2f; --accent-ink: #1a0d04;
  --ok: #3ecf8e; --warn: #f5a524; --bad: #f0524f; --info: #6aa5f8;
  --c1: #4a8fe8; --c2: #de6a28; --c3: #9a78e6;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 15px; } h3 { font-size: 13px; color: var(--muted); font-weight: 500; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.num, td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12px; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Shell */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: #0d0d0f; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; letter-spacing: 0.02em; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-style: normal; font-weight: 800; font-size: 13px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); padding: 14px 10px 5px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.on { background: var(--panel2); color: var(--text); }
.nav .count { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 6px; }
.side-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.side-foot b { display: block; font-size: 13px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,10,11,.92); backdrop-filter: blur(8px); z-index: 20; min-height: 61px; }
.top h1 { font-size: 18px; margin-right: auto; }
.top .actions { display: flex; gap: 8px; flex-wrap: wrap; }
#view { padding: 20px 24px 60px; flex: 1; min-width: 0; }
.menu-btn { display: none; }
.demo-banner { background: #2b1a0c; color: #ffb27f; border-bottom: 1px solid #50300f; padding: 6px 24px; font-size: 12px; }

/* Controls */
.btn { appearance: none; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); border-radius: 9px; padding: 7px 12px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: #4a4a53; background: #212125; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.btn.primary:hover { background: #ff8c4a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { background: #0e0e10; border: 1px solid var(--line2); color: var(--text); border-radius: 9px; padding: 8px 10px; font: inherit; width: 100%; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 72px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
label.f small { display: block; color: var(--dim); margin-top: 3px; font-size: 11.5px; }
label.chk { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; padding: 6px 9px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 7px; font: inherit; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); }

/* Surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card, .section { margin-top: 16px; }
.card > h2 { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols .card + .card { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: block; }
a.kpi:hover { border-color: var(--line2); }
.kpi .l { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.kpi .v { font-family: var(--mono); font-size: 21px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.kpi.hero { border-color: #50300f; background: linear-gradient(180deg, #1c130c, var(--panel)); }
.banner { border: 1px solid var(--line2); border-left: 3px solid var(--warn); background: #1a160c; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.banner.bad { border-left-color: var(--bad); background: #1c0f0f; } .banner.info { border-left-color: var(--info); background: #0e1420; }
.banner a { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* Tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card .tw { border: 0; background: transparent; margin: 0 -6px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid #1c1c20; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #17171a; }
td.sticky, th.sticky { position: sticky; left: 0; background: var(--panel); z-index: 1; }
tfoot td { font-weight: 600; border-top: 1px solid var(--line2); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: #1d4a36; } .badge.warn { color: var(--warn); border-color: #51390e; }
.badge.bad { color: var(--bad); border-color: #55201f; } .badge.info { color: var(--info); border-color: #233a5c; }
.tag { font-size: 11px; color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; }

/* Modal, toast */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.66); z-index: 50; display: grid; place-items: start center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { max-width: 860px; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal .body { padding: 18px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.err { color: var(--bad); font-size: 13px; margin-bottom: 10px; }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 10px; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.bad { border-left-color: var(--bad); }
.pop { position: absolute; right: 24px; top: 56px; width: 340px; max-height: 60vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; z-index: 40; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.pop a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pop a:hover { background: var(--panel2); } .pop a.unread { border-left: 2px solid var(--accent); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 380px; padding: 26px; }
.auth h1 { font-size: 20px; margin-bottom: 4px; } .auth p { color: var(--muted); margin: 0 0 18px; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: #0e0e10; border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; font-size: 12px; white-space: nowrap; z-index: 5; display: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.wf td { padding: 6px 10px; } .wf .bar { height: 10px; border-radius: 3px; min-width: 2px; }

/* Tabs */
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 13px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; }
.tabs button.on { background: var(--panel2); color: var(--text); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #0f0f11; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol h3 { display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.kcard:hover { border-color: var(--line2); } .kcard b { display: block; margin-bottom: 4px; }

/* POD */
.pod { display: grid; grid-template-columns: 250px minmax(0, 1fr) 350px; gap: 0; margin: -20px -24px -60px; height: calc(100vh - 61px); }
.pod > * { min-height: 0; overflow-y: auto; }
.pod-left { border-right: 1px solid var(--line); padding: 14px 10px; }
.pod-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; margin-bottom: 4px; }
.pod-item:hover { background: var(--panel); } .pod-item.on { background: var(--panel2); }
.pod-item .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; font: 600 10px var(--mono); color: var(--muted); flex: none; }
.pod-item.on .ico { background: var(--text); color: #000; }
.pod-item b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.pod-mid { padding: 18px 22px; }
.pod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pod-head h2 { font-size: 19px; }
.pod-right { border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden !important; }
.notes { flex: 1; overflow-y: auto; padding: 14px; }
.note { padding: 10px 0 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.note.sel { background: #17130f; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.note .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 5px; flex-wrap: wrap; }
.tc { font-family: var(--mono); background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; color: var(--text); font-size: 12px; }
.note .reply { margin: 8px 0 0 10px; padding-left: 10px; border-left: 2px solid var(--line2); font-size: 13px; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; background: #0d0d0f; }
.stage { display: flex; justify-content: center; }
.vwrap { position: relative; display: inline-block; border-radius: 14px; overflow: hidden; background: #000; line-height: 0; max-width: 100%; }
.vwrap video { max-height: 58vh; max-width: 100%; display: block; }
.vwrap.pick { cursor: crosshair; outline: 2px dashed var(--accent); }
.pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.4); pointer-events: none; }
.timeline { position: relative; height: 26px; margin-top: 12px; cursor: pointer; }
.timeline .track { position: absolute; left: 0; right: 0; top: 14px; height: 5px; border-radius: 3px; background: var(--line2); }
.timeline .fill { position: absolute; left: 0; top: 14px; height: 5px; border-radius: 3px; background: var(--accent); }
.timeline .rng { position: absolute; top: 12px; height: 9px; background: rgba(255,122,47,.35); border-radius: 3px; }
.timeline .mk { position: absolute; top: 2px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent); border: 0; padding: 0; cursor: pointer; }
.timeline .mk.done { background: var(--ok); }
.pctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pctl .time { font-family: var(--mono); font-size: 13px; }
.kbd { font: 11px var(--mono); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.progress { height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
pre.script { white-space: pre-wrap; font: 13.5px/1.6 inherit; background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

@media (max-width: 1100px) {
  .pod { grid-template-columns: 1fr; height: auto; } .pod > * { overflow: visible; }
  .pod-left { border-right: 0; border-bottom: 1px solid var(--line); } .pod-right { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.7); }
  .menu-btn { display: inline-flex; }
  .top { padding: 10px 16px; } #view { padding: 16px 16px 60px; } .pod { margin: -16px -16px -60px; }
  .grid2 { grid-template-columns: 1fr; } .demo-banner { padding: 6px 16px; }
  .pop { right: 8px; left: 8px; width: auto; }
}

/* ───── Semplificazione v2 ───── */
.logo img { height: 34px; width: auto; display: block; }
.auth .logo img { height: 48px; margin: 0 auto 6px; } .auth .logo { justify-content: center; padding: 0 0 8px; }
.menu-btn { display: inline-flex; font-size: 17px; padding: 5px 10px; }
.shell.collapsed { grid-template-columns: minmax(0, 1fr); }
.shell.collapsed .side { display: none; }
.backdrop { display: none; }
.hero4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi.big-n { padding: 18px; } .kpi.big-n .l { font-size: 13px; } .kpi.big-n .v { font-size: 30px; margin-top: 8px; } .kpi.big-n .d { font-size: 12.5px; margin-top: 6px; }
.kpi.good { border-color: #1f5a40; background: linear-gradient(180deg, #0c1c15, var(--panel)); } .kpi.good .v, .kpi.good .d b { color: var(--ok); }
.kpi.badk { border-color: #6a2625; background: linear-gradient(180deg, #1f0f0f, var(--panel)); } .kpi.badk .v, .kpi.badk .d b { color: var(--bad); }
.kpi.mid { border-color: #5e430f; background: linear-gradient(180deg, #1c160a, var(--panel)); } .kpi.mid .v, .kpi.mid .d b { color: var(--warn); }
details.more > summary { cursor: pointer; font-weight: 600; list-style: none; } details.more > summary::before { content: "＋ "; color: var(--accent); } details.more[open] > summary::before { content: "－ "; }
details.more > summary::-webkit-details-marker { display: none; }
.btn.big { width: 100%; justify-content: center; padding: 13px 14px; font-size: 15px; font-weight: 650; border-radius: 11px; }
.btn.good { background: var(--ok); border-color: var(--ok); color: #04130c; } .btn.good:hover { background: #56dba0; }
.decide { display: grid; gap: 8px; margin-top: 12px; } .decide p { margin: 0; font-size: 12px; color: var(--muted); }
.steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #0f0f11; } .step.on { border-color: #1f5a40; background: #0c1c15; }
.step .amt { font: 600 22px var(--mono); margin: 4px 0 8px; } .step ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.meter { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; margin-top: 8px; } .meter i { display: block; height: 100%; border-radius: 4px; }
@media (max-width: 1000px) { .hero4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi.big-n .v { font-size: 24px; } }
@media (max-width: 820px) {
  .shell.collapsed .side { display: flex; }
  .backdrop.on { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; }
}
#toasts { right: auto; left: 50%; transform: translateX(-50%); align-items: center; }

/* Barra del video più grande e tratto in preparazione */
.timeline { height: 38px; margin-top: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.timeline .track, .timeline .fill { top: 22px; height: 8px; border-radius: 4px; }
.timeline .rng { top: 19px; height: 14px; background: rgba(255,122,47,.45); border-radius: 4px; }
.timeline .rng.draft { background: rgba(255,255,255,.28); outline: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.timeline .mk { top: 4px; width: 12px; height: 12px; margin-left: -6px; z-index: 3; }

/* Note in blu (gerarchia per stato) e scadenze in evidenza */
:root { --note: #4a8fe8; --note-soft: #8db8f7; }
.note { border-left: 3px solid transparent; padding-left: 10px; }
.note.st-open { border-left-color: var(--note); }
.note.st-fix { border-left-color: var(--note-soft); border-left-style: dashed; }
.note.st-done { border-left-color: var(--line2); } .note.st-done > div:nth-child(2) { color: var(--muted); }
.note.sel { background: #0e1726; margin: 0 -14px; padding-left: 21px; padding-right: 14px; }
.note .tc { background: #101d33; border-color: #27457a; color: #d3e4ff; } .note.st-done .tc { background: var(--panel2); border-color: var(--line2); color: var(--muted); }
.nbadge { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.nbadge.open { background: var(--note); border-color: var(--note); color: #04101f; font-weight: 600; }
.nbadge.fix { color: var(--note-soft); border-color: #27457a; }
.nbadge.done { color: var(--muted); border-color: var(--line2); }
.timeline .rng { background: rgba(74,143,232,.4); }
.timeline .mk, .timeline .mk.open { background: var(--note); }
.timeline .mk.fix { background: var(--bg); border: 2px solid var(--note-soft); }
.timeline .mk.done { background: #5a5a63; }
.pin { background: var(--note); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--text); white-space: nowrap; }
.due.none { font-weight: 400; color: var(--muted); border-color: transparent; padding-left: 0; }
.due.late { background: #b3312f; border-color: #b3312f; color: #fff; }
.due.soon { background: var(--warn); border-color: var(--warn); color: #1c1203; }
.pod-head .due { font-size: 13px; padding: 4px 10px; }

/* Azioni della nota selezionata: risposta su una riga, azioni su una barra separata */
.note-actions { margin-top: 10px; cursor: default; }
.reply-box { display: flex; gap: 0; border: 1px solid var(--line2); border-radius: 9px; background: #0b0f17; overflow: hidden; }
.reply-box:focus-within { border-color: var(--note); }
.reply-box input { border: 0; background: transparent; border-radius: 0; flex: 1; min-width: 0; padding: 8px 10px; }
.reply-box input:focus { border: 0; }
.reply-box .btn { border: 0; border-left: 1px solid var(--line2); border-radius: 0; background: transparent; color: var(--note-soft); font-weight: 600; padding: 0 14px; }
.reply-box .btn:hover { background: #101d33; }
.note-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); min-height: 36px; }
.note-bar .grow { flex: 1; }
.note .reply { margin: 8px 0 0; padding: 6px 0 0 10px; border-left: 2px solid #27457a; }

/* Evidenziazione "pulse" dell'elemento raggiunto da una notifica */
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(74,143,232,.85), inset 0 0 0 2px var(--note); } 70% { box-shadow: 0 0 0 14px rgba(74,143,232,0), inset 0 0 0 2px var(--note); } 100% { box-shadow: 0 0 0 0 rgba(74,143,232,0), inset 0 0 0 2px var(--note); } }
@keyframes pulseBg { 0%, 100% { background-color: rgba(74,143,232,.10); } 50% { background-color: rgba(74,143,232,.34); } }
.pulse { animation: pulseRing 1.1s ease-out 6; border-radius: 10px; background-color: rgba(74,143,232,.10); }
tr.pulse { animation: none; background: none; } tr.pulse td { animation: pulseBg 1.1s ease-in-out 6; box-shadow: inset 0 2px 0 var(--note), inset 0 -2px 0 var(--note); }
.note.pulse, .reply.pulse { animation: pulseRing 1.1s ease-out 6, pulseBg 1.1s ease-in-out 6; }
.pod-head.pulse { padding: 8px 10px; margin: -8px -10px 4px; }
@media (prefers-reduced-motion: reduce) { .pulse, tr.pulse td, .note.pulse, .reply.pulse { animation: none; outline: 2px solid var(--note); outline-offset: 2px; } }

/* Pannello notifiche: lette / da leggere */
.pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.pop-head .btn { margin-left: auto; }
.pop a { display: flex; gap: 10px; align-items: flex-start; border-left: 0; }
.pop a .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.pop a.unread { background: #0e1726; font-weight: 600; border-left: 0; } .pop a.unread .dot { background: var(--note); }
.pop a.unread .dim { color: var(--note-soft); font-weight: 400; }
.pop a.read { color: var(--muted); }

/* POD: la colonna del video sta tutta nello schermo, senza scorrimento */
.pctl .grow { flex: 1; }
@media (min-width: 1101px) {
  .pod-mid.fit { display: flex; flex-direction: column; overflow-y: auto; padding: 14px 22px 12px; }
  .pod-mid.fit .pod-head { margin-bottom: 8px; flex: none; } .pod-mid.fit .pod-head h2 { font-size: 17px; }
  .pod-mid.fit > .tabs { align-self: flex-start; margin-bottom: 10px !important; flex: none; }
  .pod-mid.fit #mid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .pod-mid.fit .stage { flex: 1; min-height: 140px; align-items: center; overflow: hidden; }
  .pod-mid.fit .vwrap { flex: none; }
  .pod-mid.fit .vwrap video { width: 100%; height: 100%; max-height: none; max-width: none; }
  .pod-mid.fit .timeline, .pod-mid.fit .pctl, .pod-mid.fit #verr { flex: none; }
  .pod-mid.fit .timeline { margin-top: 8px; } .pod-mid.fit .pctl { margin-top: 6px; flex-wrap: nowrap; }
}
.vwrap:fullscreen { width: 100vw !important; height: 100vh !important; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.vwrap:fullscreen video { max-height: 100vh; max-width: 100vw; width: auto; height: auto; }

@media (min-width: 1101px) {
  .pod { height: calc(100vh - var(--chrome, 61px)); }
  .pod-mid.fit .pctl { flex-wrap: wrap; row-gap: 6px; }
}
.pctl .time { white-space: nowrap; }
@media (max-width: 1500px) { .pctl #vol { display: none; } }

/* ───── POD v3: più spazio al video e alle note ───── */
.pod-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pod-bar .tabs { margin: 0; } .pod-bar .grow { flex: 1; } .pod-bar .due { font-size: 12.5px; padding: 3px 9px; }
.pod-bar.pulse { padding: 6px 8px; margin: -6px -8px 6px; }
@media (min-width: 1101px) {
  .pod-mid.fit { padding: 10px 18px 10px; }
  .pod-mid.fit .pod-bar { margin-bottom: 8px; flex: none; flex-wrap: nowrap; }
  .pod-mid.fit .stage { min-height: 160px; }
  .pod-mid.fit .timeline { margin-top: 4px; height: 34px; }
  .pod-mid.fit .timeline .track, .pod-mid.fit .timeline .fill { top: 19px; } .pod-mid.fit .timeline .rng { top: 16px; } .pod-mid.fit .timeline .mk { top: 2px; }
  .pod-mid.fit .pctl { margin-top: 2px; }
}
.vwrap { border-radius: 12px; }
.composer { padding: 10px 12px 12px; }
.cmp-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cmp-top .grow { flex: 1; } .cmp-top .btn.sm { padding: 3px 9px; }
.btn.sm.on { background: #101d33; border-color: var(--note); color: #d3e4ff; }
.cmp-box { display: flex; border: 1px solid var(--line2); border-radius: 10px; background: #0e0e10; overflow: hidden; }
.cmp-box:focus-within { border-color: var(--accent); }
.cmp-box textarea { border: 0; background: transparent; border-radius: 0; resize: none; min-height: 54px; flex: 1; padding: 8px 10px; }
.cmp-box .btn { border: 0; border-left: 1px solid var(--line2); border-radius: 0; background: var(--panel2); font-weight: 600; padding: 0 14px; }
.cmp-box .btn:hover { background: #26262b; }
.decide2 { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.decide2 .btn { flex: 1; justify-content: center; padding: 10px 12px; font-weight: 650; border-radius: 10px; }
.decide2 > span { flex: none; }
.notes { padding: 12px 14px 6px; }

.pod-bar { min-width: 0; } .pod-bar .tabs, .pod-bar .btn, .pod-bar select { flex: none; }
.pod-bar .due { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
.pod-bar .tabs button { padding: 5px 10px; }
.vtime { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.62); color: #fff; font: 12px/1 var(--mono); padding: 5px 7px; border-radius: 6px; pointer-events: none; font-variant-numeric: tabular-nums; }
.vtime .dim { color: rgba(255,255,255,.6); }
.pctl { flex-wrap: nowrap; }
@media (min-width: 1101px) { .pod-mid.fit .pctl { flex-wrap: nowrap; } }
.cmp-top .tc { font-size: 12.5px; padding: 3px 7px; }

/* POD: la barra delle schede resta nello stesso punto in tutte le schede e in tutti i progetti */
.pod-mid, .pod-mid.fit { padding: 10px 18px 10px; }
.pod-bar, .pod-mid.fit .pod-bar { margin-bottom: 10px; min-height: 38px; flex-wrap: nowrap; }
/* Le intestazioni delle tre colonne (Progetti · schede · Note) stanno sulla stessa linea */
.pod-left { padding-top: 12px; }
.pod-right .notes { padding-top: 18px; }

/* Riquadro di stato nell'elenco progetti */
.pod-item .ico, .pod-item.on .ico { width: 36px; height: 36px; border-radius: 10px; font: 700 13px var(--mono); background: transparent; border: 1.5px solid var(--tc, var(--line2)); color: var(--tc, var(--muted)); }
.pod-item .ico.mine { background: var(--tc); color: #0a0a0b; border-color: var(--tc); }
.ico.t-grey { --tc: #7a7a84; } .ico.t-blue { --tc: var(--note); } .ico.t-amber { --tc: var(--warn); } .ico.t-orange { --tc: var(--accent); }
.ico.t-green { --tc: var(--ok); } .ico.t-red { --tc: var(--bad); }

/* Note: due stati. Aperta = blu, fatta = verde */
.nbadge.done { color: #04130c; background: var(--ok); border-color: var(--ok); font-weight: 600; }
.note.st-done { border-left-color: var(--ok); border-left-style: solid; }
.timeline .mk.done { background: var(--ok); }

/* POD: play, barra di avanzamento e caricamento versione in blu */
.btn.blue { background: var(--note); border-color: var(--note); color: #04101f; font-weight: 650; }
.btn.blue:hover { background: #6aa5f8; border-color: #6aa5f8; }
.timeline .fill { background: var(--note); }
.timeline .rng.draft { background: rgba(255,255,255,.3); outline-color: var(--note-soft); }
.vwrap.pick { outline-color: var(--note); }
.cmp-box:focus-within { border-color: var(--note); }

/* Intestazione nota sempre su una riga: minutaggio a sinistra, stato fisso a destra, il nome si accorcia se serve */
.note .meta { flex-wrap: nowrap; gap: 6px; }
.note .meta .tc, .note .meta .tag, .note .meta .nbadge { flex: none; }
.note .meta .who { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note .meta .tc { font-size: 11.5px; padding: 2px 5px; letter-spacing: -0.02em; }

/* Importo rimborso: campo con selettore € / % */
.amt-box { display: flex; gap: 8px; align-items: stretch; } .amt-box input { flex: 1; min-width: 0; }
.amt-box .seg { flex: none; } .amt-box .seg button { min-width: 38px; font-weight: 600; }

/* Dashboard rimborsi */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-wrap svg { width: 132px; height: 132px; flex: none; }
.donut-legend { flex: 1; min-width: 150px; display: grid; gap: 7px; font-size: 13px; }
.donut-legend > div { display: grid; grid-template-columns: 12px 1fr auto 40px; gap: 8px; align-items: center; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 28px 78px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar > div { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--c1); border-radius: 5px; min-width: 4px; }
.btn.xdel { color: #fff; background: #b3312f; border-color: #b3312f; font-weight: 700; padding: 4px 9px; } .btn.xdel:hover { background: #cf3f3c; border-color: #cf3f3c; }

/* ───────── Bonus "da raggiungere": colori accesi, medaglie, barre che si riempiono ───────── */
:root { --gold: #ffd24a; --silver: #d9e0ee; --bronze: #f59a5c; --hot: #ff3d77; --violet: #8a5cff; }
.m-oro { --m: var(--gold); } .m-argento { --m: var(--silver); } .m-bronzo { --m: var(--bronze); } .m-blu { --m: var(--c1); }
.reward { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; border: 1px solid rgba(255,122,47,.45);
  background: radial-gradient(90% 130% at 0% 0%, rgba(255,122,47,.34), transparent 60%), radial-gradient(80% 120% at 100% 0%, rgba(138,92,255,.36), transparent 60%), radial-gradient(70% 90% at 60% 120%, rgba(255,61,119,.22), transparent 60%), #15121a;
  box-shadow: 0 10px 40px -18px rgba(255,122,47,.55); }
.reward.max { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,210,74,.35), 0 14px 50px -16px rgba(255,210,74,.6); }
.reward-top { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.ring { width: 124px; height: 124px; filter: drop-shadow(0 0 14px rgba(255,122,47,.45)); }
.ring-v { stroke-dashoffset: var(--to); animation: ringfill 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringfill { from { stroke-dashoffset: var(--c); } }
.reward-l { font-size: 13.5px; color: #e9dfd6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip-lv { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #1a0d04; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.reward-v { font: 800 52px/1.05 var(--mono); letter-spacing: -0.03em; margin: 6px 0 8px; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ffe58a, #ff9a3d 55%, #ff5c8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reward-d { font-size: 14.5px; color: #f1ece6; } .reward-d b { color: var(--gold); }
.reward-tot { text-align: right; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.12); min-width: 170px; }
.reward-tot .l { font-size: 12px; color: #c9c2d3; } .reward-tot .v { font: 700 26px var(--mono); margin-top: 2px; } .reward-tot .d { font-size: 11.5px; color: #a79fb3; }
.reward-tot .v2 { font: 700 18px var(--mono); color: var(--gold); margin-top: 2px; }
.reward-foot { margin: 14px 0 0; color: #a79fb3; }
.ladder { position: relative; margin-top: 22px; padding-top: 4px; }
.ladder .track { position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.ladder .track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--bronze), var(--gold)); box-shadow: 0 0 12px rgba(255,210,74,.7); animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { width: 0; } }
.lvs { position: relative; display: grid; }
.lv { display: grid; justify-items: end; gap: 3px; font-size: 13px; text-align: right; color: #a79fb3; }
.lv .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #221d2b; border: 2px solid rgba(255,255,255,.16); filter: grayscale(1); opacity: .75; }
.lv.on { color: #fff; } .lv.on .dot { filter: none; opacity: 1; border-color: var(--m); background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%), color-mix(in srgb, var(--m) 32%, #1b1622); box-shadow: 0 0 18px color-mix(in srgb, var(--m) 70%, transparent); }
.lv.on .num { color: var(--m); font-weight: 700; }
.lv.next { color: #f1ece6; } .lv.next .dot { filter: none; opacity: 1; border-color: var(--accent); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,47,.7); } 50% { box-shadow: 0 0 0 10px rgba(255,122,47,0); } }
.needs { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 7px; font-size: 14px; }
.needs > div { display: flex; gap: 10px; align-items: baseline; } .needs i { font-style: normal; font-weight: 800; width: 16px; }
.needs .ok { color: #b9f3d6; } .needs .ok i { color: var(--ok); } .needs .todo i { color: var(--accent); } .needs .todo b { color: var(--gold); }
.spark { position: absolute; font-style: normal; font-size: 22px; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.spark.s1 { top: 12px; right: 30%; } .spark.s2 { bottom: 26px; left: 38%; animation-delay: .8s; } .spark.s3 { top: 16px; right: 16px; animation-delay: 1.4s; font-size: 26px; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.15) rotate(8deg); } }

.vk { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.vkpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.vkpi .l { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; } .vkpi .l span { color: var(--muted); font-weight: 400; }
.vkpi .v { font: 700 30px var(--mono); margin-top: 6px; letter-spacing: -0.02em; } .vkpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vbar { position: relative; height: 12px; border-radius: 6px; background: var(--line2); margin-top: 12px; }
.vbar i { display: block; height: 100%; border-radius: 6px; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.vbar.warm i { background: linear-gradient(90deg, #ff7a2f, #ffd24a); box-shadow: 0 0 10px rgba(255,170,60,.55); }
.vbar.cool i { background: linear-gradient(90deg, #8a5cff, #4ab8ff); box-shadow: 0 0 10px rgba(110,140,255,.55); }
.vbar.sm { height: 6px; margin-top: 8px; } .vbar.sm i { box-shadow: none; }
.vbar .tick { position: absolute; top: -4px; width: 3px; height: 20px; border-radius: 2px; background: var(--m); transform: translateX(-1px); opacity: .55; } .vbar .tick.hit { opacity: 1; box-shadow: 0 0 8px var(--m); }
.vmarks { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); } .vmarks .hit { color: var(--text); font-weight: 600; }

.yhero { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.yh { border-radius: 16px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.yh .l { font-size: 13px; color: #d8d2e0; display: flex; justify-content: space-between; gap: 8px; align-items: center; } .yh .v { font: 800 30px var(--mono); letter-spacing: -0.02em; margin-top: 8px; } .yh .d { font-size: 12px; color: #a79fb3; margin-top: 8px; }
.yh.main { border-color: rgba(255,122,47,.5); background: radial-gradient(110% 150% at 0% 0%, rgba(255,122,47,.38), transparent 62%), #17120f; } .yh.main .v { font-size: 38px; color: #fff; }
.yh.bonus { border-color: rgba(255,210,74,.45); background: radial-gradient(110% 150% at 100% 0%, rgba(255,210,74,.22), transparent 62%), #16140d; } .yh.bonus .v { color: var(--gold); }
.yh.goal { border-color: rgba(138,92,255,.5); background: radial-gradient(110% 150% at 100% 0%, rgba(138,92,255,.34), transparent 62%), #14121b; } .yh.goal .v { color: #c9b6ff; }
.streak { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,122,47,.2); color: #ffb787; border: 1px solid rgba(255,122,47,.5); white-space: nowrap; }
.mgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mt { border-radius: 14px; padding: 13px; border: 1px solid var(--line); background: var(--panel); min-height: 124px; }
.mt-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .mt-h span { font-size: 20px; line-height: 1; }
.mt-v { font: 700 19px var(--mono); margin-top: 8px; letter-spacing: -0.02em; } .mt-b { font-size: 12px; color: var(--muted); margin-top: 3px; } .mt-s { font-size: 11px; color: var(--dim); margin-top: 7px; }
.mt.won { border-color: color-mix(in srgb, var(--m) 55%, transparent); background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--m) 26%, transparent), transparent 62%), var(--panel); } .mt.won .mt-b b { color: var(--m); } .mt.won .mt-h b { color: var(--text); }
.mt.now { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,122,47,.4), 0 8px 30px -12px rgba(255,122,47,.7); } .mt.now .mt-h b { color: var(--accent); } .mt.now .mt-s { color: #ffb787; }
.mt.fut { border-style: dashed; background: transparent; } .mt.fut .mt-v { color: var(--muted); } .mt.fut .mt-b b { color: #c9b6ff; } .mt.off { opacity: .45; min-height: 0; }
.step[class*="m-"] { border-color: color-mix(in srgb, var(--m) 35%, var(--line)); } .step[class*="m-"] .amt { color: var(--m); }
.step[class*="m-"].on { border-color: var(--m); background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--m) 22%, transparent), transparent 60%), #0f0f11; box-shadow: 0 0 22px -8px var(--m); }
@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .yhero { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .reward-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .ring { width: 96px; height: 96px; } .reward-v { font-size: 38px; } .reward-tot { grid-column: 1 / -1; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv { font-size: 11.5px; } .lv .dot { width: 38px; height: 38px; font-size: 18px; } .ladder .track { top: 20px; } .hbar { grid-template-columns: 110px 1fr 24px 70px; } }
@media (prefers-reduced-motion: reduce) { .ring-v, .ladder .track i, .vbar i, .lv.next .dot, .spark { animation: none; } }
.mt.off { align-self: start; }

/* ───────── Versione più contenuta: niente emoji, meno bagliori, colore solo dove serve ───────── */
.reward { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line2); border-left: 3px solid var(--m, var(--accent)); box-shadow: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--m, var(--accent)) 11%, var(--panel)), var(--panel) 60%); }
.reward.max { border-color: color-mix(in srgb, var(--gold) 45%, var(--line2)); border-left-color: var(--gold); box-shadow: none; }
.reward-top { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; }
.ring { width: 96px; height: 96px; filter: none; }
.reward-l { color: var(--muted); font-size: 13px; }
.chip-lv { background: color-mix(in srgb, var(--m, var(--muted)) 16%, transparent); color: var(--m, var(--muted)); border: 1px solid color-mix(in srgb, var(--m, var(--muted)) 45%, transparent); font-weight: 600; }
.reward-v { font-size: 36px; font-weight: 700; margin: 4px 0 6px; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.reward-d { font-size: 13.5px; color: var(--muted); } .reward-d b { color: var(--text); }
.reward-tot { border-left-color: var(--line); min-width: 150px; } .reward-tot .l { color: var(--muted); } .reward-tot .v { font-size: 22px; } .reward-tot .d { color: var(--dim); }
.reward-tot .v2 { font-size: 16px; color: var(--m, var(--accent)); } .reward-tot .v2.plain { color: var(--text); }
.reward-foot { color: var(--dim); margin-top: 12px; }
.ladder { margin-top: 18px; } .ladder .track { top: 17px; height: 4px; background: var(--line2); } .ladder .track i { background: linear-gradient(90deg, var(--bronze), var(--m, var(--bronze))); box-shadow: none; }
.lv { color: var(--muted); font-size: 12.5px; }
.lv .dot { width: 30px; height: 30px; font: 700 13px var(--mono); background: var(--panel2); border: 2px solid var(--line2); color: var(--muted); filter: none; opacity: 1; box-shadow: none; }
.lv.on .dot { background: var(--m); border-color: var(--m); color: #15120c; box-shadow: none; }
.lv.next .dot { border-color: var(--accent); color: var(--accent); animation: none; }
.needs { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.22); border-color: var(--line); font-size: 13.5px; } .needs .ok { color: var(--muted); } .needs .todo b { color: var(--text); }
.vkpi .v { font-size: 24px; } .vbar { height: 8px; } .vbar.warm i { background: var(--accent); box-shadow: none; } .vbar.cool i { background: var(--c1); box-shadow: none; }
.vbar .tick { top: -3px; height: 14px; width: 2px; } .vbar .tick.hit { box-shadow: none; }
.mdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--m); margin-right: 6px; flex: none; }
.vmarks span { display: inline-flex; align-items: center; }
.mt.won { background: var(--panel); border-color: color-mix(in srgb, var(--m) 40%, var(--line)); } .mt.now { box-shadow: none; } .mt-h .mdot { margin: 0; }
.step[class*="m-"].on { background: #0f0f11; box-shadow: none; }
.streak { background: transparent; border-color: var(--line2); color: var(--muted); font-weight: 500; margin-left: 6px; }
.ystrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ystrip > div { padding: 12px 16px; display: grid; gap: 2px; border-left: 1px solid var(--line); } .ystrip > div:first-child { border-left: 0; }
.ystrip span { font-size: 12px; color: var(--muted); } .ystrip b { font: 600 17px var(--mono); } .ystrip b.g { color: var(--gold); } .ystrip b.p { color: #b7a4ee; } .ystrip small { font-size: 11.5px; color: var(--dim); }
@media (max-width: 760px) { .reward-top { grid-template-columns: 80px minmax(0, 1fr); } .ring { width: 80px; height: 80px; } .reward-v { font-size: 30px; } .reward-tot { border-top-color: var(--line); display: flex; gap: 18px; flex-wrap: wrap; } .reward-tot .l { margin-top: 0 !important; }
  .ystrip { grid-template-columns: 1fr; } .ystrip > div { border-left: 0; border-top: 1px solid var(--line); } .ystrip > div:first-child { border-top: 0; } }
.mt.now, .mt.now.won { border-color: var(--accent); }

/* Task in Home */
.row.task { padding: 10px 0; border-top: 1px solid var(--line); gap: 10px; align-items: center; flex-wrap: wrap; }
.row.task .task-t { flex: 1; min-width: 180px; } .row.task.done .task-t { color: var(--muted); text-decoration: line-through; }
.tag.late { color: var(--bad); border-color: #6a2625; }
@media (max-width: 760px) { .reward-tot { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 4px 14px; } .reward-tot .d { display: none; } }

.btn.tcheck { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; } .btn.tcheck i { width: 15px; height: 15px; border: 2px solid var(--muted); border-radius: 4px; display: block; }
.btn.tcheck:hover { border-color: var(--ok); color: var(--ok); } .btn.tcheck:hover i { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 25%, transparent); }
.row.task .tick { font-style: normal; color: var(--ok); font-weight: 700; width: 18px; text-align: center; }

/* Obiettivi dell'editor dentro il riquadro del mese */
.egs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 18px; }
.eg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: rgba(0,0,0,.22); }
.eg.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.eg-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .eg-h span { color: var(--muted); font-size: 12px; } .eg.on .eg-h span { color: var(--ok); }
.eg-v { font: 700 22px var(--mono); margin-top: 6px; } .eg-v small { font: 400 12px -apple-system, sans-serif; color: var(--muted); }
.eg-b { font-size: 12px; color: var(--muted); margin-top: 8px; } .eg.on .eg-b b { color: var(--ok); } .eg.on .vbar.warm i { background: var(--ok); }

.btn.extlink { border-color: #27457a; color: #d3e4ff; background: #101d33; } .btn.extlink:hover { border-color: var(--note); }

/* Clip di un progetto (H1B40, H2B40…) */
.clipbar { display: flex; gap: 8px; align-items: center; flex: none; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.clip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel); font-size: 13px; white-space: nowrap; flex: none; }
.clip:hover { border-color: var(--muted); } .clip.on { border-color: var(--note); background: #101d33; }
.clip i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); } .clip.ok i { background: var(--ok); } .clip.todo i { background: var(--note); }
.clip span { color: var(--muted); font-family: var(--mono); font-size: 12px; } .clip em { font-style: normal; font-size: 11.5px; color: var(--muted); } .clip.ok em { color: var(--ok); } .clip.todo em { color: var(--note-soft); }
/* Barra in basso delle note: se i pulsanti non ci stanno vanno a capo invece di uscire dal riquadro */
.decide2 { flex-wrap: wrap; min-width: 0; } .decide2 .btn { white-space: nowrap; flex: 1 1 auto; } .decide2 .btn.ghost { flex: 0 0 auto; padding: 10px 8px; }
.decide2 > span { flex: 1 1 auto; }

/* Cinque riquadri in alto (con "Costi e fatture") */
.hero4.hero5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hero5 .kpi.big-n { padding: 16px; } .hero5 .kpi.big-n .v { font-size: 25px; }
@media (max-width: 1350px) { .hero4.hero5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .hero4.hero5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Task completate: chiuse di base, si aprono con un clic */
.tdone { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.tdone > summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; }
.tdone > summary::-webkit-details-marker { display: none; }
.tdone > summary::before { content: '▸'; display: inline-block; transition: transform .15s; } .tdone[open] > summary::before { transform: rotate(90deg); }
.tdone > summary:hover { color: var(--text); } .tdone[open] > summary { margin-bottom: 4px; }

/* Intestazione dell'elenco richieste di rimborso */
.reqhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.reqhead p { margin: 3px 0 0; } .reqhead .seg { flex-wrap: wrap; }

/* Scelta dei giorni di lavoro */
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label { cursor: pointer; } .daypick input { position: absolute; opacity: 0; pointer-events: none; }
.daypick span { display: block; padding: 7px 12px; border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); font-size: 13px; user-select: none; }
.daypick input:checked + span { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--text); font-weight: 600; }
.daypick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#whbox { margin: 4px 0 12px 26px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.daypick { margin-top: 6px; } #whbox .f { margin-bottom: 12px; }

/* Numeri di controllo sotto la scheda dell'operatore (solo Owner) */
.ctrl { margin-top: 10px; padding: 9px 12px; border: 1px dashed var(--line2); border-radius: 9px; font-size: 13px; color: var(--muted); display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: baseline; }
.ctrl > span:first-child { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin-right: 4px; } .ctrl b { color: var(--text); font-family: var(--mono); } .ctrl i { font-style: normal; color: var(--dim); }

.slabox { border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px 4px; margin-bottom: 14px; } .slabox .f { margin-bottom: 6px; } .slabox p { margin: 0 0 8px; }

/* Barre dei livelli: tacche più leggibili, CSAT bloccato finché non ci sono abbastanza voti */
.vbar { overflow: visible; } .vbar i { min-width: 0; }
.vbar .tick { top: -4px; height: 16px; width: 3px; border-radius: 2px; opacity: .9; outline: 2px solid var(--panel); } .vbar .tick.hit { opacity: 1; }
.vbar.off i { background: var(--dim); } .vbar.off .tick { opacity: .45; }
.vmarks span.hit { color: var(--ok); }
.vkpi .d b { color: var(--text); }
.vkpi.locked .v { color: var(--muted); }
.lockmsg { margin-top: 10px; padding: 9px 11px; border: 1px dashed var(--line2); border-radius: 9px; font-size: 12.5px; color: var(--muted); } .lockmsg b { color: var(--text); }
.lockmsg .votes { height: 5px; border-radius: 3px; background: var(--line2); margin-top: 8px; overflow: hidden; } .lockmsg .votes i { display: block; height: 100%; background: var(--c1); border-radius: 3px; }
h2 .chip-lv { font-size: 12px; padding: 3px 10px; border-radius: 99px; }

/* Tempo tipico di prima risposta rispetto al limite */
.vbar.good i { background: var(--ok); } .vbar.late i { background: var(--warn); }
.vbar .tick.lim, .mdot.lim { background: var(--text); } .vbar .tick.lim { opacity: 1; }
.vnote { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; } .vnote b { color: var(--text); }
.vkpi .d b.pos { color: var(--ok); } .vkpi .d b.neg { color: var(--warn); }

/* Schede compensi (CS ed editor): titolo, cifra, dettaglio e barra sulla stessa riga in tutti i riquadri,
   anche quando un titolo va a capo. Ogni riquadro usa le righe della griglia che lo contiene. */
.kalign { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; align-items: stretch; }
.kalign .kpi { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; margin-bottom: 12px; align-content: start; }
.kalign .kpi .l { align-self: start; }
.kalign .kpi .v { margin-top: 8px; align-self: end; font-size: 24px; }
.kalign .kpi .d { margin-top: 6px; align-self: start; }
.kalign .kpi .meter { align-self: end; margin-top: 10px; }
@media (max-width: 1100px) { .kalign { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kalign { grid-template-columns: 1fr; } }

/* Barra del periodo: la scorciatoia attiva è evidenziata; se le date sono scelte a mano si evidenziano le date */
.pseg button.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.pdates { display: inline-flex; align-items: center; gap: 8px; } .pdates.on input { border-color: var(--accent); }
.pinfo { white-space: nowrap; }

/* Finestra "spesa del giorno" */
.adrows { display: grid; gap: 8px; margin-bottom: 10px; max-height: 52vh; overflow-y: auto; }
.adrow { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.adrow input { text-align: right; font-family: var(--mono); }
.adrow.gone { opacity: .5; border-style: dashed; } .adrow.gone .adname { text-decoration: line-through; }

/* Prodotti e offerte: azioni su una riga, prezzi affiancati */
.rowacts { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

/* Un po' di colore: pulsante principale di riga, spedizione pagata dal cliente, costi precedenti eliminabili */
.btn.soft { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: #ffb787; font-weight: 600; }
.btn.soft:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); color: #ffd0b0; }
.tag.paid { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.tag.oldcost { display: inline-flex; align-items: center; gap: 6px; color: var(--note-soft); border-color: #27457a; background: #101d33; }
.tag.oldcost button { all: unset; cursor: pointer; color: var(--muted); font-size: 11px; line-height: 1; padding: 2px 3px; border-radius: 4px; }
.tag.oldcost button:hover { color: #fff; background: #b3312f; } .tag.oldcost button:focus-visible { outline: 2px solid var(--accent); }

/* Variazione rispetto al periodo di confronto, sotto i riquadri della Home */
.kpi .cmp { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.kpi .cmp b { font-family: var(--mono); font-weight: 600; } .kpi .cmp .up { color: var(--ok); } .kpi .cmp .down { color: var(--bad); } .kpi .cmp .flat { color: var(--text); }
.kpi.good .cmp b.down { color: var(--bad); } .kpi.good .cmp b.flat, .kpi.badk .cmp b.flat, .kpi.mid .cmp b.flat { color: var(--text); } .kpi.badk .cmp b.up { color: var(--ok); } .kpi.mid .cmp b.up { color: var(--ok); } .kpi.mid .cmp b.down { color: var(--bad); }

/* ───────── Riquadri riassuntivi (Home e Andamento): tutto allineato per riga ─────────
   Ogni riquadro usa le righe della griglia: titolo, cifra, dettaglio e variazione stanno alla stessa altezza in tutti. */
.hero4.hero5 { row-gap: 0; align-items: stretch; }
.hero5 .kpi.big-n { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; margin-bottom: 12px; padding: 16px 16px 14px; transition: border-color .15s, transform .15s; }
.hero5 a.kpi.big-n:hover { border-color: var(--muted); transform: translateY(-1px); }
.hero5 .kpi.big-n .l { font-size: 12.5px; letter-spacing: .01em; }
.hero5 .kpi.big-n .v { font-size: 26px; margin-top: 8px; line-height: 1.15; white-space: nowrap; }
.hero5 .kpi.big-n .d { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.hero5 .kpi .cmp { align-self: end; margin-top: 12px; padding-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font: 600 12px var(--mono); white-space: nowrap; }
.cmp .pill.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.cmp .pill.down { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.cmp .pill.flat { color: var(--text); background: var(--panel2); }
.cmp-vs { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .sechead h2 { margin: 0; }
@media (max-width: 1350px) { .hero5 .kpi.big-n .v { font-size: 24px; } }
/* Schermi medi e stretti: nessun buco a destra. Tre riquadri sopra e due più larghi sotto; sotto i 1000px l'ultimo occupa tutta la riga. */
@media (min-width: 1001px) and (max-width: 1350px) {
  .hero4.hero5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero5 .kpi.big-n:nth-child(-n+3) { grid-column: span 2; } .hero5 .kpi.big-n:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1000px) { .hero5 .kpi.big-n:nth-child(5):last-child { grid-column: 1 / -1; } }

/* Ordini interessati e prodotti del bundle */
a.tag.ordlink { color: var(--note-soft); border-color: #27457a; text-decoration: none; } a.tag.ordlink:hover { background: #101d33; color: #fff; }
.ordmore { margin-top: 6px; } .ordmore > summary { cursor: pointer; font-size: 12px; color: var(--muted); } .ordmore .chips { margin-top: 6px; }
.comprows { display: grid; gap: 6px; margin-top: 6px; }
.comprow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; } .comprow input { text-align: center; }

/* Un elemento con l'attributo "hidden" resta nascosto anche se una classe gli dà display:flex o grid */
[hidden] { display: none !important; }
/* Prodotto digitale */
.tag.digital { color: #c9b6ff; border-color: rgba(138,92,255,.5); background: rgba(138,92,255,.12); }
.digtoggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12.5px; color: var(--muted); white-space: nowrap; } .digtoggle input { accent-color: #8a5cff; width: 15px; height: 15px; }

/* Giorno per giorno: numeri chiave su sfondo colorato (stessa scala per ROAS e margine) */
.cellpill { display: inline-block; min-width: 58px; text-align: center; padding: 3px 9px; border-radius: 7px; font: 600 13px var(--mono); }
.cellpill.good { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.cellpill.mid { color: var(--warn); background: color-mix(in srgb, var(--warn) 17%, transparent); }
.cellpill.bad { color: #ff7b78; background: color-mix(in srgb, var(--bad) 20%, transparent); }
.mnet.good { color: var(--ok); } .mnet.mid { color: var(--warn); } .mnet.bad { color: #ff7b78; }
.dlegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: var(--muted); align-items: center; } .dlegend .cellpill { min-width: 0; font: 600 11.5px inherit; margin-right: 6px; }

/* Giorno per giorno: sul computer scorre solo in verticale, con l'intestazione che resta in vista.
   Sugli schermi stretti torna lo scorrimento laterale, altrimenti le colonne non ci starebbero. */
.dayscroll { max-height: 420px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.dayscroll .tw { overflow: visible; border: 0; border-radius: 0; }
.dayscroll th { position: sticky; top: 0; background: var(--panel); z-index: 2; }
.dayscroll td, .dayscroll th { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
@media (max-width: 1100px) { .dayscroll { overflow-x: auto; } }
/* …e la tabella deve starci tutta: intestazioni su due righe se serve, celle più strette */
.dayscroll th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.dayscroll td, .dayscroll th { padding-left: 8px; padding-right: 8px; }
.dayscroll td:first-child, .dayscroll th:first-child { padding-left: 14px; } .dayscroll td:last-child, .dayscroll th:last-child { padding-right: 14px; }
.dayscroll .cellpill { min-width: 50px; padding: 3px 7px; }
@media (max-width: 1250px) { .dayscroll { overflow-x: auto; } }
.dayscroll .tw { margin: 0 !important; width: auto; }

/* Barra del periodo: menu dei mesi e pulsante Applica per le date scelte a mano */
.psel { width: auto; padding: 7px 10px; } .psel.on { border-color: var(--accent); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.pdates [data-apply] { margin-left: 2px; }

/* Sei riquadri riassuntivi (con "Margine pre-costi"). Il dettaglio sta sempre su una riga: l'altezza non cambia tra un periodo e l'altro. */
.hero4.hero5.hero6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hero6 .kpi.big-n:nth-child(n) { grid-column: auto; }
.hero6 .kpi.big-n { padding: 15px 15px 13px; } .hero6 .kpi.big-n .v { font-size: 24px; }
.hero6 .kpi.big-n .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero6 .kpi .cmp { flex-wrap: nowrap; overflow: hidden; }
@media (max-width: 1500px) { .hero4.hero5.hero6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hero4.hero5.hero6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Costi e fatture: tre riquadri a tutta larghezza come nelle altre pagine, stato vuoto con invito all'azione */
.hero4.costhero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.costhero .kpi.big-n { padding: 16px; } .costhero .kpi.big-n .v { font-size: 26px; white-space: nowrap; } .costhero .kpi.big-n .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 800px) { .hero4.costhero { grid-template-columns: 1fr; } }
.emptycta { border: 1px dashed var(--line2); border-radius: var(--radius); padding: 34px 20px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.emptycta b { font-size: 15px; } .emptycta span { color: var(--muted); font-size: 13.5px; max-width: 520px; } .emptycta .btn { margin-top: 8px; }
.cellpill:not(.good):not(.mid):not(.bad) { color: var(--muted); background: var(--panel2); }

/* Bonus recensioni (Customer Service) */
.revbonus { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); font-size: 13.5px; }
.revbonus .num { font: 600 14px var(--mono); }

/* Colonna dei pulsanti di riga: a destra, senza andare a capo, e tutta la riga centrata in verticale così testi e pulsanti stanno sulla stessa linea */
td.act, th.act { text-align: right; white-space: nowrap; }
td.act .btn + .btn { margin-left: 4px; }
tr:has(> td.act) > td { vertical-align: middle; }

/* Report giornalieri del Customer Service */
.repcard { margin-bottom: 12px; } .repcard textarea { width: 100%; resize: vertical; line-height: 1.5; }
.reptext { white-space: pre-wrap; line-height: 1.55; font-size: 14px; overflow-wrap: anywhere; }
.repold { margin-bottom: 8px; padding: 10px 14px; } .repold summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .repold[open] summary { margin-bottom: 10px; }
.rd { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--line2); vertical-align: -1px; }
.rd.ok { background: var(--ok); } .rd.late { background: var(--warn); } .rd.miss { background: var(--bad); } .rd.wait { background: transparent; border: 1.5px solid var(--muted); } .rd.off { background: var(--line); opacity: .6; }
.repleg { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center; } .repleg .rd { margin-right: 4px; }
.repgrid th, .repgrid td { text-align: center; padding: 8px 6px; } .repgrid th:first-child, .repgrid td:first-child { text-align: left; padding-left: 12px; white-space: nowrap; }
.repgrid th a { color: inherit; text-decoration: none; } .repgrid .sel { background: var(--panel2); } .repgrid td a { display: inline-block; padding: 2px 4px; }

/* Grafico delle giornate: spunta "mostra i costi aziendali" */
.legend .daycosts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-size: 12.5px; }
.legend .daycosts input { accent-color: var(--accent); margin: 0; }
