@charset "UTF-8";
:root {
  --paper:#f7f7fa;
  --ink:#292b40;
  --muted:#737487;
  --line:#e5e5ee;
  --heading:'Segoe UI',Arial,sans-serif;
}

* {
  box-sizing:border-box;
}

[hidden] { display:none !important; }

.dimension-controls { display:flex; align-items:center; gap:6px; flex-shrink:0; }
@media screen {
  .dimension:has(.theme-toggle) { position:relative; padding-right:60px; }
  .dimension .theme-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); }
}
.theme-toggle { min-width:42px; min-height:32px; padding:3px 6px; border:1px solid #bfd5cf; border-radius:7px; background:#fff; color:#315c66; font-size:11px; line-height:1.2; }
.theme-toggle:hover { background:#e2eee9; }
.dimension.is-hidden label,.dimension.is-hidden output { opacity:.6; }
.dimension.is-hidden input { opacity:.3; cursor:default; }
.empty-themes { padding:60px 24px; color:#607781; text-align:center; }

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Segoe UI',Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
}

button,input,textarea {
  font:inherit;
}

a {
  color:inherit;
}

button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible {
  outline:3px solid #8175bc;
  outline-offset:5px;
}

button {
  cursor:pointer;
}

.site-header {
  max-width:1360px;
  margin:auto;
  padding:25px 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
}

.brand-heading {
  margin:0;
  font-size:inherit;
  line-height:1.3;
}

.brand {
  text-decoration:none;
  font-weight:650;
  font-size:25px;
  letter-spacing:-1px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 15px;
}

.brand-name {
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}

.brand-tagline {
  color:#91617a;
  font-size:22px;
  font-weight:450;
  letter-spacing:-.5px;
}

.brand-symbol {
  display:block;
  width:1em;
  height:1em;
  flex-shrink:0;
  font-size:37px;
  color:#7770ad;
  margin-right:10px;
  line-height:1;
}

.brand-dot {
  color:#c76d75;
}

main {
  max-width:1264px;
  margin:auto;
  padding:0 32px;
}

main > .wheel-card:first-child {
  margin-top:24px;
}

.wheel-card,
.reflection {
  background:#ffffff;
  border:1px solid #e4e3ef;
  border-radius:22px;
  box-shadow:0 6px 16px #35305d12, 0 20px 48px #35305d1f;
}

.wheel-card {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);
  overflow:hidden;
}

.wheel-section {
  padding:25px 24px 21px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-width:0;
}

.section-heading {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
}

.section-heading h2 {
  margin:0;
  font-size:23px;
  font-weight:600;
  letter-spacing:-.6px;
}

.wheel-container {
  width:100%;
  margin:4px auto 0;
}

#wheel {
  width:100%;
  height:auto;
  display:block;
  overflow:visible;
}

.wheel-label {
  font-size:13px;
  fill:#54536c;
  font-weight:550;
  pointer-events:none;
}

.wheel-number {
  font-size:10px;
  fill:#918ca3;
  pointer-events:none;
}

.wheel-handle {
  cursor:grab;
  touch-action:none;
  outline:none;
}

.wheel-handle:active {
  cursor:grabbing;
}

.wheel-handle .handle-focus {
  fill:transparent;
  stroke:none;
}

.wheel-handle:focus-visible .handle-focus {
  stroke:#292b40;
  stroke-width:2;
  stroke-dasharray:3 3;
}

.wheel-handle .handle-dot {
  stroke:#ffffff;
  stroke-width:3;
  filter:drop-shadow(0 2px 3px #34304d20);
}

.wheel-handle:hover .handle-dot {
  stroke-width:5;
}

.wheel-handle text {
  fill:#fff;
  font-size:11px;
  font-weight:650;
  pointer-events:none;
}

.drag-hint {
  text-align:center;
  font-size:11px;
  color:#878292;
  margin:6px 0 0;
}

.drag-hint span {
  font-size:18px;
  margin-right:5px;
}

.values-section {
  background:#f7f6fb;
  border-left:1px solid var(--line);
  padding:28px 28px 22px;
}

.values-heading h2 {
  font-family:var(--heading);
  font-size:25px;
  line-height:1.25;
  font-weight:400;
  letter-spacing:-.5px;
  margin:0 0 9px;
}

.values-heading>p:last-child {
  font-size:11px;
  color:var(--muted);
  margin:0 0 19px;
}

.dimension {
  margin-bottom:12px;
}

.dimension-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:2px;
}

.dimension label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  cursor:pointer;
}

.color-dot {
  width:7px;
  height:7px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--color);
}

.dimension output {
  font-size:12px;
  font-weight:650;
  color:var(--color);
  min-width:25px;
  text-align:right;
}

.dimension output span {
  font-size:10px;
  font-weight:400;
  color:#9995a6;
}

.dimension input {
  display:block;
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:18px;
  cursor:pointer;
  background:transparent;
  margin:0;
  touch-action:pan-y;
}

.dimension input::-webkit-slider-runnable-track {
  height:3px;
  border-radius:3px;
  background:linear-gradient(to right,var(--color) 0 var(--progress),#e5e1ef var(--progress) 100%);
}

.dimension input::-moz-range-track {
  height:3px;
  border-radius:3px;
  background:#e5e1ef;
}

.dimension input::-moz-range-progress {
  height:3px;
  background:var(--color);
}

.dimension input::-webkit-slider-thumb {
  appearance:none;
  -webkit-appearance:none;
  width:13px;
  height:13px;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--color);
  margin-top:-5px;
  box-shadow:0 1px 3px #0002;
}

.dimension input::-moz-range-thumb {
  width:10px;
  height:10px;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--color);
}

.save-status {
  font-size:10px;
  color:#77718b;
  border-top:1px solid #e7e3f0;
  padding-top:13px;
  margin:17px 0 0;
}

.save-status::before {
  content:'✓';
  margin-right:6px;
}

.save-status.pending::before {
  content:'○';
}

.save-status.error {
  color:#9a4939;
}

.save-status.error::before {
  content:'!';
}

.wheel-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.wheel-actions button {
  border:1px solid #d9d3e6;
  border-radius:7px;
  padding:10px 12px;
  background:#fff;
  color:#5b5082;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}

.wheel-actions button:hover {
  background:#eeebf5;
}

.wheel-actions .print-button {
  background:#5b5082;
  border-color:#5b5082;
  color:#fff;
}

.wheel-actions .print-button:hover {
  background:#483b6c;
  border-color:#483b6c;
}

.reflection-link {
  display:block;
  margin-top:16px;
  padding:11px 14px;
  border:1px solid #d9d3e6;
  border-radius:7px;
  background:#eeebf5;
  color:#5b5082;
  font-size:13px;
  font-weight:600;
  text-align:center;
  text-decoration:none;
}

.reflection-link:hover {
  background:#e3ddee;
  border-color:#b6aacd;
}

.reflection {
  margin:28px 0 32px;
  padding:28px;
  scroll-margin-top:24px;
}

.reflection:focus {
  outline:none;
}

.reflection h2 {
  font-family:var(--heading);
  font-size:29px;
  line-height:1.2;
  font-weight:400;
  letter-spacing:-.5px;
  margin:0 0 12px;
}

.reflection-intro p {
  max-width:680px;
  color:var(--muted);
  font-size:13px;
  margin:0;
}

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

.reflection-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:20px;
  background:#f7f6fb;
  border:1px solid #e4e3ef;
  border-radius:12px;
}

.reflection-card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.reflection-card h3 {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:14px;
  font-weight:600;
}

.reflection-score {
  flex-shrink:0;
  color:var(--color);
  font-size:12px;
  font-weight:600;
}

.reflection-question {
  display:block;
  font-size:13px;
  line-height:1.6;
  margin:13px 0;
}

.reflection-card textarea,
.reflection-conclusion textarea {
  width:100%;
  resize:vertical;
  min-height:108px;
  margin-top:auto;
  border:1px solid #dfdbe9;
  background:#ffffff;
  border-radius:10px;
  padding:12px 14px;
  color:var(--ink);
  font-size:14px;
  line-height:1.6;
}

.reflection-card textarea::placeholder,
.reflection-conclusion textarea::placeholder {
  color:#a29bad;
}

.reflection-conclusion {
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.reflection-conclusion label {
  max-width:850px;
  margin:0 0 14px;
  font-size:16px;
  font-weight:600;
}

.print-reflection {
  display:none;
}

.print-footer {
  display:none;
}

.previous-reflection {
  margin-top:20px;
  padding:14px 16px;
  border:1px solid #e4e3ef;
  border-radius:10px;
  font-size:13px;
  color:var(--muted);
}

.previous-reflection summary {
  cursor:pointer;
  color:var(--ink);
}

.previous-reflection p {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:12px 0 0;
}

.privacy-row {
  flex-basis:100%;
  padding:18px 0 0;
}

.privacy-row p {
  font-size:inherit;
  color:inherit;
  line-height:1.8;
  margin:0;
}

.privacy-policy summary {
  display:inline-block;
  cursor:pointer;
  list-style:none;
  text-decoration:underline;
  text-underline-offset:4px;
}

.privacy-policy summary::-webkit-details-marker {
  display:none;
}

.privacy-policy summary::after {
  content:' ▾';
  display:inline-block;
  margin-left:6px;
}

.privacy-policy[open] summary::after {
  content:' ▴';
}

.privacy-policy summary:focus-visible {
  outline:3px solid #8175bc;
  outline-offset:5px;
}

.privacy-policy p {
  max-width:1000px;
  margin:14px auto 0;
}

.privacy-detail {
  font-size:10px;
  color:#958b9e;
}

.help-section {
  text-align:center;
  background:#123e53;
  color:#fff;
  border:1px solid #123e53;
  border-radius:16px;
  box-shadow:0 5px 18px #123e5312, 0 12px 30px #123e5320;
  padding:24px;
  margin:0 0 35px;
}

.help-section p {
  max-width:600px;
  font-size:13px;
  color:#d4e2e8;
  margin:0 auto 18px;
}

.help-section h2 {
  font-size:23px;
  font-family:var(--heading);
  font-weight:600;
  line-height:1.3;
  margin:0 0 8px;
}

.help-section a {
  display:inline-flex;
  align-items:center;
  border-radius:7px;
  background:#77ddbf;
  color:#123e53;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  padding:11px 18px;
}

.help-section a:hover {
  background:#95e6d0;
}

.help-section a:focus-visible {
  outline-color:#77ddbf;
}

footer {
  max-width:1264px;
  margin:auto;
  padding:19px 32px 28px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px 24px;
  font-size:13px;
  color:#000;
  text-align:center;
}

footer>span:first-child {
  font-weight:650;
}

.footer-note {
  font-weight:400;
  margin-left:12px;
  color:#9d94a7;
}

dialog {
  max-width:430px;
  width:calc(100% - 36px);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  color:var(--ink);
  background:var(--paper);
}

dialog::backdrop {
  background:#30234470;
}

dialog h2 {
  font-family:var(--heading);
  font-weight:400;
  margin:0;
  font-size:28px;
}

dialog p {
  font-size:14px;
  color:var(--muted);
}

.dialog-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  margin-top:25px;
}

.dialog-actions button {
  font-size:12px;
  padding:9px 12px;
  border:1px solid #e1d9e9;
  border-radius:7px;
  background:white;
  color:var(--ink);
}

.dialog-actions .delete-button {
  background:#5b5082;
  color:white;
  border-color:#5b5082;
}

.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;
}

@media(max-width:900px) {
  main {
    padding:0 20px;
  }
  .site-header {
    padding:20px 25px;
  }
  .wheel-card {
    grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);
  }
  .wheel-section {
    padding:20px 12px;
  }
  .section-heading {
    flex-direction:column;
    align-items:center;
    padding-left:8px;
  }
  .values-section {
    padding:23px 20px;
  }
  .wheel-label {
    font-size:14px;
  }
  .drag-hint {
    padding:0 12px;
  }
}

@media(max-width:700px) {
  .site-header {
    padding:16px 20px;
  }
  .brand {
    font-size:22px;
    column-gap:12px;
  }
  .brand-tagline {
    font-size:18px;
  }
  .brand-symbol {
    font-size:31px;
  }
  main {
    padding:0 14px;
  }
  .wheel-card {
    grid-template-columns:1fr;
    border-radius:16px;
  }
  .wheel-section {
    padding:20px 8px;
  }
  .section-heading {
    flex-direction:column;
    align-items:center;
    padding:0 10px;
  }
  .wheel-label {
    font-size:16px;
  }
  .wheel-container {
    margin:7px auto 0;
    max-width:520px;
  }
  .drag-hint {
    font-size:10px;
  }
  .values-section {
    border-left:0;
    border-top:1px solid var(--line);
    padding:25px 24px 20px;
  }
  .values-heading h2 {
    font-size:27px;
  }
  .dimension {
    margin-bottom:16px;
  }
  .dimension label {
    font-size:13px;
  }
  .dimension input {
    height:25px;
  }
  .dimension input::-webkit-slider-thumb {
    width:19px;
    height:19px;
    margin-top:-8px;
  }
  .dimension input::-moz-range-thumb {
    width:15px;
    height:15px;
  }
  .reflection {
    padding:22px 16px;
    border-radius:16px;
  }
  .reflection-grid {
    grid-template-columns:1fr;
    gap:14px;
  }
  .reflection-card {
    padding:17px;
  }
  .reflection-card textarea,
  .reflection-conclusion textarea {
    font-size:16px;
  }
  .reflection h2 {
    font-size:28px;
  }
  .privacy-row {
    padding:17px 0 0;
  }
  .privacy-detail {
    font-size:9px;
  }
  .help-section {
    padding:24px 16px;
    margin-bottom:23px;
  }
  .help-section h2 {
    font-size:22px;
  }
  footer {
    padding:17px 20px 24px;
    gap:20px;
  }
  .footer-note {
    display:block;
    margin:0;
  }
}

.values-heading h2 {
  font-size:23px;
  font-weight:600;
  letter-spacing:-.6px;
}

.reflection h2 {
  font-size:24px;
  font-weight:600;
}

.brand-symbol {
  color:#8175b2;
}

@page {
  size:A4 portrait;
  margin:12mm 12mm 20mm;
}

@media print {
  .print-footer {
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:-12mm;
    margin:0;
    color:#737487;
    font-size:8pt;
    line-height:1.4;
    text-align:center;
  }
  body {
    background:#fff;
    color:#292b40;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .site-header {
    max-width:none;
    padding:0 0 5mm;
    border:0;
    break-after:avoid;
  }
  main {
    max-width:none;
    padding:0;
  }
  main > .wheel-card:first-child {
    margin-top:0;
  }
  .wheel-card {
    display:block;
    background:#fff;
    border:0;
    border-radius:0;
    box-shadow:none;
    overflow:visible;
    break-inside:avoid;
  }
  .wheel-section {
    padding:0;
  }
  .section-heading {
    padding:0;
  }
  .section-heading h2 {
    font-size:18pt;
  }
  .wheel-container {
    width:100%;
    max-width:170mm;
    margin:2mm auto 0;
  }
  .wheel-label {
    font-size:14px;
  }
  .wheel-number {
    font-size:11px;
  }
  .wheel-handle .handle-dot {
    filter:none;
  }
  .wheel-handle .handle-focus {
    stroke:none;
  }
  .values-section {
    background:#fff;
    border:0;
    border-top:1px solid var(--line);
    padding:5mm 0 0;
  }
  .values-heading h2 {
    font-size:14pt;
    margin:0 0 2mm;
  }
  .values-heading > p:last-child {
    font-size:9pt;
    margin:0 0 4mm;
  }
  #sliders {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3mm 6mm;
  }
  .dimension {
    margin:0;
    break-inside:avoid;
  }
  .dimension-header {
    margin:0;
    align-items:flex-start;
  }
  .dimension label,
  .dimension output {
    font-size:9pt;
  }
  .dimension label {
    gap:2mm;
  }
  .color-dot {
    margin-top:1.6mm;
  }
  .dimension output {
    white-space:nowrap;
  }
  .dimension output span {
    font-size:8pt;
  }
  .reflection {
    display:block;
    margin:0;
    padding:0;
    background:#fff;
    border:0;
    border-radius:0;
    box-shadow:none;
    overflow:visible;
    break-before:page;
  }
  .reflection h2 {
    font-size:16pt;
    margin:0 0 3mm;
  }
  .reflection-intro p {
    max-width:none;
    font-size:10pt;
    margin:0 0 5mm;
  }
  .reflection-grid {
    display:block;
    margin-top:0;
  }
  .reflection-card {
    display:block;
    padding:4mm 0;
    margin:0;
    background:#fff;
    border:0;
    border-bottom:1px solid var(--line);
    border-radius:0;
    break-inside:auto;
  }
  .reflection-card-heading,
  .reflection-question {
    break-after:avoid;
  }
  .reflection-card h3 {
    font-size:11pt;
  }
  .reflection-question {
    font-size:10pt;
    margin:2mm 0;
  }
  .reflection-conclusion {
    margin-top:6mm;
    padding-top:4mm;
    break-inside:auto;
  }
  .reflection-conclusion label {
    max-width:none;
    font-size:11pt;
    margin:0 0 3mm;
  }
  .print-reflection {
    display:block;
    color:#292b40;
    font-size:10pt;
    line-height:1.5;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    orphans:3;
    widows:3;
  }
  .print-reflection:empty::before {
    content:'Ingen tekst skrevet.';
    color:#737487;
  }
  #previous-reflection-print {
    margin-bottom:5mm;
  }
  #previous-reflection-print:empty {
    display:none;
  }
  #previous-reflection-print:not(:empty)::before {
    content:'Din tidligere fælles refleksion';
    display:block;
    font-weight:600;
    margin-bottom:2mm;
  }
  .dimension input,
  .theme-toggle,
  .dimension.is-hidden,
  .page-nav,
  .drag-hint,
  .save-status,
  .wheel-actions,
  .reflection-link,
  .reflection textarea,
  #previous-reflection,
  .privacy-row,
  .help-section,
  footer,
  dialog {
    display:none !important;
  }
}
