/* Pageant's account, feedback, and live-data components layered onto the supplied design. */
html { scroll-padding-top: 18px; }
body { line-height: 1.5; }
main { max-width: 1440px; margin-inline: auto; }
header .brand { display: inline-flex; align-items: center; gap: 7px; }
header .main-nav { gap: clamp(10px, 1.7vw, 24px); }
header .main-nav a:not(.btn):hover, .account-nav:hover { color: var(--pink); }
.account-nav { padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--purple); cursor: pointer; font-weight: 900; }
.main-nav #signout-button[hidden] { display: none; }
.feature-settings-error[hidden], [data-pageant-feature][hidden] { display: none !important; }
.feature-settings-error { max-width: 1440px; margin: 12px auto; padding: 10px 16px; border: 1px solid #efb2bf; border-radius: 10px; background: #fff0f1; color: #8f1e39; font-size: 13px; }
.btn:disabled, .small-btn:disabled { cursor: not-allowed; opacity: .55; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 900; }
.button-pop { background: linear-gradient(#ff5ba5, #f51583); color: #fff; box-shadow: 0 3px 0 #d80a70; }
.button-dark { background: #54206e; color: #fff; }
.button-outline { border: 1px solid #b58bff; background: #faf5ff; color: var(--purple); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.btn:focus-visible, .small-btn:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #8350c8; outline-offset: 3px; }
.button-full { width: 100%; }
.drop input { left: 50%; bottom: 14px; }
.drop:focus-within { outline: 3px solid #8350c8; outline-offset: 3px; }
.preview-wrap { position: relative; margin: 12px 0; }
.preview-wrap[hidden], .critique-result[hidden], #profile[hidden] { display: none !important; }
.preview-wrap img { display: block; width: min(100%, 360px); max-height: 300px; margin: 0 auto; object-fit: contain; border-radius: 14px; }
.text-button { display: block; margin: 8px 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: var(--purple); cursor: pointer; text-decoration: underline; }
.turnstile-slot { margin: 12px 0; }
.form-status { min-height: 18px; margin: 9px 0 0; color: #493451; font-size: 11px; }
.form-status[data-state="error"] { color: #a32242; }
.privacy-note { margin: 12px 0; color: #493451; font-size: 11px; line-height: 1.5; }
.upload > .privacy-note, .upload > .form-status { margin-left: 0; }
.review-empty { margin: 8px 0; padding: 12px 15px; border-radius: 12px; background: #fff4d7; color: #493451; font-size: 12px; }
.results > img { aspect-ratio: .79; min-width: 0; }
.score { min-width: 0; padding: 0 5px; }
.score > div { white-space: nowrap; }
.score b { font-size: clamp(28px, 3.7vw, 52px); }
.banner { min-height: 30px; padding: 7px 5px; font-size: 10px; }
.metrics { min-width: 0; padding: 8px; }
.metrics .metric { position: relative; margin: 5px 0 9px; min-width: 0; }
.metrics .metric > span { display: inline-block; max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.metrics .metric > b { float: right; white-space: nowrap; }
.metrics .metric > i { height: 7px; margin: 4px 0 0; overflow: hidden; background: #e5e0e5; }
.metrics .metric > i > span { display: block; width: var(--score-value, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2da948, #80cf68); }
.score-method { margin: 4px 0 12px; color: #604c61; font-size: 10px; line-height: 1.5; }
.critique-result { padding: 10px 1% 5px; border-top: 1px solid #ffd9e7; }
.critique-result h3 { margin: 0 0 7px; font-size: clamp(17px, 2vw, 24px); }
.result-kicker { margin: 6px 0; color: var(--pink); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.result-summary { margin: 0 0 12px; color: #493451; font-size: 12px; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 12px 0; }
.result-columns h4 { margin: 0 0 6px; color: var(--purple); font-size: 12px; }
.result-columns ul { margin: 0; padding-left: 17px; color: #493451; font-size: 11px; line-height: 1.5; }
.result-columns li { margin-bottom: 5px; }
.next-shot { align-items: flex-start; margin: 12px 0; background: #ffe4f1; }
.next-shot > span { flex: 0 0 auto; }
.next-shot h3 { margin: 3px 0 4px; font-size: 15px; }
.next-shot p { margin: 0; font-size: 12px; }
.model-note { margin: 5px 0 12px; color: #604c61; font-size: 10px; }
.steps > div { max-width: 250px; }
.section { max-width: 1440px; margin-inline: auto; }
.section > .heading { align-items: end; margin-bottom: 15px; }
.section > .heading p { margin-top: 5px; color: #5b4e61; }
.contest { min-width: 0; }
.contest-main { min-height: 0; align-items: stretch; }
.contest-main > img { align-self: stretch; flex: 0 0 38%; width: 38%; min-width: 0; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; }
.contest-copy { min-width: 0; padding: 14px 10px 9px; }
.contest-copy h3 { padding-right: 42px; font-size: clamp(16px, 1.9vw, 25px); }
.contest-copy p { min-height: 36px; margin: 8px 0; color: #493451; }
.crown-badge { z-index: 2; min-width: 44px; padding: 11px 6px; }
.contestant-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-content: start; gap: 4px; max-height: 80px; margin: 9px 0 2px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.contestant-slot { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #e9cde0; border-radius: 5px; background: #fffdfa; color: var(--purple); font-size: 9px; }
.contestant-slot.is-filled { background: #fff0f5; }
.contestant-slot .slot-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(1px); transform: scale(1.04); }
.contestant-slot .slot-number { position: absolute; z-index: 1; right: 3px; bottom: 2px; min-width: 13px; padding: 1px 4px; border-radius: 8px; background: #fffdfaeb; color: var(--purple); font-size: 9px; line-height: 1.2; text-align: center; }
.contestant-slot.is-next button { width: 100%; height: 100%; min-height: 0; padding: 0; border: 1px dashed #bd8de2; border-radius: inherit; background: #faf5ff; color: var(--purple); cursor: pointer; font-size: 16px; font-weight: 900; }
.contest-bottom { padding: 9px 11px; font-size: 10px; }
.contest-bottom span:last-child { text-align: right; }
.loading-state, .empty-state { grid-column: 1 / -1; min-height: 98px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 16px; border: 1px dashed #d4b5cc; border-radius: 18px; color: #5b4e61; font-size: 12px; text-align: center; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; transform: scale(.7); } }
.prize { padding: 14px 20px; }
.prize p { max-width: 360px; color: #493451; font-size: 12px; }
.prize img { max-height: 84px; }
.score-guide-cards { margin-top: 12px; }
.main-review { align-items: start; }
.main-review > * { min-width: 0; }
.guest-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.guest-review-actions[hidden] { display: none !important; }
.guest-review-actions .text-button { margin: 6px 4px; }
.guest-review-actions .model-note { flex-basis: 100%; margin: 0; }
.review-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.review-options .btn { min-height: 48px; padding: 10px 12px; white-space: normal; text-align: center; }
.results #critique-metrics[hidden], #summary-details[hidden] { display: none !important; }
.detailed-report { margin: 14px 0; }
.detailed-report[hidden] { display: none !important; }
.detailed-report h4 { margin: 13px 0 7px; color: var(--purple); font-size: 14px; }
.detailed-report > p { margin: 7px 0; color: #493451; font-size: 12px; line-height: 1.55; }
.detailed-category-list { display: grid; gap: 9px; }
.detailed-category { padding: 11px 12px; border: 1px solid #f5dce7; border-radius: 12px; background: #fffdfa; }
.detailed-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 5px; color: var(--purple); font-size: 13px; font-weight: 900; }
.detailed-category-score { color: #a60971; white-space: nowrap; }
.detailed-category p { margin: 5px 0; color: #493451; font-size: 11px; line-height: 1.5; }
.detailed-category p strong { color: var(--purple); }
.profile-credit-section { margin-top: 22px; padding: 16px 0 0; border-top: 1px solid #f2d5e3; }
.profile-credit-section h3 { margin-bottom: 5px; }
.profile-credit-balance { margin: 4px 0 10px; color: #493451; }
.profile-credit-balance strong { color: var(--purple); }
.profile-credit-packages { display: grid; gap: 8px; }
.profile-credit-packages .photo-action { width: 100%; justify-self: stretch; padding: 9px 10px; font-size: 12px; }
.billing-status { min-height: 18px; margin: 8px 0 0; color: #493451; font-size: 11px; }
.billing-status[data-state="error"] { color: #a32242; }
.auth-dialog form[hidden] { display: none !important; }
.score-guide-cards .winner { padding-bottom: 14px; }
.score-guide-cards .winner img { aspect-ratio: 2.3; }
.score-guide-cards .winner h3 { padding: 9px 12px 4px; }
.score-guide-cards .winner p { padding: 0 14px 7px; color: #493451; font-size: 12px; }
.myphotos { align-items: start; max-width: 1350px; }
.myphotos h2 { line-height: 1.1; }
.myphotos > div:first-child > p { color: #493451; }
.profile-photos-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 9px; }
.profile-photos-heading h3, .profile-subsection h3 { margin: 0; color: var(--purple); font-size: 17px; }
.profile-photos-heading label { display: grid; gap: 4px; color: #493451; font-size: 10px; font-weight: 800; }
.profile-photos-heading select, .photo-field-label input, .photo-field-label select { min-height: 34px; max-width: 100%; padding: 5px 8px; border: 1px solid #c399ff; border-radius: 8px; background: #fffdfa; color: var(--ink); font: inherit; font-size: 11px; }
.profile-photo-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.profile-photo-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px; border: 1px solid #f8dcea; border-radius: 12px; background: #fffdfa; }
.profile-photo-card > img { width: 86px; aspect-ratio: 4 / 5; border-radius: 7px; object-fit: cover; }
.profile-photo-card h4 { margin: 8px 0 4px; color: var(--purple); font-size: 13px; }
.profile-photo-card p { margin: 5px 0; color: #493451; font-size: 10px; }
.profile-photo-card ul { margin: 5px 0; padding-left: 16px; color: #493451; font-size: 10px; line-height: 1.45; }
.profile-photo-card .profile-readiness { color: #a60971; font-weight: 900; }
.profile-score-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; max-width: 540px; margin: 7px 0; padding: 7px; }
.profile-score-metrics .metric { margin: 2px 0 5px; font-size: 9px; }
.profile-score-metrics .metric > i { height: 5px; }
.photo-edit-form { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 6px; }
.photo-field-label { display: grid; gap: 3px; color: #493451; font-size: 9px; font-weight: 800; }
.photo-edit-form .photo-action { grid-column: 1 / -1; }
.photo-action { justify-self: start; padding: 6px 10px; border: 1px solid #b58bff; border-radius: 20px; background: #faf5ff; color: var(--purple); cursor: pointer; font-size: 10px; font-weight: 900; }
.photo-action:hover { background: #f1e6ff; }
.profile-photo-card > div > .photo-action { margin: 5px 5px 2px 0; }
.profile-subsection { margin-top: 17px; }
.profile-subsection h3 { margin-bottom: 7px; }
.profile-entry { padding: 8px 0; border-top: 1px solid #f8dcea; color: #493451; font-size: 10px; }
.profile-empty { padding: 12px; border: 1px dashed #c399ff; border-radius: 12px; color: #5b4e61; font-size: 11px; }
.profile-page main { min-height: 70vh; }
.profile-page-intro { padding: 34px 5.7% 24px; }
.profile-page-intro .eyebrow { margin-bottom: 7px; color: var(--pink); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.profile-page-intro h1 { margin-bottom: 9px; }
.profile-page-intro > p:last-child { color: #493451; font-size: 17px; }
.profile-gate { max-width: 690px; margin: 0 auto 24px; }
.profile-gate h2 { margin-bottom: 8px; }
.profile-gate > p:not(.eyebrow):not(.form-status) { color: #493451; font-size: 16px; }
.profile-gate-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 18px; }
.profile-page .workspace[hidden], .profile-page .myphotos[hidden], .profile-gate[hidden] { display: none !important; }
.profile-page .workspace { margin-top: 4px; }
.profile-upload-category { display: grid; gap: 5px; margin: 13px 0; color: #493451; font-size: 14px; font-weight: 800; }
.profile-upload-category select, .create-category-form input { min-height: 42px; padding: 7px 10px; border: 1px solid #c399ff; border-radius: 9px; background: #fffdfa; color: var(--ink); font: inherit; }
.profile-page .myphotos { grid-template-columns: minmax(220px, 29%) minmax(0, 1fr); margin-top: 26px; }
.profile-sidebar h2 { margin: 2px 0 8px; font-size: clamp(24px, 3vw, 35px); }
.profile-sidebar > p:not(.eyebrow):not(.form-status) { color: #493451; font-size: 14px; }
.profile-category-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid #f2d5e3; }
.profile-category-section > p { margin: 5px 0 11px; color: #493451; font-size: 14px; }
.create-category-form { display: grid; gap: 6px; }
.create-category-form label { color: #493451; font-size: 14px; font-weight: 800; }
.create-category-form .photo-action { justify-self: start; font-size: 13px; }
.category-help { font-size: 12px !important; }
.category-manager { display: grid; gap: 6px; }
.profile-category-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 1px solid #f5dce7; border-radius: 9px; background: #fffdfa; color: var(--ink); font-size: 14px; }
.profile-category-row .photo-action { font-size: 12px; }
.profile-photo-card p { font-size: 14px; line-height: 1.45; }
.profile-photo-card ul { font-size: 13px; line-height: 1.5; }
.feedback-wait-dialog { width: min(440px, calc(100% - 30px)); padding: 0; border: 2px solid var(--purple); border-radius: 22px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 60px #24143b40; }
.feedback-wait-dialog::backdrop { background: #24143bbd; backdrop-filter: blur(3px); }
.feedback-wait-content { display: grid; justify-items: center; gap: 12px; padding: 31px 28px; text-align: center; }
.feedback-wait-content h2 { font-size: clamp(22px, 5vw, 30px); }
.feedback-wait-content p { color: #493451; font-size: 16px; }
.feedback-wait-content .feedback-wait-status { color: var(--purple); font-size: 14px; font-weight: 900; }
.feedback-wait-spinner { width: 46px; height: 46px; border: 5px solid #eadcf5; border-top-color: var(--pink); border-radius: 50%; animation: feedback-wait-spin .85s linear infinite; }
@keyframes feedback-wait-spin { to { transform: rotate(360deg); } }
footer { max-width: 1440px; margin: 28px auto 0; padding: 30px 4%; }
footer .brand { color: #fff; font-size: 17px; }
footer .brand em { color: #ffb4d1; }
footer small, .footer-admin-link { color: #fff; font-size: 10px; }
.entry-dialog { width: min(530px, calc(100% - 30px)); max-height: min(92vh, 850px); padding: 0; border: 0; border-radius: 23px; background: transparent; color: var(--ink); }
.entry-dialog::backdrop { background: rgba(36, 20, 59, .68); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; max-height: min(92vh, 850px); overflow-y: auto; padding: 32px; border: 3px solid var(--purple); border-radius: 23px; background: var(--cream); box-shadow: 7px 7px 0 var(--gold); }
.dialog-close { position: absolute; top: 14px; right: 15px; width: 34px; height: 34px; border: 1px solid #e5c8da; border-radius: 50%; background: transparent; color: var(--purple); cursor: pointer; font-size: 22px; line-height: 1; }
.dialog-shell .eyebrow { padding-right: 35px; color: var(--pink); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.dialog-shell h2 { margin-bottom: 11px; font-size: clamp(30px, 7vw, 42px); }
.dialog-intro { margin-bottom: 18px; color: #493451; font-size: 12px; }
.dialog-shell > label:not(.consent-row) { display: block; margin: 12px 0 5px; font-size: 11px; font-weight: 800; }
.dialog-shell select, .dialog-shell input[type="text"], .dialog-shell input[type="password"] { width: 100%; height: 43px; padding: 0 11px; border: 1px solid #c399ff; border-radius: 10px; background: #fffdfa; color: var(--ink); font-size: 12px; }
.dialog-shell select:disabled { color: #999; background: #f0ede7; }
.auth-actions { display: flex; gap: 9px; margin-top: 18px; }
.auth-actions .button { flex: 1; }
.consent-row { display: grid; grid-template-columns: 17px 1fr; gap: 9px; align-items: start; margin: 15px 0 11px; color: #493451; font-size: 10px; line-height: 1.5; }
.consent-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--pink); }
.dialog-privacy { margin: 11px 0 0; color: #604c61; font-size: 9px; line-height: 1.5; }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr 1.25fr; }
  header .main-nav { gap: 10px; }
  header .main-nav > a:not(.btn) { font-size: 11px; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; margin: 12px; padding: 0; }
  header { align-items: flex-start; }
  header .main-nav { justify-content: flex-end; }
  header .main-nav > a:not(.btn) { display: none; }
  .myphotos { grid-template-columns: 1fr; }
  .profile-page .myphotos { grid-template-columns: 1fr; }
  .profile-photo-grid { grid-template-columns: 1fr; }
  .review-options { grid-template-columns: 1fr; }
  .prize img { display: block; width: 20%; }
  .prize { gap: 9px; padding: 16px 10px; border-radius: 28px; }
  .prize p { display: none; }
}
@media (max-width: 520px) {
  header { padding: 12px; }
  header .brand { font-size: 19px; }
  header .main-nav { gap: 5px; }
  header .main-nav .btn { padding: 9px 12px; font-size: 11px; }
  .hero-copy { width: 100%; }
  .hero > img { opacity: .2; width: 65%; }
  .actions { gap: 9px; }
  .actions .btn { padding: 9px 12px; font-size: 12px; }
  .panel { padding: 16px; border-width: 5px; border-radius: 20px; }
  .heading { align-items: flex-start; }
  .heading .pill { font-size: 9px; padding: 6px 8px; }
  .results { grid-template-columns: 25% 32% 43%; }
  .results > img { border-radius: 9px; }
  .score { font-size: 10px; }
  .score b { font-size: 31px; }
  .banner { font-size: 8px; }
  .metrics { padding: 5px; font-size: 9px; }
  .metrics .metric { margin: 4px 0 7px; }
  .metrics .metric > span { max-width: 69%; }
  .profile-photos-heading { align-items: start; flex-direction: column; }
  .profile-photo-card { grid-template-columns: 68px minmax(0, 1fr); }
  .profile-photo-card > img { width: 68px; }
  .profile-score-metrics { grid-template-columns: 1fr 1fr; }
  .contest-main > img { flex-basis: 35%; width: 35%; }
  .contest-copy h3 { font-size: 18px; }
  .contest-bottom { align-items: flex-start; flex-direction: column; }
  .contest-bottom span:last-child { text-align: left; }
  .result-columns { grid-template-columns: 1fr; }
  .steps { gap: 10px; }
  .steps h2 { width: 100%; }
  .steps > div { max-width: calc(50% - 8px); }
  .steps > div:last-child { max-width: 100%; }
  .steps i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .feedback-wait-spinner { animation-duration: 1.5s !important; }
}
