:root {
  color-scheme: light;
  --bg: #f4f1fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-muted: #f7f5fb;
  --ink: #24212f;
  --ink-soft: #625f6e;
  --ink-faint: #8a8795;
  --line: #e4dfed;
  --line-strong: #d5cce5;
  --primary: #5f46a8;
  --primary-strong: #49348c;
  --primary-soft: #eee8fb;
  --accent: #c16c55;
  --success: #277359;
  --success-soft: #e7f4ee;
  --warning: #a5661d;
  --warning-soft: #fff1dd;
  --danger: #a44545;
  --danger-soft: #fbeaea;
  --shadow: 0 18px 50px rgba(48, 34, 80, 0.12);
  --shadow-soft: 0 8px 24px rgba(48, 34, 80, 0.08);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(127, 91, 190, 0.22), transparent 38%),
    radial-gradient(circle at 96% 18%, rgba(193, 108, 85, 0.13), transparent 32%),
    linear-gradient(180deg, #f8f5fd 0%, #f2eef8 58%, #f7f4fa 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: 0 14px calc(24px + var(--safe-bottom));
}

.app-frame {
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

.brand-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--primary), #8067c7);
  box-shadow: 0 8px 18px rgba(95, 70, 168, 0.25);
  font-size: 14px;
}

.beta-pill,
.micro-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.beta-pill {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(213, 204, 229, 0.9);
  color: var(--primary-strong);
}

.hero {
  padding: 18px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: 0;
  font-weight: 800;
}

.hero p,
.page-lead {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

.hero-emphasis {
  color: var(--primary-strong);
}

.section {
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(226, 220, 236, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.card-pad {
  padding: 16px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h2,
.section-title-row h3,
.card h2,
.card h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-title-row h2,
.card h2 {
  font-size: 18px;
}

.section-title-row h3,
.card h3 {
  font-size: 15px;
}

.section-caption,
.helper-text,
.field-hint,
.muted {
  color: var(--ink-soft);
  line-height: 1.5;
}

.section-caption {
  margin: 6px 0 0;
  font-size: 13px;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 12px;
}

.step-item strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 14px;
}

.step-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.boundary-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  overflow: hidden;
  padding: 12px 0;
  border-color: var(--line);
  background: #f1edf9;
}

.boundary-column {
  min-width: 0;
  flex: 1 1 50%;
  padding: 0 13px;
}

.boundary-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.boundary-heading span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink-faint);
}

.boundary-column.is-use .boundary-heading span {
  background: var(--primary);
}

.boundary-heading strong {
  min-width: 0;
}

.boundary-column p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.boundary-column-divider {
  flex: 0 0 1px !important;
  background: rgba(213, 204, 229, 0.9);
}

.form-grid {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.birth-place-selects {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px;
  align-items: center;
}

.birth-place-selects .select {
  min-width: 0;
}

label,
.field-label {
  font-size: 13px;
  font-weight: 720;
}

.required-mark {
  color: var(--danger);
  margin-left: 3px;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="date"].input,
input[type="time"].input {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.55;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(95, 70, 168, 0.12);
  background: #fff;
}

.input::placeholder,
.textarea::placeholder {
  color: #aaa5b2;
}

.input:disabled {
  cursor: not-allowed;
  background: #f1eef6;
  color: var(--ink-faint);
}

.field-hint {
  margin: -2px 0 0;
  font-size: 12px;
}

.identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.identity-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.identity-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.identity-option.is-selected {
  color: var(--primary-strong);
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.09);
}

.inline-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  cursor: default;
}

.inline-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex: 0 0 auto;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.danger-button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 15px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--primary), #745bc0);
  box-shadow: 0 12px 24px rgba(95, 70, 168, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 14px 30px rgba(95, 70, 168, 0.3);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(1px) scale(0.995);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.secondary-button {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid #ddd3f0;
}

.ghost-button {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.text-button {
  min-height: auto;
  padding: 5px 2px;
  background: transparent;
  color: var(--primary);
  border-radius: 6px;
}

.danger-button {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #f0cccc;
}

.full-width {
  width: 100%;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row > * {
  flex: 1 1 140px;
}

.resume-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid #d9d0e9;
  background: linear-gradient(145deg, rgba(247, 243, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.resume-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.resume-head strong {
  display: block;
  margin-bottom: 4px;
}

.resume-meta {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.completed-home {
  display: grid;
  gap: 12px;
}

.completed-home:not([hidden]) ~ #boundarySection,
.completed-home:not([hidden]) ~ #startSection {
  display: none !important;
}

.completed-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(213, 204, 229, 0.92);
  background: linear-gradient(145deg, rgba(238, 232, 251, 0.92), rgba(255, 255, 255, 0.96));
}

.completed-status-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #8067c7);
  color: #fff;
  font-size: 18px;
  font-weight: 860;
  box-shadow: 0 12px 26px rgba(95, 70, 168, 0.22);
}

.completed-status-card .eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
}

.completed-status-card h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.completed-status-card p:last-child {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.completed-module-list {
  display: grid;
  gap: 9px;
}

.completed-module-card {
  appearance: none;
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(213, 204, 229, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(48, 34, 80, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease, background 140ms ease;
}

.completed-module-card:hover,
.completed-module-card:focus-visible {
  outline: 0;
  border-color: rgba(95, 70, 168, 0.48);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.07), 0 10px 24px rgba(48, 34, 80, 0.08);
}

.completed-module-card:active {
  transform: translateY(1px);
}

.completed-module-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.completed-module-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.completed-module-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 780;
}

.completed-module-foot em {
  font-style: normal;
  color: var(--ink);
}

.completed-detail-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 18px;
  text-align: left;
}

.completed-detail-card h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 20px;
  line-height: 1.3;
}

.completed-detail-card .eyebrow {
  margin: 0 42px 6px 0;
  font-size: 12px;
}

.completed-detail-copy {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.completed-detail-body {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.completed-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.completed-detail-stats .completed-detail-stat:nth-child(3) {
  grid-column: 1 / -1;
}

.completed-detail-stat,
.completed-detail-item {
  min-width: 0;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.completed-detail-stat {
  padding: 10px;
}

.completed-detail-stat strong,
.completed-detail-stat span {
  display: block;
}

.completed-detail-stat strong {
  color: var(--primary-strong);
  font-size: 18px;
  line-height: 1.1;
}

.completed-detail-stat span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.completed-detail-item {
  padding: 11px;
}

.completed-detail-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.completed-detail-statement,
.completed-detail-points p,
.completed-detail-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.completed-detail-points {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(226, 220, 236, 0.86);
}

.completed-detail-rows {
  display: grid;
  gap: 6px;
}

.completed-detail-statement + .completed-detail-rows {
  margin-top: 9px;
}

.completed-detail-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
}

.completed-detail-row span {
  color: var(--ink-faint);
  font-weight: 720;
}

.completed-detail-row strong {
  min-width: 0;
  color: var(--ink);
  font-weight: 680;
}

.status-pill {
  color: var(--success);
  background: var(--success-soft);
  white-space: nowrap;
}

.page-footer {
  padding: 18px 8px 8px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.65;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 27, 48, 0.58);
  backdrop-filter: blur(10px);
}

.overlay-card {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(20, 13, 34, 0.28);
  text-align: center;
}

.lock-visual {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  background: linear-gradient(145deg, var(--primary), #8a70cd);
  box-shadow: 0 16px 36px rgba(95, 70, 168, 0.28);
  animation: float 1.8s ease-in-out infinite;
}

.overlay-card h2 {
  margin: 0 0 9px;
  font-size: 19px;
}

.overlay-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.profile-confirm-card {
  padding: 20px;
  text-align: left;
}

.profile-confirm-card h2 {
  font-size: 19px;
}

.profile-confirm-card p {
  font-size: 13px;
}

.profile-confirm-hint {
  margin: -4px 0 16px !important;
  padding: 10px 12px;
  border: 1px solid rgba(95, 70, 168, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(238, 232, 251, 0.72);
  color: var(--primary-strong) !important;
  font-weight: 760;
}

.profile-summary-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.profile-summary-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 220, 236, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.profile-summary-list dt {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
}

.profile-summary-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-line {
  height: 5px;
  margin-top: 22px;
  border-radius: 99px;
  overflow: hidden;
  background: #ece7f3;
}

.loading-line::after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #a88ed9);
  animation: loading 1.05s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-5px); }
}

@keyframes loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(330%); }
}

/* Assessment */
.assessment-shell {
  padding-bottom: calc(92px + var(--safe-bottom));
}

.assessment-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -14px;
  padding: 8px 14px 10px;
  background: rgba(247, 244, 251, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 220, 236, 0.78);
}

.assessment-topline {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 10px;
}

.back-link {
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.assessment-title {
  justify-self: center;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-spacer {
  justify-self: end;
  min-width: 72px;
  min-height: 36px;
}

.progress-copy {
  text-align: right;
}

.progress-copy strong {
  display: block;
  font-size: 13px;
}

.progress-copy span {
  color: var(--ink-faint);
  font-size: 11px;
}

.assessment-main {
  padding: 12px 0;
}

.report-intro {
  padding: 0 0 4px;
}

.report-intro h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.report-intro p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.report-pager {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.report-pager-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-pager-meta span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 740;
}

.report-pager-meta strong {
  font-size: 14px;
}

.report-dots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.report-dot {
  height: 6px;
  border-radius: 999px;
  background: #e5deee;
}

.report-dot.is-complete {
  background: var(--success);
}

.report-dot.is-current {
  background: var(--primary);
}

.report-area-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.report-area-card {
  padding: 15px;
}

.report-area-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.report-area-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.report-area-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.report-area-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.report-point-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.report-point {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.report-point span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 760;
}

.report-point p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.54;
}

.report-feedback {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-feedback h3,
.report-reason-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.report-rating-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-reason-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(247, 245, 251, 0.78);
}

.report-note {
  margin-top: 10px;
}

.report-summary-card {
  padding: 16px;
}

.report-summary-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.report-summary-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-summary-head h2 {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.flower-icon {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff7e8, #f1e9ff);
  box-shadow: 0 14px 30px rgba(95, 70, 168, 0.14);
}

.flower-icon::before,
.flower-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
}

.flower-icon::before {
  background:
    radial-gradient(circle at 50% 8%, #f06d9f 0 6px, transparent 7px),
    radial-gradient(circle at 90% 38%, #ffad5f 0 6px, transparent 7px),
    radial-gradient(circle at 74% 88%, #f06d9f 0 6px, transparent 7px),
    radial-gradient(circle at 26% 88%, #ffad5f 0 6px, transparent 7px),
    radial-gradient(circle at 10% 38%, #f06d9f 0 6px, transparent 7px);
}

.flower-icon::after {
  inset: 17px;
  background: #ffd267;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.report-summary-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: var(--line);
}

.report-summary-list-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.report-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-summary-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease, background 140ms ease;
}

.report-summary-item:hover,
.report-summary-item:focus-visible {
  outline: 0;
  border-color: rgba(95, 70, 168, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.07), 0 8px 18px rgba(48, 34, 80, 0.08);
}

.report-summary-item:active {
  transform: translateY(1px);
}

.report-summary-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.report-summary-item-head strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-summary-item-head span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.report-summary-item p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.report-summary-item p span {
  color: var(--ink-faint);
  font-weight: 720;
}

.report-summary-item p:not(.report-summary-note) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-summary-note {
  padding-top: 6px;
  border-top: 1px solid rgba(226, 220, 236, 0.85);
}

.report-detail-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 18px;
  text-align: left;
}

.detail-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  appearance: none;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.report-detail-card .eyebrow {
  margin: 0 42px 6px 0;
  font-size: 12px;
}

.report-detail-card h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 20px;
  line-height: 1.3;
}

.report-detail-feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.report-detail-feedback-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(213, 204, 229, 0.92);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.report-detail-feedback-item.is-full {
  grid-column: 1 / -1;
}

.report-detail-feedback-item span,
.report-detail-feedback-item strong {
  display: block;
  min-width: 0;
}

.report-detail-feedback-item span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 760;
}

.report-detail-feedback-item strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.report-detail-section h3 {
  margin: 4px 0 9px;
  font-size: 14px;
  line-height: 1.4;
}

.report-detail-points {
  display: grid;
  gap: 9px;
}

.report-detail-point {
  padding: 10px;
  border: 1px solid rgba(226, 220, 236, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.report-detail-point-meta {
  display: block;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.4;
}

.report-detail-point p,
.report-detail-empty {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.report-detail-response {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(226, 220, 236, 0.86);
}

.report-detail-response div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
}

.report-detail-response span {
  color: var(--ink-faint);
  font-weight: 720;
}

.report-detail-response strong {
  min-width: 0;
  color: var(--ink-soft);
  font-weight: 680;
}

.review-nudge-card {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(238, 232, 251, 0.72), rgba(255, 255, 255, 0.86));
}

.review-nudge-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-nudge-title-row h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.34;
}

.pending-icon {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff7e8, #f1e9ff);
  box-shadow: 0 14px 30px rgba(95, 70, 168, 0.14);
}

.pending-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary);
  border-radius: 999px;
  border-right-color: rgba(95, 70, 168, 0.18);
}

.pending-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.review-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-feature {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.review-feature strong,
.review-feature span {
  display: block;
  min-width: 0;
}

.review-feature strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.review-feature span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.review-start-button {
  margin-top: 12px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 8px 18px rgba(95, 70, 168, 0.1);
}

.review-start-button:hover,
.review-start-button:focus-visible {
  border-color: var(--primary-strong);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.08), 0 10px 22px rgba(95, 70, 168, 0.12);
}

.question-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.micro-pill {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.micro-pill.is-time {
  color: var(--ink-soft);
  background: #f2eff5;
}

.question-card {
  padding: 18px 16px 16px;
  border-radius: var(--radius-lg);
}

.question-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.56;
  letter-spacing: 0;
  font-weight: 680;
}

.question-note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.52;
}

.rating-section {
  margin-top: 14px;
}

.rating-section h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-button,
.follow-button,
.segment-button,
.chip-button,
.scale-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.choice-button {
  min-height: 44px;
  padding: 9px 8px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 710;
}

.choice-button:hover,
.follow-button:hover,
.segment-button:hover,
.chip-button:hover,
.scale-button:hover {
  border-color: #b9acd1;
}

.choice-button.is-selected,
.follow-button.is-selected,
.segment-button.is-selected,
.chip-button.is-selected,
.scale-button.is-selected {
  color: var(--primary-strong);
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.09);
}

.follow-up-card {
  margin-top: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.follow-up-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.follow-list {
  display: grid;
  gap: 8px;
}

.follow-button {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 11px;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
}

.char-counter {
  text-align: right;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 11px;
}

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(250, 248, 252, 0.94);
  border-top: 1px solid rgba(226, 220, 236, 0.92);
  backdrop-filter: blur(18px);
}

.sticky-actions-inner {
  width: min(100%, 540px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.overall-card {
  padding: 17px 16px;
}

.overall-intro {
  margin-bottom: 15px;
}

.overall-intro h2 {
  margin: 0 0 7px;
  font-size: 21px;
}

.overall-intro p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.56;
}

.select-statement option {
  white-space: normal;
}

/* Future + Results */
.result-shell {
  padding-bottom: calc(32px + var(--safe-bottom));
}

.result-hero {
  padding: 18px 0 12px;
}

.result-hero h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: 0;
}

.result-hero p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.future-entry-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
}

.future-entry-summary strong {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.future-compact-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.future-compact-item {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(213, 204, 229, 0.8);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 252, 0.92));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(48, 34, 80, 0.05);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.future-compact-item span {
  flex: 0 0 auto;
  max-width: 88px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(238, 232, 251, 0.86);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.future-compact-item strong {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.future-compact-item.is-active {
  border-color: rgba(95, 70, 168, 0.42);
  background: #f4effc;
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.08), 0 7px 18px rgba(48, 34, 80, 0.08);
}

.future-question-card {
  padding: 15px;
  margin-top: 10px;
}

.future-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.future-card-head h3 {
  font-size: 15px;
}

.future-remove-button {
  color: var(--danger);
}

.future-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.future-domain-button {
  appearance: none;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8f6fb);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(48, 34, 80, 0.06);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.future-domain-button:hover,
.future-domain-button:focus-visible {
  border-color: rgba(95, 70, 168, 0.42);
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.07), 0 7px 18px rgba(48, 34, 80, 0.08);
}

.future-domain-button:active,
.future-compact-item:active {
  transform: translateY(1px);
}

.future-domain-button.is-selected {
  color: white;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #7359bd);
  box-shadow: 0 9px 20px rgba(95, 70, 168, 0.22);
}

.optional-label {
  font-size: 12px;
  color: var(--ink-faint);
}

.future-question-textarea {
  min-height: 76px;
}

.future-add-button {
  margin-top: 12px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary-strong);
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(95, 70, 168, 0.12);
}

.future-add-button:hover,
.future-add-button:focus-visible {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 70, 168, 0.08), 0 10px 22px rgba(95, 70, 168, 0.12);
}

.future-add-button:disabled {
  opacity: 1;
  border-color: rgba(95, 70, 168, 0.62);
  background: #fff;
  color: rgba(73, 52, 140, 0.58);
  box-shadow: 0 8px 18px rgba(95, 70, 168, 0.08);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 690;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.segment-button {
  min-height: 38px;
  padding: 8px 8px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 690;
}

.submitted-question-list {
  display: grid;
  gap: 10px;
}

.submitted-question {
  padding: 12px;
  border-radius: 13px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.submitted-question strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--primary-strong);
}

.submitted-question p {
  margin: 0;
  line-height: 1.5;
}

.reveal {
  animation: reveal 420ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-summary-card {
  padding: 17px 16px;
}

.result-summary-head {
  margin-bottom: 14px;
}

.result-summary-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.result-summary-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 13px;
}

.distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.metric-card strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 7px;
  color: var(--primary-strong);
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 12px;
}

.compare-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #dcd2ed;
  border-radius: 13px;
  background: linear-gradient(145deg, #f4effc, #fbf9fe);
}

.compare-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 11px;
}

.compare-head strong {
  font-size: 14px;
}

.compare-head span {
  color: var(--ink-soft);
  font-size: 12px;
}

.compare-bars {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.bar-row-label {
  color: var(--ink-soft);
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5dff0;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #987bd4);
  width: 0;
  transition: width 520ms ease;
}

.bar-fill.is-control {
  background: linear-gradient(90deg, #948e9e, #bbb5c0);
}

.bar-value {
  text-align: right;
  font-weight: 750;
}

.result-note {
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f7f4fa;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.domain-list {
  display: grid;
  gap: 8px;
}

.domain-row {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 10px;
  align-items: center;
}

.domain-label {
  font-size: 13px;
  font-weight: 720;
}

.domain-status {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.scale-question {
  min-width: 0;
  margin: 0;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.scale-question:last-child {
  border-bottom: 0;
}

.scale-question legend,
.scale-question > label {
  padding: 0;
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.scale-button {
  min-height: 38px;
  border-radius: 11px;
  font-weight: 780;
  font-size: 13px;
}

.scale-anchors {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 10px;
  margin-top: 6px;
}

.hash-card {
  padding: 12px;
  background: #f5f2f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hash-value {
  display: block;
  margin-top: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  word-break: break-all;
  color: var(--ink);
}

.success-panel {
  padding: 24px 18px 20px;
  text-align: center;
  border: 1px solid rgba(213, 204, 229, 0.92);
  background: linear-gradient(145deg, #f1ebfb, #ffffff);
}

.success-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), #8067c7);
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.success-panel h1,
.success-panel h2 {
  margin: 0 0 8px;
}

.success-panel h1 {
  font-size: 24px;
  line-height: 1.25;
}

.success-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.success-panel .eyebrow {
  margin-bottom: 7px;
}

.session-receipt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(48, 34, 80, 0.06);
  text-align: left;
}

.session-receipt-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.session-receipt-copy span {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 760;
}

.session-receipt-copy strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}

.session-copy-button {
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(95, 70, 168, 0.42);
  background: #fff;
  box-shadow: 0 6px 14px rgba(95, 70, 168, 0.1);
}

.contact-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(213, 204, 229, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(48, 34, 80, 0.06);
  text-align: left;
}

.contact-copy {
  display: grid;
  gap: 5px;
}

.contact-copy strong {
  font-size: 15px;
}

.contact-copy span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.contact-body {
  display: grid;
  gap: 13px;
}

.contact-qr {
  width: min(100%, 176px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(48, 34, 80, 0.08);
}

.contact-qr img,
.qr-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.contact-qr img {
  display: block;
  object-fit: cover;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(95, 70, 168, 0.08), rgba(39, 115, 89, 0.08)),
    #fff;
}

.qr-placeholder span {
  border-radius: 3px;
  background: rgba(36, 33, 47, 0.86);
}

.qr-placeholder span:nth-child(1),
.qr-placeholder span:nth-child(2),
.qr-placeholder span:nth-child(3),
.qr-placeholder span:nth-child(7),
.qr-placeholder span:nth-child(9),
.qr-placeholder span:nth-child(13),
.qr-placeholder span:nth-child(14),
.qr-placeholder span:nth-child(15),
.qr-placeholder span:nth-child(22),
.qr-placeholder span:nth-child(24) {
  background: var(--primary);
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.wechat-id-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 204, 229, 0.9);
  border-radius: var(--radius-md);
  background: rgba(247, 245, 251, 0.82);
}

.wechat-id-card span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 760;
}

.wechat-id-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-action-button {
  min-height: 38px;
  padding: 8px 10px;
  border-color: rgba(95, 70, 168, 0.42);
  background: #fff;
  color: var(--primary-strong);
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(95, 70, 168, 0.08);
}

.contact-action-button:disabled {
  opacity: 1;
  border-color: rgba(213, 204, 229, 0.9);
  background: rgba(247, 245, 251, 0.72);
  color: var(--ink-faint);
}

.qr-placeholder span:nth-child(5),
.qr-placeholder span:nth-child(11),
.qr-placeholder span:nth-child(12),
.qr-placeholder span:nth-child(17),
.qr-placeholder span:nth-child(19),
.qr-placeholder span:nth-child(20) {
  background: transparent;
}

.error-text {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  z-index: 200;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 15px;
  border-radius: 12px;
  color: white;
  background: rgba(42, 36, 53, 0.94);
  box-shadow: 0 14px 35px rgba(21, 17, 28, 0.24);
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="success"] {
  background: rgba(32, 103, 78, 0.96);
}

.toast[data-tone="danger"] {
  background: rgba(157, 58, 58, 0.96);
}

.sr-only {
  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;
}

@media (max-width: 420px) {
  .report-detail-feedback {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 520px) {
  .app-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .distribution-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
