:root {
  --wine: #7b3145;
  --wine-dark: #572234;
  --wine-soft: #a95d70;
  --rose: #dca5a8;
  --rose-pale: #f3dedb;
  --cream: #f8f3ef;
  --paper: #fffdfb;
  --ink: #30282a;
  --muted: #75696c;
  --line: #e7dbd6;
  --green: #2f6861;
  --green-pale: #dcebe6;
  --sand: #dec9b2;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(75, 44, 51, 0.12);
  --shadow-soft: 0 12px 34px rgba(75, 44, 51, 0.08);
  --radius: 4px;
  --radius-small: 2px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

img {
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(248, 243, 239, 0.96);
  border-bottom: 1px solid rgba(123, 49, 69, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 50% 50% 46% 46%;
  background: var(--wine);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #51474a;
  font-size: 14px;
  font-weight: 650;
}

.main-nav > a:not(.button):hover,
.main-nav > a:not(.button):focus-visible {
  color: var(--wine);
}

.main-nav > a:not(.button)[aria-current="page"] {
  color: var(--wine);
  box-shadow: inset 0 -3px currentColor;
  font-weight: 800;
}

.nav-toggle {
  min-width: 82px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #d8c6c3;
  border-radius: 3px;
  background: rgba(255, 253, 251, 0.88);
  color: var(--wine-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.nav-toggle-icon {
  width: 19px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-icon i {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 21px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(47, 104, 97, 0.28);
  outline-offset: 3px;
}

.button-primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(123, 49, 69, 0.2);
}

.button-primary:hover {
  background: var(--wine-dark);
}

.button-quiet {
  border-color: #d9cbc7;
  background: rgba(255, 255, 255, 0.55);
  color: var(--wine-dark);
}

.button-quiet:hover {
  border-color: var(--wine-soft);
  background: var(--white);
}

.button-secondary {
  border-color: #b9d2cb;
  background: #edf6f3;
  color: #285b53;
}

.button-secondary:hover {
  border-color: var(--green);
  background: #e3f1ed;
}

.button-danger {
  border-color: #cdaeb4;
  background: #fff8f7;
  color: #8b2f45;
}

.button-danger:hover {
  border-color: #9d3b52;
  background: #f8e8e9;
}

.button-light {
  background: var(--white);
  color: var(--wine-dark);
}

.button-small {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 14px;
}

.button-large {
  min-height: 54px;
  padding: 14px 25px;
}

.button-block {
  width: 100%;
}

.hero {
  overflow: hidden;
  padding: 76px 0 96px;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: center;
  gap: 78px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.kicker {
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
}

.eyebrow > span {
  width: 27px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section h2,
.final-cta h2,
.auth-panel h1,
.dashboard-welcome h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(44px, 5.6vw, 70px);
}

.hero h1 em {
  color: var(--wine);
  font-weight: inherit;
}

.hero-lead {
  max-width: 640px;
  margin: 25px 0 30px;
  color: #665a5d;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.trust-row b {
  color: var(--green);
}

.hero-visual {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(123, 49, 69, 0.12);
  border-radius: 50%;
}

.orbit-one {
  width: 520px;
  height: 520px;
}

.orbit-two {
  width: 410px;
  height: 410px;
  border-color: rgba(47, 104, 97, 0.13);
}

.profile-preview {
  position: absolute;
  background: var(--paper);
  border: 1px solid rgba(123, 49, 69, 0.1);
  box-shadow: var(--shadow);
}

.profile-main {
  z-index: 3;
  width: min(360px, 82%);
  padding: 15px;
  border-radius: 28px;
  transform: rotate(1.8deg);
}

.profile-back {
  z-index: 1;
  right: -25px;
  bottom: 72px;
  width: 276px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 20px;
  transform: rotate(7deg);
}

.profile-back .portrait {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.profile-back strong,
.profile-back small {
  display: block;
}

.profile-back small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.preview-label {
  position: absolute;
  top: -14px;
  left: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portrait {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, serif;
  font-size: 46px;
}

.profile-main > .portrait {
  width: 100%;
  height: clamp(300px, 29vw, 345px);
  border-radius: 20px;
}

.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.portrait::before {
  width: 170px;
  height: 170px;
  top: 28px;
  right: -40px;
}

.portrait::after {
  width: 220px;
  height: 220px;
  bottom: -125px;
  left: -28px;
}

.portrait span {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.portrait-rose {
  background: #b8777e;
}

.portrait-sand {
  background: #9b7562;
}

.portrait-photo::before,
.portrait-photo::after {
  display: none;
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
}

.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 17px 4px 13px;
}

.profile-title strong,
.profile-title small {
  display: block;
}

.profile-title strong {
  font-size: 18px;
}

.profile-title small {
  color: var(--muted);
  font-size: 12px;
}

.match-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 30px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.compatibility-list {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  background: #faf6f3;
  color: #665a5d;
  font-size: 12px;
}

.compatibility-list b {
  color: var(--green);
  margin-right: 6px;
}

.preview-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px 0 2px;
}

.round-action {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 21px;
  font-weight: 500;
}

.round-action-like {
  width: 50px;
  height: 50px;
  position: relative;
  isolation: isolate;
  margin-top: -4px;
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(123, 49, 69, 0.22);
  transform-origin: 50% 70%;
  animation: heart-gentle-wiggle 5.4s ease-in-out infinite;
}

.round-action-like::before,
.round-action-like::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(123, 49, 69, 0.34);
  border-radius: 5px;
  opacity: 0;
  animation: heart-corner-ripple 5.4s ease-out infinite;
}

.round-action-like::before {
  inset: -7px;
}

.round-action-like::after {
  inset: -13px;
  border-color: rgba(123, 49, 69, 0.2);
  animation-delay: 120ms;
}

@keyframes heart-gentle-wiggle {
  0%, 76%, 100% { transform: translateY(0) rotate(0deg); }
  79% { transform: translateY(-1px) rotate(-4deg); }
  82% { transform: translateY(0) rotate(4deg); }
  85% { transform: translateY(-1px) rotate(-3deg); }
  88% { transform: translateY(0) rotate(2deg); }
  91% { transform: translateY(0) rotate(0deg); }
}

@keyframes heart-corner-ripple {
  0%, 76% { opacity: 0; transform: scale(0.86); }
  80% { opacity: 0.42; transform: scale(0.94); }
  91%, 100% { opacity: 0; transform: scale(1.08); }
}

.privacy-note {
  position: absolute;
  z-index: 5;
  left: -8px;
  bottom: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 290px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 104, 97, 0.14);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.privacy-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-pale);
}

.privacy-note strong,
.privacy-note small {
  display: block;
}

.privacy-note strong {
  font-size: 13px;
}

.privacy-note small {
  color: var(--muted);
  font-size: 11px;
}

.principles-strip {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principle-grid > div {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 34px;
  border-right: 1px solid var(--line);
}

.principle-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.principle-grid strong {
  margin-bottom: 4px;
  color: var(--wine-dark);
  font-family: Georgia, serif;
  font-size: 18px;
}

.principle-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section h2,
.final-cta h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4.2vw, 53px);
}

.section-heading p,
.preference-copy > p,
.safety-grid > div > p {
  color: var(--muted);
  font-size: 17px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  min-height: 305px;
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.step-card.featured {
  border-color: rgba(123, 49, 69, 0.28);
  transform: translateY(-12px);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #ccbcb7;
  font-family: Georgia, serif;
  font-size: 25px;
}

.step-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 17px;
  background: var(--rose-pale);
  color: var(--wine);
  font-size: 23px;
}

.step-card.featured .step-icon {
  background: var(--wine);
  color: var(--white);
}

.step-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.preference-section {
  background: #efe5df;
}

.preference-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 90px;
}

.preference-demo {
  position: relative;
}

.preference-demo::before {
  content: "";
  position: absolute;
  inset: -24px 30px 24px -30px;
  border: 1px solid rgba(123, 49, 69, 0.16);
  border-radius: 36px;
}

.demo-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(123, 49, 69, 0.12);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}

.demo-header span {
  font-family: Georgia, serif;
  font-size: 22px;
}

.demo-header small {
  color: var(--muted);
}

.preference-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 25px;
  border-bottom: 1px solid var(--line);
}

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row small {
  color: var(--muted);
  font-size: 12px;
}

.selection-pill {
  padding: 8px 13px;
  border: 1px solid #d7c6c1;
  border-radius: 999px;
  color: var(--wine-dark);
  background: #faf4f1;
  font-size: 12px;
  font-weight: 750;
}

.toggle {
  width: 48px;
  height: 27px;
  position: relative;
  border-radius: 999px;
  background: #d8ceca;
}

.toggle i {
  width: 21px;
  height: 21px;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: var(--white);
}

.demo-result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px;
  padding: 16px;
  border-radius: 16px;
  background: var(--green-pale);
}

.demo-result > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.demo-result strong,
.demo-result small {
  display: block;
}

.demo-result small {
  color: #4c6e69;
  font-size: 12px;
}

.preference-copy h2 {
  max-width: 560px;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(123, 49, 69, 0.14);
}

.feature-list b {
  color: var(--wine-dark);
}

.feature-list span {
  color: var(--muted);
}

.free-section {
  background: var(--cream);
}

.free-card {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  align-items: start;
  gap: 30px 70px;
  padding: 58px 64px;
  border-radius: 30px;
  background: var(--wine-dark);
  color: var(--white);
}

.free-card h2 {
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 48px);
}

.kicker-light {
  color: #efc9cd;
}

.free-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 13px;
  color: #f5e8e9;
  font-weight: 700;
}

.free-list span::first-letter {
  color: #b9dbd3;
}

.free-card > p {
  max-width: 680px;
  margin: 0;
  color: #d8c5ca;
}

.free-card > .button {
  justify-self: start;
}

.safety-section {
  background: var(--paper);
}

.safety-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.safety-points {
  display: grid;
}

.safety-points article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.safety-points article:last-child {
  border-bottom: 1px solid var(--line);
}

.safety-points article > span {
  color: var(--wine-soft);
  font-family: Georgia, serif;
  font-size: 20px;
}

.safety-points strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.safety-points p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  padding: 72px 0;
  background: var(--green);
  color: var(--white);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.final-cta h2 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 49px);
}

.eyebrow-light {
  color: #b9dbd3;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 54px 0 22px;
  border-top: 4px solid var(--wine);
  background: #261f21;
  color: #d6cbcd;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 7%;
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 169, 158, 0.55), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) repeat(3, minmax(135px, 0.78fr));
  gap: 46px;
}

.brand-footer {
  color: var(--white);
}

.footer-heart {
  position: relative;
  isolation: isolate;
  transform-origin: 50% 70%;
  animation: heart-gentle-wiggle 5.4s ease-in-out infinite;
}

.footer-heart::before,
.footer-heart::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(226, 185, 195, 0.34);
  border-radius: 5px;
  opacity: 0;
  animation: heart-corner-ripple 5.4s ease-out infinite;
}

.footer-heart::before { inset: -6px; }
.footer-heart::after { inset: -11px; border-color: rgba(226, 185, 195, 0.2); animation-delay: 120ms; }

.footer-intro p {
  max-width: 330px;
  margin: 17px 0 14px;
  color: #a99da0;
  font-size: 13px;
  line-height: 1.65;
}

.footer-free-promise {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #425550;
  border-radius: 2px;
  background: #2b2928;
  color: #bad6cf;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.footer-free-promise b { color: #75b4a7; }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.footer-links a {
  color: #b8adaf;
  font-size: 12px;
  transition: color 140ms ease, transform 140ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #43393c;
  color: #918588;
  font-size: 10px;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.25fr 1fr; row-gap: 38px; }
}

@media (max-width: 760px) {
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 32px; }
}

.flash-stack {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.flash {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.flash-success {
  border-color: #bcd7cf;
  background: #edf7f3;
  color: #28594f;
}

.flash-error {
  border-color: #e4bdc3;
  background: #fbeced;
  color: #7a293e;
}

/* Konto og formularer */
.auth-page main {
  min-height: 720px;
}

.auth-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px max(40px, 7vw);
  background: var(--wine-dark);
  color: var(--white);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.auth-aside::before {
  width: 430px;
  height: 430px;
  right: -220px;
  top: -120px;
}

.auth-aside::after {
  width: 310px;
  height: 310px;
  left: -190px;
  bottom: -100px;
}

.auth-aside-inner {
  position: relative;
  z-index: 2;
  max-width: 510px;
}

.auth-aside h2,
.registration-summary h2 {
  margin: 14px 0 22px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.5vw, 55px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.auth-aside-inner > p,
.registration-summary > p {
  color: #dbcbd0;
  font-size: 17px;
}

.auth-quote {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-top: 48px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-quote > span {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 0.8;
}

.auth-quote p {
  margin: 0;
  color: #efe3e6;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
}

.auth-panel-wrap,
.registration-form-wrap {
  display: grid;
  place-items: center;
  padding: 58px 34px;
  background: var(--cream);
}

.auth-panel {
  width: min(100%, 480px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.auth-panel h1 {
  margin-top: 8px;
  font-size: 44px;
}

.auth-intro {
  margin: 11px 0 25px;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4c4245;
  font-size: 13px;
  font-weight: 750;
}

.field > small {
  color: var(--muted);
  font-size: 11px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d9ccc8;
  border-radius: 13px;
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #bda6a1;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a69a9d;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 66px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 47px;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.form-between {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.form-between a,
.check-field a,
.back-link,
.text-link-centered,
.legal-content article a {
  color: var(--wine);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 25px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 11px;
  background: var(--paper);
}

.registration-pause-note {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid #bfd7d1;
  border-left: 4px solid var(--green);
  border-radius: 3px;
  background: #f0f7f5;
  text-align: left;
}

.registration-pause-note strong {
  color: #285950;
  font-size: 11px;
}

.registration-pause-note span {
  color: #61756f;
  font-size: 9px;
  line-height: 1.5;
}

.registration-pause-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #bfd7d1;
  border-radius: 3px;
  background: #edf6f3;
  color: #285950;
  font-size: 11px;
  font-weight: 750;
}

.footer-availability {
  max-width: 190px;
  color: #9f9295;
  font-size: 11px;
  line-height: 1.55;
}

.form-errors {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid #e1b9c0;
  border-radius: 13px;
  background: #fbedef;
  color: #76283d;
  font-size: 13px;
}

.form-errors p {
  margin: 0;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.check-field input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--wine);
}

.form-footnote,
.text-link-centered {
  margin: -5px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.text-link-centered {
  display: block;
  font-size: 13px;
}

.registration-layout {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(620px, 1.18fr);
}

.registration-summary {
  position: relative;
  overflow: hidden;
  padding: 80px max(42px, 6vw);
  background: var(--green);
  color: var(--white);
}

.registration-summary ul {
  display: grid;
  gap: 22px;
  margin: 42px 0;
  padding: 0;
  list-style: none;
}

.registration-summary li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 14px;
}

.registration-summary li > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.registration-summary li strong,
.registration-summary li small {
  display: block;
}

.registration-summary li small {
  margin-top: 2px;
  color: #bdd5d0;
}

.registration-safety {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px !important;
}

.registration-panel {
  width: min(100%, 680px);
}

.single-auth-section {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  background: var(--cream);
}

.compact-auth-panel {
  width: min(100%, 500px);
  text-align: left;
}

.auth-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 17px;
  background: var(--rose-pale);
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 23px;
}

.back-link {
  display: inline-block;
  margin-top: 23px;
  font-size: 13px;
}

/* Dashboard */
.dashboard-page {
  background: #f5f0ec;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 32px;
  padding-top: 34px;
  padding-bottom: 90px;
}

.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--wine);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 21px;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
}

.sidebar-profile strong {
  font-size: 14px;
}

.sidebar-profile span {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-nav {
  display: grid;
  gap: 4px;
  margin: 17px 0;
}

.dashboard-nav a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  padding: 9px 11px;
  border-radius: 11px;
  color: #62575a;
  font-size: 13px;
  font-weight: 680;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: #f5e8e7;
  color: var(--wine-dark);
}

.dashboard-nav a > span {
  color: var(--wine-soft);
  font-size: 17px;
}

.dashboard-nav i {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rose-pale);
  color: var(--wine);
  font-size: 9px;
  font-style: normal;
}

.sidebar-help {
  margin-top: 18px;
  padding: 15px;
  border-radius: 13px;
  background: var(--green-pale);
}

.sidebar-help strong {
  color: var(--green);
  font-size: 12px;
}

.sidebar-help p {
  margin: 4px 0 8px;
  color: #56736e;
  font-size: 10px;
  line-height: 1.45;
}

.sidebar-help a {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 27px;
}

.dashboard-welcome h1 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 47px);
}

.dashboard-welcome p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.status-grid-ready {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
}

.status-card,
.dashboard-section,
.onboarding-list {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(68, 42, 49, 0.05);
}

.status-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
}

.status-card-primary {
  border-color: rgba(123, 49, 69, 0.25);
  background: #fffafa;
}

.status-card-state-active {
  border-color: #b8d2cb;
  background: #f6fbf9;
}

.status-card-state-paused {
  border-color: #dbcbb9;
  background: #fffbf6;
}

.status-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.status-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--rose-pale);
  color: var(--wine);
  font-size: 17px;
}

.status-icon-green {
  background: var(--green-pale);
  color: var(--green);
}

.status-icon-sand {
  background: #efe4d7;
  color: #8d6548;
}

.status-label,
.development-pill {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-card h2 {
  margin: 20px 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.status-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.status-card > a {
  margin-top: auto;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
}

.status-card-contact {
  min-height: 285px;
}

.status-card-contact h2 {
  margin-bottom: 5px;
}

.status-card-contact > p {
  margin-bottom: 12px;
}

.dashboard-contact-picker {
  width: 100%;
}

.dashboard-contact-picker fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dashboard-contact-picker legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dashboard-contact-choice {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdfc;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-contact-choice:hover {
  border-color: rgba(123, 49, 69, 0.48);
  transform: translateY(-1px);
}

.dashboard-contact-choice:has(input:checked) {
  border-color: var(--wine);
  background: var(--rose-pale);
  box-shadow: inset 0 0 0 1px rgba(123, 49, 69, 0.08);
}

.dashboard-contact-choice:has(input:focus-visible) {
  outline: 3px solid rgba(123, 49, 69, 0.2);
  outline-offset: 2px;
}

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

.dashboard-contact-choice > span {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f3e9e5;
  color: var(--wine);
  font-size: 13px;
}

.dashboard-contact-choice:has(input:checked) > span {
  background: var(--wine);
  color: #fff;
}

.dashboard-contact-choice b,
.dashboard-contact-choice small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-contact-choice b {
  align-self: end;
  color: var(--wine-dark);
  font-size: 9px;
  line-height: 1.2;
}

.dashboard-contact-choice small {
  align-self: start;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.dashboard-contact-save {
  min-height: 16px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.dashboard-contact-save.is-saving {
  color: #8d6548;
}

.dashboard-contact-save.is-saved {
  color: var(--green);
  font-weight: 700;
}

.dashboard-contact-save.is-error {
  color: var(--wine);
  font-weight: 700;
}

.status-card > .dashboard-contact-more {
  margin-top: 3px;
  font-size: 10px;
}
.status-card-links {
  margin-top: auto;
}

.status-card-links a {
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-next-action {
  margin-top: auto;
}

.status-waits {
  margin-top: auto;
  color: #897b7f;
  font-size: 10px;
  font-weight: 750;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  margin: 2px 0 14px;
  border-radius: 999px;
  background: #eadfdb;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wine);
}

.progress-42 {
  width: 42%;
}

.progress-25 {
  width: 25%;
}

.progress-50 {
  width: 50%;
}

.progress-75 {
  width: 75%;
}

.progress-90 {
  width: 90%;
}

.progress-100 {
  width: 100%;
  background: var(--green) !important;
}

.sidebar-avatar {
  overflow: hidden;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.verification-badge {
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-section,
.onboarding-list {
  margin-top: 22px;
  padding: 25px;
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-section-heading h2 {
  margin: 2px 0 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.development-pill,
.count-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0e7e3;
}

.match-empty-state {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) 1.15fr;
  align-items: center;
  gap: 50px;
  padding: 30px;
  border: 1px solid #eaded8;
  border-top: 3px solid #d6b9bc;
  border-radius: 4px;
  background: #faf6f3;
}

.empty-profiles {
  min-height: 185px;
  position: relative;
}

.empty-profile-card {
  position: absolute;
  top: 10px;
  width: 120px;
  height: 166px;
  border: 1px solid #dfd1cc;
  border-radius: 18px;
  background: #eaded8;
  box-shadow: 0 12px 28px rgba(68, 42, 49, 0.08);
}

.empty-profile-card::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #cfbdb6;
  transform: translateX(-50%);
}

.empty-profile-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 23px;
  left: 18px;
  height: 49px;
  border-radius: 40px 40px 14px 14px;
  background: #cfbdb6;
}

.empty-one {
  left: 12%;
  transform: rotate(-8deg);
}

.empty-two {
  z-index: 2;
  left: 34%;
  top: 0;
  background: #e4d2d1;
}

.empty-three {
  left: 56%;
  transform: rotate(8deg);
}

.match-empty-state.has-suggestions {
  overflow: hidden;
  grid-template-columns: minmax(300px, .96fr) minmax(0, 1.04fr);
  gap: 44px;
  padding: 27px 31px;
  border-color: #dfd0ca;
  border-top-color: var(--wine);
  background: radial-gradient(circle at 18% 42%, #fffaf4 0, #faf3ef 43%, #f7efeb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.dashboard-match-previews {
  position: relative;
  isolation: isolate;
  min-height: 230px;
}

.dashboard-match-card {
  position: absolute;
  top: 13px;
  width: 148px;
  height: 210px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 4px;
  background: #d9cec8;
  box-shadow: 0 17px 32px rgba(67, 41, 48, .18);
  color: #fff;
  transform: rotate(var(--match-card-tilt, 0deg));
  transform-origin: 50% 85%;
  transition: z-index 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-match-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,25,29,.04) 35%, rgba(36,25,29,.83) 100%);
  pointer-events: none;
}

.dashboard-match-card:hover,
.dashboard-match-card:focus-visible {
  z-index: 5;
  box-shadow: 0 23px 42px rgba(67, 41, 48, .24);
  transform: translateY(-7px) rotate(0deg);
}

.dashboard-match-card-2:hover,
.dashboard-match-card-2:focus-visible { animation: none; }

.dashboard-match-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-match-card-1 { z-index: 1; left: 0; --match-card-tilt: -6deg; }
.dashboard-match-card-2 { z-index: 3; left: calc(50% - 74px); top: 2px; animation: dashboard-match-float 7s ease-in-out infinite; }
.dashboard-match-card-3 { z-index: 2; right: 0; --match-card-tilt: 6deg; }

.dashboard-match-relevance,
.dashboard-match-demo {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 2px;
  background: rgba(239,248,245,.92);
  color: #285e55;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.dashboard-match-demo {
  top: 34px;
  background: rgba(48,39,41,.78);
  color: #fff;
}

.dashboard-match-card-info {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}

.dashboard-match-card-info strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-match-card-info small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.85);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-match-card-info > span {
  margin-top: 5px;
  overflow: hidden;
  color: #ffe9ec;
  font-size: 7px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-match-copy { min-width: 0; }
.dashboard-match-signal { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px; padding: 5px 7px; border: 1px solid #bcd5ce; border-radius: 2px; background: #eef7f4; color: #315f57; font-size: 8px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.dashboard-match-signal b { color: var(--green); }
.dashboard-match-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 3px; }
.dashboard-match-points span { padding: 5px 7px; border: 1px solid #ddcfca; border-radius: 2px; background: rgba(255,255,255,.65); color: #715f64; font-size: 8px; font-weight: 750; }

@keyframes dashboard-match-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(.7deg); }
}

.match-empty-state h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.match-empty-state p,
.compact-empty p {
  color: var(--muted);
  font-size: 13px;
}

.match-empty-state p + a,
.match-empty-state p + .button {
  display: inline-flex;
  margin-top: 9px;
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 800;
}

.match-empty-state p + .button {
  color: var(--white);
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compact-section {
  min-height: 210px;
}

.count-badge {
  min-width: 30px;
  text-align: center;
  color: var(--wine);
  font-size: 11px;
  font-weight: 850;
}

.compact-empty {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.compact-empty > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rose-pale);
  color: var(--wine);
}

.compact-empty p {
  margin: 3px 0 0;
}

.dashboard-interaction-list { display: grid; gap: 8px; margin-top: 13px; }
.dashboard-interaction-list + .dashboard-interaction-list { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.dashboard-list-label { color: #75666a; font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; }
.dashboard-person-row { display: grid; grid-template-columns: 43px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 8px; border: 1px solid #e2d7d2; border-radius: 3px; background: #fffaf7; color: #514448; }
.dashboard-person-row:hover { border-color: #cdb9b7; background: var(--paper); }
.dashboard-person-row > span:nth-child(2),
.dashboard-person-row strong,
.dashboard-person-row small { display: block; min-width: 0; }
.dashboard-person-row strong { overflow: hidden; color: #493b40; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-person-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.dashboard-person-row > b { color: var(--wine); text-align: center; }
.dashboard-person-avatar { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border-radius: 3px; background: #e9dcda; color: var(--wine); font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.dashboard-person-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dashboard-request-card { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: start; gap: 10px; padding: 11px; border: 1px solid #cbded8; border-left: 3px solid var(--green); border-radius: 3px; background: #f3f8f6; }
.dashboard-request-card > div > strong,
.dashboard-request-card > div > strong a { color: #315a54; font-size: 11px; }
.dashboard-request-card p { max-height: 62px; overflow: auto; margin: 5px 0 8px; color: #61736f; font-size: 10px; line-height: 1.5; }
.dashboard-request-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-request-actions button,
.blocked-profile-list button { min-height: 29px; padding: 5px 8px; border: 1px solid var(--green); border-radius: 2px; background: var(--green); color: var(--white); cursor: pointer; font-size: 9px; font-weight: 800; }
.dashboard-request-actions button.quiet { border-color: #d3c6c2; background: transparent; color: #77686c; }
.dashboard-like-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 13px; }
.dashboard-like-summary span { padding: 10px; border: 1px solid #e1d5d0; border-radius: 3px; background: #faf5f2; color: #75676b; font-size: 9px; }
.dashboard-like-summary b { display: block; margin-bottom: 1px; color: var(--wine-dark); font-family: Georgia, serif; font-size: 19px; }
.dashboard-like-summary small { display: block; margin-top: 3px; color: #95868a; font-size: 8px; line-height: 1.35; }
.dashboard-outgoing-request.status-accepted { border-color: #bdd5cf; background: #f1f8f5; }
.dashboard-outgoing-request.status-declined { opacity: .78; }
.dashboard-outgoing-note { margin: 14px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.dashboard-safety-section { min-height: auto; }
.dashboard-safety-empty { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.dashboard-safety-empty > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); }
.dashboard-safety-empty strong,
.dashboard-safety-empty p { display: block; }
.dashboard-safety-empty strong { color: #4e4145; font-size: 11px; }
.dashboard-safety-empty p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.blocked-profile-list { display: grid; gap: 7px; padding-top: 13px; border-top: 1px solid var(--line); }
.blocked-profile-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 10px; border: 1px solid #e0d4cf; background: #fffaf7; }
.blocked-profile-list strong,
.blocked-profile-list small { display: block; }
.blocked-profile-list strong { color: #55474b; font-size: 11px; }
.blocked-profile-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.blocked-profile-list button { border-color: #d0b8bb; background: transparent; color: var(--wine-dark); }

.onboarding-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.onboarding-list li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d9ccc8;
  border-radius: 50%;
  color: var(--muted);
  font-family: Georgia, serif;
}

.onboarding-list li.done > span {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.onboarding-list li strong,
.onboarding-list li small {
  display: block;
}

.onboarding-list li small {
  color: var(--muted);
  font-size: 11px;
}

.onboarding-list li > b {
  color: var(--muted);
  font-size: 10px;
}

.onboarding-list li.done > b {
  color: var(--green);
}

.onboarding-list li strong a {
  color: inherit;
}

.profile-setup-panel {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(68, 42, 49, 0.05);
}

.profile-setup-panel > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
}

.profile-setup-panel > summary::-webkit-details-marker {
  display: none;
}

.profile-setup-panel > summary:hover {
  background: #fffbf9;
}

.profile-setup-status {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d8c9c5;
  background: #f6ece9;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.profile-setup-status.is-complete {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  font-family: inherit;
}

.profile-setup-summary,
.profile-setup-summary strong,
.profile-setup-summary small {
  display: block;
}

.profile-setup-summary strong {
  color: #493c40;
  font-size: 13px;
}

.profile-setup-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.profile-setup-panel > summary > b {
  color: var(--wine);
  font-size: 11px;
}

.profile-setup-panel > summary > b span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 150ms ease;
}

.profile-setup-panel[open] > summary > b span {
  transform: rotate(180deg);
}

.profile-setup-content {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fcf8f5;
}

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

.profile-setup-item {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e1d5d0;
  background: var(--paper);
}

a.profile-setup-item:hover {
  border-color: #cdaeb5;
  background: #fffafa;
}

.profile-setup-item > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #d7c9c4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-setup-item strong,
.profile-setup-item small {
  display: block;
}

.profile-setup-item strong {
  color: #4f4246;
  font-size: 12px;
}

.profile-setup-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.profile-setup-item.is-done > span {
  border-color: #a8c8bf;
  background: var(--green-pale);
  color: var(--green);
}

.profile-setup-item.is-current {
  border-color: #cda4ad;
  background: #fff7f7;
}

.profile-setup-item.is-current > span {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.profile-setup-item.is-locked {
  background: #f5f0ed;
  opacity: 0.68;
}

.profile-setup-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.profile-setup-footer a {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

/* Profiltrin */
.profile-step-page {
  background: #f5f0ec;
}

.profile-step-section {
  padding: 42px 0 90px;
}

.profile-step-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 750;
}

.profile-step-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.profile-step-header h1 {
  margin: 7px 0 8px;
  font-size: clamp(38px, 5vw, 56px);
}

.profile-step-header p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.profile-step-number {
  min-width: 74px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.profile-step-number strong,
.profile-step-number span {
  display: block;
}

.profile-step-number strong {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.profile-step-number span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-step-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0 34px;
}

.profile-step-progress span {
  height: 5px;
  background: #dfd4cf;
}

.profile-step-progress span.done {
  background: var(--green);
}

.profile-step-progress span.active {
  background: var(--wine);
}

.profile-step-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 24px;
}

.profile-guidance {
  position: sticky;
  top: 24px;
  padding: 32px;
  background: var(--green);
  color: var(--white);
}

.profile-guidance h2 {
  margin: 13px 0 14px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.18;
}

.profile-guidance > p {
  color: #d9e7e4;
  font-size: 14px;
  line-height: 1.65;
}

.profile-guidance ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.profile-guidance li {
  display: flex;
  gap: 9px;
  color: #eef5f3;
  font-size: 12px;
}

.profile-guidance li span {
  color: #a9d3ca;
  font-weight: 900;
}

.profile-form-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.profile-form-card > .form-errors {
  margin: 28px 30px 0;
}

.profile-form-card > form {
  gap: 0;
}

.profile-form-section {
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.profile-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}

.profile-form-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 11px;
}

.profile-form-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.profile-form-heading p {
  grid-column: 2;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-number {
  margin-top: 4px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.required-badge,
.optional-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #d7c7c2;
  border-radius: 2px;
  color: var(--wine);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.optional-badge {
  border-color: #cfddd9;
  color: var(--green);
}

.trait-groups {
  display: grid;
  gap: 24px;
}

.trait-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trait-group legend {
  margin-bottom: 10px;
  color: #514649;
  font-size: 12px;
  font-weight: 800;
}

.trait-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-choice {
  position: relative;
}

.trait-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.trait-choice label {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #d9ccc8;
  border-radius: 2px;
  background: #fffdfc;
  color: #61565a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.trait-choice label:hover {
  border-color: #a9828c;
}

.trait-choice input:checked + label {
  border-color: var(--wine);
  background: var(--rose-pale);
  color: var(--wine-dark);
}

.trait-choice input:checked + label::before {
  content: "✓";
  margin-right: 6px;
  color: var(--wine);
  font-weight: 900;
}

.trait-choice input:focus-visible + label {
  outline: 3px solid rgba(123, 49, 69, 0.2);
  outline-offset: 2px;
}

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

.sensitive-profile-choice {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-privacy-note {
  margin: 17px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
  color: #506c67;
  font-size: 11px;
}

.profile-form-card textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.6;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px;
}

.location-field > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.location-picker {
  position: relative;
}

.location-picker input[type="search"] {
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.location-picker input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.location-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #cdbeba;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(75, 44, 51, 0.14);
}

.location-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.location-result:last-child {
  border-bottom: 0;
}

.location-result:hover,
.location-result.active {
  background: var(--green-pale);
}

.location-result strong,
.location-result small {
  display: block;
}

.location-result strong {
  font-size: 12px;
}

.location-result small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.location-result-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 11px;
}

.location-fallback {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.location-fallback span {
  font-size: 11px;
  font-weight: 750;
}

.location-privacy-note {
  margin: 17px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
  color: #506c67;
  font-size: 11px;
}

.preference-guidance {
  background: #285f59;
}

.preference-legend {
  display: grid;
  gap: 9px;
  margin-top: 23px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #eef5f3;
  font-size: 11px;
}

.preference-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preference-legend b {
  min-width: 49px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.preference-legend .legend-soft {
  background: rgba(255, 255, 255, 0.12);
}

.preference-guidance ul {
  margin-top: 0;
  border-top: 0;
}

.preference-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #d8cbbf;
  border-radius: 2px;
  color: #785d48;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

/* Kompakte profilfelter med en ensartet pil og mindre visuel tyngde. */
.profile-form-card .field input:not([type="checkbox"]):not([type="radio"]),
.profile-form-card .field select,
.location-picker input[type="search"] {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 2px;
  font-size: 13px;
}

.profile-form-card .field select {
  appearance: none;
  padding-right: 36px;
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.profile-form-card .location-picker input[type="search"] {
  padding-right: 42px;
}

.compact-form-grid {
  align-items: start;
}

.compact-range-grid {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffaf7;
}

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

.identity-panel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffaf7;
}

.identity-panel legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.identity-panel > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.identity-choice-grid {
  display: grid;
  gap: 8px;
}

.identity-choice {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #d9ccc8;
  background: var(--white);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.identity-choice:hover {
  border-color: #a9828c;
}

.identity-choice:has(input:checked) {
  border-color: var(--wine);
  background: var(--rose-pale);
  box-shadow: inset 3px 0 0 var(--wine);
}

.identity-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.identity-choice:has(input:focus-visible) {
  outline: 3px solid rgba(123, 49, 69, 0.2);
  outline-offset: 2px;
}

.identity-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbdeda;
  background: var(--green-pale);
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.identity-copy,
.identity-copy b,
.identity-copy small {
  display: block;
}

.identity-copy b {
  color: var(--ink);
  font-size: 12px;
}

.identity-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.identity-check {
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.identity-choice:has(input:checked) .identity-check {
  color: var(--wine);
}

.interest-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
}

.interest-toolbar p {
  margin: 0;
  color: #506c67;
  font-size: 10px;
  line-height: 1.5;
}

.interest-toolbar strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

.interest-toolbar.limit-reached {
  border-left-color: var(--wine);
  background: var(--rose-pale);
}

.interest-toolbar.limit-reached strong {
  color: var(--wine);
}

.interest-groups {
  display: grid;
  gap: 8px;
}

.interest-group {
  border: 1px solid var(--line);
  background: #fffdfc;
}

.interest-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 53px;
  padding: 10px 42px 10px 14px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.interest-group summary::-webkit-details-marker {
  display: none;
}

.interest-group summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  color: var(--green);
  font-size: 20px;
  font-weight: 400;
}

.interest-group[open] summary::after {
  content: "−";
}

.interest-group summary:hover {
  background: var(--green-pale);
}

.interest-group summary span,
.interest-group summary strong,
.interest-group summary small {
  display: block;
}

.interest-group summary strong {
  color: #514649;
  font-size: 12px;
}

.interest-group summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.interest-group summary > b {
  padding: 4px 7px;
  border: 1px solid #cbdeda;
  color: var(--green);
  font-size: 9px;
  white-space: nowrap;
}

.interest-group[open] summary {
  border-bottom: 1px solid var(--line);
  background: #fbf7f3;
}

.interest-options {
  padding: 13px 14px 15px;
}

.interest-options .trait-choice label {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 10px;
}

.family-comparison {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-top: 14px;
}

.family-side {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
}

.family-side-self {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--green-pale);
}

.family-side-partner {
  background: #fffaf7;
}

.family-side-heading {
  margin-bottom: 15px;
}

.family-side-self .family-side-heading {
  margin-bottom: 0;
}

.family-side-label {
  color: var(--wine);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.family-side-heading h3 {
  margin: 4px 0 3px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

.family-side-heading p,
.preference-block-heading small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.relation-preference {
  background: #fffdfc;
}

.preference-block-heading > div {
  display: grid;
  gap: 3px;
}

.family-side .preference-block {
  padding: 13px;
  background: var(--white);
}

.family-side .preference-block + .preference-block {
  margin-top: 10px;
}

.photo-guidance {
  background: #6f3043;
}

.photo-guidance li span {
  color: #f1cbd3;
}

.photo-limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
}

.photo-limit-row strong,
.photo-limit-row small {
  display: block;
}

.photo-limit-row strong {
  color: #3f5d57;
  font-size: 11px;
}

.photo-limit-row small {
  margin-top: 2px;
  color: #66807b;
  font-size: 9px;
}

.photo-limit-row > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.photo-upload-zone {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 9px;
  border: 1px dashed #bda6a1;
  background: #fffdfc;
  cursor: pointer;
}

.photo-upload-zone:hover {
  border-color: var(--wine);
  background: var(--rose-pale);
}

.photo-upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.photo-upload-zone:has(input:focus-visible) {
  outline: 3px solid rgba(123, 49, 69, 0.2);
  outline-offset: 2px;
}

.photo-upload-preview {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9ccc8;
  background: #f7efeb;
  color: var(--wine);
}

.photo-upload-preview img {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
}

.photo-upload-preview img:not([hidden]) + b {
  display: none;
}

.photo-upload-preview b {
  grid-area: 1 / 1;
  font-size: 22px;
  font-weight: 400;
}

.photo-upload-zone > span:last-child,
.photo-upload-zone strong,
.photo-upload-zone small {
  display: block;
}

.photo-upload-zone strong {
  color: var(--ink);
  font-size: 12px;
}

.photo-upload-zone small {
  max-width: 360px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-upload-form > .button {
  min-width: 132px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.photo-limit-note {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #dccfc7;
  background: #fffaf7;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.photo-limit-note strong {
  color: var(--ink);
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.profile-photo-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.profile-photo-card.is-primary {
  border-color: var(--wine);
  box-shadow: inset 0 -3px 0 var(--wine);
}

.profile-photo-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee4df;
}

.profile-photo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-photo-image > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 7px;
  background: var(--wine);
  color: var(--white);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-photo-meta {
  padding: 9px;
}

.profile-photo-meta > small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.profile-photo-actions form {
  margin: 0;
}

.profile-photo-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-photo-actions .photo-delete {
  color: var(--wine);
}

.photo-empty-state {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffaf7;
}

.photo-empty-state > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #d9ccc8;
  color: var(--wine);
  font-size: 18px;
}

.photo-empty-state strong {
  color: var(--ink);
  font-size: 11px;
}

.photo-empty-state p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.visibility-section {
  background: #fcf7f3;
}

.visibility-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.visibility-checklist > span {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid #decfca;
  background: var(--white);
  color: #a1868d;
  font-size: 12px;
  font-weight: 900;
}

.visibility-checklist > span.done {
  border-color: #cbdeda;
  color: var(--green);
}

.visibility-checklist b,
.visibility-checklist small {
  display: block;
}

.visibility-checklist b {
  color: var(--ink);
  font-size: 9px;
}

.visibility-checklist small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.visibility-status {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  margin-top: 14px;
  padding: 14px;
  border-left: 3px solid var(--wine);
  background: var(--rose-pale);
  color: var(--wine);
}

.visibility-status-live {
  border-left-color: var(--green);
  background: var(--green-pale);
  color: var(--green);
}

.visibility-status > span {
  font-size: 18px;
}

.visibility-status strong {
  color: var(--ink);
  font-size: 11px;
}

.visibility-status p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.publish-form .consent-box {
  margin-top: 14px;
}

.publish-form > .button,
.visibility-action-form {
  margin-top: 13px;
}

.visibility-action-form {
  display: flex;
  justify-content: flex-end;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 19px;
}

.consent-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #cbdeda;
  background: var(--green-pale);
  color: #455e59;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.55;
}

.consent-box input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.consent-box strong,
.consent-box span,
.consent-box a {
  display: inline;
}

.consent-box a {
  color: var(--wine);
  font-weight: 800;
  text-decoration: underline;
}

.preference-block {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf7;
}

.preference-block + .preference-block,
.own-family-grid + .preference-block,
.preference-block + .own-family-grid {
  margin-top: 14px;
}

.preference-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.preference-block-heading > strong {
  color: #514649;
  font-size: 12px;
}

.hard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.hard-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--wine);
}

.hard-toggle:has(input:checked) {
  color: var(--wine);
}

.hard-rule-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--wine);
  background: var(--rose-pale);
  color: #6d5058;
  font-size: 11px;
}

.height-range {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 440px;
  margin-top: 0;
}

.appearance-preferences {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.contact-boundaries-section {
  background: #fcf7f3;
}

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

.contact-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d7c9c4;
  background: var(--paper);
  cursor: pointer;
}

.contact-mode-card:has(input:checked) {
  border-color: var(--wine);
  box-shadow: inset 4px 0 0 var(--wine);
}

.contact-mode-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--wine);
}

.contact-mode-card span,
.contact-mode-card b,
.contact-mode-card small {
  display: block;
}

.contact-mode-card b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.contact-mode-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.switch-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.switch-row > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control {
  position: relative;
  width: 42px;
  height: 22px;
  border: 1px solid #bcaeaa;
  border-radius: 3px;
  background: #ddd2ce;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 160ms ease;
}

.switch-row > input:checked + .switch-control {
  border-color: var(--green);
  background: var(--green);
}

.switch-row > input:checked + .switch-control::after {
  transform: translateX(19px);
}

.switch-row > input:focus-visible + .switch-control {
  outline: 3px solid rgba(47, 104, 97, 0.2);
  outline-offset: 2px;
}

.switch-row > span:last-child,
.switch-row b,
.switch-row small {
  display: block;
}

.switch-row b {
  color: var(--ink);
  font-size: 12px;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
}

/* Juridiske sider */
.legal-hero {
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  background: #efe5df;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 10px 0 15px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.legal-content {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: center;
  gap: 80px;
  padding-top: 70px;
  padding-bottom: 100px;
}

.legal-content aside {
  align-self: start;
  position: sticky;
  top: 30px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  font-size: 12px;
}

.legal-content aside strong {
  color: var(--wine-dark);
  margin-bottom: 5px;
}

.legal-content aside a {
  color: var(--muted);
}

.legal-content article h2 {
  margin: 42px 0 10px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.legal-content article h2:first-child {
  margin-top: 0;
}

.legal-content article p {
  color: #64595c;
}

.legal-version {
  margin-top: 55px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 12px;
}

/* Profilvisning: mennesket først, derefter de oplysninger der gør et møde relevant. */
.profile-view-page { background: #f7f2ee; }
.profile-view-section { padding: 32px 0 92px; }
.profile-view-back { display: inline-flex; align-items: center; margin-bottom: 20px; color: var(--wine-dark); font-size: 13px; font-weight: 750; }
.profile-view-back:hover { color: var(--wine); }
.profile-preview-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #c9ddd7; border-left: 4px solid var(--green); background: #f2f8f6; }
.profile-preview-notice > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); font-weight: 800; }
.profile-preview-notice div,
.profile-preview-notice strong,
.profile-preview-notice small { display: block; }
.profile-preview-notice strong { color: #234f49; font-size: 13px; }
.profile-preview-notice small { color: #5d736f; font-size: 12px; }
.profile-preview-notice a { color: var(--green); font-size: 12px; font-weight: 800; }

.profile-view-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr); overflow: hidden; border: 1px solid #dfd2cc; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.profile-gallery { min-width: 0; padding: 16px; background: #e9dfd8; }
.profile-gallery-main { position: relative; overflow: hidden; aspect-ratio: 4 / 4.65; background: #d9cec7; }
.profile-gallery-main img { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity 140ms ease; }
.profile-photo-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(48, 40, 42, 0.76); color: var(--white); font-size: 11px; font-weight: 750; backdrop-filter: blur(6px); }
.profile-gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.profile-gallery-thumbs button { min-width: 0; overflow: hidden; aspect-ratio: 1.3 / 1; padding: 0; border: 2px solid transparent; border-radius: 2px; background: #d9cec7; cursor: pointer; opacity: 0.68; transition: border-color 140ms ease, opacity 140ms ease; }
.profile-gallery-thumbs button:hover,
.profile-gallery-thumbs button[aria-current="true"] { border-color: var(--wine); opacity: 1; }
.profile-gallery-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-gallery-empty { min-height: 590px; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 30px; color: #75696c; text-align: center; }
.profile-gallery-empty > span { width: 116px; height: 116px; display: grid; place-items: center; background: var(--paper); color: var(--wine); font-family: Georgia, serif; font-size: 46px; }

.profile-view-intro { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px 46px; }
.profile-intro-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.profile-purpose-pill,
.profile-owner-pill,
.profile-demo-pill { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; border: 1px solid #d9c2c5; border-radius: 2px; color: var(--wine-dark); font-size: 10px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.profile-owner-pill { border-color: #bdd5cf; color: var(--green); }
.profile-demo-pill { border-color: #d6c4b2; background: #f4eadf; color: #704b33; }
.profile-view-intro h1 { margin: 0; color: #281f22; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.profile-location { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 13px 0 27px; color: var(--muted); font-size: 14px; }
.profile-location > span { color: var(--green); font-weight: 800; }
.profile-location b { color: #baaaa4; }
.profile-activity { display: inline-flex; align-items: center; gap: 6px; color: #74676b; font-size: 12px; font-weight: 750; }
.profile-intent-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 15px; padding: 19px; border-left: 4px solid var(--wine); background: #f8efed; }
.profile-intent-mark {
  width: 44px;
  height: 44px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 9px 18px rgba(123, 49, 69, 0.2);
  font-size: 17px;
  transform-origin: 50% 70%;
  animation: heart-gentle-wiggle 5.4s ease-in-out infinite;
}

.profile-intent-mark::before,
.profile-intent-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(123, 49, 69, 0.34);
  border-radius: 7px;
  opacity: 0;
  animation: heart-corner-ripple 5.4s ease-out infinite;
}

.profile-intent-mark::before {
  inset: -6px;
}

.profile-intent-mark::after {
  inset: -11px;
  border-color: rgba(123, 49, 69, 0.2);
  animation-delay: 120ms;
}
.profile-intent-panel small,
.profile-intent-panel strong { display: block; }
.profile-intent-panel small { margin-bottom: 1px; color: #8a7379; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-intent-panel strong { color: var(--wine-dark); font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.profile-intent-panel p { margin: 4px 0 0; color: #76666b; font-size: 12px; }
.profile-quick-traits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.profile-quick-traits span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; background: #fffaf7; color: #65575b; font-size: 11px; font-weight: 700; }
.profile-quick-traits span.is-common { border-color: #b9d1ca; background: #edf6f3; color: var(--green); }
.profile-owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.profile-future-action { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-future-action > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #dac6c9; color: var(--wine); }
.profile-future-action strong,
.profile-future-action small { display: block; }
.profile-future-action strong { color: var(--wine-dark); font-size: 13px; }
.profile-future-action small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-interaction-panel { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-connection-state,
.profile-request-status { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid #bad4cd; border-left: 3px solid var(--green); background: #f0f7f4; }
.profile-connection-state > span,
.profile-request-status > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--green); color: var(--white); }
.profile-connection-state strong,
.profile-connection-state small,
.profile-request-status strong,
.profile-request-status small { display: block; }
.profile-connection-state strong,
.profile-request-status strong { color: #285950; font-size: 12px; }
.profile-connection-state small,
.profile-request-status small { margin-top: 2px; color: #61756f; font-size: 9px; line-height: 1.5; }
.profile-connection-state a { display: inline-block; margin-top: 6px; color: #285950; font-size: 9px; font-weight: 850; }
.profile-request-status.request-status-declined { border-color: #ddcfca; border-left-color: #a7928e; background: #faf5f2; }
.profile-request-status.request-status-declined > span { background: #8d7b78; }
.profile-request-status.request-status-declined strong { color: #645451; }
.profile-request-status.request-status-declined small { color: #7d6e6a; }
.profile-like-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-like-row form { margin: 0; }
.profile-like-button,
.profile-liked-button { min-height: 43px; }
.profile-like-button > span,
.profile-liked-button > span { font-size: 15px; }
.profile-liked-button { border-color: #d0b6bc; background: #f8e9eb; color: var(--wine-dark); }
.profile-liked-you { padding: 7px 9px; border: 1px solid #bdd5cf; border-radius: 2px; background: #edf6f3; color: #285d55; font-size: 9px; font-weight: 800; }
.profile-mutual-note { display: flex; align-items: center; gap: 8px; margin: 0; color: #75676b; font-size: 10px; }
.profile-mutual-note span { color: var(--wine); font-size: 16px; }
.profile-request-form { border: 1px solid #ded1cc; border-radius: 3px; background: #fffaf7; }
.profile-request-form > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 12px; color: var(--wine-dark); cursor: pointer; font-size: 10px; font-weight: 800; list-style: none; }
.profile-request-form > summary::-webkit-details-marker { display: none; }
.profile-request-form > form { display: grid; gap: 11px; padding: 0 12px 13px; }
.profile-request-form textarea { min-height: 82px; }
.profile-request-form .button { justify-self: start; min-height: 37px; padding: 8px 12px; font-size: 10px; }
.profile-message-ideas { display: grid; gap: 9px; padding: 11px; border: 1px solid #c8dcd6; border-radius: 2px; background: #f1f7f5; }
.profile-message-ideas-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; }
.profile-message-ideas-heading > span { width: 29px; height: 29px; display: grid; place-items: center; background: #dcece7; color: var(--green); font-size: 13px; }
.profile-message-ideas-heading strong,
.profile-message-ideas-heading small { display: block; }
.profile-message-ideas-heading strong { color: #285950; font-size: 10px; }
.profile-message-ideas-heading small { margin-top: 1px; color: #61756f; font-size: 8px; line-height: 1.45; }
.profile-message-idea-list { display: grid; gap: 5px; }
.profile-message-idea-list button { width: 100%; display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 5px; padding: 7px 8px; border: 1px solid #d4e3df; border-radius: 2px; background: rgba(255, 255, 255, 0.72); color: #4d625d; cursor: pointer; font: inherit; font-size: 9px; line-height: 1.4; text-align: left; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.profile-message-idea-list button > span:first-child { color: var(--wine); font-weight: 850; }
.profile-message-idea-list button:hover,
.profile-message-idea-list button:focus-visible { border-color: #b89aa2; background: #fffaf8; color: var(--wine-dark); outline: none; }
.profile-message-idea-list button.is-selected { border-color: #8eb9ae; background: #e1f0eb; color: #285950; }
.profile-incoming-request { padding: 13px; border: 1px solid #c5dbd5; border-left: 3px solid var(--green); background: #f2f8f6; }
.profile-incoming-request > p { margin: 7px 0 10px; color: #546b66; font-size: 11px; line-height: 1.55; }
.profile-incoming-request > div { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-incoming-request .button { min-height: 36px; padding: 7px 12px; font-size: 10px; }

.profile-story-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.78fr); align-items: start; gap: 22px; margin-top: 22px; }
.profile-story-main,
.profile-story-aside { display: grid; gap: 22px; }
.profile-content-card,
.profile-facts-card,
.profile-privacy-card { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.profile-content-card,
.profile-facts-card { padding: 31px; }
.profile-content-card h2,
.profile-facts-card h2 { margin: 2px 0 0; color: #33272b; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.profile-about-card { position: relative; overflow: hidden; padding-left: 36px; }
.profile-about-card::before { content: "“"; position: absolute; top: -34px; right: 22px; color: rgba(123, 49, 69, 0.07); font-family: Georgia, serif; font-size: 170px; line-height: 1; }
.profile-bio { position: relative; max-width: 720px; margin-top: 20px; color: #5f5256; font-size: 16px; line-height: 1.85; }
.profile-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.shared-count { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #b9d1ca; border-radius: 2px; background: #edf6f3; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.profile-trait-groups { display: grid; gap: 0; margin-top: 23px; border-top: 1px solid var(--line); }
.profile-trait-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-trait-row h3 { margin: 5px 0 0; color: #65575b; font-size: 11px; letter-spacing: 0.02em; }
.profile-trait-row > div { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-trait-row > div > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #e2d6d1; border-radius: 2px; background: #fffaf7; color: #5f5356; font-size: 11px; font-weight: 700; }
.profile-trait-row > div > span.is-common { border-color: #b9d1ca; background: #edf6f3; color: #255a53; }
.profile-trait-row span b { padding-left: 7px; border-left: 1px solid #bdd4ce; color: var(--green); font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; }
.profile-facts-card dl { display: grid; gap: 0; margin: 21px 0 0; }
.profile-facts-card dl > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-facts-card dt { display: flex; align-items: center; gap: 8px; color: #897b7f; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.profile-facts-card dt span { width: 18px; color: var(--green); font-size: 13px; text-align: center; }
.profile-facts-card dd { margin: 0 0 0 26px; color: #4d4145; font-size: 13px; font-weight: 700; }
.profile-privacy-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px; border-color: #cbded9; background: #f1f7f5; box-shadow: none; }
.profile-privacy-card > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); }
.profile-privacy-card strong { color: #28574f; font-size: 12px; }
.profile-privacy-card p { margin: 2px 0 0; color: #61746f; font-size: 10px; line-height: 1.55; }
.profile-view-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 3px 0; border-top: 1px solid #ddcfca; color: var(--muted); font-size: 11px; }
.profile-view-footer p { margin: 0; }
.profile-view-footer a { flex: 0 0 auto; color: var(--wine); font-weight: 800; }
.profile-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.profile-view-toolbar .profile-view-back { margin-bottom: 0; }
.profile-safety-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.profile-safety-trigger { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #d8c9c5; border-radius: 2px; background: #fffaf7; color: #6d5d61; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.profile-safety-trigger span { color: var(--wine); font-size: 13px; }
.profile-safety-trigger:hover { border-color: #af888f; background: #f8ecec; color: var(--wine-dark); }
.profile-safety-trigger:focus-visible { outline: 3px solid rgba(47,104,97,.25); outline-offset: 2px; }
.profile-safety-dialog-open { overflow: hidden; }
.profile-safety-dialog { position: fixed; z-index: 310; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; opacity: 0; transition: opacity 170ms ease; }
.profile-safety-dialog[hidden] { display: none; }
.profile-safety-dialog.is-open { opacity: 1; }
.profile-safety-backdrop { position: fixed; inset: 0; background: rgba(38,29,32,.66); backdrop-filter: blur(4px); }
.profile-safety-card { position: relative; z-index: 1; width: min(100%, 520px); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 30px 32px 28px; border: 1px solid #ddcec7; border-top: 4px solid var(--wine); border-radius: 4px; background: #fffdfb; box-shadow: 0 30px 90px rgba(34,22,27,.34); text-align: left; transform: translateY(14px) scale(.98); transition: transform 170ms ease; }
.profile-safety-dialog.is-open .profile-safety-card { transform: translateY(0) scale(1); }
.profile-safety-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #ddcec8; border-radius: 3px; background: #fffaf7; color: var(--wine-dark); cursor: pointer; font-size: 22px; line-height: 1; }
.profile-safety-close:hover { border-color: var(--wine); background: #f8ecec; }
.profile-safety-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 15px; border: 1px solid #d9c3c6; background: #f8ecec; color: var(--wine); font-size: 20px; }
.profile-safety-card > .kicker { display: block; padding-right: 46px; }
.profile-safety-card h2 { margin: 7px 42px 8px 0; color: #34272b; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.profile-safety-card > p { margin: 0 0 21px; color: #786a6e; font-size: 12px; line-height: 1.65; }
.profile-report-form { display: grid; gap: 13px; }
.profile-report-form .field input, .profile-report-form .field select, .profile-report-form .field textarea { font-size: 12px; }
.profile-report-form .button { min-height: 40px; padding: 8px 13px; font-size: 10px; }
.profile-report-block { display: flex; align-items: center; gap: 9px; color: #6f5f63; font-size: 11px; }
.profile-report-block input { width: 18px; height: 18px; accent-color: var(--wine); }
.profile-safety-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.profile-safety-dialog-actions .button { min-height: 41px; padding: 8px 14px; font-size: 10px; }
.profile-safety-dialog-actions .button[disabled] { cursor: wait; opacity: .72; }
.profile-unavailable { min-height: 620px; display: grid; place-content: center; justify-items: center; padding-block: 80px; text-align: center; }
.profile-unavailable-mark { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid #d9c9c4; background: var(--paper); color: var(--wine); font-size: 26px; }
.profile-unavailable h1 { margin: 5px 0 9px; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.profile-unavailable p { max-width: 460px; margin: 0 0 24px; color: var(--muted); }
.status-card-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 980px) {
  .hero-grid,
  .preference-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .profile-view-hero,
  .profile-story-grid {
    grid-template-columns: 1fr;
  }

  .profile-gallery-main {
    aspect-ratio: 4 / 3.8;
  }

  .profile-view-intro {
    padding: 38px 34px;
  }

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

  .profile-privacy-card {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 530px;
  }

  .profile-back {
    right: 6%;
  }

  .privacy-note {
    left: 8%;
  }

  .preference-grid,
  .safety-grid {
    gap: 58px;
  }

  .preference-demo {
    max-width: 650px;
    margin-inline: auto;
  }

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

  .auth-shell,
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .auth-aside,
  .registration-summary {
    min-height: 460px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .profile-step-grid {
    grid-template-columns: 1fr;
  }

  .profile-guidance {
    position: static;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-help {
    display: none;
  }

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

  .status-card-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .profile-view-section {
    padding-top: 20px;
  }
  .profile-view-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .profile-safety-actions { width: 100%; justify-content: stretch; }
  .profile-safety-trigger { flex: 1; justify-content: center; }
  .profile-safety-dialog { align-items: end; padding: 12px; }
  .profile-safety-card { width: 100%; max-height: calc(100dvh - 24px); padding: 25px 18px 18px; }
  .profile-safety-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .profile-safety-dialog-actions .button { width: 100%; }

  .profile-preview-notice {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .profile-preview-notice > a {
    grid-column: 2;
  }

  .profile-gallery {
    padding: 9px;
  }

  .profile-gallery-main {
    aspect-ratio: 4 / 4.7;
  }

  .profile-view-intro {
    padding: 29px 22px 32px;
  }

  .profile-view-intro h1 {
    font-size: 43px;
  }

  .profile-intent-panel {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 15px;
  }

  .profile-intent-mark {
    width: 36px;
    height: 36px;
  }

  .profile-owner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-content-card,
  .profile-facts-card {
    padding: 23px 20px;
  }

  .profile-about-card {
    padding-left: 24px;
  }

  .profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-trait-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-trait-row h3 {
    margin-top: 0;
  }

  .profile-story-aside {
    grid-template-columns: 1fr;
  }

  .profile-privacy-card {
    grid-column: auto;
  }

  .profile-view-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 70px;
  }

  .main-nav > a:first-child {
    display: none;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav > a:not(.button) {
    font-size: 13px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding: 55px 0 65px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 55px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 500px;
    margin-top: 15px;
  }

  .orbit-one {
    width: 430px;
    height: 430px;
  }

  .orbit-two {
    width: 335px;
    height: 335px;
  }

  .profile-main {
    width: min(340px, 88%);
  }

  .profile-main > .portrait {
    height: 220px;
  }

  .profile-back {
    display: none;
  }

  .privacy-note {
    left: 0;
    bottom: 8px;
    width: min(290px, 88%);
  }

  .principle-grid,
  .step-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid > div,
  .principle-grid > div:first-child {
    min-height: auto;
    padding: 22px 4px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 78px 0;
  }

  .step-card.featured {
    transform: none;
  }

  .preference-demo::before {
    inset: -14px 12px 15px -10px;
  }

  .preference-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .free-card {
    padding: 38px 26px;
  }

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

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    gap: 30px;
  }

  .auth-aside,
  .registration-summary {
    min-height: auto;
    padding: 58px 25px;
  }

  .auth-panel-wrap,
  .registration-form-wrap {
    padding: 35px 14px 60px;
  }

  .auth-panel {
    padding: 28px 21px;
  }

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

  .form-between {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .dashboard-shell {
    padding-top: 18px;
  }

  .dashboard-sidebar {
    padding: 14px;
  }

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-step-section {
    padding-top: 26px;
  }

  .profile-step-header {
    align-items: flex-start;
  }

  .profile-step-number {
    display: none;
  }

  .profile-guidance,
  .profile-form-card {
    padding: 25px 20px;
  }

  .profile-form-card {
    padding: 0;
  }

  .profile-form-section {
    padding: 25px 20px;
  }

  .profile-form-heading {
    flex-direction: column;
    gap: 10px;
  }

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

  .range-grid,
  .contact-mode-grid {
    grid-template-columns: 1fr;
  }

  .height-range {
    max-width: none;
  }

  .preference-block {
    padding: 15px;
  }

  .preference-block-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-form-actions {
    padding: 22px 20px;
  }

  .profile-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .profile-form-actions .button {
    width: 100%;
  }

  .status-grid,
  .dashboard-columns,
  .match-empty-state {
    grid-template-columns: 1fr;
  }

  .status-card-primary {
    grid-column: auto;
  }

  .empty-profiles {
    max-width: 320px;
  }

  .match-empty-state.has-suggestions {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 24px 18px;
  }

  .dashboard-match-previews {
    width: min(100%, 360px);
    min-height: 230px;
    margin-inline: auto;
  }

  .dashboard-match-copy {
    text-align: center;
  }

  .dashboard-match-points {
    justify-content: center;
  }

  .dashboard-section,
  .onboarding-list {
    padding: 19px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-list li {
    grid-template-columns: 38px 1fr;
  }

  .onboarding-list li > b {
    grid-column: 2;
  }

  .legal-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-content aside {
    position: static;
  }
}

/* Kantet formsprog: rolige flader, skarpe kort og kun cirkler, hvor formen har en funktion. */
.skip-link,
.brand-mark,
.button,
.profile-main,
.profile-back,
.profile-back .portrait,
.preview-label,
.profile-main > .portrait,
.portrait span,
.match-score,
.compatibility-list,
.round-action,
.privacy-note,
.privacy-icon,
.step-card,
.step-icon,
.preference-demo::before,
.demo-window,
.selection-pill,
.demo-result,
.demo-result > span,
.free-card,
.flash,
.auth-panel,
.field input,
.field select,
.field textarea,
.form-errors,
.registration-summary li > b,
.registration-safety,
.auth-symbol,
.dashboard-sidebar,
.sidebar-avatar,
.dashboard-nav a,
.dashboard-nav i,
.sidebar-help,
.status-card,
.dashboard-section,
.onboarding-list,
.status-icon,
.progress-track,
.progress-track span,
.verification-badge,
.development-pill,
.count-badge,
.match-empty-state,
.empty-profile-card,
.empty-profile-card::after,
.compact-empty > span,
.onboarding-list li > span,
.legal-content aside {
  border-radius: 3px;
}

.profile-main,
.profile-back,
.step-card,
.preference-demo::before,
.demo-window,
.free-card,
.auth-panel,
.dashboard-sidebar,
.status-card,
.dashboard-section,
.onboarding-list,
.match-empty-state,
.empty-profile-card,
.legal-content aside {
  border-radius: 4px;
}

@media (max-width: 860px) {
  .identity-layout,
  .family-comparison {
    grid-template-columns: 1fr;
  }

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

  .photo-upload-form {
    grid-template-columns: 1fr;
  }

  .photo-upload-form > .button {
    min-height: 44px;
  }

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

@media (max-width: 560px) {
  .profile-setup-panel > summary {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .profile-setup-panel > summary > b {
    grid-column: 2;
  }

  .profile-setup-content {
    padding: 14px;
  }

  .profile-setup-grid {
    grid-template-columns: 1fr;
  }

  .profile-setup-footer {
    justify-content: flex-start;
  }

  .identity-choice-grid {
    grid-template-columns: 1fr;
  }

  .identity-panel,
  .family-side {
    padding: 14px;
  }

  .interest-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .interest-group summary {
    padding-left: 12px;
  }

  .interest-options {
    padding: 11px 12px 13px;
  }

  .photo-limit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .photo-upload-zone {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 78px;
  }

  .photo-upload-preview {
    width: 58px;
    height: 58px;
  }

  .profile-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visibility-checklist {
    grid-template-columns: 1fr 1fr;
  }
}

/* Profilsøgning: få tydelige valg, gensidig relevans og mennesket i centrum. */
.discovery-page { background: #f7f2ee; }
.discovery-section { padding: 43px 0 96px; }
.discovery-header { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: 28px; margin-bottom: 23px; }
.discovery-header h1 { max-width: 700px; margin: 6px 0 9px; color: #281f22; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.2vw, 50px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.discovery-header p { max-width: 710px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.discovery-principle { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #c8dcd6; border-left: 3px solid var(--green); background: #f1f7f5; }
.discovery-principle > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); font-size: 14px; font-weight: 850; }
.discovery-principle strong,
.discovery-principle small { display: block; }
.discovery-principle strong { color: #26564f; font-size: 11px; }
.discovery-principle small { margin-top: 1px; color: #647a75; font-size: 9px; line-height: 1.4; }

.discovery-filter { border: 1px solid #dfd2cc; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.discovery-filter-top { display: grid; grid-template-columns: 1.05fr 0.92fr 1fr 0.88fr 1.25fr auto; align-items: end; gap: 10px; padding: 20px 22px; }
.discovery-filter .field { gap: 7px; }
.discovery-filter .field > span,
.discovery-gender legend { color: #56484c; font-size: 10px; font-weight: 850; letter-spacing: 0.035em; text-transform: uppercase; }
.discovery-filter .field input,
.discovery-filter .field select { width: 100%; height: 44px; min-height: 44px; padding: 8px 10px; border-color: #d9cbc6; background-color: #fffdfb; font-size: 11px; }
.discovery-gender { min-width: 0; padding: 0; border: 0; }
.discovery-gender legend { margin-bottom: 7px; }
.discovery-gender > div { display: flex; min-height: 44px; }
.discovery-gender label { flex: 1 1 0; position: relative; min-width: 0; }
.discovery-gender input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.discovery-gender label span { height: 44px; display: grid; place-items: center; padding: 7px 10px; border: 1px solid #d9cbc6; border-right-width: 0; background: #fffdfb; color: #695b5f; font-size: 11px; font-weight: 750; cursor: pointer; }
.discovery-gender label:last-child span { border-right-width: 1px; }
.discovery-gender input:checked + span { position: relative; z-index: 1; border-color: var(--wine); border-right-width: 1px; background: #f8eaeb; color: var(--wine-dark); }
.discovery-gender input:focus-visible + span { outline: 3px solid rgba(123, 49, 69, 0.18); outline-offset: 2px; }
.discovery-age-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.discovery-submit { height: 44px; min-height: 44px; padding-block: 8px; white-space: nowrap; }
.discovery-distance { transition: opacity 140ms ease; }
.discovery-distance.is-inactive { opacity: 0.45; }
.discovery-advanced { border-top: 1px solid var(--line); }
.discovery-advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; color: #57494d; cursor: pointer; list-style: none; }
.discovery-advanced > summary::-webkit-details-marker { display: none; }
.discovery-advanced > summary span,
.discovery-advanced > summary b,
.discovery-advanced > summary small { display: block; }
.discovery-advanced > summary b { font-size: 12px; }
.discovery-advanced > summary small { margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 500; }
.discovery-advanced > summary i { color: var(--wine); font-size: 18px; font-style: normal; transition: transform 150ms ease; }
.discovery-advanced[open] > summary i { transform: rotate(180deg); }
.discovery-advanced-content { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr); gap: 30px; padding: 4px 22px 22px; }
.discovery-advanced-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.discovery-interests { min-width: 0; padding: 0; border: 0; }
.discovery-interests legend { color: #56484c; font-size: 11px; font-weight: 800; }
.discovery-interests > p { margin: 2px 0 10px; color: var(--muted); font-size: 10px; }
.discovery-interests > div { display: flex; flex-wrap: wrap; gap: 6px; }
.discovery-interests label { position: relative; }
.discovery-interests input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.discovery-interests label span { display: block; padding: 6px 8px; border: 1px solid #ddcfca; border-radius: 2px; background: #fffaf7; color: #66585c; font-size: 10px; font-weight: 700; cursor: pointer; }
.discovery-interests input:checked + span { border-color: var(--wine); background: #f8eaeb; color: var(--wine-dark); }
.discovery-interests input:checked + span::before { content: "✓ "; }
.discovery-interests input:focus-visible + span { outline: 3px solid rgba(123, 49, 69, 0.18); outline-offset: 2px; }
.discovery-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 22px; border-top: 1px solid var(--line); background: #faf6f3; color: var(--muted); font-size: 10px; }
.discovery-filter-foot a { color: var(--wine-dark); font-weight: 800; }
.active-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.active-filter-row strong { margin-right: 3px; color: #64565a; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.active-filter-row span { padding: 5px 8px; border: 1px solid #d8c7c4; border-radius: 2px; background: #fffaf7; color: #66575b; font-size: 10px; font-weight: 700; }
.active-filter-row a { margin-left: auto; color: var(--wine); font-size: 10px; font-weight: 800; }

.discovery-results-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 42px 0 17px; }
.discovery-results-head h2 { margin: 4px 0 3px; color: #302529; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; letter-spacing: -0.025em; }
.discovery-results-head p { margin: 0; color: var(--muted); font-size: 11px; }
.discovery-sort { display: flex; align-items: center; border: 1px solid #d9cbc6; background: var(--paper); }
.discovery-sort > span { padding: 9px 10px; color: #88797d; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.discovery-sort a { padding: 9px 10px; border-left: 1px solid #e4d9d4; color: #6d6064; font-size: 10px; font-weight: 750; }
.discovery-sort a:hover,
.discovery-sort a.active { background: #f7e9ea; color: var(--wine-dark); }

.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.discovery-card { min-width: 0; overflow: hidden; border: 1px solid #ddd0cb; border-radius: 4px; background: var(--paper); box-shadow: 0 12px 32px rgba(70, 44, 48, 0.07); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.discovery-card:hover { transform: translateY(-3px); border-color: #cdb8b6; box-shadow: 0 18px 38px rgba(70, 44, 48, 0.11); }
.discovery-card-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.65; background: #ded3cc; }
.discovery-card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 37%; background: linear-gradient(transparent, rgba(38, 27, 31, 0.56)); pointer-events: none; }
.discovery-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 280ms ease; }
.discovery-demo-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 9px; border: 1px solid rgba(255,255,255,.76); border-radius: 3px; background: rgba(39,31,32,.84); color: #fff; font-size: 10px; font-weight: 850; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.discovery-demo-badge + .discovery-relevance { top: 45px; }
.discovery-card:hover .discovery-card-photo img { transform: scale(1.018); }
.discovery-relevance { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 2px; background: rgba(244, 250, 248, 0.93); color: #235c54; font-size: 9px; font-weight: 850; letter-spacing: 0.045em; text-transform: uppercase; backdrop-filter: blur(5px); }
.discovery-contact { position: absolute; z-index: 1; right: 12px; bottom: 11px; color: var(--white); font-size: 9px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.discovery-activity { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 2px; background: rgba(45,38,39,.78); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(5px); }
.discovery-activity i,
.profile-activity i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c6bbb8; }
.activity-online i { background: #63c7a8; box-shadow: 0 0 0 3px rgba(99,199,168,.2); }
.activity-today i { background: #83bcae; }
.activity-recent i { background: #d4aa72; }
.discovery-card-body { padding: 17px 17px 19px; }
.discovery-card-title { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: start; gap: 11px; }
.discovery-card-title h3 { margin: 0; color: #302428; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.discovery-card-title h3 a { color: inherit; }
.discovery-card-title p { margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.discovery-card-title p b { color: #b4a39f; }
.discovery-open { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #d9c4c6; border-radius: 3px; color: var(--wine); font-size: 15px; font-weight: 800; }
.discovery-open:hover { border-color: var(--wine); background: var(--wine); color: var(--white); }
.discovery-purpose { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 15px; padding: 10px; border-left: 3px solid var(--wine); background: #f9f0ee; }
.discovery-purpose > span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--wine); color: var(--white); font-size: 10px; }
.discovery-purpose small,
.discovery-purpose strong { display: block; }
.discovery-purpose small { color: #987d83; font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.discovery-purpose strong { margin-top: 1px; overflow: hidden; color: var(--wine-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.discovery-common-traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.discovery-common-traits span { padding: 5px 7px; border: 1px solid #bdd3cd; border-radius: 2px; background: #edf6f3; color: #2a5e56; font-size: 9px; font-weight: 750; }
.discovery-reasons { display: grid; gap: 5px; margin: 12px 0 0; padding: 11px 0 0; border-top: 1px solid var(--line); list-style: none; }
.discovery-reasons li { display: grid; grid-template-columns: 15px minmax(0, 1fr); color: #76686c; font-size: 9px; line-height: 1.45; }
.discovery-reasons li span { color: var(--green); font-weight: 850; }
.discovery-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.discovery-card-actions form { margin: 0; }
.discovery-card-actions button,
.discovery-connected { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--wine); border-radius: 3px; cursor: pointer; font-size: 9px; font-weight: 850; }
.discovery-like { background: var(--wine); color: var(--white); }
.discovery-liked { border-color: #d5bcc1 !important; background: #f8e9eb; color: var(--wine-dark); }
.discovery-connected { border-color: #bad4cd; background: #edf6f3; color: #285d55; }
.discovery-card-actions > a:last-child { color: var(--wine-dark); font-size: 9px; font-weight: 800; }

.discovery-empty,
.discovery-gate { display: grid; grid-template-columns: 76px minmax(0, 620px); justify-content: center; align-items: start; gap: 26px; padding: 66px 30px; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.discovery-empty > span,
.discovery-gate-mark { width: 72px; height: 72px; display: grid; place-items: center; background: #f4e8e7; color: var(--wine); font-family: Georgia, serif; font-size: 27px; }
.discovery-empty h3,
.discovery-gate h2 { margin: 5px 0 8px; color: #34282c; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.discovery-empty p,
.discovery-gate p { margin: 0 0 21px; color: var(--muted); line-height: 1.65; }
.discovery-empty > div > div { display: flex; flex-wrap: wrap; gap: 9px; }
.discovery-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.discovery-pagination a { padding: 8px 11px; border: 1px solid #d7c7c3; background: var(--paper); color: var(--wine-dark); font-size: 11px; font-weight: 800; }
.discovery-pagination span { color: var(--muted); font-size: 10px; }
.discovery-pool-note { margin: 13px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.nav-count-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-count-link > span { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 9px; font-weight: 850; }
.nav-count-link > span[hidden] { display: none; }

.dashboard-heading-actions { display: flex; align-items: center; gap: 9px; }
.dashboard-heading-actions > a { color: var(--wine); font-size: 9px; font-weight: 850; }

.messages-section { min-height: 68vh; padding-top: 54px; padding-bottom: 76px; }
.messages-page-header { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 22px; }
.messages-page-header h1 { margin: 5px 0 4px; color: #302529; font-family: Georgia, serif; font-size: clamp(39px, 5vw, 56px); font-weight: 500; letter-spacing: -.035em; }
.messages-page-header p { margin: 0; color: var(--muted); font-size: 12px; }
.messages-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.messages-unread-summary { padding: 7px 9px; border: 1px solid #b9d1ca; border-radius: 2px; background: #edf6f3; color: #285d55; font-size: 9px; font-weight: 850; }
.messages-request-summary { padding: 7px 9px; border: 1px solid #d8bfc5; border-radius: 2px; background: #f8ecef; color: var(--wine); font-size: 9px; font-weight: 850; }
.messages-incoming-panel,
.messages-pending-panel { margin-bottom: 30px; }
.messages-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.messages-list-heading h2 { margin: 3px 0 2px; color: #3e3136; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.messages-list-heading p { margin: 0; color: #887a7e; font-size: 9px; }
.messages-list-heading > span { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #ddc9c5; border-radius: 2px; background: #fff9f7; color: var(--wine); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.messages-conversations-heading { margin-top: 2px; }
.messages-request-list { display: grid; overflow: hidden; border: 1px solid #c9dcd6; border-left: 4px solid var(--green); border-radius: 4px; background: #f7fbfa; box-shadow: 0 12px 30px rgba(40,89,80,.07); }
.message-request-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 112px; padding: 14px 16px 14px 13px; border-bottom: 1px solid #dbe9e5; }
.message-request-item:last-child { border-bottom: 0; }
.message-request-content { min-width: 0; display: grid; gap: 4px; }
.message-request-content .message-inbox-title a { min-width: 0; }
.message-request-label { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: #327064; font-size: 8px; font-weight: 800; }
.message-request-label i { color: var(--green); font-size: 11px; font-style: normal; }
.message-request-content p { margin: 2px 0 0; color: #66585c; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.message-request-actions { display: flex; align-items: center; gap: 7px; }
.message-request-actions form { margin: 0; }
.message-request-actions .button { min-height: 36px; padding: 7px 10px; font-size: 9px; }
.messages-pending-list { display: grid; overflow: hidden; border: 1px solid #d9cec9; border-left: 4px solid #ba8d73; border-radius: 4px; background: #fffaf5; box-shadow: 0 12px 30px rgba(63,48,43,.06); }
.message-pending-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 86px; padding: 13px 16px 13px 13px; border-bottom: 1px solid #eaded7; color: inherit; transition: background-color 150ms ease; }
.message-pending-item:last-child { border-bottom: 0; }
.message-pending-item:hover,
.message-pending-item:focus-visible { background: #fff5ee; outline: none; }
.message-pending-label { display: inline-flex; align-items: center; gap: 5px; justify-self: start; color: #8b6858; font-size: 8px; font-weight: 800; }
.message-pending-label i { width: 6px; height: 6px; border: 1px solid #a87862; border-radius: 50%; background: #e9c9b8; }
.message-pending-status { min-width: 74px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.message-pending-status b { padding: 6px 7px; border: 1px solid #d8bcae; border-radius: 2px; background: #fff; color: #8a5945; font-size: 8px; }
.message-pending-status i { color: var(--wine); font-size: 15px; font-style: normal; }
.message-pending-links { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: -3px; }
.message-pending-links a { color: var(--wine-dark); font-size: 10px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.message-pending-links .message-pending-open { display: inline-flex; align-items: center; min-height: 33px; padding: 7px 10px; border: 1px solid #d8bcae; text-decoration: none; background: #fff; }
.messages-inbox { display: grid; overflow: hidden; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.message-inbox-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) 36px; align-items: center; gap: 14px; min-height: 86px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: inherit; transition: background-color 150ms ease; }
.message-inbox-item:last-child { border-bottom: 0; }
.message-inbox-item:hover,
.message-inbox-item:focus-visible { background: #fff9f7; outline: none; }
.message-inbox-item.is-unread { border-left: 4px solid var(--wine); background: #fff9f7; }
.message-person-avatar { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dbcac6; border-radius: 3px; background: #f1e5e3; color: var(--wine); font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.message-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-inbox-content { min-width: 0; display: grid; gap: 3px; }
.message-inbox-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.message-inbox-title strong { overflow: hidden; color: #45373c; font-family: Georgia, serif; font-size: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.message-inbox-title time { flex: 0 0 auto; color: #9a8b8e; font-size: 9px; }
.message-inbox-content .profile-activity { justify-self: start; font-size: 8px; }
.message-inbox-preview { overflow: hidden; color: #796b6f; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.message-inbox-preview b { color: #5a484e; }
.message-inbox-item.is-unread .message-inbox-preview { color: #4f4145; font-weight: 750; }
.message-inbox-status { display: grid; place-items: center; }
.message-inbox-status b { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 5px; border-radius: 12px; background: var(--wine); color: #fff; font-size: 9px; }
.message-inbox-status i { color: var(--wine); font-size: 16px; font-style: normal; }
.messages-privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 15px 0 0; color: #887a7e; font-size: 9px; text-align: center; }
.messages-privacy-note span { color: var(--green); }
.messages-empty { display: grid; grid-template-columns: 74px minmax(0, 560px); justify-content: center; align-items: start; gap: 25px; padding: 60px 30px; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.messages-empty.is-compact { margin-top: 18px; padding-block: 35px; border-top-width: 1px; box-shadow: none; }
.messages-empty > span { width: 72px; height: 72px; display: grid; place-items: center; background: #f4e8e7; color: var(--wine); font-size: 25px; }
.messages-empty h2 { margin: 4px 0 8px; color: #34282c; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.messages-empty p { margin: 0 0 19px; color: var(--muted); line-height: 1.65; }

.request-view-page { background: var(--theme-page, #f7f2ee); }
.request-view-section { min-height: 72vh; padding-top: 34px; padding-bottom: 78px; }
.request-view-shell { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--theme-border, #d9cbc7); border-top: 6px solid var(--theme-accent, var(--wine)); background: var(--theme-surface, var(--paper)); box-shadow: 0 22px 54px rgba(42,32,36,.12); }
.request-view-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 28px; border-bottom: 1px solid var(--theme-border, var(--line)); background: var(--theme-strong, #39282e); }
.request-view-person { min-width: 0; display: flex; align-items: center; gap: 16px; }
.request-view-person .message-person-avatar { width: 68px; height: 68px; flex: 0 0 auto; border-color: rgba(255,255,255,.28); }
.request-view-person .kicker { color: var(--theme-highlight, #f0b38a); }
.request-view-person h1 { margin: 3px 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px,4vw,43px); font-weight: 500; letter-spacing: -.035em; }
.request-view-person .profile-activity { color: rgba(255,255,255,.78); font-size: 12px; }
.request-view-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 850; }
.request-view-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--theme-highlight, #f0b38a); }
.request-view-status.is-accepted i { background: #70b8a8; }
.request-view-status.is-declined i,
.request-view-status.is-blocked i { background: #c7bfc1; }
.request-view-message { margin: 30px 30px 22px; padding: 28px 30px; border-left: 6px solid var(--theme-accent, var(--wine)); background: var(--theme-surface-soft, #faf5f2); }
.request-view-message-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.request-view-message-head strong { color: var(--theme-text, #33272b); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; }
.request-view-message-head time { color: var(--theme-muted, var(--muted)); font-size: 12px; }
.request-view-message p { margin: 0; color: var(--theme-text, #44373b); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; white-space: normal; }
.request-view-state,
.request-view-response { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; gap: 16px; margin: 0 30px 28px; padding: 21px 22px; border: 1px solid var(--theme-border, #d8cbc7); background: #fff; }
.request-view-state > span { width: 52px; height: 52px; display: grid; place-items: center; color: var(--theme-accent, var(--wine)); background: var(--theme-accent-soft, #f4e8e7); font-size: 21px; }
.request-view-state strong,
.request-view-response strong { display: block; color: var(--theme-text, #3c3034); font-size: 16px; }
.request-view-state p,
.request-view-response p { margin: 5px 0 0; color: var(--theme-muted, var(--muted)); font-size: 14px; line-height: 1.6; }
.request-view-state .button { margin-top: 15px; }
.request-view-state.is-open > span { color: #fff; background: var(--theme-accent, var(--green)); }
.request-view-state.is-closed > span { color: #73686b; background: #ece8e7; }
.request-view-response { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.request-view-response-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.request-view-response-actions form { margin: 0; }
.request-view-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 30px; border-top: 1px solid var(--theme-border, var(--line)); color: var(--theme-muted, var(--muted)); background: var(--theme-surface-soft, #faf6f3); font-size: 12px; }
.request-view-footer a { color: var(--theme-accent, var(--wine)); font-weight: 850; }

.conversation-section { min-height: 75vh; padding-top: 34px; padding-bottom: 72px; }
.conversation-back { display: inline-flex; margin-bottom: 13px; color: var(--wine-dark); font-size: 10px; font-weight: 850; }
.conversation-shell { max-width: 860px; margin: 0 auto; overflow: hidden; border: 1px solid #d9cbc7; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.conversation-person { min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
.conversation-person .message-person-avatar { width: 50px; height: 50px; flex: 0 0 auto; font-size: 18px; }
.conversation-person strong { display: block; color: #44363b; font-family: Georgia, serif; font-size: 19px; }
.conversation-person small { margin-top: 3px; font-size: 8px; }
.conversation-profile-link { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #d9c8c4; border-radius: 2px; color: var(--wine); font-size: 9px; font-weight: 850; }
.conversation-trust-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 18px 0; padding: 10px 12px; border: 1px solid #c8dcd6; border-left: 3px solid var(--green); background: #f1f7f5; }
.conversation-trust-note > span { width: 32px; height: 32px; display: grid; place-items: center; background: #dcece7; color: var(--green); }
.conversation-trust-note strong,
.conversation-trust-note small { display: block; }
.conversation-trust-note strong { color: #285950; font-size: 10px; }
.conversation-trust-note small { margin-top: 2px; color: #61756f; font-size: 8px; line-height: 1.45; }
.conversation-messages { min-height: 260px; max-height: 58vh; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 22px 20px; scroll-behavior: smooth; background: #faf6f3; scrollbar-color: #cdb9b8 transparent; }
.conversation-day { display: flex; align-items: center; justify-content: center; margin: 5px 0; }
.conversation-day span { padding: 4px 7px; border: 1px solid #e2d7d2; border-radius: 2px; background: rgba(255,255,255,.82); color: #918286; font-size: 8px; font-weight: 750; }
.conversation-message { max-width: min(72%, 570px); align-self: flex-start; }
.conversation-message.is-own { align-self: flex-end; }
.conversation-bubble { padding: 10px 12px 7px; border: 1px solid #ddd0cb; border-radius: 7px 7px 7px 2px; background: #fff; box-shadow: 0 4px 12px rgba(54,42,46,.04); }
.conversation-message.is-own .conversation-bubble { border-color: var(--wine); border-radius: 7px 7px 2px 7px; background: var(--wine); color: #fff; }
.conversation-bubble p { margin: 0; color: #57494e; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.conversation-message.is-own .conversation-bubble p { color: #fff; }
.conversation-bubble time { display: block; margin-top: 4px; color: #9b8b8f; font-size: 7px; text-align: right; }
.conversation-message.is-own .conversation-bubble time { color: rgba(255,255,255,.68); }
.conversation-delivery { display: block; margin: 3px 3px 0; color: #8d7e82; font-size: 7px; text-align: right; }
.conversation-first-message { max-width: 520px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 15px; margin: auto; padding: 32px 20px; }
.conversation-first-message > span { width: 44px; height: 44px; display: grid; place-items: center; background: #f2e5e4; color: var(--wine); font-size: 18px; }
.conversation-first-message h2 { margin: 0 0 6px; color: #3c3034; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.conversation-first-message p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.conversation-compose { display: grid; gap: 9px; margin: 0; padding: 14px 18px; border-top: 1px solid #d9cbc7; background: #fffdfa; }
.conversation-compose label > span { display: block; margin-bottom: 6px; color: #5f4f54; font-size: 9px; font-weight: 850; }
.conversation-compose textarea { width: 100%; min-height: 86px; resize: vertical; padding: 11px 12px; border: 1px solid #d7c7c3; border-radius: 3px; background: #fff; color: #44373b; font: inherit; font-size: 12px; line-height: 1.55; }
.conversation-compose textarea:focus { border-color: var(--wine); outline: 2px solid rgba(123,49,69,.08); }
.conversation-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.conversation-compose-footer small { color: #928388; font-size: 8px; }
.conversation-compose-footer .button { min-height: 39px; padding: 8px 13px; font-size: 10px; }
.conversation-compose-footer .button[aria-busy="true"] { opacity: .68; }
.conversation-safety { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); background: #faf6f3; color: #8a7b7f; font-size: 8px; }
.conversation-safety a { color: var(--wine); font-weight: 800; }
.conversation-unavailable { min-height: 600px; display: grid; place-content: center; justify-items: center; text-align: center; }
.conversation-unavailable > span { width: 72px; height: 72px; display: grid; place-items: center; background: #f4e8e7; color: var(--wine); font-size: 24px; }
.conversation-unavailable h1 { margin: 18px 0 7px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.conversation-unavailable p { max-width: 520px; margin: 0 0 20px; color: var(--muted); line-height: 1.6; }

.action-notice { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 30px)); padding: 12px 15px; border: 1px solid #aacbc1; border-left: 4px solid var(--green); border-radius: 3px; background: #f3faf7; box-shadow: 0 16px 40px rgba(45,35,38,.18); color: #285950; font-size: 11px; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 150ms ease, transform 150ms ease; }
.action-notice.is-visible { opacity: 1; transform: translateY(0); }
.action-notice.is-error { border-color: #dfc4c7; border-left-color: var(--wine); background: #fff5f5; color: var(--wine-dark); }
[data-like-button][aria-busy="true"] { opacity: .65; }
.live-status-notice { position: fixed; z-index: 101; left: 22px; bottom: 22px; width: min(370px, calc(100vw - 30px)); display: grid; gap: 5px; padding: 14px 15px; border: 1px solid #aacbc1; border-left: 4px solid var(--green); border-radius: 3px; background: #f3faf7; box-shadow: 0 16px 40px rgba(45,35,38,.18); color: #285950; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 150ms ease, transform 150ms ease; }
.live-status-notice.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.live-status-notice > strong { font-family: Georgia, serif; font-size: 16px; font-weight: 600; }
.live-status-notice > span:not(.live-status-notice-actions) { color: #58716b; font-size: 10px; line-height: 1.5; }
.live-status-notice-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.live-status-notice-actions a,
.live-status-notice-actions button { color: var(--green); font: inherit; font-size: 9px; font-weight: 850; }
.live-status-notice-actions a { text-decoration: underline; text-underline-offset: 2px; }
.live-status-notice-actions button { padding: 0; border: 0; background: transparent; cursor: pointer; }

.notifications-section { min-height: 62vh; padding-top: 56px; padding-bottom: 72px; }
.notifications-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.notifications-header h1 { margin: 5px 0 4px; color: #302529; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 54px); font-weight: 500; letter-spacing: -.035em; }
.notifications-header p { margin: 0; color: var(--muted); font-size: 12px; }
.notifications-header form { margin: 0; }
.notification-list { display: grid; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-soft); }
.notification-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: #fff9f7; }
.notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d8c4c5; border-radius: 3px; background: #f7e9ea; color: var(--wine); font-size: 16px; font-weight: 850; }
.notification-item.is-unread .notification-icon { border-color: var(--wine); background: var(--wine); color: #fff; }
.notification-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.notification-title-row strong { color: #493b40; font-size: 13px; }
.notification-title-row i { padding: 3px 5px; border-radius: 2px; background: var(--wine); color: #fff; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.notification-item p { margin: 3px 0; color: #75676b; font-size: 11px; line-height: 1.5; }
.notification-item small { color: #9a8b8e; font-size: 9px; }
.notification-item form { margin: 0; }
.notification-item button { min-height: 34px; padding: 7px 10px; border: 1px solid #d6c4c1; border-radius: 3px; background: #fff; color: var(--wine-dark); cursor: pointer; font-size: 10px; font-weight: 800; }
.notifications-empty { display: grid; grid-template-columns: 72px minmax(0, 540px); justify-content: center; gap: 25px; padding: 58px 28px; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); background: var(--paper); }
.notifications-empty > span { width: 70px; height: 70px; display: grid; place-items: center; background: #f4e8e7; color: var(--wine); font-size: 25px; }
.notifications-empty h2 { margin: 3px 0 7px; color: #34282c; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.notifications-empty p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

@media (max-width: 720px) {
  .notifications-header { align-items: flex-start; flex-direction: column; }
  .notification-item { grid-template-columns: 42px minmax(0, 1fr); }
  .notification-item form { grid-column: 2; }
  .notifications-empty { grid-template-columns: 1fr; }
  .nav-count-link { font-size: 0 !important; }
  .notification-nav-link::before { content: "Notifikationer"; font-size: 13px; }
  .messages-nav-link::before { content: "Beskeder"; font-size: 13px; }
  .messages-page-header { align-items: flex-start; flex-direction: column; }
  .messages-header-actions { justify-content: flex-start; }
  .messages-list-heading { align-items: flex-start; }
  .messages-list-heading > span { margin-top: 2px; }
  .message-request-item { grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 10px 12px 8px; }
  .message-request-actions { grid-column: 2; flex-wrap: wrap; }
  .message-request-actions .button { min-height: 34px; }
  .message-pending-item { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 10px; padding: 11px 10px 11px 8px; }
  .message-pending-status { min-width: 0; }
  .message-pending-status b { display: none; }
  .message-pending-links { grid-column: 2 / -1; gap: 10px; }
  .message-inbox-item { grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 10px; padding: 11px; }
  .message-person-avatar { width: 47px; height: 47px; font-size: 18px; }
  .messages-empty { grid-template-columns: 1fr; padding: 36px 22px; }
  .request-view-section { padding-top: 20px; }
  .request-view-header { align-items: flex-start; flex-direction: column; padding: 20px; }
  .request-view-person .message-person-avatar { width: 58px; height: 58px; }
  .request-view-person h1 { font-size: 30px; }
  .request-view-message { margin: 18px; padding: 21px 19px; }
  .request-view-message-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .request-view-state,
  .request-view-response { grid-template-columns: 1fr; margin: 0 18px 20px; padding: 18px; }
  .request-view-footer { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
  .live-status-notice { right: 15px; bottom: 15px; left: 15px; width: auto; }
  .conversation-section { padding-top: 20px; }
  .conversation-header { padding: 12px; }
  .conversation-profile-link { font-size: 0; }
  .conversation-profile-link span { font-size: 13px; }
  .conversation-trust-note { margin-inline: 12px; }
  .conversation-messages { max-height: 54vh; padding: 17px 12px; }
  .conversation-message { max-width: 86%; }
  .conversation-compose { padding: 12px; }
  .conversation-safety { align-items: flex-start; flex-direction: column; padding-inline: 12px; }
}

@media (max-width: 1080px) {
  .discovery-filter-top { grid-template-columns: 1.05fr 0.9fr 1fr 0.9fr; }
  .discovery-relation { grid-column: 1 / 4; }
  .discovery-submit { grid-column: 4; justify-self: stretch; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .discovery-header { grid-template-columns: 1fr; gap: 18px; }
  .discovery-principle { max-width: 360px; }
  .discovery-filter-top { grid-template-columns: 1fr 1fr; }
  .discovery-relation { grid-column: 1 / -1; }
  .discovery-submit { grid-column: auto; justify-self: stretch; }
  .discovery-advanced-content { grid-template-columns: 1fr; }
  .discovery-results-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .discovery-section { padding-top: 27px; }
  .discovery-header h1 { font-size: 36px; }
  .discovery-filter-top { grid-template-columns: 1fr; padding: 17px; }
  .discovery-relation,
  .discovery-submit { grid-column: auto; }
  .discovery-advanced > summary { padding-inline: 17px; }
  .discovery-advanced-content { padding-inline: 17px; }
  .discovery-advanced-selects { grid-template-columns: 1fr; }
  .discovery-filter-foot { align-items: flex-start; flex-direction: column; padding-inline: 17px; }
  .active-filter-row a { width: 100%; margin: 3px 0 0; }
  .discovery-sort { width: 100%; overflow-x: auto; }
  .discovery-sort a { flex: 1; text-align: center; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-card-photo { aspect-ratio: 4 / 4; }
  .discovery-empty,
  .discovery-gate { grid-template-columns: 1fr; justify-items: start; padding: 34px 22px; }
}

/* Likes og matches */
.interest-section { min-height: 68vh; padding-top: 48px; padding-bottom: 78px; }
.interest-header { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: end; gap: 40px; margin-bottom: 24px; }
.interest-header h1 { margin: 4px 0 6px; color: #302529; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.interest-header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.interest-principle { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px; border: 1px solid #bfd7d1; border-left: 4px solid var(--green); background: #f0f7f5; }
.interest-principle > span { width: 39px; height: 39px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); font-size: 14px; }
.interest-principle strong,
.interest-principle small { display: block; }
.interest-principle strong { color: #315d56; font-size: 11px; }
.interest-principle small { margin-top: 2px; color: #6c827d; font-size: 8px; line-height: 1.4; }
.interest-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dbcac6; border-top: 4px solid var(--wine); background: var(--paper); box-shadow: var(--shadow-soft); }
.interest-tabs a { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-right: 1px solid var(--line); color: #74666a; font-size: 11px; font-weight: 800; text-align: center; }
.interest-tabs a:last-child { border-right: 0; }
.interest-tabs a:hover { background: #fcf7f4; color: var(--wine-dark); }
.interest-tabs a.active { background: #f8ecee; color: var(--wine-dark); box-shadow: inset 0 -3px var(--wine); }
.interest-tabs b { min-width: 25px; height: 25px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid #d8c7c4; background: #fffaf7; color: var(--wine); font-size: 9px; }
.interest-tabs a.active b { border-color: #cfaeb5; background: var(--wine); color: var(--white); }
.interest-context { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 16px 0 22px; padding: 13px 15px; border-left: 3px solid var(--green); background: rgba(237, 246, 243, .72); }
.interest-context p { margin: 0; color: #64736f; font-size: 10px; line-height: 1.55; }
.interest-context strong { color: #355f58; }
.interest-context > a { flex: 0 0 auto; color: var(--wine); font-size: 10px; font-weight: 850; }
.interest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.interest-card { min-width: 0; overflow: hidden; border: 1px solid #ded1cc; border-radius: 4px; background: var(--paper); box-shadow: 0 12px 30px rgba(70, 44, 48, .07); }
.interest-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.35; background: #e4d8d4; }
.interest-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(39, 29, 32, .62)); pointer-events: none; }
.interest-photo > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 240ms ease; }
.interest-card:hover .interest-photo > img { transform: scale(1.018); }
.interest-photo > span:first-child { width: 100%; height: 100%; display: grid; place-items: center; color: var(--wine); font-family: Georgia, serif; font-size: 58px; font-weight: 700; }
.interest-photo .profile-activity { position: absolute; z-index: 1; right: 11px; bottom: 10px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.65); background: rgba(45,38,39,.78); color: #fff; font-size: 8px; backdrop-filter: blur(4px); }
.interest-card-body { padding: 16px; }
.interest-card-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.interest-card-title h2 { margin: 0; overflow: hidden; color: #33272b; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.interest-card-title p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.interest-card-title time { display: grid; gap: 2px; color: #9b8b8f; font-size: 8px; font-weight: 750; text-align: right; white-space: nowrap; }
.interest-card-title time span { color: var(--wine); font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.interest-status { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 14px; padding: 10px; border-left: 3px solid var(--wine); background: #faf0ef; }
.interest-status > span { width: 31px; height: 31px; display: grid; place-items: center; background: var(--wine); color: #fff; font-size: 12px; }
.interest-status strong,
.interest-status small { display: block; }
.interest-status strong { color: var(--wine-dark); font-size: 10px; }
.interest-status small { margin-top: 2px; color: #8b747a; font-size: 8px; line-height: 1.35; }
.interest-status.is-waiting { border-left-color: #b79f79; background: #faf6ed; }
.interest-status.is-waiting > span { background: #b79f79; }
.interest-status.is-waiting strong { color: #6c5b40; }
.interest-status.is-waiting small { color: #8c816e; }
.interest-status.is-match { border-left-color: var(--green); background: #edf6f3; }
.interest-status.is-match > span { background: var(--green); }
.interest-status.is-match strong { color: #285d55; }
.interest-status.is-match small { color: #668079; }
.interest-actions { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.interest-actions form { margin: 0; }
.interest-actions .button { min-height: 37px; border-radius: 3px; padding: 8px 12px; font-size: 9px; }
.interest-remove { min-height: 37px; padding: 8px 11px; border: 1px solid #d8c5c5; border-radius: 3px; background: #fffafa; color: var(--wine); cursor: pointer; font-size: 9px; font-weight: 800; }
.interest-remove:hover { border-color: var(--wine); background: #f8e9eb; }
.interest-profile-link { margin-left: auto; color: var(--wine-dark); font-size: 9px; font-weight: 850; }
.interest-empty { display: grid; grid-template-columns: 72px minmax(0, 620px); justify-content: center; align-items: start; gap: 25px; padding: 62px 28px; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); background: var(--paper); box-shadow: var(--shadow-soft); }
.interest-empty > span { width: 68px; height: 68px; display: grid; place-items: center; background: #f4e8e7; color: var(--wine); font-family: Georgia, serif; font-size: 27px; }
.interest-empty h2 { margin: 3px 0 7px; color: #34282c; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.interest-empty p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.interest-empty .button { border-radius: 3px; }

/* Administration: roligt kontrolpanel med klare statusser og få, skarpe flader. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.admin-page { background: #f3eeea; }
.admin-page .site-header { background: #fffaf7; }
.admin-nav-entry { color: var(--wine) !important; }
.admin-bar { border-bottom: 1px solid #d9cbc5; background: #30272a; color: #fff; }
.admin-bar-inner { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-bar-inner > div { display: flex; align-items: baseline; gap: 13px; }
.admin-bar-label { color: #dcb2b9; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.admin-bar-inner strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; letter-spacing: -.01em; }
.admin-security-note { display: flex; align-items: center; gap: 7px; color: #d9cfcc; font-size: 10px; }
.admin-security-note i { color: #73b4a6; font-size: 8px; }
.admin-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 34px; padding-top: 30px; padding-bottom: 88px; }
.admin-sidebar { align-self: start; position: sticky; top: 20px; border: 1px solid #ddd0ca; background: #fffdfb; box-shadow: 0 9px 28px rgba(75,44,51,.05); }
.admin-sidebar nav { display: grid; padding: 8px; }
.admin-sidebar nav a { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; min-height: 43px; padding: 7px 10px; border-left: 3px solid transparent; color: #615458; font-size: 11px; font-weight: 760; }
.admin-sidebar nav a > span:first-child { color: #987e85; font-size: 14px; text-align: center; }
.admin-nav-count { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 12px; background: var(--wine); color: #fff; font-size: 8px; font-weight: 900; line-height: 1; }
.admin-sidebar nav a:hover { background: #faf3f0; color: var(--wine); }
.admin-sidebar nav a[aria-current="page"] { border-left-color: var(--wine); background: #f8e9e9; color: var(--wine-dark); }
.admin-sidebar-foot { display: grid; gap: 3px; padding: 14px 17px; border-top: 1px solid var(--line); background: #faf6f3; }
.admin-sidebar-foot span { color: #8a7c80; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-sidebar-foot a { color: var(--wine); font-size: 10px; font-weight: 780; }
.admin-content { min-width: 0; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 1px 0 24px; }
.admin-page-head h1 { margin: 5px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.3vw, 43px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-head-actions, .admin-head-status { display: flex; align-items: center; gap: 8px; }
.admin-head-actions .button { border-radius: 3px; }
.admin-alert { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 12px 15px; border: 1px solid #c7dcd5; border-left: 4px solid var(--green); background: #f1f8f5; }
.admin-alert-warning { border-color: #dfc6ac; border-left-color: #b46936; background: #fff7ee; }
.admin-alert-support { border-color: #d9bac2; border-left-color: var(--wine); background: #fff7f8; }
.admin-alert > div { display: grid; gap: 2px; }
.admin-alert strong { font-size: 11px; }
.admin-alert span { color: var(--muted); font-size: 10px; }
.admin-alert a { color: var(--wine); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.admin-metric-grid article { min-height: 126px; display: grid; align-content: center; padding: 18px; border: 1px solid #ded2cd; border-top: 3px solid var(--green); background: #fffdfb; box-shadow: 0 9px 28px rgba(75,44,51,.05); }
.admin-metric-grid article.needs-attention { border-top-color: var(--wine); background: #fff9f8; }
.admin-metric-grid span { color: #776a6e; font-size: 9px; font-weight: 820; letter-spacing: .065em; text-transform: uppercase; }
.admin-metric-grid strong { margin: 3px 0 0; color: #30272a; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; line-height: 1; }
.admin-metric-grid small { margin-top: 8px; color: #8a7c80; font-size: 9px; }
.admin-metric-grid small a { color: var(--wine); font-weight: 820; }
.admin-dashboard-grid, .admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-panel { border: 1px solid #ded2cd; border-top: 3px solid var(--wine); background: #fffdfb; box-shadow: 0 10px 30px rgba(75,44,51,.055); }
.admin-panel > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.admin-panel > header h2 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.admin-panel > header a { color: var(--wine); font-size: 9px; font-weight: 800; }
.admin-compact-list, .admin-case-list { display: grid; }
.admin-compact-list > a, .admin-case-list > a { min-height: 57px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 15px; border-bottom: 1px solid #eee4df; }
.admin-case-list > a { grid-template-columns: auto minmax(0,1fr); }
.admin-compact-list > a:last-child, .admin-case-list > a:last-child { border-bottom: 0; }
.admin-compact-list > a:hover, .admin-case-list > a:hover { background: #faf5f2; }
.admin-compact-list strong, .admin-compact-list small, .admin-case-list strong, .admin-case-list small { display: block; }
.admin-compact-list strong, .admin-case-list strong { font-size: 10px; }
.admin-compact-list small, .admin-case-list small { color: var(--muted); font-size: 8px; }
.admin-avatar { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #d9c6c5; background: #f6e8e7; color: var(--wine-dark); font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.admin-avatar-large { width: 56px; height: 56px; font-size: 23px; }
.admin-progress-text { color: var(--green); font-size: 10px; font-weight: 850; }
.admin-empty { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 24px; color: var(--muted); text-align: center; }
.admin-empty strong, .admin-empty span { display: block; }
.admin-empty strong { color: #55494d; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.admin-empty span { font-size: 10px; }
.admin-empty-good strong::before { content: "✓ "; color: var(--green); }
.admin-quick-panel { margin-top: 16px; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.admin-quick-grid a { min-height: 125px; display: grid; align-content: center; gap: 3px; padding: 18px; border-right: 1px solid var(--line); }
.admin-quick-grid a:last-child { border-right: 0; }
.admin-quick-grid a:hover { background: #faf5f2; }
.admin-quick-grid a > span { color: var(--wine); font-size: 18px; }
.admin-quick-grid strong { font-size: 11px; }
.admin-quick-grid small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.status-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 7px; border: 1px solid #d8cbc6; background: #f7f2ef; color: #6d6064; font-size: 8px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.status-active, .status-resolved { border-color: #bcd6ce; background: #edf7f3; color: #2b655b; }
.status-pending, .status-reviewing { border-color: #dfc9a8; background: #fff7e9; color: #815c28; }
.status-blocked, .status-open { border-color: #d9b7be; background: #fbecef; color: #8b3047; }
.status-dismissed { color: #776b6e; }
.status-admin { border-color: #bdaccc; background: #f2edf7; color: #5b3f75; }
.status-vip { border-color: #d8b865; background: #fff6dc; color: #765014; }
.status-expired { border-color: #d8d0cd; background: #f4f1ef; color: #766c6f; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(260px,1fr) 180px auto auto; align-items: end; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid #ded2cd; background: #fffdfb; }
.admin-filter-bar label, .admin-action-form label, .admin-report-form label, .admin-setting-fields label { display: grid; gap: 5px; }
.admin-filter-bar label > span, .admin-action-form label > span, .admin-report-form label > span, .admin-setting-fields label > span { color: #625559; font-size: 9px; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; }
.admin-filter-bar input, .admin-filter-bar select, .admin-action-form input, .admin-action-form select, .admin-action-form textarea, .admin-report-form select, .admin-report-form textarea, .admin-setting-fields input, .admin-setting-fields textarea { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d8cbc6; border-radius: 2px; background: #fff; color: var(--ink); font-size: 11px; }
.admin-filter-bar .button { min-height: 40px; border-radius: 3px; }
.admin-filter-reset { align-self: center; color: var(--wine); font-size: 9px; font-weight: 800; }
.admin-table-panel { border-top-color: var(--green); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid #d8cbc6; background: #faf5f2; color: #75676b; font-size: 8px; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #eee5e1; color: #554a4d; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fdf9f7; }
.admin-user-cell { display: grid; grid-template-columns: 34px minmax(145px,1fr); align-items: center; gap: 9px; }
.admin-user-cell strong, .admin-user-cell small, .admin-cell-note { display: block; }
.admin-user-cell strong { color: #3d3236; font-size: 10px; }
.admin-user-cell small, .admin-cell-note { color: #8a7c80; font-size: 8px; }
.admin-row-link { color: var(--wine); font-weight: 820; white-space: nowrap; }
.admin-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 16px; }
.admin-pagination a { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #d8cbc6; background: #fff; font-size: 10px; font-weight: 750; }
.admin-pagination a[aria-current="page"] { border-color: var(--wine); background: var(--wine); color: #fff; }
.admin-back { display: inline-block; margin-bottom: 13px; color: var(--wine); font-size: 10px; font-weight: 800; }
.admin-user-head { align-items: center; }
.admin-user-title { display: flex; align-items: center; gap: 14px; }
.admin-user-title h1 { margin-top: 2px; }
.admin-panel-intro { margin: 0; padding: 14px 17px 0; color: var(--muted); font-size: 10px; }
.admin-data-list { margin: 0; }
.admin-data-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 15px; padding: 9px 17px; border-bottom: 1px solid #eee5e1; }
.admin-data-list > div:last-child { border-bottom: 0; }
.admin-data-list dt { color: #807276; font-size: 9px; }
.admin-data-list dd { margin: 0; color: #483d40; font-size: 10px; font-weight: 720; }
.admin-action-form { display: grid; gap: 12px; padding: 14px 17px 18px; }
.admin-action-form textarea, .admin-report-form textarea, .admin-setting-fields textarea { resize: vertical; }
.admin-action-form label small, .admin-setting-fields label small { color: var(--muted); font-size: 8px; }
.admin-action-form .button { justify-self: start; border-radius: 3px; }
.admin-case-list-wide a { min-height: 62px; padding-inline: 17px; }
.admin-case-list-wide a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--wine); background: #fff5f5; }
.admin-panel-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.admin-tabs { display: flex; flex-wrap: wrap; margin-bottom: 16px; border: 1px solid #d8cbc6; background: #fffdfb; }
.admin-tabs a { padding: 9px 13px; border-right: 1px solid #e2d6d1; color: #6f6266; font-size: 9px; font-weight: 780; }
.admin-tabs a[aria-current="page"] { background: var(--wine); color: #fff; }
.admin-report-stack { display: grid; gap: 14px; }
.admin-report-card { border: 1px solid #ded2cd; border-left: 4px solid #c7b8b5; background: #fffdfb; box-shadow: 0 10px 30px rgba(75,44,51,.05); }
.admin-report-card.is-focused { border-left-color: var(--wine); box-shadow: 0 10px 34px rgba(123,49,69,.13); }
.admin-report-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.admin-report-card > header > div { display: flex; align-items: center; gap: 9px; }
.admin-report-card > header > strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.admin-report-date { color: var(--muted); font-size: 9px; }
.admin-report-people { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 15px 16px; }
.admin-report-people > span { color: #b49fa4; }
.admin-report-people > div { display: grid; }
.admin-report-people > div > span, .admin-report-details > span, .admin-existing-note > span { color: #8a7a7e; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.admin-report-people strong { font-size: 11px; }
.admin-report-people small { color: var(--muted); font-size: 9px; }
.admin-report-people a { margin-top: 3px; color: var(--wine); font-size: 8px; font-weight: 800; }
.admin-report-details, .admin-existing-note { margin: 0 16px 13px; padding: 11px 12px; border-left: 3px solid #c8b5ba; background: #faf4f2; }
.admin-existing-note { border-left-color: var(--green); background: #f2f8f6; }
.admin-report-details p, .admin-existing-note p { margin: 3px 0 0; color: #584b4f; font-size: 10px; }
.admin-report-form { display: grid; grid-template-columns: 165px minmax(260px,1fr) auto; align-items: end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: #faf7f4; }
.admin-report-form .button { min-height: 40px; border-radius: 3px; }
.admin-board-view-tabs { margin-bottom: 10px; border-color: #c8b7b2; }
.admin-board-view-tabs a { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; }
.admin-board-view-tabs a b { min-width: 20px; padding: 2px 6px; border-radius: 10px; background: rgba(123,49,69,.1); text-align: center; }
.admin-board-view-tabs a[aria-current="page"] b { background: rgba(255,255,255,.2); }
.admin-board-filter-tabs { margin-bottom: 16px; }
.admin-board-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; }
.admin-board-post-meta > div:first-child { display: grid; gap: 2px; }
.admin-board-post-meta > div:first-child > span { color: #8a7a7e; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.admin-board-post-meta a { color: var(--wine); font-size: 11px; }
.admin-board-post-meta small { color: var(--muted); font-size: 9px; }
.admin-board-post-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-board-post-stats span { padding: 6px 8px; border: 1px solid var(--line); background: #faf7f4; color: #6f6266; font-size: 9px; }
.admin-board-post-readonly { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.admin-board-comments { margin: 0 16px 14px; border: 1px solid var(--line); background: #fff; }
.admin-board-comments > summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; color: var(--wine); font-size: 10px; font-weight: 850; cursor: pointer; list-style: none; }
.admin-board-comments > summary::-webkit-details-marker { display: none; }
.admin-board-comments > summary::after { content: "+"; font-size: 16px; font-weight: 500; }
.admin-board-comments[open] > summary::after { content: "−"; }
.admin-board-comments > summary b { margin-left: auto; margin-right: 10px; padding: 2px 7px; background: #f7e9ea; font-size: 9px; }
.admin-board-comment-list { border-top: 1px solid var(--line); }
.admin-board-comment { padding: 12px; border-bottom: 1px solid var(--line); }
.admin-board-comment:last-child { border-bottom: 0; }
.admin-board-comment > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-board-comment > header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-board-comment > header strong { color: var(--ink); font-size: 10px; }
.admin-board-comment > header small, .admin-board-comment > header > span { color: var(--muted); font-size: 8px; }
.admin-board-comment > p { margin: 9px 0 11px; color: #584b4f; font-size: 10px; line-height: 1.55; }
.admin-board-comment-report { display: inline-block; margin-bottom: 10px; color: var(--wine); font-size: 9px; font-weight: 800; }
.admin-board-comment-form { display: grid; grid-template-columns: 150px minmax(220px, 1fr) auto; align-items: end; gap: 8px; padding-top: 10px; border-top: 1px solid #eee4e0; }
.admin-board-comment-form label { display: grid; gap: 4px; }
.admin-board-comment-form label > span { color: #786b6f; font-size: 8px; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.admin-board-comment-form input, .admin-board-comment-form select { width: 100%; min-height: 36px; box-sizing: border-box; padding: 7px 9px; border: 1px solid #d8cbc6; border-radius: 2px; background: #fff; color: var(--ink); font-size: 10px; }
.admin-board-comment-readonly { display: block; padding-top: 8px; border-top: 1px solid #eee4e0; color: var(--muted); font-size: 8px; }
.admin-setting-section { margin-bottom: 16px; }
.admin-setting-section > p { margin: 0; padding: 15px 17px; color: var(--muted); font-size: 10px; }
.admin-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.admin-switch-row > span:first-child { display: grid; gap: 2px; }
.admin-switch-row strong { font-size: 11px; }
.admin-switch-row small { color: var(--muted); font-size: 9px; }
.toggle-control { position: relative; flex: 0 0 auto; width: 45px; height: 24px; }
.toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-control i { position: absolute; inset: 0; border: 1px solid #cbbeba; border-radius: 20px; background: #e8dfdc; transition: background 150ms ease, border-color 150ms ease; }
.toggle-control i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 150ms ease; }
.toggle-control input:checked + i { border-color: var(--green); background: var(--green); }
.toggle-control input:checked + i::after { transform: translateX(21px); }
.toggle-control input:focus-visible + i { outline: 3px solid rgba(47,104,97,.28); outline-offset: 3px; }
.admin-setting-fields { display: grid; gap: 12px; padding: 16px 17px; }
.admin-access-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 17px 17px; }
.admin-access-options label { position: relative; cursor: pointer; }
.admin-access-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-access-options label > span { min-height: 104px; display: grid; grid-template-columns: 40px minmax(0,1fr); align-content: center; gap: 2px 11px; padding: 14px; border: 1px solid #d9ccc7; background: #fffdfb; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.admin-access-options label:hover > span { transform: translateY(-2px); border-color: #c8a97a; }
.admin-access-options input:checked + span { border-color: var(--wine); box-shadow: inset 4px 0 0 var(--wine); background: #fff7f5; }
.admin-access-options input:focus-visible + span { outline: 3px solid rgba(47,104,97,.28); outline-offset: 2px; }
.admin-access-options b { grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; align-self: center; border-radius: 50%; background: #fff0cf; color: #9a651e; font-size: 9px; }
.admin-access-options strong { align-self: end; color: #4f4145; font-size: 11px; }
.admin-access-options small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.admin-alert-vip { border-color: #e1cc92; border-left-color: #bd842c; background: #fff9e9; }
.admin-confirm-row { display: flex; align-items: flex-start; gap: 9px; margin: 0 17px 17px; padding: 11px; border: 1px solid #e2cbae; background: #fff8ef; color: #6d5438; font-size: 9px; cursor: pointer; }
.admin-confirm-row input { margin-top: 2px; }
.admin-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.admin-settings-actions > span { color: var(--muted); font-size: 9px; }
.admin-settings-actions .button { border-radius: 3px; }
.admin-audit-note { display: grid; gap: 2px; margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--green); background: #eef7f4; }
.admin-audit-note strong { font-size: 10px; }
.admin-audit-note span { color: var(--muted); font-size: 9px; }
.admin-audit-search { grid-template-columns: minmax(280px,1fr) auto auto; }
.admin-audit-table code { color: var(--wine-dark); font-size: 8px; }
.registration-closed-card { max-width: 700px; margin-inline: auto; text-align: center; }
.simple-page { min-height: 58vh; display: grid; align-items: center; padding: 70px 0; }
.simple-card { padding: 38px; border: 1px solid #ded2cd; border-top: 4px solid var(--wine); background: #fffdfb; box-shadow: var(--shadow-soft); }
.simple-card h1 { margin: 6px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.simple-card p { margin: 0 0 22px; color: var(--muted); }

.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 20%, #fffaf7 0, #f5ece8 54%, #ebdfda 100%); }
.maintenance-shell { width: min(100%, 670px); }
.maintenance-card { padding: 46px; border: 1px solid #dccdc7; border-top: 5px solid var(--wine); background: rgba(255,253,251,.97); box-shadow: 0 24px 70px rgba(75,44,51,.13); text-align: center; }
.maintenance-brand { margin-bottom: 34px; }
.maintenance-card h1 { margin: 7px 0 13px; color: #30272a; font-family: Georgia, serif; font-size: clamp(34px,6vw,53px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.maintenance-card > p { max-width: 510px; margin: 0 auto 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.maintenance-status { max-width: 490px; display: grid; grid-template-columns: 13px 1fr; align-items: center; gap: 12px; margin: 0 auto; padding: 13px 15px; border: 1px solid #c7ddd6; background: #f0f8f5; text-align: left; }
.maintenance-status > span { width: 10px; height: 10px; border: 2px solid #7eafa3; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #dcece7; }
.maintenance-status strong, .maintenance-status small { display: block; }
.maintenance-status strong { color: #285b53; font-size: 10px; }
.maintenance-status small { color: #678078; font-size: 9px; }
.maintenance-admin-link { display: inline-block; margin-top: 22px; color: #8d7b80; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }

/* Sticker-gaver: én ordløs hilsen pr. person, privat giver og offentlig samling. */
.profile-sticker-gift { margin-top: 13px; border: 1px solid #d9cbc6; border-left: 3px solid #c59044; background: #fffaf4; }
.profile-sticker-gift > summary { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.profile-sticker-gift > summary::-webkit-details-marker { display: none; }
.profile-sticker-gift > summary > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; background: #fff0cf; color: #bd7922; font-size: 16px; }
.profile-sticker-gift > summary > span:nth-child(2) { display: grid; }
.profile-sticker-gift > summary strong { color: #5b4242; font-size: 11px; }
.profile-sticker-gift > summary small { color: #8a7471; font-size: 8px; }
.profile-sticker-gift > summary i { color: var(--wine); font-size: 15px; font-style: normal; transition: transform 150ms ease; }
.profile-sticker-gift[open] > summary i { transform: rotate(180deg); }
.profile-sticker-gift form { padding: 13px; border-top: 1px solid #eaded7; background: #fffdfb; }
.profile-sticker-gift fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-sticker-gift legend { margin-bottom: 9px; color: #655256; font-size: 9px; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; }
.profile-sticker-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.profile-sticker-options label { position: relative; min-width: 0; cursor: pointer; }
.profile-sticker-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-sticker-options label > span { min-height: 96px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 6px 3px; border: 1px solid #e0d3cd; background: #fffaf7; text-align: center; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.profile-sticker-options label:hover > span { transform: translateY(-2px); border-color: #c8a97a; }
.profile-sticker-options input:checked + span { border-color: var(--wine); box-shadow: inset 0 -3px 0 var(--wine); background: #faeeee; }
.profile-sticker-options input:focus-visible + span { outline: 3px solid rgba(47,104,97,.28); outline-offset: 2px; }
.profile-sticker-options img { width: 57px; height: 57px; object-fit: contain; }
.profile-sticker-options strong { color: #624f53; font-size: 7px; line-height: 1.25; }
.profile-sticker-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 11px; }
.profile-sticker-submit p { max-width: 290px; margin: 0; color: #877579; font-size: 8px; line-height: 1.45; }
.profile-sticker-submit .button { min-height: 35px; padding: 7px 10px; border-radius: 3px; font-size: 9px; white-space: nowrap; }
.sticker-dialog-open { overflow: hidden; }
.sticker-confirm-dialog { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; opacity: 0; transition: opacity 170ms ease; }
.sticker-confirm-dialog[hidden] { display: none; }
.sticker-confirm-dialog.is-open { opacity: 1; }
.sticker-confirm-backdrop { position: fixed; inset: 0; background: rgba(38, 29, 32, .66); backdrop-filter: blur(4px); }
.sticker-confirm-card { position: relative; z-index: 1; width: min(100%, 480px); max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 30px 34px 28px; border: 1px solid #ddcec7; border-top: 4px solid var(--wine); border-radius: 4px; background: #fffdfb; box-shadow: 0 30px 90px rgba(34, 22, 27, .34); text-align: center; transform: translateY(14px) scale(.98); transition: transform 170ms ease; }
.sticker-confirm-dialog.is-open .sticker-confirm-card { transform: translateY(0) scale(1); }
.sticker-confirm-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #ddcec8; border-radius: 3px; background: #fffaf7; color: var(--wine-dark); cursor: pointer; font-size: 22px; line-height: 1; }
.sticker-confirm-close:hover { border-color: var(--wine); background: #f8ecec; }
.sticker-confirm-card > .kicker { display: block; padding-right: 28px; padding-left: 28px; }
.sticker-confirm-preview { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin: 14px auto 8px; border: 1px solid #e3d4ca; border-radius: 4px; background: radial-gradient(circle at 50% 42%, #fffefb 0, #fff4e4 58%, #f2e2d6 100%); }
.sticker-confirm-preview::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197, 144, 68, .23); border-radius: 3px; pointer-events: none; }
.sticker-confirm-preview > span { position: absolute; z-index: 2; top: 12px; right: 13px; color: #d99732; font-size: 22px; }
.sticker-confirm-preview img { position: relative; z-index: 1; width: 172px; height: 172px; display: block; object-fit: contain; }
.sticker-confirm-card h2 { margin: 9px 0 7px; color: #34272b; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
.sticker-confirm-card > p { margin: 0; color: #74666a; font-size: 11px; line-height: 1.6; }
.sticker-confirm-card > p > span,
.sticker-confirm-card > p > small { display: block; }
.sticker-confirm-card > p > small { margin-top: 2px; color: #9a7a69; font-size: 9px; }
.sticker-confirm-note { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 17px; padding: 10px 11px; border: 1px solid #c9dcd6; border-left: 3px solid var(--green); background: #f1f7f5; text-align: left; }
.sticker-confirm-note > span { width: 32px; height: 32px; display: grid; place-items: center; background: #dcece7; color: var(--green); font-size: 16px; }
.sticker-confirm-note p { margin: 0; color: #58716b; font-size: 9px; line-height: 1.5; }
.sticker-confirm-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.sticker-confirm-actions .button { min-width: 145px; min-height: 44px; border-radius: 3px; font-size: 11px; }

/* Personlige profilspørgsmål */
.profile-prompt-editor-list { display: grid; gap: 12px; }
.profile-prompt-editor-row { position: relative; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); gap: 14px; padding: 16px 16px 16px 52px; border: 1px solid var(--line); background: #fffdfb; }
.profile-prompt-editor-number { position: absolute; top: 16px; left: 15px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #dbc8c5; background: #f8eeee; color: var(--wine); font-size: 9px; font-weight: 850; }
.profile-prompt-answer textarea { min-height: 96px; }
.profile-prompt-tip { margin: 13px 0 0; padding: 11px 13px; border-left: 3px solid var(--green); background: #eef7f4; color: #58716b; font-size: 9px; line-height: 1.55; }
.profile-prompt-tip strong { color: #315f57; }
.profile-answer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.profile-answer-card { min-width: 0; padding: 16px; border: 1px solid #dfd1cc; border-top: 3px solid var(--green); background: #fffdfb; }
.profile-answer-card small { display: block; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .045em; line-height: 1.45; text-transform: uppercase; }
.profile-answer-card p { margin: 9px 0 0; color: #4b3c40; font-family: Georgia, serif; font-size: 16px; line-height: 1.45; }

@media (max-width: 820px) {
  .profile-prompt-editor-row { grid-template-columns: 1fr; padding-left: 48px; }
  .profile-answer-grid { grid-template-columns: 1fr; }
}
.sticker-confirm-actions .button-primary span { font-size: 14px; }
.profile-sticker-sent-state { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 11px; margin-top: 13px; padding: 10px 12px; border: 1px solid #c8dcd5; border-left: 3px solid var(--green); background: #f1f8f5; }
.profile-sticker-sent-state img { width: 56px; height: 56px; object-fit: contain; }
.profile-sticker-sent-state strong, .profile-sticker-sent-state small, .profile-sticker-sent-state a { display: block; }
.profile-sticker-sent-state strong { color: #315d56; font-size: 10px; }
.profile-sticker-sent-state small { margin-top: 1px; color: #688078; font-size: 8px; line-height: 1.4; }
.profile-sticker-sent-state a { margin-top: 3px; color: var(--wine); font-size: 8px; font-weight: 800; }
.profile-sticker-vip-state { display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 11px; margin-top: 13px; padding: 11px 12px; border: 1px solid #e0c98f; border-left: 3px solid #bd842c; background: #fff9e9; }
.profile-sticker-vip-state > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #f6df9f; color: #765014; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.profile-sticker-vip-state strong, .profile-sticker-vip-state small { display: block; }
.profile-sticker-vip-state strong { color: #65491c; font-size: 10px; }
.profile-sticker-vip-state small { margin-top: 2px; color: #866f49; font-size: 8px; line-height: 1.45; }

.profile-sticker-showcase { padding: 19px; border: 1px solid #e0d2ca; border-top: 3px solid #c59044; background: #fffaf4; box-shadow: var(--shadow-soft); }
.profile-sticker-showcase-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.profile-sticker-showcase h2 { margin: 1px 0 0; color: #3b2c30; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.profile-sticker-showcase-head > strong { padding: 4px 7px; border: 1px solid #e1c997; background: #fff1d4; color: #8a5a1d; font-size: 8px; text-transform: uppercase; white-space: nowrap; }
.profile-sticker-collection { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.profile-sticker-collection > div { min-width: 0; text-align: center; }
.profile-sticker-collection > div > span { position: relative; min-height: 77px; display: grid; place-items: center; border: 1px solid #e7dcd6; background: rgba(255,255,255,.72); }
.profile-sticker-collection img { width: 72px; height: 72px; object-fit: contain; }
.profile-sticker-collection b { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 12px; background: var(--wine); color: #fff; font-size: 8px; }
.profile-sticker-collection small { display: block; margin-top: 3px; overflow: hidden; color: #765f60; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.profile-sticker-empty { margin: 14px 0 0; padding: 12px; border: 1px dashed #dbc7ba; color: #806d6b; font-size: 9px; text-align: center; }
.profile-sticker-privacy { margin: 12px 0 0; color: #8d7b7d; font-size: 8px; line-height: 1.5; }
.profile-sticker-archive-link { display: inline-block; margin-top: 6px; color: var(--wine); font-size: 9px; font-weight: 820; }

.stickers-page { background: #f7f2ee; }
.stickers-section { min-height: 62vh; padding-top: 48px; padding-bottom: 88px; }
.stickers-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.stickers-header h1 { margin: 5px 0 5px; color: #302529; font-family: Georgia, serif; font-size: clamp(39px,5vw,56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stickers-header p { max-width: 670px; margin: 0; color: var(--muted); font-size: 12px; }
.stickers-total { min-width: 118px; padding: 12px 15px; border: 1px solid #dcc696; border-top: 3px solid #c59044; background: #fff8e9; text-align: center; }
.stickers-total strong, .stickers-total span { display: block; }
.stickers-total strong { color: var(--wine-dark); font-family: Georgia, serif; font-size: 29px; line-height: 1; }
.stickers-total span { margin-top: 4px; color: #80674c; font-size: 8px; font-weight: 780; text-transform: uppercase; }
.sticker-access-banner { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; margin-bottom: 16px; padding: 11px 14px; border: 1px solid #bfd8cf; border-left: 4px solid var(--green); background: #f0f8f5; }
.sticker-access-banner > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: #dcefe8; color: #28645a; font-size: 10px; font-weight: 900; }
.sticker-access-banner strong, .sticker-access-banner small { display: block; }
.sticker-access-banner strong { color: #355d56; font-size: 10px; }
.sticker-access-banner small { margin-top: 1px; color: #668079; font-size: 8px; }
.sticker-access-banner.is-vip-mode { border-color: #e0c98f; border-left-color: #bd842c; background: #fff9e9; }
.sticker-access-banner.is-vip-mode > span { background: #f6df9f; color: #765014; }
.sticker-access-banner.is-vip-mode strong { color: #65491c; }
.sticker-access-banner.is-vip-mode small { color: #866f49; }
.sticker-collection-card, .sticker-archive-panel { border: 1px solid #ded2cd; border-top: 4px solid var(--wine); background: var(--paper); box-shadow: var(--shadow-soft); }
.sticker-section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sticker-section-head h2 { margin: 2px 0 0; color: #382c30; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.sticker-section-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 9px; text-align: right; }
.sticker-section-head > span { min-width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #dbcac5; background: #faf3f1; color: var(--wine); font-size: 9px; font-weight: 850; }
.sticker-catalog-grid { display: grid; grid-template-columns: repeat(5,1fr); }
.sticker-catalog-grid article { min-width: 0; display: grid; align-content: start; justify-items: center; padding: 18px 12px; border-right: 1px solid var(--line); text-align: center; }
.sticker-catalog-grid article:last-child { border-right: 0; }
.sticker-catalog-grid article:not(.is-collected) { filter: saturate(.45); opacity: .72; }
.sticker-catalog-grid article > div { position: relative; width: 122px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.sticker-catalog-grid img { width: 100%; height: 100%; object-fit: contain; }
.sticker-catalog-grid b { position: absolute; top: 4px; right: 4px; min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 20px; background: var(--wine); color: #fff; font-size: 9px; }
.sticker-catalog-grid article > strong { margin-top: 4px; color: #4d3e42; font-size: 10px; }
.sticker-catalog-grid article > p { max-width: 155px; margin: 3px 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.sticker-catalog-grid article > small { margin-top: 3px; color: var(--green); font-size: 8px; font-weight: 800; }
.sticker-archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.sticker-archive-panel { border-top-color: var(--green); }
.sticker-archive-list { display: grid; }
.sticker-archive-list article { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 12px; min-height: 96px; padding: 10px 15px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.sticker-archive-list article:target { background: #fff5df; box-shadow: inset 4px 0 0 #c59044; }
.sticker-archive-list article:last-child { border-bottom: 0; }
.sticker-archive-list img { width: 74px; height: 74px; object-fit: contain; }
.sticker-archive-list strong, .sticker-archive-list p, .sticker-archive-list small, .sticker-archive-list a { display: block; }
.sticker-archive-list strong { color: #4c3d41; font-size: 11px; }
.sticker-archive-list p { margin: 1px 0; color: #76676b; font-size: 9px; }
.sticker-archive-list small { color: #9a898d; font-size: 8px; }
.sticker-archive-list a { margin-top: 4px; color: var(--wine); font-size: 8px; font-weight: 800; }
.sticker-archive-empty { min-height: 160px; display: grid; grid-template-columns: 54px minmax(0,330px); align-items: center; justify-content: center; gap: 16px; padding: 28px; }
.sticker-archive-empty > span { width: 52px; height: 52px; display: grid; place-items: center; background: #f8ead2; color: #b87626; font-size: 20px; }
.sticker-archive-empty strong { color: #4f4145; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.sticker-archive-empty p { margin: 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.sticker-archive-empty a { color: var(--wine); font-size: 9px; font-weight: 800; }

@media (max-width: 920px) {
  .profile-sticker-options { grid-template-columns: repeat(3,1fr); }
  .sticker-catalog-grid { grid-template-columns: repeat(3,1fr); }
  .sticker-catalog-grid article { border-bottom: 1px solid var(--line); }
  .sticker-archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .profile-sticker-options { grid-template-columns: repeat(2,1fr); }
  .profile-sticker-submit { align-items: stretch; flex-direction: column; }
  .profile-sticker-submit .button { width: 100%; }
  .sticker-confirm-dialog { align-items: end; padding: 12px; }
  .sticker-confirm-card { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 25px 18px 18px; }
  .sticker-confirm-preview { width: 154px; height: 154px; margin-top: 12px; }
  .sticker-confirm-preview img { width: 140px; height: 140px; }
  .sticker-confirm-card h2 { font-size: 25px; }
  .sticker-confirm-actions { align-items: stretch; flex-direction: column-reverse; }
  .sticker-confirm-actions .button { width: 100%; }
  .stickers-section { padding-top: 28px; }
  .stickers-header { align-items: flex-start; flex-direction: column; }
  .stickers-total { min-width: 110px; }
  .sticker-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .sticker-section-head > p { text-align: left; }
  .sticker-catalog-grid { grid-template-columns: 1fr 1fr; }
  .sticker-catalog-grid article:nth-child(2n) { border-right: 0; }
  .sticker-catalog-grid article > div { width: 106px; }
  .admin-access-options { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .admin-metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-quick-grid { grid-template-columns: 1fr 1fr; }
  .admin-quick-grid a:nth-child(2) { border-right: 0; }
  .admin-quick-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-report-form { grid-template-columns: 150px 1fr; }
  .admin-report-form .button { grid-column: 2; justify-self: start; }
  .admin-board-comment-form { grid-template-columns: 140px 1fr; }
  .admin-board-comment-form .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 800px) {
  .admin-bar-inner { min-height: 50px; }
  .admin-security-note { display: none; }
  .admin-layout { display: block; padding-top: 16px; }
  .admin-sidebar { position: static; margin-bottom: 22px; overflow-x: auto; }
  .admin-sidebar nav { display: flex; min-width: max-content; padding: 6px; }
  .admin-sidebar nav a { grid-template-columns: 20px auto auto; min-height: 38px; border-left: 0; border-bottom: 3px solid transparent; }
  .admin-sidebar nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--wine); }
  .admin-sidebar-foot { display: none; }
  .admin-dashboard-grid, .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-filter-bar { grid-template-columns: 1fr 150px; }
  .admin-filter-bar .button, .admin-filter-reset { justify-self: start; }
  .admin-audit-search { grid-template-columns: 1fr auto; }
  .admin-audit-search .admin-filter-reset { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  .admin-bar-inner > div { display: grid; gap: 0; }
  .admin-layout { width: min(calc(100% - 24px), var(--shell)); }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .button { flex: 1; }
  .admin-metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-metric-grid article { min-height: 105px; padding: 13px; }
  .admin-metric-grid strong { font-size: 27px; }
  .admin-quick-grid { grid-template-columns: 1fr; }
  .admin-quick-grid a { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-filter-bar, .admin-audit-search { grid-template-columns: 1fr; }
  .admin-report-card > header { align-items: flex-start; flex-direction: column-reverse; }
  .admin-report-people { grid-template-columns: 1fr; }
  .admin-report-people > span { transform: rotate(90deg); justify-self: start; }
  .admin-report-form { grid-template-columns: 1fr; }
  .admin-report-form .button { grid-column: auto; }
  .admin-board-post-meta { align-items: flex-start; flex-direction: column; }
  .admin-board-post-stats { justify-content: flex-start; }
  .admin-board-comments { margin-inline: 10px; }
    .admin-board-comment-form { grid-template-columns: 1fr; }
  .admin-board-comment > header { flex-direction: column; }
  .admin-board-comment-form .button { grid-column: auto; }
  .admin-data-list > div { grid-template-columns: 115px 1fr; }
  .admin-settings-actions { align-items: stretch; flex-direction: column; }
  .admin-settings-actions .button { width: 100%; }
  .maintenance-page { padding: 14px; }
  .maintenance-card { padding: 32px 20px; }
}
.interest-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 27px; }
.interest-pagination a { padding: 8px 11px; border: 1px solid #d7c7c3; background: var(--paper); color: var(--wine-dark); font-size: 10px; font-weight: 800; }
.interest-pagination span { color: var(--muted); font-size: 9px; }
.interest-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 28px; padding: 15px; border: 1px solid #c5dad5; background: #f0f7f5; }
.interest-note > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); }
.interest-note strong { display: block; color: #315d56; font-size: 10px; }
.interest-note p { margin: 2px 0 0; color: #6c807b; font-size: 9px; line-height: 1.5; }

@media (max-width: 980px) {
  .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .interest-section { padding-top: 29px; }
  .interest-header { grid-template-columns: 1fr; gap: 17px; }
  .interest-principle { max-width: 370px; }
  .interest-context { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (max-width: 590px) {
  .header-inner > .brand > span:last-child { display: none; }
  .main-nav { gap: 10px; }
  .main-nav > a:not(.button) { font-size: 12px; }
  .interest-header h1 { font-size: 38px; }
  .interest-tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .interest-tabs a { min-height: 56px; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-photo { aspect-ratio: 4 / 3.5; }
  .interest-empty { grid-template-columns: 1fr; justify-items: start; padding: 35px 22px; }
}

/* Mobil og tablet: den samme side, tilpasset skærmen uden serverafhængige temaer. */
@media (max-width: 1080px) {
  .header-inner {
    position: relative;
    min-height: 68px;
    gap: 18px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    z-index: 30;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid #ddcfca;
    border-top: 3px solid var(--wine);
    border-radius: 0 0 4px 4px;
    background: rgba(255, 253, 251, 0.99);
    box-shadow: 0 22px 46px rgba(63, 42, 47, 0.18);
  }

  .js .main-nav:not(.is-open) {
    display: none;
  }

  .main-nav > a,
  .main-nav > a.button,
  .main-nav > a:not(.button) {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #eee4df;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    color: #514448;
    font-size: 13px;
    text-align: left;
  }

  .main-nav > a:last-child {
    border-bottom: 0;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible,
  .main-nav > a.button:hover {
    background: #f8efed;
    color: var(--wine-dark);
    transform: none;
  }

  .main-nav > a:not(.button)[aria-current="page"] {
    background: #f8efed;
    color: var(--wine-dark);
  }

  .main-nav > a.button-primary {
    margin-top: 5px;
    background: var(--wine);
    color: var(--white);
  }

  .main-nav > a.button-primary:hover,
  .main-nav > a.button-primary:focus-visible {
    background: var(--wine-dark);
    color: var(--white);
  }

  .main-nav .nav-count-link > span {
    min-width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .admin-nav-entry {
    background: #f7f0eb !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .profile-photo-actions button,
  .discovery-card-actions button,
  .message-request-actions .button,
  .notification-item button,
  .conversation-compose-footer .button,
  .interest-pagination a,
  .discovery-pagination a {
    min-height: 44px;
  }

  .admin-table-wrap,
  .discovery-sort,
  .interest-tabs,
  .admin-sidebar {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-inner {
    min-height: 64px;
  }

  .header-inner > .brand > span:last-child {
    display: inline;
  }

  .main-nav > a:first-child {
    display: flex;
  }

  .main-nav,
  .main-nav > a:not(.button) {
    font-size: 13px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-links:last-child {
    grid-column: 1 / -1;
  }

  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }

  .flash-stack {
    margin-top: 10px;
  }

  .flash {
    padding: 12px;
    font-size: 12px;
  }

  .messages-section,
  .notifications-section,
  .interest-section,
  .stickers-section {
    padding-top: 28px;
    padding-bottom: 58px;
  }

  .messages-page-header h1,
  .notifications-header h1,
  .interest-header h1,
  .stickers-header h1 {
    font-size: 38px;
  }

  .messages-list-heading {
    gap: 10px;
  }

  .message-inbox-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .message-inbox-title time {
    order: -1;
  }

  .conversation-compose-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .conversation-compose-footer .button {
    width: 100%;
  }

  .conversation-message {
    max-width: 90%;
  }

  .action-notice,
  .live-status-notice {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
  }

  .action-notice {
    font-size: 10px;
  }

  .admin-sidebar nav a {
    min-height: 44px;
  }

  .admin-table {
    min-width: 680px;
  }
}

@media (max-width: 460px) {
  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .nav-toggle {
    min-width: 76px;
    padding-inline: 9px;
  }

  .maintenance-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }

  .maintenance-card > .kicker {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: 42px;
  }

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

  .footer-intro,
  .footer-links:last-child {
    grid-column: auto;
  }

  .profile-photo-grid,
  .visibility-checklist,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .match-empty-state.has-suggestions {
    padding: 21px 11px;
  }

  .dashboard-match-previews {
    min-height: 211px;
  }

  .dashboard-match-card {
    width: 130px;
    height: 192px;
  }

  .dashboard-match-card-1 { left: 0; }
  .dashboard-match-card-2 { left: calc(50% - 65px); }
  .dashboard-match-card-3 { right: 0; }

  .dashboard-match-copy .button {
    width: 100%;
  }

  .dashboard-heading-actions,
  .messages-header-actions,
  .profile-like-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-heading-actions > a,
  .profile-like-row form,
  .profile-like-row .button {
    width: 100%;
  }

  .profile-sticker-options,
  .sticker-catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sticker-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sticker-section-head > p {
    text-align: left;
  }
}

/* Valgfrit gaminglag: samme rolige datingdesign, uden neon eller et separat gamerunivers. */
.gaming-profile-page { background: #f7f2ee; }
.gaming-editor-section { padding: 42px 0 96px; }
.gaming-editor-header { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 30px; margin: 20px 0 24px; }
.gaming-editor-header h1 { max-width: 760px; margin: 7px 0 10px; color: #2e2427; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.gaming-editor-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; }
.gaming-editor-emblem,
.profile-gaming-emblem { position: relative; display: grid; place-items: center; border: 1px solid #d9c4a1; background: #fff6df; color: #c8862b; transform: rotate(45deg); }
.gaming-editor-emblem { width: 84px; height: 84px; justify-self: end; font-size: 31px; box-shadow: 0 13px 28px rgba(95,66,40,.1); }
.gaming-editor-emblem i,
.profile-gaming-emblem i { position: absolute; color: var(--wine); font-size: .42em; font-style: normal; transform: rotate(-45deg); }
.gaming-editor-card { overflow: hidden; border: 1px solid #ddd0cb; border-top: 4px solid var(--wine); background: var(--paper); box-shadow: var(--shadow-soft); }
.gaming-master-switch { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 27px; background: linear-gradient(110deg, #fffdfb 0%, #f7eeea 100%); }
.gaming-master-switch h2 { margin: 3px 0 4px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.gaming-master-switch p { max-width: 700px; margin: 0; color: var(--muted); font-size: 11px; }
.toggle-control-large { width: 70px; height: 34px; }
.toggle-control-large i::after { width: 24px; height: 24px; top: 4px; left: 4px; }
.toggle-control-large input:checked + i::after { transform: translateX(36px); }
.toggle-control-large > span { position: absolute; top: 39px; left: 50%; width: 90px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; transform: translateX(-50%); }
.gaming-editor-fields { border-top: 1px solid var(--line); }
.js .gaming-editor-fields[aria-hidden="true"] { display: none; }
.gaming-form-section { padding: 27px; border-bottom: 1px solid var(--line); }
.gaming-section-heading { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 12px; margin-bottom: 17px; }
.gaming-section-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dcc8c2; color: var(--wine); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.gaming-section-heading h2 { margin: 0; color: #3e3236; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.gaming-section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.gaming-radio-grid,
.gaming-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gaming-radio-grid label,
.gaming-choice-grid label,
.gaming-radio-list label { position: relative; min-width: 0; cursor: pointer; }
.gaming-radio-grid input,
.gaming-choice-grid input,
.gaming-radio-list input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gaming-radio-grid label > span,
.gaming-choice-grid label > span,
.gaming-radio-list label > span { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #ddcfca; background: #fffaf7; color: #5d5054; font-size: 10px; font-weight: 720; line-height: 1.35; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.gaming-radio-grid label:hover > span,
.gaming-choice-grid label:hover > span,
.gaming-radio-list label:hover > span { border-color: #c9adb2; transform: translateY(-1px); }
.gaming-radio-grid input:checked + span,
.gaming-choice-grid input:checked + span,
.gaming-radio-list input:checked + span { border-color: var(--wine); background: #f8e9e9; color: var(--wine-dark); box-shadow: inset 3px 0 0 var(--wine); }
.gaming-radio-grid input:focus-visible + span,
.gaming-choice-grid input:focus-visible + span,
.gaming-radio-list input:focus-visible + span { outline: 3px solid rgba(123,49,69,.18); outline-offset: 2px; }
.gaming-radio-grid b,
.gaming-choice-grid b,
.gaming-radio-list b { color: #b79554; font-size: 9px; }
.gaming-game-columns,
.gaming-category-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gaming-game-columns fieldset,
.gaming-category-columns fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid #dfd3ce; background: #fcf8f5; }
.gaming-game-columns legend,
.gaming-category-columns legend { padding: 0 7px; color: #514347; font-size: 11px; font-weight: 850; }
.gaming-game-columns fieldset > p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.gaming-game-columns fieldset > label { display: grid; grid-template-columns: 27px minmax(0,1fr); align-items: center; gap: 7px; margin-top: 7px; }
.gaming-game-columns fieldset > label > span { height: 40px; display: grid; place-items: center; border: 1px solid #ddcfca; background: #f3e9e5; color: var(--wine); font-size: 9px; font-weight: 850; }
.gaming-game-columns input { width: 100%; height: 40px; padding: 8px 10px; border: 1px solid #d9cbc6; border-radius: 2px; background: #fff; color: var(--ink); font-size: 11px; }
.gaming-category-columns .gaming-choice-grid { grid-template-columns: 1fr 1fr; }
.gaming-radio-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gaming-radio-list label > span { min-height: 58px; }
.gaming-privacy-section { background: #f3f8f6; }
.gaming-visibility-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gaming-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 27px; background: #f8f3ef; }
.gaming-editor-actions > span { color: var(--muted); font-size: 9px; }
.gaming-editor-actions > div { display: flex; gap: 8px; }
.gaming-unavailable-card .gaming-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 15px; background: #fff1cd; color: #b77923; transform: rotate(45deg); }
.profile-gaming-callout { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: -1px 0 0; padding: 17px 20px; border: 1px solid #d8c9a9; border-left: 4px solid #c58a32; background: #fff9e9; }
.profile-gaming-callout > span { position: relative; width: 42px; height: 42px; display: grid; place-items: center; background: #f2dcae; color: #a66b1f; transform: rotate(45deg); }
.profile-gaming-callout > span i { position: absolute; color: var(--wine); font-size: 9px; font-style: normal; transform: rotate(-45deg); }
.profile-gaming-callout strong,
.profile-gaming-callout small { display: block; }
.profile-gaming-callout strong { color: #54422f; font-size: 11px; }
.profile-gaming-callout small { color: #7b6b58; font-size: 9px; }
.profile-gaming-callout > b { color: var(--wine); font-size: 9px; white-space: nowrap; }
.profile-setup-optional { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 11px; padding: 13px; border: 1px solid #d9c8a7; border-left: 3px solid #c58a32; background: #fff9e9; }
.profile-setup-optional > span { width: 35px; height: 35px; display: grid; place-items: center; background: #f4dfb5; color: #9b671e; }
.profile-setup-optional strong,
.profile-setup-optional small { display: block; }
.profile-setup-optional strong { color: #524435; font-size: 11px; }
.profile-setup-optional strong b { margin-left: 5px; color: var(--wine); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.profile-setup-optional small { margin-top: 2px; color: #7b6d5c; font-size: 9px; }
.profile-setup-optional > i { color: var(--wine); font-size: 9px; font-style: normal; font-weight: 800; }
.profile-gaming-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #d8c18e; background: #fff4d8; color: #8f5d18; font-size: 8px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.profile-gaming-pill b { color: #c4862e; }
.profile-gaming-card { border-top-color: #c88d33; background: linear-gradient(145deg, #fffdfb 0%, #fff9ec 100%); }
.profile-gaming-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-gaming-heading h2 { margin-top: 4px; }
.profile-gaming-emblem { width: 51px; height: 51px; flex: 0 0 auto; font-size: 20px; }
.profile-gaming-statements { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.profile-gaming-statements > div { padding: 13px 14px; border-left: 3px solid var(--wine); background: rgba(255,255,255,.75); }
.profile-gaming-statements small,
.profile-gaming-statements strong { display: block; }
.profile-gaming-statements small { color: #9b7a62; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.profile-gaming-statements strong { margin-top: 3px; color: #4b393d; font-size: 11px; }
.profile-gaming-games { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 19px; }
.profile-gaming-games h3,
.profile-gaming-details h3 { margin: 0 0 7px; color: #6e5551; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.profile-gaming-games > div > div,
.profile-gaming-details > div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-gaming-games span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #dcc9b0; background: #fffaf0; color: #574743; font-size: 10px; font-weight: 750; }
.profile-gaming-games span b { color: var(--wine); font-size: 8px; }
.profile-gaming-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #e5d6c4; }
.profile-gaming-details span { padding: 5px 7px; border: 1px solid #c5d7d1; background: #edf5f3; color: #315f58; font-size: 9px; font-weight: 720; }
.profile-gaming-owner-note { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 13px; border-top: 1px solid #e5d6c4; color: var(--muted); font-size: 9px; }
.profile-gaming-owner-note > span { color: var(--green); }
.profile-gaming-owner-note p { margin: 0; }
.profile-gaming-owner-note a { margin-left: auto; color: var(--wine); font-weight: 800; }
.profile-footer-edit-links { display: flex; align-items: center; gap: 18px; }
.discovery-gaming-filters { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 16px; border: 1px solid #d9c8a7; border-left: 3px solid #c58a32; background: #fffaf0; }
.discovery-gaming-filters legend { padding: 0 7px; color: #604a35; font-size: 11px; font-weight: 850; }
.discovery-gaming-filters legend span { margin-right: 5px; color: #bd7b24; }
.discovery-gaming-filters > p { margin: 0 0 11px; color: #7b6a58; font-size: 9px; }
.discovery-gaming-filters > small { display: block; margin-top: 9px; color: #857461; font-size: 8px; }
.discovery-gaming-filter-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.1fr; gap: 9px; }
.discovery-gaming-preview { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; margin-top: 8px; padding: 9px 10px; border-left: 3px solid #c58a32; background: #fff9ea; }
.discovery-gaming-preview > span { width: 27px; height: 27px; display: grid; place-items: center; background: #f0d8aa; color: #9d671d; font-size: 9px; }
.discovery-gaming-preview small,
.discovery-gaming-preview strong { display: block; }
.discovery-gaming-preview small { color: #9b7650; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.discovery-gaming-preview strong { color: #59463b; font-size: 10px; }
.discovery-gaming-preview p { margin: 1px 0 0; overflow: hidden; color: #856f60; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-feature-note { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; margin: 14px 17px 17px; padding: 11px; border-left: 3px solid #c58a32; background: #fff9e9; }
.admin-feature-note > span { width: 30px; height: 30px; display: grid; place-items: center; background: #efd8aa; color: #9b671e; font-size: 9px; }
.admin-feature-note strong,
.admin-feature-note small { display: block; }
.admin-feature-note strong { color: #594939; font-size: 10px; }
.admin-feature-note small { color: #7c6b58; font-size: 8px; }

@media (max-width: 900px) {
  .gaming-radio-grid { grid-template-columns: 1fr 1fr; }
  .gaming-platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gaming-category-columns,
  .gaming-game-columns { grid-template-columns: 1fr; }
  .discovery-gaming-filter-grid { grid-template-columns: 1fr 1fr; }
  .profile-gaming-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .gaming-editor-section { padding-top: 26px; }
  .gaming-editor-header { grid-template-columns: 1fr; }
  .gaming-editor-emblem { width: 62px; height: 62px; justify-self: start; grid-row: 1; }
  .gaming-editor-header h1 { font-size: 38px; }
  .gaming-master-switch { align-items: flex-start; padding: 21px 17px 31px; }
  .gaming-form-section { padding: 21px 17px; }
  .gaming-radio-grid,
  .gaming-choice-grid,
  .gaming-platform-grid,
  .gaming-radio-list,
  .gaming-visibility-grid,
  .gaming-category-columns .gaming-choice-grid,
  .profile-gaming-statements,
  .profile-gaming-games,
  .profile-gaming-details,
  .discovery-gaming-filter-grid { grid-template-columns: 1fr; }
  .gaming-editor-actions { align-items: stretch; flex-direction: column; padding: 17px; }
  .gaming-editor-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .gaming-editor-actions .button { width: 100%; }
  .profile-gaming-callout,
  .profile-setup-optional { grid-template-columns: 42px minmax(0,1fr); }
  .profile-gaming-callout > b,
  .profile-setup-optional > i { grid-column: 2; }
  .profile-gaming-owner-note { align-items: flex-start; flex-wrap: wrap; }
  .profile-gaming-owner-note a { width: 100%; margin-left: 25px; }
  .profile-footer-edit-links { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .round-action-like,
  .round-action-like::before,
  .round-action-like::after,
  .footer-heart,
  .footer-heart::before,
  .footer-heart::after,
  .profile-intent-mark,
  .profile-intent-mark::before,
  .profile-intent-mark::after,
  .sticker-confirm-dialog,
  .sticker-confirm-card,
  .profile-safety-dialog,
  .profile-safety-card,
  .dashboard-match-card-2 {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Klar information om nødvendige teknologier og juridiske sider. */
.cookie-notice {
  position: fixed;
  z-index: 1200;
  right: clamp(12px, 3vw, 36px);
  bottom: clamp(12px, 3vw, 28px);
  width: min(520px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #b8d5d0;
  border-left: 4px solid #2f6861;
  background: #f1f8f6;
  box-shadow: 0 16px 42px rgba(49, 33, 38, 0.18);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { display: block; color: #205d56; font-size: .88rem; }
.cookie-notice p { margin: 5px 0 0; color: #516863; font-size: .76rem; line-height: 1.5; }
.cookie-notice-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.cookie-notice-actions a { color: #572234; font-size: .75rem; font-weight: 800; }
.cookie-notice-actions button { min-height: 40px; padding: 0 15px; border: 0; background: #7b3145; color: #fff; font: inherit; font-size: .76rem; font-weight: 900; cursor: pointer; }
.legal-draft-notice { margin: 20px 0; padding: 14px 16px; border-left: 4px solid #b47637; background: #fff7ec; color: #714617; }
.legal-address { font-style: normal; line-height: 1.7; }
.legal-updated { color: #75696c; font-size: .78rem; }
.legal-table-wrap { overflow-x: auto; margin: 18px 0; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.legal-table th, .legal-table td { padding: 11px 12px; border: 1px solid #dfd1cc; text-align: left; vertical-align: top; }
.legal-table th { background: #f7efec; color: #572234; }
.help-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.help-topic-grid > * { margin: 0; padding: 18px; border: 1px solid #dfd1cc; background: #fffdfb; }
.legal-content article a.button { text-decoration: none; }
.legal-content article a.button-primary,
.legal-content article a.button-primary:hover,
.legal-content article a.button-primary:focus-visible { color: var(--white); }
.legal-content article a.button-secondary { color: #285b53; }
.account-settings-card { width: min(100%, 960px); margin-inline: auto; }
.account-topic-grid { margin-bottom: 28px; }
.account-security-section { margin-bottom: 22px; padding: 26px; border: 1px solid #d8ccc7; border-left: 4px solid var(--wine); background: #fffdfb; scroll-margin-top: 90px; }
.account-security-section > p { margin: 0; color: #6f6064; line-height: 1.7; }
.account-security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.account-security-card { min-width: 0; padding: 20px; border: 1px solid #ded1cc; background: #f9f4f1; }
.account-security-card h3 { margin: 0 0 7px; color: #3a292e; font-family: Georgia,"Times New Roman",serif; font-size: 21px; font-weight: 500; }
.account-security-card > p { margin: 0 0 16px; color: #6f6064; font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.account-security-card .form-stack { margin-top: 16px; }
.account-security-card .button { justify-self: start; border-radius: 3px; }
.account-security-help { margin-top: 18px !important; padding: 13px 15px; border-left: 3px solid var(--green); background: #eef6f4; color: #4f6864 !important; font-size: .82rem; }
.account-security-help a { color: var(--wine-dark); font-weight: 800; }
.account-consent-panel { margin-bottom: 22px; padding: 26px; border: 1px solid #b8d5d0; border-left: 4px solid #2f6861; background: #f2f8f6; scroll-margin-top: 90px; }
.account-consent-panel > p { margin: 0; color: #566b67; line-height: 1.7; }
.account-consent-panel form, .account-consent-panel > .button { margin-top: 16px; }
.account-consent-status { display: grid; gap: 3px; margin-top: 16px; padding: 13px 15px; border: 1px solid #b8d5d0; background: #fff; }
.account-consent-status strong { color: #285b53; }
.account-consent-status span { color: #66736f; font-size: .78rem; line-height: 1.55; }
.account-consent-status.is-inactive { border-color: #dfc7cb; background: #fff8f7; }
.account-consent-status.is-inactive strong { color: var(--wine); }
.account-delete-panel { padding: 26px; border: 1px solid #dfc7cb; border-left: 4px solid var(--wine); background: #fff8f7; }
.account-delete-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.account-delete-heading > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; background: #f3dfe3; color: var(--wine); font-weight: 900; }
.account-delete-heading h2 { margin: 3px 0 0; color: #3a292e; font-size: 24px; }
.account-delete-panel > p { margin: 0; color: #6f6064; line-height: 1.7; }
.account-delete-form { max-width: 700px; margin-top: 22px; }
.account-delete-form .field input { border-radius: 2px; background: #fff; }
.account-delete-note { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid #e1c9ae; background: #fff8ed; }
.account-delete-note > span { width: 40px; height: 40px; display: grid; place-items: center; background: #f1ddbf; color: #744e25; font-weight: 900; }
.account-delete-note p { margin: 0; color: #6f573e; font-size: 11px; line-height: 1.55; }
.account-delete-note strong { display: block; }
.account-delete-form .button { justify-self: start; min-width: 260px; border-radius: 3px; }
@media (max-width: 680px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }
  .cookie-notice-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    white-space: normal;
  }
  .help-topic-grid { grid-template-columns: 1fr; }
  .account-settings-card { padding: 24px 18px; }
  .account-consent-panel { padding: 20px 16px; }
  .account-security-section { padding: 20px 16px; }
  .account-security-grid { grid-template-columns: 1fr; }
  .account-security-card { padding: 17px 14px; }
  .account-security-card .button { width: 100%; }
  .account-delete-panel { padding: 20px 16px; }
  .account-delete-form .button { width: 100%; min-width: 0; }
}

.status-closed { border-color: #d6cecb; background: #f1eeec; color: #665c5f; }
.support-thread { display: grid; gap: 10px; margin: 18px 0; max-height: 560px; overflow: auto; padding-right: 4px; }
.support-message { border: 1px solid #dfd1cc; background: #fffdfb; padding: 13px 15px; }
.support-message-admin { border-left: 4px solid #7b3145; background: #f9eef1; }
.support-message header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.support-message header strong { color: #3a2c2f; font-size: .82rem; }
.support-message header time { color: #7b6e71; font-size: .7rem; }
.support-message p { margin: 0; color: #54484b; line-height: 1.65; white-space: normal; }
.support-contact-card { max-width: 780px; }
.support-guest-access { padding: 24px; border: 1px solid #b8d5d0; border-left: 4px solid var(--green); background: #f2f8f6; }
.support-guest-access > header { align-items: center; }
.support-guest-access > p { margin: 0; color: #536965; font-size: .82rem; line-height: 1.65; }
.support-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.support-all-export, .support-case-export { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.support-all-export { margin-top: 14px; justify-content: flex-end; }
.support-case-export { margin: 18px 0 0; justify-content: flex-end; }
.support-all-export form, .support-case-export form { margin: 0; }
.support-verify-card { padding: 30px; border: 1px solid #ddcfca; border-top: 4px solid var(--wine); background: #fffdfb; box-shadow: var(--shadow-soft); }
.support-verify-intro { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 18px; align-items: start; max-width: 780px; }
.support-verify-intro > span { width: 54px; height: 54px; display: grid; place-items: center; background: #eef6f4; border: 1px solid #bdd8d3; color: var(--green); font-size: 20px; }
.support-verify-intro h1 { margin: 4px 0 8px; color: #352a2d; font-family: Georgia,"Times New Roman",serif; font-size: clamp(29px,4vw,42px); font-weight: 500; }
.support-verify-intro p { margin: 0; color: var(--muted); line-height: 1.65; }
.support-verify-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.support-verify-steps form { display: grid; align-content: start; gap: 10px; padding: 20px; border: 1px solid #e2d6d1; background: #faf6f3; }
.support-verify-steps form > strong { color: var(--wine-dark); }
.support-verify-steps form > p { min-height: 44px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.support-verify-steps .button { justify-self: start; }
.support-verify-note { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--green); background: #eef6f4; color: #4f6864; font-size: 10px; line-height: 1.6; }
.support-recovery-guidance { display: grid; gap: 7px; margin-top: -2px; padding: 14px 16px; border-left: 3px solid var(--green); background: #eef6f4; color: #4f6864; }
.support-recovery-guidance[hidden] { display: none; }
.support-recovery-guidance strong { color: #2f5f59; font-size: .82rem; }
.support-recovery-guidance p { margin: 0; font-size: .76rem; line-height: 1.6; }
.support-access-form { margin-top: 17px; }
.support-access-form .button { align-self: end; justify-self: start; border-radius: 3px; }
.admin-case-list-wide > div { min-height: 62px; padding: 13px 17px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eadfda; }
.admin-support-detail { min-width: 0; }
.admin-support-detail .admin-data-list dd { overflow-wrap: anywhere; }
.admin-support-detail > .admin-audit-note { margin: 16px 18px 0; }
.admin-support-reply { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin: 18px; padding: 17px; border: 1px solid #ddcfca; border-left: 4px solid var(--wine); background: #faf6f3; }
.admin-support-reply > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid #e5d9d4; }
.admin-support-reply > header h3 { margin: 2px 0 0; color: #3a2d31; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.admin-support-reply > header > span { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #ddc8cc; background: #f8e9eb; color: var(--wine); font-size: 15px; }
.admin-support-reply label { min-width: 0; display: grid; gap: 6px; }
.admin-support-reply label > span { color: #625559; font-size: 9px; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; }
.admin-support-reply textarea,
.admin-support-reply select { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #cfbfba; border-radius: 2px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.admin-support-reply textarea { min-height: 154px; padding: 12px; line-height: 1.6; resize: vertical; }
.admin-support-reply select { min-height: 42px; padding: 8px 10px; }
.admin-support-reply textarea:hover,
.admin-support-reply textarea:focus,
.admin-support-reply select:hover,
.admin-support-reply select:focus { border-color: #a97e88; outline: 0; box-shadow: 0 0 0 3px rgba(123,49,69,.09); }
.admin-support-message-field small { color: var(--muted); font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-support-reply-actions { display: grid; grid-template-columns: minmax(165px,220px) auto; align-items: end; justify-content: space-between; gap: 14px; }
.admin-support-reply-actions .button { min-height: 42px; border-radius: 3px; white-space: nowrap; }
.admin-support-block { margin: 16px 18px 0; border: 1px solid #dfd2cd; background: #fffaf7; }
.admin-support-block > summary { cursor: pointer; padding: 13px 15px; color: #6f293d; font-size: 10px; font-weight: 800; }
.admin-support-block form { display: grid; gap: 10px; padding: 0 15px 15px; }
.admin-support-block label { display: grid; gap: 6px; }
.admin-support-block input { min-height: 40px; padding: 8px 10px; border: 1px solid #cfbfba; }
.admin-support-block p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-support-block-note form { margin-top: 9px; }
@media (max-width: 1100px) {
  .admin-support-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-support-grid > .admin-table-panel .admin-case-list { max-height: 320px; overflow-y: auto; }
  .admin-support-reply-actions { grid-template-columns: minmax(0, 1fr); }
  .admin-support-reply-actions .button { width: 100%; white-space: normal; }
}
@media (max-width: 720px) {
  .support-message header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .support-thread { max-height: none; overflow: visible; }
  .support-contact-card { padding-inline: 18px; }
  .admin-support-reply { margin: 12px; padding: 14px; }
  .admin-support-reply-actions { grid-template-columns: 1fr; }
  .admin-support-reply-actions .button { width: 100%; }
}

/* Member support portal */
.support-ticket-overview { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.support-ticket-overview > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.support-ticket-overview h2 { margin: 3px 0 0; }
.support-ticket-overview > header > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.support-ticket-list { display: grid; border: 1px solid #ded1cc; border-top: 3px solid var(--wine); background: #fffdfb; }
.support-ticket-list > a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 13px 15px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.support-ticket-list > a:last-child { border-bottom: 0; }
.support-ticket-list > a:hover,
.support-ticket-list > a:focus-visible { background: #fbf4f3; outline: 0; }
.support-ticket-list strong { display: block; margin-bottom: 4px; color: #3b2d31; font-size: 13px; }
.support-ticket-list small { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; }
.support-ticket-list b { color: var(--wine); font-size: 16px; }
.support-case-section { min-height: 62vh; padding-top: 42px; padding-bottom: 72px; }
.support-case-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.support-case-actions > a:first-child { color: var(--wine-dark); font-size: 11px; font-weight: 800; }
.support-case-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,360px); gap: 28px; padding: 28px 30px; border: 1px solid #ddcfca; border-top: 4px solid var(--wine); background: #fffdfb; box-shadow: var(--shadow-soft); }
.support-case-heading h1 { margin: 5px 0 8px; color: #30272a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px,4vw,44px); font-weight: 500; line-height: 1.1; }
.support-case-heading > div:first-child > p { margin: 0; color: var(--muted); font-size: 10px; }
.support-case-status { align-self: center; padding: 15px; border-left: 3px solid var(--green); background: #eef6f4; }
.support-case-status p { margin: 8px 0 0; color: #4f6864; font-size: 10px; line-height: 1.55; }
.support-member-panel { margin-top: 18px; padding: 24px 28px; border: 1px solid #ded1cc; background: #f8f3ef; }
.support-member-panel > header h2 { margin: 2px 0 12px; color: #392d30; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.support-member-thread { max-height: none; margin-bottom: 0; padding-right: 0; }
.support-member-thread .support-message { width: min(78%,720px); box-sizing: border-box; }
.support-member-thread .support-message-member { justify-self: end; border-right: 4px solid var(--green); background: #f0f7f5; }
.support-member-thread .support-message-admin { justify-self: start; }
.support-member-reply { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(320px,1.3fr); gap: 22px; align-items: start; margin-top: 18px; padding: 24px 28px; border: 1px solid #ddcfca; border-left: 4px solid var(--wine); background: #fffdfb; }
.support-member-reply h2 { margin: 3px 0 7px; color: #382a2e; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.support-member-reply > div p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-member-reply .button { grid-column: 2; justify-self: start; }
.support-case-closed { margin-top: 18px; padding: 22px 25px; border: 1px solid #ddd0ca; border-left: 4px solid #8b7d80; background: #f6f2ef; }
.support-case-closed strong { color: #3d3235; }
.support-case-closed p { margin: 7px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-case-not-found { display: grid; grid-template-columns: 64px minmax(0,520px); justify-content: center; gap: 24px; padding: 64px 24px; border: 1px solid #ddcfca; border-top: 4px solid var(--wine); background: #fffdfb; }
.support-case-not-found > span { width: 62px; height: 62px; display: grid; place-items: center; background: #f4e7e9; color: var(--wine); font: 500 25px Georgia,serif; }
.support-case-not-found h1 { margin: 4px 0 8px; color: #352a2d; font-family: Georgia,"Times New Roman",serif; font-size: 30px; font-weight: 500; }
.support-case-not-found p { margin: 0 0 18px; color: var(--muted); }

/* Kontogendannelse i admin: tydelige sikkerhedstrin frem for et frit e-mailskift. */
.admin-recovery-panel { margin-top: 20px; }
.admin-recovery-panel > .admin-audit-note { margin: 16px 17px 0; }
.admin-recovery-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.admin-recovery-checklist { display: grid; gap: 8px; padding: 13px; border: 1px solid #e1c9ae; background: #fff8ed; }
.admin-recovery-checklist label { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; align-items: start; color: #654d38; font-size: 10px; line-height: 1.5; }
.admin-recovery-checklist input { width: 16px; min-height: 16px; margin-top: 1px; padding: 0; }
.admin-recovery-list { margin: 0 17px 18px; border-top: 1px solid #e4d7d2; }
.admin-recovery-list > h3 { margin: 18px 0 10px; color: #3a2d31; font: 500 19px Georgia,"Times New Roman",serif; }
.admin-recovery-list > article { padding: 14px; border: 1px solid #ded1cc; background: #faf6f3; }
.admin-recovery-list > article + article { margin-top: 10px; }
.admin-recovery-list article > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-recovery-list article > header > div { min-width: 0; display: grid; gap: 3px; }
.admin-recovery-list article > header span { overflow-wrap: anywhere; }
.admin-recovery-list article > p { color: var(--muted); font-size: 9px; line-height: 1.55; }
.admin-recovery-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.admin-recovery-actions form { display: grid; gap: 9px; padding: 12px; border: 1px solid #e2d6d1; background: #fff; }
.admin-recovery-actions label { display: grid; gap: 5px; }
.admin-recovery-actions label > span { color: #625559; font-size: 9px; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; }
.admin-recovery-actions input { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d8cbc6; border-radius: 2px; background: #fff; color: var(--ink); font-size: 11px; }

@media (max-width: 720px) {
  .support-ticket-list > a { grid-template-columns: 1fr auto; }
  .support-ticket-list .status-chip { grid-column: 1 / -1; justify-self: start; }
  .support-case-section { padding-top: 24px; }
  .support-case-actions { align-items: flex-start; flex-direction: column; }
  .support-case-heading { grid-template-columns: 1fr; padding: 20px 18px; }
  .support-member-panel { padding: 18px 14px; }
  .support-member-thread .support-message { width: 94%; }
  .support-member-reply { grid-template-columns: 1fr; padding: 19px 16px; }
  .support-member-reply .button { grid-column: 1; width: 100%; }
  .support-case-not-found { grid-template-columns: 1fr; padding: 38px 20px; }
  .support-guest-access { padding: 19px 16px; }
  .support-access-form { grid-template-columns: 1fr; }
  .support-access-form .button { width: 100%; }
  .support-verify-card { padding: 22px 16px; }
  .support-verify-intro { grid-template-columns: 1fr; }
  .support-verify-steps { grid-template-columns: 1fr; }
  .support-case-export, .support-all-export { align-items: stretch; flex-direction: column; }
  .support-case-export .button, .support-all-export .button { width: 100%; }
  .admin-recovery-fields, .admin-recovery-actions { grid-template-columns: 1fr; }
  .admin-recovery-list article > header { align-items: flex-start; flex-direction: column; }
}
.board-page { background: #f7f1ed; }
.board-hero { border-bottom: 1px solid #e5d6d0; background: linear-gradient(135deg, #fffaf7 0%, #f3e8e5 100%); }
.board-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: center; padding-top: 54px; padding-bottom: 46px; }
.board-hero h1 { max-width: 760px; margin: 8px 0 12px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .98; }
.board-hero p { max-width: 760px; margin: 0; color: #745f61; font-size: 1.05rem; line-height: 1.75; }
.board-hero aside { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 24px; border: 1px solid #b8d8d2; border-left: 4px solid #2f716a; background: #f3fbf9; }
.board-hero aside > span { grid-row: span 2; display: grid; width: 48px; height: 48px; place-items: center; background: #2f716a; color: #fff; font-size: 1.2rem; }
.board-hero aside strong { align-self: end; color: #174f4a; }
.board-hero aside small { color: #55706e; line-height: 1.5; }
.board-shell, .board-layout { padding-top: 42px; padding-bottom: 64px; }
.board-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 32px; align-items: start; }
.board-main { min-width: 0; }
.board-composer, .board-post, .board-sidebar > section, .board-unavailable { border: 1px solid #dfd1cc; border-top: 4px solid #84304a; background: #fffdfb; box-shadow: 0 16px 38px rgba(59, 34, 39, .06); }
.board-composer { margin-bottom: 26px; padding: 26px; }
.board-composer > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.board-composer > header > div { display: flex; gap: 14px; align-items: center; }
.board-composer h2 { margin: 3px 0 0; font-size: 1.65rem; }
.board-limit { color: #8b7475; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.board-avatar, .board-comment-avatar { display: block; flex: 0 0 auto; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #dbc8c2; }
.board-avatar { width: 52px; height: 52px; border-radius: 50%; }
.board-comment-avatar { width: 38px; height: 38px; border-radius: 50%; }
.board-avatar-letter { display: grid; place-items: center; background: #ecddd9; color: #6c1f37; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.board-compose-form textarea, .board-comment-form textarea, .board-report textarea, .board-report select { width: 100%; border: 1px solid #d9cac5; background: #fff; color: #2e2527; }
.board-compose-form textarea { min-height: 118px; padding: 16px; resize: vertical; font: inherit; line-height: 1.6; }
.board-compose-form > div { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 12px; }
.board-compose-form small { color: #816f70; line-height: 1.5; }
.board-participation-note { padding: 18px; border-left: 4px solid #2f716a; background: #edf7f5; }
.board-participation-note p { margin: 6px 0 14px; color: #56706d; }
.board-feed { display: grid; gap: 22px; }
.board-post { scroll-margin-top: 24px; }
.board-post:target { outline: 3px solid rgba(47, 113, 106, .22); outline-offset: 3px; }
.board-post-author { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 24px 16px; }
.board-author-link { display: flex; min-width: 0; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.board-author-link > span:last-child { display: grid; min-width: 0; gap: 3px; }
.board-author-link strong { color: #3d1c27; font-size: 1.05rem; }
.board-author-link small { overflow: hidden; color: #806d6e; text-overflow: ellipsis; white-space: nowrap; }
.board-post-meta { display: flex; gap: 12px; align-items: center; }
.board-post-meta .activity-dot { font-size: .7rem; }
.board-text-button { padding: 0; border: 0; background: none; color: #84304a; font: inherit; font-size: .78rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.board-post-body { margin: 0; padding: 10px 24px 24px; color: #352b2d; font-size: 1.05rem; line-height: 1.72; overflow-wrap: anywhere; }
.board-post-actions { display: flex; min-height: 55px; gap: 7px; align-items: center; padding: 10px 18px; border-top: 1px solid #eaded9; border-bottom: 1px solid #eaded9; background: #fcf8f5; }
.board-post-actions form { margin: 0; }
.board-reaction { display: inline-flex; min-width: 52px; min-height: 36px; gap: 7px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #d9c6c1; border-radius: 2px; background: #fff; color: #672039; font: inherit; font-size: .83rem; font-weight: 800; cursor: pointer; }
.board-reaction:hover, .board-reaction.is-active { border-color: #84304a; background: #84304a; color: #fff; }
.board-reaction-icon { font-size: 1rem; line-height: 1; }
.board-reaction-broken { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: .95rem; filter: grayscale(.18); }
.board-reaction:disabled { cursor: wait; opacity: .68; }
.board-dislike { color: #52615e; }
.board-dislike:hover, .board-dislike.is-active { border-color: #52615e; background: #52615e; }
.board-reaction-summary { color: #776466; font-size: .84rem; font-weight: 700; }
.board-comment-jump, .board-profile-action { color: #6f263d; font-size: .84rem; font-weight: 800; text-decoration: none; }
.board-comment-jump { margin-left: 4px; }
.board-profile-action { margin-left: auto; }
.board-comments { padding: 5px 24px 20px; background: #fff; }
.board-comments-truncated { margin: 13px 0 0; color: #8a7678; font-size: .76rem; }
.board-comment { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eee3df; }
.board-comment > div { min-width: 0; }
.board-comment header { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.board-comment header a { color: #572034; font-weight: 800; text-decoration: none; }
.board-comment time { color: #988587; font-size: .72rem; }
.board-comment p { margin: 5px 0 0; color: #493d3f; line-height: 1.55; overflow-wrap: anywhere; }
.board-comment footer { margin-top: 5px; }
.board-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding-top: 18px; }
.board-comment-form textarea { min-height: 58px; padding: 11px 13px; resize: vertical; font: inherit; line-height: 1.45; }
.board-report { position: relative; color: #806d6e; font-size: .75rem; }
.board-report summary { width: fit-content; cursor: pointer; text-decoration: underline; }
.board-report form { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid #dfd1cc; background: #fbf5f2; }
.board-report label { display: grid; gap: 5px; color: #4e3b3f; font-weight: 700; }
.board-report textarea, .board-report select { padding: 9px; font: inherit; }
.board-post-report { padding: 0 24px 18px; }
.board-post-report > form { max-width: 540px; }
.board-sidebar { position: sticky; top: 22px; display: grid; gap: 18px; }
.board-sidebar > section { padding: 24px; }
.board-sidebar h2 { margin: 7px 0 14px; font-size: 1.55rem; }
.board-sidebar ul { display: grid; gap: 10px; margin: 0 0 18px; padding-left: 20px; color: #715f61; line-height: 1.55; }
.board-sidebar a { color: #782943; font-weight: 800; }
.board-sidebar-contact { display: grid; grid-template-columns: 38px 1fr; gap: 13px; border-top-color: #2f716a !important; background: #f0f8f6 !important; }
.board-sidebar-contact > span { display: grid; width: 38px; height: 38px; place-items: center; background: #d7ebe7; color: #23625c; }
.board-sidebar-contact p { margin: 6px 0 0; color: #56706d; line-height: 1.55; }
.board-empty, .board-unavailable { padding: 52px 30px; text-align: center; }
.board-empty > span, .board-unavailable > span { display: grid; width: 58px; height: 58px; margin: 0 auto 16px; place-items: center; background: #f0e1df; color: #84304a; font-size: 1.3rem; }
.board-empty h2, .board-unavailable h1 { margin: 0 0 8px; }
.board-empty p, .board-unavailable p { margin: 0 0 22px; color: #7d696b; }
.board-pagination { display: flex; justify-content: center; gap: 6px; align-items: center; margin-top: 26px; }
.board-pagination a,
.board-pagination-current { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 9px; border: 1px solid #d8c7c3; background: #fffdfb; color: #76263f; font-size: .85rem; font-weight: 800; }
.board-pagination a:hover { border-color: #84304a; background: #f8eceb; }
.board-pagination-current { border-color: #84304a; background: #84304a; color: #fff; }
.board-pagination-gap { padding: 0 4px; color: #806e70; font-size: .85rem; }

@media (max-width: 940px) {
  .board-hero-inner, .board-layout { grid-template-columns: 1fr; }
  .board-hero-inner { gap: 26px; }
  .board-hero aside { max-width: 620px; }
  .board-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .board-hero-inner { padding-top: 34px; padding-bottom: 32px; }
  .board-hero h1 { font-size: 2.6rem; }
  .board-layout { padding-top: 24px; gap: 24px; }
  .board-composer { padding: 19px; }
  .board-composer > header { display: grid; }
  .board-limit { padding-left: 66px; }
  .board-compose-form > div { align-items: stretch; flex-direction: column; }
  .board-compose-form button { width: 100%; }
  .board-post-author { align-items: flex-start; padding: 18px; }
  .board-post-meta .activity-dot { display: none; }
  .board-post-body { padding: 8px 18px 20px; }
  .board-post-actions { flex-wrap: wrap; padding: 10px 12px; }
  .board-profile-action { width: 100%; margin: 2px 0 0; padding-top: 8px; border-top: 1px solid #eaded9; }
  .board-comments { padding: 4px 18px 18px; }
  .board-comment-form { grid-template-columns: 1fr; }
  .board-comment-form button { width: 100%; }
  .board-sidebar { grid-template-columns: 1fr; }
}
/* Shared moderation controls: desktop, tablet and mobile. */
.admin-photo-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.admin-photo-card { min-width: 0; background: #fffdfb; border: 1px solid #dfd1cc; }
.admin-photo-card > img { display: block; width: 100%; height: 300px; object-fit: contain; background: #f3ebe7; }
.admin-photo-body { padding: 18px; overflow-wrap: anywhere; }
.admin-photo-body h2 { font-size: 22px; }
.admin-photo-body textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.admin-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Teamadgang og sikkerhedscenter */
.admin-staff-invite, .admin-staff-member, .admin-security-alert { scroll-margin-top: 24px; }
.admin-staff-form { display: grid; gap: 22px; }
.admin-staff-identity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-permission-fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid #dfd1cc; background: #fcf8f5; }
.admin-permission-fieldset legend { padding: 0 8px; color: #552033; font-weight: 800; }
.admin-permission-fieldset > p { margin: 0 0 16px; color: #806d70; font-size: .88rem; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-permission-grid.compact { margin: 16px 0; }
.admin-permission-card { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; min-width: 0; padding: 15px; border: 1px solid #ddcfca; background: #fff; cursor: pointer; }
.admin-permission-card:hover { border-color: #9c5266; }
.admin-permission-card.is-sensitive { border-left: 4px solid #84304a; }
.admin-permission-card input { margin-top: 3px; accent-color: #84304a; }
.admin-permission-card span { display: grid; gap: 4px; }
.admin-permission-card strong { color: #3c242b; }
.admin-permission-card small { color: #756568; line-height: 1.45; }
.admin-permission-card em { width: fit-content; margin-top: 4px; color: #7b3145; font-size: .68rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-owner-password { display: grid; max-width: 420px; gap: 7px; color: #422b31; font-weight: 800; }
.admin-owner-password input, .admin-staff-form > label > input, .admin-staff-actions input { width: 100%; min-height: 44px; border: 1px solid #d9cac5; padding: 10px 12px; background: #fff; font: inherit; }
.admin-owner-password small { color: #7c6a6d; font-weight: 400; line-height: 1.45; }
.admin-staff-list { display: grid; gap: 14px; }
.admin-staff-list > article { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 18px; border: 1px solid #e1d5d0; background: #fff; }
.admin-staff-list > article > div:first-child { display: grid; gap: 4px; }
.admin-staff-list span, .admin-staff-list small { color: #766568; }
.admin-staff-member { display: block !important; }
.admin-staff-member > header { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.admin-staff-member.is-suspended { background: #f6f1ef; opacity: .82; }
.admin-staff-owner-note { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid #2f716a; background: #eef8f6; color: #37645f; }
.admin-staff-member details { margin-top: 18px; border-top: 1px solid #eaded9; padding-top: 15px; }
.admin-staff-member summary { color: #782943; font-weight: 800; cursor: pointer; }
.admin-staff-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #eaded9; }
.admin-staff-actions form { display: grid; gap: 10px; align-content: end; }
.admin-staff-actions label { display: grid; gap: 6px; color: #51383f; font-size: .78rem; font-weight: 800; }
.button-danger { border-color: #862f47; background: #fff; color: #76253d; }
.button-danger:hover { background: #76253d; color: #fff; }
.admin-security-metrics .admin-metric-date { font-size: 1.25rem; line-height: 1.35; }
.admin-security-alerts { display: grid; gap: 16px; }
.admin-security-alert { padding: 20px; border: 1px solid #dfd1cc; border-left: 5px solid #9f7650; background: #fff; }
.admin-security-alert.severity-high { border-left-color: #a64a43; }
.admin-security-alert.severity-critical { border-left-color: #702239; background: #fff9fa; }
.admin-security-alert > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.admin-security-alert h3 { margin: 16px 0 7px; font-size: 1.35rem; }
.admin-security-alert p { margin: 0; color: #675659; line-height: 1.6; }
.security-severity { margin-left: 8px; color: #743047; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.security-alert-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.security-alert-meta span { padding: 6px 9px; background: #f4ece8; color: #6d555b; font-size: .75rem; }
.admin-security-alert details { margin-top: 16px; border-top: 1px solid #eaded9; padding-top: 13px; }
.admin-security-alert summary { width: fit-content; color: #782943; font-weight: 800; cursor: pointer; }
.admin-security-alert .admin-action-form { margin-top: 15px; }
.admin-security-events { display: grid; }
.admin-security-events > div { display: grid; grid-template-columns: 10px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eee3df; }
.admin-security-events strong, .admin-security-events small { display: block; overflow-wrap: anywhere; }
.admin-security-events small { margin-top: 3px; color: #857477; }
.security-event-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #6a8b87; }
.security-event-dot.severity-warning { background: #b17b42; }
.security-event-dot.severity-high, .security-event-dot.severity-critical { background: #9a304a; }

@media (max-width: 860px) {
  .admin-staff-identity, .admin-permission-grid, .admin-staff-actions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .admin-permission-fieldset { padding: 14px; }
  .admin-staff-list > article, .admin-staff-member > header, .admin-security-alert > header { align-items: flex-start; flex-direction: column; }
  .admin-security-alert { padding: 16px; }
}
