.folder:has(.dual-entry) { aspect-ratio: auto; padding-top: clamp(155px, 38vw, 250px) }
.folder:has(.dual-entry) .photo-stage { bottom: auto; height: clamp(335px, 77vw, 453px) }
.folder:has(.dual-entry) .folder-front { position: relative; inset: auto }
.dual-entry [hidden] { display: none }
.dual-entry { display: grid; gap: 8px }
.dual-entry button { border-radius: 7px; min-height: 42px; padding: 8px 16px; font: inherit; cursor: pointer }
.dual-entry label { color: #e5f0f2; font-size: 14px }
.dual-entry .entry-label { color: white; font-size: clamp(17px, 4vw, 24px); padding-right: 48px }
.dual-entry input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c2c7ca; border-radius: 7px; font: inherit }
.dual-entry input:focus { outline: 0; border-color: #5c8193 }
.dual-entry button:focus-visible { outline: 1px solid white; outline-offset: 2px }
.dual-entry button:disabled { opacity: .6; cursor: wait }
.credential-row { display: flex; background: white; border: 1px solid #c2c7ca; border-radius: 7px; overflow: hidden }
.credential-row:focus-within { border-color: #5c8193 }
.credential-row input { flex: 1 1 auto; min-width: 0; border: 0 }
#credential::placeholder { color: #6d7981; font-size: clamp(12px, 3.65vw, 16px); opacity: 1 }
.credential-row .reveal { flex: none; font-size: 13px }
.credential-row .reveal:focus-visible { outline-color: #1f4456; outline-offset: -2px }
.dual-entry .submit, .entry-actions { justify-self: start; margin-top: 4px }
.entry-actions { display: flex; gap: 8px; flex-wrap: wrap }
#entry-message { margin: 10px 0 0; color: #fff; font-size: 14px; overflow-wrap: anywhere }
#entry-message:empty { display: none }

.access-panel { background: white; padding: clamp(18px,4vw,32px); border-radius: var(--card-radius); box-shadow: var(--card-shadow); max-width: 890px }
.access-panel h2 { margin: 0 0 12px; font-size: 21px }
.access-panel p { color: var(--card-copy); margin: 0 0 14px }
#access-form, #access-import, #access-scan, .access-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
#access-form input { flex: 1 1 240px; min-width: 0 }
#access-addresses { list-style: none; padding: 0; margin: 16px 0 0 }
.access-row { padding: 12px 0; border-top: 1px solid #e7e8e8; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px }
.access-row-address { overflow-wrap: anywhere }
.access-row-status { color: var(--card-copy); font-size: 13px }
.access-row-actions button { min-inline-size: 66px }
.access-row-actions button:disabled { color: #646d72; opacity: .65; cursor: default }
.access-batch { border-radius: 10px; padding: clamp(14px,3vw,20px); margin-top: 20px; background: #f6f6f5 }
.access-batch h3 { margin: 0 0 8px; font-size: 17px }
#access-scan input { max-width: 100%; min-width: 0 }
#access-scan input::file-selector-button { margin-right: 10px; padding: 8px 12px; cursor: pointer }
#access-confirm:not([hidden]) { display: grid; gap: 8px; margin-top: 14px }
#access-confirm textarea { resize: vertical; width: 100%; min-height: 90px; overflow-wrap: anywhere }
#access-confirm p { margin: 0 0 3px; font-size: 13px }
#access-scan-errors { margin: 8px 0 0; padding-left: 18px; color: #8d392b; font-size: 13px; overflow-wrap: anywhere }
#access-message, #portal-save-status, #access-scan-status { color: var(--card-copy); font-size: 14px }
#access-scan-status { margin: 10px 0 0 }
#access-message:empty, #portal-save-status:empty, #access-scan-status:empty { display: none }
#portal-save-status { padding: 8px 12px; margin: 0; text-align: center; background: #f6f2e9 }
#plan-update-dot:not([hidden]) {
  display: inline-block; flex: none; vertical-align: middle; width: 8px; height: 8px;
  margin-inline-start: 6px; border-radius: 50%; background: var(--brand-orange);
}
.email-panel-note { font-size: 13px; color: var(--card-copy); line-height: 1.6; margin-top: 4px }
#person-email:focus-visible { outline: none }
.portal-response { padding: 10px 0; border-top: 1px solid #ddd }
.portal-response h4 { margin: 0 0 4px; font-size: 14px }
.portal-response time { color: var(--card-copy); font-size: 12px }
.portal-response ol { margin-top: 10px }
.portal-response li p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--card-copy); margin: 4px 0 0 }
.access-row-actions .access-remove { color: #9f301c }
.access-row-actions .access-remove:hover { background: #fcf0eb }
.portal-response audio, .portal-feedback audio { display: block; width: 100%; max-width: 340px; height: 40px; margin-top: 8px }
.portal-invite { margin: 13px 0; display: grid; gap: 7px; justify-items: start; font-size: 13px; color: var(--card-copy) }
.portal-invite p { margin: 0 }
.invite-row { display: flex; gap: 6px; width: 100%; align-items: center }
.invite-row input { min-width: 0; width: 100%; padding: 7px 9px; font-size: 12px }
.invite-row button { flex: none }
.brief-edit-bar { background: #fff; padding: 10px clamp(18px,4vw,65px); display: flex; justify-content: flex-end }
.portal-editor { width: min(calc(100vw - 28px), 670px); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 18px; background: white; box-shadow: 0 14px 64px #1f445644; color: var(--ink) }
.portal-editor::backdrop { background: #142b3a77 }
.portal-editor form { display: flex; flex-direction: column; padding: 20px clamp(16px,4vw,30px); max-height: calc(100dvh - 40px) }
.portal-editor header, .portal-editor footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0; border: 0; background: white; color: inherit }
.portal-editor h2, .portal-editor p { margin: 0 }
.portal-editor footer { padding-top: 12px }
#editor-note { color: var(--card-copy); margin: 10px 0 }
#editor-fields { display: grid; gap: 12px; overflow: auto; padding: 2px 4px 8px 0 }
#editor-fields label { display: grid; gap: 4px; color: var(--card-copy) }
#editor-fields textarea { width: 100%; padding: 8px 10px; resize: vertical; line-height: 1.65 }
.card-actions .card-edit { border: 0; padding: 2px; background: none; color: var(--ink); font-size: 12px }
.card-actions > * { min-width: 0 }
.personal:has(.portal-comparison) { max-width: 1460px }
.portal-comparison { margin: 18px 0 26px }
.portal-comparison > h2 { margin-bottom: 16px }
.portal-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(12px,2.8vw,28px); align-items: start }
.portal-columns section > h3 { margin: 0 0 10px; font-size: 17px; color: #1f4456 }
.portal-feedback { background: white; padding: clamp(14px,2.2vw,24px); border-radius: var(--card-radius,12px); box-shadow: var(--card-shadow); overflow-wrap: anywhere }
.portal-feedback p { color: var(--card-copy); white-space: pre-wrap; margin: 6px 0 0 }
.feedback-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--card-copy) }
.feedback-stamp span { color: #1f4456; background: #f0f4f5; padding: 2px 8px; border-radius: 6px }
.feedback-answers { padding-inline-start: 20px; margin: 8px 0 0 }
.feedback-answers li { padding: 10px 0; line-height: 1.65; border-top: 1px solid #e7e8e8 }
@media(max-width:800px) { .portal-columns { grid-template-columns: minmax(0,1fr) } }
