/* Holder upload flow: mobile-first screens (see the "Holder Upload & Org Verification UI" prototype).
 * Also used by the admin and unsubscribe pages, which share the field/button components. */
:root { --h-ink: #1d2a19; --h-forest: #243420; --h-help: #5b6557; --h-line: #e1e2d5; --h-field: #c7cbba; --h-pale: #eef3e2; --h-amber: #fbf1d2; --h-amber-line: #e8d38f; }
.holder-body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f7f5ec; color: var(--h-ink); font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.holder-body [hidden] { display: none !important; }
.holder-body a { color: #2e4228; }
.holder-body a:hover { color: #3f7a22; }
.holder-main { width: 100%; max-width: 440px; margin: 0 auto; padding: 0 24px 32px; flex: 1; box-sizing: border-box; }
.holder-top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.holder-top nav a { font-size: 14px; font-weight: 600; }
.holder-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; color: var(--h-forest) !important; text-decoration: none; }
.holder-brand span { color: #57a234; }
.holder-brand small { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--h-help); font-weight: 600; }
.holder-step-label { font-size: 13px; font-weight: 600; color: var(--h-help); }
.holder-footer { text-align: center; padding: 20px; font-size: 13px; color: var(--h-help); }
.holder-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.holder-bars i { height: 4px; border-radius: 2px; background: #d9dccb; }
.holder-bars i.is-on { background: var(--h-forest); }

.holder-screen h1, .holder-card h1, .holder-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--h-forest); margin: 32px 0 10px; }
.holder-card h1, .holder-intro h1 { margin-top: 24px; }
.holder-lede, .holder-intro p, .holder-card > p { font-size: 15px; line-height: 1.5; color: var(--h-help); margin: 0 0 22px; }
.holder-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--h-help); margin-top: 24px; }
.holder-hint { font-size: 13px; line-height: 1.5; color: var(--h-help); margin: 6px 0 0; }
.holder-optional { font-weight: 500; color: #7a8275; }
.holder-subhead { font-size: 15px; font-weight: 700; margin: 24px 0 4px; }
.holder-card { background: transparent; padding: 0; margin: 0 0 20px; }
.holder-card + .holder-card { border-top: 1px solid var(--h-line); padding-top: 4px; }
.holder-panel { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }

.holder-flash { border-radius: 10px; padding: 12px 14px; margin: 16px 0 0; font-size: 14px; }
.holder-flash ul { margin: 6px 0 0 18px; list-style: disc; }
.holder-flash-notice { background: var(--h-pale); border: 1px solid #cfe0ad; color: #2e4a16; }
.holder-flash-alert { background: #fdeeee; border: 1px solid #f0c0c0; color: #8f2b2b; }
.holder-notice { background: var(--h-amber); border: 1px solid var(--h-amber-line); border-radius: 12px; padding: 14px; margin: 14px 0; font-size: 14px; line-height: 1.45; }

.holder-field { display: block; font-size: 13px; font-weight: 600; color: #525c4e; margin: 0 0 18px; }
.holder-field > input:not([type=checkbox]):not([type=radio]):not([type=file]), .holder-field > select, .holder-field > textarea,
.holder-input { box-sizing: border-box; display: block; width: 100%; height: 48px; margin-top: 6px; border: 1px solid var(--h-field); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--h-ink); }
.holder-field > textarea { height: auto; padding: 10px 14px; }
.holder-field > input:focus, .holder-field > select:focus, .holder-field > textarea:focus, .holder-input:focus { outline: 2px solid var(--h-forest); outline-offset: 0; border-color: var(--h-forest); }
.holder-field > input:disabled, .holder-field > select:disabled { background: #f1f1ea; color: #8a9185; }
.holder-field small { display: block; margin-top: 6px; color: var(--h-help); font-weight: 400; font-size: 13px; line-height: 1.5; }
.holder-field abbr { color: #b03030; text-decoration: none; }
.holder-label-row { display: flex; align-items: center; gap: 8px; }
.holder-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.holder-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3f5a1a; background: #e6f0cf; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.holder-tag-amber { color: #553e00; background: #f6ecc9; }

.holder-button { box-sizing: border-box; min-height: 52px; border: 0; border-radius: 10px; background: var(--h-forest); color: #e9f5c9 !important; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.holder-button:hover { background: #1a2717; }
.holder-button-primary { width: 100%; }
.holder-button-secondary { background: transparent; color: var(--h-forest) !important; border: 1.5px solid var(--h-forest); min-height: 44px; font-size: 12px; letter-spacing: .12em; padding: 0 14px; }
.holder-button-secondary:hover { background: rgba(36, 52, 32, .06); }
.holder-button-danger { background: transparent; color: #a32d2d !important; border: 1.5px solid #d9a3a3; min-height: 44px; font-size: 12px; letter-spacing: .12em; }
.holder-button-lime { background: #b6d95c; color: var(--h-ink) !important; min-height: 48px; width: 100%; }
.holder-button-lime:hover { background: #a6c94e; }
.holder-link-button { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; color: #2e4228; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.holder-inline-form { display: inline; }
.holder-footnote { text-align: center; font-size: 13px; color: var(--h-help); margin: 16px 0 0; }
.holder-actions { margin-top: 24px; }
.holder-actions .holder-link-button { width: 100%; justify-content: center; margin-top: 4px; }
.holder-stack { display: flex; flex-direction: column; gap: 10px; }

.holder-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.holder-dropzone { border: 1.5px dashed #9fa98f; border-radius: 14px; background: var(--h-pale); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 4px; }
.holder-dropzone > div { font-weight: 600; }
.holder-dropzone-buttons { display: flex; gap: 10px; }
.holder-dropzone .holder-button { position: relative; }
.holder-preview { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.holder-preview-frame { display: flex; align-items: center; justify-content: center; min-height: 120px; max-height: 240px; background: #fffdf6; border: 1px solid var(--h-line); border-radius: 8px; overflow: hidden; }
.holder-preview-frame img { max-height: 232px; width: auto; max-width: 100%; }
.holder-preview-file { font-weight: 700; color: var(--h-help); letter-spacing: .1em; }
.holder-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.holder-preview-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.holder-preview-actions { display: flex; gap: 8px; flex-shrink: 0; }
.holder-icon-button { width: 44px; padding: 0; }

.holder-search { position: relative; }
.holder-search svg { position: absolute; left: 14px; top: 21px; pointer-events: none; }
.holder-search input { padding-left: 40px !important; }
.holder-search input:focus { border-width: 2px; }
.holder-results { background: #fff; border: 1px solid var(--h-field); border-radius: 12px; overflow: hidden; margin: -10px 0 18px; box-shadow: 0 10px 28px rgba(36, 52, 32, .14); }
.holder-option { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 14px; border: 0; border-top: 1px solid #ecece3; background: #fff; text-align: left; font: inherit; color: var(--h-ink); cursor: pointer; }
.holder-option:first-child { border-top: 0; }
.holder-option:hover, .holder-option:focus-visible { background: var(--h-pale); outline: none; }
.holder-option strong { font-weight: 700; }
.holder-option span { font-size: 13px; color: var(--h-help); }
.holder-option-add { flex-direction: row; align-items: center; gap: 10px; padding: 14px; font-weight: 700; background: #f7f5ec; }
.holder-option-empty { padding: 12px 14px; font-size: 14px; color: var(--h-help); }
.holder-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--h-pale); border: 1px solid #cfe0ad; border-radius: 10px; padding: 12px 14px; font-weight: 700; margin: 6px 0 18px; }
.holder-chip button { background: none; border: 0; cursor: pointer; font-size: 16px; min-height: 32px; min-width: 32px; }
.holder-near { background: var(--h-amber); border: 1px solid var(--h-amber-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; font-size: 14px; }
.holder-near > div:last-child { display: flex; gap: 8px; }
.holder-back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #2e4228; cursor: pointer; }

.holder-summary { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 4px 16px; margin: 0; }
.holder-summary > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #e6e6db; }
.holder-summary > div:first-child { border-top: 0; }
.holder-summary dt { font-size: 13px; color: #6b7266; }
.holder-summary dd { font-size: 14px; font-weight: 700; text-align: right; margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; word-break: break-word; }
.holder-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.holder-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--h-forest); flex-shrink: 0; }

.holder-code-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--h-pale); display: flex; align-items: center; justify-content: center; margin-top: 28px; }
.holder-code-icon + h1 { margin-top: 20px; }
.holder-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.holder-digits input { box-sizing: border-box; width: 100%; height: 58px; border: 1px solid var(--h-field); border-radius: 10px; background: #fff; font: inherit; font-size: 24px; font-weight: 700; text-align: center; color: var(--h-ink); padding: 0; }
.holder-digits input:focus { border: 2px solid var(--h-forest); outline: none; }
.holder-code-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; color: var(--h-help); }
.holder-code-meta a, .holder-code-meta .holder-link-button { font-size: 13px; min-height: 32px; }
.holder-sticky-bottom { margin-top: 48px; }

.holder-record { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.holder-record .status-badge { margin-bottom: 4px; }
.holder-record-name { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 700; margin: 14px 0 2px; }
.holder-record .holder-summary { border: 0; padding: 0; border-radius: 0; }
.holder-person { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 16px; }
.holder-person-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--h-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.holder-radio { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid #d9dccb; border-radius: 12px; background: #fff; cursor: pointer; margin: 0; }
.holder-radio:has(input:checked) { border: 2px solid var(--h-forest); padding: 15px; }
.holder-radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--h-forest); flex-shrink: 0; }
.holder-radio strong { display: block; }

.holder-live-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.holder-qr-card { background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.holder-qr-card .credential-qr { width: 200px; height: 200px; }
.holder-qr-card .credential-qr svg { width: 100%; height: 100%; }
.holder-qr-url { font-size: 14px; font-weight: 700; word-break: break-all; text-align: center; }
.holder-button-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.holder-share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.holder-speedup { margin-top: 20px; background: var(--h-forest); color: #e9f5c9; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.holder-speedup h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 700; color: #fff; margin: 0; }
.holder-speedup p { font-size: 14px; line-height: 1.5; margin: 0; }
.holder-speedup details { font-size: 13px; }
.holder-speedup summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.holder-nudge { box-sizing: border-box; width: 100%; margin-top: 8px; padding: 10px 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; }
.holder-more { text-align: center; margin-top: 20px; font-weight: 700; }

.holder-credential-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.holder-credential-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--h-ink) !important; }
.holder-credential-row small { display: block; color: var(--h-help); font-size: 13px; margin-top: 2px; }
.holder-breadcrumb { font-size: 14px; color: var(--h-help); margin: 8px 0 0; }
.holder-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--h-line); border-radius: 12px; padding: 10px 12px; margin: 14px 0; }
.holder-share code { flex: 1 1 200px; font-size: 13px; word-break: break-all; }
.holder-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.holder-qr .credential-qr { width: 168px; height: 168px; flex: none; }
.holder-qr .credential-qr svg { width: 100%; height: 100%; }
.holder-qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.holder-results-list { list-style: none; margin: 0; padding: 0; }
.holder-history { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.holder-history small { display: block; color: var(--h-help); font-size: 13px; }
.holder-code-input { letter-spacing: .4em; font-size: 24px !important; text-align: center; }
