/* === v9.0.2 GRAPHIC POLISH ADMIN + USER DASHBOARD === */
#view[data-current-view="admin"] .section-title,
#view[data-current-view="new"] .section-title,
#view[data-current-view="privacyRequests"] .section-title,
#view[data-current-view="admin"] h2,
#view[data-current-view="new"] h2,
#view[data-current-view="privacyRequests"] h2{
  color:#11233f!important;
}

#view[data-current-view="admin"] .visit-form-grid>label,
#view[data-current-view="admin"] .form>label,
#view[data-current-view="new"] .visit-form-grid>label,
#view[data-current-view="new"] .form>label,
#view[data-current-view="privacyRequests"] .sn8136-privacy-admin label,
#view[data-current-view="admin"] .profile-edit-grid>label,
#view[data-current-view="admin"] .diary-mini-grid>label,
#view[data-current-view="new"] .profile-edit-grid>label,
#view[data-current-view="new"] .diary-mini-grid>label{
  color:#5b6f86!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}

#view[data-current-view="admin"] .visit-form-grid,
#view[data-current-view="new"] .visit-form-grid{
  gap:14px!important;
}

#view[data-current-view="admin"] .visit-form-grid input,
#view[data-current-view="admin"] .visit-form-grid select,
#view[data-current-view="admin"] .visit-form-grid textarea,
#view[data-current-view="new"] .visit-form-grid input,
#view[data-current-view="new"] .visit-form-grid select,
#view[data-current-view="new"] .visit-form-grid textarea{
  background:#fff!important;
  color:#13253f!important;
  border:1px solid #d8e3ef!important;
}

#view[data-current-view="privacyRequests"] .sn8136-privacy-admin{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
}
#view[data-current-view="privacyRequests"] .sn8136-request-row{
  border:1px solid #e4ebf4!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.04)!important;
}
#view[data-current-view="privacyRequests"] .sn8136-request-row.is-pending{
  background:linear-gradient(180deg,#fffaf0 0%,#fffdf8 100%)!important;
}
#view[data-current-view="privacyRequests"] .sn8136-request-row strong,
#view[data-current-view="privacyRequests"] .sn8136-request-row p,
#view[data-current-view="privacyRequests"] .sn8136-request-row span{
  color:#22364f!important;
}
#view[data-current-view="privacyRequests"] .sn8136-actions .primary{
  background:linear-gradient(135deg,#ff8a5b,#ffb067)!important;
  color:#2a1407!important;
}

.sn18-segmented{
  background:#e9f0f8!important;
  border-color:#d7e2ee!important;
}
.sn18-segmented button{
  color:#3d5876!important;
}
.sn18-segmented button span,
.sn18-segmented button small,
.sn18-segmented button em{
  color:inherit!important;
}
.sn18-segmented button em{
  background:#d5e3f2!important;
}
.sn18-segmented button:hover{
  background:#f5f9ff!important;
  color:#173a63!important;
}
.sn18-segmented button.active{
  background:#fff!important;
  color:#112d52!important;
  border-color:#bfd3e7!important;
  box-shadow:0 8px 18px rgba(15,23,42,.06)!important;
}
.sn18-segmented button.active em{
  background:#dce9ff!important;
  color:#143967!important;
}

.sn16-dashboard-shell{
  display:grid!important;
  gap:18px!important;
}
.sn16-section{
  display:grid!important;
  gap:16px!important;
}
.sn16-section-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  flex-wrap:wrap!important;
}
.sn16-section-head h2{
  margin:4px 0 6px!important;
  font-size:32px!important;
  line-height:1.05!important;
  color:#12284a!important;
}
.sn16-section-head p{
  margin:0!important;
  max-width:760px!important;
}
.sn16-coach-slot{
  display:grid!important;
}
.sn16-coach-slot:empty{display:none!important}
.sn16-focus-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
.sn16-progress-grid{
  display:grid!important;
  grid-template-columns:1.15fr .85fr!important;
  gap:18px!important;
  align-items:stretch!important;
}
.sn16-chart-grid{
  margin-top:2px!important;
}
.sn16-day-brief-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:6px!important;
}
.sn16-day-brief-grid>div,
.sn16-support-list{
  background:#f8fbff!important;
  border:1px solid #e1eaf4!important;
  border-radius:16px!important;
}
.sn16-day-brief-grid>div{
  padding:14px!important;
}
.sn16-day-brief-grid span{
  display:block!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  color:#6a7e94!important;
}
.sn16-day-brief-grid strong{
  display:block!important;
  margin-top:6px!important;
  font-size:22px!important;
  color:#102746!important;
}
.sn16-day-brief-grid small{
  display:block!important;
  margin-top:5px!important;
  color:#70849a!important;
}
.sn16-support-note{
  display:grid!important;
  gap:12px!important;
  margin-top:14px!important;
}
.sn16-weight-card .diary-mini-grid{
  align-items:end!important;
}
.sn16-support-card{
  display:grid!important;
  align-content:start!important;
}
.sn16-support-list{
  margin:0!important;
  padding:16px 18px 16px 34px!important;
  color:#3f5872!important;
  line-height:1.7!important;
}
.sn16-support-card .secondary{
  margin-top:auto!important;
}
.sn16-profile-section .final-profile-card{
  margin-bottom:0!important;
}

@media(max-width:1180px){
  .sn16-focus-grid{grid-template-columns:1fr 1fr!important}
  .sn16-focus-grid>.sn16-day-brief{grid-column:1/-1!important}
  .sn16-progress-grid{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  .sn16-section-head h2{font-size:26px!important}
  .sn16-focus-grid{grid-template-columns:1fr!important}
  .sn16-day-brief-grid{grid-template-columns:1fr!important}
}

/* === v18.3.0 Web/Android alignment === */
.sn18-free-preview{
  display:grid;
  gap:18px;
  padding:24px;
  border:1px solid #d9e6f3;
  border-radius:24px;
  background:linear-gradient(145deg,#ffffff,#f5f9ff);
  box-shadow:0 14px 34px rgba(15,23,42,.05);
}
.sn18-free-preview .sn18-btn-primary{justify-self:start}
.sn-report-base>.card{margin:14px 0 0!important;box-shadow:none!important}
[data-paypal-premium][disabled]{cursor:not-allowed!important;opacity:.64!important}

/* V22.6 - Oggi: solo idratazione, rimosso Bilancio di oggi */
.sn16-focus-grid.sn16-focus-grid-hydration-only{grid-template-columns:minmax(0,1fr)!important;}
.sn16-focus-grid.sn16-focus-grid-hydration-only>section,.sn16-focus-grid.sn16-focus-grid-hydration-only>.final-card{width:100%!important;max-width:none!important;}

/* V22.7 Idratazione unificata con diario e aderenza */
.sn227-hydration-card .final-card-head>div:first-child{display:grid;gap:4px}
.sn227-hydration-card .final-card-head p{margin:0;color:#5d748d;font-size:13px}
.sn227-hydration-card .sn16-water-target{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important}
.sn227-hydration-card .sn16-water-target span{flex:1}
.sn227-hydration-card .sn16-water-target strong{white-space:nowrap}
.sn227-hydration-card .final-big-ring{background-color:#e7eef7!important}
.sn227-hydration-card .final-water-input{text-align:center;font-weight:800}
@media(max-width:700px){.sn227-hydration-card .sn16-water-target{align-items:flex-start!important;flex-direction:column!important;gap:4px!important}}
