:root {
  --teal: #0E5761; --teal-d: #0A434B; --teal-l: #E3EEEF;
  --lime: #D6D243; --lime-l: #F6F5D6;
  --bg: #F4F7F7; --card: #fff; --ink: #11282C; --muted: #607977; --line: #DCE6E6;
  --red: #C0392B; --red-l: #FBE9E7; --green: #1F9D6B; --r: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 19px; }
h3 { font-size: 13px; margin: 28px 0 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
a { color: var(--teal); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .err { color: var(--red); min-height: 1em; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.grow { flex: 1; min-width: 0; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .right { text-align: right; }
.note { background: var(--lime-l); border-radius: 10px; padding: 10px 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Bottoni e form */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--teal-d); } .btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.danger, .linkbtn.danger { color: var(--red); } .btn.sm { padding: 6px 12px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--lime); cursor: pointer; text-decoration: underline; margin-right: 12px; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hint { font-weight: 400; font-size: 12px; } .hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; }
input, select, textarea { font: inherit; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
input[type=range] { padding: 0; border: 0; accent-color: var(--teal); box-shadow: none; }
textarea { min-height: 80px; resize: vertical; } .mdedit { min-height: 260px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.rv { color: var(--teal); }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.search { max-width: 420px; margin-bottom: 6px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, var(--teal), var(--teal-d)); }
.login form { width: 100%; max-width: 380px; display: grid; gap: 12px; text-align: center; padding: 36px 28px; }
.login img { width: 64px; margin: 0 auto; }

/* Layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--teal); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; padding: 0 10px 20px; letter-spacing: .03em; }
.brand img { width: 34px; background: #fff; border-radius: 50%; padding: 4px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #CFE2E3; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: var(--lime); color: var(--teal-d); }
.ni { width: 22px; text-align: center; }
.me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding: 14px 10px 0; font-size: 13px; }
.me-teams { opacity: .75; margin-bottom: 8px; }
main { padding: 32px; max-width: 1280px; width: 100%; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph p { max-width: 680px; margin: 0; }

/* Card e liste */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
[data-open] { cursor: pointer; }
.card[data-open]:hover, .item[data-open]:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(14,87,97,.08); }
.card p { margin: 0; font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { justify-self: start; display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--lime-l); color: var(--teal-d); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.list { display: grid; gap: 8px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.item p { margin: 0; font-size: 13px; } .small-item { padding: 10px 14px; }
.date { background: var(--teal); color: #fff; border-radius: 10px; width: 52px; text-align: center; padding: 6px 0; flex-shrink: 0; }
.date b { display: block; font-size: 20px; line-height: 1; } .date span { font-size: 11px; text-transform: uppercase; }
.past { opacity: .6; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r); background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.chip:hover { border-color: var(--teal); } .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Home */
.goalhero { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--teal), #13707C); color: #fff; border-radius: 18px; padding: 18px 22px; text-decoration: none; margin-bottom: 18px; }
.goalhero b { display: block; font-size: 19px; margin: 2px 0 8px; } .goalhero .muted { color: #CFE2E3; }
.gh-ic { font-size: 34px; background: rgba(255,255,255,.12); border-radius: 14px; width: 58px; height: 58px; display: grid; place-items: center; }
.gh-go { font-weight: 700; color: var(--lime); white-space: nowrap; }
.meter { height: 8px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; max-width: 420px; margin-bottom: 4px; }
.meter span { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; border-top: 5px solid var(--teal); }
.hbox.late { border-top-color: var(--red); } .hbox.now { border-top-color: var(--lime); } .hbox.next { border-top-color: #9DB7B9; }
.hbox h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0; }
.count { font-size: 12px; background: var(--bg); border-radius: 99px; padding: 1px 9px; }
.mlist { display: grid; gap: 4px; margin-top: 10px; } .none { padding: 6px 0; }
.mrow { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.mrow:hover { background: var(--bg); } .mrow p { margin: 0; }
.mwhen { font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; }
.mini { height: 4px; background: var(--line); border-radius: 99px; margin-top: 4px; width: 90px; margin-left: auto; overflow: hidden; } .mini span { display: block; height: 100%; }
.late { color: var(--red); } .now { color: var(--teal); } .soon { color: #7A6A00; } .done { color: var(--green); }

/* Timeline */
.tl-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--teal); color: #fff; }
.legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-late { background: var(--red); } .lg-done { background: var(--green); } .lg-today { width: 2px !important; height: 14px !important; background: var(--red); }
.tl-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.tl { position: relative; }
.tl-row { display: flex; min-height: 44px; border-bottom: 1px solid #EEF3F3; }
.tl-lab { width: 240px; flex-shrink: 0; position: sticky; left: 0; z-index: 3; background: #fff; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); min-width: 0; }
.tl-lab b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lab span { font-size: 11.5px; font-weight: 600; }
.tl-lab[data-open]:hover b { color: var(--teal); text-decoration: underline; }
.tl-trk { position: relative; flex: 1; }
.tl-row.grp { min-height: 34px; background: #F8FAFA; }
.tl-row.grp .tl-lab { background: #F8FAFA; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; font-weight: 800; font-size: 13px; }
.tl-head { position: sticky; top: 0; z-index: 4; min-height: 46px; background: #fff; border-bottom: 1.5px solid var(--line); }
.tm { position: absolute; top: 6px; padding-left: 6px; font-size: 12px; font-weight: 800; color: var(--teal); text-transform: capitalize; white-space: nowrap; }
.tm small { display: block; font-weight: 500; color: var(--muted); }
.tw { position: absolute; bottom: 4px; font-size: 11px; color: var(--muted); padding-left: 4px; }
.tl-lines { position: absolute; top: 0; bottom: 0; left: 240px; pointer-events: none; z-index: 1; }
.vl { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #E6EDED; } .vl.m { border-left: 1px solid #D7E2E2; }
.today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.today-pill { position: absolute; bottom: 3px; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; z-index: 1; }
.tbar { position: absolute; top: 8px; height: 28px; background: color-mix(in srgb, var(--c) 28%, #fff); border: 1.5px solid var(--c); border-radius: 8px; z-index: 2; cursor: grab; display: flex; align-items: center; overflow: visible; touch-action: none; user-select: none; transition: box-shadow .15s; }
.tbar:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.tbar.dragging { cursor: grabbing; opacity: .85; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.tbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 6px 0 0 6px; }
.tbar .tx { position: relative; padding: 0 10px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tbar.narrow .tx { position: absolute; left: 100%; color: var(--ink); text-shadow: none; padding-left: 8px; overflow: visible; }
.tbar.late { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-l); }
.tbar.done { --c: var(--green) !important; opacity: .75; }
.grip { position: absolute; right: -2px; top: 3px; bottom: 3px; width: 8px; border-radius: 4px; cursor: ew-resize; background: rgba(255,255,255,.7); border: 1px solid var(--c); opacity: 0; }
.tbar:hover .grip { opacity: 1; }
#tip { position: fixed; display: none; z-index: 30; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; max-width: 290px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#tip .late { color: #FF9A8A; } #tip .done { color: #7DE0B5; } #tip .now, #tip .soon { color: var(--lime); }
.tip-hint { margin-top: 6px; opacity: .6; font-size: 11px; }

/* Roadmap stile Miro */
.rm-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; margin-bottom: 10px; }
.board { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background-color: #FAFBFB; background-image: radial-gradient(#C9D6D6 1.2px, transparent 1.2px); background-size: 22px 22px; }
.board-in { display: flex; align-items: stretch; gap: 0; padding: 26px; min-width: max-content; }
.bcol { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; padding: 12px; border-radius: 16px; border: 2px dashed transparent; transition: background .15s; }
.bcol.over { background: rgba(14,87,97,.06); border-color: var(--teal); }
.bcol-h { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.arrow { align-self: center; color: #9DB7B9; width: 40px; flex-shrink: 0; } .arrow svg { width: 40px; }
.sticky { background: var(--pi, #FFF3A3); padding: 12px 12px 14px; border-radius: 3px 3px 14px 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.08); transform: rotate(var(--rot)); transition: transform .15s, box-shadow .15s; display: grid; gap: 6px; cursor: grab; border-top: 4px solid var(--c); }
.sticky:hover { transform: rotate(0) scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.sticky.dragging { opacity: .4; }
.sticky b { font-size: 14px; line-height: 1.3; } .sticky p { margin: 0; font-size: 12.5px; color: #3A4F52; }
.st-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.st-team { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.st-status { font: inherit; font-size: 11px; font-weight: 700; border: 0; border-radius: 99px; padding: 2px 9px; background: rgba(255,255,255,.75); cursor: pointer; white-space: nowrap; }
.st-status:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--c); }
.st-done { opacity: .75; } .st-done b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.st-done .st-status { background: var(--green); color: #fff; } .st-doing .st-status { background: var(--teal); color: #fff; }
.st-owner { font-size: 11.5px; font-weight: 600; }
.addnote { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.6); border: 1.5px dashed #B9CBCB; border-radius: 10px; padding: 10px; cursor: pointer; }
.addnote:hover { color: var(--teal); border-color: var(--teal); background: #fff; }
.goalcol { width: 290px; } .goalcol .bcol-h { background: var(--teal); color: #fff; border-color: var(--teal); }
.goalcard { background: #fff; border: 3px solid var(--lime); border-radius: 22px; padding: 22px 18px; text-align: center; display: grid; gap: 8px; justify-items: center; box-shadow: 0 10px 30px rgba(14,87,97,.15); }
.goalcard b { font-size: 18px; } .goalcard p { margin: 0; font-size: 13px; color: var(--muted); }
.gc-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--teal-l) 0); }
.gc-ring span { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--teal); }

/* Modal e dettagli */
#modal:empty { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(10,40,45,.5); display: grid; place-items: start center; padding: 40px 16px; overflow-y: auto; z-index: 10; }
.modal { background: #fff; border-radius: 18px; padding: 24px; width: 100%; max-width: 640px; }
.modal.wide { max-width: 940px; }
.dh h2 { margin: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); font-weight: 600; font-size: 13px; }
.stamp { margin-top: 14px; }
.whenbox { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--teal-l); margin: 14px 0 10px; font-size: 14px; }
.whenbox.late { background: var(--red-l); } .whenbox.done { background: #E3F6EC; } .whenbox span { color: var(--ink); }
.quick { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; } .quick label { flex: 1; min-width: 200px; }
.comments { display: grid; gap: 10px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.comment { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }
.sticky-actions { position: sticky; bottom: -24px; background: #fff; padding: 12px 0 0; border-top: 1px solid var(--line); }

/* Documenti */
.doc-card b { font-size: 15px; } .doc-ic { font-size: 22px; }
.doc-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 0; }
.lead { font-size: 15.5px; color: #3A4F52; margin: 6px 0 12px; }
.doc-actions { margin-bottom: 14px; }
.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: var(--bg); }
.preview iframe { width: 100%; height: 70vh; border: 0; display: block; } .preview img { max-width: 100%; display: block; margin: 0 auto; } .preview p { padding: 14px; margin: 0; }
.doc { font-size: 15.5px; line-height: 1.7; max-width: 760px; padding: 6px 2px 10px; }
.doc h2 { font-size: 24px; margin: 18px 0 10px; color: var(--teal-d); } .doc h3 { font-size: 18px; text-transform: none; letter-spacing: 0; margin: 22px 0 8px; color: var(--teal); }
.doc h4 { font-size: 15.5px; margin: 16px 0 6px; } .doc p { margin: 0 0 10px; } .doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; } .doc li { margin-bottom: 4px; }
.doc blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--lime-l); border-left: 4px solid var(--lime); border-radius: 8px; }
.doc b { color: var(--teal-d); }

/* Quiz */
.sched { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin: 8px 0 4px; font-size: 11px; font-weight: 700; }
.sched div { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; border-right: 2px solid #fff; padding: 0 2px; }
.s0 { background: var(--teal-l); color: var(--teal); } .s1 { background: var(--lime); color: var(--teal-d); }
.b1 { --q: #7DB8B0; } .b2 { --q: #2F8A8F; } .b3 { --q: #0A434B; }
.sched .b1, .sched .b2, .sched .b3 { background: var(--q); color: #fff; }
fieldset.q, .qv { border: 1.5px solid var(--line); border-left: 6px solid var(--q); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
fieldset.q legend { font-weight: 800; color: var(--teal); padding: 0 6px; } fieldset.q legend span { color: var(--q); font-weight: 600; }
.qed, .qview { display: grid; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1.4fr .6fr 1.4fr; gap: 10px; }
.qv { gap: 2px; font-size: 14px; } .qv ul { margin: 4px 0; padding-left: 18px; } .qv p { margin: 0; color: var(--teal); font-weight: 700; }

/* Admin */
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
td select { min-width: 110px; padding: 6px 8px; }
td.ck { text-align: center; } td.ck input { width: 18px; height: 18px; accent-color: var(--teal); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--teal-d); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 40; max-width: calc(100vw - 32px); }
#toast:empty { display: none; }

@media (max-width: 1000px) { .hgrid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px 16px; min-width: 0; }
  .brand { padding-bottom: 8px; }
  .nav { display: flex; overflow-x: auto; gap: 4px; }
  .nav a { white-space: nowrap; }
  .me { margin-top: 8px; }
  main { padding: 20px 16px; }
  .grid4, .grid3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .tl-lab { width: 150px; } .tl-lines { left: 150px; }
  .goalhero { flex-wrap: wrap; } .legend { display: none; }
}

/* Team e mansioni */
.me-job { color: var(--lime); font-weight: 600; margin: 2px 0; }
.person .job { color: var(--teal); font-weight: 700; font-size: 13px; }
.person a { text-decoration: none; }
.grid4 .span { grid-column: 1 / -1; }
.grid4 label.chk { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }
.grid4 label.chk input { width: 18px; height: 18px; accent-color: var(--teal); }
td input[data-job] { margin-top: 6px; padding: 5px 8px; font-size: 13px; min-width: 190px; }

/* Guida */
.gtoc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gsec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 18px; scroll-margin-top: 16px; }
.gsec h2 { display: flex; align-items: center; gap: 10px; }
.gsec .lead { margin: 0 0 14px; max-width: 760px; }
.gsec h3 { margin-top: 20px; }
.gshot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 14px; }
.gshot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(14,87,97,.10); cursor: zoom-in; display: block; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.gsteps li { display: flex; gap: 10px; align-items: flex-start; }
.gnum { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #E8364F; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; margin-top: 1px; }
.gtips { margin-top: 16px; background: var(--lime-l); border-radius: 12px; padding: 4px 16px; font-size: 14px; }
.gfaq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.gfaq summary { font-weight: 700; cursor: pointer; }
.gfaq p { margin: 8px 0 0; color: var(--muted); }
.gsec .cards .card p { margin: 0; }
.gzoom { width: 100%; border-radius: 10px; display: block; }
@media (max-width: 1100px) { .gshot { grid-template-columns: 1fr; } }
.modal:has(.gzoom) { max-width: 1400px; }

/* Suggerimenti */
.nbadge { margin-left: auto; background: #E8364F; color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.nbadge:empty { display: none; }
.slist { display: grid; gap: 10px; }
.sugg { gap: 8px; }
.sugg.st-new { border-left: 5px solid #E8364F; }
.sugg.st-done { opacity: .75; }
.sbody { white-space: pre-wrap; margin: 0; font-size: 14.5px !important; }
.sstat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.sstat.s-new { background: #FDE4E8; color: #C0233B; } .sstat.s-done { background: #D9F2E6; color: var(--green); }
.sreply { background: var(--teal-l); border-radius: 10px; padding: 8px 12px; }
.sreply p { margin: 2px 0 0; white-space: pre-wrap; }
.sact { margin-top: 2px; }
label.chk { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); cursor: pointer; }
label.chk input { width: 17px; height: 17px; accent-color: var(--teal); }
label.pill { border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 12px; background: #fff; }
label.pill:has(input:checked) { border-color: var(--teal); background: var(--teal-l); }
.notif { display: grid; gap: 10px; text-align: center; }
.notif .list, .notif .row { text-align: left; }
.notif-ic { font-size: 40px; width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; background: var(--lime-l); border-radius: 50%; animation: pop .5s ease; }
.notif .clamp { margin: 2px 0 0; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
label.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip.on .count { background: rgba(255,255,255,.22); color: #fff; }
