:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-strong: #fffdf9;
  --ink: #1f2b24;
  --muted: #607167;
  --line: rgba(54, 72, 60, 0.12);
  --accent: #b36a3c;
  --accent-deep: #8c4e28;
  --accent-soft: rgba(179, 106, 60, 0.12);
  --accent-glow: rgba(179, 106, 60, 0.24);
  --teal: #426d68;
  --gold-soft: rgba(210, 170, 112, 0.18);
  --white-glow: rgba(255, 255, 255, 0.72);
  --shadow: 0 22px 54px rgba(49, 42, 34, 0.12);
  --shadow-soft: 0 10px 24px rgba(78, 58, 35, 0.08);
  --shadow-deep: 0 32px 78px rgba(54, 39, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 106, 60, 0.18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.65), transparent 18%),
    radial-gradient(circle at bottom right, rgba(66, 109, 104, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f1e7d8 52%, #ece1d1 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  padding: 24px;
  position: relative;
}

body.material-protected,
body.material-protected .screen,
body.material-protected .client-table {
  -webkit-user-select: none;
  user-select: none;
}

body.material-protected input,
body.material-protected textarea,
body.material-protected select,
body.material-protected button {
  -webkit-user-select: auto;
  user-select: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 30%),
    radial-gradient(circle at 20% 0%, rgba(210, 170, 112, 0.08), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(179, 106, 60, 0.08), transparent 22%);
  opacity: 0.9;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  color: rgba(96, 113, 103, 0.56);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.side-panel,
.panel-card,
.list-card {
  backdrop-filter: blur(14px);
}

.side-panel {
  position: static;
  display: block;
}

.side-panel.hidden {
  display: none;
}

.brand-block,
.panel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 245, 0.92)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand-block {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 22px 20px;
}

.eyebrow,
.screen-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  margin: 0;
}

h1 {
  font-size: 31px;
  line-height: 1.28;
}

h2 {
  font-size: 30px;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.brand-copy,
.screen-header p,
.panel-card p,
.panel-card li,
.field span,
.choice,
.hint-text,
.feedback,
.summary-grid span {
  color: var(--muted);
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.manual-pager {
  display: none;
  width: min(100%, 920px);
  justify-content: flex-end;
  gap: 12px;
}

.manual-pager.visible {
  display: flex;
}

.screen {
  display: none;
  width: min(100%, 1080px);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.82), rgba(252, 247, 240, 0.74)),
    rgba(255, 251, 245, 0.72);
  border: 1px solid rgba(54, 72, 60, 0.08);
  border-radius: 34px;
  padding: 26px;
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(179, 106, 60, 0.08), transparent 22%),
    radial-gradient(circle at left bottom, rgba(66, 109, 104, 0.06), transparent 22%);
  opacity: 0.95;
}

.screen.active {
  display: block;
}

.screen-header {
  width: min(100%, 920px);
  margin: 12px auto 28px;
  position: relative;
  z-index: 1;
}

.screen-header p {
  max-width: 780px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.95;
}

.browse-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(179, 106, 60, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), var(--shadow-soft);
}

.browse-reminder {
  margin: 0;
}

.browse-status-floating {
  display: block;
  width: fit-content;
  margin: -22px 0 0 auto;
  vertical-align: top;
}

.browse-status span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  font-style: italic;
}

.browse-status strong {
  font-size: 20px;
  color: var(--accent-deep);
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.card-grid {
  display: grid;
  gap: 14px;
  width: min(100%, 920px);
  margin: 0 auto;
}

.setup-grid {
  justify-items: center;
}

.setup-card {
  width: 320px;
  min-height: 360px;
}

body[data-mode="participant"] .manual-pager,
body[data-mode="participant"] .side-panel {
  display: none !important;
}

.screen > .panel-card,
.screen > .feedback,
.screen > .actions {
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.card-grid.two {
  grid-template-columns: 1fr;
}

.card-grid.three {
  grid-template-columns: 1fr;
}

#screen-estimate .card-grid.three,
#screen-estimate .total-card,
#screen-estimate .actions {
  margin-top: 14px;
}

#screen-estimate .card-grid.three {
  gap: 14px;
}

.panel-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 32%);
  opacity: 0.9;
}

.muted-card {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.95), rgba(250, 247, 241, 0.9));
}

.narrative-card {
  max-width: 780px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at top right, rgba(210, 170, 112, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(252, 247, 240, 0.96));
  border: 1px solid rgba(179, 106, 60, 0.12);
}

.narrative-card p {
  font-size: 16px;
  line-height: 2;
  color: #53645b;
}

.narrative-card p + p {
  margin-top: 18px;
}

.inline-emphasis {
  color: var(--accent-deep);
  font-weight: 700;
}

.readiness-card {
  max-width: 780px;
  padding: 30px 32px;
  background:
    radial-gradient(circle at top right, rgba(179, 106, 60, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(252, 245, 237, 0.96));
  border: 1px solid rgba(179, 106, 60, 0.18);
  box-shadow: 0 18px 36px rgba(140, 78, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.readiness-card p {
  font-size: 16px;
  line-height: 2;
  color: #53645b;
}

#screen-readiness .readiness-card .readiness-lead {
  margin: 0 0 18px;
  text-align: center;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--accent-deep) !important;
}

.section-intro-lead {
  text-align: center;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-deep) !important;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.35;
}

#screen-instruction .screen-header {
  margin-bottom: 6px;
}

.readiness-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.readiness-list li {
  position: relative;
  padding-left: 22px;
  color: #53645b;
  font-size: 16px;
  line-height: 1.95;
}

.readiness-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c98c5f, #9f5b31);
  box-shadow: 0 0 0 4px rgba(179, 106, 60, 0.08);
}

.readiness-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(181, 86, 66, 0.08);
  border: 1px solid rgba(181, 86, 66, 0.14);
  color: #9b4638 !important;
  font-weight: 700;
}

.readiness-important {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 243, 241, 0.98), rgba(255, 231, 225, 0.94)),
    radial-gradient(circle at top left, rgba(192, 63, 51, 0.18), transparent 36%);
  border: 1px solid rgba(192, 63, 51, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 30px rgba(126, 38, 32, 0.1);
}

.readiness-important-title {
  width: fit-content;
  margin: 0 auto 12px !important;
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(166, 49, 42, 0.14), rgba(220, 93, 70, 0.18));
  color: #9d2f27 !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.08em;
  text-align: center;
}

.readiness-important p:not(.readiness-important-title) {
  margin: 0;
  color: #5f3430;
  font-size: 16px;
  line-height: 1.95;
}

.readiness-important p:not(.readiness-important-title) + p {
  margin-top: 10px;
}

.readiness-underline-emphasis {
  color: #9d2f27;
  font-weight: 850;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(192, 63, 51, 0.68);
  text-underline-offset: 4px;
}

.readiness-actions {
  justify-content: center;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(54, 72, 60, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 340px;
  resize: vertical;
  line-height: 1.5;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid rgba(54, 72, 60, 0.1);
  border-radius: 18px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 248, 0.64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  max-width: 760px;
}

.plain-list li {
  line-height: 1.85;
}

#screen-browse .screen-header,
#screen-estimate .screen-header,
#screen-decision .screen-header,
#screen-price-task .screen-header,
#screen-survey .screen-header,
#screen-background .screen-header,
#screen-summary .screen-header,
#screen-comprehension .screen-header,
#screen-instruction .screen-header {
  max-width: 780px;
}

#screen-browse .screen-header p,
#screen-estimate .screen-header p,
#screen-decision .screen-header p,
#screen-price-task .screen-header p,
#screen-survey .screen-header p,
#screen-background .screen-header p,
#screen-summary .screen-header p,
#screen-comprehension .screen-header p,
#screen-instruction .screen-header p {
  color: #5c6d64;
}

#screen-comprehension .card-grid,
#screen-survey .panel-card,
#screen-background .panel-card {
  max-width: 860px;
}

#screen-summary .screen-header {
  margin-bottom: 12px;
}

#screen-summary .screen-header p {
  margin-top: 8px;
}

#screen-summary .screen-header > p:first-of-type {
  margin: 0 0 10px;
  text-align: center;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--accent-deep) !important;
}

#summaryHeadline {
  position: relative;
  top: 2px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(140, 78, 40, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-btn {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(140, 78, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary-btn {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 239, 0.72));
  border: 1px solid rgba(54, 72, 60, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.slider-readout span,
.allocation-pair span,
.outcome-row span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.slider-readout > span {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
}

.slider-readout strong,
.allocation-pair strong,
.outcome-row strong,
.summary-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.list-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
}

.list-edge-note {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.94), rgba(252, 246, 239, 0.9));
  border-top: 1px solid rgba(179, 106, 60, 0.12);
  border-bottom: 1px solid rgba(179, 106, 60, 0.12);
}

.list-edge-note-top {
  border-top: none;
}

.list-edge-note-bottom {
  border-bottom: none;
}

.client-table-head-grid,
.client-table-wrap {
  padding: 12px 12px 0;
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.99), rgba(250, 246, 239, 0.98));
}

.client-table-head-grid {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(252, 249, 243, 1), rgba(250, 246, 239, 1));
  box-shadow: 0 4px 18px rgba(79, 59, 37, 0.08);
}

.client-table-wrap {
  max-height: 62vh;
  overflow: auto;
  padding-top: 0;
  padding-bottom: 10px;
}

.client-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: rgba(255, 253, 249, 1);
  border: 1px solid rgba(54, 72, 60, 0.08);
  overflow: hidden;
  border-radius: 18px;
}

.client-table thead th {
  padding: 10px 6px;
  text-align: center;
  background: linear-gradient(180deg, rgb(236, 225, 208), rgb(228, 216, 196));
  border-bottom: 1px solid rgba(54, 72, 60, 0.12);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.client-table tbody td {
  padding: 10px 6px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(54, 72, 60, 0.08);
  background: transparent;
  font-size: 12px;
  text-align: center;
}

.client-table tbody tr:nth-child(odd) td {
  background: rgba(255, 251, 246, 0.72);
}

.client-table tbody tr:nth-child(even) td {
  background: rgba(252, 247, 241, 0.5);
}

.client-table th:nth-child(1),
.client-table td:nth-child(1) {
  width: 70px;
}

.client-table th:nth-child(2),
.client-table td:nth-child(2) {
  width: 56px;
}

.client-table th:nth-child(3),
.client-table td:nth-child(3) {
  width: 74px;
}

.client-table th:nth-child(4),
.client-table td:nth-child(4) {
  width: 82px;
}

.client-table th:nth-child(5),
.client-table td:nth-child(5) {
  width: 78px;
}

.client-table th:nth-child(6),
.client-table td:nth-child(6) {
  width: 78px;
}

.client-table th:nth-child(7),
.client-table td:nth-child(7) {
  width: 78px;
}

.client-table th:nth-child(8),
.client-table td:nth-child(8) {
  width: 82px;
}

.client-table th:nth-child(9),
.client-table td:nth-child(9) {
  width: 92px;
}

.client-table th:nth-child(10),
.client-table td:nth-child(10) {
  width: 92px;
}

.client-name {
  font-weight: 700;
  color: var(--accent-deep);
}

.client-field,
.client-pref {
  line-height: 1.6;
  color: var(--ink);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  width: fit-content;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(54, 72, 60, 0.1);
}

.estimate-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--accent-deep);
  width: auto;
}

.estimate-head-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.estimate-card-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 8px;
}

.estimate-card-head h3 {
  margin: 0;
}

.estimate-value-editor {
  min-width: 52px;
  display: inline-block;
  color: var(--accent-deep);
  font-size: 28px;
  font-weight: 700;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  outline: none;
  caret-color: var(--accent-deep);
  white-space: nowrap;
  border-bottom: 1.5px solid rgba(140, 78, 40, 0.35);
  padding-bottom: 2px;
}

.estimate-value span {
  font-size: 28px;
  font-weight: 700;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.decision-value {
  margin-top: 6px;
}

.decision-value .estimate-value-editor,
.decision-value span:last-child {
  color: #000;
}

.decision-scale {
  margin-top: 10px;
}

.estimate-scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.estimate-bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.estimate-bar {
  display: grid;
  grid-template-columns: repeat(100, minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  min-height: 34px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 246, 239, 0.74));
  border: 1px solid rgba(54, 72, 60, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  touch-action: none;
}

.estimate-adjust-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(54, 72, 60, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 239, 0.78));
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.estimate-cell {
  align-self: center;
  height: 20px;
  border: 0;
  border-radius: 3px;
  background: rgba(95, 79, 55, 0.16);
  padding: 0;
  cursor: pointer;
}

.estimate-cell.active {
  background: hsl(
    calc(26 + var(--step-index, 1) * 0.06),
    calc(48% + var(--step-index, 1) * 0.05%),
    calc(60% - var(--step-index, 1) * 0.12%)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.estimate-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px;
}

.total-card,
.summary-grid {
  display: grid;
  gap: 10px;
}

.feedback {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 600;
}

.feedback.error {
  color: #8d2b2b;
}

.feedback.success {
  color: #245f4f;
}

.hidden {
  display: none !important;
}

.inline {
  margin: 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

#riskySlider {
  --range-progress: 50%;
  --range-track: linear-gradient(
    90deg,
    rgba(179, 106, 60, 0.96) 0%,
    rgba(216, 172, 116, 0.92) var(--range-progress),
    rgba(228, 219, 204, 0.9) var(--range-progress),
    rgba(239, 232, 221, 0.92) 100%
  );
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  margin: 12px 0 2px;
  background: transparent;
  cursor: pointer;
}

#riskySlider:focus {
  outline: none;
}

#riskySlider::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background: var(--range-track);
  border: 1px solid rgba(140, 78, 40, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(120, 95, 62, 0.08),
    0 6px 14px rgba(140, 78, 40, 0.08);
}

#riskySlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 240, 0.96);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 35%),
    linear-gradient(180deg, #bc7442 0%, #9a562d 100%);
  box-shadow:
    0 10px 18px rgba(140, 78, 40, 0.24),
    0 0 0 5px rgba(179, 106, 60, 0.12);
}

#riskySlider::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 232, 221, 0.96), rgba(233, 225, 213, 0.92));
  border: 1px solid rgba(140, 78, 40, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    0 6px 14px rgba(140, 78, 40, 0.08);
}

#riskySlider::-moz-range-progress {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(179, 106, 60, 0.96), rgba(216, 172, 116, 0.92));
}

#riskySlider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 240, 0.96);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 35%),
    linear-gradient(180deg, #bc7442 0%, #9a562d 100%);
  box-shadow:
    0 10px 18px rgba(140, 78, 40, 0.24),
    0 0 0 5px rgba(179, 106, 60, 0.12);
}

#riskySlider::-moz-focus-outer {
  border: 0;
}

.slider-readout,
.allocation-pair,
.outcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.allocation-pair {
  gap: 16px;
  margin-top: 16px;
}

.allocation-pair > div,
.summary-grid > div {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 241, 0.62));
  border: 1px solid rgba(54, 72, 60, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.scenario-block {
  padding: 14px 14px 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 245, 238, 0.56));
  border: 1px solid rgba(54, 72, 60, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.scenario-block h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.gain-text {
  color: #b5422f;
}

.loss-text {
  color: #2d6d5a;
}

.scenario-result-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.formula-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 13px;
  min-height: 82px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(252, 246, 239, 0.84));
  border: 1px solid rgba(54, 72, 60, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.formula-box + .formula-box {
  margin-top: 12px;
}

.scenario-result-row .formula-box + .formula-box {
  margin-top: 0;
}

.formula-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.formula-box strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}

.survey-card {
  display: grid;
  gap: 18px;
}

.price-task-card {
  display: grid;
  gap: 18px;
}

.mpl-header {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96) 0%, rgba(255, 252, 247, 0.96) 100%);
  border: 1px solid rgba(179, 106, 60, 0.16);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

.mpl-header-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.mpl-header h3 {
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--ink);
}

.mpl-instruction {
  line-height: 1.8;
  color: var(--muted);
}

.mpl-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(179, 106, 60, 0.16);
  color: var(--ink);
  font-size: 14px;
}

.mpl-board {
  border: 1px solid rgba(179, 106, 60, 0.18);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.98);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: 0 18px 40px rgba(140, 78, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mpl-board-header {
  display: grid;
  grid-template-columns: 82px 1.55fr 96px 1.55fr;
  background: linear-gradient(90deg, rgba(179, 106, 60, 0.16) 0%, rgba(255, 244, 235, 0.92) 100%);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.01em;
}

.mpl-board-header > div {
  padding: 11px 8px;
}

.mpl-board-header > div:nth-child(2),
.mpl-board-header > div:nth-child(4) {
  font-size: 16px;
}

.mpl-board-header > div:nth-child(3) {
  font-size: 14px;
}

.stock-col-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
  letter-spacing: 0;
}

.mpl-row {
  display: grid;
  grid-template-columns: 82px 1.55fr 96px 1.55fr;
  align-items: stretch;
}

.mpl-cell {
  background: rgba(255, 251, 246, 0.98);
  border-right: 1px solid rgba(179, 106, 60, 0.14);
  border-bottom: 1px solid rgba(179, 106, 60, 0.14);
  padding: 11px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  font-size: 13px;
  line-height: 1.45;
}

.mpl-row .mpl-cell:last-child {
  border-right: none;
}

.mpl-stock-cell {
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  transition: 0.2s ease;
  padding: 11px 10px;
}

.price-pattern-line {
  display: grid;
  grid-template-columns: 16px 40px 40px 44px 14px 16px 40px 40px 44px;
  align-items: baseline;
  justify-content: center;
  justify-items: start;
  width: 100%;
  max-width: 334px;
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  column-gap: 2px;
}

.price-move {
  font-weight: 700;
  text-align: right;
  width: 100%;
  letter-spacing: 0.01em;
}

.price-value {
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  width: 100%;
}

.price-up {
  color: #b14a3b;
}

.price-down {
  color: #4e7a59;
}

.price-prob-label {
  color: #2f3833;
  font-weight: 500;
  text-align: right;
  width: 100%;
  letter-spacing: 0;
}

.price-prob-value {
  color: #2f3833;
  font-weight: 500;
  text-align: left;
  width: 100%;
  letter-spacing: 0;
}

.price-gap {
  width: 14px;
}

.mpl-stock-cell.selected {
  background: linear-gradient(180deg, rgba(255, 241, 229, 0.95) 0%, rgba(179, 106, 60, 0.16) 100%);
  color: var(--accent-deep);
}

.mpl-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.mpl-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
  transition: 0.18s ease;
  user-select: none;
}

.mpl-choice:first-child {
  border-right: 1px solid rgba(179, 106, 60, 0.14);
}

.mpl-choice.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fffaf4;
}

.mpl-footer-label {
  padding: 12px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  background: rgba(255, 248, 240, 0.92);
}

.price-progress {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(179, 106, 60, 0.14);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.price-outer-card {
  padding: 0;
  overflow: hidden;
}

.survey-group {
  padding-top: 14px;
  border-top: 1px solid rgba(54, 72, 60, 0.12);
}

.survey-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.survey-item {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(252, 247, 241, 0.56));
  border: 1px solid rgba(54, 72, 60, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.survey-item p {
  color: var(--ink);
  margin: 0;
}

.likert-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.likert-row label {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-height: 64px;
  padding: 6px 6px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 246, 239, 0.72));
  border: 1px solid rgba(54, 72, 60, 0.07);
}

.likert-choice-text {
  min-height: 28px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--accent-deep);
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.likert-row label.active {
  border: 1px solid rgba(149, 92, 42, 0.18);
  background: linear-gradient(180deg, rgba(252, 246, 237, 0.98), rgba(246, 237, 224, 0.92));
  box-shadow: 0 10px 18px rgba(149, 92, 42, 0.08);
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.background-scale {
  margin-top: 14px;
}

.background-scale-guide {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.likert-row.scale-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.option-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.option-inline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

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

.option-inline-I7 {
  grid-template-columns: 0.7fr 0.7fr 1.22fr;
}

.option-inline-I7 .option-chip {
  min-height: 44px;
  padding: 8px 9px;
  gap: 7px;
}

.option-inline-I7 .option-chip:first-child,
.option-inline-I7 .option-chip:nth-child(2) {
  font-size: 14px;
}

.option-inline-I7 .option-chip:last-child {
  font-size: 15px;
}

.option-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  min-height: 50px;
}

.option-chip-stacked {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.option-chip-stacked span {
  flex: 0 0 auto;
}

.option-chip input[type="checkbox"],
.option-chip input[type="radio"] {
  flex: 0 0 auto;
}

.inline-other-input {
  width: 100%;
  margin-top: 8px;
}

.option-chip-stacked .inline-other-input {
  width: 132px;
  margin-top: 0;
  margin-left: 4px;
  flex: 0 0 132px;
}

.inline-other-input.hidden {
  display: none;
}

.background-inline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.background-inline-row-age-career,
.background-inline-row-gender-training {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-inline-I8 .option-chip {
  min-height: 44px;
  padding: 8px 10px;
  white-space: nowrap;
}

.background-branch-details {
  margin-top: 8px;
  min-height: 127px;
}

.background-branch-panel {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px 14px 15px;
  border: 1px solid rgba(54, 72, 60, 0.08);
}

.background-subprompt {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.background-major-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
}

.background-major-detail-row {
  margin-top: 12px;
}

.background-info-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

.background-basic-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.background-combined-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.background-basic-card,
.background-training-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

.background-identity-card {
  min-height: 238px;
}

.background-inline-field {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.background-inline-field-gender {
  display: flex;
  align-items: center;
}

.background-inline-label {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
  min-height: 48px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.background-inline-input {
  margin-top: 0 !important;
  align-self: center;
  height: 48px;
  flex: 1 1 auto;
  transform: translateY(1px);
}

.background-basic-card .background-inline-field:first-child {
  min-height: 48px;
  align-items: center;
}

.background-inline-field .option-inline,
.background-block-field .option-inline {
  margin-top: 0;
}

.background-block-field {
  display: grid;
  gap: 6px;
}

.background-block-field p {
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
  transform: translateY(4px);
}

.background-identity-title {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1;
  height: 48px;
  display: flex;
  align-items: center;
  transform: translateY(-1px);
}

.background-identity-card {
  padding-top: 16px;
}

.background-identity-card .option-inline-I8 {
  margin-top: 0;
  transform: translateY(-6px);
}

.background-training-card {
  gap: 8px;
}

.background-training-card > p {
  margin: 0;
  line-height: 1.45;
  transform: translateY(4px);
}

.text-answer-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(77, 58, 39, 0.72) 50%),
    linear-gradient(135deg, rgba(77, 58, 39, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.background-inline-row-age-gender {
  grid-template-columns: 0.88fr 1.12fr;
}

.background-inline-row-career-training {
  grid-template-columns: 0.88fr 1.12fr;
}

.background-half {
  margin: 0;
}

.compact-field-card p {
  margin-bottom: 10px;
}

.payment-card {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.payment-lead,
.submission-id-title {
  margin: 0;
  color: var(--ink) !important;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.payment-row {
  margin-top: 0;
}

.summary-payment-card {
  margin-top: 18px;
}

.submission-id-value {
  margin: 0;
  color: var(--accent-deep);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  text-align: center;
}

.copy-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy-row-centered {
  width: 100%;
  margin-top: 8px;
}

.copy-btn {
  appearance: none;
  border: 1px solid rgba(140, 78, 40, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--accent-deep);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 8px 18px rgba(78, 58, 35, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 248, 238, 0.96);
  box-shadow: 0 12px 24px rgba(78, 58, 35, 0.12);
}

.copy-btn:disabled {
  cursor: default;
  opacity: 0.76;
  transform: none;
}

#summarySubmissionBlock {
  position: relative;
  top: 2px;
}

.summary-qr-block {
  margin-top: 10px;
}

.summary-qr-block-wide {
  margin-top: 14px;
}

.summary-qr-title {
  margin: 0 auto 10px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  position: relative;
  padding-left: 18px;
  text-align: left;
}

.summary-qr-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(140, 78, 40, 0.85);
  transform: translateY(-50%);
}

.summary-email-block {
  margin: 6px 0 14px;
  text-align: center;
}

.summary-email-value {
  margin: 0;
  color: var(--accent-deep);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.summary-qr-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.summary-qr-item {
  display: grid;
  gap: 10px;
  align-content: start;
}

.summary-qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  border-radius: 20px;
  border: 1px dashed rgba(179, 106, 60, 0.28);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(250, 245, 238, 0.72));
  color: var(--accent-deep);
  text-align: center;
  padding: 18px;
}

.summary-qr-image {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(140, 78, 40, 0.12);
}

.summary-qr-caption {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.summary-qr-hint {
  color: var(--muted);
  font-size: 13px;
}

.text-answer {
  margin-top: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.rapid-quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  text-align: center;
}

.rapid-quiz-header h2 {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 0;
  color: #203c35;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.rapid-quiz-header h2:empty {
  display: none !important;
}

.rapid-quiz-header .rapid-quiz-question-heading {
  margin-bottom: 14px;
  color: #59645f;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.rapid-quiz-header p {
  max-width: 680px;
  margin: 0;
  color: #344b45;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.rapid-quiz-header p:empty {
  display: none;
}

.rapid-quiz-header p + p {
  color: #4a5f59;
  font-weight: 650;
}

.rapid-quiz-header .rapid-quiz-time-emphasis {
  width: fit-content;
  margin: 0;
  padding: 0 2px 3px;
  border-bottom: 2px solid rgba(44, 106, 91, 0.5);
  color: #245a4d;
  font-weight: 750;
}

.rapid-quiz-notice {
  width: min(100%, 720px);
  margin: 14px auto 18px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #183c34;
  text-align: center;
}

.rapid-quiz-notice p {
  margin: 0;
  color: #344b45;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.rapid-quiz-timer {
  width: fit-content;
  min-width: 230px;
  margin: 0 auto 24px;
  padding: 14px 22px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(25, 65, 56, 0.12);
  border-radius: 16px;
  background: #214f44;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(25, 65, 56, 0.18);
  font-size: 15px;
  font-weight: 700;
}

.rapid-quiz-timer strong {
  min-width: 34px;
  color: #f5d89c;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.rapid-quiz-timer.urgent {
  border-color: rgba(173, 48, 37, 0.42);
  background: linear-gradient(135deg, rgba(255, 238, 232, 0.98), rgba(246, 204, 194, 0.9));
  color: #78352f;
  animation: rapid-timer-pulse 0.9s ease-in-out infinite alternate;
}

.rapid-quiz-timer.urgent strong {
  color: #a42f28;
}

.rapid-quiz-list {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 18px;
}

.rapid-quiz-question {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(54, 72, 60, 0.13);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 241, 0.92));
  box-shadow: 0 14px 34px rgba(52, 49, 42, 0.08);
}

.rapid-quiz-question-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.75;
}

.rapid-quiz-number {
  display: inline-flex;
  margin-right: 8px;
  color: var(--accent-deep);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.rapid-quiz-options {
  display: grid;
  gap: 10px;
}

.rapid-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(54, 72, 60, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  line-height: 1.6;
  cursor: pointer;
}

.rapid-quiz-option:has(input:checked) {
  border-color: rgba(164, 92, 54, 0.55);
  background: rgba(245, 226, 208, 0.72);
  box-shadow: inset 0 0 0 1px rgba(164, 92, 54, 0.12);
}

.rapid-quiz-option input {
  margin-top: 5px;
  accent-color: var(--accent-deep);
}

.rapid-quiz-actions {
  margin-top: 22px;
}

.rapid-quiz-actions .primary-btn {
  min-width: 180px;
}

@keyframes rapid-timer-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

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

@media (max-width: 1100px) {
  .setup-card {
    width: min(100%, 320px);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-qr-columns {
    grid-template-columns: 1fr;
  }

  .rapid-quiz-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .screen,
  .brand-block,
  .panel-card {
    border-radius: 20px;
  }

  .screen {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .manual-pager.visible {
    flex-direction: column;
  }
}
