/* Feedback: componenti condivisi, scoped; nessun cambiamento al resto della PWA. */
.sdsc-feedback { max-width:100%; color:var(--bl-ink,var(--sdsc-testo)); }
.sdsc-feedback-form { width:100%; max-width:720px; }
.sdsc-feedback .sdsc-feedback-section { margin-block:20px; }
.sdsc-feedback :is(p,dd,dt,summary) { overflow-wrap:anywhere; }
.sdsc-feedback :is(h2,h3) { text-wrap:balance; }
.sdsc-feedback p { max-width:72ch; }
.sdsc-feedback-form .sdsc-campo { display:block; margin-block:20px; }
.sdsc-feedback-form .sdsc-campo > label { display:block; margin-bottom:8px; font-size:14px; font-weight:700; line-height:1.5; }
.sdsc-feedback :is(select,textarea) { width:100%; max-width:100%; min-height:44px; box-sizing:border-box; color:var(--bl-ink); background:var(--bl-surf); border:1px solid var(--bl-line2); border-radius:10px; padding:12px; font:inherit; }
.sdsc-feedback textarea { min-height:116px; resize:vertical; }
.sdsc-feedback :is(button,a,summary,input,select,textarea):focus-visible { outline:3px solid var(--sdsc-focus,#FDD633); outline-offset:3px; }
.sdsc-rpe-fieldset { min-width:0; margin:24px 0 12px; padding:0; border:0; }
.sdsc-rpe-fieldset legend { margin-bottom:12px; padding:0; font-size:16px; font-weight:700; line-height:1.5; }
.sdsc-feedback-selezione { min-height:24px; margin:12px 0; font-size:14px; font-weight:700; }
.sdsc-feedback-ancore,.sdsc-feedback-protocollo { margin-block:14px; }
.sdsc-feedback :is(.sdsc-feedback-ancore,.sdsc-feedback-protocollo,.sdsc-feedback-dettaglio) > summary { display:list-item; min-height:44px; box-sizing:border-box; padding-block:12px; cursor:pointer; font-size:13px; font-weight:700; }
.sdsc-rpe-ancore { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; margin:8px 0 16px; font-size:13px; }
.sdsc-rpe-ancore > div { display:flex; align-items:baseline; gap:10px; min-width:0; }
.sdsc-rpe-ancore dt { min-width:20px; font-weight:700; }
.sdsc-rpe-ancore dd { margin:0; }
.sdsc-feedback-conteggio { margin:8px 0 0; color:var(--bl-ink2); font-size:12px; }
.sdsc-feedback-errore { color:var(--sdsc-pericolo-testo,#9A261F); font-weight:700; }
.sdsc-feedback-voto { margin-block:12px; font-size:16px; }
.sdsc-feedback-voto strong { font-size:28px; font-weight:700; letter-spacing:-.02em; }
.sdsc-feedback-testi { margin-block:20px; }
.sdsc-feedback-testi > div { padding-block:12px; border-top:1px solid var(--bl-line); }
.sdsc-feedback-testi dt { font-size:13px; font-weight:700; }
.sdsc-feedback-testi dd { margin:6px 0 0; white-space:normal; }
.sdsc-feedback-meta { display:grid; gap:12px; margin:10px 0; font-size:12px; }
.sdsc-feedback-meta dt { color:var(--bl-ink2); }
.sdsc-feedback-meta dd { margin:3px 0 0; }
.sdsc-feedback-privato { border-top:1px solid var(--bl-line); }
.sdsc-feedback-conteggi { display:flex; flex-wrap:wrap; gap:12px 24px; margin:20px 0; }
.sdsc-feedback-conteggi dt { color:var(--bl-ink2); font-size:12px; }
.sdsc-feedback-conteggi dd { margin:3px 0 0; font-size:20px; font-weight:700; }
.sdsc-feedback-history .sdsc-feedback-dettaglio { max-width:40ch; }
.sdsc-feedback-history .sdsc-tabella p { margin-block:6px; }
@media (max-width:390px) { .sdsc-rpe-ancore { gap:8px 12px; font-size:12px; } }

/* Filtri server dello storico: gli stessi conteggi complessivi del riepilogo. */
.sdsc-feedback-history .sdsc-feedback-filtri { display:flex; flex-wrap:wrap; gap:8px; margin-block:20px; scroll-margin-block-start:24px; }
.sdsc-feedback-history .sdsc-feedback-filtri a { display:inline-flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; max-width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid var(--bl-line2); border-radius:10px; background:var(--bl-surf); color:var(--bl-ink); font-size:13px; font-weight:600; line-height:1.5; text-decoration:none; }
.sdsc-feedback-history .sdsc-feedback-filtri a[aria-current="page"] { border-color:var(--bl-ink); background:var(--bl-sunk); box-shadow:inset 0 0 0 1px var(--bl-ink); font-weight:700; }
.sdsc-feedback-filtro-conteggio { font-variant-numeric:tabular-nums; }

/* Composizione compatta: le altre letture feedback restano invariate. */
body.sdsc .sdsc-feedback-form--compose { display:grid; gap:16px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-section { margin:0; padding:20px; border-radius:16px; box-shadow:none; }
body.sdsc .sdsc-feedback-form--compose h2 { margin:0 0 12px; font-size:20px; font-weight:700; line-height:1.35; }
body.sdsc .sdsc-feedback-form--compose .sdsc-campo { margin-block:16px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-campo > label { margin-bottom:8px; font-size:13px; font-weight:600; }
body.sdsc .sdsc-app-feedback .sdsc-feedback-form--compose :is(textarea,select) { min-height:48px; border-radius:12px; font-size:16px; }
body.sdsc .sdsc-feedback-form--compose textarea { min-height:96px; padding:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-fieldset { margin:20px 0 8px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-fieldset legend { margin-bottom:12px; font-size:13px; font-weight:600; color:var(--bl-ink2); }
.sdsc-rpe-widget { min-width:0; padding:16px; border:1px solid var(--bl-line2); border-radius:14px; background:var(--bl-sunk); }
.sdsc-rpe-score { display:flex; align-items:center; gap:16px; min-height:60px; margin-bottom:12px; }
.sdsc-rpe-score-number { display:flex; align-items:baseline; gap:6px; flex:none; font-variant-numeric:tabular-nums; }
.sdsc-rpe-score-number output { min-width:1.4ch; font-size:44px; font-weight:700; line-height:1.15; letter-spacing:-.04em; }
.sdsc-rpe-score-number > span { color:var(--bl-ink3); font-size:12px; white-space:nowrap; }
.sdsc-rpe-score .sdsc-feedback-selezione { min-width:0; margin:0; font-size:13px; font-weight:600; line-height:1.5; }
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"] { display:block; appearance:none; -webkit-appearance:none; box-sizing:border-box; width:100%; min-width:0; max-width:100%; height:48px; min-height:48px; max-height:48px; margin:0; padding:0; border:0; border-radius:0; background:transparent; cursor:ew-resize; touch-action:pan-y; }
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"]::-webkit-slider-runnable-track { height:8px; border:0; border-radius:8px; background:linear-gradient(90deg,#319879 0%,#D9AB43 50%,#CA625D 100%); }
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"]::-moz-range-track { height:8px; border:0; border-radius:8px; background:linear-gradient(90deg,#319879 0%,#D9AB43 50%,#CA625D 100%); }
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:28px; height:28px; margin-top:-10px; box-sizing:border-box; border:3px solid var(--bl-surf); border-radius:50%; background:var(--bl-ink); box-shadow:0 0 0 1px var(--bl-line2); }
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"]::-moz-range-thumb { width:28px; height:28px; box-sizing:border-box; border:3px solid var(--bl-surf); border-radius:50%; background:var(--bl-ink); box-shadow:0 0 0 1px var(--bl-line2); }
body.sdsc .sdsc-feedback-form--compose [data-rpe-widget][hidden],
body.sdsc .sdsc-feedback-form--compose input.sdsc-rpe-slider[type="range"][hidden] { display:none; }
.sdsc-rpe-ticks { display:flex; justify-content:space-between; gap:0; color:var(--bl-ink2); font-size:10px; font-variant-numeric:tabular-nums; line-height:1.5; }
.sdsc-rpe-ticks > span { min-width:1.5ch; text-align:center; }
.sdsc-rpe-aiuto { margin:10px 0 0; color:var(--bl-ink2); font-size:12px; line-height:1.5; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-ancore { margin:4px 0 12px; padding-bottom:8px; border-bottom:1px solid var(--bl-line); }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-ancore > summary { font-size:12px; font-weight:600; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-conteggio { margin-top:6px; text-align:right; font-size:11px; }
.sdsc-feedback-submit { margin-top:20px; padding-top:16px; border-top:1px solid var(--bl-line); }
.sdsc-feedback-submit > p { margin:0 0 12px; font-size:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-submit .sdsc-bottone { width:100%; min-height:48px; font-family:inherit; font-size:14px; font-weight:700; }
@media (max-width:350px) {
  body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-section { padding:16px; }
  .sdsc-rpe-widget { padding:12px; }
  .sdsc-rpe-score { gap:12px; }
  .sdsc-rpe-score-number output { font-size:40px; }
}

body.sdsc .sdsc-feedback-form--compose [data-rpe-error][hidden] { display:none; }

/* Compattezza richiesta: stesso registro della home, senza nascondere il protocollo. */
body.sdsc .sdsc-app-feedback { max-width:1080px; margin-inline:auto; }
body.sdsc .sdsc-app-feedback > .sdsc-scheda-testo { margin:0 0 8px; font-size:12px; }
body.sdsc .sdsc-app-feedback .sdsc-app-testa { margin:8px 0 16px; }
body.sdsc .sdsc-app-feedback .sdsc-app-titolo { font-size:24px; line-height:1.2; margin:0 0 6px; }
body.sdsc .sdsc-feedback-form--compose { max-width:none; grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); align-items:start; gap:16px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-section { padding:16px; border-radius:16px; }
body.sdsc .sdsc-feedback-form--compose h2 { font-size:16px; margin-bottom:8px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-section > p { margin:6px 0; font-size:12px; line-height:1.5; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-fieldset { margin:12px 0 4px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-fieldset legend { margin-bottom:8px; font-size:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-widget { border:0; border-radius:10px; padding:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-score { min-height:36px; margin:0; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-score-number output { font-size:32px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-score .sdsc-feedback-selezione { font-size:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-rpe-aiuto { margin-top:6px; font-size:11px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-ancore { margin:0; padding:0; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-ancore > summary { padding:10px 0; min-height:44px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-campo { margin:10px 0; }
body.sdsc .sdsc-feedback-form--compose textarea { min-height:72px; padding:10px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-extra > summary { display:flex; justify-content:space-between; gap:8px; align-items:center; min-height:44px; cursor:pointer; font-size:14px; font-weight:700; }
.sdsc-feedback-extra > summary::after { content:'+'; font-size:20px; font-weight:400; }
.sdsc-feedback-extra[open] > summary::after { content:'−'; }
.sdsc-feedback-extra > summary span { margin-left:auto; color:var(--bl-ink2); font-size:11px; font-weight:400; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-submit { margin-top:12px; padding-top:12px; }
body.sdsc .sdsc-feedback-form--compose .sdsc-feedback-submit > p { margin:0 0 8px; font-size:11px; }
@media(max-width:760px) { body.sdsc .sdsc-feedback-form--compose { grid-template-columns:minmax(0,1fr); gap:12px; } }

body.sdsc.sdsc-area-atleta .sdsc-app.sdsc-app-feedback { max-width:1080px; margin-inline:auto; }
