/* Public experience feedback, September 2026. Loaded after the shared styles. */
.public-app #choose-description,
.public-app #lucky-stage .panel-heading p { display: block; margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.public-app .panel-progress-badge { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; }
.public-app .panel-progress-badge > small { font-size: 11px; font-weight: 400; }
.public-app .panel-progress-badge > span { white-space: nowrap; font-size: 12px; }
.public-app .input-limit { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.public-app .input-limit.is-error { color: #b42318; }
.public-app input[aria-invalid="true"] { border-color: #b42318; }
#choose-stage .plan-card-portrait,
#choose-stage .plan-card-lucky { grid-template-columns: minmax(0,1fr) 44px; }
#choose-stage .plan-card__content { min-width: 0; }
#choose-stage .plan-card p { overflow: visible; display: block; -webkit-line-clamp: unset; white-space: normal; height: auto; }
#choose-stage .plan-card__top { display: flex; font-size: 12px; text-transform: none; }
#choose-stage .plan-card__top > span:last-child { display: none; }
.public-app .portrait-consent-state { display: flex; align-items: center; min-height: 36px; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.portrait-consent-state .feature-icon,
.portrait-consent-state > div > span,
.portrait-consent-state small,
.portrait-consent-state .consent-state-badge { display: none; }
.portrait-consent-state > div > b { font-size: 12px; color: var(--muted); font-weight: 400; }
.portrait-consent-state > div > b::before { content: "✓ "; color: var(--green); }
.public-app #lucky-stage:not(.hidden) { display: flex; flex-direction: column; }
.lucky-placeholder { flex: 1; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--blue); }
.lucky-placeholder .lucide { width: 32px; height: 32px; }
.public-app #lucky-result:not(.hidden) { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 0; gap: 14px; margin: 0; padding: 18px 20px 4px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#lucky-result::before, #lucky-result::after { display: none; }
.public-app #lucky-result .result-image-wrap { display: flex; justify-content: center; width: 100%; height: auto; min-height: 0; flex: 1; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.public-app #lucky-result .result-image-wrap img { width: auto; max-width: 100%; height: 100%; max-height: 46dvh; object-fit: contain; border-radius: 6px; }
.public-app #lucky-result .result-copy { text-align: center; flex: 0 0 auto; gap: 5px; }
.public-app #lucky-result .result-copy b { font-size: 21px; color: var(--ink); }
.public-app #lucky-result .result-copy > span { font-size: 14px; line-height: 1.6; color: var(--muted); white-space: normal; }
.lucky-status { text-align: center; margin: 8px 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.public-app #lucky-stage .lucky-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: auto; padding: 8px 20px 12px; }
.public-app #lucky-stage .lucky-actions .action-pair { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 480px); margin: 0; gap: 10px; }
.public-app #lucky-stage .lucky-actions .action-pair button { width: 100%; justify-content: center; }
.public-app #lucky-stage .lucky-actions > .text-button { min-height: 40px; color: var(--muted); font-size: 13px; }
.public-app #lucky-stage:has(#lucky-result:not(.hidden)) #lucky-draw { display: inline-flex; }

@media (max-width: 760px) {
  .public-app .public-header { min-height: 56px; flex-basis: 56px; padding: 10px 16px; }
  .public-app .brand-separator { display: none; }
  .public-app .public-main .flow-nav { min-height: 54px; flex-basis: 54px; padding: 0 16px; margin: 0; box-shadow: none; border: 0; border-radius: 0; background: #fff; }
  .public-app .flow-nav ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 0; }
  .public-app .flow-step { width: 100%; min-height: 52px; gap: 5px; padding: 5px 2px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; color: #858b98; }
  .public-app .flow-step::after { content: ""; position: absolute; bottom: 3px; left: 0; width: 100%; height: 3px; background: #e6e9ef; border: 0; border-radius: 0; }
  .public-app .flow-step.active::after { background: var(--blue); }
  .public-app .flow-step.complete::after { background: #939cc6; }
  .public-app .flow-step.active, .public-app .flow-step.complete { background: transparent; box-shadow: none; color: var(--blue); }
  .public-app .flow-step > span { width: auto; height: auto; flex: 0 0 auto; border: 0; border-radius: 0; box-shadow: none; padding: 0; color: inherit; background: transparent; font-size: 11px; }
  .public-app .flow-step b { font-size: 13px; }
  .public-app .flow-step .flow-lock, .public-app .flow-connector { display: none; }
  .public-app .flow-step:disabled { opacity: 1; }
  .public-app .experience-layout { margin-top: 8px; }
  .public-app #survey-stage .panel-heading { padding: 10px 16px; }
  .public-app .panel-progress-badge { min-width: 65px; min-height: 40px; box-shadow: none; }
  .public-app .survey-page-nav { display: none; }
  .public-app .survey-page-controls { grid-template-areas: "previous next"; padding: 10px 0 5px; }
  .public-app .survey-page-body { overflow: auto; }
  .public-app .survey-page-body .choice-grid { flex: 0 0 auto; grid-auto-rows: auto; }
  .public-app .survey-page-body .choice-grid label span,
  .public-app .survey-page-body .question-block.has-other-answer .choice-grid label span { min-height: 44px; font-size: 15px; }
  .public-app .question-block.has-other-answer .other-field input { min-height: 44px; font-size: 16px; }
  .public-app .question-block.has-other-answer .other-field > span { font-size: 13px; }
  .public-app .portrait-footer-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .public-app .portrait-footer-actions .text-button { display: inline-flex; align-items: center; gap: 5px; width: auto; min-height: 40px; overflow: visible; color: var(--blue); font-size: 13px; white-space: nowrap; }
  .public-app .portrait-footer-actions .legal-link-button { width: auto; min-height: 40px; gap: 5px; font-size: 12px; }
  .public-app .portrait-footer-actions .legal-link-button span { display: inline; }
  #choose-stage .panel-badge { display: none; }
  #choose-stage .plan-card-writing { display: none; }
  .public-app #choose-stage .plan-grid { flex: 0 0 auto; grid-template-rows: auto auto; gap: 14px; padding: 16px; }
  #choose-stage .plan-card { min-height: 178px; height: auto; padding: 0; grid-template-columns: minmax(0,1fr) 32px; grid-template-rows: auto; border-radius: 10px; }
  #choose-stage .plan-card__content { padding: 18px 16px; justify-content: center; }
  #choose-stage .plan-card__title { margin-top: 10px; flex-wrap: nowrap; }
  #choose-stage .plan-card__title h3 { font-size: 22px; }
  #choose-stage .plan-card__top { display: flex; font-size: 12px; }
  #choose-stage .plan-card p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
  #choose-stage .plan-card__route { display: none; }
  .public-app #choose-description { font-size: 13px; }
  .public-app #lucky-result:not(.hidden) { flex: 1 0 auto; min-height: auto; padding-top: 12px; gap: 8px; }
  .public-app #lucky-result .result-copy b { font-size: 18px; line-height: 1.3; }
  .public-app #lucky-result .result-copy > span { font-size: 12px; line-height: 1.5; }
  .public-app #lucky-result .result-image-wrap img { max-height: clamp(130px,calc(100dvh - 422px),42dvh); }
  .public-app #lucky-result .result-image-wrap { flex: 0 0 auto; }
  .public-app #lucky-result .result-image-wrap img { height: auto; }
  .public-app #lucky-stage > .panel-heading,
  .public-app #lucky-stage > .lucky-status,
  .public-app #lucky-stage > .lucky-actions { flex-shrink: 0; }
}

.mobile-choice-copy { display: none; }
@media (max-width: 760px) { .mobile-choice-copy { display: inline; } .desktop-choice-copy { display: none; } }
