:root {
  color-scheme: light;
  --font-serif: "Noto Serif KR", "Batang", Georgia, serif;
  --font-sans: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "Consolas", monospace;
  --bg: #FFFCF9;
  --bg-canvas: #FFFCF9;
  --surface: #FFFFFF;
  --surface-2: #F8F4F0;
  --inset: #F8F4F0;
  --bg-blush: #FDF2F6;
  --bg-sage-wash: #F2F9F8;
  --border: #E7DFD8;
  --border-strong: #C7BDB5;
  --rule-control: #857B74;
  --text: #1C1917;
  --ink-primary: #1C1917;
  --text-muted: #57534E;
  --text-subtle: #665F59;
  --rose-primary: #BE185D;
  --rose-hover: #9D174D;
  --rose-soft: #F5D0DF;
  --sage-primary: #0F766E;
  --sage-hover: #115E59;
  --sage-soft: #CBE8E4;
  --accent: #BE185D;
  --accent-hover: #9D174D;
  --accent-soft: #FDF2F6;
  --secure: #0F766E;
  --secure-soft: #F2F9F8;
  --anxious: #B45309;
  --anxious-soft: #FFFBEB;
  --disorganized: #BE123C;
  --disorganized-soft: #FDF2F6;
  --nav-height: 58px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-editorial: 0 10px 30px -18px rgba(28, 25, 23, 0.14);
  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--rose-primary);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rose-primary);
  outline-offset: 2px;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Editorial Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-height);
  background: rgba(255, 252, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1040px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--rose-primary);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-blush);
  color: var(--text);
}

.nav-link.active {
  background: var(--bg-blush);
  color: var(--rose-primary);
}

.btn-exit-discreet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-control);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.btn-exit-discreet:hover {
  border-color: var(--disorganized);
  color: var(--disorganized);
  background: var(--bg-blush);
}

/* Main Container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Editorial Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.03);
}

.sub-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 12px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-primary);
  margin: 0 0 8px;
}

.eyebrow-rule {
  width: 22px;
  height: 1px;
  background-color: var(--rose-primary);
  display: inline-block;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 2px 0 8px;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.28;
}

h2 {
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.35;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  margin: 14px 0 8px;
  color: var(--text);
}

h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--text);
}

p {
  margin: 0 0 10px;
}

ul, ol {
  margin: 6px 0 12px;
  padding-left: 20px;
}

li {
  margin: 4px 0;
}

/* Editorial Pill & Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover:not(:disabled) {
  background: var(--bg-blush);
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--rose-hover);
  border-color: var(--rose-hover);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -10px rgba(190, 24, 93, 0.55);
}

.btn-danger {
  background: var(--disorganized);
  border-color: var(--disorganized);
  color: #FFFFFF;
}

.btn-danger:hover:not(:disabled) {
  background: #9F1239;
  border-color: #9F1239;
  color: #FFFFFF;
}

.btn-soft {
  background: var(--bg-sage-wash);
  border-color: var(--sage-soft);
  color: var(--sage-primary);
}

.btn-soft:hover:not(:disabled) {
  background: var(--sage-primary);
  border-color: var(--sage-primary);
  color: #FFFFFF;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-xs {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12.5px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.badge-secure {
  background: var(--bg-sage-wash);
  color: var(--sage-primary);
  border: 1px solid var(--sage-soft);
}

.badge-anxious {
  background: var(--anxious-soft);
  color: var(--anxious);
  border: 1px solid #FDE68A;
}

.badge-disorg {
  background: var(--bg-blush);
  color: var(--disorganized);
  border: 1px solid var(--rose-soft);
}

.badge-accent {
  background: var(--bg-blush);
  color: var(--rose-primary);
  border: 1px solid var(--rose-soft);
}

.badge-neutral {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.mono, .mono-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.mono-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Launcher */
.launcher-hero {
  margin-bottom: 20px;
}

.launcher-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.launcher-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 58ch;
  margin: 4px 0 0;
}

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

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 200px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.track-card:hover {
  border-color: var(--rose-primary);
  background: #FFFAFC;
  box-shadow: var(--shadow-editorial);
}

.track-card.track-card--couple:hover {
  border-color: var(--sage-primary);
  background: #FAFEFD;
}

.track-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.track-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rose-primary);
}

.track-card--couple .track-index {
  color: var(--sage-primary);
}

.track-icon-box {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 12px;
}

.track-card h3 {
  font-family: var(--font-serif);
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.track-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.track-card-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.track-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--rose-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.track-card--couple .track-cta {
  background: var(--sage-primary);
}

.track-card:hover .track-cta {
  background: var(--rose-hover);
}

.track-card--couple:hover .track-cta {
  background: var(--sage-hover);
}

/* Secondary Expandable Partner Token Box */
.join-token-details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 20px;
}

.join-token-details summary {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
}

.join-token-details summary::-webkit-details-marker {
  display: none;
}

.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-label svg {
  color: var(--rose-primary);
}

.join-token-details summary::after {
  content: "열기";
  font-size: 13px;
  color: var(--rose-primary);
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--rose-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.join-token-details[open] summary::after {
  content: "접기";
}

.join-token-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Compact Optional Setup Bar */
.survey-setup-card {
  padding: 22px 24px;
}

.setup-compact-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr);
  gap: 12px;
  margin-top: 12px;
}

.optional-demographics {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.optional-demographics summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.optional-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-control);
  background: var(--bg-canvas);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rose-primary);
  outline-offset: 1px;
  border-color: var(--rose-primary);
}

/* Sleek Single Progress Header directly below topbar */
.stepper-bar {
  position: sticky;
  top: calc(var(--nav-height) + 6px);
  z-index: 40;
  background: rgba(255, 252, 249, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  margin-bottom: 18px;
}

.progress-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-blush);
  border: 1px solid var(--rose-soft);
  color: var(--rose-primary);
  font-size: 13px;
  font-weight: 700;
}

.step-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--rose-primary), var(--sage-primary));
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Focused Single-Column Survey Reading Container & 16Personalities Spotlight */
#view-survey,
.survey-card {
  max-width: 740px;
  margin-inline: auto;
}

.item-card {
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 22px 16px;
  border-radius: var(--radius);
  scroll-margin-top: 136px;
  opacity: 0.48;
  transition: opacity var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.item-card:hover,
.item-card:focus-within,
.item-card.is-active,
.item-card.missing {
  opacity: 1;
}

.item-card.is-active {
  background: var(--surface);
  border-color: var(--border);
  border-left-color: var(--rose-primary);
  box-shadow: var(--shadow-editorial);
}

.item-card:last-child {
  border-bottom-color: transparent;
}

.item-card.is-active:last-child {
  border-bottom-color: var(--border);
}

.item-card.missing {
  background: var(--anxious-soft);
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid #FCD34D;
  border-left: 3px solid var(--anxious);
  margin: 8px 0;
}

.item-title {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.52;
  color: var(--text);
}

.item-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rose-primary);
  font-weight: 700;
  margin-right: 8px;
}

.item-priv-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-sage-wash);
  border: 1px solid var(--sage-soft);
  color: var(--sage-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* Concept C Diverging 6-Circle Likert Scale: Left Romance Rose (#BE185D) <-> Right Deep Sage (#0F766E) */
.likert-spectrum {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.likert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.likert-end {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 30px;
}

.likert-end-l {
  color: var(--rose-primary);
}

.likert-end-r {
  color: var(--sage-primary);
  text-align: right;
}

.likert-circles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 396px;
  margin: 0 auto;
  gap: 4px;
}

.likert-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border);
  flex-shrink: 0;
}

.likert-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.likert-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.likert-sz-1 .likert-circle,
.likert-sz-6 .likert-circle {
  width: 44px;
  height: 44px;
}

.likert-sz-2 .likert-circle,
.likert-sz-5 .likert-circle {
  width: 36px;
  height: 36px;
}

.likert-sz-3 .likert-circle,
.likert-sz-4 .likert-circle {
  width: 30px;
  height: 30px;
}

.likert-sz-1 .likert-circle,
.likert-sz-2 .likert-circle,
.likert-sz-3 .likert-circle {
  border-color: var(--rose-primary);
}

.likert-sz-3 .likert-circle {
  border-color: #D45D8E;
}

.likert-sz-4 .likert-circle {
  border-color: #469B93;
}

.likert-sz-5 .likert-circle,
.likert-sz-6 .likert-circle {
  border-color: var(--sage-primary);
}

.likert-sz-1:hover .likert-circle,
.likert-sz-2:hover .likert-circle,
.likert-sz-3:hover .likert-circle,
.likert-sz-1 input:focus-visible + .likert-circle,
.likert-sz-2 input:focus-visible + .likert-circle,
.likert-sz-3 input:focus-visible + .likert-circle {
  border-color: var(--rose-primary);
  background: var(--bg-blush);
  box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.12);
}

.likert-sz-4:hover .likert-circle,
.likert-sz-5:hover .likert-circle,
.likert-sz-6:hover .likert-circle,
.likert-sz-4 input:focus-visible + .likert-circle,
.likert-sz-5 input:focus-visible + .likert-circle,
.likert-sz-6 input:focus-visible + .likert-circle {
  border-color: var(--sage-primary);
  background: var(--bg-sage-wash);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.likert-sz-1 input:checked + .likert-circle,
.likert-sz-2 input:checked + .likert-circle,
.likert-sz-3 input:checked + .likert-circle {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.16);
}

.likert-sz-4 input:checked + .likert-circle,
.likert-sz-5 input:checked + .likert-circle,
.likert-sz-6 input:checked + .likert-circle {
  background: var(--sage-primary);
  border-color: var(--sage-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.likert-opt input:checked + .likert-circle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
}

.likert-sz-3 input:checked + .likert-circle::after,
.likert-sz-4 input:checked + .likert-circle::after {
  width: 8px;
  height: 8px;
}

.likert-sz-1 input:checked + .likert-circle::after,
.likert-sz-6 input:checked + .likert-circle::after {
  width: 12px;
  height: 12px;
}

.bool-row, .cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-list {
  flex-direction: column;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.choice-pill span:hover {
  border-color: var(--rose-primary);
  background: var(--bg-blush);
}

.choice-pill input:checked + span {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFFFFF;
}

/* Single-tap 3-pill M6 selector */
.m6-extras {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m6-extras-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.firm-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.firm-pills::-webkit-scrollbar {
  display: none;
}

.firm-pills button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.firm-pills button:hover {
  border-color: var(--rose-primary);
  color: var(--text);
}

.firm-pills button.active-flex {
  background: var(--bg-sage-wash);
  border-color: var(--sage-primary);
  color: var(--sage-primary);
}

.firm-pills button.active-prefer {
  background: var(--anxious-soft);
  border-color: var(--anxious);
  color: var(--anxious);
}

.firm-pills button.active-firm {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFFFFF;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Gentle M0 Safety Card & Escalation */
.safety-calm-box {
  background: var(--bg-sage-wash);
  border: 1px solid var(--sage-soft);
  border-left: 3px solid var(--sage-primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  color: var(--text);
}

.safety-calm-box strong {
  color: var(--sage-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
}

.notice-box {
  background: var(--bg-sage-wash);
  border: 1px solid var(--sage-soft);
  border-left: 3px solid var(--sage-primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text);
}

.warn-box {
  background: var(--bg-blush);
  border: 1px solid var(--rose-soft);
  border-left: 3px solid var(--disorganized);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 15px;
  color: var(--text);
}

.safety-alert-card {
  border: 2px solid var(--disorganized);
}

.safety-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.veto-alert-card {
  border: 1.5px solid var(--disorganized);
  border-left: 4px solid var(--disorganized);
}

.hotline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hotline-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.hotline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.hotline-meta {
  font-size: 13px;
  color: var(--sage-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.hotline-scope {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Report 3-Layer Editorial Spread + Concept D Precision 4-Axis Diamond Radar */
.hero-summary-card {
  border-color: var(--border);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFAFC 100%);
  box-shadow: var(--shadow-editorial);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 8px 0 4px;
  line-height: 1.32;
}

.lead-info {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.clt-hero-spread {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
  margin: 16px 0;
}

.clt-hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clt-hero-visual {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 12px;
  align-items: stretch;
}

.clt-dyad-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
  margin: 16px 0;
}

/* Concept D Precision 4-Axis Diamond Radar Card */
.clt-radar-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.clt-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.clt-radar-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.clt-idx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rose-primary);
  background: var(--surface);
  color: var(--rose-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.clt-radar-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.clt-radar-svg {
  width: 100%;
  height: auto;
  display: block;
}

.clt-radar-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-subtle);
}

.clt-gauge-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clt-semicircle-svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.clt-pillar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

.clt-pillar-row {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.clt-pillar-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text);
}

.clt-pillar-lbl svg {
  color: var(--rose-primary);
}

.clt-pillar-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
  position: relative;
}

.clt-pillar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.clt-pillar-fill--good {
  background: var(--sage-primary);
}

.clt-pillar-fill--warn {
  background: var(--rose-primary);
}

.clt-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.clt-match-col {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.clt-match-col--good {
  background: var(--bg-sage-wash);
  border-color: var(--sage-soft);
}

.clt-match-col--warn {
  background: var(--bg-blush);
  border-color: var(--rose-soft);
}

.clt-match-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.clt-match-col--good .clt-match-title svg {
  color: var(--sage-primary);
}

.clt-match-col--warn .clt-match-title svg {
  color: var(--rose-primary);
}

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

.clt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
}

button.clt-chip {
  cursor: pointer;
  min-height: 38px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

button.clt-chip:hover {
  border-color: var(--rose-primary);
  background: var(--bg-blush);
}

.clt-chip--good {
  border-color: var(--sage-soft);
  color: var(--sage-primary);
}

.clt-chip--warn {
  border-color: var(--rose-soft);
  color: var(--rose-primary);
}

.clt-chip--red {
  border-color: var(--rose-soft);
  color: var(--disorganized);
  background: var(--bg-blush);
}

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

.clt-ring-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clt-ring-svg {
  width: 82px;
  height: 82px;
}

.clt-ring-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.clt-signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.clt-sig-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.sig-g .sig-dot { background: var(--sage-primary); }
.sig-y .sig-dot { background: var(--anxious); }
.sig-r .sig-dot { background: var(--rose-primary); }

/* Concept C Editorial Pull-Quote Dialogue Cards */
.clt-chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.clt-chat-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.clt-bubble-bad {
  background: var(--bg-blush);
  border: 1px solid var(--rose-soft);
  border-left: 3px solid var(--rose-primary);
  color: #831843;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.clt-bubble-bad .clt-quote-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose-primary);
  font-weight: 700;
  font-size: 12.5px;
  margin-right: 6px;
}

.clt-bubble-good {
  background: var(--bg-sage-wash);
  border: 1px solid var(--sage-soft);
  border-left: 3px solid var(--sage-primary);
  color: #115E59;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clt-quote-body {
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.clt-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sage-primary);
}

.clt-quote-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.clt-bubble-copy {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.clt-obs-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.split-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.kpi-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.kpi-trio > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.kpi-trio span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.kpi-trio strong {
  font-size: 18px;
  font-family: var(--font-mono);
}

.meter-row {
  display: grid;
  grid-template-columns: 180px 1fr 56px;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
}

.bar-track {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--sage-primary);
  border-radius: var(--radius-pill);
}

.bar-fill.fill-warn {
  background: var(--rose-primary);
}

.top3-grid, .moving-grid, .practice-grid, .script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.kv-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 4px 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compact-table th, .compact-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compact-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.q6-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
  align-items: start;
}

.q6-svg {
  width: 100%;
  max-width: 290px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.axis-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.axis-title {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}

.axis-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

.near-tag {
  color: var(--anxious);
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
}

/* Studio Tabs */
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.studio-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.studio-tab:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

.studio-tab.active {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFFFFF;
}

.studio-pane {
  display: none;
}

.studio-pane.active {
  display: block;
}

.sig-g {
  background: var(--bg-sage-wash);
  border: 1px solid var(--sage-soft);
  color: var(--sage-primary);
}

.sig-y {
  background: var(--anxious-soft);
  border: 1px solid #FDE68A;
  color: #92400E;
}

.sig-r {
  background: var(--bg-blush);
  border: 1px solid var(--rose-soft);
  color: var(--rose-primary);
}

.audit-form {
  display: grid;
  gap: 14px;
  background: var(--surface-2);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.audit-row label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.audit-row select {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-control);
  background: var(--surface);
  font: inherit;
  color: var(--text);
}

.audit-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.audit-result {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.trap-list {
  display: grid;
  gap: 12px;
}

.trap-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items: center;
}

/* Layer 3 Deep Dive */
.clt-deep-dive {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.clt-deep-dive > summary {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
}

.clt-deep-dive > summary::-webkit-details-marker {
  display: none;
}

.clt-deep-dive > summary::after {
  content: "펼쳐 보기";
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-primary);
  padding: 4px 12px;
  border: 1px solid var(--rose-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-blush);
}

.clt-deep-dive[open] > summary::after {
  content: "접기";
}

.deep-dive-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Token & Telemetry */
.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.token-box {
  width: 100%;
  min-height: 76px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-control);
  background: var(--surface);
  color: var(--text);
}

.muted-note {
  font-size: 13.5px;
  color: var(--text-muted);
}

.privacy-telemetry-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.short-invite-wrap {
  margin-top: 10px;
}

.short-invite-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--rule-control);
  background: var(--surface);
  color: var(--text);
}

.telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.telemetry-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-canvas);
  padding: 22px 20px;
  margin-top: 32px;
}

.site-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-admin-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.footer-admin-link:hover {
  color: var(--rose-primary);
  border-color: var(--rose-primary);
  background: var(--bg-blush);
}

.txt-good { color: var(--sage-primary); }
.txt-bad { color: var(--rose-primary); }
.mt-sm { margin-top: 14px; }
.mb-sm { margin-bottom: 12px; }
.hidden { display: none !important; }

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .clt-hero-spread,
  .clt-dyad-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .track-grid { grid-template-columns: 1fr; }
  .setup-compact-row { grid-template-columns: 1fr; }
  .clt-hero-visual { grid-template-columns: 1fr; }
  .clt-match-grid { grid-template-columns: 1fr; }
  .q6-grid { grid-template-columns: 1fr; }
  .meter-row { grid-template-columns: 1fr; }
  .trap-row { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
}

@media (max-width: 640px) {
  .topbar {
    height: 54px;
  }
  .topbar-inner {
    padding: 0 12px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .brand-link {
    font-size: 16px;
    gap: 6px;
  }
  .nav-right {
    gap: 6px;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-link {
    padding: 0 9px;
    font-size: 13px;
  }
  .btn-exit-discreet {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  #survey-progress-header,
  .stepper-bar {
    top: 56px;
    padding: 9px 12px;
  }
  .container {
    padding: 18px 12px 64px;
  }
  .card {
    padding: 18px 14px;
  }
  .survey-setup-card {
    padding: 16px 14px;
  }
  .split-2,
  .top3-grid,
  .moving-grid,
  .practice-grid,
  .script-grid,
  .hotline-grid,
  .optional-demo-grid,
  .clt-obs-chips {
    grid-template-columns: 1fr;
  }
  .split-2 > *,
  .card,
  .sub-card,
  .clt-chat-card {
    min-width: 0;
  }
  .clt-bubble-bad,
  .clt-bubble-good,
  .clt-sig-chip,
  .clt-chip {
    overflow-wrap: anywhere;
  }
  .audit-row input[type="range"],
  .audit-row select {
    width: 100%;
  }
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .token-box,
  .short-invite-input {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .item-card {
    padding: 18px 10px;
  }
  .likert-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .likert-circles {
    order: 1;
    flex: 1 0 100%;
    max-width: 100%;
    gap: 2px;
    justify-content: space-between;
  }
  .likert-divider {
    display: none;
  }
  .likert-opt {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }
  .likert-sz-1 .likert-circle,
  .likert-sz-6 .likert-circle {
    width: 40px;
    height: 40px;
  }
  .likert-sz-2 .likert-circle,
  .likert-sz-5 .likert-circle {
    width: 34px;
    height: 34px;
  }
  .likert-sz-3 .likert-circle,
  .likert-sz-4 .likert-circle {
    width: 28px;
    height: 28px;
  }
  .likert-end-l {
    order: 2;
  }
  .likert-end-r {
    order: 3;
    margin-left: auto;
  }
  .m6-extras {
    padding: 8px 10px;
  }
  .firm-pills {
    width: 100%;
  }
  .firm-pills button {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    justify-content: center;
    padding: 6px 6px;
    font-size: 12px;
    min-height: 38px;
  }
}

@media (max-width: 480px) {
  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .step-nav .handoff-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }
  .step-nav > .btn,
  .step-nav .handoff-actions > .btn,
  .handoff-actions > .btn-primary {
    width: 100%;
  }
  .clt-rings-grid {
    gap: 8px;
  }
  .kpi-trio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .clt-pillar-row {
    grid-template-columns: 74px 1fr 40px;
    gap: 8px;
  }
}

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