/* =====================================================================
   HORIZON PERFORMANCE — app.css
   Layout e componenti. Colori, raggi e ombre vengono da horizon-tokens.css.

   CONVENZIONI
   - solo selettori di classe: gli id lato client sono rigenerati da ASP.NET
     (ctl00_...) e non sono affidabili nel CSS
   - prefisso hz-, blocco__elemento, blocco--variante
   - ogni blocco marcato [ascx: Nome] e' candidato a diventare user control

   BREAKPOINT (unici del progetto, dichiarati qui)
   - <= 1240px  nasconde la ricerca nell'header
   - <= 1080px  nav principale collassata nel menu hamburger
   - <=  900px  layout a colonna singola (mobile)
   - <=  420px  compattazione padding
   ===================================================================== */

.hz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------- header [ascx: HeaderPrimario] ---------------- */
.hz-header { position: sticky; top: 0; z-index: 40; background: var(--brand-grad); border-bottom: 1px solid rgba(255,255,255,.12); }
.hz-header__inner { max-width: 1380px; margin: 0 auto; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 0 20px; }
.hz-logo { display: flex; align-items: center; flex-shrink: 0; color: var(--on-brand); }
.hz-logo__svg { height: 22px; width: auto; flex-shrink: 0; }
.hz-burger { display: none; width: 38px; height: 38px; flex-shrink: 0; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-input); color: var(--on-brand); cursor: pointer; }



/* ---------------- nav [ascx: NavPrincipale] ---------------- */
.hz-nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hz-nav__item { position: relative; }
.hz-nav__link { display: flex; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 14px; color: rgba(255,255,255,.72); white-space: nowrap; text-decoration: none; cursor: pointer; }
.hz-nav__link:hover { color: var(--on-brand); text-decoration: none; }
.hz-nav__link--active { font-weight: 700; color: var(--on-brand); border-bottom: 2px solid var(--on-brand); }
.hz-nav__chev { transition: transform .18s ease-out; }
.hz-nav__link[aria-expanded="true"] { color: var(--on-brand); }
.hz-nav__link[aria-expanded="true"] .hz-nav__chev { transform: rotate(180deg); }
.hz-nav__menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 214px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-input); box-shadow: var(--shadow); z-index: 30; }
.hz-nav__menu.is-open { display: block; }
.hz-nav__menu a { display: block; padding: 9px 11px; border-radius: var(--r-input); font-size: 13.5px; color: var(--text); text-decoration: none; }
.hz-nav__menu a:hover { background: var(--accent-soft); color: var(--accent-deep); text-decoration: none; }

/* ---------------- strumenti header ---------------- */
.hz-header__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.hz-iconbtn { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-input); color: var(--on-brand); cursor: pointer; }
.hz-iconbtn--badge { position: relative; }
.hz-iconbtn__dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); border: 1px solid rgba(255,255,255,.5); }
/* [ascx: NotificheRichieste] */
.hz-notif__badge { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; background: var(--magenta); border: 2px solid #123a5c; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; line-height: 1; color: #fff; }
.hz-notif__badge--late { background: var(--warning); color: #08202f; }
.hz-notif .hz-notif__panel { left: auto; right: -8px; width: 340px; padding: 0; overflow: hidden; }
.hz-notif__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.hz-notif__title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.hz-notif__count { font-size: 11.5px; font-weight: 700; color: var(--dim); }
.hz-notif__list { margin: 0; padding: 4px; list-style: none; }
.hz-notif .hz-notif__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.hz-notif__text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.hz-notif__text b { color: var(--text); font-weight: 700; }
.hz-notif .hz-notif__all { padding: 11px 14px; border-top: 1px solid var(--border); border-radius: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); text-align: center; }
.hz-search { max-width: 300px; display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-pill); color: rgba(255,255,255,.68); font-size: 13px; white-space: nowrap; overflow: hidden; }
.hz-user { flex-shrink: 0; }
.hz-user__btn { display: flex; align-items: center; gap: 9px; padding: 3px 6px 3px 3px; background: none; border: 0; border-radius: var(--r-pill); font: inherit; text-align: left; color: rgba(255,255,255,.72); cursor: pointer; }
.hz-user__btn:hover, .hz-user__btn[aria-expanded="true"] { background: rgba(255,255,255,.1); color: var(--on-brand); }
.hz-user__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.hz-user__text { display: flex; flex-direction: column; line-height: 1.25; }
.hz-user__btn[aria-expanded="true"] .hz-user__chev { transform: rotate(180deg); }
.hz-user .hz-user__menu { left: auto; right: 0; min-width: 240px; padding: 0; overflow: hidden; }
.hz-user__head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.hz-user__hname { font-size: 13.5px; font-weight: 700; color: var(--text); }
.hz-user__hmail { font-size: 12px; color: var(--dim); }
.hz-user .hz-user__logout { display: flex; align-items: center; gap: 9px; margin: 4px; padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--danger); }
.hz-user .hz-user__logout:hover { background: var(--danger-soft); color: var(--danger); }
.hz-user__avatar { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); font-size: 12px; color: var(--on-brand); }
.hz-user__name { font-size: 13px; font-weight: 700; color: var(--on-brand); white-space: nowrap; }
.hz-user__role { font-size: 11px; color: rgba(255,255,255,.66); white-space: nowrap; }
.hz-theme__dark { display: none; }
[data-theme="dark"] .hz-theme__light { display: none; }
[data-theme="dark"] .hz-theme__dark { display: block; }

/* ---------------- pagina ---------------- */
.hz-main { background: var(--surface-2); }
.hz-page { max-width: 1380px; margin: 0 auto; padding: 26px 30px 40px; }
.hz-page__title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.05; }
.hz-page__sub { margin: 2px 0 22px; font-size: 13.5px; color: var(--muted); }

/* ---------------- zone ---------------- */
.hz-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.hz-zone { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border-radius: var(--r-card-lg); }
.hz-zone--fb { background: var(--zone-fb-grad); }
.hz-zone--perf { background: var(--zone-perf-grad); }
.hz-zone__head { display: flex; align-items: center; gap: 10px; }
.hz-zone__bar { width: 3px; height: 18px; flex-shrink: 0; border-radius: 2px; background: #fff; }
.hz-zone__title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; }
.hz-zone__title:hover { color: #fff; }
.hz-zone__more { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.9); white-space: nowrap; text-decoration: none; }
.hz-zone__more:hover { color: #fff; }
.hz-zone__rule { flex: 1; height: 1px; border-bottom: 1px solid rgba(255,255,255,.35); }

/* ---------------- card [ascx: Card] ---------------- */
.hz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.hz-card__body { padding: 18px 16px; }
.hz-card--pad { padding: 18px; }
.hz-card__title { font-size: 16px; font-weight: 700; }
.hz-card__title--sm { font-size: 15px; }
.hz-card__icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-input); background: var(--accent); color: var(--on-accent); }
.hz-card__icon--quiet { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.hz-card__lede { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hz-card__note { font-size: 12.5px; color: var(--muted); }
.hz-card__note b { color: var(--text); }
.hz-card__sub { font-size: 11.5px; color: var(--dim); }
.hz-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hz-stack { display: flex; flex-direction: column; gap: 10px; }
.hz-card--action { background: linear-gradient(var(--action-soft), var(--action-soft)), var(--surface); border-color: rgba(15,142,196,.35); }
.hz-card--action .hz-select, .hz-card--action .hz-textarea, .hz-card--action .hz-input, .hz-card--action .hz-chip__face { background-color: var(--surface); }

/* ---------------- pill ---------------- */
.hz-pill { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hz-pill--quiet { background: var(--surface-2); color: var(--muted); }
.hz-pill--accent { background: var(--accent-soft); color: var(--accent-deep); }
.hz-pill--success { background: var(--success-soft); color: var(--success); }

/* ---------------- progress ---------------- */
.hz-progress { display: flex; align-items: center; gap: 10px; }
.hz-progress__track { flex: 1; height: 10px; overflow: hidden; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-pill); }
.hz-progress__fill { height: 100%; background: var(--accent); }
.hz-progress__val { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------------- form [ascx: ComposerFeedback] ---------------- */
.hz-field { margin-top: 14px; }
.hz-field--first { margin-top: 0; }
.hz-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.hz-label__hint { font-weight: 700; color: var(--dim); }
.hz-input, .hz-select, .hz-textarea { width: 100%; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-input); font-family: inherit; font-size: 13.5px; color: var(--text); }
.hz-select { appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a6070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.hz-textarea { min-height: 74px; resize: vertical; }
.hz-input:focus, .hz-select:focus, .hz-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-help { margin: 6px 0 0; font-size: 11.5px; color: var(--dim); }

/* chip radio: nessun JS, e' un radio group [ascx: RadioButtonList] */
.hz-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hz-chip { position: relative; }
.hz-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hz-chip__face { display: flex; align-items: center; gap: 7px; padding: 8px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--muted); }
.hz-chip input:checked + .hz-chip__face { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.hz-chip input:focus-visible + .hz-chip__face { box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-chip__dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; }
.hz-chip__dot--ricon { background: var(--score-5); }
.hz-chip__dot--sugg { background: var(--score-2); }

/* checkbox list [ascx: CheckBoxList] */
.hz-checks { display: flex; flex-direction: column; gap: 8px; }
.hz-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-input); font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.hz-check:hover { border-color: var(--border-strong); }
.hz-check input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.hz-check__count { font-size: 11px; font-weight: 700; color: var(--accent); }

/* ---------------- bottoni [ascx: Button] ---------------- */
.hz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-input); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; }
.hz-btn:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.hz-btn--primary { padding: 11px 20px; background: var(--accent-grad); border: none; border-radius: var(--r-pill); color: #fff; box-shadow: var(--shadow-sm); }
.hz-btn--primary:hover { color: #fff; filter: brightness(.95); }
.hz-btn--sm { padding: 7px 13px; font-size: 12.5px; }
.hz-btn--block { display: flex; width: 100%; }
.hz-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hz-linkmore { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; text-decoration: none; }

/* ---------------- tabs ---------------- */
.hz-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: var(--r-input); }
.hz-tab { padding: 6px 12px; background: none; border: 0; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.hz-tab.is-active { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-sm); }

/* ---------------- lista feedback [ascx: ListaFeedback / Repeater] ---------------- */
.hz-feedlist { display: flex; flex-direction: column; gap: 14px; }
.hz-feedlist[hidden] {display: none; }
.hz-feed { display: flex; align-items: flex-start; gap: 12px; }
.hz-avatar { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.hz-avatar--accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 700; }
.hz-avatar--sm { width: 32px; height: 32px; }
.hz-feed__body { flex: 1; min-width: 0; }
.hz-feed__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hz-feed__who { font-size: 13.5px; font-weight: 700; }
.hz-feed__when { font-size: 11px; color: var(--dim); }
.hz-feed__ctx { margin-top: 3px; font-size: 12px; color: var(--muted); }
.hz-feed__text { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.hz-tag { padding: 2px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hz-tag--ricon { background: var(--accent-soft); color: var(--accent-deep); }
.hz-tag--sugg { background: var(--warning-soft); color: #8a6200; }
[data-theme="dark"] .hz-tag--sugg { color: var(--warning); }

/* ---------------- richieste ---------------- */
.hz-request { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-input); }
.hz-request__body { flex: 1; min-width: 0; }
.hz-request__title { font-size: 13px; font-weight: 700; }
.hz-empty { padding: 14px; border: 1px solid var(--border); border-radius: var(--r-input); text-align: center; font-size: 12px; color: var(--dim); }

/* ---------------- righe team [ascx: RigaPersona] ---------------- */
.hz-rows { padding: 0 18px; }
.hz-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); }
.hz-row__body { flex: 1; min-width: 0; }
.hz-row__name { font-size: 13px; font-weight: 700; }
.hz-row__note { font-size: 11px; color: var(--dim); }
.hz-card__foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); }
.hz-card__foot .hz-btn--primary { flex: 1; }

/* ---------------- esito ---------------- */
.hz-callout { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-input); color: inherit; text-decoration: none; }
.hz-callout:hover { color: inherit; text-decoration: none; border-color: var(--accent); }
.hz-callout__title { font-size: 14px; font-weight: 700; }
.hz-callout__sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.hz-locked { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-input); text-align: center; }
.hz-locked__title { font-size: 14px; font-weight: 700; }
.hz-locked__sub { margin-top: 3px; font-size: 12.5px; color: var(--dim); }

/* ---------------- footer [ascx: FooterPrimario] ---------------- */
.hz-footer { background: var(--footer); color: rgba(255,255,255,.66); }
.hz-footer__inner { max-width: 1380px; margin: 0 auto; padding: 48px 34px 28px; }
.hz-footer__top { display: flex; flex-wrap: wrap; gap: 56px; }
.hz-footer__brand { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hz-footer__brand .hz-logo__svg { height: 26px; align-self: flex-start; color: var(--on-brand); }
.hz-footer__text { font-size: 14px; line-height: 1.6; }
.hz-footer__social { display: flex; align-items: center; gap: 16px; }
.hz-footer__social a { display: flex; color: rgba(255,255,255,.66); }
.hz-footer__social a:hover { color: var(--on-brand); }
.hz-footer__col { flex: 0 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hz-footer__coltitle { margin-bottom: 6px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--on-brand); }
.hz-footer__col a { font-size: 14px; color: rgba(255,255,255,.66); text-decoration: none; }
.hz-footer__col a:hover { color: var(--on-brand); text-decoration: underline; }
.hz-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.45); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1240px) {
  .hz-search { display: none; }
}

@media (max-width: 1080px) {
  .hz-header__inner { gap: 0 12px; align-content: flex-start; }
  .hz-logo { height: 60px; }
  .hz-burger { display: flex; order: 3; }
  .hz-header__tools { order: 2; margin-left: auto; gap: 8px; }
  .hz-user__text { display: none; }
  .hz-user__chev { display: none; }
  .hz-user { position: static; }
  .hz-user .hz-user__menu { position: absolute; top: 60px; left: auto; right: 12px; width: min(280px, calc(100% - 24px)); margin: 0; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-lg); }
  .hz-user .hz-user__logout { min-height: 48px; color: var(--danger); }
  .hz-user .hz-user__logout:hover { background: var(--danger-soft); color: var(--danger); }
  .hz-nav { order: 4; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; border-top: 1px solid rgba(255,255,255,.12); }
  .hz-nav.is-open { display: flex; }
  .hz-nav__link { width: 100%; padding: 12px 4px; font-size: 15px; }
  .hz-nav__link--active { border-bottom: 0; }
  .hz-nav__chev { margin-left: auto; }
  .hz-nav__menu { position: static; min-width: 0; margin: 0 0 6px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
  .hz-nav__menu a { color: rgba(255,255,255,.8); }
  .hz-nav__menu a:hover { background: rgba(255,255,255,.1); color: var(--on-brand); }
  .hz-notif { position: static; }
  .hz-notif .hz-notif__panel { position: absolute; top: 60px; left: 12px; right: 12px; width: auto; margin: 0; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-lg); }
  .hz-notif .hz-notif__panel a { color: var(--text); }
  .hz-notif .hz-notif__panel a:hover { background: var(--accent-soft); color: var(--text); }
  .hz-notif .hz-notif__all { color: var(--accent); }
  .hz-notif .hz-notif__item { min-height: 52px; }
}

@media (max-width: 900px) {
  .hz-page { padding: 20px 16px 28px; }
  .hz-page__title { font-size: 24px; }
  .hz-split { grid-template-columns: 1fr; gap: 18px; }
  .hz-zone { padding: 14px; gap: 12px; }
  .hz-card__head { flex-wrap: wrap; }
  .hz-card__foot { flex-wrap: wrap; }
  .hz-card__foot .hz-btn--primary { flex: 1 1 100%; }
  .hz-footer__inner { padding: 34px 20px 22px; }
  .hz-footer__top { flex-direction: column; gap: 30px; }
  .hz-footer__brand, .hz-footer__col { flex: 0 0 auto; }
  .hz-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 28px; }
}

@media (max-width: 420px) {
  .hz-zone { padding: 12px; }
  .hz-card--pad, .hz-card__body { padding: 14px; }
  .hz-actions .hz-btn { flex: 1 1 100%; }
}

/* ---------------- intestazione di pagina ---------------- */
.hz-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hz-pagehead__text { min-width: 0; }
.hz-eyebrow { margin: 0; }
.hz-page__sub--tight { margin: 2px 0 0; }
.hz-pagehead .hz-page__title { margin-top: 4px; }

/* ---------------- toolbar filtri [ascx: FiltriPersone] ---------------- */
.hz-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.hz-searchfield { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--dim); }
.hz-searchfield:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-searchfield__input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: inherit; font-size: 13.5px; color: var(--text); }
.hz-chips--filter { gap: 7px; }
.hz-chip--filter .hz-chip__face { padding: 8px 13px; background: var(--surface); font-size: 12px; }
.hz-chip--filter input:checked + .hz-chip__face { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------------- tabella [ascx: TabellaPersone] ---------------- */
.hz-tablecard { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-table { width: 100%; border-collapse: collapse; }
.hz-table th { padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: left; }
.hz-table td { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.hz-table tbody tr:first-child td { border-top: 0; }
.hz-table tbody tr:hover { background: var(--surface-2); }
.hz-personcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hz-cell--avg { text-align: center; }
.hz-cell--actions { text-align: right; white-space: nowrap; }
.hz-cell--actions .hz-btn { margin-left: 8px; }
.hz-cell__note { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.hz-person { display: flex; flex-direction: column; min-width: 0; }
.hz-person__name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.hz-person__role { font-size: 11.5px; color: var(--dim); }
.hz-avatar--lg { width: 38px; height: 38px; font-size: 12.5px; font-weight: 700; }
.hz-progress--thin { display: flex; min-width: 96px; }
.hz-progress--thin .hz-progress__track { display: block; height: 8px; border-width: 1px; }
.hz-progress--thin .hz-progress__fill { display: block; border-radius: var(--r-pill); }
.hz-progress__fill--done { background: var(--success); }
.hz-progress__fill--wip { background: var(--warning); }
.hz-progress__fill--none { background: transparent; }
.hz-empty--table { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 28px; font-size: 13px; }

/* badge media 1-5 */
.hz-score { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 9px; border-radius: var(--r-input); font-size: 13px; font-weight: 700; color: #fff; }
.hz-score--1 { background: var(--score-1); }
.hz-score--2 { background: var(--score-2); color: #08202f; }
.hz-score--3 { background: var(--score-3); color: #08202f; }
.hz-score--4 { background: var(--score-4); }
.hz-score--5 { background: var(--score-5); }
.hz-score--none { background: var(--surface-2); border: 1px solid var(--border); color: var(--dim); }

/* stato scheda */
.hz-state { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hz-state--todo { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.hz-state--wip, .hz-state--draft { background: var(--warning-soft); border: 1px solid rgba(240,180,41,.45); color: #8a6510; }
.hz-state--shared { background: var(--accent-soft); border: 1px solid rgba(15,142,196,.35); color: var(--accent-deep); }
.hz-state--signed { background: var(--success-soft); border: 1px solid rgba(15,157,88,.35); color: #0b7a45; }
[data-theme="dark"] .hz-state--wip, [data-theme="dark"] .hz-state--draft { color: var(--warning); }
[data-theme="dark"] .hz-state--signed { color: var(--success); }

/* =====================================================================
   TABELLA RESPONSIVE
   Sotto i 900px ogni riga diventa una card: le celle si impilano e
   prendono l'etichetta da data-label. Nessun JS, nessun markup doppio.
   ===================================================================== */
@media (max-width: 900px) {
  .hz-pagehead { align-items: stretch; }
  .hz-pagehead .hz-btn--primary { width: 100%; }
  .hz-toolbar { gap: 10px; }
  /* filtri a chip: vanno a capo e riempiono la riga, niente scroll orizzontale */
  .hz-chips--filter { width: 100%; flex-wrap: wrap; gap: 6px; }
  .hz-chip--filter { flex: 0 0 auto; }
  .hz-chip--filter .hz-chip__face { min-height: 40px; padding: 8px 12px; white-space: nowrap; }

  .hz-tablecard { background: none; border: 0; box-shadow: none; overflow: visible; }
  .hz-table, .hz-table tbody, .hz-table tr, .hz-table td { display: block; width: auto; }
  .hz-table thead { display: none; }
  .hz-table tr { margin-bottom: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
  .hz-table tbody tr:hover { background: var(--surface); }
  .hz-table td { padding: 0; border-top: 0; }
  .hz-table tbody tr:first-child td { border-top: 0; }
  .hz-table td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
  .hz-table td[data-label]::before { content: attr(data-label); flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .hz-cell--person { padding: 0 0 12px; border-top: 0; }
  .hz-cell--person::before { display: none; }
  .hz-cell--avg { text-align: right; }
  .hz-cell__note { margin: 0 0 0 10px; }
  .hz-progress--thin { flex: 1; max-width: 160px; }
  .hz-cell--actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
  .hz-cell--actions .hz-btn { flex: 1; margin-left: 0; }
  .hz-empty--table { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
}

/* ---------------- wizard autovalutazione ---------------- */
.hz-main--flat { background: var(--surface); }
.hz-pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hz-saved { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--success-soft); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--success); }
.hz-btn--go { background: var(--success); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.hz-btn--go:hover { color: #fff; filter: brightness(.95); }
.hz-btn--accent { background: var(--accent); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.hz-btn--accent:hover { color: #fff; filter: brightness(.95); }
.hz-iconbtn--quiet { background: var(--surface); border-color: var(--border); color: var(--muted); width: 30px; height: 30px; }
.hz-iconbtn--quiet:hover { border-color: var(--border-strong); color: var(--text); }
.hz-progress--page { margin-bottom: 22px; }
.hz-progress--page .hz-progress__track { height: 11px; }
.hz-progress--page .hz-progress__val { font-size: 12px; }

.hz-wizard { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.hz-wizard__side { min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.hz-wizard__main { min-width: 0; }
.hz-wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* [ascx: NavCompetenze] */
.hz-stepselect { display: none; }
.hz-stepselect__note { margin: 8px 0 0; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.hz-steps { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-steps__title { margin: 0 0 8px; padding: 6px 6px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.hz-steps__item { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: var(--r-input); color: var(--text); text-decoration: none; }
.hz-steps__item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.hz-steps__num { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hz-steps__name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; }
.hz-steps__count { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--dim); }
.hz-steps__item--done .hz-steps__num { background: var(--success); border-color: transparent; color: #fff; }
.hz-steps__item--current { background: var(--accent-soft); }
.hz-steps__item--current .hz-steps__num { background: var(--accent); border-color: transparent; color: #fff; }
.hz-steps__item--current .hz-steps__name { color: var(--accent-deep); }

/* scala di riferimento */
.hz-scale { padding: 14px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-card); }
.hz-scale__summary { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); cursor: pointer; }
.hz-scale__body { margin-top: 12px; display: flex; flex-direction: column; gap: 13px; }
.hz-scale__row { display: flex; gap: 10px; }
.hz-scale__text { min-width: 0; }
.hz-scale__name { display: block; font-size: 12.5px; font-weight: 700; }
.hz-scale__def { display: block; font-size: 11px; line-height: 1.38; color: var(--muted); }
.hz-score--sm { min-width: 26px; height: 26px; flex-shrink: 0; padding: 0; font-size: 12.5px; }

/* intestazione competenza */
.hz-comp { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hz-comp__head { min-width: 0; }
.hz-label--plain { margin: 0 0 2px; }
.hz-comp__name { margin: 0; font-size: 21px; font-weight: 700; color: var(--accent-deep); }
.hz-comp__decl { margin: 7px 0 16px; max-width: 640px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* comportamento + voto [ascx: RigaComportamento] */
.hz-behavior { min-width: 0; margin: 0 0 10px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.hz-behavior__text { margin: 0 0 11px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.hz-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hz-rate__opts { display: flex; gap: 6px; }
.hz-rate__opt { position: relative; }
.hz-rate__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hz-rate__face { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-input); font-size: 14px; font-weight: 700; color: var(--muted); }
.hz-rate__opt:hover .hz-rate__face { border-color: var(--border-strong); }
.hz-rate__opt input:focus-visible + .hz-rate__face { box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-rate__opt input:checked + .hz-rate__face { border-color: transparent; color: #fff; }
.hz-rate__opt input:checked + .hz-rate__face--1 { background: var(--score-1); }
.hz-rate__opt input:checked + .hz-rate__face--2 { background: var(--score-2); color: #08202f; }
.hz-rate__opt input:checked + .hz-rate__face--3 { background: var(--score-3); color: #08202f; }
.hz-rate__opt input:checked + .hz-rate__face--4 { background: var(--score-4); }
.hz-rate__opt input:checked + .hz-rate__face--5 { background: var(--score-5); }
.hz-rate__label { font-size: 12.5px; font-weight: 700; }
.hz-rate__label--1 { color: var(--score-1); }
.hz-rate__label--2 { color: #8a6510; }
.hz-rate__label--3 { color: var(--success); }
.hz-rate__label--4 { color: var(--score-4); }
.hz-rate__label--5 { color: var(--score-5); }
[data-theme="dark"] .hz-rate__label--2 { color: var(--warning); }

/* azioni di sviluppo */
.hz-actionsblock { margin-top: 16px; }
.hz-action__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hz-action__num { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-input); background: var(--accent-soft); border: 1px solid var(--accent); font-size: 12px; font-weight: 700; color: var(--accent); }
.hz-action__head .hz-select { flex: 1; min-width: 0; }
.hz-action__text { width: calc(100% - 34px); margin-left: 34px; }

@media (max-width: 900px) {
  .hz-wizard { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hz-wizard__side { position: static; }
  .hz-steps { display: none; }
  .hz-stepselect { display: block; padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
  .hz-pagehead__actions { width: 100%; }
  .hz-pagehead__actions .hz-btn { flex: 1; }
  .hz-rate__opts { flex: 1; }
  .hz-rate__face { width: 100%; min-width: 44px; height: 44px; }
  .hz-rate__opt { flex: 1; }
  .hz-action__head { flex-wrap: wrap; }
  .hz-action__head .hz-select { flex: 1 1 100%; order: 3; }
  .hz-action__text { width: 100%; margin-left: 0; }
  .hz-wizard__nav .hz-btn { flex: 1; }
}

/* =====================================================================
   ACCESSO [MasterPage: Auth] - login, recupero password, primo accesso
   ===================================================================== */
/* .hz-body--auth { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg-grad); } */

.hz-body--auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-grad);
}

    .hz-body--auth > form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.hz-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.hz-auth__frame { width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-lg); box-shadow: var(--shadow); }
.hz-auth__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 36px; background: var(--brand-grad); color: var(--on-brand); }
.hz-auth__brandtop { display: flex; flex-direction: column; gap: 16px; }
.hz-auth__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hz-auth__logo .hz-logo__svg { height: 30px; }
.hz-auth__pitch { display: flex; flex-direction: column; gap: 14px; }
.hz-auth__claim { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); text-wrap: pretty; }
.hz-auth__points { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hz-auth__points li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.8); }
.hz-auth__points svg { flex-shrink: 0; }
.hz-auth__fine { margin: 0; font-size: 11.5px; color: rgba(255,255,255,.55); }
.hz-auth__pane { min-width: 0; padding: 44px 48px; }
.hz-auth__mobilelogo { display: none; }
.hz-auth__view { display: flex; flex-direction: column; gap: 20px; }
.hz-auth__view[hidden] { display: none; }
.hz-auth__head { display: flex; flex-direction: column; gap: 5px; }
.hz-auth__title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.1; }
.hz-auth__sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hz-auth__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 0; background: none; border: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.hz-auth__form { display: flex; flex-direction: column; }
.hz-auth__form[hidden] { display: none; }
.hz-auth__form > .hz-btn { margin-top: 20px; }
.hz-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: 14px; }
.hz-auth__remember { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.hz-auth__remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.hz-auth__link { padding: 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.hz-auth__link:hover, .hz-auth__back:hover { color: var(--accent-deep); text-decoration: underline; }
.hz-auth__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.hz-auth__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.hz-btn--lg { padding: 13px 20px; font-size: 15px; }

/* password con toggle */
.hz-pwd { position: relative; display: flex; align-items: center; }
.hz-pwd__input { padding-right: 88px; }
.hz-pwd__toggle { position: absolute; right: 7px; padding: 5px 11px; background: var(--accent-soft); border: 0; border-radius: var(--r-pill); font: inherit; font-size: 11.5px; font-weight: 700; color: var(--accent-deep); cursor: pointer; }

/* campo non valido: classe aggiunta lato server (CssClass) o da app.js */
.hz-input.is-invalid, .hz-textarea.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.hz-input.is-invalid:focus, .hz-textarea.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

/* alert [ascx: Messaggio] */
.hz-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid; border-radius: var(--r-card); font-size: 13.5px; line-height: 1.45; }
.hz-alert[hidden] { display: none; }
.hz-alert > svg, .hz-alert__line > svg { flex-shrink: 0; margin-top: 1px; }
.hz-alert__text { min-width: 0; color: var(--text); }
.hz-alert--danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.hz-alert--success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.hz-alert--stack { flex-direction: column; gap: 12px; }
.hz-alert__line { display: flex; align-items: flex-start; gap: 10px; }
.hz-alert__actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* requisiti password */
.hz-rules { margin-top: 16px; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-card); }
.hz-rules__list { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.hz-rules__list li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.hz-rules__list li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--border-strong); }

@media (max-width: 900px) {
  .hz-body--auth { background: var(--surface); }
  .hz-auth { align-items: flex-start; padding: 0; }
  .hz-auth__frame { grid-template-columns: minmax(0, 1fr); max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .hz-auth__brand { display: none; }
  .hz-auth__pane { padding: 0 20px 36px; }
  .hz-auth__mobilelogo { display: flex; align-items: center; margin: 0 -20px 28px; padding: 18px 20px; background: var(--brand-grad); color: var(--on-brand); }
  .hz-auth__title { font-size: 24px; }
  .hz-input { font-size: 16px; } /* evita lo zoom automatico di iOS */
  .hz-auth__pair { grid-template-columns: minmax(0, 1fr); }
  .hz-btn--lg { min-height: 48px; }
}

/* =====================================================================
   RICHIESTE DI FEEDBACK
   Desktop: due colonne (inviate | ricevute). Mobile: tab CSS-only.
   ===================================================================== */
.hz-reqs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hz-reqs__col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hz-reqs__col--sent { grid-column: 1; grid-row: 1; }
.hz-reqs__col--recv { grid-column: 2; grid-row: 1; }
.hz-reqs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.hz-reqs__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--muted); }
.hz-reqs__list { display: flex; flex-direction: column; gap: 12px; }
.hz-reqs__notice { margin-bottom: 18px; }
.hz-empty--req { margin: 0; padding: 26px; border-style: dashed; font-size: 13px; }
.hz-empty--req[hidden] { display: none; }

/* tab segmentate: visibili solo su mobile */
.hz-segtabs { display: none; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-input); }
.hz-segtab { position: relative; flex: 1; }
.hz-segtab__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hz-segtab__face { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hz-segtab__input:checked + .hz-segtab__face { background: var(--accent-grad); color: #fff; }
.hz-segtab__input:focus-visible + .hz-segtab__face { box-shadow: 0 0 0 3px var(--accent-soft); }

/* card richiesta [ascx: CardRichiesta] */
.hz-reqcard { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-reqcard--recv { background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.hz-reqcard__meta { margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.hz-reqcard__meta b { color: var(--muted); }
.hz-reqcard__comp { margin: 9px 0 0; font-size: 17px; font-weight: 700; }
.hz-reqcard__text { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hz-reqcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hz-reqcard__btns { display: flex; gap: 8px; }
.hz-age { padding: 4px 11px; background: var(--surface-2); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.hz-age--late { background: var(--warning-soft); color: #8a6510; }
[data-theme="dark"] .hz-age--late { color: var(--warning); }
.hz-btn--quiet { color: var(--muted); }

/* disclosure nativo (<details>): risposta e composer */
.hz-reply > summary, .hz-ask > summary { list-style: none; cursor: pointer; }
.hz-reply > summary::-webkit-details-marker, .hz-ask > summary::-webkit-details-marker { display: none; }
.hz-reply__close, .hz-reply[open] .hz-reply__open { display: none; }
.hz-reply[open] .hz-reply__close { display: inline-flex; }
.hz-reply__body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.hz-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hz-actions--end { justify-content: flex-end; }

.hz-ask { display: flex; flex-direction: column; gap: 12px; }
.hz-ask__trigger { align-self: flex-start; }
.hz-ask__close, .hz-ask[open] .hz-ask__open { display: none; }
.hz-ask[open] .hz-ask__close { display: inline; }
.hz-ask[open] .hz-ask__trigger { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: none; }

@media (min-width: 901px) {
  /* .hz-hasask: colonna con il bottone "Chiedi un feedback" nell'intestazione */
  .hz-hasask { position: relative; }
  .hz-hasask .hz-ask__trigger { position: absolute; top: 0; right: 0; }
  .hz-hasask .hz-reqs__head { padding-right: 190px; }
  .hz-hasask .hz-ask:not([open]) { margin-top: -12px; }
}

@media (max-width: 900px) {
  .hz-reqs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hz-segtabs { display: flex; grid-row: 1; }
  .hz-reqs__col--sent, .hz-reqs__col--recv { grid-column: 1; grid-row: 2; }
  .hz-reqs__head { display: none; }
  .hz-reqs:has(.hz-segtab__input--recv:checked) .hz-reqs__col--sent { display: none; }
  .hz-reqs:has(.hz-segtab__input--sent:checked) .hz-reqs__col--recv { display: none; }
  .hz-ask__trigger { align-self: stretch; }
  .hz-reqcard { padding: 14px; }
  .hz-reqcard__meta { font-size: 10.5px; }
  .hz-reqcard__comp { font-size: 15px; }
  .hz-reqcard__foot > .hz-btn, .hz-reqcard__btns { flex: 1 1 100%; }
  .hz-reqcard__btns .hz-btn, .hz-reply__open, .hz-reply__close { flex: 1; min-height: 44px; }
  .hz-reply[open] .hz-reply__close { display: inline-flex; }
  .hz-reply .hz-chips .hz-chip { flex: 1; }
  .hz-reply .hz-chips .hz-chip__face { justify-content: center; min-height: 44px; }
  .hz-actions--end .hz-btn { flex: 1 1 100%; min-height: 44px; }
  .hz-select, .hz-textarea { font-size: 16px; }
}

/* =====================================================================
   I MIEI FEEDBACK
   ===================================================================== */
/* KPI [ascx: KpiFeedback] */
.hz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.hz-kpi { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 14px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-kpi__label { font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.hz-kpi__value { font-size: 32px; font-weight: 700; line-height: 1; }
.hz-kpi__unit { margin-left: 4px; font-size: 12px; color: var(--dim); }
.hz-kpi__hint { font-size: 11.5px; color: var(--muted); }

/* filtri */
.hz-toolbar--fb { gap: 12px 24px; }
.hz-filter { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.hz-filter__label { float: left; margin: 0; padding: 0; }
.hz-select--pill { width: auto; min-width: 220px; padding: 8px 36px 8px 14px; background-color: var(--surface); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }

/* grafico a barre [ascx: GraficoCompetenze] */
.hz-bars { margin-bottom: 20px; }
.hz-bars__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hz-bars__head .hz-card__note { margin: 2px 0 0; }
.hz-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.hz-legend__item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.hz-legend__sw { width: 14px; height: 9px; border-radius: 3px; }
.hz-legend__sw--ricon, .hz-bars__seg--ricon { background: var(--success); }
.hz-legend__sw--sugg, .hz-bars__seg--sugg { background: var(--score-2); }
.hz-bars__list { margin: 0; padding: 0; list-style: none; }
.hz-bars__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 14px; padding: 7px 0; border-top: 1px solid var(--border); }
.hz-bars__name { font-size: 13px; font-weight: 700; }
.hz-bars__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hz-bars__fill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; }
.hz-bars__seg { height: 16px; flex-shrink: 1; min-width: 0; border-radius: 4px; }
.hz-bars__seg[style*="width:0%"] { display: none; }
.hz-bars__val { display: flex; flex-shrink: 0; gap: 6px; min-width: 34px; }
.hz-bars__n { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hz-bars__n--ricon { color: var(--success); }
.hz-bars__n--sugg { color: #8a6510; }
[data-theme="dark"] .hz-bars__n--sugg { color: var(--warning); }

/* due colonne con tab mobile: schema generico riusabile */
.hz-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hz-duo__col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hz-duo__col--a { grid-column: 1; grid-row: 1; }
.hz-duo__col--b { grid-column: 2; grid-row: 1; }

.hz-colhead { display: flex; align-items: center; gap: 10px; }
.hz-colhead__icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.hz-colhead__icon--ricon { background: var(--success-soft); color: var(--success); }
.hz-colhead__icon--sugg { background: var(--warning-soft); color: #8a6510; }
.hz-colhead__title { margin: 0; font-size: 18px; font-weight: 700; }
.hz-colhead__title--ricon { color: var(--success); }
.hz-colhead__title--sugg { color: #8a6510; }
[data-theme="dark"] .hz-colhead__title--sugg, [data-theme="dark"] .hz-colhead__icon--sugg { color: var(--warning); }
.hz-colhead__sub { margin: 0; font-size: 12px; color: var(--muted); }

/* accordion annidato su <details> [ascx: ClassificaCompetenze] */
.hz-acc { min-width: 0; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.hz-acc--comp { border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-acc--beh { border-radius: var(--r-input); }
.hz-acc__sum { display: flex; align-items: center; gap: 11px; padding: 13px 15px; list-style: none; cursor: pointer; }
.hz-acc__sum::-webkit-details-marker { display: none; }
.hz-acc__sum:hover { background: var(--surface-2); }
.hz-acc__sum:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent-soft); }
.hz-acc--beh > .hz-acc__sum { align-items: flex-start; gap: 10px; padding: 11px 12px; }
.hz-acc__chev { flex-shrink: 0; color: var(--dim); transition: transform .12s ease-out; }
.hz-acc[open] > .hz-acc__sum .hz-acc__chev { transform: rotate(90deg); }
.hz-acc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hz-acc__title { font-size: 14px; font-weight: 700; line-height: 1.2; }
.hz-acc__num { flex-shrink: 0; margin-top: 1px; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.hz-acc__text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.hz-acc__panel { display: flex; flex-direction: column; gap: 9px; padding: 12px 15px; background: var(--surface-2); border-top: 1px dashed var(--border-strong); }
.hz-acc__feed { display: flex; flex-direction: column; margin: 0; padding: 0 12px; list-style: none; border-top: 1px dashed var(--border); }
.hz-acc__feed .hz-feed { padding: 11px 0; }
.hz-acc__feed .hz-feed + .hz-feed { border-top: 1px solid var(--border); }
.hz-acc__feed .hz-feed__text { font-size: 12.5px; }

.hz-rank { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-input); font-size: 12.5px; font-weight: 700; }
.hz-rank--ricon, .hz-count--ricon { background: var(--success-soft); color: var(--success); }
.hz-rank--sugg, .hz-count--sugg { background: var(--warning-soft); color: #8a6510; }
[data-theme="dark"] .hz-rank--sugg, [data-theme="dark"] .hz-count--sugg { color: var(--warning); }
.hz-count { flex-shrink: 0; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; }
.hz-minibar { display: block; height: 8px; overflow: hidden; background: var(--surface-2); border-radius: var(--r-pill); }
.hz-minibar__fill { display: block; height: 100%; border-radius: var(--r-pill); }
.hz-minibar__fill--ricon { background: var(--success); }
.hz-minibar__fill--sugg { background: var(--score-2); }

@media (max-width: 1080px) {
  .hz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hz-kpis { gap: 9px; margin-bottom: 14px; }
  .hz-kpi { padding: 11px 12px; gap: 3px; }
  .hz-kpi__label { font-size: 10px; min-height: 24px; }
  .hz-kpi__value { font-size: 24px; }
  .hz-kpi__hint { display: none; }
  .hz-toolbar--fb { flex-direction: column; align-items: stretch; gap: 10px; }
  .hz-filter { flex-direction: column; align-items: stretch; gap: 6px; }
  .hz-filter__label { float: none; }
  .hz-select--pill { width: 100%; min-width: 0; font-size: 16px; }
  .hz-bars__row { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 9px 0; }
  .hz-bars__name { font-size: 12.5px; }
  .hz-bars__seg { height: 12px; }

  .hz-duo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hz-duo > .hz-segtabs { display: flex; grid-row: 1; }
  .hz-duo__col--a, .hz-duo__col--b { grid-column: 1; grid-row: 2; }
  .hz-duo .hz-colhead { display: none; }
  .hz-duo:has(.hz-duo__a:checked) .hz-duo__col--b { display: none; }
  .hz-duo:has(.hz-duo__b:checked) .hz-duo__col--a { display: none; }
  .hz-acc__sum { gap: 9px; padding: 12px; min-height: 48px; }
  .hz-acc__title { font-size: 13px; }
  .hz-acc__panel { padding: 10px; }
  .hz-acc__feed { padding: 0 11px; }
}

/* =====================================================================
   FEEDBACK CONTINUO
   ===================================================================== */
.hz-fbitem { padding: 14px 16px; }
.hz-fbitem__cta { margin-top: 10px; }
.hz-tag--req { background: var(--accent-soft); color: var(--accent-deep); }
.hz-kfilter { margin-top: 14px; }

/* filtro per tipologia, solo CSS */
.hz-fblist__empty { display: none; }
.hz-fbcol:has(.hz-kf--pos:checked) .hz-fbitem:not(.hz-fbitem--pos),
.hz-fbcol:has(.hz-kf--sugg:checked) .hz-fbitem:not(.hz-fbitem--sugg),
.hz-fbcol:has(.hz-kf--req:checked) .hz-fbitem:not(.hz-fbitem--req),
.hz-fbcol:has(.hz-kf--reply:checked) .hz-fbitem:not(.hz-fbitem--reply) { display: none; }
.hz-fbcol:has(.hz-kf--req:checked):not(:has(.hz-fbitem--req)) .hz-fblist__empty,
.hz-fbcol:has(.hz-kf--reply:checked):not(:has(.hz-fbitem--reply)) .hz-fblist__empty,
.hz-fbcol:has(.hz-kf--pos:checked):not(:has(.hz-fbitem--pos)) .hz-fblist__empty,
.hz-fbcol:has(.hz-kf--sugg:checked):not(:has(.hz-fbitem--sugg)) .hz-fblist__empty { display: block; }

/* ricerca per nome nelle colonne dei feedback (js/filtronomi.js) - lente a destra */
.hz-namefilter {
    position: relative;
    margin: 10px 0 14px;
}

.hz-namefilter__input {
    padding-right: 36px;
}

.hz-namefilter svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    pointer-events: none;
}

.hz-fbcol .hz-fbitem.hz-fbitem--fuorinome {
    display: none;
}

.hz-fbcol.hz-fbcol--vuota .hz-fblist__empty {
    display: block;
}


/* composer rapido */
.hz-quick { order: 2; margin-top: 6px; }

@media (max-width: 900px) {
  .hz-duo .hz-reqs__head { display: none; }
  .hz-quick { order: 2; margin-top: 6px; }
  .hz-fbitem { padding: 13px; }
  .hz-fbitem .hz-avatar--lg { width: 34px; height: 34px; font-size: 11.5px; }
  .hz-fbitem__cta { width: 100%; min-height: 44px; }
}

/* =====================================================================
   VALUTA UNA PERSONA - estende il wizard di autovalutazione
   ===================================================================== */
/* [ascx: SchedaSoggetto] */
.hz-subject { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; margin-bottom: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card-lg); box-shadow: var(--shadow-sm); }
.hz-subject__who { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hz-subject__text { min-width: 0; }
.hz-subject__text p { margin: 0; }
.hz-subject__name { font-size: 19px; font-weight: 700; line-height: 1.15; }
.hz-subject__role { font-size: 12.5px; color: var(--muted); }
.hz-subject__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hz-subject__cycle { text-align: right; }
.hz-subject__cycle p { margin: 0; }
.hz-subject__cyclev { font-size: 13.5px; font-weight: 700; }
.hz-avatar--xl { width: 46px; height: 46px; background: var(--accent); border-color: transparent; font-size: 16px; font-weight: 700; color: #fff; }
.hz-avatar--xs { width: 26px; height: 26px; font-size: 10px; font-weight: 700; }
.hz-avatar--accentfill { background: var(--accent); border-color: transparent; color: #fff; }

/* [ascx: DistribuzioneTeam] */
.hz-dist { margin-bottom: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-lg); box-shadow: var(--shadow-sm); }
.hz-dist__sum { display: flex; align-items: center; gap: 14px; padding: 12px 18px; list-style: none; cursor: pointer; }
.hz-dist__sum::-webkit-details-marker { display: none; }
.hz-dist__head { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hz-dist__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hz-dist__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.hz-dist__title b { color: var(--accent); }
.hz-dist__chev { flex-shrink: 0; color: var(--muted); transition: transform .12s ease-out; }
.hz-dist[open] .hz-dist__chev { transform: rotate(180deg); }
.hz-dist__body { padding: 14px 18px 16px; border-top: 1px solid var(--border); }
.hz-dist__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.hz-dist__chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12px; white-space: nowrap; }
.hz-dist__chip--ricon { background: var(--success-soft); border-color: var(--success); }
.hz-dist__chip--ricon b { color: var(--success); }
.hz-dist__chip--sugg { background: var(--warning-soft); border-color: var(--warning); }
.hz-dist__chip--sugg b { color: #8a6510; }
.hz-dist__legend { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hz-dist__key { display: inline-block; width: 20px; height: 3px; border-radius: 2px; }
.hz-dist__key--exp { background: var(--warning); }
.hz-dist__key--real { margin-left: 6px; background: var(--success); }
.hz-score--xs { min-width: 22px; height: 22px; padding: 0 6px; font-size: 11.5px; }
.hz-dist__chart { display: block; width: 100%; height: auto; aspect-ratio: 580 / 116; }
.hz-dist__chart * { vector-effect: non-scaling-stroke; }
.hz-dist__grid { stroke: var(--border); stroke-width: 1; }
.hz-dist__tick { font-size: 11px; fill: var(--dim); text-anchor: end; }
.hz-dist__axis { stroke: var(--text); stroke-width: 1.5; }
.hz-dist__bar { fill: var(--dim); }
.hz-dist__hi { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.hz-dist__line { fill: none; stroke-width: 3; stroke-linecap: round; }
.hz-dist__line--exp { stroke: var(--warning); }
.hz-dist__line--real { stroke: var(--success); }
.hz-dist__labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 2px 3.8% 0 7.9%; }
.hz-dist__labels span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hz-dist__labels .is-hi { color: var(--accent); }
.hz-dist__note { margin: 9px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.hz-dist__note b { color: var(--accent); }

/* autovalutazione della persona sul pulsante di voto */
.hz-comp__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hz-selfkey { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: var(--self-soft); border: 1.5px solid var(--self); border-radius: var(--r-pill); font-size: 11px; font-weight: 700; color: var(--self); }
.hz-selfkey__sw { width: 13px; height: 13px; border: 2px solid var(--self); border-radius: 4px; }
.hz-rate__opt--self input:not(:checked) + .hz-rate__face { background: var(--self-soft); border: 2px solid var(--self); color: var(--self); }
.hz-rate__opt--self input:checked + .hz-rate__face { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--self); }

/* feedback su un comportamento */
.hz-fbpeek { margin-top: 11px; }
.hz-fbpeek__sum { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; color: var(--muted); list-style: none; cursor: pointer; }
.hz-fbpeek__sum::-webkit-details-marker { display: none; }
.hz-fbpeek__sum > svg:first-child { color: var(--accent); }
.hz-fbpeek__n--ricon { color: var(--success); }
.hz-fbpeek__n--sugg { color: #8a6510; }
[data-theme="dark"] .hz-fbpeek__n--sugg, [data-theme="dark"] .hz-dist__chip--sugg b { color: var(--warning); }
.hz-fbpeek__chev { transition: transform .12s ease-out; }
.hz-fbpeek[open] .hz-fbpeek__chev { transform: rotate(180deg); }
.hz-fbpeek__list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed var(--border-strong); }
.hz-fbpeek__item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-input); }
.hz-fbpeek__item .hz-feed__text { margin-top: 3px; font-size: 12px; line-height: 1.4; }

/* note di autovalutazione, sola lettura */
.hz-selfnote { margin-top: 16px; padding: 13px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-card); }
.hz-selfnote__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.hz-selfnote__title { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.hz-selfnote__text { margin: 0; font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .hz-subject { padding: 13px 14px; }
  .hz-subject__meta { width: 100%; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
  .hz-subject__cycle { text-align: left; }
  .hz-dist__sum { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .hz-dist__head { flex: 1 1 calc(100% - 40px); }
  .hz-dist__sum .hz-state { order: 3; }
  .hz-dist__body { padding: 12px 14px 14px; }
  .hz-dist__chip { white-space: normal; }
  .hz-dist__legend { margin-left: 0; }
  .hz-dist__chart { aspect-ratio: auto; height: 120px; } /* su mobile piu alto: il viewBox si stira, i tratti restano a spessore fisso */
  .hz-dist__labels span { font-size: 10.5px; }
  .hz-comp__tags { width: 100%; }
  .hz-fbpeek__sum { min-height: 36px; }
}

/* =====================================================================
   VALUTA IL TEAM - matrice persone x comportamenti
   ===================================================================== */
.hz-wizard--team { grid-template-columns: 240px minmax(0, 1fr); }
.hz-pagehead--team { align-items: flex-start; }
.hz-pagehead--team .hz-page__title { font-size: 28px; }
.hz-comp__decl--head { margin: 6px 0 0; max-width: 680px; }

/* distribuzione a cluster [ascx: DistribuzioneCluster] */
.hz-cluster { margin-bottom: 18px; }
.hz-cluster__key { width: 20px; border-top: 2px dashed var(--self); }
.hz-cluster__plot { position: relative; padding-top: 8px; }
.hz-cluster__ideal { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.hz-cluster__ideal polyline { fill: none; stroke: var(--self); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hz-cluster__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hz-cluster__col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hz-cluster__stack { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; width: 100%; height: 120px; }
.hz-cluster__tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 28px; flex-shrink: 0; border-radius: var(--r-input); font-size: 11px; font-weight: 700; color: #fff; }
.hz-cluster__tile--1 { background: var(--score-1); }
.hz-cluster__tile--2 { background: var(--score-2); color: #08202f; }
.hz-cluster__tile--3 { background: var(--score-3); color: #08202f; }
.hz-cluster__tile--4 { background: var(--score-4); }
.hz-cluster__tile--5 { background: var(--score-5); }
.hz-cluster__foot { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--border-strong); }
.hz-cluster__count { min-width: 24px; padding: 1px 8px; background: var(--text); border-radius: var(--r-pill); text-align: center; font-size: 11px; font-weight: 700; color: var(--surface); }
.hz-cluster__count.is-zero { background: var(--surface-2); color: var(--dim); }
.hz-cluster__name { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* matrice [ascx: MatriceTeam] */
.hz-matrix { --mx-person: 220px; --mx-cell: 148px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-mx__head, .hz-mx__row { display: grid; grid-template-columns: var(--mx-person) repeat(5, var(--mx-cell)); min-width: max-content; }
.hz-mx__head { background: var(--surface-2); border-bottom: 1px solid var(--border-strong); }
.hz-mx__corner { display: flex; align-items: flex-end; padding: 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.hz-mx__beh { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-left: 1px dashed var(--border); }
.hz-mx__behnum { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hz-mx__behnum .hz-action__num { width: 20px; height: 20px; font-size: 11px; }
.hz-mx__behdone { font-size: 9.5px; font-weight: 700; color: var(--dim); }
.hz-mx__behtext { font-size: 10.5px; line-height: 1.3; }
.hz-mx__row { position: relative; border-top: 1px solid var(--border); }
.hz-mx__head + .hz-mx__row { border-top: 0; }
.hz-mx__row:hover { background: var(--surface-2); }
.hz-mx__person { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 64px 11px 10px; }
.hz-mx__person .hz-person__name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-mx__person .hz-person__role { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-mx__avg { min-width: 36px; height: 30px; flex-shrink: 0; font-size: 12px; }
.hz-mx__cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 18px 6px 10px; border: 0; border-left: 1px dashed var(--border); }
.hz-mx__fb { position: absolute; top: 4px; right: 5px; display: flex; gap: 4px; padding: 1px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 9.5px; font-weight: 700; line-height: 1.3; }
.hz-rate__opts--mx { gap: 3px; width: 100%; max-width: 136px; }
.hz-rate__opts--mx .hz-rate__opt { flex: 1; }
.hz-rate__opts--mx .hz-rate__face { width: 100%; height: 28px; font-size: 12px; border-radius: 6px; }

/* pannello note: il summary siede nella cella persona (absolute), il contenuto va a tutta riga */
.hz-mx__more { grid-column: 1 / -1; }
.hz-mx__toggle { position: absolute; top: 12px; left: calc(var(--mx-person) - 58px); display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 7px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-input); font-size: 10px; font-weight: 700; color: var(--accent); list-style: none; cursor: pointer; }
.hz-mx__toggle::-webkit-details-marker { display: none; }
.hz-mx__togglelabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hz-mx__togglefb { display: flex; flex-direction: column; line-height: 1; }
.hz-mx__more[open] > .hz-mx__toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
.hz-mx__more[open] > .hz-mx__toggle .hz-fbpeek__n--ricon, .hz-mx__more[open] > .hz-mx__toggle .hz-fbpeek__n--sugg { color: #fff; }
.hz-mx__panel { position: sticky; left: 0; max-width: min(100%, calc(100vw - 360px)); padding: 14px 16px 16px; background: var(--surface-2); border-top: 1px dashed var(--border-strong); }
.hz-mx__cols { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.hz-mx__fbbox { flex: 1 1 280px; min-width: 0; padding: 11px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-input); }
.hz-mx__fbbox .hz-selfnote__title { display: flex; align-items: center; gap: 6px; margin: 0; }
.hz-fbpeek__list--plain { border-top: 0; padding-top: 0; }
.hz-mx__notes { flex: 2 1 380px; min-width: 0; }
.hz-selfnote--flush { margin-top: 0; background: var(--surface); }
.hz-mx__panel .hz-actionsblock .hz-card__head { flex-wrap: wrap; }

.hz-legend--scale { margin-top: 14px; }
.hz-score--dot { min-width: 12px; width: 12px; height: 12px; padding: 0; border-radius: 3px; }

@media (max-width: 1240px) {
  .hz-wizard--team { grid-template-columns: minmax(0, 1fr); }
  .hz-wizard--team .hz-wizard__side { position: static; }
  .hz-wizard--team .hz-steps, .hz-wizard--team .hz-scale { display: none; }
  .hz-wizard--team .hz-stepselect { display: block; padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
  .hz-mx__panel { max-width: calc(100vw - 62px); }
}

@media (max-width: 900px) {
  .hz-pagehead--team .hz-page__title { font-size: 22px; }
  .hz-cluster__cols { gap: 4px; }
  .hz-cluster__stack { height: auto; min-height: 96px; }
  .hz-cluster__tile { width: 100%; max-width: 44px; height: 24px; font-size: 10px; }
  .hz-cluster__ideal { height: 96px; }
  .hz-cluster__name { font-size: 10px; white-space: normal; text-align: center; }

  /* matrice -> una card per persona */
  .hz-matrix { overflow: visible; background: none; border: 0; box-shadow: none; }
  .hz-mx__head { display: none; }
  .hz-mx__row { display: block; min-width: 0; margin-bottom: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
  .hz-mx__head + .hz-mx__row { border-top: 1px solid var(--border); }
  .hz-mx__row:hover { background: var(--surface); }
  .hz-mx__person { padding: 0 0 10px; }
  .hz-mx__cell { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 11px 0; border-left: 0; border-top: 1px solid var(--border); }
  .hz-mx__cell::before { content: attr(data-label); padding-right: 44px; font-size: 12.5px; line-height: 1.4; }
  .hz-mx__fb { top: 11px; right: 0; }
  .hz-rate__opts--mx { max-width: none; gap: 6px; }
  .hz-rate__opts--mx .hz-rate__face { height: 44px; font-size: 14px; border-radius: var(--r-input); }
  .hz-mx__toggle { position: static; justify-content: center; gap: 7px; height: 44px; font-size: 13px; }
  .hz-mx__togglelabel { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .hz-mx__togglefb { flex-direction: row; gap: 5px; }
  .hz-mx__panel { position: static; max-width: none; margin: 10px -12px -12px; padding: 12px; border-radius: 0 0 var(--r-card) var(--r-card); }
  .hz-mx__fbbox, .hz-mx__notes { flex-basis: 100%; }
}

/* selettore persona (solo mobile, attivo con JS) */
.hz-pager { display: none; }
.hz-pager__bar { display: flex; align-items: center; gap: 10px; }
.hz-pager__arrow { width: 44px; height: 44px; }
.hz-pager__arrow:disabled { opacity: .4; cursor: default; }
.hz-pager__now { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hz-pager__pos { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.hz-pager__name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hz-pager__dots { display: flex; gap: 6px; margin-top: 10px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.hz-pager__dots::-webkit-scrollbar { display: none; }
.hz-pager__dot { flex-shrink: 0; padding: 3px; background: none; border: 2px solid transparent; border-radius: var(--r-pill); cursor: pointer; }
.hz-pager__dot.is-current { border-color: var(--accent); }
.hz-pager__dot:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hz-pager__av { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: #fff; }
.hz-pager__av--1 { background: var(--score-1); }
.hz-pager__av--2 { background: var(--score-2); color: #08202f; }
.hz-pager__av--3 { background: var(--score-3); color: #08202f; }
.hz-pager__av--4 { background: var(--score-4); }
.hz-pager__av--5 { background: var(--score-5); }
.hz-pager__av--none { background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--muted); }

@media (max-width: 900px) {
  .hz-pager.is-ready { display: block; position: sticky; top: 60px; z-index: 5; margin: 0 -16px 12px; padding: 10px 16px 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  [data-theme="dark"] .hz-pager.is-ready { background: rgba(15,30,44,.92); }
  .hz-matrix.is-paged .hz-mx__row:not(.is-current) { display: none; }
}

/* =====================================================================
   ESITO VALUTAZIONE
   ===================================================================== */
/* banner di stato [ascx: BannerStatoScheda] */
.hz-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: var(--r-card); }
.hz-banner__dot { width: 11px; height: 11px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.hz-banner__text { flex: 1; min-width: 200px; }
.hz-banner__text p { margin: 0; }
.hz-banner__title { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.hz-banner__sub { margin-top: 2px !important; font-size: 12px; line-height: 1.4; color: var(--text); opacity: .85; }
.hz-banner__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hz-banner--draft { background: var(--warning-soft); border-color: rgba(240,180,41,.45); color: #8a6510; }
.hz-banner--shared, .hz-banner--meet { background: var(--accent-soft); border-color: rgba(15,142,196,.35); color: var(--accent-deep); }
.hz-banner--signed { background: var(--success-soft); border-color: rgba(15,157,88,.35); color: #0b7a45; }

.hz-personnav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.hz-personnav__who { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.hz-personnav .hz-iconbtn { text-decoration: none; }

.hz-esito__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-bottom: 20px; }
.hz-esito__row--mgr { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.hz-esito__block { margin-bottom: 20px; }

/* esito complessivo */
.hz-overall { display: flex; flex-direction: column; }
.hz-overall .hz-label { margin-bottom: 14px; }
.hz-overall__main { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hz-overall__ring { width: 92px; height: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 50%; }
.hz-overall__score { font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent); }
.hz-overall__of { font-size: 10px; font-weight: 700; color: var(--dim); }
.hz-overall__level { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.1; }
.hz-overall__def { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.hz-overall__scale { display: flex; flex-direction: column; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.hz-overall__scale li { display: flex; align-items: center; gap: 9px; }
.hz-overall__sname { width: 120px; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.hz-overall__strack { flex: 1; height: 7px; overflow: hidden; background: var(--surface-2); border-radius: var(--r-pill); }
.hz-overall__sfill { display: block; height: 100%; }
.hz-overall__sfill--1 { background: var(--score-1); } .hz-overall__sfill--2 { background: var(--score-2); } .hz-overall__sfill--3 { background: var(--score-3); } .hz-overall__sfill--4 { background: var(--score-4); } .hz-overall__sfill--5 { background: var(--score-5); }

/* radar */
.hz-radar { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.hz-radar__ring { fill: none; stroke: var(--border); stroke-width: 1.3; }
.hz-radar__mgr { fill: var(--accent-soft); fill-opacity: 1; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.hz-radar__self { fill: none; stroke: var(--self); stroke-width: 2.2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.hz-radar__label { font-family: Poppins, sans-serif; font-size: 11px; font-weight: 700; fill: var(--text); }
.hz-legend__sw--mgr { background: var(--accent-soft); border: 1.4px solid var(--accent); }
.hz-legend__sw--self { height: 0; border-top: 2.4px dashed var(--self); border-radius: 0; }
.hz-legend__sw--bar { width: 22px; height: 10px; background: var(--accent); border-radius: var(--r-pill); }
.hz-legend__sw--tick { width: 0; height: 16px; border-left: 2.4px dashed var(--self); border-radius: 0; }

/* barre per competenza */
.hz-cbars { display: flex; flex-direction: column; }
.hz-cbar { border: 0; border-top: 1px solid var(--border); border-radius: 0; overflow: visible; }
.hz-cbar__sum { display: grid; grid-template-columns: 14px 216px minmax(0, 1fr) 140px; align-items: center; gap: 12px; padding: 9px 0; list-style: none; cursor: pointer; }
.hz-cbar__sum::-webkit-details-marker { display: none; }
.hz-cbar[open] > .hz-cbar__sum .hz-acc__chev { transform: rotate(90deg); }
.hz-cbar__sum:hover .hz-cbar__name { color: var(--accent-deep); }
.hz-cbar__name { font-size: 13.5px; font-weight: 700; }
.hz-cbar__track { position: relative; height: 22px; background: var(--surface-2); border-radius: var(--r-pill); }
.hz-cbar__track--sm { height: 14px; }
.hz-cbar__fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill); }
.hz-cbar__fill--1 { background: var(--score-1); } .hz-cbar__fill--2 { background: var(--score-2); } .hz-cbar__fill--3 { background: var(--score-3); } .hz-cbar__fill--4 { background: var(--score-4); } .hz-cbar__fill--5 { background: var(--score-5); }
.hz-cbar__self { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--self); border-radius: 2px; }
.hz-cbar__val { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 15px; }
.hz-cbar__body { padding: 2px 0 12px 26px; }
.hz-cbar__decl { max-width: 640px; margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hz-cbar__behs { margin: 0; padding: 0; list-style: none; }
.hz-cbar__beh { display: grid; grid-template-columns: 216px minmax(0, 1fr) 140px; align-items: center; gap: 12px; padding: 6px 0; }
.hz-cbar__btext { font-size: 11.5px; line-height: 1.32; }
.hz-cbar__btext b { color: var(--accent); }
.hz-cbar__beh .hz-cbar__val { font-size: 14px; }
.hz-cbar__selfv { font-size: 11.5px; font-weight: 700; color: var(--self); }
.hz-cbars__legend { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.hz-lvchip { padding: 2px 9px; background: var(--surface-2); border: 1px solid; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.hz-lvchip--1 { border-color: var(--score-1); } .hz-lvchip--2 { border-color: var(--score-2); } .hz-lvchip--3 { border-color: var(--score-3); } .hz-lvchip--4 { border-color: var(--score-4); } .hz-lvchip--5 { border-color: var(--score-5); }

/* strato manager */
.hz-private { padding: 16px 18px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-card); }
.hz-private__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--muted); }
.hz-private__head .hz-pill { margin-left: auto; }
.hz-private__list { margin: 0; padding: 0; list-style: none; }
.hz-private__list li { padding: 10px 0; border-top: 1px solid var(--border); }
.hz-private__list p { margin: 0; }
.hz-private__name { margin-bottom: 3px !important; font-size: 12px; font-weight: 700; }
.hz-private__text { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hz-teampos .hz-card__note { margin: 4px 0 14px; }
.hz-teampos__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hz-teampos__col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hz-teampos__mark { min-height: 14px; font-size: 10.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.hz-teampos__bar { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px 7px 0 0; }
.hz-teampos__bar--1 { background: var(--score-1); } .hz-teampos__bar--2 { background: var(--score-2); } .hz-teampos__bar--3 { background: var(--score-3); } .hz-teampos__bar--4 { background: var(--score-4); } .hz-teampos__bar--5 { background: var(--score-5); }
.is-me .hz-teampos__bar { border-color: var(--border-strong); }
.hz-teampos__count { width: 100%; padding-top: 6px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; font-weight: 700; }
.hz-teampos__name { font-size: 10px; line-height: 1.2; text-align: center; color: var(--dim); }

/* aree e obiettivi */
.hz-areas { overflow: hidden; }
.hz-areas__head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.hz-areas__head--ricon { background: var(--success-soft); color: var(--success); }
.hz-areas__head--sugg { background: var(--warning-soft); color: #8a6510; }
.hz-areas__head--accent { background: var(--accent-soft); color: var(--accent); }
.hz-areas__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.hz-areas__hint { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.hz-arealist { margin: 0; padding: 4px 18px 10px; list-style: none; }
.hz-arealist__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.hz-arealist__item:first-child { border-top: 0; }
.hz-arealist__name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; }
.hz-arealist__val { font-size: 15px; }
.hz-arealist__val--ricon { color: var(--success); }
.hz-arealist__val--sugg { color: #8a6510; }
[data-theme="dark"] .hz-arealist__val--sugg, [data-theme="dark"] .hz-areas__head--sugg { color: var(--warning); }
.hz-goals { margin: 0; padding: 4px 18px 14px; list-style: none; }
.hz-goal { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); }
.hz-goal:first-child { border-top: 0; }
.hz-goal__body { flex: 1; min-width: 0; }
.hz-goal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 5px; }
.hz-goal__cur { font-size: 11px; font-weight: 700; color: var(--dim); }
.hz-goal__obj { margin: 0; font-size: 13.5px; line-height: 1.4; }
.hz-goal__due { margin: 3px 0 0; font-size: 11.5px; color: var(--dim); }
.hz-goal .hz-btn { flex-shrink: 0; }
.hz-mnote { margin: 12px 0 0; padding: 13px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-input); font-size: 13.5px; line-height: 1.5; }
.hz-feed h2.hz-feed__who { margin: 0; }
.hz-feed p.hz-feed__when { margin: 0; }

@media (max-width: 900px) {
  .hz-banner { padding: 12px; }
  .hz-banner__actions { width: 100%; }
  .hz-banner__actions .hz-btn { flex: 1; min-height: 44px; }
  .hz-personnav { width: 100%; justify-content: space-between; }
  .hz-personnav .hz-iconbtn { width: 44px; height: 44px; }
  .hz-esito__row { gap: 14px; margin-bottom: 14px; }
  .hz-esito__block { margin-bottom: 14px; }
  .hz-overall__main { gap: 14px; }
  .hz-overall__ring { width: 74px; height: 74px; }
  .hz-overall__score { font-size: 28px; }
  .hz-overall__level { font-size: 18px; }
  .hz-overall__sname { width: 110px; }
  .hz-cbar__sum { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "chev name val" ". track track"; gap: 6px 10px; padding: 11px 0; }
  .hz-cbar__sum > .hz-acc__chev { grid-area: chev; }
  .hz-cbar__sum > .hz-cbar__name { grid-area: name; font-size: 13px; }
  .hz-cbar__sum > .hz-cbar__track { grid-area: track; height: 14px; }
  .hz-cbar__sum > .hz-cbar__val { grid-area: val; font-size: 14px; }
  .hz-cbar__body { padding-left: 0; }
  .hz-cbar__beh { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text val" "track track"; gap: 5px 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
  .hz-cbar__btext { grid-area: text; }
  .hz-cbar__beh .hz-cbar__track { grid-area: track; }
  .hz-cbar__beh .hz-cbar__val { grid-area: val; }
  .hz-cbars__legend { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hz-teampos__name { font-size: 9px; overflow-wrap: anywhere; }
  .hz-arealist { padding: 2px 14px 8px; }
  .hz-areas__head { padding: 12px 14px; }
  .hz-goals { padding: 2px 14px 12px; }
  .hz-goal { flex-direction: column; align-items: stretch; gap: 10px; }
  .hz-goal .hz-btn { min-height: 44px; }
  .hz-mnote + .hz-actions .hz-btn { flex: 1 1 100%; min-height: 44px; }
}

/* =====================================================================
   COMPETENZA TECNICA - passo 8, senza comportamenti
   ===================================================================== */
.hz-alert--info { background: var(--accent-soft); border-color: rgba(15,142,196,.35); color: var(--accent-deep); }
.hz-alert--warning { background: var(--warning-soft); border-color: var(--warning); color: #8a6510; }
[data-theme="dark"] .hz-alert--warning { color: var(--warning); }
.hz-techinfo { margin: 0 0 14px; }
.hz-behavior--tech { padding: 16px; border-color: var(--border-strong); }
.hz-behavior--tech .hz-behavior__text { font-size: 14.5px; font-weight: 700; }
.hz-rate--tech .hz-rate__face { width: 48px; height: 48px; font-size: 16px; }
.hz-field--tech .hz-alert { margin-bottom: 8px; padding: 10px 12px; font-size: 12.5px; }
.hz-field--tech .hz-textarea { min-height: 110px; }
.hz-label__req { font-weight: 700; color: #8a6510; }
[data-theme="dark"] .hz-label__req { color: var(--warning); }

.hz-matrix--tech .hz-mx__head, .hz-matrix--tech .hz-mx__row { grid-template-columns: var(--mx-person) 180px minmax(300px, 1fr); min-width: 0; }
.hz-matrix--tech .hz-rate__opts--mx { max-width: 160px; }
.hz-mx__beh--comment { justify-content: flex-end; }
.hz-mx__comment { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 9px 12px; border-left: 1px dashed var(--border); }
.hz-mx__commenthead { display: flex; align-items: center; gap: 6px; }
.hz-mx__commenthead .hz-label { font-size: 10px; }
.hz-mx__req { padding: 1px 7px; background: var(--warning-soft); border-radius: var(--r-pill); font-size: 10px; font-weight: 700; color: #8a6510; }
.hz-textarea--sm { min-height: 54px; padding: 8px 10px; font-size: 12.5px; }
.hz-techblock { margin-bottom: 14px; }

@media (max-width: 900px) {
  .hz-rate--tech .hz-rate__face { width: 100%; height: 48px; }
  .hz-matrix--tech .hz-mx__row { display: block; }
  .hz-mx__comment { padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .hz-textarea--sm { min-height: 80px; font-size: 16px; }
}

/* =====================================================================
   RIEPILOGO VALUTAZIONE TEAM
   ===================================================================== */
.hz-avatar--blue { background: var(--accent); border-color: transparent; color: #fff; font-weight: 700; }
.hz-avatar--coral { background: var(--danger); border-color: transparent; color: #fff; font-weight: 700; }
.hz-avatar--green { background: var(--success); border-color: transparent; color: #fff; font-weight: 700; }
.hz-cluster__count--1 { background: var(--score-1); color: #fff; }
.hz-cluster__count--2 { background: var(--score-2); color: #08202f; }
.hz-cluster__count--3 { background: var(--score-3); color: #08202f; }
.hz-cluster__count--4 { background: var(--score-4); color: #fff; }
.hz-cluster__count--5 { background: var(--score-5); color: #fff; }

.hz-rvlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.hz-rv { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.hz-rv__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; list-style: none; cursor: pointer; }
.hz-rv__sum::-webkit-details-marker { display: none; }
.hz-rv__sum .hz-acc__chev { color: var(--dim); }
.hz-rv[open] .hz-rv__sum .hz-acc__chev { transform: rotate(90deg); }
.hz-rv__who { min-width: 150px; }
.hz-rv__comps { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.hz-compchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 3px 2px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; }
.hz-score--chip { min-width: 0; height: 20px; padding: 0 5px; border-radius: 6px; font-size: 11px; }
.hz-score--2.hz-score--chip, .hz-score--3.hz-score--chip { color: #08202f; }
.hz-rv__tot { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.hz-rv__label { font-size: 11px; font-weight: 700; color: var(--dim); }
.hz-score--lg { min-width: 44px; height: 34px; font-size: 15px; }
.hz-score--2.hz-score--lg, .hz-score--3.hz-score--lg { color: #08202f; }
.hz-rv__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.hz-rv__dot.is-done { background: var(--success); }
.hz-rv__open { gap: 6px; }
.hz-rv__body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-top: 1px dashed var(--border); }
.hz-rv__body .hz-field { margin-top: 0; }
.hz-rv__body .hz-selfnote { background: var(--surface-2); border-style: dashed; }
.hz-rv__body .hz-selfnote__title { margin: 0 0 4px; color: var(--dim); }

.hz-share > summary { list-style: none; }
.hz-share > summary::-webkit-details-marker { display: none; }
.hz-share__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hz-share__open { cursor: pointer; }
.hz-share[open] .hz-share__open { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.hz-share__panel { margin-top: 14px; }
.hz-share__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.hz-share__people { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.hz-share__people li { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; }

@media (max-width: 900px) {
  .hz-rv__sum { display: grid; grid-template-columns: 14px auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .hz-rv__comps { grid-column: 1 / -1; order: 5; }
  .hz-rv__tot { margin-left: 0; }
  .hz-rv__open { grid-column: 1 / -1; order: 6; min-height: 44px; }
  .hz-rv__who { min-width: 0; }
  .hz-rv__label { display: none; }
  .hz-share__bar { flex-direction: column-reverse; align-items: stretch; }
  .hz-share__bar .hz-btn { min-height: 48px; }
  .hz-share__panel .hz-btn { width: 100%; min-height: 48px; }
}

/* =====================================================================
   RIEPILOGHI (autovalutazione, valuta persona)
   ===================================================================== */
.hz-page--narrow { max-width: 920px; }
.hz-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-card-lg); box-shadow: var(--shadow-sm); }
.hz-summary__ring { width: 88px; height: 88px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.hz-summary__ring--1 { background: var(--score-1); } .hz-summary__ring--2 { background: var(--score-2); color: #08202f; } .hz-summary__ring--3 { background: var(--score-3); color: #08202f; } .hz-summary__ring--4 { background: var(--score-4); } .hz-summary__ring--5 { background: var(--score-5); }
.hz-summary__score { font-size: 34px; font-weight: 700; line-height: 1; }
.hz-summary__of { font-size: 11px; font-weight: 700; opacity: .9; }
.hz-summary__text { min-width: 0; }
.hz-summary__title { margin: 2px 0 0; font-size: 26px; font-weight: 700; line-height: 1.1; }
.hz-summary__sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.hz-sumbars { margin: 12px 0 0; padding: 0; list-style: none; }
.hz-sumbar { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--border); }
.hz-sumbar__name { font-size: 13.5px; font-weight: 700; }
.hz-sumbar__track { position: relative; height: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); }
.hz-sumbar__todo { font-size: 11.5px; font-weight: 700; color: #8a6510; white-space: nowrap; }
.hz-sumnote__hint { margin: 0 0 10px; }
.hz-textarea--lg { min-height: 120px; }

.hz-sumcomps { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.hz-sumcomp { padding: 16px 18px; border-color: var(--border-strong); }
.hz-sumcomp__head { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; align-items: center; gap: 14px; }
.hz-sumcomp__name { font-size: 14.5px; font-weight: 700; }
.hz-sumcomp__note { margin-top: 10px; padding: 2px 0 2px 12px; border-left: 2.5px solid var(--accent); }
.hz-sumcomp__note .hz-label { margin-bottom: 3px; font-size: 10.5px; }
.hz-sumcomp__text { margin: 0; font-size: 13px; line-height: 1.5; }
.hz-sumcomp__acts { margin-top: 10px; padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-input); }
.hz-sumcomp__actlabel { margin-bottom: 7px; font-size: 10.5px; color: var(--accent); }
.hz-sumcomp__actlist { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hz-sumcomp__actlist li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.45; }
.hz-sumcomp__actlist .hz-action__num { width: 20px; height: 20px; font-size: 11px; }
.hz-selfnote--card { margin-top: 0; padding: 18px 20px; border-color: var(--border-strong); border-radius: var(--r-card-lg); }
.hz-sumnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

@media (max-width: 900px) {
  .hz-summary { gap: 14px; padding: 14px; }
  .hz-summary__ring { width: 70px; height: 70px; }
  .hz-summary__score { font-size: 26px; }
  .hz-summary__title { font-size: 19px; }
  .hz-sumbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: 6px 10px; }
  .hz-sumbar__name { grid-area: name; font-size: 13px; }
  .hz-sumbar > .hz-sumbar__track { grid-area: track; }
  .hz-sumbar__val { grid-area: val; }
  .hz-sumcomp { padding: 13px 14px; }
  .hz-sumcomp__head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: 8px 10px; }
  .hz-sumcomp__name { grid-area: name; font-size: 13.5px; }
  .hz-sumcomp__track { grid-area: track; }
  .hz-sumcomp__head > .hz-score { grid-area: val; }
  .hz-selfnote--card { padding: 14px; }
  .hz-sumnav { flex-direction: column-reverse; align-items: stretch; }
  .hz-sumnav .hz-btn { min-height: 48px; }
}

.hz-reply__behhead { margin-bottom: 8px; }
.hz-reply__behlabel { margin: 0; }
.hz-reply .hz-check { background: var(--surface); }

.hz-fbitem__req { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 11px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-input); font-size: 12px; line-height: 1.4; color: var(--muted); }
.hz-fbitem__req svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.hz-fbitem__req b { color: var(--text); }

/* Grafico per competenza: barra di una competenza senza feedback
   (bianca a tutta larghezza, con bordo per distinguerla dalla card). */
.hz-bars__seg--vuota {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
}



.hz-footer--compact .hz-footer__inner {
    padding: 18px 34px;
}

.hz-footer--compact .hz-footer__bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.hz-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

    .hz-footer__links a {
        color: rgba(255,255,255,.66);
        text-decoration: none;
    }

        .hz-footer__links a:hover {
            color: var(--on-brand);
            text-decoration: underline;
        }

@media (max-width: 900px) {
    .hz-footer--compact .hz-footer__inner {
        padding: 16px 20px;
    }

    .hz-footer--compact .hz-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 0;
    }
}


@media (max-width: 1080px) {
    .hz-burger {
        order: -1;
    }

    .hz-logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .hz-logo__svg {
        height: auto;
        width: clamp(80px, 26vw, 150px);
    }
}

.hz-body--app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface-2);
}

/* in Web Forms <form runat="server"> sta tra body e header/main/footer */
.hz-body--app > form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hz-body--app .hz-header,
.hz-body--app .hz-footer {
    flex-shrink: 0;
}

.hz-body--app .hz-main {
    flex: 1 0 auto;
}

/* pulsante del pannello nascosto mentre e' visibile la conferma dell'invio */
.hz-ask__trigger--nascosto {
    display: none;
}

/* etichetta NEW (feedback non ancora visualizzati) */
.hz-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--new);
    color: var(--on-new);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.35;
    white-space: nowrap;
}

.hz-request__title .hz-new {
    margin-left: 6px;
    vertical-align: 1px;
}

/* pagine di contenuto (cookie, termini, privacy) */
.hz-legal h2 {
    margin: 26px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

    .hz-legal h2:first-child {
        margin-top: 0;
    }

.hz-legal p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

.hz-legal ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.hz-legal li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

/* campo di ricerca con suggerimenti (autocompletamento del destinatario) */
.hz-ac {
    position: relative;
}

.hz-ac__list {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-input);
    box-shadow: var(--shadow-lg);
}

    .hz-ac__list[hidden] {
        display: none;
    }

.hz-ac__item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

    .hz-ac__item:hover, .hz-ac__item.is-active {
        background: var(--accent-soft);
    }

.hz-ac__empty {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--muted);
    cursor: default;
}

/* feedback in uscita (FeedbackContinuo, colonna destra): stesso sfondo azzurro delle richieste ricevute */
.hz-fbitem--out {
    background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface);
}
/* =====================================================================
   SELETTORE DELLA LINGUA delle pagine pubbliche (ucSelettoreLingua)
   Desktop: in alto a destra del pannello del modulo.
   Sotto i 900px: sotto la barra del logo, allineato a destra.
   ===================================================================== */
.hz-auth__pane { position: relative; }
.hz-lang { position: absolute; top: 20px; right: 20px; z-index: 1; display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); }
.hz-lang__opt { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 8px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.hz-lang__opt:hover { color: var(--text); }
.hz-lang__opt.is-active { background: var(--accent-grad); color: #fff; }
.hz-lang__opt:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

@media (max-width: 900px) {
  .hz-lang { position: static; display: flex; width: max-content; margin: -12px 0 16px auto; }
}
