/* MES Squadra — bianco, nero e #CB583D. Archivo largo per i titoli e i numeri, normale per il testo. */
:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --brand: #CB583D;
  --brand-deep: #8F3A24;
  --brand-soft: #F8E6E0;
  --well: #F4F3F1;
  --line: #E4E2DE;
  --muted: #66625D;
  --radius: 12px;
  --nav-h: 0px;
  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wide { font-stretch: 125%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- struttura ---------- */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }
.shell.narrow { max-width: 680px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  height: 58px; display: flex; align-items: center; gap: 20px;
}
.narrow-bar .topbar-in { max-width: 680px; }
.wordmark { font-weight: 850; font-stretch: 125%; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.wordmark span { color: var(--brand); }
.topnav { display: none; gap: 4px; margin-left: 8px; }
.topnav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.topnav a:hover { color: var(--ink); background: var(--well); }
.topnav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who b { font-weight: 650; }
.linkbtn { background: none; border: 0; padding: 6px 2px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.linkbtn:hover { color: var(--ink); }

.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--paper); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.botnav a {
  text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; font-size: 11.5px; font-weight: 600; position: relative;
}
.botnav a[aria-current="page"] { color: var(--ink); }
.botnav a[aria-current="page"] svg { stroke-width: 2.4; }
.botnav svg, .topnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.topnav svg { width: 18px; height: 18px; }
.badge {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--ink);
  font-size: 11.5px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center;
}
.botnav .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
body.has-botnav { --nav-h: 62px; }

@media (min-width: 900px) {
  .topnav { display: flex; }
  .botnav { display: none; }
  body.has-botnav { --nav-h: 0px; }
  .shell { padding: 0 32px 72px; }
  .topbar-in { padding: 0 32px; }
}

/* ---------- intestazione pagina ---------- */
.hello { padding: 28px 0 22px; }
.hello h1 {
  margin: 0; font-weight: 850; font-stretch: 125%; letter-spacing: -.02em;
  font-size: clamp(30px, 7vw, 46px); line-height: 1.02;
}
.hello p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

.page-head { padding: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.page-head h1 { margin: 0; font-weight: 850; font-stretch: 125%; letter-spacing: -.02em; font-size: clamp(28px, 6vw, 40px); line-height: 1.05; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- focus: l'unico adesivo ---------- */
.sticker {
  background: var(--brand); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 18px 18px; margin: 0 5px 30px 0;
}
.sticker-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 650; }
.sticker-text { margin: 8px 0 0; font-weight: 750; font-stretch: 112%; font-size: clamp(20px, 4.6vw, 25px); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.sticker .linkbtn { color: var(--ink); }
.sticker form { margin-top: 10px; display: grid; gap: 10px; }
.sticker textarea { background: var(--paper); }
.sticker-empty { margin: 8px 0 0; font-weight: 600; }

/* ---------- barra del mese ---------- */
.month { margin-bottom: 30px; }
.month-label { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.month-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 14px; }
.month-big strong { font-weight: 850; font-stretch: 125%; font-size: clamp(44px, 11vw, 64px); line-height: .95; letter-spacing: -.03em; }
.month-big span { color: var(--muted); font-size: 17px; font-weight: 500; }
.track {
  position: relative; height: 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  overflow: visible;
}
.track-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand);
  width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.track-fill.over { background: var(--ink); }
.pace { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px dashed var(--ink); }
.pace-cap { position: absolute; top: calc(100% + 4px); transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.pace-cap.left { transform: none; }
.pace-cap.right { transform: translateX(-100%); }
.month-say { margin: 30px 0 0; font-size: 15.5px; line-height: 1.5; max-width: 52ch; }
.month-say b { font-weight: 700; }
.month-src { margin-top: 6px; font-size: 13px; color: var(--muted); }

.commit { margin: 0 0 34px; }
.commit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 15px; }
.commit-row strong { font-weight: 850; font-stretch: 125%; font-size: 26px; }
.bar { height: 10px; border-radius: 999px; background: var(--well); margin: 8px 0 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.commit p { margin: 0; font-size: 14px; color: var(--muted); }
.nil { font-weight: 600 !important; font-stretch: 100% !important; font-size: 14px !important; color: var(--muted); }
.m-only { }
.d-only { display: none; }
@media (min-width: 980px) { .m-only { display: none; } .d-only { display: flex; } }

/* ---------- sezioni e liste ---------- */
.section { margin: 0 0 30px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.section-head h2 { margin: 0; font-weight: 750; font-stretch: 112%; font-size: 20px; letter-spacing: -.01em; }
.section-head .count { color: var(--muted); font-weight: 600; font-size: 15px; }
.section-head .right { margin-left: auto; }
.empty { color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.task {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: opacity .35s ease, transform .35s ease;
}
.task.leaving { opacity: 0; transform: translateX(14px); }
.tick {
  width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; padding: 0;
}
.tick svg { width: 15px; height: 15px; stroke: var(--paper); stroke-width: 3; fill: none; opacity: 0; }
.tick:hover { background: var(--well); }
.task.is-done .tick { background: var(--ink); }
.task.is-done .tick svg { opacity: 1; }
.task.stamp .tick { animation: stamp .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes stamp { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.task.is-done .t-what { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.t-what { font-weight: 550; font-size: 16px; line-height: 1.38; overflow-wrap: anywhere; }
.t-det { margin-top: 3px; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.t-det a { color: var(--brand-deep); text-underline-offset: 2px; }
.t-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t-from { font-size: 13px; color: var(--muted); margin-top: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 999px;
  background: var(--well); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip.today { background: var(--ink); color: var(--paper); }
.chip.late { background: var(--brand-soft); color: var(--brand-deep); }
.chip.person { background: transparent; border: 1.5px solid var(--line); }
.chip.ok { background: var(--ink); color: var(--paper); }
.chip.warn { background: var(--brand-soft); color: var(--brand-deep); }

details.more { border-bottom: 1px solid var(--line); }
details.more summary {
  list-style: none; cursor: pointer; padding: 14px 0; display: flex; align-items: baseline; gap: 10px;
  font-weight: 750; font-stretch: 112%; font-size: 18px;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; margin-left: auto; font-weight: 500; font-size: 22px; line-height: 1; }
details.more[open] summary::after { content: '–'; }
details.more summary .count { color: var(--muted); font-weight: 600; font-size: 15px; font-stretch: 100%; }
details.more .list .task:last-child { border-bottom: 0; }

/* ---------- bottoni e moduli ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 11px; border: 2px solid var(--ink); background: var(--paper);
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--well); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #222; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--ink); background: var(--well); }
.btn.small { min-height: 36px; padding: 0 13px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.form { display: grid; gap: 12px; padding: 16px; background: var(--well); border-radius: var(--radius); margin: 10px 0 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label.f small { font-weight: 500; color: var(--muted); }
input[type=text], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #CFCCC7; border-radius: 10px; background: var(--paper);
  font-size: 16px; line-height: 1.4;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-error { color: var(--brand-deep); font-weight: 600; font-size: 14px; margin: 0; }

/* ---------- home di Finch ---------- */
.home-grid { display: grid; gap: 8px; }
@media (min-width: 980px) {
  .home-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .home-grid > .col-left { position: sticky; top: 86px; }
}
.callout {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--well); margin: 0 0 28px; text-decoration: none;
}
.callout strong { font-weight: 850; font-stretch: 125%; font-size: 30px; line-height: 1; }
.callout span { font-weight: 600; line-height: 1.3; }
.callout .btn { margin-left: auto; }

/* ---------- approvazioni ---------- */
.group { margin: 26px 0 0; }
.group-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.group-head h2 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 21px; }
.group-head span { color: var(--muted); font-size: 14px; }
.proposal { padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity .3s ease, transform .3s ease; }
.proposal.leaving { opacity: 0; transform: translateY(-6px); }
.proposal .t-what { font-size: 16.5px; }
.proposal .btn-row { margin-top: 12px; }

/* ---------- squadra ---------- */
.people { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.person { border-bottom: 1px solid var(--line); }
.person > button {
  width: 100%; background: none; border: 0; text-align: left; padding: 18px 0;
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; align-items: center;
}
.person-name { font-weight: 800; font-stretch: 125%; font-size: 21px; line-height: 1.1; }
.person-role { color: var(--muted); font-size: 14px; }
.person-score { text-align: right; }
.person-score strong { display: block; font-weight: 850; font-stretch: 125%; font-size: 30px; line-height: 1; }
.person-score small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.person-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.person-body { padding: 0 0 20px; }
.person-check { background: var(--well); border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 14px; font-size: 14.5px; }
.person-check b { font-weight: 700; }

/* ---------- decisioni ---------- */
.seg { display: inline-flex; background: var(--well); border-radius: 999px; padding: 4px; gap: 2px; margin: 14px 0 6px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.decisions { list-style: none; margin: 8px 0 0; padding: 0; }
.decision { border-bottom: 1px solid var(--line); }
.decision > button {
  width: 100%; background: none; border: 0; text-align: left; padding: 16px 0; display: grid; gap: 8px;
}
.d-text { font-weight: 600; font-size: 16.5px; line-height: 1.38; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.progress-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress-mini i { display: inline-block; width: 56px; height: 6px; border-radius: 99px; background: var(--well); position: relative; overflow: hidden; }
.progress-mini i b { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 99px; }
.decision-body { padding: 0 0 20px; }
.decision-body .note { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.decision.closed .d-text { color: var(--muted); }
.decision.just-closed .d-text { animation: closed 1.2s ease; }
@keyframes closed { 0% { color: var(--brand); } 100% { color: var(--muted); } }

/* ---------- check del venerdì ---------- */
.checkcard { border: 2px solid var(--ink); border-radius: 16px; padding: 18px; margin: 0 0 32px; max-width: 680px; }
.checkcard h2 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 22px; }
.checkcard > p { margin: 6px 0 14px; color: var(--muted); }
.checkcard form { display: grid; gap: 16px; }
.vote { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vote button {
  min-height: 52px; border-radius: 11px; border: 2px solid var(--line); background: var(--paper);
  font-weight: 800; font-stretch: 125%; font-size: 22px;
}
.vote button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.vote-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.checkdone { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--well); border-radius: var(--radius); margin: 0 0 30px; font-weight: 600; }

.week { margin: 26px 0 0; }
.week-head { border-bottom: 2px solid var(--ink); padding-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.week-head h2 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 20px; }
.answer { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.answer .vote-big { font-weight: 850; font-stretch: 125%; font-size: 34px; line-height: 1; }
.answer .vote-big small { font-size: 14px; color: var(--muted); font-weight: 600; }
.answer h3 { margin: 0 0 4px; font-size: 16px; font-weight: 750; }
.answer p { margin: 4px 0 0; font-size: 14.5px; white-space: pre-line; }
.answer p b { font-weight: 650; }
.answer.missing { color: var(--muted); }

/* ---------- accesso ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; }
.login-in { width: 100%; max-width: 400px; }
.login-mark { font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; line-height: .9; margin: 0 5px 30px 0; padding: 18px 20px 20px; }
.login-mark .a { display: block; font-size: 88px; }
.login-mark .b { display: block; font-size: 40px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.login p.lead { margin: 0 0 12px; color: var(--muted); }
.who-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.who-list button {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left;
  padding: 16px 2px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.who-list button:hover { background: var(--well); }
.who-list b { font-weight: 800; font-stretch: 125%; font-size: 22px; }
.who-list span { color: var(--muted); font-size: 14px; }
.pin-name { font-weight: 850; font-stretch: 125%; font-size: 34px; margin: 0; letter-spacing: -.02em; }
.dots { display: flex; gap: 14px; margin: 22px 0 8px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i.on { background: var(--ink); }
.dots.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.pin-msg { min-height: 22px; color: var(--brand-deep); font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keys button {
  height: 64px; border: 0; border-radius: 14px; background: var(--well);
  font-weight: 700; font-stretch: 112%; font-size: 26px;
}
.keys button:active { background: var(--line); }
.keys button.fn { background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); font-stretch: 100%; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 14px 12px 18px;
  display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px;
  transition: opacity .2s ease, transform .2s ease; width: max-content; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: none; border: 0; color: var(--brand); font-weight: 750; padding: 4px 6px; }

.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.error-box { margin: 24px 0; padding: 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v2: le 3 priorità, le 3 cose di oggi, decisioni per area ---------- */
.now { margin: 0 0 34px; }
.now-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; }
.now-head h2 { margin: 0; font-weight: 850; font-stretch: 125%; font-size: 24px; letter-spacing: -.02em; }
.now-head span { color: var(--muted); font-size: 14.5px; }
.now-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.now-tile {
  text-align: left; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; gap: 3px; min-height: 158px; min-width: 0;
}
.now-tile:hover { background: var(--well); }
.now-days strong { display: block; font-weight: 850; font-stretch: 125%; font-size: clamp(34px, 9.5vw, 58px); line-height: .92; letter-spacing: -.03em; }
.now-days > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-top: 3px; }
.now-days.late strong { color: var(--brand-deep); }
.now-title { font-weight: 750; font-size: 15px; line-height: 1.2; margin-top: 8px; overflow-wrap: anywhere; }
.now-foot { font-size: 12.5px; color: var(--muted); }
.now-bar { display: block; height: 5px; border-radius: 99px; background: var(--well); overflow: hidden; margin-top: auto; }
.now-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.now-tasks { font-size: 12px; font-weight: 600; color: var(--muted); }
.now-tile.empty { border: 2px dashed #C9C5BF; justify-content: center; color: var(--muted); }
.now-tile.empty .now-title { margin: 0; color: var(--ink); }
@media (min-width: 900px) {
  .now-tile { padding: 16px 18px; min-height: 176px; }
  .now-title { font-size: 17px; }
}

.chip.dec { background: transparent; border: 1.5px solid var(--line); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.more-wrap { margin-top: 6px; }
.top3 .t-what { font-size: 16.5px; }

/* home: sul telefono le 3 cose di oggi salgono in alto */
@media (max-width: 979px) {
  .home-grid { display: flex; flex-direction: column; gap: 0; }
  .home-grid > .col-left, .home-grid > .col-right { display: contents; }
  .b-call { order: 1; } .b-check { order: 2; } .b-top3 { order: 3; } .b-focus { order: 4; }
  .b-month { order: 5; } .b-commit { order: 6; } .b-late { order: 7; }
}

/* decisioni */
.lead-muted { color: var(--muted); margin: 12px 0 0; }
.dgroup { margin: 22px 0 6px; }
.dgroup-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.dgroup-head h2 { margin: 0; font-weight: 850; font-stretch: 125%; font-size: 22px; }
.dgroup-head span { color: var(--muted); font-size: 14px; }
.area { margin-top: 18px; }
.area h3 { margin: 0; padding: 0 0 8px; font-size: 14px; font-weight: 750; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.area h3 span { color: var(--muted); font-weight: 600; }
.decision > .d-head { padding: 14px 0; gap: 7px; }
.d-title { font-weight: 720; font-stretch: 108%; font-size: 17px; line-height: 1.25; }
.decision.is-now > .d-head { padding-left: 14px; border-left: 4px solid var(--brand); }
.decision.closed .d-title { color: var(--muted); }
.decision.just-closed .d-title { animation: closed 1.2s ease; }
.d-full { margin: 0 0 10px; font-size: 15px; line-height: 1.5; max-width: 70ch; }
.d-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 2px 0 12px; }
.seg.small { margin: 0; }
.seg.small button { padding: 6px 12px; font-size: 13.5px; }
.d-area select { width: auto; min-height: 36px; padding: 5px 10px; font-size: 14px; border-radius: 999px; }

.next-up { margin: 12px 0 4px; font-size: 14.5px; color: var(--muted); }
.next-up b { color: var(--ink); font-weight: 650; }
