@font-face {
  font-family: Inter;
  src: url('./inter-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('./cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color:#493a32;
  background:#fffcf7;
  font-synthesis:none;
  --accent:#8f4834;
  --accent-dark:#7f3c2c;
  --text:#493a32;
  --muted:#6b5d51;
  --line:#f1e2cb;
  --soft:#faf2e6;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea {
  font:inherit;
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
}
button,a,input,textarea {
  outline-offset:5px;
}
button:focus-visible,a:focus-visible,textarea:focus-visible {
  outline:3px solid #8f4834;
}
button {
  color:inherit;
}
svg {
  display:block;
}
button svg,.intro-meta svg,.wheel-footnote svg,.note-icon svg,.action-heading svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
a {
  color:inherit;
}
h1,h2,h3,p {
  margin:0;
}
h1,h2,.brand {
  font-family:Cormorant, Georgia, serif;
}
button {
  transition:background .18s,color .18s,box-shadow .18s,transform .18s;
}
fieldset {
  padding:0;
  border:0;
  margin:0;
}
legend {
  padding:0;
}
button:disabled {
  opacity:.45;
}
.site-header {
  min-height: 84px;
  max-width: 1320px;
  margin: auto;
  padding: 14px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffcf7;
  color: var(--accent-dark);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.nav-button:hover, .nav-button[aria-expanded="true"] { background: var(--soft); }
.nav-button svg { width: 16px; height: 16px; }
.nav-login {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}
.nav-login:hover, .nav-login[aria-expanded="true"] {
  border-color: #653020;
  background: #653020;
}
.profile { position: relative; }
.profile-chevron { transition: transform .18s ease; }
.profile [aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 15;
  width: min(226px, calc(100vw - 40px));
  padding: 7px;
  border: 1px solid #e4d6c5;
  border-radius: 16px;
  background: #fffcf7;
  box-shadow: 0 12px 30px #493a3224;
}
#account-name {
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}
#account-name:empty { display: none; }
.profile-panel button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: .875rem;
  font-weight: 650;
}
.profile-panel button:hover, .profile-panel button:focus-visible { background: var(--soft); }
#open-history { color: var(--accent-dark); }
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  font-size:24px;
  font-weight:800;
  letter-spacing:-1px;
}
.brand-dot {
  color:var(--accent);
}
.text-button {
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:14px;
  font-weight:550;
  padding:9px 0;
  color:#6b5d51;
}
.text-button:hover {
  color:var(--accent-dark);
}
.text-button svg {
  width:17px;
  height:17px;
}
.main-shell {
  max-width:1320px;
  margin:0 auto;
  padding:45px 64px 0;
}
.intro {
  text-align:center;
  margin-bottom:35px;
}
.eyebrow {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#936e57;
}
.eyebrow span {
  width:5px;
  height:5px;
  background:#936e57;
  border-radius:50%;
}
h1 {
  font-size:47px;
  line-height:1.3;
  letter-spacing:-2px;
  font-weight:750;
  margin:12px 0 13px;
}
h1 span {
  color:var(--accent);
  font-weight:550;
}
.intro>p {
  font-size:16px;
  line-height:1.7;
  color:#6b5d51;
}
.intro-meta {
  margin-top:18px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  color:#936e57;
  font-size:12px;
}
.intro-meta>span {
  display:flex;
  align-items:center;
  gap:6px;
}
.intro-meta svg {
  width:14px;
  height:14px;
}
.meta-divider {
  height:3px;
  width:3px;
  background:#c7a98f;
  border-radius:50%;
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  gap:25px;
  align-items:start;
}
.wheel-card,.assessment-card {
  background:white;
  border:1px solid #f1e2cb;
  border-radius:19px;
  box-shadow:0 5px 20px #493a3203;
}
.wheel-card {
  padding:25px 28px 0;
}
.card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.section-label {
  font-size:12px;
  letter-spacing:1.5px;
  font-weight:650;
  color:#936e57;
  line-height:1.6;
}
.card-heading h2 {
  font-size:17px;
  letter-spacing:-.5px;
  font-weight:700;
  line-height:1.5;
  margin-top:3px;
}
.live-badge {
  background:#fffcf7;
  color:#936e57;
  border:1px solid #faf2e6;
  border-radius:6px;
  padding:5px 8px;
  white-space:nowrap;
  font-size:12px;
}
.wheel-wrap {
  margin:0 -10px -7px;
}
.wheel-wrap svg {
  width:100%;
  height:auto;
  max-height:396px;
  margin:auto;
}
.wheel-label {
  font-family: Inter, system-ui, sans-serif;
  font-size:13px;
  font-weight:500;
}
.wheel-label.active {
  font-weight:700;
}
.ring-number {
  font-size:12px;
  fill:#936e57;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:3px;
  stroke-linejoin:round;
}
.wheel-key {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  color:#936e57;
  font-size:12px;
  margin:0 0 24px;
}
.wheel-key>span:first-child {
  display:flex;
  align-items:center;
  gap:6px;
}
.wheel-key>span:last-child {
  font-size:12px;
}
.key-ring {
  height:8px;
  width:8px;
  border-radius:50%;
  background:#e4d6c5;
  display:inline-block;
}
.area-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding-bottom:22px;
}
.area-chip {
  display:flex;
  align-items:center;
  text-align:left;
  gap:6px;
  border:1px solid #f1e2cb;
  border-radius:6px;
  padding:8px 6px;
  background:#fff;
  font-size:12px;
  white-space:nowrap;
  min-height:35px;
}
.area-chip:hover {
  background:#fffcf7;
}
.area-chip.selected {
  border-color:color-mix(in srgb,var(--area-color) 48%,white);
  background:color-mix(in srgb,var(--area-color) 7%,white);
}
.area-dot {
  display:inline-block;
  width:6px;
  height:6px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--area-color);
}
.area-value {
  margin-left:auto;
  color:#936e57;
  font-size:12px;
}
.wheel-footnote {
  margin:0 -28px;
  padding:15px 20px;
  border-top:1px solid #faf2e6;
  background:#fffcf7;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  color:#936e57;
  font-size:12px;
  border-radius:0 0 19px 19px;
}
.wheel-footnote svg {
  height:14px;
  width:14px;
  flex-shrink:0;
}
.assessment-card {
  padding:29px 32px 23px;
  min-height:615px;
  scroll-margin-top:20px;
}
.assessment-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.assessment-top .section-label {
  color:#936e57;
}
.step-count {
  font-size:12px;
  color:#c7a98f;
}
.step-count strong {
  color:var(--accent);
  font-weight:650;
  font-size:15px;
  margin-right:3px;
}
.step-progress {
  display:flex;
  gap:5px;
  margin-top:14px;
}
.step-progress span {
  height:3px;
  flex:1;
  border-radius:2px;
  background:#faf2e6;
}
.step-progress span.done {
  background:#c7a98f;
}
.step-progress span.current {
  background:#8f4834;
}
.area-intro {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:37px;
}
.area-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:47px;
  height:47px;
  background:color-mix(in srgb,var(--area-color) 10%,white);
  border:1px solid color-mix(in srgb,var(--area-color) 8%,white);
  color:var(--area-color);
  border-radius:13px;
}
.area-icon svg {
  height:23px;
  width:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.area-name {
  font-size:14px;
  font-weight:550;
  color:#748478;
}
.assessment-card h2 {
  font-size:27px;
  line-height:1.4;
  letter-spacing:-.9px;
  font-weight:750;
  margin-top:20px;
  max-width:330px;
}
.assessment-card h2:focus {
  outline:none;
}
.question-description {
  font-size:14px;
  line-height:1.8;
  color:#936e57;
  margin-top:10px;
  min-height:76px;
}
.score-fieldset {
  margin-top:29px;
  min-width:0;
}
.score-fieldset legend,.focus-fieldset legend {
  font-size:13px;
  font-weight:600;
  margin-bottom:13px;
  color:#6b5d51;
}
.score-grid {
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:5px;
}
.score-option {
  position:relative;
  cursor:pointer;
  min-width:0;
}
.score-option input,.focus-option input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
}
.score-option span {
  display:flex;
  align-items:center;
  justify-content:center;
  height:42px;
  width:100%;
  background:#fff;
  border:1px solid #f1e2cb;
  border-radius:7px;
  color:#936e57;
  font-size:14px;
  transition:all .15s;
}
.score-option:hover span {
  border-color:#c7a98f;
  background:#fffcf7;
}
.score-option input:checked+span {
  background:var(--accent);
  color:white;
  border-color:var(--accent);
  box-shadow:0 3px 7px #493a3225;
}
.score-option input:focus-visible+span,.focus-option input:focus-visible+span {
  outline:3px solid #c7a98f;
  outline-offset:3px;
}
.scale-labels {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:#936e57;
  margin-top:10px;
}
.answer-message {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#936e57;
  font-size:12px;
  line-height:1.6;
  min-height:52px;
  margin:21px 0 26px;
  background:#fffcf7;
  border-radius:7px;
  padding:10px 12px;
}
.answer-message.has-answer {
  background:#faf2e6;
  color:#936e57;
}
.assessment-navigation {
  display:flex;
  gap:10px;
}
.back-button {
  width:44px;
  flex-shrink:0;
  border:1px solid #f1e2cb;
  border-radius:8px;
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#936e57;
}
.back-button svg {
  transform:rotate(180deg);
}
.back-button:not(:disabled):hover {
  background:#fffcf7;
}
.primary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  flex:1;
  border:1px solid var(--accent);
  background:var(--accent);
  border-radius:8px;
  color:white;
  font-size:13px;
  font-weight:500;
  padding:14px 12px;
  min-height:46px;
  line-height:1.5;
}
.primary-button:hover:not(:disabled) {
  background:var(--accent-dark);
  border-color:var(--accent-dark);
  box-shadow:0 3px 10px #493a3225;
}
.primary-button:disabled {
  opacity:.55;
}
.primary-button svg {
  width:17px;
  height:17px;
  flex-shrink:0;
}
.assessment-footer {
  text-align:center;
  font-size:12px;
  color:#c7a98f;
  margin-top:14px;
}
.gentle-note {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin:27px 0 35px;
}
.note-icon {
  background:#faf2e6;
  border:1px solid #f1e2cb;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#936e57;
  flex-shrink:0;
}
.note-icon svg {
  width:18px;
  height:18px;
}
.gentle-note h3 {
  font-size:12px;
  font-weight:550;
  color:#6b5d51;
  margin-bottom:4px;
}
.gentle-note p {
  font-size:12px;
  line-height:1.6;
  color:#936e57;
}
.site-footer {
  border-top:1px solid #f1e2cb;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#c7a98f;
  font-size:12px;
  padding:21px 0 25px;
}
.complete-icon {
  display:flex;
  justify-content:center;
  align-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#faf2e6;
  color:var(--accent);
}
.complete-icon svg {
  height:15px;
  width:15px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
}
.assessment-card .result-title {
  font-size:29px;
  line-height:1.4;
  margin-top:24px;
}
.result-description {
  font-size:14px;
  line-height:1.75;
  color:#936e57;
  margin-top:12px;
}
.insight-box {
  border:1px solid #f1e2cb;
  background:#fffcf7;
  border-radius:10px;
  padding:16px;
  margin:22px 0;
}
.insight-box .section-label {
  color:#936e57;
  font-size:12px;
}
.insight-value {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:7px;
}
.insight-value strong {
  font-size:15px;
  color:#6b5d51;
  font-weight:550;
  line-height:1.5;
}
.insight-value>span {
  color:#8f4834;
  font-size:25px;
  font-weight:600;
  white-space:nowrap;
}
.insight-value small {
  font-size:12px;
  color:#c7a98f;
  font-weight:400;
  margin-left:2px;
}
.insight-box>p {
  font-size:12px;
  line-height:1.6;
  color:#936e57;
  margin-top:8px;
}
.focus-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.focus-option {
  position:relative;
  cursor:pointer;
}
.priority-signals { display: grid; gap: 12px; margin: 24px 0; }
.priority-insight { border: 1px solid #f1e2cb; background: #fffcf7; border-radius: 12px; padding: 18px; }
.priority-insight h3 { font-size: 16px; line-height: 1.5; color: #7f3c2c; }
.priority-value { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0; }
.priority-value strong { font-size: 16px; line-height: 1.6; font-weight: 550; }
.priority-value > span { flex-shrink: 0; color: #7f3c2c; font-size: 26px; font-weight: 650; }
.priority-value small { font-size: 14px; font-weight: 400; }
.priority-insight p, .comparison-note p, .previous-choice-note { font-size: 14px; line-height: 1.7; color: #6b5d51; }
.priority-insight p + p { margin-top: 8px; }
.comparison-note { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #f1e2cb; border-radius: 10px; }
.comparison-note strong { font-weight: 600; }
.comparison-note button { text-align: left; margin-top: 6px; }
.priority-breakdown { margin-top: 16px; border-top: 1px solid var(--line); }
.priority-breakdown summary { cursor: pointer; min-height: 44px; padding: 11px 0; color: var(--accent-dark); font-weight: 650; }
.previous-choice-note { margin-bottom: 18px; }
.impact-choice legend { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.priority-options .focus-option > span { display: grid; align-content: start; height: 100%; gap: 10px; padding: 13px; }
.priority-option-name { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.5; }
.priority-option-values { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; line-height: 1.6; }
.priority-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.priority-badges > span { padding: 3px 7px; border-radius: 5px; background: #faf2e6; color: #7f3c2c; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) { .priority-options { grid-template-columns: 1fr; } }
.focus-option>span {
  display:flex;
  gap:7px;
  align-items:center;
  border:1px solid #f1e2cb;
  border-radius:7px;
  padding:10px;
  font-size:12px;
  color:#936e57;
  min-height:39px;
}
.focus-option input:checked+span {
  border-color:#c7a98f;
  background:#fffcf7;
  color:#6b5d51;
}
.focus-option:hover>span {
  background:#fffcf7;
}
.focus-option svg {
  width:14px;
  height:14px;
  margin-left:auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}
.focus-hint {
  font-size:12px;
  color:#936e57;
  text-align:center;
  margin-top:20px;
  line-height:1.6;
}
.review-button {
  font-size:12px;
  margin:20px auto 0;
  display:flex;
}
.action-card {
  margin-top:23px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.action-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.action-heading .section-label {
  color:#936e57;
  font-size:12px;
}
.action-heading svg {
  width:18px;
  height:18px;
  color:#936e57;
}
.action-card>label {
  font-size:14px;
  font-weight:550;
  color:#6b5d51;
  line-height:1.6;
  display:block;
}
.action-help {
  font-size:12px;
  color:#936e57;
  line-height:1.7;
  margin:8px 0 12px;
}
textarea {
  display:block;
  resize:vertical;
  width:100%;
  min-height:98px;
  padding:13px;
  font-size:14px;
  line-height:1.7;
  color:var(--text);
  border:1px solid #f1e2cb;
  border-radius:8px;
  background:#fffcf7;
}
textarea::placeholder {
  color:#c7a98f;
}
.action-saved {
  font-size:12px;
  line-height:1.6;
  color:#936e57;
  margin-top:8px;
}
dialog {
  max-width:460px;
  width:calc(100% - 32px);
  border:1px solid #f1e2cb;
  border-radius:18px;
  padding:30px;
  box-shadow:0 30px 100px #493a3230;
  color:var(--text);
}
dialog::backdrop {
  background:#493a3255;
  backdrop-filter:blur(3px);
}
dialog h2 {
  font-size:25px;
  margin:12px 0;
}
dialog p {
  font-size:15px;
  color:var(--muted);
  line-height:1.7;
}
.dialog-actions {
  display:flex;
  gap:10px;
  margin-top:26px;
}
.secondary-button {
  border:1px solid #f1e2cb;
  background:white;
  border-radius:8px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.5;
}
.secondary-button:hover {
  background:#fffcf7;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link {
  position:fixed;
  left:15px;
  top:12px;
  clip-path: inset(50%);
  background:var(--accent);
  color:white;
  padding:12px 18px;
  z-index:20;
  border-radius:8px;
}
.skip-link:focus {
  clip-path: none;
}
.noscript {
  position:fixed;
  bottom:20px;
  left:20px;
  right:20px;
  padding:20px;
  background:#fff3de;
  border:1px solid #b18a39;
  border-radius:10px;
}
/* Readable control sizes without changing the compact working surface. */
.section-label {
  font-size:12px;
  letter-spacing:1.1px;
}
.eyebrow {
  font-size:12px;
}
.intro-meta {
  font-size:13px;
}
.live-badge {
  font-size:12px;
}
.area-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.area-chip {
  font-size:13px;
  padding:8px 10px;
  min-height:36px;
}
.area-value {
  font-size:13px;
}
.area-dot {
  width:7px;
  height:7px;
}
.wheel-key {
  font-size:12px;
  margin-bottom:20px;
}
.wheel-key>span:last-child {
  font-size:12px;
}
.wheel-footnote {
  font-size:12px;
  line-height:1.6;
}
.assessment-card {
  min-height:700px;
}
.question-description {
  font-size:16px;
  min-height:87px;
}
.score-fieldset legend,.focus-fieldset legend {
  font-size:14px;
}
.scale-labels {
  font-size:12px;
}
.answer-message {
  font-size:13px;
  min-height:62px;
  margin-bottom:26px;
}
.primary-button {
  font-size:14px;
}
.assessment-footer {
  font-size:12px;
}
.gentle-note h3 {
  font-size:14px;
}
.gentle-note p {
  font-size:13px;
}
.site-footer {
  font-size:12px;
}
.insight-box .section-label,.action-heading .section-label {
  font-size:12px;
}
.insight-box>p {
  font-size:13px;
}
.focus-option>span {
  font-size:14px;
  min-height:43px;
}
.focus-hint {
  font-size:14px;
}
.review-button {
  font-size:14px;
}
.action-help {
  font-size:14px;
}
.action-saved {
  font-size:12px;
}
.result-description {
  font-size:16px;
}
.step-count {
  font-size:14px;
}
.wheel-label {
  font-size:14px;
}
.ring-number {
  font-size:12px;
}
.area-name {
  color:#617369;
  font-size:16px;
}
.wheel-wrap svg {
  max-height:372px;
}
@media(min-width:1400px) {
  .main-shell {
    padding-top:51px;
  }
  .intro {
    margin-bottom:40px;
  }
  .workspace {
    gap:28px;
  }
  .wheel-wrap svg {
    max-height:390px;
  }
  .assessment-card {
    min-height:718px;
  }
}
@media(max-width:1100px) {
  .site-header {
    padding-inline:34px;
  }
  .main-shell {
    padding-left:34px;
    padding-right:34px;
  }
  .workspace {
    gap:20px;
  }
  .wheel-card {
    padding:24px 22px 0;
  }
  .wheel-footnote {
    margin-left:-22px;
    margin-right:-22px;
  }
  .assessment-card {
    padding:27px 24px 24px;
  }
  .card-heading {
    align-items:flex-start;
  }
  .card-heading h2 {
    font-size:16px;
  }
  .card-heading .section-label {
    font-size:12px;
  }
  .live-badge {
    font-size:12px;
  }
  .score-grid {
    gap:3px;
  }
  .score-option span {
    font-size:13px;
  }
  .primary-button {
    font-size:13px;
  }
  .section-label {
    font-size:12px;
    letter-spacing:1px;
  }
  .wheel-key {
    gap:10px;
    font-size:12px;
  }
  .area-intro {
    margin-top:31px;
  }
  .assessment-card h2 {
    font-size:25px;
  }
}
@media(max-width:850px) {
  .site-header {
    min-height:74px;
    padding-inline:25px;
  }
  .brand {
    font-size:22px;
  }
  .main-shell {
    padding:35px 25px 0;
    max-width:660px;
  }
  .intro {
    margin-bottom:29px;
  }
  h1 {
    font-size:39px;
    letter-spacing:-1.8px;
  }
  .workspace {
    grid-template-columns:1fr;
    gap:20px;
  }
  .wheel-card {
    padding:23px 25px 0;
  }
  .wheel-wrap svg {
    max-height:355px;
  }
  .wheel-wrap {
    margin-top:5px;
  }
  .card-heading .section-label {
    font-size:12px;
  }
  .card-heading h2 {
    font-size:18px;
  }
  .live-badge {
    font-size:12px;
  }
  .area-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .area-chip {
    font-size:12px;
    padding:8px 7px;
  }
  .area-value {
    font-size:12px;
  }
  .wheel-footnote {
    margin-left:-25px;
    margin-right:-25px;
    padding:13px 20px;
  }
  .assessment-card {
    min-height:0;
    padding:26px 28px;
  }
  .area-intro {
    margin-top:27px;
  }
  .assessment-card h2 {
    max-width:none;
    font-size:28px;
  }
  .question-description {
    min-height:0;
    margin-top:12px;
  }
  .score-fieldset {
    margin-top:26px;
  }
  .score-grid {
    gap:6px;
  }
  .score-option span {
    height:43px;
    font-size:16px;
  }
  .answer-message {
    margin:20px 0;
  }
  .section-label {
    font-size:12px;
  }
  .primary-button {
    font-size:14px;
  }
  .assessment-footer {
    margin-top:16px;
  }
  .gentle-note {
    align-items:flex-start;
    margin:28px 6px;
  }
  .gentle-note p {
    font-size:13px;
  }
  .site-footer {
    font-size:12px;
  }
  .wheel-key {
    font-size:12px;
  }
}
@media(max-width:480px) {
  .brand {
    font-size:21px;
  }
  .text-button {
    font-size:13px;
  }
  .text-button svg {
    width:15px;
    height:15px;
  }
  .main-shell {
    padding:29px 17px 0;
  }
  .intro {
    margin-bottom:26px;
  }
  .eyebrow {
    font-size:12px;
  }
  h1 {
    font-size:34px;
    letter-spacing:-1.6px;
    margin:12px 0;
  }
  .intro>p {
    font-size:15px;
    line-height:1.7;
    max-width:340px;
    margin:auto;
  }
  .desktop-break {
    display:none;
  }
  .intro-meta {
    font-size:12px;
    gap:10px;
    margin-top:14px;
  }
  .wheel-card {
    padding:21px 19px 0;
    border-radius:15px;
  }
  .card-heading h2 {
    font-size:16px;
  }
  .card-heading .section-label {
    font-size:12px;
    letter-spacing:1px;
  }
  .live-badge {
    font-size:12px;
    padding:5px;
  }
  .wheel-wrap {
    margin:7px -12px 0;
  }
  .wheel-label {
    font-size:15px;
  }
  .wheel-key {
    font-size:12px;
    gap:16px;
    margin-bottom:17px;
  }
  .wheel-key>span:last-child {
    font-size:12px;
  }
  .area-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding-bottom:19px;
  }
  .area-chip {
    font-size:13px;
    min-height:37px;
    padding:9px 10px;
  }
  .area-value {
    font-size:13px;
  }
  .wheel-footnote {
    margin-left:-19px;
    margin-right:-19px;
    font-size:12px;
    padding:13px 12px;
    border-radius:0 0 15px 15px;
  }
  .assessment-card {
    padding:25px 21px;
    border-radius:15px;
  }
  .section-label {
    font-size:12px;
    letter-spacing:1.2px;
  }
  .area-intro {
    margin-top:27px;
  }
  .area-name {
    font-size:15px;
  }
  .assessment-card h2 {
    font-size:26px;
    letter-spacing:-.8px;
  }
  .question-description {
    font-size:16px;
    line-height:1.7;
  }
  .score-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
  }
  .score-option span {
    height:44px;
    font-size:16px;
  }
  .score-fieldset legend {
    margin-bottom:15px;
    font-size:14px;
  }
  .scale-labels {
    font-size:12px;
  }
  .answer-message {
    font-size:13px;
  }
  .primary-button {
    font-size:13px;
    gap:8px;
    padding:13px 10px;
  }
  .back-button {
    width:42px;
  }
  .assessment-footer {
    font-size:12px;
  }
  .gentle-note {
    gap:12px;
    margin-top:24px;
    margin-bottom:28px;
  }
  .gentle-note h3 {
    font-size:13px;
  }
  .gentle-note p {
    font-size:12px;
  }
  .site-footer {
    flex-direction:column;
    align-items:center;
    gap:8px;
    text-align:center;
    font-size:12px;
    padding:20px 0;
  }
  .assessment-card .result-title {
    font-size:27px;
  }
  .focus-option>span {
    font-size:13px;
  }
  .insight-box .section-label,.action-heading .section-label {
    font-size:12px;
  }
  .dialog-actions {
    flex-direction:column;
  }
  dialog {
    padding:25px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
/* Contrasto dei testi secondari e priorità alla compilazione su telefono. */
.intro>p,.intro-meta,.text-button,.question-description,.result-description,.area-value,.wheel-key,.wheel-footnote,.scale-labels,.assessment-footer,.gentle-note h3,.gentle-note p,.site-footer,.focus-hint,.action-help,.focus-option>span {
  color:#6b5d51;
}
.section-label,.assessment-top .section-label,.step-count,.live-badge {
  color:#6b5d51;
}
.answer-message {
  color:#6b5d51;
}
.answer-message.has-answer {
  color:#6b5d51;
}
.score-option span {
  color:#6b5d51;
}
.score-option input:checked+span {
  color:#fff;
}
.insight-box>p,.action-saved,.insight-box .section-label,.action-heading .section-label {
  color:#6b5d51;
}
.insight-value small {
  color:#6b5d51;
}
textarea::placeholder {
  color:#6b5d51;
}
.area-name {
  color:#6b5d51;
}
@media(max-width:850px) {
  .assessment-card {
    order:-1;
  }
}

/* Il piano mantiene la stessa superficie, con una domanda alla volta. */
.key-target {
  display: inline-block;
  width: 17px;
  border-top: 2px dashed var(--accent-dark);
  margin-right: 5px;
  vertical-align: middle;
}
.planner {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 24px;
}
.planner-intro, .plan-help, .plan-save-status {
  font-size: 14px;
  line-height: 1.7;
  color: #6b5d51;
}
.planner-intro {
  margin-bottom: 17px;
}
.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
}
.plan-steps button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 44px;
  padding: 8px 5px;
  border: 1px solid #f1e2cb;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  color: #6b5d51;
}
.plan-steps button span {
  font-size: 12px;
  color: #6b5d51;
}
.plan-steps button[aria-current="step"] {
  background: #faf2e6;
  border-color: #e4d6c5;
  color: #7f3c2c;
  font-weight: 600;
}
.plan-steps button:hover {
  background: #fffcf7;
}
.planner h3 {
  font-family: Cormorant, Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.planner h3:focus {
  outline: none;
}
.plan-field {
  margin: 0 0 22px;
  min-width: 0;
}
.plan-field label, .rating-target label {
  display: block;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.6;
  color: #6b5d51;
}
.optional-label {
  font-weight: 400;
  font-size: 12px;
  color: #6b5d51;
}
.plan-field .plan-help {
  margin: 6px 0 11px;
}
.plan-field textarea {
  font-size: 16px;
  min-height: 90px;
}
.rating-target {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 24px 0 12px;
}
.rating-target select {
  flex-shrink: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #e4d6c5;
  border-radius: 8px;
  background: #fffcf7;
  color: #7f3c2c;
  padding: 10px;
  font: inherit;
  font-size: 16px;
}
.rating-target select:focus-visible {
  outline: 3px solid #c7a98f;
  outline-offset: 3px;
}
.target-feedback:not(:empty) {
  background: #fffcf7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  color: #6b5d51;
}
.plan-navigation {
  display: flex;
  gap: 10px;
  margin-top: 23px;
}
.plan-save-status {
  margin-top: 14px;
  font-size: 12px;
}
.plan-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plan-dates input {
  display: block;
  margin-top: 8px;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid #e4d6c5;
  border-radius: 8px;
  background: #fffcf7;
  color: #6b5d51;
  font-size: 14px;
}
.plan-summary {
  padding: 20px;
  background: #fffcf7;
  border: 1px solid #f1e2cb;
  border-radius: 12px;
}
.plan-summary h3 {
  margin-top: 10px;
}
.plan-score-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #6b5d51;
  font-size: 13px;
}
.plan-score-pair strong {
  color: #7f3c2c;
  font-weight: 600;
}
.plan-summary dl {
  margin: 22px 0;
}
.plan-summary dl > div {
  margin-bottom: 19px;
}
.plan-summary dt {
  font-size: 12px;
  color: #6b5d51;
  margin-bottom: 4px;
}
.plan-summary dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-prompt {
  border-top: 1px solid #f1e2cb;
  padding-top: 17px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b5d51;
}
.review-prompt strong {
  font-weight: 600;
}
.review-prompt p {
  margin-top: 6px;
}
.plan-summary > .plan-help {
  margin-top: 14px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .rating-target {
    flex-wrap: wrap;
  }
  .plan-dates {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .plan-dates input {
    font-size: 16px;
  }
  .plan-summary {
    padding: 16px;
  }
}
/* La ruota accompagna la compilazione anche mentre si scorre. */
.wheel-preview { display: none; }
.wheel-wrap .wheel-label { font-size: 20px; }
@media (min-width: 851px) {
  .wheel-card {
    position: sticky;
    top: 16px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .wheel-wrap svg { max-height: clamp(220px, 40dvh, 390px); }
}
@media (max-width: 850px) {
  html { scroll-padding-top: calc(8rem + env(safe-area-inset-top)); }
  .wheel-card {
    order: -2;
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 10;
    padding: 0;
    border-color: #e4d6c5;
    box-shadow: 0 5px 24px #493a3212;
  }
  .wheel-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 84px;
    padding: 10px 12px;
    list-style: none;
    cursor: pointer;
    border-radius: inherit;
    -webkit-tap-highlight-color: transparent;
    background: #fffcf7;
  }
  .wheel-preview::-webkit-details-marker { display: none; }
  .wheel-card[open] .wheel-preview { border-radius: 18px 18px 0 0; }
  .wheel-preview:focus-visible { outline: 3px solid #8f4834; outline-offset: 3px; }
  .wheel-miniature {
    flex: 0 0 55px;
    aspect-ratio: 1;
    padding: 3px;
    border-radius: 50%;
    background: #faf2e6;
  }
  .wheel-miniature svg { display: block; width: 100%; height: auto; }
  .wheel-miniature .wheel-sector { fill-opacity: .8; stroke-opacity: 1; }
  .wheel-miniature .wheel-label, .wheel-miniature .ring-number { display: none; }
  .wheel-preview-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
  .wheel-preview-label { font-size: 12px; font-weight: 600; line-height: 1.4; color: #6b5d51; }
  .wheel-preview-current { font-size: 15px; font-weight: 650; line-height: 1.4; color: #493a32; }
  .wheel-preview-target { font-size: 12px; line-height: 1.4; color: #6b5d51; }
  .wheel-preview-action {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 6px 9px;
    border: 1px solid #c7a98f;
    border-radius: 999px;
    background: #f6e8d6;
    color: var(--accent-dark);
    font-size: .8125rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .wheel-preview:hover .wheel-preview-action, .wheel-card[open] .wheel-preview-action { background: #f1e2cb; }
  .wheel-preview-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .wheel-card[open] .wheel-preview-action svg { transform: rotate(180deg); }
  .wheel-detail { max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 19px; border-top: 1px solid #f1e2cb; }
  .wheel-detail .card-heading { display: none; }
  .wheel-detail .wheel-wrap { margin: 7px -12px 0; }
  .wheel-detail .wheel-wrap svg { max-height: 290px; }
  .wheel-detail .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wheel-detail .wheel-footnote { margin-left: -19px; margin-right: -19px; }
  .assessment-card { scroll-margin-top: 8px; }
}

/* Account, rilevazioni e installazione. */
[hidden] { display: none !important; }
#account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.cloud-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 22px 0; padding: 19px 24px; border: 1px solid #f1e2cb; border-radius: 18px; background: #faf2e6; }
.cloud-toolbar p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.cloud-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cloud-actions button { min-height: 44px; }
.cloud-error { color: #943542; margin-top: 10px !important; }
#import-guest { margin-top: 5px; }
.history-card { background: #fff; border: 1px solid #f1e2cb; padding: 32px; border-radius: 24px; }
.history-empty { padding: 38px 16px; max-width: 570px; margin: auto; text-align: center; }
.history-empty h2, .history-heading h2 { font-family: Cormorant, Georgia, serif; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.04em; margin: 12px 0; }
.history-empty p { line-height: 1.75; color: #6b5d51; margin: 0 0 24px; }
.history-back { min-height: 44px; margin-bottom: 8px; color: var(--accent-dark); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.history-heading p { color: #6b5d51; font-size: .9375rem; }
.trend-filter { display: grid; gap: 7px; min-width: 230px; }
.trend-filter label { font-size: .875rem; font-weight: 600; }
.trend-filter select { border: 1px solid #e4d6c5; background: #fff; padding: 11px; min-height: 44px; border-radius: 10px; color: #493a32; font: inherit; }
.trend-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 25px 0 12px; gap: 18px; }
.trend-stats > div { border: 1px solid #f1e2cb; background: #fffcf7; padding: 20px 24px; border-radius: 16px; }
.trend-stats span { font-size: .875rem; color: #6b5d51; }
.trend-stats strong { display: block; font-size: 2.5rem; letter-spacing: -.04em; color: #7f3c2c; margin: 6px 0; font-family: Cormorant, Georgia, serif; }
.trend-stats small { font-size: 1rem; color: #6b5d51; letter-spacing: normal; }
.trend-stats p { margin: 0; font-size: .875rem; color: #6b5d51; line-height: 1.6; }
.trend-chart svg { display: block; width: 100%; height: auto; min-height: 180px; }
.history-note { font-size: .875rem; line-height: 1.6; color: #6b5d51; }
.history-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 25px; border: 1px solid #f1e2cb; border-radius: 14px; }
.history-table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.history-table caption { text-align: left; padding: 18px; font-weight: 700; font-size: 1rem; }
.history-table th, .history-table td { padding: 14px 12px; text-align: center; border-top: 1px solid #f1e2cb; }
.history-table thead { background: #fffcf7; }
.history-table th:first-child { text-align: left; min-width: 145px; }
.history-table tbody th { font-weight: 500; }
#more-history { margin-top: 18px; }
.dialog-close { display: block; margin: -5px 0 16px auto; }
#account-dialog, #install-dialog { width: min(480px, calc(100% - 32px)); }
#account-dialog p, #install-dialog p, #install-dialog li { line-height: 1.7; }
#account-dialog h2, #install-dialog h2 { font-family: Cormorant, Georgia, serif; font-size: 1.75rem; letter-spacing: -.035em; }
#google-button { display: flex; justify-content: center; margin: 25px 0; min-height: 0; }
.account-privacy { font-size: .875rem; color: #6b5d51; }
.update-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 20; background: #fff; border: 1px solid #e4d6c5; box-shadow: 0 8px 40px #493a3225; border-radius: 14px; padding: 14px 22px; display: flex; gap: 18px; align-items: center; max-width: calc(100% - 32px); }
button:disabled { cursor: default; }
@media (max-width: 850px) {
  .cloud-toolbar { flex-direction: column; align-items: stretch; padding: 18px; }
  .cloud-actions { flex-wrap: wrap; }
  .cloud-actions button { flex: 1; }
  .history-card { padding: 22px 18px; }
  .history-heading { flex-direction: column; align-items: stretch; }
  .trend-stats { gap: 10px; }
  .trend-stats > div { padding: 16px; }
}
@media (max-width: 430px) {
  .trend-stats { grid-template-columns: 1fr; }
  .cloud-actions { flex-direction: column; }
  .history-card { padding: 20px 14px; }
  .update-banner { font-size: .875rem; padding: 10px 14px; }
}

/* Identità delle microapp I.AM */
.brand { font-family: Inter, system-ui, sans-serif; font-weight: 600; }
.brand-emblem { position: relative; flex: 0 0 48px; height: 48px; }
.brand-emblem img { position: absolute; inset: 0; width: 100%; height: auto; }
.brand-copy strong { display: flex; align-items: center; gap: 7px; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.brand-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .025em; }
.brand-dot { flex: 0 0 5px; height: 5px; border-radius: 50%; background: #a16d27; }
.intro {
  text-align: left;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 58px);
  background: linear-gradient(115deg, #faf2e6 12%, #f1e2cb 62%, #e4c8a6);
}
.intro h1 { font-size: clamp(2.8rem, 7vw, 5.25rem); font-weight: 650; letter-spacing: -.046em; line-height: .95; margin: 0 0 14px; }
.intro h1 span { color: var(--accent-dark); font-weight: inherit; }
.intro > p { max-width: 46ch; }
.intro-meta { justify-content: flex-start; }
.assessment-card h2, .card-heading h2, .history-heading h2 { font-weight: 700; }
.wheel-card, .assessment-card, .history-card { background: #fffcf7; border-color: var(--line); }
.result-save { margin: 16px 0 4px; }
.site-footer a { color: var(--accent-dark); text-underline-offset: .22em; }

/* Ogni salvataggio occupa una scheda con la ruota della sua data. */
.history-heading h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 6px; }
.history-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; color: var(--muted); font-size: .875rem; }
.saved-wheels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.saved-wheel { display: flex; flex-direction: column; min-width: 0; align-items: stretch; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fffefa; }
.saved-wheel h3 { font-family: Cormorant, Georgia, serif; font-size: 1.55rem; font-weight: 700; line-height: 1.15; }
.saved-wheel-picture { width: 100%; max-width: 360px; margin: 0 auto; }
.saved-wheel-picture svg { width: 100%; height: auto; }
.saved-wheel-picture .wheel-label { font-size: 21px; }
.saved-wheel-values { margin-bottom: 12px; }
.saved-wheel-values summary, .history-trend summary { cursor: pointer; min-height: 44px; padding: 11px 0; color: var(--accent-dark); font-weight: 650; }
.saved-wheel-values dl { margin: 0 0 12px; font-size: .875rem; }
.saved-wheel-values dl div { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 7px 0; }
.saved-wheel-values dt { display: flex; align-items: center; gap: 7px; }
.saved-wheel-values dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.saved-wheel-values dd span { color: var(--muted); }
.saved-wheel > button { margin-top: auto; }
.history-trend { margin-top: 24px; padding: 8px 0; border-top: 1px solid var(--line); }
.history-trend .trend-filter { max-width: 22rem; }
@media (max-width: 560px) {
  .site-header {
    display: grid;
    justify-content: stretch;
    gap: 8px;
    min-height: 0;
    padding: 11px 17px 12px;
  }
  .site-nav {
    justify-content: flex-end;
  }
  .nav-button {
    padding-inline: 12px;
  }
  .main-shell {
    padding-top: 21px;
  }
  .intro {
    margin-bottom: 18px;
  }
  .brand-emblem { flex-basis: 38px; height: 38px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 9px; }
  .intro { padding: 22px 18px; }
  .intro h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .saved-wheel { padding: 13px; }
}
