/* Plataforma — acompanha os tokens da identidade existente. */
[hidden] { display: none !important; }
select, textarea { font: inherit; color: inherit; }
input:is([type="text"], [type="number"], [type="date"], [type="search"], [type="url"]), select, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--enm-control-border); border-radius: 10px; background: var(--enm-surface); padding: 10px 12px; }
textarea { resize: vertical; }
.ui-icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.button { gap: 8px; }
.text-button { border: 0; background: transparent; color: var(--enm-primary); text-decoration: underline; padding: 12px 0; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-illustration { display: inline-block; flex: 0 0 auto; width: 80px; height: 80px; border-radius: 16px; background-size: 400% 400%; background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100% / 3); background-repeat: no-repeat; }
.atlas-0 { background-image: url("/assets/catalog/atlas-0-9413838a.webp"); }
.atlas-1 { background-image: url("/assets/catalog/atlas-1-f6142953.png"); }
.atlas-2 { background-image: url("/assets/catalog/atlas-2-d2be9ec2.png"); }
.atlas-3 { background-image: url("/assets/catalog/atlas-3-84406987.png"); }
.illustration-large { width: 160px; height: 160px; }
.custom-illustration { display: inline-flex; align-items: center; justify-content: center; background: var(--enm-sage-soft); color: var(--enm-secondary); }
.onboarding-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: 56px; align-items: start; }
.onboarding-intro { padding-top: 32px; }
.onboarding-intro > p { max-width: 35ch; }
.onboarding-art { display: flex; margin: 32px 0; }
.onboarding-art .product-illustration + .product-illustration { margin-top: 32px; }
.onboarding-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { min-width: 0; margin-bottom: 20px; }
.field label { font-size: 14px; }
.field-help { margin: 8px 0 0; }
.form-actions, .workspace-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-actions { margin-top: 24px; }
.climate-options { border: 0; padding: 0; margin: 8px 0 24px; }
.climate-options legend { font-weight: 600; margin-bottom: 12px; }
.climate-choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--enm-divider); border-radius: 12px; cursor: pointer; font-weight: 400; }
.climate-choice:has(input:checked) { border-color: var(--enm-secondary); background: var(--enm-success-bg); }
.climate-choice input, .checkbox-label input { accent-color: var(--enm-secondary); width: 18px; height: 18px; flex-shrink: 0; }
.climate-choice strong, .climate-choice small { display: block; }
.climate-choice small { color: var(--enm-text-muted); margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.form-page { max-width: 760px; margin-inline: auto; }
.form-page > .card { margin-top: 28px; }
.form-page > h1 { margin-top: 24px; }
.form-errors { padding: 16px; margin-bottom: 24px; color: var(--enm-error); background: var(--enm-error-bg); border-radius: 12px; }
.form-errors ul { margin-bottom: 0; padding-left: 20px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.quiet-note, .small-note { color: var(--enm-text-muted); font-size: 14px; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.baby-switcher .eyebrow { display: block; margin-bottom: 4px; }
.baby-switcher details { position: relative; }
.baby-switcher summary { font: 30px Georgia, serif; cursor: pointer; overflow-wrap: anywhere; }
.switcher-menu { position: absolute; z-index: 3; min-width: 240px; max-width: 80vw; padding: 12px; background: white; border: 1px solid var(--enm-divider); border-radius: 12px; box-shadow: var(--enm-shadow-card); }
.switcher-menu a { display: block; padding: 10px; }
.layette-overview { display: grid; grid-template-columns: 1.1fr .5fr 1fr; gap: 24px; align-items: center; padding: 36px; background: var(--enm-sage-soft); border-radius: 24px; }
.overview-copy h1 { font-size: clamp(30px, 3.2vw, 40px); }
.overview-copy p:last-child { margin-bottom: 0; font-size: 15px; }
.overview-copy .eyebrow { color: var(--enm-secondary); }
.overview-art .product-illustration { border-radius: 50%; }
.progress-panel { padding: 24px; background: var(--enm-bg); border-radius: 16px; }
.progress-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.progress-caption strong { color: var(--enm-secondary); }
progress { appearance: none; display: block; width: 100%; height: 8px; margin: 16px 0 24px; border: 0; border-radius: 8px; overflow: hidden; background: var(--enm-divider); }
progress::-webkit-progress-bar { background: var(--enm-divider); }
progress::-webkit-progress-value { background: var(--enm-secondary); }
progress::-moz-progress-bar { background: var(--enm-secondary); }
.quantity-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quantity-summary strong { display: block; font: 32px Georgia, serif; color: var(--enm-secondary); }
.quantity-summary span { display: block; font-size: 12px; line-height: 1.5; margin-top: 8px; }
.spending { border-top: 1px solid var(--enm-divider); padding-top: 16px; margin: 20px 0 0; font-size: 13px; }
.spending strong { display: block; font-size: 20px; }
.progress-panel .small-note { font-size: 12px; margin: 8px 0 0; }
.phase-section { margin: 40px 0 48px; }
.section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-line h2, .list-heading h2 { font-size: 27px; }
.section-line > span { font-size: 12px; color: var(--enm-text-muted); }
.phase-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--enm-divider); border-radius: 16px; overflow: hidden; }
.phase-step { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; text-decoration: none; color: var(--enm-text); border-right: 1px solid var(--enm-divider); }
.phase-step:last-child { border: 0; }
.phase-step:hover, .phase-step.selected { background: var(--enm-rose-soft); color: var(--enm-text); }
.phase-step strong { font-size: 14px; }
.phase-step span, .phase-step small { font-size: 11px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.list-heading h2 { margin-bottom: 8px; }
.list-heading p { font-size: 14px; margin: 0; color: var(--enm-text-muted); }
.list-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
.category-sidebar a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 4px; text-decoration: none; color: var(--enm-text-muted); border-radius: 10px; font-size: 14px; }
.category-sidebar a.active { background: var(--enm-rose-soft); color: var(--enm-text); font-weight: 600; }
.sidebar-note { margin-top: 28px; padding: 20px 14px; border-top: 1px solid var(--enm-divider); }
.sidebar-note p { font: 21px/1.3 Georgia, serif; margin: 12px 0; }
.sidebar-note span { font-size: 13px; color: var(--enm-text-muted); }
.item-filters { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr 1fr auto; gap: 8px; }
.item-filters input, .item-filters select, .item-filters .button { font-size: 12px; padding-inline: 10px; }
.search-field { position: relative; }
.search-field .ui-icon { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; }
.search-field input { padding-left: 38px; }
.results-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--enm-text-muted); margin: 20px 0 12px; }
.item-list { display: grid; gap: 10px; }
.layette-row { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--enm-surface); border: 1px solid var(--enm-divider); border-radius: 16px; }
.layette-row.dismissed { background: transparent; }
.row-description { min-width: 0; flex: 1; }
.row-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.row-title h3 { font: 600 15px/1.4 Arial, sans-serif; margin: 0; overflow-wrap: anywhere; }
.row-title h3 a { color: var(--enm-text); text-decoration: none; }
.row-title h3 a:hover { text-decoration: underline; }
.size-tag { background: var(--enm-bg); padding: 2px 7px; border-radius: 5px; font-size: 12px; line-height: 1.5; }
.row-description p { font-size: 11px; color: var(--enm-text-muted); margin: 5px 0; }
.item-status { font-size: 11px; color: var(--enm-primary); }
.item-status.is-complete { color: var(--enm-secondary); }
.row-quantities { display: flex; gap: 18px; margin: 0; text-align: center; }
.row-quantities dt { font-size: 10px; color: var(--enm-text-muted); }
.row-quantities dd { margin: 6px 0 0; font-size: 20px; font-variant-numeric: tabular-nums; }
.owned-quantity dd { color: var(--enm-secondary); }
.row-action { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--enm-divider); border-radius: 10px; }
.row-action { gap: 6px; padding: 8px 10px; font-size: 12px; text-decoration: none; flex-shrink: 0; }
.row-action span { display: inline; }
.empty-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--enm-control-border); border-radius: 16px; }
.calculation-details { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--enm-divider); font-size: 14px; color: var(--enm-text-muted); }
.calculation-details summary, .delete-record summary { cursor: pointer; margin-bottom: 16px; }
.item-detail-header { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.item-detail-header h1 { overflow-wrap: anywhere; }
.item-detail-header p { margin-bottom: 12px; }
.detail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 24px; background: var(--enm-sage-soft); border-radius: 16px; margin-bottom: 32px; }
.detail-stats span, .detail-stats strong { display: block; }
.detail-stats span { font-size: 12px; }
.detail-stats strong { font: 28px Georgia, serif; margin-top: 8px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-columns h2 { font-size: 26px; }
.detail-columns .field-help { margin-bottom: 20px; }
.records-section { margin-top: 40px; }
.record-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--enm-divider); overflow-wrap: anywhere; }
.record-thumbnail { width: 80px; height: 80px; overflow: hidden; border-radius: 16px; background: var(--enm-bg); }
.record-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record-thumbnail .product-illustration { display: block; width: 100%; height: 100%; }
.record-description { min-width: 0; }
.record-row p { font-size: 14px; margin: 8px 0 0; }
.notice-note { padding: 16px; background: var(--enm-warning-bg); border-radius: 12px; font-size: 14px; }
.delete-record { margin-top: 32px; font-size: 14px; }
.share-card > .ui-icon { width: 32px; height: 32px; color: var(--enm-primary); margin-bottom: 20px; }
.share-card p { font-size: 15px; }
.share-card label { font-size: 14px; }
.share-management { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--enm-divider); padding-top: 24px; margin-top: 24px; }
.code-input { text-align: center; font-size: 28px; letter-spacing: .3em; margin-bottom: 8px; }
.login-card .field-help { margin-bottom: 24px; }
@media (max-width: 1000px) {
  .layette-overview { grid-template-columns: 1fr 1fr; }
  .overview-art { display: none; }
  .onboarding-layout { gap: 28px; grid-template-columns: .7fr 1.3fr; }
  .onboarding-art .illustration-large { width: 120px; height: 120px; }
  .list-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 16px; }
  .layette-row { gap: 12px; }
  .layette-row .product-illustration { width: 60px; height: 60px; }
  .row-quantities { gap: 12px; }
  .item-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .onboarding-layout, .detail-columns { grid-template-columns: 1fr; }
  .onboarding-intro { padding: 0; }
  .onboarding-art, .onboarding-intro .quiet-note { display: none; }
  .onboarding-intro h1 br { display: none; }
  .onboarding-intro > p { max-width: none; }
  .list-layout { grid-template-columns: 1fr; }
  .category-sidebar { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .category-sidebar a { flex-shrink: 0; margin: 0; }
  .sidebar-note { display: none; }
  .phase-track { overflow-x: auto; grid-template-columns: repeat(5, minmax(150px, 1fr)); }
  .section-line > span { display: none; }
  .workspace-topbar { align-items: start; }
  .workspace-actions { gap: 8px; }
  .workspace-actions .button { font-size: 12px; padding: 10px; }
  .detail-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .site-header nav { flex-wrap: wrap; }
  .site-header .nav-link, .site-header .button { font-size: 13px; }
  .site-header .button { padding-inline: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .onboarding-card { padding: 24px; }
  .workspace-topbar, .list-heading { flex-direction: column; gap: 16px; }
  .workspace-actions { width: 100%; }
  .workspace-actions .button { flex: 1; }
  .layette-overview { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .overview-copy h1 { font-size: 34px; }
  .phase-section { margin-block: 32px; }
  .list-heading .button { width: 100%; }
  .results-caption span:last-child { display: none; }
  .layette-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; padding: 14px; }
  .row-description { grid-column: 2 / 4; }
  .row-quantities { grid-column: 1 / 3; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--enm-divider); }
  .row-action { grid-column: 1 / -1; justify-self: stretch; }
  .row-quantities dt { font-size: 11px; }
  .item-detail-header { gap: 16px; align-items: start; }
  .item-detail-header .illustration-large { width: 88px; height: 88px; }
  .item-detail-header h1 { font-size: 30px; margin-bottom: 12px; }
  .item-detail-header .eyebrow { font-size: 11px; }
  .detail-stats { gap: 20px; padding: 20px; }
  .detail-stats strong { font-size: 24px; }
  .detail-stats > div:last-child { grid-column: span 2; }
  .record-row { grid-template-columns: 60px minmax(0, 1fr); align-items: start; gap: 12px; }
  .record-thumbnail { width: 60px; height: 60px; }
  .record-row > .text-link { grid-column: 2; justify-self: start; }
  .share-management { align-items: start; flex-direction: column; gap: 8px; }
}

.shared-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.shared-page .item-list { margin-top: 24px; }
@media (max-width: 560px) { .shared-heading > .product-illustration { display: none; } .shared-row .row-quantities { grid-column: 1 / 4; } }

body.modal-open { overflow: hidden; }
.acquisition-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; color: var(--enm-text); background: var(--enm-surface); border: 1px solid var(--enm-divider); border-radius: 20px; box-shadow: var(--enm-shadow-card); }
.acquisition-modal::backdrop { background: rgb(0 0 0 / 40%); }
.modal-heading, .records-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-heading h2 { font-size: 26px; margin: 0; }
.modal-heading .button { flex-shrink: 0; }
.records-heading { margin-bottom: 20px; flex-wrap: wrap; }
.records-heading h2 { margin: 0; }
@media (max-width: 560px) {
  .acquisition-modal { padding: 20px; }
  .modal-heading { align-items: start; }
  .modal-heading h2 { font-size: 23px; }
  .records-heading .button { width: 100%; }
}

.acquisition-photo { display: block; width: 180px; max-width: 100%; height: 180px; object-fit: contain; border-radius: 16px; margin: 12px 0; background: var(--enm-bg); }
.acquisition-photo[hidden] { display: none; }
.photo-remove { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.photo-remove input { width: auto; }

.photo-dropzone { position: relative; border: 1.5px dashed var(--enm-control-border); border-radius: 16px; background: var(--enm-bg); transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.photo-dropzone:hover, .photo-dropzone.is-dragging { border-color: var(--enm-secondary); background: var(--enm-sage-soft); }
.photo-dropzone:focus-within { outline: 3px solid var(--enm-secondary); outline-offset: 3px; }
.photo-dropzone.is-dragging { box-shadow: inset 0 0 0 1px var(--enm-secondary); }
.photo-dropzone.is-invalid { border-color: var(--enm-primary); }
.photo-dropzone .photo-dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; padding: 0; }
.photo-dropzone-prompt { display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 24px 16px; text-align: center; font-size: 14px; color: var(--enm-text-muted); }
.photo-dropzone-prompt strong { color: var(--enm-text); font-size: 15px; }
.photo-dropzone-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--enm-sage-soft); color: var(--enm-secondary); margin-bottom: 4px; }
.photo-dropzone-icon .ui-icon { width: 23px; height: 23px; }
.photo-dropzone-link { color: var(--enm-secondary); text-decoration: underline; text-underline-offset: 3px; }
.photo-dropzone-prompt small { margin-top: 5px; font-size: 12px; }
.photo-selection { display: flex; align-items: center; gap: 16px; padding: 16px; min-width: 0; }
.photo-selection-image { width: 88px; height: 100px; object-fit: contain; border-radius: 10px; background: var(--enm-surface); flex-shrink: 0; }
.photo-selection-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--enm-text-muted); }
.photo-selection-copy strong { overflow-wrap: anywhere; color: var(--enm-text); }
.photo-clear { display: inline-block; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.photo-error { margin: 8px 0 0; color: var(--enm-primary); font-size: 13px; }
.photo-error:empty { display: none; }
.photo-dropzone-prompt[hidden], .photo-selection[hidden], .photo-clear[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .photo-dropzone { transition: none; } }

/* Keep the primary action visible even when the form needs to scroll. */
.acquisition-modal { padding: 20px 24px 0; overflow: hidden; }
.acquisition-modal[open] { display: flex; flex-direction: column; }
.acquisition-modal .modal-heading { flex-shrink: 0; }
.acquisition-modal .modal-heading h2 { font-size: 23px; }
.acquisition-modal #acquisition-modal-item { flex-shrink: 0; margin: 6px 0 16px; font-size: 13px; }
.acquisition-modal > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0 -4px; }
.acquisition-modal .acquisition-form-body { min-height: 0; overflow-y: auto; padding: 4px; margin: 0; scrollbar-gutter: stable; }
.acquisition-modal .field { margin-bottom: 12px; }
.acquisition-modal .field label { margin-bottom: 6px; font-size: 13px; }
.acquisition-modal .field input:not([type="file"]):not([type="checkbox"]), .acquisition-modal .field select, .acquisition-modal .field textarea { padding: 10px 12px; }
.acquisition-modal .field-help { margin-top: 5px; font-size: 12px; line-height: 1.4; }
.acquisition-modal .photo-dropzone-prompt { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 3px; padding: 14px 16px; text-align: left; align-items: center; }
.acquisition-modal .photo-dropzone-icon { grid-column: 1; grid-row: 1 / 4; width: 36px; height: 36px; margin: 0; }
.acquisition-modal .photo-dropzone-prompt strong { font-size: 14px; }
.acquisition-modal .photo-dropzone-prompt > span:not(.photo-dropzone-icon), .acquisition-modal .photo-dropzone-prompt small { grid-column: 2; margin: 0; font-size: 12px; }
.acquisition-modal .photo-dropzone-prompt[hidden] { display: none; }
.acquisition-modal .photo-selection { padding: 10px 12px; }
.acquisition-modal .photo-selection-image { width: 64px; height: 72px; }
.acquisition-modal .acquisition-form-actions { flex-shrink: 0; padding: 12px 0 20px; border-top: 1px solid var(--enm-divider); margin: 4px 4px 0; background: var(--enm-surface); }
@media (max-width: 600px) {
  .acquisition-modal { padding: 16px 16px 0; max-height: calc(100dvh - 24px); }
  .acquisition-modal .modal-heading h2 { font-size: 21px; }
  .acquisition-modal .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .acquisition-modal .acquisition-form-actions { padding-bottom: 16px; }
}

/* Acesso: validade em destaque, suporte em uma seção recolhível. */
.access-overview-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.access-overview-heading h2 { margin: 0; font-size: 28px; }
.access-price { white-space: nowrap; font-size: 18px; font-weight: 600; }
.access-price span { color: var(--enm-text-muted); font-size: 14px; font-weight: 400; }
.access-validity { margin-top: 12px; }
.access-overview .form-actions:empty { display: none; }
.access-refunds { margin-top: 32px; border-top: 1px solid var(--enm-divider); font-size: 14px; }
.access-refunds summary { cursor: pointer; padding-block: 16px; font-weight: 600; }
.access-refunds summary:focus-visible, .access-refund-action:focus-visible { outline: var(--enm-focus-ring); outline-offset: 4px; }
.access-refund-policy { color: var(--enm-text-muted); }
.access-refund-policy summary { font-weight: 400; }
.access-purchase { padding-block: 20px; border-top: 1px solid var(--enm-divider); }
.access-purchase h3 { margin: 0 0 8px; font: inherit; font-weight: 600; }
.access-purchase p { margin: 8px 0; }
.access-refund-action { min-height: 44px; text-align: left; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .access-overview { padding: 20px; }
  .access-overview .form-actions .button { width: 100%; }
}
