/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #120c22;
  --bg-2: #1b1233;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f7f2ff;
  --muted: #b6abd1;
  --pink: #ff5c8a;
  --gold: #ffd166;
  --mint: #5fe3c0;
  --blue: #7aa2ff;
  --danger: #ff8080;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --gutter: 16px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

/* Egne display-regler slår [hidden] i kaskaden - derfor denne. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(255, 92, 138, 0.22), transparent 62%),
    radial-gradient(800px 600px at 88% 4%, rgba(122, 162, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------------------------------------------------------------ decoration */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.glow {
  position: fixed;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  background: var(--pink);
  top: -14vmax;
  left: -12vmax;
}
.glow-b {
  background: var(--blue);
  bottom: -18vmax;
  right: -14vmax;
}

@media (prefers-reduced-motion: no-preference) {
  .glow-a {
    animation: drift 18s ease-in-out infinite alternate;
  }
  .glow-b {
    animation: drift 24s ease-in-out infinite alternate-reverse;
  }
}
@keyframes drift {
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}

/* ---------------------------------------------------------------- layout */
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px var(--gutter) 96px;
}

.view.center {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card.narrow {
  max-width: 420px;
  width: 100%;
}

.card.danger {
  text-align: center;
  padding: 14px;
}

/* ------------------------------------------------------------ typography */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.display.sm {
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  margin-bottom: 6px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.lead {
  font-size: 1.1rem;
  color: #e4dcf7;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
  margin: 0 0 12px;
}
.small {
  font-size: 0.85rem;
}
.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 10px 0 0;
}
.panel-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.balloons {
  font-size: 3rem;
}

@media (prefers-reduced-motion: no-preference) {
  .balloons {
    animation: float 2.6s ease-in-out infinite;
  }
}
@keyframes float {
  50% {
    transform: translateY(-14px) rotate(-6deg);
  }
}

/* ------------------------------------------------------------ invitation */
.invite {
  padding: 30px 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 209, 102, 0.12), rgba(255, 92, 138, 0.08) 45%, transparent 75%),
    var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 24px;
}

.countdown div {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown.small strong {
  font-size: 1.25rem;
}

.countdown.party-started {
  grid-template-columns: 1fr;
}

.details {
  display: grid;
  gap: 2px;
  margin: 0 0 20px;
  padding: 0;
}

.details div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.details dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-weight: 400;
}

.details a {
  color: var(--mint);
}

.blurb {
  margin: 0 0 16px;
  color: #e4dcf7;
  text-wrap: pretty;
}

.practical {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.practical li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.practical li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  color: var(--gold);
}

.rsvp-cta {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.cta-label {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.rsvp-buttons {
  display: grid;
  gap: 10px;
}

.invite-foot {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.invite-foot a {
  color: var(--mint);
}

/* --------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  filter: brightness(1.12);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--pink), #ff8a5c);
  color: #22102a;
  font-weight: 600;
}

.btn.yes {
  background: linear-gradient(120deg, var(--mint), #79f0b9);
  color: #10312a;
  font-weight: 600;
}
.btn.maybe {
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--gold);
}
.btn.no {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--line);
}

.btn.block {
  display: block;
  width: 100%;
}
.btn.small {
  padding: 9px 14px;
  font-size: 0.9rem;
}
.btn.tiny {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 400;
}
.btn.push {
  margin-left: auto;
}

.link {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- fields */
.field {
  display: block;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.field > span,
.field > label > span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: rgba(182, 171, 209, 0.6);
}

.field.fun {
  background: rgba(255, 209, 102, 0.07);
  border: 1px dashed rgba(255, 209, 102, 0.35);
  border-radius: var(--radius);
  padding: 14px;
}

.fun-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.question {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--gold);
}

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

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented span {
  display: block;
  text-align: center;
  padding: 11px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
}

.segmented input:checked + span {
  background: linear-gradient(120deg, var(--pink), #ff8a5c);
  border-color: transparent;
  color: #22102a;
  font-weight: 600;
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}
.copy-row .btn {
  flex: none;
}

/* ---------------------------------------------------------------- avatar */
.avatar-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar-drop {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.avatar-drop:has(img:not([hidden])) {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.avatar-actions {
  display: grid;
  gap: 8px;
}
.avatar-actions p {
  margin: 0;
}

/* --------------------------------------------------------------- top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.topbar-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cheers {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 15px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.cheers:active {
  transform: scale(0.94);
}

.cheers.pop {
  animation: pop 0.4s ease;
}
@keyframes pop {
  40% {
    transform: scale(1.18) rotate(-6deg);
  }
}

/* ------------------------------------------------------------------ tabs */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 18px;
  padding: 0 var(--gutter);
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    overflow: visible;
  }

  .tab {
    padding: 9px 2px;
    font-size: 0.76rem;
  }
}

.tab.active {
  background: var(--ink);
  color: #1a1030;
  border-color: transparent;
  font-weight: 600;
}

/* -------------------------------------------------------------- composer */
.composer-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-strong);
}

.composer textarea {
  border: 0;
  background: transparent;
  padding: 8px 0 0;
}

.composer-preview {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 12px;
  display: block;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ------------------------------------------------------------------ wall */
.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}

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

.post-name {
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.post-time {
  font-size: 0.78rem;
  color: var(--muted);
}

.post-delete {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 8px;
}
.post-delete:hover {
  color: var(--danger);
}

.post-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #eee7ff;
}

.post-image {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 12px;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reaction {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  line-height: 1.2;
}

.reaction.mine {
  background: rgba(255, 92, 138, 0.22);
  border-color: rgba(255, 92, 138, 0.55);
}

.reaction .count {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reaction.mine .count {
  color: var(--ink);
}

.reaction.add {
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------- guests */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stat.yes strong {
  color: var(--mint);
}
.stat.maybe strong {
  color: var(--gold);
}
.stat.no strong {
  color: var(--muted);
}

.flip-hint {
  text-align: center;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.guest-card {
  perspective: 900px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  aspect-ratio: 3 / 4;
}

.guest-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.3, 1.2, 0.4, 1);
  transform-style: preserve-3d;
}

.guest-card.flipped .guest-inner {
  transform: rotateY(180deg);
}

.guest-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guest-face.back {
  transform: rotateY(180deg);
  padding: 14px;
  justify-content: center;
  text-align: center;
  background: linear-gradient(150deg, rgba(255, 92, 138, 0.2), rgba(122, 162, 255, 0.16));
}

.guest-photo {
  flex: 1;
  width: 100%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
  min-height: 0;
}

.guest-placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(150deg, rgba(255, 92, 138, 0.28), rgba(122, 162, 255, 0.22));
}

.guest-meta {
  padding: 9px 10px 10px;
  border-top: 1px solid var(--line);
}

.guest-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-tagline {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.badge.ja {
  background: rgba(95, 227, 192, 0.9);
  color: #0d2f28;
}
.badge.kanskje {
  background: rgba(255, 209, 102, 0.9);
  color: #3a2a06;
}
.badge.nei {
  background: rgba(20, 14, 34, 0.8);
  color: var(--muted);
  border: 1px solid var(--line);
}

.guest-q {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.guest-a {
  font-family: var(--display);
  font-size: 0.98rem;
  margin: 0;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------- songs */
.song-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .song-inputs {
    grid-template-columns: 1fr;
  }
}

.songs {
  list-style: none;
  counter-reset: rank;
  padding: 0;
  margin: 0;
}

.song {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.song::before {
  content: counter(rank);
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--muted);
  width: 20px;
  flex: none;
  text-align: center;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  margin: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-artist {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote {
  flex: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  gap: 6px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.vote.mine {
  background: rgba(95, 227, 192, 0.2);
  border-color: rgba(95, 227, 192, 0.5);
  color: var(--mint);
}

.song-remove {
  flex: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.song-remove:hover {
  color: var(--danger);
}

/* --------------------------------------------------------------- forslag */
.idea-form input,
.idea-form textarea {
  margin-top: 10px;
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.idea-actions select {
  width: auto;
  flex: 1 1 150px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.idea {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

.idea.booked {
  border-color: rgba(95, 227, 192, 0.45);
  background: linear-gradient(140deg, rgba(95, 227, 192, 0.14), var(--surface) 60%);
}

.idea-main {
  flex: 1;
  min-width: 0;
}

.idea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
}

.idea-cat {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.booked-badge {
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(95, 227, 192, 0.9);
  color: #0d2f28;
  font-weight: 600;
}

.idea-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.idea-body {
  margin: 5px 0 0;
  font-size: 0.92rem;
  color: #e4dcf7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.idea-by {
  margin: 7px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.idea-side {
  flex: none;
}

.idea-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.idea-tools .btn.tiny {
  white-space: nowrap;
}

/* ---------------------------------------------------------- kommentarer */
.idea-thread {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.thread-more {
  justify-self: start;
  font-size: 0.82rem;
  color: var(--mint);
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-avatar {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 2px;
}

.comment-bubble {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 14px;
  padding: 8px 12px;
}

.comment-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.comment-body {
  margin: 2px 0 0;
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-delete {
  flex: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 5px;
  border-radius: 8px;
  margin-top: 4px;
}

.comment-delete:hover {
  color: var(--danger);
}

.comment-form {
  display: flex;
  gap: 7px;
  align-items: center;
}

.comment-input {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  padding: 9px 13px;
  border-radius: 999px;
}

/* ------------------------------------------------------------ host panel */
.host-panel summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(20, 13, 38, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 80;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
  font-size: 0.92rem;
}

.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 var(--gutter) 28px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
