﻿:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --soft: #f7f8fa;
  --paper: rgba(255, 255, 255, 0.82);
  --line: rgba(15, 23, 42, 0.08);
  --brand: #2a7f74;
  --brand-strong: #1b5e57;
  --rose: #c65d63;
  --amber: #d99c46;
  --card-radius: 8px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --font-legal: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-entrance-hand: OnePwEntranceHand, var(--font-legal);
  --font-hand: JasonHandwriting6, var(--font-legal);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(42, 127, 116, 0.08) 0%, transparent 34%),
    linear-gradient(225deg, rgba(108, 92, 231, 0.055) 0%, transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, #f2f5f6 58%, #f9fafb 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior-y: none;
}



button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: calc(100vh - 32px);
  padding: 18px 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 80px rgba(18, 24, 38, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(24px) saturate(1.12);
}

body:not([data-surface]) .phone-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.58);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px 16px;
}

.topbar-title {
  min-width: 0;
}

.progress-entry-button {
  flex: 0 0 auto;
  margin-top: 8px;
  min-width: 72px;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 260px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.status-pill {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(42, 127, 116, 0.1);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.segmented {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.segmented-button {
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  will-change: transform;
}

.segmented-button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.segmented-button:active,
.segmented-button.is-pressing,
.pressable:active,
.primary-button:active,
.primary-button.is-pressing,
.secondary-button:active,
.secondary-button.is-pressing,
.icon-button:active {
  transform: scale(0.972);
}

.view {
  display: none;
  animation: viewIn 360ms var(--ease);
}

.view.is-visible {
  display: block;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dynamic-form,
.question-editor-list,
.records-list {
  display: grid;
  gap: 10px;
}

.dynamic-form {
  transition: opacity 180ms var(--ease), filter 180ms var(--ease), min-height 220ms var(--ease);
}

.dynamic-form.is-submitting {
  filter: saturate(0.96);
}

.dynamic-form.is-submitting .field-panel,
.dynamic-form.is-submitting .lookup-code-panel,
.dynamic-form.is-submitting .verification-panel {
  pointer-events: none;
}

.dynamic-form.is-submitting .submit-button,
.dynamic-form.is-submitting .mobile-submit-button {
  cursor: progress;
}

.progress-panel {
  margin-top: 12px;
}

.progress-result {
  display: grid;
  gap: 10px;
}

.progress-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.progress-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 11px 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--card-radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.progress-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(32, 36, 46, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.progress-step strong {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.progress-step.is-active {
  color: var(--brand-strong);
  border-color: rgba(42, 127, 116, 0.28);
  background: linear-gradient(180deg, rgba(42, 127, 116, 0.13), rgba(42, 127, 116, 0.07));
  box-shadow: 0 10px 24px rgba(42, 127, 116, 0.08);
}

.progress-step.is-active span {
  color: #fff;
  background: var(--brand);
}

.progress-time,
.progress-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.submit-success-panel {
  margin-top: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(42, 127, 116, 0.08)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(42, 127, 116, 0.09);
  animation: submitSuccessIn 220ms var(--ease) both;
}

.success-info,
.submit-success-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.success-info .detail-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submit-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.submit-success-actions .primary-button {
  grid-column: 1 / -1;
}

.supplement-screen {
  display: grid;
  gap: 10px;
}

.supplement-form {
  padding-bottom: 8px;
}

.supplement-request-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(42, 127, 116, 0.08)),
    rgba(255, 255, 255, 0.82);
}

.supplement-message {
  color: #344054;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.supplement-actions {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 4;
  padding-top: 4px;
}

.supplement-actions .primary-button {
  width: 100%;
}

.supplement-error-card {
  border-color: rgba(198, 93, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(198, 93, 99, 0.08)),
    rgba(255, 255, 255, 0.82);
}

.supplement-success-panel {
  margin-top: 8px;
}

@keyframes submitSuccessIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clear-draft-button {
  flex: 0 0 auto;
}

.record-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.record-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(32, 36, 46, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.025);
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.filter-chip.is-active {
  color: #fff;
  border-color: rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, #273244, var(--ink));
  box-shadow: 0 9px 18px rgba(17, 24, 39, 0.12);
}

.filter-chip:active,
.filter-chip.is-pressing {
  transform: scale(0.97);
}

.panel,
.question-card,
.record-card {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(18px);
}

.panel {
  padding: 16px;
}

.field-panel.is-invalid {
  border-color: rgba(219, 68, 83, 0.42);
  box-shadow: 0 0 0 4px rgba(219, 68, 83, 0.08), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.field-panel:focus-within {
  border-color: rgba(42, 127, 116, 0.28);
  box-shadow: 0 0 0 4px rgba(42, 127, 116, 0.08), 0 14px 34px rgba(15, 23, 42, 0.06);
}

.field-panel.is-invalid:focus-within {
  border-color: rgba(219, 68, 83, 0.42);
  box-shadow: 0 0 0 4px rgba(219, 68, 83, 0.08), 0 14px 34px rgba(15, 23, 42, 0.06);
}

.field-panel.is-focus-pulse {
  animation: fieldFocusPulse 900ms var(--ease) both;
}

.form-section-break {
  display: grid;
  gap: 6px;
  padding: 18px 2px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.form-section-break h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.form-section-break p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes fieldFocusPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(219, 68, 83, 0.22), 0 10px 26px rgba(15, 23, 42, 0.05);
  }
  38% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 7px rgba(219, 68, 83, 0.12), 0 18px 40px rgba(15, 23, 42, 0.08);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(219, 68, 83, 0.08), 0 10px 26px rgba(15, 23, 42, 0.05);
  }
}

.panel.compact {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.intro {
  display: grid;
  gap: 8px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(42, 127, 116, 0.08), rgba(107, 91, 203, 0.06));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.intro p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-error {
  margin: 0;
  color: var(--rose);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.field > span,
.field legend {
  color: #26313f;
  font-size: 14px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.095);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 8px 18px rgba(15, 23, 42, 0.025);
  transition: border 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #747985 50%), linear-gradient(135deg, #747985 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(42, 127, 116, 0.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 127, 116, 0.1), 0 12px 24px rgba(42, 127, 116, 0.07);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(220, 38, 38, 0.58);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

input:active,
textarea:active,
select:active {
  transform: scale(0.992);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  gap: 9px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px 11px 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #2f333b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
  transition: transform 160ms var(--ease), background 160ms var(--ease), border 160ms var(--ease), box-shadow 160ms var(--ease);
  touch-action: manipulation;
  user-select: none;
  will-change: transform;
}

.choice:active,
.choice.is-pressing {
  transform: scale(0.982);
  background: rgba(255, 255, 255, 0.96);
}

.choice input {
  appearance: none;
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(15, 23, 42, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: border 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.choice input[type="radio"] {
  border-radius: 999px;
}

.choice input[type="checkbox"] {
  border-radius: 6px;
}

.choice input::before {
  content: "";
  transform: scale(0);
  transition: transform 160ms var(--ease);
}

.choice input[type="radio"]::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
}

.choice input[type="checkbox"]::before {
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
}

.choice input:checked {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 6px 14px rgba(27, 94, 87, 0.16);
}

.choice input:checked::before {
  transform: scale(1);
}

.choice input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.choice:has(input:checked) {
  border-color: rgba(42, 127, 116, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(42, 127, 116, 0.08), 0 10px 22px rgba(42, 127, 116, 0.07);
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rating-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-row label {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
  touch-action: manipulation;
  user-select: none;
  will-change: transform;
}

.rating-row label:active,
.rating-row label.is-pressing {
  transform: scale(0.968);
}

.rating-row label:has(input:checked) {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 24px rgba(27, 94, 87, 0.16);
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 780;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), opacity 180ms var(--ease), border 180ms var(--ease);
  will-change: transform;
}

.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 28px rgba(27, 94, 87, 0.2), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.secondary-button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.submit-row,
.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.submit-row .primary-button {
  grid-column: 1 / -1;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
}

.form-progress-panel {
  display: grid;
  gap: 11px;
  padding: 14px 15px;
  border-color: rgba(15, 23, 42, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #ffffff;
}

.form-progress-head,
.mobile-submit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-progress-head strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

.form-progress-count,
.mobile-submit-count {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(22, 119, 255, 0.12);
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(22, 119, 255, 0.07);
  font-size: 12px;
  font-weight: 850;
}

.form-progress-track,
.mobile-submit-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.form-progress-fill,
.mobile-submit-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9fc4ff, var(--brand), var(--brand-strong));
  box-shadow: 0 0 18px rgba(22, 119, 255, 0.16);
  transition: width 220ms var(--ease);
}

.form-progress-note,
.mobile-submit-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mobile-submit-bar {
  display: none;
}

.form-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.form-step-tab {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(15, 23, 42, 0.58);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
  transition: transform 160ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.form-step-tab span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.62);
  background: rgba(15, 23, 42, 0.06);
  font-size: 12px;
}

.form-step-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
}

.form-step-tab:hover {
  color: var(--brand-strong);
  background: rgba(22, 119, 255, 0.06);
}

.form-step-tab.is-locked,
.form-step-tab:disabled {
  cursor: default;
  opacity: 0.48;
}

.form-step-tab.is-locked:hover,
.form-step-tab:disabled:hover {
  color: rgba(15, 23, 42, 0.58);
  background: transparent;
}

.form-step-tab.is-active {
  color: var(--brand-strong);
  border-color: rgba(22, 119, 255, 0.16);
  background: #eef5ff;
}

.form-step-tab.is-active span,
.form-step-tab.is-complete span {
  color: #ffffff;
  background: var(--brand);
}

.form-step-panel {
  display: grid;
  gap: 12px;
  animation: stepPanelIn 220ms var(--ease) both;
}

.form-step-panel[hidden] {
  display: none;
}

.form-step-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.form-step-actions .primary-button {
  min-height: 50px;
}

.form-step-actions .submit-button {
  margin: 0;
}

.form-step-actions .step-prev-button[hidden] {
  display: none;
}

.form-step-actions .step-prev-button[hidden] + .step-next-button,
.form-step-actions .step-prev-button[hidden] + .submit-button {
  grid-column: 1 / -1;
}

@keyframes stepPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-color: rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at 0 0, rgba(22, 119, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.92)),
    #ffffff;
}

.slider-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.slider-head strong {
  color: var(--ink);
  font-size: 15px;
}

.slider-mark {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  font-size: 10px;
  font-weight: 900;
}

.slider-head span,
.slider-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.slider-track {
  position: relative;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 119, 255, 0.06), rgba(15, 23, 42, 0.03)),
    #f8fafc;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  touch-action: none;
}

.slider-track.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.1), rgba(22, 119, 255, 0.2));
  pointer-events: none;
  z-index: 1;
}

.slider-target {
  position: absolute;
  top: 5px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(22, 119, 255, 0.72);
  border-radius: 8px;
  background: rgba(22, 119, 255, 0.06);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88);
  pointer-events: none;
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  width: 32px;
  min-height: 32px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  cursor: grab;
  will-change: transform;
}

.slider-panel.is-dragging .slider-handle {
  cursor: grabbing;
}

.slider-panel.is-verified .slider-track {
  border-color: rgba(5, 150, 105, 0.36);
  background: rgba(5, 150, 105, 0.07);
}

.slider-panel.is-verified .slider-handle {
  background: #059669;
  cursor: default;
}

.slider-panel.is-verified .slider-status {
  color: #047857;
}

.order-challenge {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.order-prompt,
.order-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.order-prompt {
  color: #111827;
}

.order-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.order-token {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: none;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.order-token:active,
.order-token.is-pressing {
  transform: scale(0.972);
}

.order-token.is-selected,
.order-token:disabled {
  border-color: rgba(5, 150, 105, 0.34);
  color: #047857;
  background: rgba(5, 150, 105, 0.09);
  opacity: 1;
}

.order-token.is-wrong {
  border-color: rgba(220, 38, 38, 0.38);
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.08);
  animation: tokenShake 220ms ease-in-out;
}

.slider-panel.is-order-verified .order-status {
  color: #047857;
}

.slider-panel.is-slider-challenge .order-challenge {
  display: none;
}

.slider-panel.is-order-challenge .slider-track {
  display: none;
}

@keyframes tokenShake {
  0%,
100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 10px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.locked-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.locked-item {
  padding: 13px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.question-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-top strong {
  font-size: 14px;
}

.question-order-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.question-order-actions .danger {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.danger {
  color: #fff;
  background: var(--rose);
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
}

.option-row button {
  min-height: 38px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.record-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.record-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.record-card h3 {
  margin: 0;
  font-size: 16px;
}

.record-card time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.answer-list {
  display: grid;
  gap: 7px;
}

.answer-row {
  display: grid;
  gap: 2px;
}

.answer-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.answer-row p {
  color: #262a31;
  line-height: 1.45;
  word-break: break-word;
}

.record-actions {
  display: grid;
  gap: 9px;
}

.status-select {
  min-height: 42px;
}

.note-input {
  min-height: 74px;
}

.image-upload {
  gap: 10px;
}

.upload-drop {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 18px;
  border: 1px dashed rgba(42, 127, 116, 0.34);
  border-radius: var(--card-radius);
  color: var(--brand-strong);
  background:
    linear-gradient(180deg, rgba(42, 127, 116, 0.08), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7);
  text-align: center;
  overflow: hidden;
  transition: transform 180ms var(--ease), border 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.upload-drop strong {
  position: relative;
  font-size: 16px;
}

.upload-drop span {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.upload-drop::before {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 24px rgba(27, 94, 87, 0.18);
  font-size: 24px;
  line-height: 1;
}

.upload-drop:active {
  transform: scale(0.988);
  border-color: rgba(42, 127, 116, 0.52);
  box-shadow: 0 12px 26px rgba(42, 127, 116, 0.1);
}

.upload-drop:hover,
.upload-drop.is-dragover {
  border-color: rgba(42, 127, 116, 0.62);
  background:
    linear-gradient(180deg, rgba(42, 127, 116, 0.12), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(42, 127, 116, 0.12);
}

.upload-drop.is-dragover {
  transform: translateY(-1px);
}

.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.image-preview-grid,
.stored-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.image-preview-item,
.stored-image-grid a {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--card-radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.image-preview-item {
  animation: imageItemIn 180ms var(--ease) both;
}

.image-preview-item img,
.stored-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: max(6px, calc(var(--card-radius) - 2px));
  background: #eef2f4;
}

.image-preview-item span,
.stored-image-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-remove-button {
  min-height: 30px;
  border-radius: 7px;
  color: var(--rose);
  background: rgba(198, 93, 99, 0.1);
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.image-remove-button:active {
  transform: scale(0.97);
  background: rgba(198, 93, 99, 0.16);
}

@keyframes imageItemIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty {
  padding: 22px 14px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(88vw, 360px);
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(21, 22, 26, 0.88);
  box-shadow: 0 18px 42px rgba(21, 22, 26, 0.24);
  text-align: center;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.uiverse-loader-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.96);
  opacity: 1;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.uiverse-loader-screen[hidden] {
  display: none;
}

.uiverse-loader-screen.is-hidden {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.uiverse-loader-screen p {
  margin-top: 0;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.onepw-splash-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  color: #111827;
  font-family: var(--font-entrance-hand);
  font-size: clamp(52px, 16vw, 104px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.onepw-splash-loader span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  animation: onepwSplashLetter 1180ms cubic-bezier(0.2, 0.84, 0.24, 1) infinite;
  animation-delay: calc(var(--letter-index, 0) * 90ms);
}

@keyframes onepwSplashLetter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    filter: blur(5px);
  }
  38%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    filter: blur(4px);
  }
}

.preloader {
  position: relative;
  width: min(86vw, 420px);
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  filter: none;
}

.crack {
  position: static;
  width: 100%;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 45%, #edf2f7 90%);
  background-size: 220% 100%;
  clip-path: none;
  animation: skeletonSweep 1200ms ease-in-out infinite;
}

.crack2 {
  width: 78%;
  animation-delay: 100ms;
}

.crack3 {
  width: 100%;
  height: 44px;
  animation-delay: 180ms;
}

.crack4 {
  width: 92%;
  height: 44px;
  animation-delay: 260ms;
}

.crack5 {
  width: 66%;
  height: 38px;
  animation-delay: 340ms;
}

@keyframes skeletonSweep {
  to {
    background-position: -220% 0;
  }
}

.status-dot,
.mini-tag,
.detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(32, 36, 46, 0.08);
  color: #454a54;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot.new {
  color: #15584e;
  background: rgba(31, 122, 107, 0.12);
}

.status-dot.submitted {
  color: #15584e;
  background: rgba(31, 122, 107, 0.12);
}

.status-dot.processing {
  color: #8a5a13;
  background: rgba(217, 156, 70, 0.18);
}

.status-dot.verifying,
.status-dot.needs_info {
  color: #8a5a13;
  background: rgba(217, 156, 70, 0.18);
}

.status-dot.done {
  color: #315e3b;
  background: rgba(68, 139, 86, 0.16);
}

.status-dot.verified,
.status-dot.pool {
  color: #315e3b;
  background: rgba(68, 139, 86, 0.16);
}

.status-dot.matched {
  color: #174d7a;
  background: rgba(54, 128, 190, 0.16);
}

.status-dot.rejected {
  color: #8d2f34;
  background: rgba(190, 70, 76, 0.16);
}

.status-dot.archived {
  color: #626773;
  background: rgba(98, 103, 115, 0.13);
}


.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(17, 24, 39, 0.24);
  backdrop-filter: blur(14px);
}

.detail-drawer[hidden] {
  display: none;
}

.drawer-panel {
  width: min(100%, 520px);
  max-height: min(86vh, 820px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.2), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
  backdrop-filter: blur(18px);
  animation: drawerIn 280ms var(--ease);
}

.drawer-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#detailBody {
  display: grid;
  gap: 12px;
}

.detail-step-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.7);
}

.detail-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.detail-step-head b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 11px;
}

.detail-step-head strong {
  color: #111827;
  font-size: 13px;
}

.detail-summary,
.tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body[data-surface="solid"] .phone-frame,
body[data-surface="solid"] .panel,
body[data-surface="solid"] .project-card,
body[data-surface="solid"] .metric-card,
body[data-surface="solid"] .filter-panel,
body[data-surface="solid"] .overview-form-card,
body[data-surface="solid"] .submission-row {
  background: #ffffff;
  backdrop-filter: none;
}

body[data-surface="soft"] .phone-frame,
body[data-surface="soft"] .panel,
body[data-surface="soft"] .project-card,
body[data-surface="soft"] .metric-card,
body[data-surface="soft"] .filter-panel,
body[data-surface="soft"] .overview-form-card,
body[data-surface="soft"] .submission-row {
  background: rgba(250, 248, 242, 0.9);
  box-shadow: 0 10px 26px rgba(31, 38, 55, 0.08);
}

body[data-density="compact"] .panel,
body[data-density="compact"] .question-card,
body[data-density="compact"] .project-card,
body[data-density="compact"] .filter-panel {
  padding: 12px;
}

body[data-density="spacious"] .panel,
body[data-density="spacious"] .question-card,
body[data-density="spacious"] .project-card,
body[data-density="spacious"] .filter-panel {
  padding: 20px;
}

@media (min-width: 760px) {
  .app-shell {
    align-items: center;
    padding: 28px;
  }

  .phone-frame {
    min-height: 840px;
  }

  .admin-frame {
    width: min(100%, 860px);
  }

  .admin-pane.is-visible {
    display: block;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .filter-panel {
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
    align-items: end;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .drawer-panel {
    align-self: center;
  }
}

@media (max-width: 759px) {
  .dynamic-form {
    padding-bottom: 152px;
  }

  .form-stepper {
    grid-template-columns: repeat(4, max-content);
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
  }

  .form-stepper::-webkit-scrollbar {
    display: none;
  }

  .form-step-tab {
    min-width: 74px;
    min-height: 38px;
    padding-inline: 8px;
    gap: 6px;
  }

  .form-step-actions {
    grid-template-columns: 86px minmax(0, 1fr);
    display: none;
  }

  .mobile-submit-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-rows: auto auto;
    gap: 7px 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(20px) saturate(1.1);
  }

  .mobile-submit-meta {
    grid-column: 1;
    min-width: 0;
  }

  .mobile-submit-count {
    min-height: 22px;
    padding-inline: 7px;
  }

  .mobile-submit-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-submit-track {
    grid-column: 1;
  }

  .mobile-submit-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 40px;
    padding-inline: 12px;
  }

  .verification-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* OnePw visual skin */
@font-face {
  font-family: OnePwEntranceHand;
  src: url('/assets/fonts/OnePwEntranceSubset.woff2') format('woff2');
  font-display: block;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: JasonHandwriting6;
  src: url('/assets/fonts/JasonHandwriting6.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

:root {
  --ink: #1f2937;
  --muted: #667085;
  --soft: #f7f8fa;
  --paper: #ffffff;
  --line: #e5e7eb;
  --brand: #1677ff;
  --brand-strong: #0958d9;
  --rose: #dc2626;
  --amber: #059669;
  --card-radius: 8px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html {
  background: var(--soft);
}

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(22, 119, 255, 0.09), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 46%, #f8fafc 100%);
  color: var(--ink);
}

.app-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 12px max(36px, env(safe-area-inset-bottom));
}

.phone-frame {
  width: min(100%, 480px);
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}


.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  align-items: center;
  min-height: 56px;
  margin: 0 -12px 18px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.topbar-title,
.topbar > div {
  display: grid;
  gap: 2px;
}

.eyebrow {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  max-width: none;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 850;
}

h2 {
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}


@keyframes formShellIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dynamic-form,
.question-editor-list,
.records-list,
.overview-form-list {
  gap: 12px;
}

.panel,
.question-card,
.record-card,
.project-card,
.metric-card,
.filter-panel,
.overview-form-card,
.submission-row,
.drawer-panel,
.form-select-panel,
.preview-panel,
.display-mode-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.panel,
.question-card,
.record-card,
.project-card,
.metric-card,
.filter-panel,
.overview-form-card {
  padding: 16px;
}

.intro {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro p,
.hint,
.section-head span,
.record-card time,
.answer-row span,
.image-preview-item span,
.stored-image-grid span {
  color: var(--muted);
}

.primary-button,
.secondary-button,
.icon-button,
.filter-chip,
.image-remove-button {
  border-radius: 8px;
  box-shadow: none;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 160ms var(--ease), box-shadow 180ms var(--ease);
}

.primary-button {
  color: #ffffff;
  background: var(--brand);
  box-shadow: none;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.secondary-button:hover {
  border-color: rgba(22, 119, 255, 0.24);
  background: #eef5ff;
  color: var(--brand-strong);
}


.progress-entry-button {
  min-width: 82px;
  border-radius: 8px;
}

input,
textarea,
select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: #0f172a;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(22, 119, 255, 0.74);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

input:active,
textarea:active,
select:active {
  transform: none;
}


.field > span,
.field legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.field-panel:focus-within {
  border-color: rgba(22, 119, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1), var(--shadow);
}

.choice,
.rating-row label,
.locked-item,
.image-preview-item,
.stored-image-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.choice:hover,
.rating-row label:hover {
  border-color: rgba(22, 119, 255, 0.24);
  background: #f8fbff;
}

.choice:has(input:checked),
.rating-row label:has(input:checked),
.filter-chip.is-active {
  border-color: var(--brand);
  background: #eef5ff;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice input {
  border-color: rgba(31, 41, 55, 0.24);
  background: #ffffff;
  box-shadow: none;
}

.choice input:checked {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: none;
}

.choice input[type="checkbox"] {
  border-radius: 4px;
}

.rating-row label:has(input:checked) {
  color: var(--brand-strong);
}

.upload-drop {
  border-color: rgba(22, 119, 255, 0.34);
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: none;
}

.upload-drop::before {
  background: var(--brand);
  box-shadow: none;
}

.upload-drop:active {
  border-color: rgba(22, 119, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}


.progress-step {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: none;
}

.progress-step.is-active {
  border-color: rgba(22, 119, 255, 0.35);
  background: #eef5ff;
  color: var(--brand-strong);
}

.progress-step.is-active span,
.status-pill {
  background: #eef5ff;
  color: var(--brand-strong);
}


.toast {
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

@media (min-width: 760px) {
  .app-shell {
    align-items: flex-start;
    padding-top: 28px;
  }

  .phone-frame {
    min-height: auto;
  }

  .topbar {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
  }

}


.progress-panel {
  display: grid;
  gap: 12px;
  animation: viewIn 320ms var(--ease);
}

.progress-hero,
.progress-query-card,
.progress-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.progress-hero {
  display: grid;
  gap: 8px;
  padding: 20px 18px;
}

.progress-hero h2 {
  font-size: 28px;
  line-height: 1.08;
}

.progress-hero p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.progress-query-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.progress-query-card .primary-button {
  min-height: 48px;
}

.progress-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.progress-preview span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.progress-result {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.progress-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.progress-result-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.progress-result-head strong {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--brand-strong);
  padding: 0 12px;
  font-size: 13px;
}

.progress-steps {
  gap: 10px;
}

.progress-step {
  align-content: start;
  min-height: 96px;
  padding: 14px 8px;
}

.progress-step span {
  width: 28px;
  height: 28px;
}

.progress-step small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.progress-step.is-current {
  box-shadow: inset 0 0 0 1px var(--brand), 0 10px 26px rgba(22, 119, 255, 0.1);
}

.progress-step.is-done span {
  font-size: 13px;
}

.progress-time {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.progress-empty {
  display: grid;
  gap: 6px;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
  text-align: center;
}

.progress-empty strong {
  color: #111827;
  font-size: 16px;
}

.progress-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Form choice control */
.dynamic-form .choice-grid {
  gap: 8px;
}

.dynamic-form .choice {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 12px;
  padding: 10px 13px 10px 14px;
  border-color: #e5e7eb;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.dynamic-form .choice:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.dynamic-form .choice:active,
.dynamic-form .choice.is-pressing {
  transform: scale(0.992);
}

.dynamic-form .choice:has(input:checked) {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}

.dynamic-form .choice-text {
  min-width: 0;
}

.dynamic-form .checkBox {
  display: block;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 0px 2px #fff;
  justify-self: end;
}

.dynamic-form .checkBox div {
  width: 60px;
  height: 60px;
  background-color: #fff;
  top: -52px;
  left: -52px;
  position: absolute;
  transform: rotateZ(45deg);
  z-index: 100;
}

.dynamic-form .checkBox input:checked + div {
  left: -10px;
  top: -10px;
}

.dynamic-form .checkBox input {
  position: absolute;
  left: 50px;
  visibility: hidden;
}

.dynamic-form .transition {
  transition: 300ms ease;
}

.dynamic-form .choice:not(:has(input:checked)) .checkBox {
  box-shadow: 0px 0px 0px 2px #111827;
}

.dynamic-form .choice:not(:has(input:checked)) .checkBox div {
  background-color: #111827;
}

.dynamic-form .choice:has(input:checked) .checkBox {
  box-shadow: 0px 0px 0px 2px #fff;
}

.dynamic-form .choice:has(input:checked) .checkBox div {
  background-color: #fff;
}

.dynamic-form .choice input,
.dynamic-form .choice input::before,
.dynamic-form .choice input::after,
.dynamic-form .choice input[type="radio"]::before,
.dynamic-form .choice input[type="checkbox"]::before {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
}


@keyframes premiumStepIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes premiumFieldIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


html:has(body.public-home) {
  background: #f7f8fa;
}

body.public-home {
  --brand: #1f2937;
  --brand-strong: #111827;
  --guide-option-accent: #1d1d1f;
  min-height: 100vh;
  color: #111111;
  background: #f7f8fa;
}

body.public-home .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 5vw, 56px) max(44px, env(safe-area-inset-bottom));
  display: block;
}

body.public-home .phone-frame {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 6vh, 48px) 0 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.public-home .topbar {
  position: static;
  min-height: 0;
  justify-content: flex-end;
  margin: 0 0 clamp(14px, 3vh, 28px);
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body.public-home .topbar-title {
  display: none;
}

body.public-home .eyebrow {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.public-home h1 {
  max-width: 680px;
  color: #1d1d1f;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

body.public-home h2 {
  color: #1d1d1f;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
  font-weight: 780;
}

body.public-home .progress-entry-button {
  min-width: auto;
  min-height: 38px;
  margin-top: 0;
  border-color: #d2d2d7;
  border-radius: 999px;
  color: #1d1d1f;
  background: #ffffff;
}

body.public-home .progress-entry-button:hover {
  border-color: #b9b9c0;
  background: #fbfbfd;
}

body.public-home .progress-entry-button {
  display: none;
}

body.public-home .dynamic-form,
body.public-home .progress-panel {
  gap: 10px;
}

body.public-home .panel,
body.public-home .form-select-panel,
body.public-home .progress-hero,
body.public-home .progress-query-card,
body.public-home .progress-result,
body.public-home .public-start-guide,
body.public-home .public-guide,
body.public-home .public-reinforce {
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

body.public-home .intro {
  padding: 6px 0 clamp(18px, 3.4vw, 28px);
  border: 0;
  border-bottom: 1px solid #e8e8ed;
  border-radius: 0;
  background: transparent;
}

body.public-home .intro p,
body.public-home .hint,
body.public-home .field span,
body.public-home .form-progress-note,
body.public-home .mobile-submit-status,
body.public-home .mobile-submit-count {
  color: #6e6e73;
}

body.public-home .form-progress-count {
  color: #1f2937;
}

body.public-home .field input,
body.public-home .field textarea,
body.public-home .field select {
  min-height: 52px;
  border-color: #d2d2d7;
  border-radius: 12px;
  background-color: #fbfbfd;
}

body.public-home .field input:focus,
body.public-home .field textarea:focus,
body.public-home .field select:focus {
  border-color: #1f2937;
  box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.1);
}

body.public-home .primary-button {
  min-height: 52px;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
}

body.public-home .primary-button:hover {
  background: #111827;
}

body.public-home .secondary-button {
  border-color: #d2d2d7;
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1f;
}

body.public-home .form-progress-panel,
body.public-home .field-panel,
body.public-home .lookup-code-panel {
  padding: clamp(18px, 3vw, 24px);
}

body.public-home .form-stepper {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.public-home .field-panel {
  padding: 14px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.public-home .field-panel:focus-within,
body.public-home .field-panel.is-invalid,
body.public-home .field-panel.is-invalid:focus-within {
  border-color: transparent;
  box-shadow: none;
}

body.public-home .dynamic-form.is-default-game-form .field-panel {
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
}

body.public-home .dynamic-form.is-default-game-form {
  gap: 14px;
  font-family: var(--font-hand);
}

body.public-home .dynamic-form.is-default-game-form .game-form-intro {
  gap: 5px;
  padding: 4px 4px 8px;
  border-bottom: 0;
}

body.public-home .dynamic-form.is-default-game-form .game-form-kicker {
  width: fit-content;
  color: #657184;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body.public-home .dynamic-form.is-default-game-form .game-form-intro h2 {
  margin: 1px 0 0;
  color: #111827;
  font-size: clamp(25px, 6.6vw, 29px);
  line-height: 1.16;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.public-home .dynamic-form.is-default-game-form .game-form-intro p {
  max-width: 25em;
  margin: 0;
  color: #697386;
  font-size: 14px;
  line-height: 1.5;
}

body.public-home .dynamic-form.is-default-game-form[data-active-step="0"] > .form-stepper {
  display: none;
}

body.public-home .dynamic-form.is-default-game-form .form-step-panel {
  gap: 14px;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group {
  position: relative;
  display: grid;
  gap: 0;
  padding: 12px 0 0;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  overflow: hidden;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-game::before {
  content: none;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0;
  padding: 0 14px 9px;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-index {
  display: none;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-copy {
  display: grid;
  gap: 3px;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-copy h3 {
  margin: 0;
  color: #151b26;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group-copy p {
  margin: 0;
  color: #89919f;
  font-size: 13px;
  line-height: 1.45;
}

body.public-home .dynamic-form.is-default-game-form .field {
  min-height: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 6px;
}

body.public-home .dynamic-form.is-default-game-form .field > span {
  color: #697386;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

body.public-home .dynamic-form.is-default-game-form .field input,
body.public-home .dynamic-form.is-default-game-form .field textarea {
  min-height: 48px;
  padding: 6px 0 9px;
  border: 0;
  border-bottom: 1px solid #dce1e7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #182132;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

body.public-home .dynamic-form.is-default-game-form .field input::placeholder,
body.public-home .dynamic-form.is-default-game-form .field textarea::placeholder {
  color: #a1a8b3;
  font-size: 14px;
  font-weight: 450;
}

body.public-home .dynamic-form.is-default-game-form .field input:focus,
body.public-home .dynamic-form.is-default-game-form .field textarea:focus {
  border-color: #334155;
  background: transparent;
  box-shadow: none;
}

body.public-home .dynamic-form.is-default-game-form .field input[aria-invalid="true"],
body.public-home .dynamic-form.is-default-game-form .field textarea[aria-invalid="true"] {
  border-color: transparent;
  box-shadow: none;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-group > .field-panel:last-child {
  border-bottom: 0;
}

body.public-home .dynamic-form.is-default-game-form .field-panel:focus-within {
  background: #fbfcfd;
}

body.public-home .dynamic-form.is-default-game-form .field-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.public-home .dynamic-form.is-default-game-form .game-profile-change-type {
  align-self: start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #596579;
  background: #f2f4f7;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 700;
}

body.public-home .dynamic-form.is-default-game-form [data-question-id="profile_requirements"] {
  padding: 12px 14px 14px;
}

body.public-home .dynamic-form.is-default-game-form [data-question-id="profile_requirements"] .field {
  min-height: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
}

body.public-home .dynamic-form.is-default-game-form [data-question-id="profile_requirements"] textarea {
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fa;
  resize: none;
}

body.public-home .default-buddy-type-guide {
  display: grid;
  gap: 20px;
  padding: 8px 2px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-hand);
}

body.public-home .game-profile-group.is-reusing-profile > .field-panel {
  display: none;
}

body.public-home .profile-reuse-summary {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 14px 0 12px;
  border-top: 1px solid rgba(29, 78, 216, 0.12);
  border-bottom: 1px solid rgba(29, 78, 216, 0.12);
}

body.public-home .profile-reuse-summary strong,
body.public-home .profile-reuse-summary p,
body.public-home .profile-reuse-summary span {
  margin: 0;
}

body.public-home .profile-reuse-summary strong {
  color: #172033;
  font-size: 17px;
}

body.public-home .profile-reuse-summary p {
  color: #46556d;
  font-size: 14px;
}

body.public-home .profile-reuse-summary span {
  color: #8491a5;
  font-size: 12px;
}

body.public-home .profile-reuse-edit {
  justify-self: start;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #2d6cdf;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

body.public-home .submit-success-lead {
  margin: -4px 0 8px;
  color: #718198;
  font-size: 14px;
  line-height: 1.65;
}

body.public-home .previous-submission-actions {
  grid-template-columns: 1fr;
}

body.public-home .previous-submission-actions .primary-button,
body.public-home .previous-submission-actions .secondary-button {
  width: 100%;
}

body.public-home .default-buddy-type-guide .public-guide-head {
  gap: 8px;
}

body.public-home .default-buddy-type-guide .public-guide-kicker {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  color: #697386;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

body.public-home .default-buddy-type-guide .public-guide-head h2 {
  max-width: 11em;
  font-size: clamp(31px, 8vw, 38px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

body.public-home .default-buddy-type-guide .public-guide-hint {
  max-width: 24em;
  font-size: 16px;
  line-height: 1.5;
}

body.public-home .default-buddy-type-options {
  display: grid;
  gap: 10px;
}

body.public-home .default-buddy-type-option {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e4e8ed;
  border-radius: 18px;
  color: #172033;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  box-shadow: none;
}

body.public-home .default-buddy-type-copy {
  display: grid;
  gap: 3px;
}

body.public-home .default-buddy-type-copy strong {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 760;
}

body.public-home .default-buddy-type-copy small {
  color: #7b8492;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

body.public-home .default-buddy-type-arrow {
  color: #768196;
  font-size: 22px;
}

body.public-home .dynamic-form.is-default-game-form [data-question-id="profile_requirements"] textarea:focus {
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px #cfd6df;
}

body.public-home .dynamic-form.is-default-game-form .mobile-submit-bar {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

body.public-home .form-step-panel {
  gap: 8px;
}

body.public-home .form-section-break {
  margin-top: 8px;
  padding: 20px 0 8px;
  border: 0;
}

body.public-home .form-section-break h3 {
  font-size: 22px;
}

body.public-home .form-section-break p,
body.public-home .choice-hint {
  margin: 0;
  color: #86868b;
  font-size: 13px;
  line-height: 1.5;
}

body.public-home .choice-field-panel fieldset {
  display: grid;
  gap: 8px;
}

body.public-home .rating-field-panel fieldset {
  display: grid;
  gap: 8px;
}

body.public-home .rating-field-panel legend {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 850;
}

body.public-home .rating-row label {
  border-color: #e2e4e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body.public-home [data-question-id="profile_appearance_score"] .rating-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.public-home .choice-field-panel legend {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 850;
}

body.public-home .choice-grid.is-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.public-home [data-choice-question="age"] .choice-grid,
body.public-home [data-choice-question="profile_desired_age"] .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.public-home .choice-grid.is-chip-grid .choice {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0;
  padding: 9px 10px;
  border: 1px solid #e2e4e8;
  border-radius: 12px;
  background: #ffffff;
  color: #30313a;
  text-align: center;
}

body.public-home .choice-grid.is-chip-grid .choice:hover {
  border-color: #c8cbd1;
}

body.public-home .choice-grid.is-chip-grid .choice:has(input:checked) {
  border-color: #1f2937;
  background: #1f2937;
  color: #ffffff;
}

body.public-home .choice-grid.is-chip-grid .checkBox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body.public-home .choice-grid.is-chip-grid .choice-text {
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
}

body.public-home .choice-grid.is-chip-grid .is-wide-choice {
  grid-column: 1 / -1;
}

body.public-home .lookup-code-panel {
  margin-top: 8px;
}

body.public-home .field-panel,
body.public-home .form-progress-panel,
body.public-home .lookup-code-panel,
body.public-home .slider-panel,
body.public-home .public-start-guide,
body.public-home .public-guide,
body.public-home .public-reinforce,
body.public-home .submit-button {
  animation: publicFormItemIn 520ms var(--ease) both;
}

@keyframes publicFormItemIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body.public-home .progress-panel {
  gap: 12px;
}

body.public-home .progress-hero {
  padding: clamp(20px, 4vw, 30px);
  background:
    radial-gradient(circle at top right, rgba(31, 41, 55, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

body.public-home .progress-hero-copy {
  display: grid;
  gap: 6px;
}

body.public-home .progress-query-card,
body.public-home .progress-result {
  padding: clamp(18px, 3vw, 26px);
}

body.public-home .progress-query-card {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 251, 253, 0.98)),
    #ffffff;
}

body.public-home .progress-query-head strong,
body.public-home .progress-preview-item strong {
  color: #1d1d1f;
}

body.public-home .progress-query-actions {
  display: grid;
  grid-template-columns: 1fr;
}

body.public-home .progress-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

body.public-home .progress-preview-item {
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

body.public-home .progress-preview-item small {
  color: #1f2937;
  font-size: 12px;
  font-weight: 760;
}

body.public-home .progress-result {
  background:
    radial-gradient(circle at top right, rgba(31, 41, 55, 0.07), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

body.public-home .progress-step {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

body.public-home .progress-step.is-current {
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.42), 0 12px 28px rgba(31, 41, 55, 0.08);
}

body.public-home .progress-step.is-pending {
  border-color: #ececf1;
  background: #fbfbfd;
}

body.public-home .progress-step span {
  background: #eef2f7;
  color: #4b5563;
}

body.public-home .progress-step strong {
  color: #1d1d1f;
}

body.public-home .progress-time {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #f8fafc;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 750;
}

body.public-home .progress-empty {
  display: grid;
  gap: 6px;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px;
  text-align: center;
}

body.public-home .public-guide {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  margin-inline: auto;
  padding-top: clamp(10px, 2.4vh, 18px);
}

body.public-home .public-guide-head {
  display: grid;
  gap: 8px;
}

body.public-home .public-start-guide {
  width: min(100%, 420px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding-top: clamp(48px, 11vh, 110px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
}

body.public-home .public-start-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

body.public-home .public-start-copy h2 {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

body.public-home .public-start-copy p {
  max-width: 22em;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.5;
}

body.public-home .public-start-visual {
  width: min(100%, 360px);
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 30px) 0 4px;
}

body.public-home .public-start-orbit {
  position: relative;
  width: min(56vw, 214px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(31, 41, 55, 0.04) 0 38%, transparent 39%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home .public-start-orbit::before {
  content: "";
  width: 72px;
  height: 72px;
  border: 12px solid rgba(31, 41, 55, 0.14);
  border-radius: 50%;
  box-sizing: border-box;
}

body.public-home .public-start-core {
  position: absolute;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

body.public-home .public-start-ready {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

body.public-home .public-start-actions {
  width: min(100%, 340px);
  display: grid;
  gap: 10px;
}

body.public-home .public-start-actions .primary-button,
body.public-home .public-start-actions .secondary-button {
  min-height: 48px;
}

body.public-home .public-entry-shell {
  position: relative;
  width: min(100%, 420px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding-top: clamp(30px, 7vh, 72px);
}

body.public-home .public-entry-landing {
  min-height: calc(100vh - 150px);
  padding-top: clamp(96px, 18vh, 168px);
  align-content: start;
}

body.public-home .public-entry-drawer-switch {
  position: absolute;
  top: clamp(30px, 7vh, 72px);
  left: 50%;
  z-index: 2;
  width: min(calc(100% - 32px), 312px);
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7dce3;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translate(-50%, -50%);
}

body.public-home .public-entry-drawer-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: transparent;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body.public-home .public-entry-drawer-tab:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
}

body.public-home .public-entry-drawer-tab:active {
  transform: scale(0.985);
}

body.public-home .public-entry-drawer-tab.is-active {
  color: #ffffff;
  background: #1f2937;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.18);
}

body.public-home .progress-panel .public-entry-drawer-switch {
  position: static;
  width: min(100%, 312px);
  margin: 0 auto 8px;
  transform: none;
}

body.public-home .public-entry-landing .public-start-copy {
  gap: 10px;
}

body.public-home .public-entry-landing .public-start-copy h2 {
  max-width: 9em;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 0.98;
  text-wrap: balance;
}

body.public-home .public-entry-route-label {
  max-width: 24em;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

body.public-home .public-entry-current-type {
  position: relative;
  z-index: 4;
  width: min(100%, 300px);
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 12px;
  text-align: center;
}

body.public-home .public-entry-current-type span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

body.public-home .public-entry-current-button {
  width: min(100%, 260px);
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 2px 9px;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  color: #111827;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease;
}

body.public-home .public-entry-current-button:hover {
  border-color: #111827;
}

body.public-home .public-entry-current-type.is-open .public-entry-current-button {
  border-color: #111827;
}

body.public-home .public-entry-current-button strong {
  min-width: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

body.public-home .public-entry-current-caret {
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

body.public-home .public-entry-current-type.is-open .public-entry-current-caret {
  transform: rotate(180deg);
}

body.public-home .public-entry-type-wheel {
  position: relative;
  z-index: 3;
  width: min(100%, 260px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 8px 0 12px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  scrollbar-width: none;
  mask-image: none;
}

body.public-home .public-entry-type-wheel[hidden] {
  display: none;
}

body.public-home .public-entry-type-wheel::-webkit-scrollbar {
  display: none;
}

body.public-home .public-entry-type-option {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

body.public-home .public-entry-type-option::before {
  content: "选择";
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

body.public-home .public-entry-type-option:hover {
  color: #111827;
  background: #f8fafc;
}

body.public-home .public-entry-type-option:active {
  transform: translateY(1px);
}

body.public-home .public-entry-type-option.is-active {
  color: #111827;
  font-weight: 860;
  background: #f8fafc;
}

body.public-home .public-entry-type-option.is-active::before {
  content: "当前";
  color: var(--guide-option-accent, #1f2937);
}

body.public-home .public-route-actions {
  display: grid;
  width: min(100%, 240px);
  margin-top: 2px;
}

body.public-home .public-route-actions .secondary-button {
  min-height: 44px;
}

body.public-home .public-guide-kicker {
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}

body.public-home .public-guide-head h2 {
  max-width: 12em;
  font-size: clamp(30px, 7.8vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

body.public-home .public-guide-hint {
  max-width: 28em;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
}

body.public-home .public-guide-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.public-home .public-guide-option {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 18px 18px;
  border: 1px solid #e8e8ed;
  border-radius: 20px;
  color: #1d1d1f;
  background: #fbfbfd;
  text-align: left;
  box-shadow: none;
}

body.public-home .public-guide-option.is-route-option {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 84px;
  column-gap: 12px;
  padding: 18px 16px;
  border-color: #e5e7eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98)),
    #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

body.public-home .public-guide-option strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 820;
}

body.public-home .public-guide-option-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.public-home .public-guide-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.35;
}

body.public-home .public-route-option-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  background: #ffffff;
  font-size: 12px;
  font-weight: 780;
}

body.public-home .public-guide-option-cta {
  color: var(--guide-option-accent, #1f2937);
  font-size: 13px;
  font-weight: 780;
}

body.public-home .public-guide-option-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(31, 41, 55, 0.12) 0 34%, transparent 35%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.public-home .public-guide-option.is-active {
  border-color: var(--guide-option-accent, #1d1d1f);
  background: var(--guide-option-accent, #1d1d1f);
}

body.public-home .public-guide-option.is-loading {
  cursor: wait;
}

body.public-home .public-guide-options:has(.public-guide-option.is-loading) .public-guide-option:not(.is-loading) {
  opacity: 0.46;
}

body.public-home .public-guide-option.is-active strong,
body.public-home .public-guide-option.is-active span,
body.public-home .public-guide-option.is-active .public-guide-option-cta {
  color: #ffffff;
}

body.public-home[data-guide-option-style="compact"] .public-guide-options,
body.public-home[data-guide-option-style="compact"] .public-reinforce-options {
  gap: 8px;
}

body.public-home[data-guide-option-style="compact"] .public-guide-option.is-route-option {
  min-height: 66px;
  padding: 13px 14px;
  border-radius: 14px;
  box-shadow: none;
}

body.public-home[data-guide-option-style="compact"] .public-route-option-index {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

body.public-home[data-guide-option-style="compact"] .public-guide-option strong {
  font-size: 16px;
}

body.public-home[data-guide-option-style="compact"] .public-guide-option-mark {
  display: none;
}

body.public-home[data-guide-option-style="compact"] .public-reinforce-option {
  min-height: 42px;
  border-radius: 10px;
}

body.public-home[data-guide-option-style="minimal"] .public-guide-options,
body.public-home[data-guide-option-style="minimal"] .public-reinforce-options {
  gap: 0;
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option.is-route-option {
  min-height: 62px;
  padding: 14px 0;
  border-width: 0 0 1px;
  border-color: #e5e7eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-home[data-guide-option-style="minimal"] .public-route-option-index {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--guide-option-accent, #1d1d1f);
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option-cta {
  display: none;
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option-mark {
  width: 24px;
  height: 24px;
  background: transparent;
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option.is-active {
  border-color: var(--guide-option-accent, #1d1d1f);
  background: transparent;
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option.is-active strong,
body.public-home[data-guide-option-style="minimal"] .public-guide-option.is-active .public-route-option-index {
  color: var(--guide-option-accent, #1d1d1f);
}

body.public-home[data-guide-option-style="minimal"] .public-guide-option.is-active span:not(.public-route-option-index) {
  color: #4b5563;
}

body.public-home[data-guide-option-style="minimal"] .public-reinforce-option {
  min-height: 44px;
  padding: 0;
  border-width: 0 0 1px;
  border-color: #e5e7eb;
  border-radius: 0;
  background: transparent;
}

body.public-home[data-guide-option-style="minimal"] .public-reinforce-option.is-active {
  color: var(--guide-option-accent, #1d1d1f);
  border-color: var(--guide-option-accent, #1d1d1f);
  background: transparent;
}

body.public-home .public-reinforce {
  display: grid;
  gap: 18px;
  padding-top: clamp(24px, 8vh, 72px);
}

body.public-home .public-reinforce h2 {
  max-width: 560px;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.02;
}

body.public-home .public-reinforce-questions {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

body.public-home .public-reinforce-question {
  display: grid;
  gap: 9px;
}

body.public-home .public-reinforce-question > strong {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 820;
}

body.public-home .public-reinforce-options {
  display: grid;
  gap: 8px;
}

body.public-home .public-reinforce-option {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #e8e8ed;
  border-radius: 14px;
  background: #fbfbfd;
  color: #1d1d1f;
  text-align: left;
  font-size: 14px;
  font-weight: 760;
}

body.public-home .public-reinforce-option:hover {
  border-color: #d2d2d7;
  background: #ffffff;
}

body.public-home .public-reinforce-option.is-active {
  border-color: var(--guide-option-accent, #1d1d1f);
  background: var(--guide-option-accent, #1d1d1f);
  color: #ffffff;
}

body.public-home .public-reinforce-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 4px;
}

body.public-home .analysis-result-card,
body.public-home .analysis-result-card {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  border-color: #e5e7eb;
  background:
    radial-gradient(circle at top right, rgba(31, 41, 55, 0.07), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

body.public-home .analysis-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.public-home .analysis-result-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.public-home .analysis-result-title p,
body.public-home .analysis-result-summary,
body.public-home .analysis-result-next p {
  margin: 0;
}

body.public-home .analysis-result-title strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

body.public-home .analysis-result-score {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

body.public-home .analysis-result-meta,
body.public-home .analysis-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.public-home .analysis-result-summary {
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

body.public-home .analysis-result-list {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

body.public-home .analysis-result-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border-bottom: 1px solid #eef2f7;
}

body.public-home .analysis-result-row:last-child {
  border-bottom: 0;
}

body.public-home .analysis-result-row span {
  color: #64748b;
  font-size: 13px;
}

body.public-home .analysis-result-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}

body.public-home .analysis-result-next {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

body.public-home .analysis-result-bullets {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

/* Public option and success polish */
body.public-home .public-guide,
body.public-home .public-reinforce {
  padding-inline: clamp(12px, 3vw, 18px);
}

body.public-home .public-guide-options,
body.public-home .public-reinforce-options,
.dynamic-form .choice-grid {
  gap: 12px;
}

body.public-home .public-guide-option,
body.public-home .public-guide-option.is-route-option {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: auto;
  padding: 16px;
  border-radius: 16px;
  align-items: start;
}

body.public-home .public-guide-option-cta,
body.public-home .public-guide-option-mark {
  display: none;
}

body.public-home .public-guide-option-copy {
  gap: 6px;
}

body.public-home .public-guide-option strong,
body.public-home .public-guide-option span,
body.public-home .public-guide-option-description {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

body.public-home .public-guide-option strong {
  font-size: 17px;
  line-height: 1.24;
}

body.public-home .public-guide-option span,
body.public-home .public-guide-option-description {
  line-height: 1.45;
}

body.public-home .public-route-option-index {
  margin-top: 1px;
  flex: 0 0 auto;
}

/* Public route switch: bottom candidate boxes */
body.public-home .public-route-guide {
  min-height: min(620px, calc(100vh - 190px));
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
}

body.public-home .public-route-guide .public-guide-head {
  align-self: start;
}

body.public-home .public-route-guide .public-guide-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  width: 100%;
  align-self: end;
  margin-top: 0;
  padding-top: clamp(34px, 9vh, 86px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.public-home .public-route-guide .public-guide-option.is-route-option {
  position: relative;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 92px;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%),
    #ffffff;
  box-shadow: none;
  align-items: start;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body.public-home .public-route-guide .public-guide-option.is-route-option:last-child {
  border-bottom: 1px solid #dfe4ea;
}

body.public-home .public-route-guide .public-guide-option.is-route-option::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body.public-home .public-route-guide .public-guide-option.is-route-option:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

body.public-home .public-route-guide .public-guide-option.is-route-option:active {
  transform: scale(0.985);
}

body.public-home .public-route-guide .public-guide-option.is-active {
  border-color: var(--guide-option-accent, #1f2937);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guide-option-accent, #1f2937) 11%, transparent);
}

body.public-home .public-route-guide .public-guide-option.is-active::before {
  background: var(--guide-option-accent, #1f2937);
  border-color: var(--guide-option-accent, #1f2937);
}

body.public-home .public-route-guide .public-route-option-index {
  display: none;
}

body.public-home .public-route-guide .public-guide-option-copy {
  gap: 6px;
}

body.public-home .public-route-guide .public-guide-option strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 760;
}

body.public-home .public-route-guide .public-guide-option span,
body.public-home .public-route-guide .public-guide-option-description {
  color: #6b7280;
}

body.public-home .public-route-guide .public-guide-option-cta {
  display: none;
}

body.public-home .public-route-guide .public-guide-option-mark {
  display: none;
}

body.public-home .public-route-guide .public-guide-option.is-active strong,
body.public-home .public-route-guide .public-guide-option.is-active .public-route-option-index,
body.public-home .public-route-guide .public-guide-option.is-active .public-guide-option-cta {
  color: var(--guide-option-accent, #1f2937);
}

body.public-home .public-route-guide .public-guide-option.is-active span:not(.public-route-option-index),
body.public-home .public-route-guide .public-guide-option.is-active .public-guide-option-description {
  color: #374151;
}

body.public-home .public-route-guide .public-route-actions {
  justify-self: center;
  margin-top: 10px;
}

body.public-home .public-reinforce-question {
  gap: 10px;
  padding: 14px;
  border: 1px solid #ececf1;
  border-radius: 16px;
  background: #fbfbfd;
}

body.public-home .public-reinforce-option {
  min-height: 46px;
  padding: 11px 14px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.dynamic-form .choice {
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 14px;
  align-items: center;
}

.dynamic-form .choice-text {
  line-height: 1.42;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

body.public-home .submit-success-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  margin: 6px auto 0;
  padding: clamp(20px, 4.5vw, 28px);
  border-radius: 24px;
  border-color: #e5e7eb;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 41, 55, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

body.public-home .submit-success-panel h2 {
  margin: -6px 0 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.04;
  text-wrap: balance;
}

body.public-home .submit-success-panel .progress-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 2px 0;
}

body.public-home .submit-success-panel .progress-step {
  min-height: auto;
  grid-template-columns: 34px minmax(0, 1fr);
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

body.public-home .submit-success-panel .progress-step span {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

body.public-home .submit-success-panel .progress-step strong,
body.public-home .submit-success-panel .progress-step small {
  text-align: left;
}

body.public-home .submit-success-panel .progress-step small {
  font-size: 12px;
  line-height: 1.35;
}

body.public-home .submit-success-panel .success-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.public-home .submit-success-panel .detail-pill {
  width: 100%;
  min-height: 38px;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding-inline: 12px;
  font-size: 13px;
}

body.public-home .onepw-payment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #ffffff;
}

body.public-home .onepw-payment-copy {
  display: grid;
  gap: 4px;
}

body.public-home .onepw-payment-copy strong {
  color: #111827;
  font-size: 16px;
}

body.public-home .onepw-payment-copy span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

body.public-home .onepw-payment-qr {
  width: min(100%, 220px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  object-fit: contain;
  background: #f9fafb;
}

body.public-home .onepw-payment-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

body.public-home .submit-success-actions {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.public-home .submit-success-actions .primary-button,
body.public-home .submit-success-actions .secondary-button {
  min-height: 52px;
}

body.public-home .submit-success-actions .primary-button {
  order: -1;
}

body.public-home .previous-submission-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  margin: 6px auto 0;
  padding: clamp(20px, 4.5vw, 28px);
  border-radius: 24px;
  border-color: #e5e7eb;
  background:
    radial-gradient(circle at 88% 0%, rgba(22, 119, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  animation: submitSuccessIn 220ms var(--ease) both;
}

body.public-home .previous-submission-panel h2 {
  margin: -6px 0 0;
  color: #111827;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  text-wrap: balance;
}

body.public-home .previous-submission-copy {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.65;
}

body.public-home .previous-submission-meta {
  display: grid;
  gap: 8px;
}

body.public-home .previous-submission-meta .detail-pill {
  width: 100%;
  min-height: 38px;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding-inline: 12px;
  font-size: 13px;
}

body.public-home .previous-submission-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.public-home .previous-submission-actions .primary-button,
body.public-home .previous-submission-actions .secondary-button {
  min-height: 52px;
}

body.public-home .progress-result {
  gap: 18px;
}

body.public-home .progress-summary-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #f0edf1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

body.public-home .progress-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.public-home .progress-summary-head span,
body.public-home .progress-summary-pair span {
  display: block;
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

body.public-home .progress-summary-head strong {
  display: block;
  margin-top: 4px;
  color: #18181b;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.15;
}

body.public-home .progress-status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

body.public-home .progress-status-chip.is-warning,
body.public-home .progress-status-chip.is-danger {
  border: 1px solid rgba(186, 26, 26, 0.12);
  background: rgba(186, 26, 26, 0.06);
  color: #ba1a1a;
}

body.public-home .progress-status-chip.is-success {
  border: 1px solid rgba(22, 101, 52, 0.12);
  background: rgba(22, 101, 52, 0.07);
  color: #166534;
}

body.public-home .progress-status-chip.is-processing,
body.public-home .progress-status-chip.is-muted {
  border: 1px solid rgba(31, 41, 55, 0.1);
  background: rgba(31, 41, 55, 0.06);
  color: #1f2937;
}

body.public-home .progress-summary-details {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f0edf1;
  padding-top: 14px;
}

body.public-home .progress-summary-pair:last-child {
  text-align: right;
}

body.public-home .progress-summary-pair strong {
  display: block;
  margin-top: 5px;
  color: #27272a;
  font-size: 13px;
  line-height: 1.35;
}

body.public-home .progress-invite-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0edf1;
}

body.public-home .progress-invite-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.public-home .progress-invite-head span {
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
}

body.public-home .progress-invite-head strong {
  color: #18181b;
  font-size: 14px;
  font-weight: 760;
}

body.public-home .progress-invite-code {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #171717 0%, #2b2b2b 100%);
  color: #f8fafc;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  word-break: break-all;
}

body.public-home .progress-invite-actions {
  display: flex;
  justify-content: flex-end;
}

body.public-home .progress-steps {
  display: grid;
  gap: 0;
  padding: 2px 0 0;
}

body.public-home .progress-step,
body.public-home .submit-success-panel .progress-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: 14px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 28px;
}

body.public-home .progress-step:last-child {
  padding-bottom: 4px;
}

body.public-home .progress-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: #e4e1e5;
}

body.public-home .progress-step:last-child::before {
  display: none;
}

body.public-home .progress-step.is-done::before {
  background: #18181b;
}

body.public-home .progress-step span,
body.public-home .submit-success-panel .progress-step span {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

body.public-home .progress-step.is-done span {
  background: #18181b;
  color: #ffffff;
}

body.public-home .progress-step.is-current span {
  border: 2px solid #18181b;
  background: #ffffff;
  color: transparent;
  box-shadow: 0 0 0 5px rgba(24, 24, 27, 0.08);
}

body.public-home .progress-step.is-current span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #18181b;
}

body.public-home .progress-step.is-pending span {
  border: 1px solid #e4e1e5;
  background: #f0edf1;
  color: transparent;
}

body.public-home .progress-step.is-pending span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c8c5cb;
}

body.public-home .progress-step-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.public-home .progress-step-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.public-home .progress-step strong,
body.public-home .submit-success-panel .progress-step strong {
  min-width: 0;
  color: #18181b;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
}

body.public-home .progress-step-title em {
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(186, 26, 26, 0.08);
  color: #ba1a1a;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

body.public-home .progress-step small,
body.public-home .submit-success-panel .progress-step small,
body.public-home .progress-step time {
  color: #71717a;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

body.public-home .progress-step.is-pending {
  opacity: 0.62;
}

body.public-home .progress-help {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 12px;
  text-align: center;
}

body.public-home .progress-help p {
  color: #71717a;
  font-size: 14px;
}

body.public-home .progress-help-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.public-home .progress-help-actions .secondary-button {
  min-height: 42px;
  padding: 0 18px;
  background: #e4e1e5;
  border-color: rgba(119, 118, 123, 0.2);
}

@media (max-width: 759px) {
  body.public-home .app-shell {
    padding-inline: 18px;
  }

  body.public-home .dynamic-form {
    padding-bottom: 94px;
  }

  body.public-home .mobile-submit-bar {
    left: 18px;
    right: 18px;
    bottom: max(14px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.public-home .mobile-submit-button {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 54px;
    padding-inline: 20px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
  }

  body.public-home .phone-frame {
    padding-top: clamp(18px, 5vh, 44px);
  }

  body.public-home .topbar {
    align-items: center;
    gap: 18px;
  }

  body.public-home h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  body.public-home .public-reinforce-actions {
    grid-template-columns: 1fr;
  }

  body.public-home .public-guide,
  body.public-home .public-reinforce,
  body.public-home .submit-success-panel {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body.public-home .public-guide-options {
    gap: 8px;
  }

  body.public-home .public-guide-option,
body.public-home .public-guide-options.is-binary .public-guide-option {
    min-height: 68px;
    padding: 14px 14px;
  }
}

body.public-home .progress-empty-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(227, 75, 169, 0.08);
  color: #a21caf;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

body.public-home .public-auth-panel {
  width: min(100%, 380px);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

body.public-home.is-onepw-login .public-entry-shell,
body.public-home.is-onepw-agreement .public-entry-shell,
body.public-home.is-onepw-entry-gate .public-entry-shell {
  width: min(100%, 432px);
}

body.public-home.is-onepw-login .app-shell,
body.public-home.is-onepw-entry-gate .app-shell {
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

body.public-home.is-onepw-login .phone-frame,
body.public-home.is-onepw-entry-gate .phone-frame {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-home.is-onepw-login .public-entry-landing,
body.public-home.is-onepw-agreement .public-entry-landing,
body.public-home.is-onepw-entry-gate .public-entry-landing {
  min-height: calc(100svh - 48px);
  display: grid;
  align-content: center;
  padding: clamp(24px, 7svh, 64px) 0;
}

body.public-home.is-onepw-login .public-entry-landing,
body.public-home.is-onepw-entry-gate .public-entry-landing {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-home.is-onepw-entry-gate .public-start-guide {
  animation: none;
  opacity: 1;
  filter: none;
  transform: none;
}

body.public-home .public-uiverse-login-card {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-family: var(--font-entrance-hand);
  box-shadow: none;
}

body.public-home .public-uiverse-lock {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 22px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18);
}

body.public-home .public-uiverse-lock svg {
  width: 38px;
  height: 38px;
}

body.public-home .public-uiverse-title {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

body.public-home .public-uiverse-workspace-note {
  margin: -8px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  text-align: center;
}

body.public-home .public-entry-gate-card {
  gap: 16px;
  justify-items: center;
  text-align: center;
}

body.public-home .public-entry-gate-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.92)),
    #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  animation: publicEntryGateMark 1280ms ease-in-out infinite;
}

body.public-home .public-entry-gate-title {
  font-size: 30px;
}

body.public-home .public-entry-gate-count {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

body.public-home .public-entry-gate-bar {
  width: min(100%, 292px);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

body.public-home .public-entry-gate-fill {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #111827;
  transform: scaleX(0.03);
  transform-origin: left center;
  transition: transform 180ms ease;
}

body.public-home .public-entry-gate-percent,
body.public-home .public-entry-gate-status {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

body.public-home .public-entry-gate-status {
  margin: -4px 0 0;
}

body.public-home .public-entry-gate-steps {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.public-home .public-entry-gate-steps span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

body.public-home .public-entry-gate-steps span.is-active {
  border-color: rgba(17, 24, 39, 0.18);
  background: #f8fafc;
  color: #111827;
}

@keyframes publicEntryGateMark {
  0%,
  100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

body.public-home .public-uiverse-pool-entry {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

body.public-home .public-uiverse-pool-entry:hover {
  border-color: #111827;
  background: #f9fafb;
  color: #111827;
}

body.public-home .public-uiverse-pool-entry:active {
  transform: scale(0.985);
}

body.public-home .public-user-workspace {
  display: grid;
  gap: 20px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

body.public-home .public-user-workspace-head {
  display: grid;
  gap: 10px;
  padding: 2px 2px 4px;
}

body.public-home .public-user-workspace-head h2,
body.public-home .public-user-workspace-head p {
  margin: 0;
}

body.public-home .public-user-workspace-head h2 {
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body.public-home .public-user-workspace-head > p:last-child {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.65;
}

body.public-home .public-user-workspace-actions {
  display: grid;
  gap: 12px;
}

body.public-home .public-recommendations {
  display: grid;
  gap: 10px;
}

body.public-home .public-recommendations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.public-home .public-recommendations-title {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.public-home .public-recommendations-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.public-home .public-recommendation-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

body.public-home .public-recommendation-card h3,
body.public-home .public-recommendation-card p {
  margin: 0;
}

body.public-home .public-recommendation-card h3 {
  color: #1f2937;
  font-size: 20px;
  line-height: 1.25;
}

body.public-home .public-recommendation-card > p:not(.eyebrow) {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

body.public-home .public-recommendation-card .secondary-button {
  min-height: 46px;
  margin-top: 4px;
  border-radius: 13px;
  touch-action: manipulation;
}

body.public-home .public-user-workspace-actions .primary-button,
body.public-home .public-user-workspace-actions .secondary-button {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  padding-inline: 18px;
  font-size: 16px;
  font-weight: 850;
  touch-action: manipulation;
}

body.public-home .public-user-workspace-pool {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}

body.public-home .public-user-workspace-logout {
  justify-self: stretch;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  touch-action: manipulation;
}

body.public-home .public-mobile-workspace {
  width: min(100%, 430px);
  height: 100svh;
  margin-inline: auto;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f8fafc;
  color: #111827;
  font-family: var(--font-hand);
}

body.public-home.is-public-workspace {
  overflow: hidden;
  background: #f8fafc;
}

body.public-home.is-public-workspace .app-shell {
  height: 100svh;
  min-height: 100svh;
  padding: 0;
}

body.public-home.is-public-workspace .phone-frame {
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  background: #f8fafc;
}

body.public-home.is-public-workspace .topbar {
  display: none;
}

body.public-home.is-public-workspace .dynamic-form {
  height: 100%;
  min-height: 100%;
}

body.public-home .public-workspace-content {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  background: #f8fafc;
  scrollbar-width: none;
}

body.public-home .public-workspace-top {
  min-height: 116px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 8px;
  padding: max(18px, env(safe-area-inset-top)) clamp(22px, 7vw, 33px) 10px;
  background: #f8fafc;
}

body.public-home .public-workspace-back {
  grid-column: 1;
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 850;
  touch-action: manipulation;
}

body.public-home .public-workspace-back[hidden] {
  visibility: hidden;
  display: block;
  pointer-events: none;
}

body.public-home .public-workspace-brand {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

body.public-home .public-workspace-brand strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

body.public-home .public-workspace-brand span {
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

body.public-home .public-workspace-content::-webkit-scrollbar {
  display: none;
}

body.public-home .public-workspace-tabs {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 64px), 392px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f6f7f9;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

body.public-home .public-workspace-tab {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 850;
  touch-action: manipulation;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

body.public-home .public-workspace-tab.is-active {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.public-home .public-workspace-tab.is-active::before {
  content: none;
}

body.public-home .public-workspace-tab-icon {
  display: none;
}

body.public-home .public-workspace-panel {
  min-width: 0;
}

body.public-home .public-workspace-panel[hidden] {
  display: none;
}

body.public-home.is-certification-profile {
  overflow: hidden;
  background: #eaf2fb;
}

body.public-home.is-certification-profile .public-workspace-tabs {
  display: none;
}

body.public-home.is-certification-profile .public-workspace-content {
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body.public-home.is-certification-profile .public-workspace-profile-panel {
  min-height: calc(100svh - 116px);
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(193, 220, 249, 0.78), transparent 44%),
    linear-gradient(180deg, #edf6ff 0%, #e8eef4 100%);
}

body.public-home.is-certification-profile .cert-reveal-shell {
  min-height: calc(100svh - 116px);
}

body.public-home .cert-reveal-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px 14px 22px;
  color: #111827;
}

body.public-home .cert-reveal-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.public-home .cert-reveal-halo {
  position: absolute;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: none;
  perspective: 360px;
  filter: drop-shadow(0 24px 42px rgba(37, 99, 235, 0.18));
}

body.public-home .cert-reveal-ring {
  position: absolute;
  inset: 3px;
  border-radius: 28px;
  background:
    conic-gradient(from 45deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.72), rgba(34, 211, 238, 0.48), rgba(37, 99, 235, 0)),
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 31%, rgba(191, 219, 254, 0.62) 32% 48%, rgba(147, 197, 253, 0.16) 49% 62%, transparent 63%);
  opacity: 0.78;
  animation: certRingSpin 4.2s linear infinite;
}

body.public-home .cert-reveal-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background: rgba(234, 242, 251, 0.72);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.92);
}

body.public-home .cert-reveal-core {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(145deg, #1d4ed8 0%, #3b82f6 48%, #22d3ee 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform-style: preserve-3d;
  animation: certCubeFloat 2.4s ease-in-out infinite;
}

body.public-home .cert-reveal-core::before,
body.public-home .cert-reveal-core::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
}

body.public-home .cert-reveal-core::before {
  inset: 7px -9px -7px 9px;
  z-index: -1;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.42), rgba(34, 211, 238, 0.18));
  transform: translateZ(-18px);
}

body.public-home .cert-reveal-core::after {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.24) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.24) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

body.public-home .cert-reveal-orbit {
  position: absolute;
  inset: 0;
  animation: certOrbit 3.6s linear infinite;
}

body.public-home .cert-reveal-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
  opacity: 0.58;
  transform: rotate(calc(var(--dot-index) * 90deg)) translateX(48px);
}

body.public-home .cert-reveal-card {
  position: relative;
  width: min(100%, 430px);
  min-height: min(660px, calc(100svh - 110px));
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 20px 18px;
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 26px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(148, 163, 184, 0.07) 14px 15px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.96));
  box-shadow: 0 28px 68px rgba(30, 64, 105, 0.16);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  filter: blur(12px);
}

body.public-home .cert-reveal-shell[data-stage="loading"] .cert-reveal-card {
  pointer-events: none;
}

body.public-home .cert-reveal-shell[data-stage="revealed"] .cert-reveal-card {
  animation: certCardReveal 680ms cubic-bezier(0.12, 0.92, 0.24, 1) both;
}

body.public-home .cert-reveal-shell[data-stage="revealed"] .cert-reveal-halo {
  opacity: 0;
  transform: translateY(-12px) scale(0.78);
  transition: opacity 320ms ease, transform 320ms ease;
}

body.public-home .public-cert-card-top,
body.public-home .public-cert-card-profile,
body.public-home .public-cert-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.public-home .public-cert-card-brand,
body.public-home .public-cert-card-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

body.public-home .public-cert-card-profile {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

body.public-home .public-cert-card-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 22px;
  background: #222222;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

body.public-home .public-cert-card-avatar strong {
  font-size: 30px;
  font-weight: 950;
}

body.public-home .public-cert-card-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

body.public-home .public-cert-card-profile-copy strong {
  color: #111827;
  font-size: 25px;
  font-weight: 950;
}

body.public-home .public-cert-card-title {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-top: 3px;
  text-align: center;
}

body.public-home .public-cert-card-kicker {
  margin-bottom: 2px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 900;
}

body.public-home .public-cert-card-title strong {
  color: #111827;
  font-size: clamp(36px, 10vw, 54px);
  line-height: 1.08;
  font-weight: 950;
}

body.public-home .public-cert-card-subtitle,
body.public-home .public-cert-card-track {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

body.public-home .public-cert-card-track {
  color: #111827;
  font-weight: 950;
}

body.public-home .public-cert-card-rank {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding: 18px 0;
  border-top: 1px solid #dbe3ed;
  border-bottom: 1px solid #dbe3ed;
  color: #64748b;
  font-size: 17px;
  font-weight: 900;
}

body.public-home .public-cert-rank-label,
body.public-home .public-cert-rank-lane {
  color: #64748b;
  font-weight: 900;
}

body.public-home .public-cert-card-rank strong {
  color: #111827;
  font-size: clamp(58px, 16vw, 86px);
  line-height: 0.9;
  font-weight: 950;
}

body.public-home .public-cert-card-footer {
  justify-content: center;
  margin-top: auto;
  color: #64748b;
}

body.public-home .public-cert-card-stamp {
  position: absolute;
  right: 22px;
  bottom: 82px;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 5px double rgba(198, 40, 70, 0.9);
  border-radius: 999px;
  color: rgba(198, 40, 70, 0.92);
  background: rgba(255, 255, 255, 0.22);
  font-size: 18px;
  font-weight: 950;
  transform: rotate(-13deg) scale(2.4);
  opacity: 0;
}

body.public-home .public-cert-card-stamp::before {
  content: "OnePw";
  position: absolute;
  top: 14px;
  left: 50%;
  color: rgba(198, 40, 70, 0.72);
  font-family: var(--font-hand);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

body.public-home .cert-reveal-shell[data-score="complete"] .public-cert-card-stamp {
  animation: certStampIn 620ms cubic-bezier(0.12, 1.58, 0.24, 1) both;
}

body.public-home .cert-reveal-actions {
  width: min(100%, 430px);
  display: grid;
  opacity: 0;
  transform: translateY(12px);
}

body.public-home .cert-reveal-shell[data-score="complete"] .cert-reveal-actions {
  animation: certActionsIn 460ms ease 220ms both;
}

body.public-home .cert-reveal-back {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  touch-action: manipulation;
}

@keyframes certRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes certOrbit {
  to { transform: rotate(-360deg); }
}

@keyframes certCubeFloat {
  0%,
  100% { transform: rotateX(-8deg) rotateY(18deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateY(-16deg) translateY(-5px); }
}

@keyframes certCardReveal {
  0% { opacity: 0; transform: translateY(22px) scale(0.96); filter: blur(12px); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes certStampIn {
  0% { opacity: 0; transform: scale(2.4) rotate(-20deg); }
  70% { opacity: 1; transform: scale(0.94) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(-13deg); }
}

@keyframes certActionsIn {
  to { opacity: 1; transform: translateY(0); }
}

body.public-home .public-workspace-recommendation-panel {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 10px clamp(22px, 7vw, 33px) 24px;
  background: #f8fafc;
}

body.public-home .public-workspace-recommendation-panel .public-recommendation-card.is-empty {
  min-height: min(430px, calc(100svh - 230px - env(safe-area-inset-bottom)));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body.public-home .public-recommendation-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}

body.public-home .public-workspace-recommendation-panel h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

body.public-home .public-workspace-recommendation-panel p {
  max-width: 250px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

body.public-home .public-recommendation-head {
  display: grid;
  gap: 4px;
  padding: 4px 2px 0;
}

body.public-home .public-recommendation-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

body.public-home .public-recommendation-head strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
}

body.public-home .public-recommendation-card.has-data {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(42, 127, 116, 0.09), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  color: #111827;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
}

body.public-home .public-recommendation-card.has-data.is-featured {
  border-color: rgba(42, 127, 116, 0.32);
}

body.public-home .public-recommendation-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

body.public-home .public-recommendation-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.public-home .public-recommendation-title span,
body.public-home .public-recommendation-card-top em,
body.public-home .public-recommendation-seal span,
body.public-home .public-recommendation-clue span {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

body.public-home .public-recommendation-card-top em {
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-home .public-recommendation-title h3 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
}

body.public-home .public-recommendation-seal {
  justify-self: center;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 32px;
  background: #f4f7fa;
  transform: rotate(-3deg);
}

body.public-home .public-recommendation-seal strong {
  color: #111827;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

body.public-home .public-recommendation-meta,
body.public-home .public-recommendation-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

body.public-home .public-recommendation-meta span,
body.public-home .public-recommendation-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dce3eb;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

body.public-home .public-recommendation-badges span:first-child {
  border-color: rgba(42, 127, 116, 0.22);
  background: rgba(42, 127, 116, 0.08);
  color: #1f6f65;
}

body.public-home .public-recommendation-clue {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid #e3e8ee;
  border-radius: 17px;
  background: #f3f6f9;
}

body.public-home .public-recommendation-clue p {
  max-width: none;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

body.public-home .public-recommendation-points,
body.public-home .public-recommendation-state {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.public-home .public-recommendation-points > span,
body.public-home .public-recommendation-state-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

body.public-home .public-recommendation-point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.public-home .public-recommendation-point-list em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: #1f6f65;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

body.public-home .public-recommendation-note {
  max-width: none;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

body.public-home .public-recommendation-state {
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  background: #ffffff;
}

body.public-home .public-recommendation-state[hidden] {
  display: none;
}

body.public-home .public-recommendation-state > strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

body.public-home .public-recommendation-state p {
  max-width: none;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

body.public-home .public-recommendation-contact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 12px;
  background: #eef7f5;
}

body.public-home .public-recommendation-contact-row span {
  color: #1f6f65;
  font-size: 12px;
  font-weight: 950;
}

body.public-home .public-recommendation-contact-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

body.public-home .public-recommendation-copy {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #2a7f74;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

body.public-home .public-recommendation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  gap: 10px;
  min-width: 0;
}

body.public-home .public-recommendation-accept,
body.public-home .public-recommendation-return {
  min-height: 52px;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  touch-action: manipulation;
}

body.public-home .public-recommendation-accept {
  border: 0;
  background: #2a7f74;
  color: #ffffff;
}

body.public-home .public-recommendation-return {
  padding: 0 14px;
  border: 1px solid #dce3eb;
  background: #ffffff;
  color: #334155;
  white-space: nowrap;
}

body.public-home .public-recommendation-card.is-accepted {
  border-color: rgba(42, 127, 116, 0.48);
}

body.public-home .public-recommendation-card.is-mutual {
  background:
    radial-gradient(circle at 88% 8%, rgba(42, 127, 116, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbf9 100%);
}

body.public-home .public-recommendation-card.is-returned {
  opacity: 0.64;
}

body.public-home .public-recommendation-actions button:disabled {
  cursor: default;
  opacity: 0.58;
}

body.public-home .public-workspace-my-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 8px clamp(22px, 7vw, 33px) 104px;
  background: #f8fafc;
}

body.public-home .public-workspace-account {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
}

body.public-home .public-workspace-profile-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 15px 15px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  text-align: left;
  touch-action: manipulation;
}

body.public-home .public-workspace-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.public-home .public-workspace-profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.public-home .public-workspace-profile-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

body.public-home .public-workspace-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.public-home .public-workspace-profile-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.public-home .public-workspace-profile-copy span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
}

body.public-home .public-workspace-profile-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-home .public-workspace-profile-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.public-home .public-workspace-profile-score {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 17px;
  font-style: normal;
  font-weight: 950;
}

body.public-home .public-workspace-profile-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f6f7f9;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

body.public-home .public-workspace-profile-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

body.public-home .public-workspace-profile-status.is-warning {
  background: #fffbeb;
  color: #b45309;
}

body.public-home .public-workspace-profile-status.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}

body.public-home .public-workspace-profile-status.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

body.public-home .public-workspace-profile-arrow {
  display: none;
}

body.public-home .public-workspace-account span {
  color: #7b8494;
  font-size: 14px;
  font-weight: 850;
}

body.public-home .public-workspace-account strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-home .public-account-settings-card.public-workspace-account {
  min-height: 0;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body.public-home .public-account-settings-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border-bottom: 1px solid #edf0f4;
}

body.public-home .public-account-settings-section {
  border-bottom: 1px solid #edf0f4;
}

body.public-home .public-account-settings-section:last-child {
  border-bottom: 0;
}

body.public-home .public-local-profile-card {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
  padding: 14px 15px;
}

body.public-home .public-local-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.public-home .public-local-avatar-button {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
}

body.public-home .public-local-avatar-preview {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

body.public-home .public-local-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.public-home .public-local-profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.public-home .public-local-profile-copy span {
  color: #7b8494;
  font-size: 13px;
  font-weight: 850;
}

body.public-home .public-local-profile-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-home .public-local-profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 8px;
}

body.public-home .public-local-profile-button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

body.public-home .public-local-profile-card .public-uiverse-input,
body.public-home .public-local-profile-card .public-uiverse-submit {
  min-height: 44px;
  font-size: 14px;
}

body.public-home .public-password-card {
  display: grid;
  justify-content: stretch;
  gap: 10px;
  padding: 14px 15px;
}

body.public-home .public-account-settings-details {
  overflow: hidden;
}

body.public-home .public-account-settings-details:last-child {
  border-bottom: 0;
}

body.public-home .public-account-settings-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  cursor: pointer;
  list-style: none;
}

body.public-home .public-account-settings-summary::-webkit-details-marker {
  display: none;
}

body.public-home .public-account-settings-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.public-home .public-account-settings-summary-copy strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

body.public-home .public-account-settings-summary-copy small {
  color: #7b8494;
  font-size: 12px;
  font-weight: 850;
}

body.public-home .public-account-settings-summary-arrow {
  color: #9ca3af;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
  transition: transform 0.18s ease;
}

body.public-home .public-account-settings-details[open] .public-account-settings-summary-arrow {
  transform: rotate(90deg);
}

body.public-home .public-account-settings-details .public-password-card {
  border-top: 1px solid #edf0f4;
  border-bottom: 0;
}

body.public-home .public-password-card .public-uiverse-input,
body.public-home .public-password-card .public-uiverse-submit {
  min-height: 44px;
  font-size: 14px;
}

body.public-home .public-workspace-menu {
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.public-home .public-workspace-menu-item {
  position: relative;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

body.public-home .public-workspace-menu-item:first-child {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}

body.public-home .public-workspace-menu-item::after {
  content: none;
}

body.public-home .public-workspace-menu-arrow {
  display: none;
}

body.public-home .public-workspace-menu-item:last-child {
  border-color: transparent;
  background: transparent;
}

body.public-home .public-workspace-menu-item:active {
  background: #f8fafc;
}

body.public-home .public-workspace-menu-item.is-danger {
  color: #b45353;
  box-shadow: none;
}

body.public-home .public-workspace-profile-panel {
  min-height: calc(100svh - 72px - env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 14px;
  padding: max(18px, env(safe-area-inset-top)) clamp(22px, 7vw, 33px) 24px;
  background: #f8fafc;
}

body.public-home .public-workspace-profile-page-head {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

body.public-home .public-workspace-profile-page-head strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

body.public-home .public-workspace-profile-back {
  justify-self: start;
  min-height: 40px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}

body.public-home .public-workspace-profile-panel .analysis-result-card {
  margin: 0;
  background: #ffffff;
}

body.public-home .public-workspace-profile-empty {
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

body.public-home .public-workspace-profile-empty h3,
body.public-home .public-workspace-profile-empty p {
  margin: 0;
}

body.public-home .public-workspace-profile-empty h3 {
  color: #111827;
  font-size: 19px;
}

body.public-home .public-workspace-profile-empty p {
  max-width: 270px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

body.public-home .public-workspace-panel[hidden] {
  display: none;
}

@media (max-width: 430px) {
  body.public-home .app-shell {
    padding-inline: 12px;
  }

  body.public-home .phone-frame {
    width: 100%;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  body.public-home .public-user-workspace {
    min-height: min(620px, calc(100svh - 36px));
    align-content: start;
  }
}

body.public-home .public-uiverse-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f6f7f9;
}

body.public-home .public-uiverse-mode {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

body.public-home .public-uiverse-mode:hover {
  color: #111827;
}

body.public-home .public-uiverse-mode:active {
  transform: scale(0.985);
}

body.public-home .public-uiverse-mode.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.public-home .public-uiverse-pane {
  display: grid;
  gap: 13px;
}

body.public-home .public-uiverse-pane[hidden] {
  display: none;
}

body.public-home .public-uiverse-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 650;
}

body.public-home .public-uiverse-input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

body.public-home .public-uiverse-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

body.public-home .public-uiverse-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
  transition: background 180ms ease, opacity 180ms ease, transform 160ms ease, box-shadow 180ms ease;
}

body.public-home .public-uiverse-submit:hover {
  background: #020617;
}

body.public-home .public-uiverse-submit:active {
  transform: translateY(1px) scale(0.99);
}

body.public-home .public-uiverse-submit:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
}

body.public-home .public-uiverse-qr-pane {
  justify-items: center;
  text-align: center;
}

body.public-home .public-uiverse-qr-frame {
  width: min(100%, 208px);
  aspect-ratio: 1;
  display: grid;
  place-items: stretch;
  position: relative;
}

body.public-home .public-uiverse-qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  appearance: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    #f8fafc;
  background-size: 18px 18px;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 850;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

body.public-home .public-uiverse-qr-placeholder:hover,
body.public-home .public-uiverse-qr-placeholder:focus-visible {
  border-color: #111827;
  color: #111827;
  outline: none;
}

body.public-home .public-uiverse-qr-placeholder:active {
  transform: scale(0.985);
}

body.public-home .public-uiverse-qr-placeholder:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.public-home .public-uiverse-qr-placeholder.is-expired,
body.public-home .public-uiverse-qr-placeholder.is-error {
  border-color: rgba(245, 158, 11, 0.55);
  color: #92400e;
  background-color: #fffbeb;
}

body.public-home .public-uiverse-qr-image {
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

body.public-home .public-uiverse-qr-image.is-expired {
  filter: grayscale(1);
  opacity: 0.32;
}

body.public-home .public-uiverse-qr-expired {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

body.public-home .public-uiverse-qr-status,
body.public-home .public-uiverse-qr-refresh {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

body.public-home .public-uiverse-qr-refresh.public-uiverse-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
}

body.public-home .public-agreement-card {
  gap: 16px;
  min-height: auto;
  max-height: calc(100vh - 160px);
  padding: 26px 22px 22px;
  font-family: var(--font-legal);
}

body.public-home .public-agreement-head {
  display: grid;
  gap: 7px;
  text-align: center;
}

body.public-home .public-agreement-brand {
  margin: 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.public-home .public-agreement-title {
  font-size: 28px;
}

body.public-home .public-agreement-body {
  max-height: min(54vh, 420px);
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #f8fafc;
  scrollbar-width: thin;
}

body.public-home .public-agreement-body p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.62;
}

body.public-home .public-agreement-section {
  display: grid;
  gap: 4px;
  padding-top: 11px;
  border-top: 1px solid #e5e7eb;
}

body.public-home .public-agreement-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.public-home .public-agreement-section strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

body.public-home .public-agreement-closing {
  color: #111827 !important;
  font-weight: 850;
}

body.public-home .public-agreement-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.public-home .public-agreement-link {
  min-height: 36px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

body.public-home .public-policy-card {
  min-height: auto;
}

@media (max-width: 430px) {
  body.public-home.is-onepw-login .public-entry-landing,
  body.public-home.is-onepw-agreement .public-entry-landing,
  body.public-home.is-onepw-entry-gate .public-entry-landing {
    padding: 24px 0;
  }

  body.public-home .public-uiverse-login-card {
    min-height: auto;
    padding: 8px 0;
  }

  body.public-home .public-uiverse-title {
    font-size: 31px;
  }

  body.public-home .public-agreement-card {
    max-height: none;
  }
}
