/* Identidad de Just Be You: manual de marca recibido el 22 de octubre de 2026. */
@font-face{font-family:'TT Drugs';src:url('assets/brand/tt-drugs-regular.woff') format('woff');font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0020,U+0041-005A,U+0061-007A,U+00D1,U+00E1,U+00E9,U+00ED,U+00F1,U+00F3,U+00FA}
@font-face{font-family:'Realistic Nature';src:url('assets/brand/realistic-nature.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
:root{--brand-sage:#8A9B78;--brand-pink:#FDD9DD;--brand-rose:#D9A0A6;--brand-cream:#FFFDF9;--brand-gold:#8E6B16;--ink:#293226;--muted:#636A5C;--paper:var(--brand-cream);--white:#fff;--line:#E6E7DD;--olive:#526442;--forest:var(--brand-sage);--gold:var(--brand-gold);--light-gold:#FFF1B8;--green:#EDF1E8;--shadow:0 18px 60px #8A9B781A;font-family:'TT Drugs','Avenir Next','Segoe UI',sans-serif;font-synthesis:weight}
body{background:var(--brand-cream)}
/* Fondo suave en los tonos de la marca, adaptado al área de trabajo. */
.shell .workspace{position:relative;isolation:isolate;min-height:100svh}
.shell .workspace::before{content:'';position:fixed;inset:0 0 0 238px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 100% 0%,#8A9B782B 0%,transparent 58%),radial-gradient(ellipse at 0% 100%,#FDD9DD66 0%,transparent 55%),#F7F8F3}
.shell .page-heading{padding:22px 24px;border:1px solid #DDE2D4;border-radius:12px;background:var(--brand-cream)}
.shell .footer-line{padding:12px 16px;border:1px solid #DDE2D4;border-radius:9px;background:var(--brand-cream)}
@media(max-width:1200px){.shell .workspace::before{left:208px}}
@media(max-width:760px){
  .shell .workspace::before{left:0}
  .shell .page-heading{padding:18px 16px}
}
@media print{.shell .workspace::before{display:none}}
h1,h2{font-family:'Realistic Nature',Georgia,serif;font-weight:400;letter-spacing:0;line-height:1.2}
h3,h4{font-family:'TT Drugs','Avenir Next','Segoe UI',sans-serif;letter-spacing:0}
h1{font-size:34px}h2{font-size:24px}
button:focus-visible,a:focus-visible{outline-color:var(--brand-gold)}
input:focus,select:focus,textarea:focus{outline-color:#687C55}
input,select,textarea{border-color:#D8DECF;background:var(--brand-cream);color:var(--ink)}
.field{color:#45533A}.eyebrow{color:var(--brand-gold)}
.btn-primary{background:var(--brand-sage);color:#202A1B;border:1px solid #7C8E68}
.btn-primary:hover{background:#9CAD8A;color:#202A1B}
.btn-outline{background:var(--brand-cream);color:#455638;border-color:#C7D0BD}
.btn-outline:hover{background:#EDF1E7}
.btn-gold{background:var(--brand-pink);color:#5C3940;border:1px solid var(--brand-rose)}
.btn-ghost,.text-link{color:#526442}
.card,.intake-card,.access-card{background:var(--brand-cream);border-color:#DDE2D4}
.badge.green{background:#E7EEDB;color:#435733}.badge.amber{background:#FFF1B8;color:#765810}.badge.gray{background:#F7E6E8;color:#784E54}
.icon-btn{color:#596A49}.icon-btn:hover{background:#FBE6E8}
.mini-caption{color:#656C5E}
.card-heading p,.quick-card>p,.shortcut small,.session-preview p,.stat-hint,.footer-line,.section-title span,.empty,.table-footer,.client-cell span{color:#636A5C}

/* Se utiliza el logotipo original, sin el recuadro negro ni texto duplicado. */
.brand img.brand-logo,.access-brand img.brand-logo,.intake-brand img.brand-logo{height:auto;object-fit:contain;border-radius:0;flex-shrink:0}
.brand>div,.access-brand>div,.intake-brand>div{display:none}
.brand{display:block;padding:0 0 22px;border-color:#6B7D5860}
.brand img.brand-logo{width:198px;max-width:100%}
.access-brand{justify-content:center;margin-bottom:32px}
.access-brand img.brand-logo{width:280px;max-width:100%}
.intake-brand img.brand-logo{width:190px;max-width:100%}
.mobile-brand{object-fit:contain;background:var(--brand-cream);padding:2px}

/* Panel privado. */
.sidebar{background:var(--brand-sage);color:#202A1B}
.nav-label,.side-version{color:#202A1B}
.nav button{color:#202A1B;font-weight:500}
.nav button.active{background:var(--brand-cream);color:#3D4D31;box-shadow:0 3px 12px #5264420D}
.nav button.active svg{color:#8E6B16}.nav button.active:after{background:var(--brand-rose)}
.nav button:hover{background:#FFFDF945}
.privacy-note{border-color:#6B7D5860}.privacy-note svg,.privacy-note b,.privacy-note p{color:#202A1B}
.topbar{background:var(--brand-cream);border-bottom-color:#EBD4D7}
.breadcrumb,.breadcrumb b{color:#536047}
.demo-tag{background:#FCE8EB;border-color:#E8C0C5;color:#70464D}.demo-tag:before{background:#A26F78}
.avatar{background:var(--brand-pink);color:#714950;border-color:#E4BFC4}
.welcome-card{background:var(--brand-pink);color:#4B3834;border:1px solid #E6B8BF}
.welcome-card h2{font-size:32px;font-weight:400;color:#4B3834;letter-spacing:0}
.welcome-card .eyebrow{color:#805020}.welcome-card p{color:#645047}
.welcome-art{stroke:#9C6F3A;opacity:.3}
.welcome-card .btn-gold{background:var(--brand-cream);color:#5D4735;border-color:#D7B676}
.stat{background:var(--brand-cream)}.stat-label,.stat-hint{color:#637256}
.stat-value{color:#394B2C}.stat-icon{background:#EDF1E7;color:#586E43}
.stat:nth-child(2) .stat-icon{background:#FFF1B8;color:#8E6B16}
.stat:nth-child(3) .stat-icon{background:var(--brand-pink);color:#8D5C65}
.note-card{background:#FDEDF0;border-color:#EAC8CD}.note-card h3{color:#704951}.note-card p{color:#705D5C}
.note-card>.icon-circle{background:var(--brand-pink);color:#8E5E66}
.client-avatar,.date-square{background:#E8EEDC;color:#4E633C}
.client-name,.shortcut b{color:#3E5230}.client-cell span,.table-footer{color:#66745A}
.records-table thead{background:#F1F4EB}.records-table th{color:#586A48;border-color:#DEE4D5}
.records-table td{color:#56654B}.records-table tbody tr:hover{background:#FBEFF0}
.records-table .row-open{color:#53683E}
.shortcut>span:first-child{background:#FCE8EB;color:#91636B}
.search input{background:var(--brand-cream);border-color:#D8E0CF}
.filter-select{background:var(--brand-cream)}
.mobile-bar{background:#FFFDF9F5;border-color:#E6CBCF}.mobile-bar button{color:#59694B}.mobile-bar button.active{color:#6E4F0F}
.form-option>svg{color:#8E6B16}.info-strip{background:#FCEBED;border-color:#E9C9CE;color:#68504D}
.record-dialog,.compact-dialog,.dialog-head{background:var(--brand-cream)}
.dialog-head{border-color:#E6CBCF}.health-tag{background:#EAF0E1;color:#485E38}
.review-entry,.session-area,.document-section{border-color:#D5DDC9}
.review-notice{background:#FFF7DA;border-color:#E4CE8A;color:#69531C}
.document-section summary,.session-area legend{color:#4E653C}
.document-section[open]>summary{color:#714B53}
.initials-summary span{background:#FCE9EC;color:#714B53}
.body-map-grid figure{background:#F5F5EB;border-color:#DDE3D2}
.body-outline{fill:#FDEDF0;stroke:#6E805A}.body-detail{stroke:#AAAB91}.body-mark{fill:#8E6B16}
.signature-box{border-color:#C8D2BB}.signature-tools{background:#EFF2E8;color:#536747}
.success-icon{background:#E8EFD9;color:#52683D}

/* Acceso de la profesional y pantallas independientes del cliente. */
.access-page{background:radial-gradient(ellipse at top right,#FDD9DD 0,transparent 58%),var(--brand-cream)}
.access-card{border-color:#D3DCC7;box-shadow:0 20px 65px #8A9B7829}
.access-card h1{font-size:35px;color:#3E4F31;letter-spacing:0}
.access-card>p{color:#626A58}.access-card .admin-label{color:#79601F}
.admin-route-note{background:#FDE9EC;color:#70535A}
.customer-page,.intake-page{background:var(--brand-cream)}
.customer-header,.intake-top{background:#EFF2E8;color:#3D4E31;border-bottom:2px solid var(--brand-rose)}
.customer-label{color:#6E4950;background:var(--brand-pink);border:1px solid #E4BEC4;border-radius:999px;padding:8px 14px}
.customer-card{border-top:4px solid var(--brand-rose);background:var(--brand-cream)}
.customer-card h1{font-size:40px;color:#3F5033}
.customer-card>p{color:#606951}.customer-card .eyebrow{color:#8E6B16}
.customer-icon{background:var(--brand-pink);color:#8E6B16}
.customer-privacy,.intake-privacy{color:#57694A}
.intake-heading h1{font-size:40px;color:#3F5033}.intake-heading p{color:#667159}
.intake-card{box-shadow:0 10px 40px #8A9B780D;border-top:4px solid var(--brand-rose)}
.intake-card h2{font-size:29px;color:#405331}
.intake-top .btn{color:#526442;background:var(--brand-cream);border:1px solid #C9D2BE}
.step{color:#647357}.step strong{background:#EFF2E8;color:#596F47;border-color:#D2DCC6}
.step.active strong{background:var(--brand-sage);color:#23301C;border-color:#7D9069}
.step.active{color:#3B4F2D}.step.done strong{background:var(--brand-pink);color:#764E56;border-color:#E8C2C8}
.check-option:has(input:checked){background:#F7E5E8;border-color:var(--brand-rose);color:#704850}
.business-location{background:#F1F4EB;border-color:#D5DEC8}
.business-location h2{font-size:25px;color:#425732}
.business-location address,.business-location-inline{color:#5B6D4B}
.business-location-inline{border-color:#E3C6CB}.business-location-inline a{color:#4B6338}

@media(max-width:760px){
  h1{font-size:30px}.page-heading h1{font-size:29px}
  .intake-brand img.brand-logo{width:158px}
  .intake-brand{min-width:0}.intake-top{gap:14px;align-items:center}
  .intake-top .btn{font-size:10px;max-width:104px;padding:8px 10px;text-align:center}
  .customer-header{gap:16px}.customer-label{max-width:116px;padding:7px 11px;text-align:center}
  .customer-card h1{font-size:33px}.customer-card{padding:29px 24px}
  .intake-heading h1{font-size:32px}.intake-card h2{font-size:27px}
  .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .step{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:flex-start;min-width:0}
  .step-divider{display:none}.step strong{width:28px;height:28px;flex-shrink:0;border-radius:50%}
  .step span{font-size:10px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
  .access-brand img.brand-logo{width:250px}.access-card h1{font-size:31px}
  .welcome-card h2{font-size:29px}.business-location h2{font-size:23px}
  .top-actions .demo-tag{font-size:9px}
}
@media print{
  #print-document{color:#222;font-family:Arial,sans-serif}
  #print-document .print-header img.brand-logo{width:200px;height:auto;object-fit:contain}
  #print-document h1,#print-document h2{font-family:'Realistic Nature',Georgia,serif;color:#222}
  .body-outline{fill:#F7F1E9;stroke:#666}.body-mark{fill:#555}
}
/* Cuestionario con suma de la hoja, acceso y consulta de sesiones. */
.top-actions .account-trigger{display:grid;width:44px;height:44px;min-width:44px;padding:0;overflow:hidden;flex-shrink:0;cursor:pointer}
.account-trigger img,.account-photo-preview img{width:100%;height:100%;object-fit:cover;display:block;background:transparent}
.account-trigger:hover{box-shadow:0 0 0 3px #D9A0A638}
.account-dialog{width:min(560px,calc(100% - 28px))}
.account-email{font-size:12px;color:#526442;overflow-wrap:anywhere;margin:0 0 22px}
.account-photo-section{display:flex;align-items:center;gap:20px}
.account-photo-preview{width:88px;height:88px;border-radius:50%;background:var(--brand-pink);color:#714950;display:grid;place-items:center;flex-shrink:0;overflow:hidden;font-size:23px;border:1px solid #E4BFC4}
.account-photo-section h3,.account-password-section h3{font-size:17px;margin:0 0 7px}
.account-photo-section p,.account-password-section>p{font-size:12px;color:#636A5C;margin:0 0 12px}
.account-photo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-photo-actions label{cursor:pointer}.account-photo-actions [hidden]{display:none}
.account-password-section{border-top:1px solid var(--line);padding-top:24px;margin-top:14px}
.account-dialog .password-control{position:relative;margin:7px 0 17px}
.account-dialog .password-control input{display:block;padding-right:54px}
.account-dialog .field{margin:0}
.account-status{font-size:12px;line-height:1.7;margin:14px 0;color:#3E5232;min-height:1em;overflow-wrap:anywhere}
.account-status.form-error{color:#A13B32}
.account-reauth{padding:14px;border:1px solid #DDE2D4;background:#F1F4EB;border-radius:10px;margin-bottom:16px}
.account-reauth[hidden]{display:none}.account-reauth p{font-size:12px}.account-reauth .field{margin-top:12px;display:block}
.btn-danger-outline{background:var(--brand-cream);color:#943D3D;border:1px solid #D9B1AE}
.btn-danger-outline:hover{background:#FCEBED}
.btn-danger{background:#963F43;color:#fff;border:1px solid #843338}.btn-danger:hover{background:#7C3034}
.trash-count{font-size:10px;border-radius:20px;background:#F7E6E8;padding:3px 7px;color:#714B53}
.trash-dialog{width:min(650px,calc(100% - 28px))}
.trash-list{list-style:none;padding:0;margin:0}.trash-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}
.trash-list li>div{min-width:0}.trash-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.trash-list span{display:block;font-size:11px;color:#636A5C;margin-top:5px}
.trash-list .btn{flex-shrink:0}
.trash-item-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex-shrink:0}
.trash-dialog{width:min(760px,calc(100% - 28px))}
@media(max-width:500px){.trash-list li{align-items:flex-start;flex-direction:column}.trash-item-actions{width:100%}.trash-item-actions .btn{width:100%}}
@media(max-width:600px){.account-photo-section{gap:14px}.account-photo-preview{width:68px;height:68px}.account-photo-actions .btn{font-size:11px;padding:10px 12px}.account-dialog .dialog-body{padding:22px 18px}.account-dialog .dialog-head{padding:18px}.top-actions .account-trigger{display:grid}.record-actions .btn-danger-outline{width:100%}}
.skin-score{padding:22px;border:1px solid #d6dfcb;border-radius:18px;background:#f4f7ef;margin:20px 0;color:#202a1b}
.skin-score-total{display:flex;align-items:center;justify-content:space-between;gap:20px}
.skin-score-total .eyebrow{margin:0 0 5px;font-size:11px}
.skin-score-total strong{font:700 32px/1.2 system-ui,sans-serif}
.skin-score-total strong small{font-size:14px;font-weight:400}
.skin-score-total p:last-child{font-size:12px;margin:8px 0 0}
.skin-score-symbol{display:grid;place-items:center;width:48px;height:48px;background:#e5ecdc;border-radius:50%}
.skin-score-symbol svg{width:24px;height:24px}
.skin-score-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 0;padding-top:16px;border-top:1px solid #d6dfcb}
.skin-score-sections dt{font-size:12px;line-height:1.4}
.skin-score-sections dd{margin:8px 0 0;font:600 17px/1.4 system-ui,sans-serif}
.skin-score-sections dd span{display:block;font-size:11px;font-weight:400;margin-top:3px}
.access-card .password-control{position:relative;margin:0 0 18px}
.access-card .field:has(+.password-control){margin-bottom:7px}
.access-card .password-control input{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:12px 55px 12px 14px;font:inherit;color:#202a1b;border:1px solid #c7cdbf;border-radius:9px;background:#fffdf9}
.password-control button{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;background:transparent;border:0;border-radius:8px;color:#48573b;cursor:pointer}
.password-control button svg{width:22px;height:22px}
.password-control button:hover{background:#edf2e7}
.password-control button:focus-visible,.password-control input:focus-visible{outline:3px solid #8e6b16;outline-offset:2px}
.session-history-tools{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:16px}
.session-history-actions{display:flex;gap:12px;flex-wrap:wrap;margin:2px 0 20px}
.session-history-viewer .dialog-head p:last-child{margin:6px 0 0;font-size:14px;color:#526147}
.session-history-viewer .timeline{margin-top:24px}
.session-history-viewer .timeline h4{font-size:15px}
.session-history-viewer .timeline p{font-size:14px;line-height:1.65;color:#3d4934}
.session-history-viewer .timeline time{font-size:12px;color:#526147}
@media(max-width:600px){
  .skin-score{padding:17px}
  .skin-score-sections{grid-template-columns:1fr;gap:12px}
  .skin-score-sections>div{display:flex;justify-content:space-between;gap:18px}
  .skin-score-sections dt{max-width:60%}
  .skin-score-sections dd{margin:0;text-align:right;flex-shrink:0}
  .session-history-tools{grid-template-columns:1fr 1fr}
  .session-history-tools .field:last-child{grid-column:1/-1}
  .record-actions .btn{white-space:normal}
}


/* Expediente privado: mejor composición y centrado en teléfonos. */
@media(max-width:760px){
  #record-dialog .dialog-head{
    position:sticky;
    justify-content:center;
    text-align:center;
    padding:21px 56px 18px;
  }
  #record-dialog .dialog-head>div{
    min-width:0;
    max-width:100%;
  }
  #record-dialog .dialog-head h2{
    overflow-wrap:anywhere;
  }
  #record-dialog .dialog-head .icon-btn[data-close]{
    position:absolute;
    top:50%;
    right:15px;
    transform:translateY(-50%);
    width:44px;
    height:44px;
  }
  #record-dialog .dialog-body{
    padding:24px 20px 42px;
  }
  #record-dialog .record-profile{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-align:center;
    margin:3px auto 24px;
  }
  #record-dialog .record-profile .client-avatar{
    width:66px;
    height:66px;
    border-radius:20px;
    font-size:22px;
  }
  #record-dialog .record-profile h3{
    margin:0 0 6px;
    font-size:21px;
  }
  #record-dialog .record-profile p{
    line-height:1.55;
    font-size:12px;
  }
  #record-dialog .record-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    max-width:490px;
    margin:0 auto 28px;
  }
  #record-dialog .record-actions .btn{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    height:100%;
    min-height:54px;
    white-space:normal;
    text-align:center;
    line-height:1.45;
    padding:10px 9px;
  }
  #record-dialog .record-actions .btn-danger-outline{
    grid-column:1/-1;
    min-height:48px;
  }
  #record-dialog .dialog-body > .details-grid{
    width:100%;
    max-width:480px;
    margin:0 auto 25px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  #record-dialog .dialog-body > .details-grid .detail-item{
    min-width:0;
    padding:15px 10px;
    border:1px solid #e5e9df;
    border-radius:12px;
    background:#f8f9f5;
    text-align:center;
  }
  #record-dialog .dialog-body > .details-grid dt{
    font-size:11px;
    margin-bottom:8px;
  }
  #record-dialog .dialog-body > .details-grid dd{
    overflow-wrap:anywhere;
    word-break:normal;
    font-size:13px;
    line-height:1.55;
  }
  #record-dialog .record-section{
    width:100%;
    max-width:560px;
    margin-left:auto;
    margin-right:auto;
  }
}
@media(max-width:359px){
  #record-dialog .record-actions{
    grid-template-columns:minmax(0,1fr);
  }
  #record-dialog .dialog-body > .details-grid{
    grid-template-columns:minmax(0,1fr);
  }
}


/* Legibilidad de historial y observaciones en expedientes móviles. */
@media(max-width:760px){
  #record-dialog .record-section > h3{
    font-size:21px;
    line-height:1.35;
    font-weight:600;
    letter-spacing:-0.015em;
  }
  #record-dialog .record-section .details-grid{
    gap:25px 16px;
  }
  #record-dialog .record-section .detail-item dt{
    font-size:14px;
    line-height:1.5;
    color:#64705e;
    margin-bottom:8px;
  }
  #record-dialog .record-section .detail-item dd{
    font-size:17px;
    line-height:1.55;
    color:#374532;
    overflow-wrap:anywhere;
  }
  #record-dialog .record-section .health-tag,
  #record-dialog .record-section .health-tags .badge{
    font-size:13px;
    line-height:1.5;
    padding:7px 11px;
  }
}


/* Respuestas desplegables: una presentación coherente para ambas hojas. */
#record-dialog .record-response-toggle{
  width:100%;
  margin-top:18px;
}
#record-dialog .record-response-toggle:first-child{
  margin-top:0;
}
#record-dialog .record-response-toggle > summary{
  display:flex;
  align-items:center;
  gap:14px;
  box-sizing:border-box;
  width:100%;
  min-height:74px;
  padding:16px 18px;
  border:1px solid #d7dfcf;
  border-radius:12px;
  background:#f7f8f3;
  color:#45583c;
  font-size:18px;
  font-weight:500;
  line-height:1.45;
  letter-spacing:0;
  cursor:pointer;
  list-style:none;
  overflow-wrap:anywhere;
}
#record-dialog .record-response-toggle > summary::-webkit-details-marker{display:none}
#record-dialog .record-response-toggle > summary::before{
  content:"";
  flex:0 0 10px;
  width:10px;
  height:10px;
  border-right:2px solid #657a53;
  border-bottom:2px solid #657a53;
  transform:rotate(-45deg);
  transition:transform .15s ease;
}
#record-dialog .record-response-toggle[open] > summary::before{
  transform:rotate(45deg);
}
#record-dialog .record-response-toggle > summary:focus-visible{
  outline:3px solid #8e6b16;
  outline-offset:3px;
}
#record-dialog .record-response-toggle[open] > summary{
  border-color:#b5c3a7;
  background:#f0f3eb;
}
#record-dialog .record-response-toggle > .details-grid{
  margin-top:18px;
}
@media(max-width:760px){
  #record-dialog .record-response-toggle > summary{
    min-height:72px;
    padding:15px 16px;
    font-size:17px;
  }
}


/* Historial de sesiones: controles compactos, calendario nativo sin desbordes. */
.session-history-viewer .session-history-tools{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,230px));
  justify-content:start;
  align-items:start;
  gap:16px;
  width:100%;
}
.session-history-viewer .session-history-tools>.field{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  gap:7px;
  color:#526147;
  font-size:14px;
  line-height:1.4;
}
.session-history-viewer .session-history-tools .session-date-control{
  display:flex;
  align-items:center;
  position:relative;
  box-sizing:border-box;
  width:100%;
  height:46px;
  min-height:46px;
  max-height:46px;
  padding:0 13px;
  overflow:hidden;
  border:1px solid #d8decf;
  border-radius:9px;
  background:#fffdf9;
  color:#344332;
}
.session-history-viewer .session-history-tools .session-date-value{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  pointer-events:none;
  font-size:15px;
  line-height:1.3;
}
.session-history-viewer .session-history-tools .session-date-control input[type="date"]{
  position:absolute;
  inset:0;
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  max-height:100%;
  margin:0;
  padding:0;
  border:0;
  opacity:0;
  cursor:pointer;
}
.session-history-viewer .session-date-control:focus-within{
  outline:2px solid #8b9474;
  outline-offset:2px;
}
.session-history-viewer .session-history-tools select{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  height:46px;
  min-height:46px;
  max-height:46px;
  margin:0;
  padding:8px 12px;
  border-radius:9px;
  font-size:15px;
  line-height:1.3;
}
.session-history-viewer .session-history-actions{
  margin-top:14px;
  margin-bottom:16px;
}
@media(max-width:1100px){
  .session-history-viewer .session-history-tools{
    grid-template-columns:repeat(2,minmax(0,230px));
  }
  .session-history-viewer .session-history-tools>.field:last-child{
    grid-column:1/-1;
    max-width:280px;
  }
}
@media(max-width:640px){
  .session-history-viewer .session-history-tools{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }
  .session-history-viewer .session-history-tools>.field{
    grid-column:1/-1;
    max-width:100%;
  }
  .session-history-viewer .dialog-body{
    padding:22px 18px 26px;
  }
  .session-history-viewer .session-history-actions{
    flex-direction:column;
    gap:10px;
  }
  .session-history-viewer .session-history-actions button{
    width:100%;
    min-height:44px;
  }
}

/* Inicio: composición vertical y botones centrados (escritorio y móvil). */
.shell .page-heading.dashboard-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:18px;
  padding:28px 24px;
}
.dashboard-heading > div{width:100%;min-width:0}
.dashboard-heading .eyebrow{margin-bottom:12px}
.dashboard-heading h1{margin-bottom:10px}
.dashboard-heading p{max-width:none}
.dashboard-heading > .btn{
  align-self:center;
  min-width:190px;
  min-height:44px;
  margin:0;
  padding:12px 20px;
}
.welcome-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:20px;
  min-height:210px;
  padding:32px 24px;
}
.welcome-card > div{max-width:580px}
.welcome-card p{max-width:none}
.welcome-card > .btn{
  align-self:center;
  min-height:44px;
  margin:0;
  padding:12px 20px;
  font-size:12px;
}
.welcome-card .welcome-art{
  right:18px;
  bottom:-28px;
  opacity:.13;
  pointer-events:none;
}
@media(max-width:760px){
  .shell .page-heading.dashboard-heading{padding:23px 16px;gap:16px}
  .dashboard-heading p{max-width:none}
  .dashboard-heading > .btn{min-height:44px;margin:0}
  .welcome-card{display:flex;min-height:auto;padding:27px 17px;gap:18px}
  .welcome-card h2{font-size:29px}
  .welcome-card p{max-width:none}
  .welcome-card > .btn{min-height:44px;margin:0;font-size:11px;padding:11px 16px}
  .welcome-card .welcome-art{right:-22px;bottom:-25px;opacity:.1}
}

/* Botanical vines on the two dashboard banners. Pure decoration, never interactive. */
.shell .page-heading.dashboard-heading{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:radial-gradient(ellipse at 50% -25%,#F1F5E8 0%,transparent 65%),
             linear-gradient(135deg,#FFFDF9 0%,#FFFAF7 100%);
}
.welcome-card{
  isolation:isolate;
  background:radial-gradient(ellipse at 50% 0%,#FFF0F0 0%,transparent 72%),
             linear-gradient(145deg,#FDD9DD 0%,#F8DFE0 100%);
  box-shadow:0 12px 28px #D9A0A61C;
}
.shell .page-heading.dashboard-heading::before,
.shell .page-heading.dashboard-heading::after,
.welcome-card::before,
.welcome-card::after{
  content:"";
  position:absolute;
  width:260px;
  height:218px;
  top:-21px;
  background:url('assets/decor/botanical-corner.svg') left top / contain no-repeat;
  pointer-events:none;
  z-index:0;
}
.shell .page-heading.dashboard-heading::before{left:-27px;opacity:.52}
.shell .page-heading.dashboard-heading::after{right:-27px;transform:scaleX(-1);opacity:.52}
.welcome-card::before{left:-24px;top:-18px;opacity:.72}
.welcome-card::after{right:-24px;top:-18px;transform:scaleX(-1);opacity:.72}
.shell .page-heading.dashboard-heading > div,
.shell .page-heading.dashboard-heading > .btn,
.welcome-card > div,
.welcome-card > .btn{position:relative;z-index:2}
.welcome-card .welcome-art{opacity:.07;z-index:0}
@media(max-width:760px){
  .shell .page-heading.dashboard-heading::before,
  .shell .page-heading.dashboard-heading::after,
  .welcome-card::before,
  .welcome-card::after{
    width:clamp(125px,39vw,170px);
    height:156px;
    top:-15px;
  }
  .shell .page-heading.dashboard-heading::before{left:-26px;opacity:.38}
  .shell .page-heading.dashboard-heading::after{right:-26px;opacity:.38}
  .welcome-card::before{left:-26px;opacity:.48}
  .welcome-card::after{right:-26px;opacity:.48}
}
@media(prefers-reduced-transparency:reduce){
  .shell .page-heading.dashboard-heading::before,
  .shell .page-heading.dashboard-heading::after,
  .welcome-card::before,
  .welcome-card::after{opacity:.28}
}

/* Decorative background vines across all private sections; no clinical inputs are decorated. */
.shell .workspace::after{
  content:"";
  position:fixed;
  inset:0 0 0 238px;
  z-index:-1;
  pointer-events:none;
  opacity:.46;
  background-image:
    url('assets/decor/botanical-corner.svg'),
    url('assets/decor/botanical-corner.svg'),
    url('assets/decor/botanical-corner.svg'),
    url('assets/decor/botanical-corner.svg');
  background-repeat:no-repeat;
  background-size:clamp(300px,36vw,500px) auto,clamp(250px,32vw,440px) auto,clamp(270px,32vw,430px) auto,clamp(320px,37vw,500px) auto;
  background-position:
    left -104px top -84px,
    right -115px top 170px,
    left -96px bottom 150px,
    right -110px bottom -66px;
}
@media(max-width:1200px){
  .shell .workspace::after{left:208px;opacity:.38}
}
@media(max-width:760px){
  .shell .workspace::after{
    left:0;
    opacity:.30;
    background-size:210px auto,205px auto,190px auto,205px auto;
    background-position:
      left -89px top -42px,
      right -96px top 235px,
      left -88px bottom 190px,
      right -98px bottom -48px;
  }
}
@media print{
  .shell .workspace::after{display:none}
}

/* Botanical accents shared across private areas, away from clinical data-entry fields. */
.shell .page-heading:not(.dashboard-heading){
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(135deg,#FFFDF9 8%,#F7FAF2 100%);
  border-color:#DDE5D5;
  box-shadow:0 8px 24px #6A8C6310;
}
.shell .page-heading:not(.dashboard-heading)::before,
.shell .page-heading:not(.dashboard-heading)::after{
  content:"";
  position:absolute;
  top:-35px;
  width:185px;
  height:156px;
  background:url('assets/decor/botanical-corner.svg') left top / contain no-repeat;
  pointer-events:none;
  z-index:0;
}
.shell .page-heading:not(.dashboard-heading)::before{left:-60px;opacity:.25}
.shell .page-heading:not(.dashboard-heading)::after{
  right:-57px;
  opacity:.32;
  transform:scaleX(-1);
}
.shell .page-heading:not(.dashboard-heading)>*{position:relative;z-index:1}
.shell .form-option,
.shell .session-card,
.shell .quick-card,
.shell .note-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.shell .form-option::before,
.shell .session-card::before,
.shell .quick-card::before,
.shell .note-card::before{
  content:"";
  position:absolute;
  top:-28px;
  right:-45px;
  width:140px;
  height:116px;
  opacity:.16;
  transform:scaleX(-1);
  background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
  z-index:0;
  pointer-events:none;
}
.shell .form-option > *,
.shell .session-card > *,
.shell .quick-card > *,
.shell .note-card > *{position:relative;z-index:1}
@media(max-width:760px){
  .shell .page-heading:not(.dashboard-heading)::before,
  .shell .page-heading:not(.dashboard-heading)::after{
    top:-27px;
    width:128px;
    height:110px;
  }
  .shell .page-heading:not(.dashboard-heading)::before{left:-50px;opacity:.18}
  .shell .page-heading:not(.dashboard-heading)::after{right:-49px;opacity:.23}
  .shell .form-option::before,
  .shell .session-card::before,
  .shell .quick-card::before,
  .shell .note-card::before{width:112px;height:95px;opacity:.11}
}
@media print{
  .shell .page-heading:not(.dashboard-heading)::before,
  .shell .page-heading:not(.dashboard-heading)::after,
  .shell .form-option::before,
  .shell .session-card::before,
  .shell .quick-card::before,
  .shell .note-card::before{display:none}
}

/* Refuerzo visual de secciones interiores. Lectura clínica sin adornos superpuestos. */
.shell .page-heading:not(.dashboard-heading){
  min-height:142px;
  padding:27px 32px;
  border:1px solid #C7D7BD;
  border-left:4px solid #91AD82;
  background:linear-gradient(115deg,#F3F8EE 0%,#FFFDF9 46%,#FFF2F2 100%);
  box-shadow:0 10px 25px #6B8B5F18;
}
.shell .page-heading:not(.dashboard-heading)::before,
.shell .page-heading:not(.dashboard-heading)::after{
  width:225px;
  height:195px;
  top:-45px;
}
.shell .page-heading:not(.dashboard-heading)::before{
  left:-57px;
  opacity:.58;
}
.shell .page-heading:not(.dashboard-heading)::after{
  right:-64px;
  opacity:.63;
}
.shell .form-option::before,
.shell .session-card::before,
.shell .quick-card::before,
.shell .note-card::before{
  width:170px;
  height:142px;
  opacity:.32;
}
.shell .card:not(.welcome-card){
  border-top:2px solid #B9CBAF;
}
@media(max-width:760px){
  .shell .page-heading:not(.dashboard-heading){
    padding:23px 19px;
    min-height:130px;
    border-left-width:3px;
  }
  .shell .page-heading:not(.dashboard-heading)::before,
  .shell .page-heading:not(.dashboard-heading)::after{
    width:150px;
    height:136px;
    top:-26px;
  }
  .shell .page-heading:not(.dashboard-heading)::before{left:-67px;opacity:.46}
  .shell .page-heading:not(.dashboard-heading)::after{right:-69px;opacity:.52}
  .shell .form-option::before,
  .shell .session-card::before,
  .shell .quick-card::before,
  .shell .note-card::before{width:128px;height:112px;opacity:.28}
}
@media print{
  .shell .page-heading:not(.dashboard-heading){background:#fff;border:0;box-shadow:none}
  .shell .card:not(.welcome-card){border-top:0}
}

/* Jardín interior exclusivo del Resumen: estadísticas, clientes, sesiones y accesos. */
.dashboard-shell .stats .stat{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-color:#CDDDC4;
  background:linear-gradient(150deg,#FFFDF9 15%,#F6FAF2 100%);
  box-shadow:0 8px 23px #73936C12;
}
.dashboard-shell .stats .stat::before{
  content:"";
  position:absolute;
  top:-34px;
  right:-44px;
  width:134px;
  height:118px;
  background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
  opacity:.43;
  transform:scaleX(-1);
  pointer-events:none;
  z-index:0;
}
.dashboard-shell .stats .stat:nth-child(2){
  background:linear-gradient(150deg,#FFFDF9 18%,#FFF3F4 100%);
}
.dashboard-shell .stats .stat:nth-child(3){
  background:linear-gradient(150deg,#FFFDF9 18%,#F3F7EC 100%);
}
.dashboard-shell .stats .stat > *{position:relative;z-index:1}
/* Tarjeta de expedientes: hojas en el encabezado, no en los datos personales. */
.dashboard-shell .dashboard-columns > div > .card{
  border-color:#D0DEC9;
  box-shadow:0 9px 25px #73936C0C;
}
.dashboard-shell .dashboard-columns > div > .card > .card-heading{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:95px;
  background:linear-gradient(115deg,#FAFCF6 0%,#FFF5F5 100%);
  border-bottom:1px solid #E4EADD;
}
.dashboard-shell .dashboard-columns > div > .card > .card-heading::before,
.dashboard-shell .dashboard-columns > div > .card > .card-heading::after{
  content:"";
  position:absolute;
  top:-46px;
  width:176px;
  height:150px;
  background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
  pointer-events:none;
  z-index:0;
}
.dashboard-shell .dashboard-columns > div > .card > .card-heading::before{
  left:-90px;
  opacity:.27;
}
.dashboard-shell .dashboard-columns > div > .card > .card-heading::after{
  right:-58px;
  transform:scaleX(-1);
  opacity:.52;
}
.dashboard-shell .dashboard-columns > div > .card > .card-heading > *{
  position:relative;
  z-index:1;
}
/* Últimas sesiones: follaje en los bordes del cuadro, sin cubrir tratamientos. */
.dashboard-shell .activity-section .section-title{
  padding:0 3px 10px;
  border-bottom:1px solid #C8D8C0;
}
.dashboard-shell .activity-section > .card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-color:#D0DEC9;
  background:linear-gradient(130deg,#FFFDF9 55%,#F7FAF2 100%);
}
.dashboard-shell .activity-section > .card::before{
  content:"";
  position:absolute;
  top:-40px;
  right:-57px;
  width:180px;
  height:151px;
  background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
  opacity:.42;
  transform:scaleX(-1);
  pointer-events:none;
  z-index:0;
}
.dashboard-shell .activity-section > .card > *{position:relative;z-index:1}
/* Accesos rápidos y nota: una enredadera arriba y otra sutil desde abajo. */
.dashboard-shell .side-stack .quick-card,
.dashboard-shell .side-stack .note-card{
  border-color:#CCDAC5;
  box-shadow:0 8px 25px #78916914;
}
.dashboard-shell .side-stack .quick-card{
  background:linear-gradient(130deg,#FFFDF9 35%,#F4F8EF 100%);
}
.dashboard-shell .side-stack .quick-card::before,
.dashboard-shell .side-stack .note-card::before{
  width:175px;
  height:145px;
  top:-37px;
  right:-54px;
  opacity:.54;
}
.dashboard-shell .side-stack .quick-card::after,
.dashboard-shell .side-stack .note-card::after{
  content:"";
  position:absolute;
  bottom:-61px;
  left:-72px;
  width:165px;
  height:138px;
  background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
  transform:scaleY(-1);
  opacity:.27;
  pointer-events:none;
  z-index:0;
}
@media(max-width:760px){
  .dashboard-shell .stats .stat::before{
    width:83px;
    height:78px;
    top:-20px;
    right:-37px;
    opacity:.29;
  }
  .dashboard-shell .dashboard-columns > div > .card > .card-heading{
    min-height:90px;
  }
  .dashboard-shell .dashboard-columns > div > .card > .card-heading::before{
    left:-103px;
    opacity:.19;
  }
  .dashboard-shell .dashboard-columns > div > .card > .card-heading::after{
    width:145px;
    height:129px;
    top:-36px;
    right:-73px;
    opacity:.41;
  }
  .dashboard-shell .activity-section > .card::before{
    width:140px;
    height:124px;
    right:-64px;
    opacity:.32;
  }
  .dashboard-shell .side-stack .quick-card::before,
  .dashboard-shell .side-stack .note-card::before{
    width:145px;
    height:122px;
    right:-52px;
    opacity:.43;
  }
  .dashboard-shell .side-stack .quick-card::after,
  .dashboard-shell .side-stack .note-card::after{
    width:125px;
    height:109px;
    opacity:.22;
  }
}
@media print{
  .dashboard-shell .stats .stat::before,
  .dashboard-shell .dashboard-columns > div > .card > .card-heading::before,
  .dashboard-shell .dashboard-columns > div > .card > .card-heading::after,
  .dashboard-shell .activity-section > .card::before,
  .dashboard-shell .side-stack .quick-card::after,
  .dashboard-shell .side-stack .note-card::after{display:none}
}

/* Navegación móvil botánica: cinco accesos en una fila y menú Más */
@media(max-width:760px){
  .shell .main{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  .shell .mobile-bar{
    display:block;
    position:fixed;
    inset:auto 0 0;
    z-index:30;
    overflow:visible;
    padding:8px 11px max(10px,env(safe-area-inset-bottom,10px));
    border-top:1px solid #C6D5BA;
    border-radius:20px 20px 0 0;
    background:linear-gradient(115deg,#FFFEFBBF 5%,#FAFAF2F6 50%,#FCE8ECEF 100%);
    box-shadow:0 -7px 26px #556B4521;
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    isolation:isolate;
  }
  .shell .mobile-bar::before,
  .shell .mobile-bar::after{
    content:"";
    position:absolute;
    top:-10px;
    width:110px;
    height:78px;
    background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
    pointer-events:none;
    z-index:0;
  }
  .shell .mobile-bar::before{left:-31px;opacity:.24}
  .shell .mobile-bar::after{right:-31px;opacity:.24;transform:scaleX(-1)}
  .shell .mobile-nav-row{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    gap:3px;
    position:relative;
    z-index:1;
    width:100%;
    max-width:650px;
    margin:0 auto;
  }
  .shell .mobile-nav-row > button,
  .shell .mobile-more > summary{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    width:100%;
    min-width:0;
    min-height:58px;
    gap:5px;
    margin:0;
    padding:6px 1px;
    border-radius:12px;
    color:#526845;
    background:transparent;
    text-align:center;
    font-size:clamp(9px,2.45vw,11px);
    font-weight:600;
    line-height:1.15;
    text-decoration:none;
    white-space:nowrap;
  }
  .shell .mobile-nav-row > button svg,
  .shell .mobile-more > summary svg{
    width:21px;
    height:21px;
    flex-shrink:0;
  }
  .shell .mobile-nav-row > button.active,
  .shell .mobile-more > summary.active,
  .shell .mobile-more[open] > summary{
    color:#5E4931;
    background:#FDE9EBD9;
    box-shadow:inset 0 0 0 1px #E9C9CB;
  }
  .shell .mobile-more{position:relative;min-width:0}
  .shell .mobile-more > summary{list-style:none;cursor:pointer}
  .shell .mobile-more > summary::-webkit-details-marker{display:none}
  .shell .mobile-more > summary:focus-visible,
  .shell .mobile-more-panel button:focus-visible{
    outline:2px solid #80652C;
    outline-offset:2px;
  }
  .shell .mobile-more-panel{
    position:absolute;
    right:0;
    bottom:calc(100% + 15px);
    width:min(248px,calc(100vw - 28px));
    max-height:calc(100dvh - 175px);
    overflow-y:auto;
    padding:14px 12px 10px;
    border:1px solid #CCD8BF;
    border-radius:17px;
    background:linear-gradient(140deg,#FFFDF9 0%,#F7FAF2 100%);
    box-shadow:0 12px 38px #40563A35;
    text-align:left;
  }
  .shell .mobile-more-panel::before{
    content:"";
    position:absolute;
    width:132px;
    height:109px;
    top:-39px;
    right:-38px;
    background:url('assets/decor/botanical-corner.svg') center / contain no-repeat;
    opacity:.24;
    transform:scaleX(-1);
    pointer-events:none;
  }
  .shell .mobile-more-title{
    position:relative;
    margin:3px 6px 11px;
    font-size:11px;
    font-weight:700;
    color:#657A58;
    letter-spacing:.05em;
  }
  .shell .mobile-more-panel button{
    position:relative;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    min-width:0;
    min-height:44px;
    margin:0;
    padding:10px 12px;
    border-radius:10px;
    gap:12px;
    background:transparent;
    color:#526845;
    font-size:12px;
    font-weight:600;
    text-align:left;
  }
  .shell .mobile-more-panel button + button{margin-top:3px}
  .shell .mobile-more-panel button svg{width:18px;height:18px}
  .shell .mobile-more-panel button.active{background:#FBE8EB;color:#694F36}
}
@media(max-width:360px){
  .shell .mobile-bar{padding-right:6px;padding-left:6px}
  .shell .mobile-nav-row{gap:1px}
  .shell .mobile-nav-row > button,
  .shell .mobile-more > summary{font-size:9px}
}
@media print{
  .shell .mobile-bar{display:none!important}
}

/* Evita el zoom accidental por doble toque en la navegación y los controles.
   Se conserva el gesto de pellizcar para ampliar (accesibilidad). */
.shell button,
.shell a,
.shell summary{
  touch-action:manipulation;
}

/* Lectura desplegable de las iniciales: datos históricos intactos. */
.initials-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,178px),1fr));
  gap:12px;
  margin:14px 0 22px;
  font-size:13px;
}
.initials-summary .consent-initial-card{
  min-width:0;
  border:1px solid #e9d4d6;
  border-radius:14px;
  background:#fff9f9;
  overflow:hidden;
  break-inside:avoid;
}
.initials-summary .consent-initial-card[open]{
  grid-column:1/-1;
  background:#fffdf9;
  border-color:#c9d7bd;
}
.initials-summary .consent-initial-card > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  min-height:54px;
  padding:11px 12px;
  cursor:pointer;
  list-style:none;
  touch-action:manipulation;
}
.initials-summary .consent-initial-card > summary::-webkit-details-marker{display:none}
.initials-summary .consent-initial-card > summary::after{
  content:"⌄";
  color:#657651;
  font-size:18px;
  line-height:1;
  margin-left:auto;
  transition:transform .2s ease;
}
.initials-summary .consent-initial-card[open] > summary::after{transform:rotate(180deg)}
.initials-summary .consent-initial-card > summary:focus-visible{
  outline:3px solid #8fa67a;
  outline-offset:-3px;
}
.initials-summary .consent-initial-number{
  color:#59674c;
  background:transparent;
  border:0;
  padding:0;
  font-weight:650;
  font-size:12px;
}
.initials-summary .consent-initial-value{
  flex-shrink:0;
  padding:6px 9px;
  border-radius:9px;
  background:#fce9ec;
  color:#714b53;
  font-size:13px;
  font-weight:650;
  overflow-wrap:anywhere;
}
.initials-summary .consent-initial-body{
  padding:14px 17px 17px;
  border-top:1px solid #e5e9df;
}
.initials-summary .consent-initial-body > p{
  margin:0;
  line-height:1.75;
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.initials-summary .consent-initial-body > .mini-caption{
  margin-top:12px;
  color:#6b7567;
}
@media(max-width:480px){
  .initials-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .initials-summary .consent-initial-card > summary{padding:9px 10px;gap:5px}
  .initials-summary .consent-initial-number{font-size:11px}
}
@media print{
  .initials-summary{grid-template-columns:1fr;gap:6px}
  .initials-summary .consent-initial-card{border-color:#ddd;background:white}
  .initials-summary .consent-initial-card > summary{min-height:0;padding:5px 7px}
  .initials-summary .consent-initial-card > summary::after{display:none}
  .initials-summary .consent-initial-body{padding:5px 8px;border-top:0}
  .initials-summary .consent-initial-body > p{font-size:10px;line-height:1.45}
}

/* Referencias internas de documentos, accesibles desde Mi cuenta. */
.account-references-section{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.account-references-section h3{font-size:17px;margin:0 0 7px}
.account-references-section p{font-size:12px;line-height:1.65;color:#636A5C;margin:0 0 14px}
.account-references-section .btn{max-width:100%;white-space:normal;text-align:center;min-height:44px}

/* Fitzpatrick: puntuación y tipo automático juntos (escritorio y teléfono). */
.skin-score-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;flex:1;min-width:0}
.skin-score-points,.skin-score-type{min-width:0}
.skin-score-type{border-left:1px solid #cad7bc;padding-left:18px}
.skin-score-type strong{display:block;font:700 clamp(18px,3vw,26px)/1.2 system-ui,sans-serif;color:#34482e;overflow-wrap:anywhere}
.skin-score-type p:last-child{font-size:11px;line-height:1.45;color:#667360;margin:7px 0 0}
.skin-score-disclaimer{font-size:11px;line-height:1.5;color:#667360;margin:12px 0 0}
@media(max-width:520px){.skin-score-total{align-items:flex-start}.skin-score-symbol{display:none}.skin-score-metrics{gap:8px}.skin-score-type{padding-left:12px}.skin-score-type strong{font-size:19px}.skin-score-points strong{font-size:29px}.skin-score-type p:last-child{font-size:10px}}


/* Navegación del formulario: los cinco pasos son controles táctiles reales. */
.steps .step{
  appearance:none;
  background:transparent;
  border:1px solid transparent;
  border-radius:13px;
  padding:8px 5px;
  min-height:72px;
  flex:1 1 0;
  min-width:0;
  cursor:pointer;
  font:inherit;
  text-align:center;
  white-space:normal;
  transition:background-color .15s ease, border-color .15s ease;
}
.steps .step:hover{background:#f7e9eb;border-color:#edd6da}
.steps .step:focus-visible{outline:3px solid #8a9f75;outline-offset:2px}
.steps .step.active{cursor:default;background:#f0f4eb;border-color:#cad9c2}
.steps .step strong{display:grid;place-items:center}
.steps .step span{display:block;white-space:normal;overflow-wrap:anywhere}
.step-help{
  color:#647355;
  font-size:12px;
  line-height:1.5;
  text-align:center;
  margin:-13px auto 24px;
  max-width:620px;
}
@media(max-width:760px){
  .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
  .steps .step{min-height:72px;padding:7px 1px;font-size:10px}
  .steps .step strong{width:30px;height:30px}
  .steps .step span{font-size:9px;line-height:1.25}
  .step-help{font-size:11px;margin:-12px 8px 21px}
}

/* Recuperación de acceso debajo del campo de contraseña del administrador. */
.access-card .password-help{display:flex;justify-content:flex-end;margin:-5px 0 12px}
.access-card .password-help .text-link{font-size:13px;font-weight:600;min-height:34px;text-decoration:underline;text-underline-offset:3px;color:#405a37;white-space:normal;text-align:right}
.access-card .password-help .text-link:hover{color:#253b25}
.access-card .reset-status{min-height:0;font-size:12px;line-height:1.6;margin:0 0 12px;color:#425a39}
.access-card .reset-status:empty{display:none}
.access-card .reset-status.form-error{color:#a13b32}
