/* Lotus — l'app */

body.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* ---------- barra laterale ---------- */
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px 14px;
  background: var(--bg); border-right: 1px solid var(--line);
}
.side-top { padding: 2px 8px 4px; }
.ws { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ws-mono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 650; font-size: 12px; letter-spacing: .02em; flex: none; }
.ws b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ws span { font-size: 11.5px; color: var(--muted); }
.side-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.side-search:hover { background: #fff; }
.side-search span { flex: 1; text-align: left; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); }

.nav { display: grid; gap: 1px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 14px; letter-spacing: -.01em;
  transition: background .15s, color .15s;
}
.nav a .ico { color: var(--muted); transition: color .15s; }
.nav a:hover { background: rgba(22, 22, 26, .045); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-weight: 600; }
.nav a.on .ico { color: var(--accent); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 650; }

.side-sec { display: grid; gap: 4px; }
.side-lbl { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side-cl { display: grid; gap: 1px; }
.side-cl button { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); text-align: left; }
.side-cl button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-cl .cl-dot { flex: none; }
.side-cl button small { font-size: 10.5px; color: var(--faint); }
.side-cl button:hover { background: rgba(22, 22, 26, .045); }
.side-cl button.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 550; }
.side-bottom { margin-top: auto; display: grid; gap: 6px; }
.side-import { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-2); transition: border-color .2s, background .2s; }
.side-import:hover { border-color: var(--accent); background: #fffaf8; }
.side-import .ico { color: var(--accent); }
.side-import b { display: block; font-size: 13px; font-weight: 600; }
.side-import span { font-size: 11.5px; color: var(--muted); }
.side-reset { display: flex; align-items: center; gap: 6px; justify-content: center; height: 28px; font-size: 11.5px; color: var(--faint); border-radius: 8px; }
.side-reset:hover { color: var(--ink-2); background: rgba(22, 22, 26, .04); }

/* ---------- parte principale ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 28px;
  background: rgba(244, 243, 239, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.top-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.top-title span { font-weight: 600; letter-spacing: -.02em; font-size: 15px; }
.top-title small { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-search { display: flex; align-items: center; gap: 8px; height: 34px; width: 280px; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--faint); font-size: 13px; box-shadow: var(--sh-1); }
.top-search span { flex: 1; text-align: left; }
.top-search:hover { border-color: var(--line-2); }
.timer { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 550; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--sh-1); max-width: 320px; }
.timer .ico { width: 13px; height: 13px; }
.timer:hover { background: var(--surface-2); }
.timer.on { background: #1b1b20; border-color: #1b1b20; color: #fff; }
.timer.on .ico { color: #ff8b72; }
.timer .tm-t { color: #b9b8b3; font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: rec 1.4s ease-in-out infinite; flex: none; }
@keyframes rec { 50% { opacity: .35; } }
.only-m { display: none; }

.view { padding: 22px 28px 64px; min-width: 0; }
.view > * + * { margin-top: 18px; }

/* comparsa delle sezioni: salgono in ordine, come un'entrata in scena */
.rise { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.no-anim .rise, .no-anim .rise * { animation: none !important; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

.eyebrow { font-size: 12.5px; font-weight: 550; color: var(--accent-ink); letter-spacing: .01em; margin-bottom: 6px; }
.eyebrow::first-letter { text-transform: uppercase; }
h1 { font-size: 30px; font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.lead { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 64ch; }
.lead b { color: var(--ink); font-weight: 600; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.page-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; font-family: var(--mono); }
.empty-row, .empty { color: var(--faint); padding: 14px 4px; font-size: 13.5px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #fff8f5; border: 1px solid #ffdcd1; color: #7a3a2a; font-size: 13.5px; }
.note .ico { color: var(--accent); margin-top: 1px; }

/* miniature: il riquadro fissa l'altezza, la creatività prende la sua larghezza */
.th { width: 100%; container-type: size; display: flex; align-items: center; justify-content: center; }
.th > .cr, .th > .frame { width: min(100cqw, calc(100cqh * var(--arn, .8))); height: auto; flex: none; }

.bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--ink); animation: grow 1.1s var(--ease-out) both .2s; transform-origin: left; }
.bar.light { background: rgba(255, 255, 255, .18); }
.bar.light i { background: #fff; }
@keyframes grow { from { width: 0; } }
.big { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.small { font-size: 12px; }

/* ---------- segmenti e filtri ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); font-weight: 600; }
.seg.small button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.select { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); font-size: 13px; color: var(--ink-2); }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding-right: 16px; font-weight: 500; outline: none; cursor: pointer; }
.select .ico:last-child { position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.select.sm { height: 28px; font-size: 12.5px; }

/* ---------- OGGI ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 8px 0 4px; }
.hello h1 { font-size: 36px; }
.hello-act { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.stat-l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat b { font-size: 34px; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; }
.stat-s { font-size: 12px; color: var(--faint); }
.spark { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.spark i { width: 7px; height: max(3px, var(--h)); border-radius: 2px; background: var(--line-2); transition: background .2s; transform-origin: bottom; animation: vgrow .8s var(--ease-out) both .3s; }
.stat:hover .spark i { background: var(--accent); }

.oggi-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.oggi-grid .col { display: grid; gap: 16px; min-width: 0; }

.todos { list-style: none; margin: 0; padding: 0; display: grid; }
.todo { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .15s; }
.todo:first-child { border-top: 0; }
.todo:hover { background: var(--surface-2); }
.tick { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s var(--ease); }
.tick:hover { border-color: var(--ok); color: var(--ok); }
.todo.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.1); }
.todo.done .todo-t { text-decoration: line-through; color: var(--faint); }
.todo-main { flex: 1; min-width: 0; }
.todo-t { font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-m { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.todo.is-mod .tick { border-color: #f2b8b3; }

.strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.strip-card { flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 7px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.strip-card.first:not(:first-child) { margin-left: 12px; position: relative; }
.strip-card.first:not(:first-child)::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; border-left: 1px dashed var(--line-2); }
.strip-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); background: #fff; }
.strip-d { font-size: 11.5px; color: var(--muted); padding: 1px 2px 0; }
.strip-d b { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.strip-card .th { height: 150px; background: var(--bg-2); border-radius: 9px; overflow: hidden; padding: 6px; }
.strip-t { font-size: 12.5px; font-weight: 550; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.strip-m { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }

.camp-hero { position: relative; overflow: hidden; padding: 0; min-height: 250px; color: #fff; cursor: pointer; border: 0; background: #05141f; }
.camp-hero-bg { position: absolute; inset: 0; }
.camp-hero-bg .cr { width: 100%; height: 100%; aspect-ratio: auto; transition: transform 1.2s var(--ease-out); }
.camp-hero:hover .camp-hero-bg .cr { transform: scale(1.04); }
.camp-hero-bg .cr .cr-pad { display: none; }
.camp-hero-bg .cr .cr-car { width: 64%; left: auto; right: -6%; transform: none; bottom: 26%; }
.camp-hero-in { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 250px; background: linear-gradient(180deg, rgba(5, 20, 31, .1), rgba(5, 20, 31, .75) 70%); }
.camp-hero-n { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.camp-hero-n b { font-size: 64px; font-weight: 600; letter-spacing: -.06em; line-height: .9; }
.camp-hero-n span { font-size: 15px; font-weight: 500; opacity: .85; max-width: 9ch; line-height: 1.2; }
.camp-hero-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; opacity: .85; }
.camp-hero-f b { font-weight: 600; }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.mini-list li:first-child { border-top: 0; }
.mini-list li:hover { background: var(--surface-2); }
.th.sm { height: 52px; width: 44px; flex: none; }
.ml-main { flex: 1; min-width: 0; }
.ml-t { font-weight: 550; font-size: 13.5px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.ml-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; border-radius: 8px; }
.feed li:first-child { border-top: 0; }
.feed li:hover { background: var(--surface-2); }
.feed .f-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.feed .f-ico .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.feed .f-t { flex: 1; min-width: 0; color: var(--ink-2); }
.feed .f-t b { color: var(--ink); font-weight: 600; }
.feed .f-w { font-size: 12px; color: var(--faint); white-space: nowrap; }

.load { display: grid; gap: 12px; }
.load-r { display: grid; grid-template-columns: 26px 1fr 90px 22px; align-items: center; gap: 10px; }
.load-m b { display: block; font-size: 13.5px; font-weight: 600; }
.load-m span { font-size: 11.5px; color: var(--muted); }
.load-b { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.load-b i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: inherit; animation: grow 1s var(--ease-out) both .3s; }
.load-r .num { text-align: right; font-weight: 600; font-size: 13px; }

/* ---------- CALENDARIO ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-title { font-size: 20px; font-weight: 600; letter-spacing: -.035em; min-width: 200px; text-align: center; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-head span { padding: 9px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cell { min-height: 138px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; transition: background .15s; }
.cell:nth-child(7n) { border-right: 0; }
.cell.out { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(22, 22, 26, .018) 6px 7px); }
.cell.out .dn { color: var(--line-2); }
.cell.past .dn { color: var(--faint); }
.cell-h { display: flex; align-items: center; gap: 6px; padding: 1px 3px; }
.cell-add { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .15s, background .15s; }
.cell:hover .cell-add, .wcol:hover .cell-add { opacity: 1; }
.cell-add:hover { background: var(--ink); color: #fff; }
.wcol-h .cell-add { margin-left: auto; }
.dn { font-size: 12.5px; font-weight: 600; font-family: var(--mono); letter-spacing: -.02em; }
.mn { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.cell.today .dn { background: var(--accent); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin: -3px 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.cell-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drop-on { background: #fff6f3 !important; box-shadow: inset 0 0 0 2px var(--accent); }
.ev {
  position: relative; display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 4px 6px 4px 4px; border-radius: 8px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: grab;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ev::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--ch); }
.ev:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .3); }
.ev .th.xs { height: 30px; width: 24px; flex: none; }
.th.xs { height: 34px; width: 30px; flex: none; }
.ev-t { min-width: 0; display: flex; flex-direction: column; }
.ev-t span { font-size: 11.5px; font-weight: 550; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); letter-spacing: -.01em; }
.ev-t small { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ch); font-weight: 550; }
.ev-t small .ico { width: 10px; height: 10px; }
.ev-st { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; }
.ev-st.st-idea { background: #b3b1aa; }
.ev-st.st-lavorazione { background: var(--info); }
.ev-st.st-approvazione { background: var(--warn); box-shadow: 0 0 0 3px rgba(168, 102, 11, .15); }
.ev-st.st-approvato, .ev-st.st-pronto { background: var(--ok); }
.ev-st.st-pubblicato-l { background: transparent; border: 1.5px solid var(--faint); }
.more { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: left; padding: 2px 6px; border-radius: 6px; }
.more:hover { background: var(--bg-2); color: var(--ink); }
.dragging { opacity: .45; transform: scale(.97) rotate(-1.5deg); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .ev-st { position: static; }

.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; }
.wcol { border-right: 1px solid var(--line); min-height: 560px; display: flex; flex-direction: column; min-width: 0; }
.wcol:last-child { border-right: 0; }
.wcol-h { display: flex; align-items: baseline; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.wcol-h span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.wcol-h b { font-size: 20px; font-weight: 600; letter-spacing: -.04em; font-family: var(--mono); }
.wcol.today .wcol-h b { color: var(--accent); }
.wcol.today { background: #fffcfa; }
.wcol-b { padding: 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wcard { display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); cursor: grab; transition: transform .25s var(--ease), box-shadow .25s; }
.wcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.wcard .th { height: 150px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.wcard-t { font-size: 12.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.wcard-m { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.wcard-f { display: flex; gap: 5px; flex-wrap: wrap; }

.agenda { display: grid; }
.ag-day { display: grid; grid-template-columns: 74px 1fr; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ag-day:last-child { border-bottom: 0; }
.ag-day header { display: flex; flex-direction: column; line-height: 1.1; padding-top: 6px; }
.ag-day header b { font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.ag-day header span { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.ag-day.today header b { color: var(--accent); }
.ag-items { display: grid; gap: 6px; min-width: 0; }
.ag-it { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 28px 7px 7px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; min-width: 0; transition: background .15s, transform .2s var(--ease); }
.ag-it:hover { background: #fff; transform: translateX(2px); }
.ag-it .th { height: 46px; width: 40px; flex: none; }
.ag-m { min-width: 0; }
.ag-m b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-m span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ag-it .ev-st { top: 50%; right: 12px; transform: translateY(-50%); width: 8px; height: 8px; }
.ch-sel { height: 24px !important; padding: 0 8px !important; border-radius: 99px !important; box-shadow: none !important; font-size: 11.5px !important; font-weight: 600; }
.ch-sel select { color: inherit; font-weight: 600; font-size: 11.5px; padding-right: 14px; }
.ch-sel .ico:last-child { color: inherit; right: 6px; }
.hint span { min-width: 0; }

/* ---------- ATTIVITÀ ---------- */
.board { display: grid; grid-template-columns: repeat(7, minmax(184px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: rgba(22, 22, 26, .025); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; min-height: 420px; transition: background .2s, box-shadow .2s; }
.kcol > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.kcol-b { display: flex; flex-direction: column; gap: 8px; }
.kcard { display: grid; grid-template-columns: 54px 1fr; gap: 11px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); cursor: grab; transition: transform .25s var(--ease), box-shadow .25s; }
.kcard.no-th { grid-template-columns: 1fr; }
.kcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kthumb { position: relative; width: 54px; height: 68px; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; padding: 3px; }
.kch { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.kch .ico { width: 12px; height: 12px; stroke-width: 2.1; }
.kthumb .th { height: 100%; }
.kbody { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.kmeta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.kbody .kmeta { font-size: 11.5px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; max-width: 100%; }
.kmeta a:hover { color: var(--ink); text-decoration: underline; }
.kbody h3 { font-size: 13px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.kfoot { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 1px; }
.kfoot .chip { height: 20px; padding: 0 6px; }
.kfoot .avatars { margin-left: auto; }
.kdate { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.kdate.now { color: var(--accent-ink); font-weight: 600; }
.kdate.late, .late { color: var(--danger); font-weight: 600; }
.kcm { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.kbody > .chip { height: 20px; font-size: 11px; }
.kadd { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; color: var(--faint); font-size: 13px; }
.kadd:hover { background: var(--surface); color: var(--ink-2); }
.kmore { height: 32px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); }
.kmore:hover { border-color: var(--ink-2); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; box-shadow: var(--sh-1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-open] { cursor: pointer; }
.tbl tr[data-open]:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.card .tbl th { background: transparent; padding-left: 4px; }
.card .tbl td { padding-left: 4px; }
.tcell { display: flex; align-items: center; gap: 10px; }
.tcell b { display: block; font-weight: 550; }
.tcell small { color: var(--muted); font-size: 12px; }
.th-empty { width: 30px; height: 34px; border-radius: 6px; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.tcl { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- CAMPAGNE ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.camp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.camp:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.camp-cover { aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-2); }
.camp-cover .cr { width: 100%; height: 100%; aspect-ratio: auto; transition: transform .9s var(--ease-out); }
.camp:hover .camp-cover .cr { transform: scale(1.035); }
.camp-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.camp-body h3 { font-size: 16px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.camp-body p { font-size: 12.5px; }
.camp-f { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.camp-f b { color: var(--ink); }
.camp-ch { display: flex; gap: 6px; }
.camp-next { font-size: 12.5px; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-next b { color: var(--ink-2); font-weight: 550; }
.camp-top { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--sh-1); }
.camp-top-cover .cr { width: 100%; box-shadow: var(--sh-2); }
.camp-top-in { display: flex; flex-direction: column; gap: 12px; }
.camp-top-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0; }
.facts dt { font-size: 11.5px; color: var(--faint); font-weight: 550; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-weight: 550; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 44px 14px 46px 1fr auto auto; align-items: center; gap: 14px; padding: 9px 6px; border-radius: 10px; cursor: pointer; }
.timeline li:hover { background: var(--surface-2); }
.timeline li.done { opacity: .6; }
.tl-date { text-align: center; line-height: 1.05; }
.tl-date b { display: block; font-size: 18px; font-weight: 600; font-family: var(--mono); letter-spacing: -.04em; }
.tl-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ch); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch) 16%, transparent); }
.tl-main { min-width: 0; }
.tl-main b { display: block; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main span { font-size: 12.5px; color: var(--muted); }
.timeline .th.sm { height: 50px; width: 46px; }

/* ---------- APPROVAZIONI ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.appr-list { display: grid; gap: 12px; }
.appr { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.appr-th { height: 170px; border-radius: 12px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; padding: 10px; transition: transform .3s var(--ease); }
.appr-th:hover { transform: scale(1.02); }
.appr-th .th { height: 100%; }
.appr-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start; }
.appr-main h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; cursor: pointer; }
.appr-who { display: flex; align-items: center; gap: 10px; }
.appr-who b { display: block; font-size: 13.5px; font-weight: 600; }
.appr-who span { font-size: 12px; color: var(--muted); }
.appr-cm { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.appr-cm li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.pin-n { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.appr-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

/* ---------- RICHIESTE ---------- */
.req { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); min-height: 440px; }
.req-list { list-style: none; margin: 0; padding: 6px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; background: var(--surface-2); }
.req-list li { position: relative; display: flex; gap: 10px; padding: 12px; border-radius: 12px; cursor: pointer; }
.req-list li:hover { background: #fff; }
.req-list li.on { background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.req-list li.presa { opacity: .6; }
.req-list p { margin-top: 4px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.rq-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.rq-h span { font-size: 11.5px; }
.rq-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.new-dot { position: absolute; right: 12px; bottom: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.req-det { padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.rd-h { display: flex; align-items: center; gap: 12px; }
.rd-h b { display: block; font-size: 15px; }
.rd-h span { font-size: 12.5px; color: var(--muted); }
.rd-h .chip { margin-left: auto; }
blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); padding-left: 18px; border-left: 3px solid var(--accent); }
.rd-act { display: flex; gap: 8px; }
.rd-form { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); flex-wrap: wrap; }
.rd-form div { flex: 1; min-width: 220px; }
.rd-form b { display: block; font-size: 13.5px; font-weight: 600; }
.rd-form span { font-size: 12.5px; color: var(--muted); }
.rd-form code { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- CLIENTI ---------- */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.clc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 16px; }
.clc header { display: flex; gap: 14px; align-items: flex-start; }
.clc h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.025em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clc header p { font-size: 13px; }
.mono { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brands { display: flex; gap: 18px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.brands img { height: 20px; width: auto; opacity: .8; }
.clc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clc-stats div { padding: 10px; border-radius: 12px; background: var(--surface-2); }
.clc-stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.clc-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.25; display: block; }
.clc-sec h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people li { display: flex; align-items: center; gap: 10px; }
.people b { display: block; font-size: 13.5px; font-weight: 550; }
.people span { font-size: 12px; color: var(--muted); }
.people .add { color: var(--accent-ink); font-size: 13px; font-weight: 550; gap: 8px; padding-left: 4px; }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 30px; height: 30px; border-radius: 9px; background: var(--s); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.clc footer { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- ORE ---------- */
.ore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hbars { display: grid; gap: 14px; padding: 6px 0; }
.hbar { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; }
.hl { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; }
.ht { height: 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ht i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: inherit; animation: grow 1.1s var(--ease-out) both .15s; }
.hv { text-align: right; font-size: 13px; }
.legenda { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.vbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; height: 200px; align-items: end; padding-top: 10px; }
.vcol { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.vstack { width: 58%; max-width: 64px; height: var(--h); display: flex; flex-direction: column-reverse; gap: 2px; animation: vgrow 1s var(--ease-out) both .2s; transform-origin: bottom; }
.vstack i { display: block; background: var(--c); border-radius: 4px; min-height: 3px; }
@keyframes vgrow { from { transform: scaleY(0); } }
.vcol span { font-size: 12.5px; font-weight: 600; }
.vcol small { font-size: 11px; color: var(--faint); }

/* ---------- IMPORTA ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 99px; font-size: 13px; font-weight: 550; color: var(--faint); background: var(--bg-2); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 11.5px; font-family: var(--mono); }
.steps li.on { color: var(--ink); background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.steps li.on span { background: var(--ink); color: #fff; }
.steps li.done { color: var(--ok); }
.steps li.done span { background: var(--ok); color: #fff; }
.card.imp { padding: 26px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 860px; }
.drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 46px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover { border-color: var(--accent); background: #fffaf8; }
.drop-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: #e5f4ea; color: #1b7f53; margin-bottom: 6px; }
.drop h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.drop.over { border-color: var(--accent); background: #fff3ef; transform: scale(1.01); }
.imp-file { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.imp-file .ico { color: #1b7f53; }
div.imp-board { cursor: default; border-color: var(--line-2); }
.im-row.skip .im-b { color: var(--muted); font-weight: 450; }
.im-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-go { flex-wrap: wrap; }
.stat b small { font-size: 16px; color: var(--faint); font-weight: 500; letter-spacing: -.02em; }
.imp-how h4, .imp-sub { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.imp-how ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.imp-found { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.imp-board { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; }
.imp-board input { display: none; }
.imp-board .ib-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); }
.imp-board div { flex: 1; }
.imp-board b { display: block; font-size: 13.5px; }
.imp-board span { font-size: 12px; color: var(--muted); }
.imp-board > .ico:last-child { color: var(--ok); }
.imp-map { width: 100%; display: grid; gap: 6px; }
.im-row { display: grid; grid-template-columns: 180px 20px 180px 1fr; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.im-row .ico { color: var(--faint); }
.im-a { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.im-b { font-weight: 600; }
.im-row small { color: var(--muted); font-size: 12px; }
.imp-go { display: flex; gap: 8px; align-items: center; }
.imp-run { width: 100%; display: grid; gap: 16px; }
.bar.big { height: 10px; }
.bar i.grow { animation: grow 3.6s cubic-bezier(.4, .1, .2, 1) both; background: var(--accent); }
.imp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.imp-log li { display: flex; align-items: center; gap: 8px; animation: rise .4s var(--ease-out) both; }
.imp-log .ico { color: var(--ok); }
.imp-done { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 0; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop .6s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.imp-done h3 { font-size: 24px; font-weight: 650; letter-spacing: -.035em; }

/* raccolte: più contenuti, un link */
.bundles { display: grid; gap: 10px; }
.bundle { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(90deg, #fff7f4, #fff); border: 1px solid #ffd9cd; }
.th-row { display: flex; }
.th-row .th { height: 56px; width: 46px; padding: 2px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.th-row .th + .th { margin-left: -14px; }
.th-row .th:nth-child(2) { transform: rotate(3deg); }
.th-row .th:nth-child(3) { transform: rotate(-4deg); }
.bundle-main b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.bundle-main span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bundle-act { display: flex; gap: 6px; }

/* anteprima al passaggio */
.peek { position: fixed; z-index: 35; width: 280px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s var(--ease), transform .22s var(--ease-out); }
.peek.on { opacity: 1; transform: none; }
.peek-th { height: 220px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; padding: 8px; }
.peek-th .th { height: 100%; }
.peek-b { padding: 10px 4px 2px; display: grid; gap: 6px; }
.peek-b b { font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.peek-m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.peek-cap { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ingrandimento */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(16, 16, 18, .86); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .22s; cursor: zoom-out; }
.lightbox.on { opacity: 1; }
.lb-in { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-in .cr, .lb-in .frame { width: min(92vw, calc(82vh * var(--arn, .8))); height: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); transform: scale(.96); transition: transform .35s var(--ease-out); cursor: default; }
.lightbox.on .lb-in .cr, .lightbox.on .lb-in .frame { transform: none; }
.lb-in p { color: #f4f3ef; font-size: 14px; font-weight: 550; text-align: center; }
.lb-in p .faint { color: #a6a49e; font-weight: 450; }
.lb-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-x:hover { background: rgba(255, 255, 255, .22); }

/* barra in basso (telefono) */
.tabbar { display: none; }
.tb-badge { position: absolute; top: 4px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; }

/* ---------- scheda laterale ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(22, 22, 26, .22); opacity: 0; transition: opacity .3s; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 41;
  width: min(520px, calc(100vw - 20px));
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  transform: translateX(calc(100% + 20px)); transition: transform .45s var(--ease-out);
  overflow: hidden;
}
.drawer.open { transform: none; }
.dr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.dr-tools { display: flex; gap: 2px; align-items: center; }
.dr-nav { display: inline-flex; margin-right: 6px; padding-right: 6px; border-right: 1px solid var(--line); }
.dr-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.dr-prev { position: relative; width: 100%; height: 320px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--bg-2); cursor: zoom-in; transition: background .2s; }
.dr-prev:hover { background: #e9e7e1; }
.dr-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, .9); font-size: 11.5px; font-weight: 600; color: var(--ink-2); opacity: 0; transition: opacity .2s; }
.dr-prev:hover .dr-zoom { opacity: 1; }
.dr-prev .th { height: 100%; }
.dr-prev .cr, .dr-prev .frame { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.dr-t { font-size: 22px; font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.dr-meta { display: grid; gap: 10px; margin: 0; }
.dr-meta > div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; min-height: 28px; }
.dr-meta dt { font-size: 12.5px; color: var(--muted); }
.dr-meta dd { margin: 0; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-meta .who span { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.dr-sec { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.dr-sec-h { display: flex; align-items: center; justify-content: space-between; }
.dr-sec h4 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dr-cap { width: 100%; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); line-height: 1.5; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.dr-cap:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 22, 26, .06); }
.dr-cap.typing { border-color: #c9b8ff; background: linear-gradient(90deg, #faf8ff, #fff); box-shadow: 0 0 0 4px rgba(110, 86, 207, .1); }
.hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hint .ico { color: #6e56cf; }
.dr-appr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dr-appr div { flex: 1; min-width: 0; }
.dr-appr b { display: block; font-size: 13.5px; }
.dr-appr span { font-size: 12px; color: var(--muted); }
.dr-appr.st-approvato { background: var(--ok-soft); border-color: #bfe3cf; }
.dr-appr.st-modifiche { background: var(--danger-soft); border-color: #f2c4bf; }
.dr-appr.st-attesa { background: var(--warn-soft); border-color: #f0d7a8; }
.dr-send { display: flex; gap: 8px; }
.dr-send .select { flex: 1; }
.dr-send select { width: 100%; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.thread li { display: flex; gap: 10px; }
.thread li.resolved p { color: var(--muted); }
.th-h { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.th-h span { font-size: 11.5px; }
.thread p { font-size: 13.5px; margin-top: 2px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.log li { display: flex; align-items: center; gap: 10px; }
.log li i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.log li:first-child i { background: var(--accent); }
.log li span { margin-left: auto; font-size: 12px; }
.dr-f { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; background: var(--surface-2); }
.dr-f .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* scheda: campi modificabili, cose da fare, note */
.dr-t[contenteditable] { outline: none; border-radius: 8px; margin: -4px -8px; padding: 4px 8px; cursor: text; transition: background .15s, box-shadow .15s; }
.dr-t[contenteditable]:hover { background: var(--surface-2); }
.dr-t[contenteditable]:focus { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.dr-date { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; margin-left: -9px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.dr-date:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.dr-date .ico { color: var(--muted); }
.dr-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dr-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.who-b { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 99px; font-size: 13px; color: var(--faint); border: 1px dashed var(--line-2); transition: all .15s; }
.who-b .avatar { filter: grayscale(1); opacity: .5; }
.who-b:hover { color: var(--ink-2); border-color: var(--ink-2); }
.who-b.on { color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); font-weight: 550; }
.who-b.on .avatar { filter: none; opacity: 1; }
.dr-meta .who { gap: 6px; }
.todo-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo-l li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; font-size: 13.5px; }
.todo-l li.ok span { color: var(--faint); text-decoration: line-through; }
.todo-l .tick { width: 20px; height: 20px; border-radius: 6px; }
.tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-form { display: flex; gap: 6px; }
.mini-form input { flex: 1; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13.5px; outline: none; min-width: 0; }
.mini-form input:focus { border-color: var(--ink); background: #fff; }
.mini-form .btn { height: 34px; width: 34px; }

.files { display: flex; flex-wrap: wrap; gap: 6px; }
.file { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; }
.file:hover { border-color: var(--line-2); background: #fff; }
.file .ico { color: var(--muted); }
.file b { font-weight: 550; }
.file small { color: var(--faint); }
.hv small { color: var(--faint); font-weight: 450; }
.hbar { grid-template-columns: 150px 1fr 96px !important; }
.bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-pop { position: fixed; top: 54px; right: 28px; z-index: 36; width: min(420px, calc(100vw - 20px)); padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); animation: pal-in .25s var(--ease-out); }
.bell-pop header { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px 8px; }
.bell-pop header b { font-size: 15px; letter-spacing: -.02em; }
.bell-pop .feed li.new { background: #fff8f5; }
.bell-pop .feed li.new .f-t::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.keys { list-style: none; margin: 0; padding: 14px 18px 20px; display: grid; gap: 12px; }
.keys li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.keys kbd { justify-self: start; font-size: 12px; padding: 3px 8px; }
.side-reset kbd { font-size: 10px; padding: 0 5px; }

/* incarichi e margine */
.eco-prezzo label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.eco-in { position: relative; display: inline-flex; align-items: center; }
.eco-in input { width: 120px; height: 34px; padding: 0 28px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; font-weight: 600; text-align: right; outline: none; -moz-appearance: textfield; }
.eco-in input::-webkit-outer-spin-button, .eco-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.eco-in input:focus { border-color: var(--ink); background: #fff; }
.eco-in i { position: absolute; right: 10px; font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.eco-in.sm input { width: 86px; height: 30px; font-size: 13px; }
.inc-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.inc-l li { display: grid; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; }
.inc-l li.late { border-color: #f2c4bf; background: #fdf5f4; }
.inc-l li.ok { opacity: .75; }
.inc-h { display: flex; align-items: center; gap: 8px; }
.inc-h b { flex: 1; font-size: 13.5px; font-weight: 600; }
.inc-nota { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; outline: none; }
.inc-nota:hover { border-color: var(--line-2); }
.inc-nota:focus { border-color: var(--ink); background: #fff; }
.inc-f { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; }
.inc-f .dr-date { margin-left: 0; height: 26px; }
.inc-f .dr-date.late { color: var(--danger); font-weight: 600; }
.inc-f .chip { margin-left: auto; cursor: pointer; }
.inc-add { display: grid; gap: 6px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line-2); }
.inc-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inc-row .select { height: 32px; }
.inc-row input[type="date"], .inc-row input[type="time"] { height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12.5px; outline: none; }
.inc-row input[name="nota"] { flex: 1; min-width: 160px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; outline: none; }
.inc-row input:focus { border-color: var(--ink); background: #fff; }
.inc-oggi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.inc-oggi li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.inc-oggi li:first-child { border-top: 0; }
.inc-oggi li:hover { background: var(--surface-2); }
.io-m { flex: 1; min-width: 0; }
.io-m b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-m span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.io-d { font-size: 12px; color: var(--muted); white-space: nowrap; }
.io-d.now { color: var(--accent-ink); font-weight: 600; }
.io-d.late { color: var(--danger); font-weight: 600; }
.eco-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); font-size: 12.5px; color: var(--ink-2); }
.eco-sum b { font-weight: 600; color: var(--ink); }
.eco-sum .eco-m { margin-left: auto; font-size: 13.5px; color: var(--ok); }
.eco-sum .eco-m b { color: var(--ok); font-size: 15px; }
.eco-sum .eco-m small { color: var(--ok); font-weight: 600; }
.eco-sum.neg { background: var(--danger-soft); }
.eco-sum.neg .eco-m, .eco-sum.neg .eco-m b, .eco-sum.neg .eco-m small { color: var(--danger); }
.tbl tr.tot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; }
.eco-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eco-3 > div { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.eco-3 span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.eco-3 b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.eco-3 small { display: block; font-size: 11px; color: var(--ok); margin-top: 2px; }
.eco-3 .m { background: var(--ok-soft); }
.eco-3 .m b { color: var(--ok); }
.load-r.pay { grid-template-columns: 26px 1fr 90px 70px; }
.load-r.pay .num { font-size: 13.5px; }

.pay { display: grid; grid-template-columns: minmax(0, 1fr); }
.pay-r { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pay-r:first-child { border-top: 0; }
.pay-n { text-align: right; line-height: 1.25; }
.pay-n b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.pay-n small { font-size: 11.5px; color: var(--muted); }
.pay-a { display: flex; gap: 4px; align-items: center; }
.inc-vedi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.inc-cons { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ok); padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-kpi.three { grid-template-columns: repeat(3, 1fr); }
.tbl.comp th { background: transparent; padding: 8px 10px 8px 0; }
.tbl.comp td { white-space: normal; font-size: 12.5px; padding: 9px 10px 9px 0; vertical-align: top; }
.tbl.comp td b { display: block; font-weight: 600; }
.tbl.comp td small { display: block; color: var(--muted); }
.tbl.comp td.r, .tbl.comp th.r { padding-right: 0; white-space: nowrap; }

/* pagina del cliente */
.clc-h { cursor: pointer; }
.clc-h:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.cl-top { display: flex; align-items: center; gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); flex-wrap: wrap; }
.mono.xl { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
.cl-top-in { flex: 1; min-width: 240px; }
.cl-top-in h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-top-act { display: flex; gap: 8px; flex-wrap: wrap; }
.brands.inline { display: inline-flex; margin-top: 10px; padding: 8px 12px; }
.brands.inline img { height: 16px; }
div.stat { cursor: default; }
div.stat:hover { transform: none; box-shadow: var(--sh-1); }
.people.big { gap: 12px; }
.people.big li > .chip { margin-left: auto; }
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.kit .wide { grid-column: 1 / -1; }
.kit h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.kit p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.chip.lnk { cursor: pointer; }
.chip.lnk:hover { filter: brightness(.96); }

/* prova Lotus in 2 minuti */
.giro { position: fixed; right: 18px; bottom: 18px; z-index: 25; }
.giro.open { width: 340px; padding: 14px; border-radius: 20px; background: #17171b; color: #f4f3ef; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); display: grid; gap: 12px; animation: giro-in .45s var(--ease-out) both; }
@keyframes giro-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.giro header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.giro header b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.giro header span { font-size: 12px; color: #a6a49e; }
.giro header .btn { color: #a6a49e; }
.giro header .btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.giro .bar { background: rgba(255, 255, 255, .14); height: 4px; }
.giro .bar i { background: var(--accent); animation: none; transition: width .5s var(--ease-out); }
.giro ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.giro li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.giro li div { flex: 1; min-width: 0; }
.giro li b { display: block; font-size: 13px; font-weight: 550; letter-spacing: -.01em; }
.giro li span:not(.tick) { font-size: 11.5px; color: #8e8c87; line-height: 1.3; display: block; }
.giro li.ok b { color: #8e8c87; text-decoration: line-through; }
.giro li.ok span:not(.tick) { display: none; }
.giro li.just { animation: just 1s var(--ease-out); }
@keyframes just { 0% { background: rgba(27, 127, 83, .5); } 100% { background: transparent; } }
.giro .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4a4a50; display: grid; place-items: center; color: transparent; flex: none; }
.giro .tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.giro .btn.sm { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; box-shadow: none; }
.giro .btn.sm:hover { background: #fff; color: #17171b; }
.giro footer { display: flex; justify-content: center; }
.giro-x { font-size: 11.5px; color: #77756f; }
.giro-x:hover { color: #fff; }
.giro-pill { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 10px; border-radius: 99px; background: #17171b; color: #fff; font-size: 13px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.giro-pill:hover { transform: translateY(-2px); }
.giro-pill b { font-weight: 550; }
.giro-pill span:last-child { color: #a6a49e; font-family: var(--mono); font-size: 12px; }
.giro-pill .ring { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.giro.done.open header b { color: #8fe3b3; }

/* ---------- ricerca ---------- */
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(22, 22, 26, .25); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.pal-box { width: min(620px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; animation: pal-in .3s var(--ease-out); }
@keyframes pal-in { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; color: var(--ink); }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; }
.pal-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pal-list li b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-list li span { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pal-list li .ico { color: var(--muted); }
.pal-list li.on { background: var(--bg); }
.pal-list li.none { color: var(--faint); cursor: default; }

/* ---------- finestre ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(22, 22, 26, .3); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.modal.open { opacity: 1; }
.mod-box { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); transform: translateY(10px) scale(.98); transition: transform .35s var(--ease-out); }
.modal.open .mod-box { transform: none; }
.mod-box.wide { width: min(980px, 100%); background: var(--bg); }
.mod-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: inherit; flex-wrap: wrap; }
.mod-h h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.mod-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form { padding: 18px; display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; flex: 1; min-width: 0; }
.fld span { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; font-size: 14px; width: 100%; }
.fld textarea { height: auto; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 22, 26, .06); }
.fld-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mod-f { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }

/* report */
.sheet-wrap { padding: 24px; display: flex; justify-content: center; }
.sheet { width: 100%; max-width: 820px; background: #fff; border-radius: 6px; box-shadow: var(--sh-2); padding: 48px 52px; display: flex; flex-direction: column; gap: 30px; }
.sh-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.sh-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.sh-h h1 { font-size: 40px; margin-top: 6px; }
.sh-h p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); text-transform: capitalize; }
.sh-by { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sh-by .brand { font-size: 15px; }
.sh-by small { color: var(--muted); font-size: 12px; }
.sh-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sh-kpi div { background: #fff; padding: 16px; }
.sh-kpi b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.05em; }
.sh-kpi span { font-size: 12px; color: var(--muted); }
.sheet h2 { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.sh-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-grid .th { height: 150px; background: var(--bg); border-radius: 8px; padding: 8px; }
.sh-grid figcaption b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.sh-grid figcaption span { font-size: 11px; color: var(--muted); }
.sh-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sh-2 .tbl td { padding: 7px 0; font-size: 12.5px; white-space: normal; }
.sh-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-next li b { display: block; font-size: 13px; font-weight: 600; }
.sh-next li span { font-size: 12px; color: var(--muted); }
.sh-f { font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; }

@media print {
  body.printing > *:not(.modal) { display: none !important; }
  body.printing { display: block; background: #fff; }
  body.printing .modal { position: static; background: none; padding: 0; opacity: 1; }
  body.printing .mod-box { box-shadow: none; max-height: none; overflow: visible; background: #fff; width: 100%; transform: none; }
  body.printing .no-print { display: none; }
  body.printing .sheet-wrap { padding: 0; }
  body.printing .sheet { box-shadow: none; padding: 0; max-width: none; }
  body.printing .sh-kpi.three { grid-template-columns: repeat(3, 1fr); }
  body.printing .sheet { gap: 22px; }
  @page { size: A4; margin: 14mm; }
}

/* ---------- schermi stretti ---------- */
@media (max-width: 1180px) {
  .spark { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.spark i { width: 7px; height: max(3px, var(--h)); border-radius: 2px; background: var(--line-2); transition: background .2s; transform-origin: bottom; animation: vgrow .8s var(--ease-out) both .3s; }
.stat:hover .spark i { background: var(--accent); }

.oggi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .top-search { width: 200px; }
}
@media (max-width: 900px) {
  body.app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .35s var(--ease-out); box-shadow: var(--sh-3); }
  body.side-open .side { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(22, 22, 26, .25); }
  .only-m { display: inline-flex; }
  .only-d { display: none !important; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: end; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button:not(.tab-new) { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border-radius: 10px; font-size: 10.5px; font-weight: 550; color: var(--muted); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on .ico { color: var(--accent); }
  .tab-new { width: 48px; height: 48px; margin: 0 auto 2px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
  .tab-new .ico { width: 22px; height: 22px; }
  .view { padding-bottom: 96px; }
  .side-search, .side-bottom .side-reset { display: none; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .drawer.open { transform: none; }
  .dr-prev { height: 240px; }
  .dr-nav { display: none; }
  .bundle { grid-template-columns: 1fr; gap: 12px; }
  .bundle-act { flex-wrap: wrap; }
  .cell-add { display: none; }
  .giro { right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .bell-pop { right: 10px; top: 58px; }
  .hbar { grid-template-columns: 104px 1fr 84px !important; }
  .giro.open { left: 10px; right: 10px; width: auto; }
  .cl-top-act { width: 100%; }
  .kit { grid-template-columns: 1fr; }
  .pay-r { grid-template-columns: 26px 1fr auto; }
  .card:has(> .tbl) { overflow-x: auto; }
  .card > .tbl th, .card > .tbl td { white-space: normal; padding: 8px 8px 8px 0; }
  .card > .tbl td.r, .card > .tbl th.r { white-space: nowrap; padding-right: 0; }
  .pay-a { grid-column: 2 / -1; }
  .sh-kpi.three { grid-template-columns: 1fr; }
  .eco-3 { grid-template-columns: 1fr; }
  .eco-sum .eco-m { margin-left: 0; width: 100%; }
  .top { padding: 0 12px; gap: 8px; }
  .top-title small { display: none; }
  .view { padding: 16px 16px 48px; }
  h1, .hello h1 { font-size: 26px; }
  .timer .tm-t { display: none; }
  .timer span:not(.num) { display: none; }
  .appr { grid-template-columns: 1fr; }
  .appr-th { height: 220px; }
  .appr-act { flex-direction: row; flex-wrap: wrap; }
  .req { grid-template-columns: 1fr; }
  .req-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .req-det { padding: 20px; }
  blockquote { font-size: 19px; }
  .camp-top { grid-template-columns: 1fr; }
  .camp-top-cover { max-width: 220px; }
  .ore-grid { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 110px 1fr 56px; }
  .timeline li { grid-template-columns: 38px 10px 40px 1fr; }
  .timeline li > .chip, .timeline li > .avatars { display: none; }
  .imp-found { grid-template-columns: 1fr; }
  .im-row { grid-template-columns: 1fr 16px 1fr; }
  .im-row small { grid-column: 1 / -1; }
  .sheet { padding: 24px; }
  .sh-kpi { grid-template-columns: repeat(2, 1fr); }
  .sh-2 { grid-template-columns: 1fr; }
  .cal-grid, .cal-head { grid-template-columns: repeat(7, minmax(92px, 1fr)); }
  .ag-day { grid-template-columns: 52px 1fr; padding: 10px; }
  .ag-day header b { font-size: 20px; }
  .cal { overflow-x: auto; }
  .cal-head, .cal-grid { min-width: 680px; }
  .cal-title { min-width: 0; font-size: 17px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 28px; }
  .hello-act { width: 100%; }
  .hello-act .btn { flex: 1; }
  .todo .chip { display: none; }
  .page-act { width: 100%; }
}

/* ---------- 13/10: campagna libera, assegnatario, brief, ricavo e costo ---------- */
.fld span small, .eco-prezzo small, .eco-sub small { font-weight: 450; color: var(--faint); margin-left: 4px; font-size: 11.5px; }
.fld-note { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; line-height: 1.35; }
.fld-note .ico { flex: none; }
.fld-note.warn { margin: 0; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.fld-2 { display: flex; gap: 6px; }
.fld-2 input[type="date"] { flex: 1.7; min-width: 0; width: auto; }
.fld-2 input[type="time"] { flex: 1; min-width: 0; width: auto; }
.fld .eco-in { display: flex; }
.fld .eco-in input { width: 100%; height: 40px; padding: 0 30px 0 12px; text-align: left; font-weight: 550; font-size: 14px; }
.eco-out output { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: 14px; white-space: nowrap; }
.eco-out output.neg { background: var(--danger-soft); color: var(--danger); }
.mod-f .grow { flex: 1; }
.btn.danger { color: var(--danger); }

.dr-in { flex: 1; min-width: 0; height: 30px; padding: 0 10px; margin-left: -10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13.5px; font-weight: 500; outline: none; text-overflow: ellipsis; }
.dr-in:hover { border-color: var(--line-2); background: var(--surface-2); }
.dr-in:focus { border-color: var(--ink); background: #fff; }
.dr-in::placeholder { color: var(--faint); font-weight: 450; }
.dr-brief { width: 100%; resize: vertical; min-height: 88px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); line-height: 1.5; font-size: 14px; outline: none; }
.dr-brief:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 22, 26, .06); }
.dr-meta > .dr-conn { min-height: 0; margin-top: -6px; }
.dr-conn dd { font-size: 12.5px; color: var(--muted); align-items: flex-start; flex-wrap: nowrap; gap: 6px; }
.dr-conn .ico { margin-top: 2px; flex: none; }
.dr-conn.on dd { color: var(--ok); }
.dr-conn a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* note per la squadra: in alto nella scheda, con spazio per scrivere */
.note-sq { gap: 12px; }
.note-sq .thread { gap: 10px; }
.note-sq .thread li > div { flex: 1; min-width: 0; padding: 10px 14px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.note-sq .th-h { font-size: 13.5px; }
.note-sq .thread p { font-size: 14.5px; line-height: 1.5; margin-top: 3px; white-space: pre-line; }
.note-form { display: grid; gap: 8px; }
.note-form textarea { width: 100%; min-height: 104px; resize: vertical; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14.5px; line-height: 1.5; outline: none; }
.note-form textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 22, 26, .06); }
.note-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-f .btn { height: 32px; padding: 0 12px; }

.eco-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-top: 2px; }
.eco-sub b { font-weight: 600; color: var(--ink-2); }
.inc-h b small { margin-left: 6px; font-weight: 450; font-size: 12px; color: var(--muted); }

.kwho { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; color: var(--ink-2); }
.kwho b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwho small { color: var(--faint); font-size: 11px; }
.twho { display: inline-flex; align-items: center; gap: 8px; }
.twho > span:last-child { font-size: 12.5px; color: var(--ink-2); }
.tbl td.neg b { color: var(--danger); }
.facts .wide { flex-basis: 100%; }
.facts .wide dd { font-weight: 500; }

/* ---------- collegamenti ---------- */
.demo-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.demo-note .ico { color: var(--muted); margin-top: 1px; flex: none; }
.demo-note b { font-weight: 600; color: var(--ink); }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.conn { display: grid; gap: 14px; align-content: start; }
.conn-h { display: flex; align-items: center; gap: 12px; }
.conn-h > div { flex: 1; min-width: 0; }
.conn-h h2 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.conn-h > div span { font-size: 12.5px; color: var(--muted); }
.conn-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--s); color: var(--c); flex: none; }
.conn-ico .ico { width: 21px; height: 21px; }
.conn-ico.sm { width: 32px; height: 32px; border-radius: 9px; }
.conn-ico.sm .ico { width: 16px; height: 16px; }
.conn-cosa { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.conn-cosa li { display: flex; gap: 8px; align-items: flex-start; }
.conn-cosa .ico { color: var(--ok); margin-top: 3px; flex: none; }
.conn-l, .conn-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.conn-l li, .conn-mini li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.conn-l li > div, .conn-mini li > div { flex: 1; min-width: 0; }
.conn-l b, .conn-mini b { display: block; font-size: 13.5px; font-weight: 600; }
.conn-l li > div span, .conn-mini li > div span { display: block; font-size: 12px; color: var(--muted); }
.conn-l li.on > div span, .conn-mini li.on > div span { color: var(--ok); }
.conn-mini li:first-child { border-top: 0; padding-top: 0; }
.conn-mini li:last-child { padding-bottom: 0; }
.conn-x { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.conn-how { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.conn-how b { font-size: 13.5px; font-weight: 600; }
.conn-how p { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
@media (max-width: 900px) { .conn-grid { grid-template-columns: 1fr; } }

.inc-nuovo input { flex: 1; min-width: 140px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; outline: none; }
.inc-nuovo input:focus { border-color: var(--ink); }
.nuovo-collab { padding: 10px; margin-top: -4px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.nuovo-collab .fld input { background: #fff; }
.table-wrap .tbl td:first-child { white-space: normal; min-width: 230px; }
.table-wrap .tcell b { line-height: 1.3; }
@media (max-width: 560px) {
  .form .fld-row > .fld { flex: 1 1 150px; }
  .fld span small { display: block; margin: 1px 0 0; }
  .mod-box { max-height: calc(100dvh - 24px); }
}
.inc-add .inc-row:first-child .select { flex: 1 1 100%; }
.inc-add .inc-row:first-child .select select { flex: 1; }
.fld { grid-template-columns: minmax(0, 1fr); }
.fld-2 { min-width: 0; }
@media (max-width: 560px) { .form .fld-row > div.fld.solo-collab { flex: 1 1 100%; } }

/* ---------- la prova di Chiara ---------- */
.demo-note.prova { align-items: center; }
.demo-note.prova span { flex: 1; }
.lnk { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dati .dati-n { font-size: 13px; color: var(--muted); }
.dati .dati-n b { color: var(--ink); font-weight: 600; }
.dati-act { display: flex; gap: 8px; flex-wrap: wrap; }
.dati-scelte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.dati-scelte > div { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dati-scelte b { font-size: 13.5px; font-weight: 600; }
.dati-scelte p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.files .file a { color: inherit; }
.files .file a:hover b { text-decoration: underline; }
.files .file .btn { margin-left: 2px; width: 22px; height: 22px; }
.people li.add { cursor: pointer; }
@media (max-width: 560px) { .dati-scelte { grid-template-columns: 1fr; } }
.side-reset[data-act="dati"] { color: var(--ink-2); font-weight: 550; }

/* Oggi quando Lotus è ancora vuoto */
.start-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.start-l li { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-top: 1px solid var(--line); }
.start-l li:first-child { border-top: 0; padding-top: 4px; }
.start-l .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.start-l li > div { flex: 1; min-width: 0; }
.start-l b { font-size: 14.5px; font-weight: 600; }
.start-l p { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .start-l li { flex-wrap: wrap; } .start-l li .btn { margin-left: 44px; } }

/* ---------- 16/10: richieste di Chiara ---------- */
.ev-st.st-stampa { background: #8a4fbf; }
.ev-st.st-standby { background: transparent; border: 1.5px dashed #8b8a86; }
.todo-l li .todo-act { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.todo-l li:hover .todo-act, .todo-l li:focus-within .todo-act { opacity: 1; }
.todo-l li .todo-act .btn { width: 24px; height: 24px; }
@media (hover: none) { .todo-l li .todo-act { opacity: 1; } }
.dr-in.fmt { flex: 0 1 190px; margin-left: 0; color: var(--muted); }
.wcard-ca, .kca { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); }
.wcard-ca span, .kca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kca { margin: -2px 0 2px; }
.ev-t .ev-ca { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.periodo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.periodo-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.periodo b { font-size: 14px; font-weight: 600; }
.periodo-d { display: inline-flex; align-items: center; gap: 6px; }
.periodo-d input { height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; }
.inc-h .chip { height: 20px; font-size: 10.5px; padding: 0 6px; }

/* più canali e più account */
.ch-altri { gap: 6px; }
.ch-altri .chip { gap: 4px; padding-right: 3px; }
.ch-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: inherit; opacity: .6; }
.ch-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.ch-add { height: 24px !important; border-style: dashed !important; color: var(--muted); }
.ch-add select { font-size: 12px; padding-right: 4px; }
.ch-add .ico:last-child { position: static; }
.ch-multi { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.ch-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ch-pill .ico { color: var(--c); }
.ch-pill:has(input:checked) { background: var(--s); border-color: transparent; color: var(--c); font-weight: 600; }
.fld .ch-pill { font-size: 12.5px; }
.ch-tutti { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.kchs { display: flex; align-items: center; gap: 3px; margin: -2px 0 2px; }
.kchs small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.ev-t small .ico + .ico { margin-left: -2px; }
.acc-l { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.acc { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 600; }
.acc-sel { height: 22px !important; display: inline-flex !important; vertical-align: middle; }
.acc-sel select { font-size: 12px; }
.ag-m .ag-ca { color: var(--accent-ink); font-weight: 600; }

/* file caricati */
.dr-prev-w { position: relative; }
.dr-prev-act { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.dr-prev-act .btn { background: rgba(255, 255, 255, .94); }
.dr-sec-act { display: inline-flex; gap: 4px; }
.dr-files.sopra { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 12px; background: var(--accent-soft); }
.file.img { padding-left: 4px; }
.file-th { display: block; width: 26px; height: 26px; border-radius: 6px; overflow: hidden; flex: none; background: var(--bg-2); }
.file-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thread .files { margin-top: 8px; }
.thread .file.img { height: auto; padding: 4px 10px 4px 4px; }
.thread .file-th { width: 64px; height: 64px; }
.nota-alleg { padding: 2px 0; }
.note-f .grow { flex: 1; }
.fld-file { height: auto !important; padding: 8px 10px !important; font-size: 13px !important; }

/* scadenze */
.scad { gap: 16px; }
.scad h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.scad h4 span { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); letter-spacing: 0; }
.scad h4.late { color: var(--danger); }
.scad h4.late span { background: var(--danger-soft); color: var(--danger); }
.scad h4.now { color: var(--accent-ink); }
.scad h4.now span { background: var(--accent-soft); color: var(--accent-ink); }
.scad-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.scad-l li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-top: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.scad-l li:first-child { border-top: 0; }
.scad-l li:hover { background: var(--surface-2); }
.scad-l li > div { flex: 1; min-width: 0; }
.scad-l b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scad-l li > div > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scad-l .ico { color: var(--faint); flex: none; }
.scad-not { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.scad .mod-f { align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.bell-pop header .btn { height: 26px; }
/* 16/10: la campagna (in rosso) non deve uscire dalla scheda: va a capo su due righe al massimo */
.kcard { grid-template-columns: 54px minmax(0, 1fr); }
.kcard.no-th { grid-template-columns: minmax(0, 1fr); }
.kca, .kchs, .wcard-ca { max-width: 100%; align-items: flex-start; }
.kca span, .wcard-ca span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.kca .ico, .wcard-ca .ico { flex: none; margin-top: 1px; }
.ev-t { min-width: 0; }

/* 16/10: Lotus online — indicatore del salvataggio, opzioni delle scadenze, prova portata online */
.sync { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: default; transition: opacity .4s, color .2s, background .2s; white-space: nowrap; }
.sync[data-st="quieto"] { opacity: .55; }
.sync[data-st="quieto"]:hover { opacity: 1; }
.sync[data-st="errore"], .sync[data-st="uscito"] { color: var(--danger); background: var(--danger-soft); cursor: pointer; }
.sync .ico { flex: none; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: giro .8s linear infinite; flex: none; }
@keyframes giro { to { transform: rotate(1turn); } }
.scad-opz { display: grid; gap: 6px; }
.porta-p { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.porta-p .spin { width: 16px; height: 16px; color: var(--accent); }
.dati > .scad-not { margin: -2px 0 2px; }
@media (max-width: 899px) { .sync:not([data-st="errore"]):not([data-st="uscito"]) { display: none; } }

/* 16/10: conti delle campagne (forfait) e riepilogo per fatturare */
.eco-forfait { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; line-height: 1.45; }
.eco-forfait .ico { flex: none; margin-top: 2px; color: var(--accent-ink); }
.eco-forfait a { color: var(--accent-ink); font-weight: 600; }
#f-camp .eco-in { display: flex; align-items: center; gap: 6px; }
#f-camp .eco-in input { flex: 1; min-width: 0; }
.tbl.rp td small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.tbl.rp td:first-child { white-space: nowrap; color: var(--muted); width: 72px; }
.tbl.rp tr.rp-camp td { background: var(--accent-soft); }
.rp-manca { color: var(--danger); font-size: 12px; }
.rp-avviso { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 9px 12px; margin: 4px 0 16px; }
.rp-cl { margin-top: 18px; }
.rp-cl h2 { margin-bottom: 8px; }
@media print { .tbl.rp tr.rp-camp td { background: #f4f1ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 18/10, Chiara: «togliere il timer» (le ore si registrano a mano) */
#timer { display: none !important; }
/* 18/10: importi con i centesimi, le colonne non si attaccano sul telefono */
.tbl td.r.num { white-space: nowrap; }
.tbl td.r + td.r, .tbl th.r + th.r { padding-left: 12px; }
@media (max-width: 600px) { .tbl td.r.num { font-size: 13px; } .tbl td.r.num small { display: block; } }

/* 19/10, ripasso */
.camp-hero-n span { max-width: 24ch; }
.board { grid-template-columns: repeat(7, minmax(228px, 1fr)); }
.kcard:not(.no-th) .kwho b { display: none; } /* con la miniatura il nome non ci sta: resta l'avatar (il nome è nel suggerimento) */
/* il campo «File» nei moduli: il pulsante del browser con lo stile di Lotus */
.form input[type="file"] { font: inherit; font-size: 13px; color: var(--muted); }
.form input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 550; height: 32px; padding: 0 12px; margin-right: 10px; border-radius: 9px; border: 1px solid var(--line-2, var(--line)); background: var(--surface); color: var(--ink); cursor: pointer; }
.form input[type="file"]::file-selector-button:hover { background: var(--surface-2); }
/* schermi molto larghi: il contenuto non si allarga all'infinito */
@media (min-width: 2200px) { .view { max-width: 1960px; margin-inline: auto; width: 100%; } }
.sh-2.uno { grid-template-columns: minmax(0, 1fr); }
/* 19/10, Chiara: nel calendario lo stato si legge scritto, anche quando è «Chiuso» */
.ev-stt { display: block; width: fit-content; max-width: 100%; margin-top: 3px; padding: 0 6px; border-radius: 99px; font-size: 9.5px; font-weight: 600; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-st { flex: none; margin-left: auto; }
.ag-st .chip { height: 22px; font-size: 11.5px; }

/* 19/10: invito dei collaboratori */
.inv { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; font-size: 11px; font-weight: 550; padding: 1px 7px 1px 5px; border-radius: 99px; vertical-align: 1px; }
.inv.ok { color: var(--ok); background: var(--ok-soft); }
.inv.da { color: var(--warn); background: var(--warn-soft); border: 0; font-family: inherit; cursor: pointer; }
.inv.da:hover { filter: brightness(.96); }
.invito { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.invito.ok { background: var(--ok-soft); }
.invito > .ico { flex: none; margin-top: 2px; color: var(--warn); }
.invito.ok > .ico { color: var(--ok); }
.invito b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.invito-az { display: flex; gap: 8px; flex-wrap: wrap; }
.inc-invita { height: 26px; padding: 0 9px; font-size: 12px; color: var(--warn); }
.inc-row.inc-nuovo { flex-wrap: wrap; }

/* 21/10/2026: avvisi per mail del collaboratore, pagamenti nel riepilogo compensi */
.chk.avvisi { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); cursor: pointer; }
.chk.avvisi input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.chk.avvisi span { display: grid; gap: 2px; }
.chk.avvisi b { font-size: 13.5px; font-weight: 600; }
.chk.avvisi small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.comp-st { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 2px 10px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.comp-st:hover { border-color: var(--ink); color: var(--ink); }
.comp-st.ok { background: var(--ok-soft); border-color: #cfe9da; color: var(--ok); font-weight: 550; }
@media print { .comp-st { border: 0; padding: 0; background: none; color: inherit; } }
.card-h [data-act="collab-nuovo"] { margin-left: auto; }
.note-sq .thread li.loro > div { background: var(--accent-soft); border-color: transparent; }
