/* Screen design. The existing stylesheet continues to own the print layout. */
:root {
  --paper:#f2f7f6;
  --ink:#123e53;
  --muted:#607781;
  --line:#dce8e7;
  --mint:#77ddbf;
  --panel-shadow:0 4px 12px #123e5308, 0 18px 46px #123e5313;
}

body {
  background:radial-gradient(ellipse at 85% 0%,#dff4ec70,transparent 45%),var(--paper);
  font-family:'Segoe UI Variable','Segoe UI',Arial,sans-serif;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #267e7c;
  outline-offset:4px;
}

.site-header {
  max-width:1400px;
  padding:28px 32px 20px;
  flex-direction:column;
  gap:18px;
  border:0;
}
.brand { font-size:30px; gap:8px 17px; font-weight:700; }
.brand-symbol { color:#268879; font-size:41px; margin-right:10px; }
.brand-dot { color:#268879; }
.brand-tagline { color:#496c76; font-size:19px; font-weight:450; letter-spacing:-.3px; }

.page-nav {
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid #dce8e5;
  border-radius:30px;
  background:#ffffffc9;
}
.page-nav a {
  padding:7px 20px;
  border-radius:24px;
  color:#456671;
  font-size:13px;
  font-weight:550;
  text-decoration:none;
}
.page-nav a:hover,.page-nav a:focus-visible { background:#e4f3ed; color:#123e53; }

main { max-width:1400px; padding:0 32px; }
main > .wheel-card:first-child { margin-top:8px; }
.wheel-card,.reflection {
  border:1px solid #dce8e7;
  border-radius:28px;
  box-shadow:var(--panel-shadow);
}
.wheel-card {
  grid-template-columns:minmax(0,1.75fr) minmax(340px,1fr);
  scroll-margin-top:20px;
}
.wheel-card:focus { outline:none; }
.wheel-section {
  padding:34px 18px 18px;
  background:radial-gradient(circle at 50% 51%,#f3faf6,transparent 64%),#fff;
}
.section-heading { padding:0 10px; }
.section-heading h2 { font-size:31px; font-weight:650; letter-spacing:-.8px; }
.drag-hint { font-size:12px; color:#6b8189; margin-top:7px; }
.drag-hint span { color:#338c80; font-size:20px; vertical-align:-1px; }
.wheel-container { max-width:840px; margin:auto; }
.wheel-label { fill:#355965; font-size:15px; font-weight:600; }
.wheel-number { fill:#789196; font-size:10px; }
.wheel-label-link { cursor:pointer; outline:none; }
.label-hit { fill:transparent; stroke:transparent; stroke-width:1.2; }
.wheel-label-link:hover .label-hit,
.wheel-label-link.is-active .label-hit { fill:#eaf5ef; }
.wheel-label-link:focus-visible .label-hit { fill:#eaf5ef; stroke:#267e7c; }
.wheel-label-link:hover .wheel-label,
.wheel-label-link.is-active .wheel-label { fill:#123e53; }
.wheel-sector { transition:fill-opacity .16s,opacity .16s; }
.wheel-sector.is-active { fill-opacity:.27; }
.has-active-dimension .wheel-sector:not(.is-active) { opacity:.6; }
.wheel-axis.is-active { stroke-width:3.3; stroke-opacity:1; }
.wheel-handle .handle-dot {
  stroke-width:3.5;
  filter:drop-shadow(0 2px 4px #123e5324);
  transition:transform .14s,stroke-width .14s;
  transform-box:fill-box;
  transform-origin:center;
}
.wheel-handle text { font-size:12px; font-weight:700; }
.wheel-handle:hover .handle-dot,
.wheel-handle.is-active .handle-dot { transform:scale(1.13); stroke-width:4.5; }
.wheel-handle:focus-visible .handle-focus { stroke:#267e7c; stroke-width:2; stroke-dasharray:3 3; }

.values-section { background:#edf6f3; border-left:1px solid #dce9e5; padding:30px 25px 26px; }
.values-heading h2 { font-size:22px; font-weight:650; line-height:1.3; letter-spacing:-.5px; margin-bottom:9px; }
.values-heading > p:last-child { color:#607c80; font-size:12px; margin-bottom:19px; }
.dimension {
  padding:5px 9px 2px;
  margin:0 0 5px;
  border:1px solid transparent;
  border-radius:11px;
  transition:background .14s,border-color .14s;
}
.dimension.is-active,.dimension:focus-within { background:#fff; border-color:#c3e1d7; }
.dimension-header { margin-bottom:2px; }
.dimension label { color:#355764; font-size:12.5px; line-height:1.5; gap:8px; }
.color-dot { width:8px; height:8px; }
.dimension output {
  padding:1px 6px;
  border-radius:7px;
  background:#ffffffb3;
  color:var(--ink);
  font-size:12px;
  line-height:1.35;
  white-space:nowrap;
}
.dimension output span { color:#7e9496; font-size:10px; }
.dimension input { height:20px; }
.dimension input::-webkit-slider-runnable-track { height:4px; background:linear-gradient(to right,var(--color) 0 var(--progress),#d9e6e0 var(--progress) 100%); }
.dimension input::-moz-range-track { height:4px; background:#d9e6e0; }
.dimension input::-moz-range-progress { height:4px; }
.dimension input::-webkit-slider-thumb { width:16px; height:16px; margin-top:-6px; border-width:2px; }
.dimension input::-moz-range-thumb { width:12px; height:12px; border-width:2px; }
.save-status { font-size:11px; line-height:1.65; border-color:#cfe1da; color:#5c797b; padding-top:14px; margin-top:13px; }
.save-status.error { color:#984c3e; }
.wheel-actions { gap:8px; margin-top:15px; }
.wheel-actions button { padding:11px 12px; border-color:#c4d7d3; border-radius:9px; background:#fff; color:#315c66; font-size:12px; }
.wheel-actions button:hover { background:#e2eee9; }
.wheel-actions .print-button { background:#123e53; border-color:#123e53; color:#fff; }
.wheel-actions .print-button:hover { background:#22586a; border-color:#22586a; }
#reset { color:#8d5048; border-color:#dacfc8; }
#reset:hover { background:#f8eeeb; }
.reflection-link { background:#77ddbf3d; border-color:#a1d7c5; border-radius:9px; color:#175a58; padding:12px 16px; margin-top:12px; }
.reflection-link:hover { background:#77ddbf66; border-color:#77bfae; }

.reflection { margin:32px 0 36px; padding:32px; }
.reflection h2 { font-size:27px; font-weight:650; letter-spacing:-.6px; margin-bottom:10px; }
.reflection-intro p { max-width:800px; color:#65808a; font-size:14px; line-height:1.8; }
.reflection-grid { gap:18px; margin-top:27px; }
.reflection-card {
  border:1px solid #dfe9e6;
  border-left:3px solid var(--color);
  border-radius:16px;
  padding:22px;
  background:#f5f9f7;
  scroll-margin-top:24px;
  transition:border-color .14s,box-shadow .14s;
}
.reflection-card:focus-within { border-color:#afd6c9; border-left-color:var(--color); box-shadow:0 0 0 3px #77ddbf26; }
.reflection-card h3 { font-size:15px; font-weight:650; gap:9px; }
.reflection-score { background:#fff; border:1px solid #e0ebe6; border-radius:8px; color:#45646c; padding:3px 8px; font-size:12px; }
.reflection-question { font-size:14px; line-height:1.7; margin:15px 0; color:#46636e; }
.reflection-card textarea,.reflection-conclusion textarea { min-height:126px; font-size:15px; line-height:1.7; padding:14px 15px; border:1px solid #d4e1dd; border-radius:10px; background:#fff; color:var(--ink); }
.reflection-card textarea::placeholder,.reflection-conclusion textarea::placeholder { color:#899d9b; }
.reflection-card textarea:focus-visible,.reflection-conclusion textarea:focus-visible { outline:3px solid #77ddbf57; outline-offset:0; border-color:#569d8d; }
.reflection-conclusion {
  margin-top:28px;
  padding:26px;
  border:1px solid #c5e3d8;
  border-radius:17px;
  background:linear-gradient(120deg,#e7f5ee,#f8fcfa);
}
.reflection-conclusion label { max-width:900px; font-size:19px; line-height:1.5; color:#234e5c; font-weight:600; margin-bottom:17px; }
.reflection-conclusion textarea { min-height:140px; }
.reflection > .wheel-actions { justify-content:center; margin-top:24px; }
.reflection > .wheel-actions .print-button { min-width:240px; padding:13px 24px; font-size:14px; }
.previous-reflection { background:#f7faf9; border-color:#dce8e4; border-radius:12px; }
.previous-reflection summary { color:var(--ink); }

.help-section { padding:32px 28px; border-radius:24px; margin-bottom:26px; box-shadow:0 12px 28px #123e531a; }
.help-section h2 { max-width:900px; margin:0 auto 12px; font-size:25px; line-height:1.4; letter-spacing:-.4px; }
.help-section p { max-width:700px; font-size:14px; line-height:1.8; color:#cddfe5; margin-bottom:22px; }
.help-section a { padding:13px 23px; font-size:14px; border-radius:10px; }
footer { padding:4px 32px 34px; color:#000; font-size:13px; }
.privacy-row { padding-top:10px; }
.privacy-policy summary { color:#000; }
.privacy-policy summary:focus-visible { outline-color:#267e7c; }
.privacy-policy p { margin-top:18px; }
dialog { background:#fff; border:1px solid #cfe0db; border-radius:20px; box-shadow:0 24px 90px #123e532e; padding:28px; }
dialog::backdrop { background:#123e536e; backdrop-filter:blur(3px); }
dialog h2 { font-size:25px; font-weight:650; letter-spacing:-.5px; }
.dialog-actions button { border-color:#c7d7d2; border-radius:9px; color:var(--ink); padding:10px 13px; }
.dialog-actions .delete-button { background:#914f46; border-color:#914f46; color:#fff; }

@media(max-width:1100px) {
  main { padding:0 24px; }
  .wheel-card { grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr); }
  .wheel-section { padding:28px 10px 16px; }
  .values-section { padding:27px 18px 24px; }
  .section-heading h2 { font-size:28px; }
  .reflection { padding:27px; }
}

@media(max-width:980px) {
  .wheel-card { grid-template-columns:1fr; }
  .wheel-section { width:100%; padding:30px 16px 12px; }
  .wheel-container { max-width:760px; margin:8px auto 0; }
  .values-section { border-left:0; border-top:1px solid #dce9e5; padding:26px; }
  #sliders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 18px; }
  .values-heading h2 { max-width:none; }
  .dimension { margin-bottom:3px; }
  .reflection { padding:26px; }
  .reflection-card { padding:18px; }
}

@media(max-width:620px) {
  .site-header { padding:24px 18px 17px; gap:16px; }
  .brand { font-size:28px; gap:8px 12px; }
  .brand-symbol { font-size:37px; }
  .brand-tagline { font-size:17px; }
  .page-nav a { padding:7px 16px; font-size:12px; }
  main { padding:0 14px; }
  .wheel-card,.reflection { border-radius:20px; }
  main > .wheel-card:first-child { margin-top:5px; }
  .wheel-section { padding:26px 5px 8px; }
  .section-heading h2 { font-size:26px; }
  .drag-hint { font-size:11px; padding:0 8px; }
  .wheel-label { font-size:20px; }
  .wheel-handle .handle-focus { r:46px; }
  .wheel-handle .handle-dot { r:18px; }
  .wheel-handle text { font-size:16px; }
  .values-section { padding:24px 18px; }
  .values-heading h2 { font-size:23px; }
  #sliders { grid-template-columns:1fr; gap:0; }
  .dimension { margin-bottom:8px; padding:7px 8px 6px; }
  .dimension label { font-size:13px; }
  .dimension input { height:26px; }
  .dimension input::-webkit-slider-thumb { width:20px; height:20px; margin-top:-8px; }
  .dimension input::-moz-range-thumb { width:16px; height:16px; }
  .reflection { padding:24px 16px; margin-top:24px; margin-bottom:26px; }
  .reflection h2 { font-size:25px; line-height:1.3; }
  .reflection-intro p { font-size:13px; }
  .reflection-grid { grid-template-columns:1fr; gap:14px; margin-top:23px; }
  .reflection-card { padding:18px 15px; border-radius:13px; }
  .reflection-card h3 { font-size:14px; }
  .reflection-question { font-size:14px; }
  .reflection-card textarea,.reflection-conclusion textarea { font-size:16px; min-height:126px; }
  .reflection-conclusion { padding:20px 16px; margin-top:22px; }
  .reflection-conclusion label { font-size:17px; }
  .reflection > .wheel-actions .print-button { width:100%; }
  .help-section { padding:27px 22px; border-radius:20px; }
  .help-section h2 { font-size:23px; }
  .help-section p { font-size:13px; }
  .help-section a { font-size:13px; }
  footer { padding:2px 22px 28px; font-size:13px; }
}

@media(prefers-reduced-motion:reduce) {
  .wheel-sector,.wheel-handle .handle-dot,.dimension,.reflection-card { transition:none; }
}
