



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  color: white;
  overflow: hidden;
  font-family: "Inter", sans-serif;

  background:
    linear-gradient(
      180deg,
      rgba(1, 5, 7, 0.10) 0%,
      rgba(1, 5, 7, 0.06) 34%,
      rgba(1, 5, 7, 0.18) 68%,
      rgba(1, 5, 7, 0.34) 100%
    ),
    url("images/northstar-desktop-bg.png") no-repeat center center fixed;

  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(8, 24, 24, 0.04) 0%,
      rgba(2, 7, 9, 0.10) 58%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.06) 36%,
      rgba(0, 0, 0, 0.22) 100%
    );

  pointer-events: none;
  transition: background 0.6s ease;
}


 #writeView {
  height: 100dvh;
  overflow-y: hidden;
  overflow-x: hidden;
}

#writeView.write-needs-scroll {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}


/* ==========================
   APP SHELL / VIEW STATES
========================== */

#appViews {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.app-view {
  width: 100%;
  transition:
    opacity 0.42s ease,
    visibility 0.42s ease,
    transform 0.42s ease;
}

#writeView,
#timelineView {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.write-box,
.timeline-shell {
  will-change: opacity, transform;
}

.is-active-view {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.is-hidden-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 1;
}

/* HEADER */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 22px 29px;
  z-index: 10000;
}

.logo {
  position: fixed;
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-weight: 350;
  letter-spacing: 0.9px;
  opacity: 0.9;
}

.top-icons {
  position: fixed;
  top: 18px;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-icon-btn,
.user-button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  position: relative;
  top: -4px;
  left: 0;
  border-radius: 50%;
}

.top-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.top-icons svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.6);
  transition:
    transform 0.3s ease,
    stroke 0.3s ease;
  pointer-events: none;
}

.top-icon-btn:hover svg,
.user-button:hover svg {
  stroke: rgba(140, 255, 200, 0.9);
  transform: scale(1.1);
}

.top-icon-btn:focus-visible,
.user-button:focus-visible {
  outline: 1px solid rgba(140, 255, 200, 0.45);
  outline-offset: 6px;
  border-radius: 8px;
}

.is-hidden {
  display: none !important;
}

/* DATE */
.date {
  position: fixed;
  top: 54px;
  left: 54px;

  letter-spacing: 0.8px;
  text-align: left;
  font-family: "Cormorant", serif;
  font-size: 14.5px;
  opacity: 0.35;
  animation: breathe 5.5s ease-in-out infinite;
}

@keyframes breathe {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.45;
  }
}

/* WRITE BOX */
.write-box {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;

  max-width: 630px;
  height: clamp(270px, 41.5vh, 504px);
  margin: 0 auto;
  padding: 38px 25px 31px;

  border-radius: 21px;
  border: 1px solid rgba(190, 220, 195, 0.18);

  background:
    linear-gradient(
      180deg,
      rgba(5, 15, 17, 0.42),
      rgba(3, 10, 12, 0.52)
    );

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(90, 210, 180, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.032),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    inset 0 0 30px rgba(120, 255, 200, 0.012);

  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);

  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;

  transition:
    border-color 1s ease,
    box-shadow 1s ease,
    background 1s ease;
}

.write-view-inner {
  min-height: 100vh;
}

/* ==========================
   WRITE BOX ANIMATION
========================== */

/* KONTRAST-LAGER (inaktivt) */
.write-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;

  transition: background 1s ease;
}

/* LJUSORB */
.write-box::after {
  content: "";
  position: absolute;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  width: 144px;
  height: 144px;
  border-radius: 50%;
  opacity: 0.85;

  background: radial-gradient(
    circle,
    rgba(170, 255, 210, 0.95) 0%,
    rgba(120, 255, 190, 0.6) 18%,
    rgba(90, 230, 170, 0.24) 38%,
    rgba(90, 230, 170, 0.06) 58%,
    rgba(90, 230, 170, 0) 76%
  );

  filter: blur(108px);
  mix-blend-mode: screen;

  top: -6px;
  left: -6px;

  pointer-events: none;
  z-index: 3;

  animation: orbitBorder var(--orbitDuration, 120s) linear infinite;
}

/* HOVER */
.write-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transition: ease-in-out 0.2s;
}

/* AKTIVT LÄGE - styrs av JS */
.write-box.is-active::before {
  background: rgba(0, 0, 0, 0.18);
}

.write-box.is-active::after {
  opacity: 0;
  transform: scale(0.85);
}

.write-box.is-active {
  animation: writingGlow 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(120, 255, 200, 0.05),
    0 0 70px rgba(120, 255, 200, 0.025),
    inset 0 0 25px rgba(255, 255, 255, 0.02),
    inset 0 0 40px rgba(120, 255, 200, 0.035);

  border: 1px solid rgba(200, 255, 230, 0.14);
}

/* ORBENS BANA */
@keyframes orbitBorder {
  0% {
    top: -6px;
    left: -6px;
  }

  25% {
    top: -6px;
    left: calc(100% - 194px);
  }

  50% {
    top: calc(100% - 194px);
    left: calc(100% - 194px);
  }

  75% {
    top: calc(100% - 194px);
    left: -6px;
  }

  100% {
    top: -6px;
    left: -6px;
  }
}

/* AKTIV GLOW */
@keyframes writingGlow {
  0% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.02),
      inset 0 0 40px rgba(120, 255, 200, 0.035),
      0 0 0 rgba(200, 255, 230, 0);
  }

  50% {
    border-color: rgba(200, 255, 230, 0.14);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.02),
      inset 0 0 40px rgba(120, 255, 200, 0.05),
      0 0 18px rgba(200, 255, 230, 0.05);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.02),
      inset 0 0 40px rgba(120, 255, 200, 0.035),
      0 0 0 rgba(200, 255, 230, 0);
  }
}

/* WRITE SCROLL */
.write-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;

  overflow-y: hidden;

  margin-right: -20px;
  padding-right: 16px;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* NOTE:
write-scroll is slightly adjusted to align the visual center of the text
with the centered fixed footer elements. Works well visually, but may
need future cleanup if write-box structure changes.
*/

.write-scroll::-webkit-scrollbar {
  width: 4px;
}

.write-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.write-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.write-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* TEXTAREA */
textarea {
  display: block;
  width: 100%;
  min-height: 100%;

  background: transparent;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;

  color: rgba(255, 255, 255, 0.94);
  font-family: "Cormorant", serif;
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: 0.04px;
  text-align: left;

  padding-top: 11px;
  padding-bottom: 0;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
  caret-color: rgba(200, 255, 230, 0.66);
}

/* PLACEHOLDER */
textarea::placeholder {
  color: rgba(255, 255, 255, 0.527);
  transition: opacity 0.2s ease;
  text-align: left;
}

.save-status {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);

  z-index: 8;
  pointer-events: none;

  min-width: 108px;
  text-align: center;

  font-size: 10px;
  line-height: 1;
  opacity: 0;

  transition:
    opacity 0.22s ease,
    color 0.35s ease;

  color: rgba(255, 255, 255, 0.38);
}

textarea:focus::placeholder {
  opacity: 0;
}

/* TEXT SELECTION */
::selection {
  background: rgba(170, 255, 210, 0.16);
  color: white;
}

#wordCount {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
  z-index: 9998;
  pointer-events: none;
}

.writing-area {
  position: relative;
}

/* ==========================
   TOMORROW DOOR – ABOVE WRITE BOX
========================== */

.tomorrow-door-mount {
  width: min(700px, calc(100% - 48px));
  height: 34px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 74px auto 7px;

  position: relative;
  z-index: 20;

  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
}

.tomorrow-door-mount.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tomorrow-door-inline {
  position: absolute;
  left: 50%;
  top: 50%;

  isolation: isolate;
  overflow: hidden;

  width: 270px;
  min-height: 34px;
  max-width: min(684px, calc(100vw - 48px));

  margin: 0;
  padding: 8px 16px 9px;

  border-radius: 999px;
  border: 1px solid rgba(210, 255, 236, 0.055);

  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 18, 0.32),
      rgba(4, 10, 12, 0.22)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.024);

  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);

  cursor: pointer;

  transform: translate(-50%, -50%);

  transition:
    background 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    opacity 0.55s ease,
    transform 0.55s ease,
    width 0s linear,
    padding 0s linear;
}

.tomorrow-door-inline::before {
  content: "";
  position: absolute;
  inset: -90% 8%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(160, 255, 220, 0.07),
      rgba(120, 255, 200, 0.024) 34%,
      transparent 70%
    );

  opacity: 0.58;
  transform: translateY(-2%);

  transition:
    opacity 0.34s ease,
    transform 0.34s ease;
}

.tomorrow-door-inline:hover {
  background:
    linear-gradient(
      180deg,
      rgba(10, 22, 22, 0.4),
      rgba(5, 12, 14, 0.28)
    );

  border-color: rgba(210, 255, 236, 0.095);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(120, 255, 200, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tomorrow-door-inline:hover::before {
  opacity: 0.82;
  transform: translateY(2%);
}

/* STATES */

.tomorrow-door-inline.is-generic {
  width: 270px;
  padding: 8px 16px 9px;
}

.tomorrow-door-inline.is-personal {
  width: min(630px, calc(100vw - 48px));
  padding: 10px 20px 11px;

  border-color: rgba(190, 255, 225, 0.085);

  background:
    linear-gradient(
      180deg,
      rgba(9, 20, 20, 0.38),
      rgba(5, 12, 14, 0.28)
    );
}

.tomorrow-door-inline.is-personal::before {
  opacity: 0.78;
}

/* TWO-LAYER TEXT – SEQUENTIAL FADE */

.tomorrow-door-text {
  margin: 0;

  font-family: "Cormorant", serif;
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: 0.02px;

  text-align: center;
  white-space: nowrap;

  pointer-events: none;
  will-change: opacity, transform;
}

/* Generic text fades out first */

.tomorrow-door-text-generic {
  color: rgba(245, 251, 248, 0.66);

  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    color 0.28s ease;
}

/* Personal text waits before fading in */

.tomorrow-door-text-personal {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;

  color: rgba(235, 255, 246, 0.86);

  opacity: 0;
  transform: translateY(calc(-50% + 2px));

  transition:
    opacity 0.9s ease 0.18s,
    transform 0.9s ease 0.18s,
    color 0.28s ease;
}

/* Personal state */

.tomorrow-door-inline.is-personal .tomorrow-door-text-generic {
  opacity: 0;
  transform: translateY(-2px);

  transition:
    opacity 0.34s ease,
    transform 0.34s ease,
    color 0.28s ease;
}

.tomorrow-door-inline.is-personal .tomorrow-door-text-personal {
  opacity: 1;
  transform: translateY(-50%);
}

.tomorrow-door-inline.is-personal:hover .tomorrow-door-text-personal {
  color: rgba(245, 255, 250, 0.94);
}

/* Returning to generic, if needed */

.tomorrow-door-inline.is-generic .tomorrow-door-text-generic {
  opacity: 1;
  transform: translateY(0);
}

.tomorrow-door-inline.is-generic .tomorrow-door-text-personal {
  opacity: 0;
  transform: translateY(calc(-50% + 3px));
}

/* SOFT DISMISS */

.tomorrow-door-inline.is-soft-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.985);
}

/* ==========================
   DREAM MODE ENTRY BUTTON
========================== */

.dream-mode-toggle {
  appearance: none;
  -webkit-appearance: none;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-width: 230px;
  min-height: 34px;
  padding: 5px 18px 6px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;

  border-radius: 999px;
  border: 1px solid rgba(226, 205, 136, 0.105);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 175, 76, 0.075),
      rgba(226, 175, 76, 0.020) 42%,
      transparent 74%
    ),
    linear-gradient(
      180deg,
      rgba(12, 14, 13, 0.38),
      rgba(6, 9, 10, 0.28)
    );

  color: rgba(255, 248, 230, 0.78);

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.085),
    0 0 14px rgba(226, 175, 76, 0.014),
    inset 0 1px 0 rgba(255, 255, 255, 0.022);

  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);

  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    color 0.28s ease;
}

.dream-mode-toggle::before {
  content: "✦";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  font-family: "Cormorant", serif;
  font-size: 9px;
  line-height: 1;

  color: rgba(226, 205, 136, 0.54);

  text-shadow:
    0 0 6px rgba(226, 175, 76, 0.16),
    0 0 12px rgba(226, 175, 76, 0.07);
}

.dream-mode-toggle:hover {
  transform: translateY(-1px);

  border-color: rgba(226, 205, 136, 0.18);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 175, 76, 0.105),
      rgba(226, 175, 76, 0.032) 42%,
      transparent 74%
    ),
    linear-gradient(
      180deg,
      rgba(14, 16, 14, 0.46),
      rgba(7, 10, 10, 0.34)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(226, 175, 76, 0.026),
    inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.dream-mode-toggle.is-dream-entry {
  border-color: rgba(218, 171, 78, 0.24);
  color: rgba(255, 236, 180, 0.88);

  background:
    radial-gradient(circle at 18% 50%, rgba(218, 171, 78, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.020);

  box-shadow:
    inset 0 1px 0 rgba(255, 226, 166, 0.065),
    0 0 18px rgba(218, 171, 78, 0.06);
}

.dream-mode-toggle.is-journal-return {
  border-color: rgba(130, 220, 205, 0.22);
  color: rgba(205, 250, 238, 0.90);

  background:
    radial-gradient(circle at 18% 50%, rgba(130, 220, 205, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.018);

  box-shadow:
    inset 0 1px 0 rgba(205, 255, 240, 0.06),
    0 0 18px rgba(130, 220, 205, 0.06);
}

.dream-mode-toggle.is-dream-entry .dream-mode-toggle-sub {
  color: rgba(218, 171, 78, 0.66);
}

.dream-mode-toggle.is-journal-return .dream-mode-toggle-sub {
  color: rgba(130, 220, 205, 0.66);
}

.dream-mode-toggle-generic {
  font-family: "Cormorant", serif;
  font-size: 11.8px;
  line-height: 1.02;
  letter-spacing: 0.012em;

  color: rgba(255, 238, 198, 0.76);
}

.dream-mode-toggle-sub {
  font-family: "Inter", sans-serif;
  font-size: 6.8px;
  line-height: 1;
  letter-spacing: 0.095em;
  text-transform: uppercase;

  color: rgba(226, 205, 136, 0.35);
}

/* ==========================
   WRITE BOX – DREAM MODE
========================== */

.write-box.is-dream-mode {
  border-color: rgba(226, 205, 136, 0.22);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 175, 76, 0.055),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(8, 13, 15, 0.46),
      rgba(6, 9, 10, 0.58)
    );

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.30),
    0 0 34px rgba(226, 175, 76, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.034),
    inset 0 0 0 1px rgba(226, 205, 136, 0.018),
    inset 0 0 36px rgba(226, 175, 76, 0.020);
}

.write-box.is-dream-mode::after {
  background: radial-gradient(
    circle,
    rgba(255, 226, 150, 0.92) 0%,
    rgba(226, 175, 76, 0.48) 18%,
    rgba(226, 175, 76, 0.20) 38%,
    rgba(226, 175, 76, 0.055) 58%,
    rgba(226, 175, 76, 0) 76%
  );
}

.write-box.is-dream-mode textarea {
  caret-color: rgba(226, 205, 136, 0.74);
}

.write-box.is-dream-mode textarea::placeholder {
  color: rgba(255, 238, 198, 0.48);
}

.write-box.is-dream-mode.is-active {
  animation: dreamWritingGlow 5.2s ease-in-out infinite;

  border-color: rgba(226, 205, 136, 0.30);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(226, 175, 76, 0.06),
    0 0 70px rgba(226, 175, 76, 0.03),
    inset 0 0 25px rgba(255, 255, 255, 0.018),
    inset 0 0 42px rgba(226, 175, 76, 0.045);
}

@keyframes dreamWritingGlow {
  0% {
    border-color: rgba(226, 205, 136, 0.14);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.016),
      inset 0 0 40px rgba(226, 175, 76, 0.030),
      0 0 0 rgba(226, 175, 76, 0);
  }

  50% {
    border-color: rgba(226, 205, 136, 0.30);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.018),
      inset 0 0 42px rgba(226, 175, 76, 0.055),
      0 0 22px rgba(226, 175, 76, 0.07);
  }

  100% {
    border-color: rgba(226, 205, 136, 0.14);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.22),
      inset 0 0 25px rgba(255, 255, 255, 0.016),
      inset 0 0 40px rgba(226, 175, 76, 0.030),
      0 0 0 rgba(226, 175, 76, 0);
  }
}

/* ==========================
   DREAM MODE
========================== */

.dream-signal-card {
  border-color: rgba(226, 205, 136, 0.10);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 175, 76, 0.075),
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(10, 15, 15, 0.48),
      rgba(7, 11, 12, 0.58)
    );

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 0 24px rgba(226, 175, 76, 0.026),
    inset 0 1px 0 rgba(255, 255, 255, 0.024);
}

.dream-signal-button {
  border-color: rgba(226, 205, 136, 0.18);

  background:
    linear-gradient(
      180deg,
      rgba(255, 226, 150, 0.075),
      rgba(226, 175, 76, 0.020)
    ),
    rgba(7, 10, 10, 0.46);

  color: rgba(255, 248, 230, 0.92);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.20),
    0 0 18px rgba(226, 175, 76, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -14px 24px rgba(0, 0, 0, 0.10);
}

.dream-signal-button::before {
  color: rgba(226, 205, 136, 0.78);

  text-shadow:
    0 0 8px rgba(226, 175, 76, 0.25),
    0 0 18px rgba(226, 175, 76, 0.12);
}

.dream-signal-button:hover {
  border-color: rgba(226, 205, 136, 0.30);

  background:
    linear-gradient(
      180deg,
      rgba(255, 226, 150, 0.10),
      rgba(226, 175, 76, 0.030)
    ),
    rgba(8, 12, 12, 0.58);

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.23),
    0 0 22px rgba(226, 175, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -16px 26px rgba(0, 0, 0, 0.12);
}

.dream-signal-card .daily-signal-kicker,
.dream-signal-card .daily-signal-compass-label {
  color: rgba(226, 205, 136, 0.58);
}

.dream-signal-card .daily-signal-compass {
  color: rgba(255, 244, 214, 0.90);
}

/* ==========================
   DAILY SIGNAL
========================== */

.daily-signal-mount {
  width: min(630px, calc(100% - 48px));
  margin: 11px auto 0;

  display: flex;
  justify-content: center;
  align-items: center;

  pointer-events: auto;

  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.daily-signal-mount.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.daily-signal-card {
  position: relative;

  width: 100%;
  max-width: 504px;
  padding: 14px 20px 16px;

  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 17, 0.44),
    rgba(6, 14, 15, 0.54)
  );
  border: 1px solid rgba(170, 255, 210, 0.07);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.022);

  backdrop-filter: blur(14px) saturate(114%);
  -webkit-backdrop-filter: blur(14px) saturate(114%);

  text-align: center;
  will-change: opacity, transform;
}

.daily-signal-card.is-clickable {
  cursor: pointer;
  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.daily-signal-card.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 255, 210, 0.11);
  background: linear-gradient(
    180deg,
    rgba(8, 19, 19, 0.48),
    rgba(6, 15, 15, 0.58)
  );
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(120, 255, 200, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.026);
}

.daily-signal-card.is-clickable:focus-visible {
  outline: 1px solid rgba(170, 255, 210, 0.22);
  outline-offset: 5px;
}

.daily-signal-button {
  appearance: none;
  -webkit-appearance: none;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 43px;
  padding: 10px 22px 11px;

  border-radius: 999px;
  border: 1px solid rgba(210, 255, 238, 0.17);
  cursor: pointer;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(5, 12, 12, 0.44);

  color: rgba(245, 255, 250, 0.92);
  font-family: "Cormorant", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.16px;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -14px 24px rgba(0, 0, 0, 0.1);

  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    color 0.26s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;

  will-change: opacity, transform;
}

/* Optional one-time animation class if you later want JS-controlled materialization */
.daily-signal-card.is-new,
.daily-signal-button.is-new {
  animation: dailySignalMaterialize 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dailySignalMaterialize {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  65% {
    opacity: 0.82;
    transform: translateY(2px) scale(0.998);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* lilla stjärnan */
.daily-signal-button::before {
  content: "✦";
  position: relative;
  z-index: 3;

  font-family: "Cormorant", serif;
  font-size: 11px;
  line-height: 1;
  color: rgba(180, 255, 222, 0.68);

  text-shadow:
    0 0 8px rgba(130, 255, 205, 0.22),
    0 0 18px rgba(130, 255, 205, 0.11);

  transform: translateY(-0.5px);

  transition:
    color 0.26s ease,
    text-shadow 0.32s ease,
    transform 0.32s ease;
}

/* subtilt slingrande ornamentlager */
.daily-signal-button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(12px 26px at 15% 56%, rgba(165,255,220,0.10) 0 18%, transparent 19%),
    radial-gradient(5px 10px at 16.5% 56%, rgba(235,255,247,0.12) 0 26%, transparent 27%),

    radial-gradient(14px 28px at 29% 40%, rgba(160,255,218,0.09) 0 18%, transparent 19%),
    radial-gradient(5px 10px at 30.5% 40%, rgba(235,255,247,0.11) 0 26%, transparent 27%),

    radial-gradient(13px 27px at 45% 60%, rgba(165,255,220,0.09) 0 18%, transparent 19%),
    radial-gradient(5px 10px at 46.5% 60%, rgba(235,255,247,0.11) 0 26%, transparent 27%),

    radial-gradient(12px 24px at 61% 42%, rgba(155,255,214,0.085) 0 18%, transparent 19%),
    radial-gradient(5px 10px at 62.3% 42%, rgba(235,255,247,0.10) 0 26%, transparent 27%),

    radial-gradient(12px 25px at 77% 58%, rgba(165,255,220,0.08) 0 18%, transparent 19%),
    radial-gradient(5px 10px at 78.3% 58%, rgba(235,255,247,0.10) 0 26%, transparent 27%),

    linear-gradient(
      90deg,
      transparent 0%,
      rgba(170,255,220,0.02) 16%,
      transparent 34%,
      rgba(230,255,245,0.018) 52%,
      transparent 70%,
      rgba(170,255,220,0.02) 86%,
      transparent 100%
    );

  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(0.15px);
  transform: scale(1);
  transition:
    opacity 0.34s ease,
    transform 0.5s ease;
}

.daily-signal-button:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 255, 238, 0.26);
  color: rgba(255, 255, 255, 0.98);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(160, 255, 220, 0.02)
    ),
    rgba(6, 15, 15, 0.56);

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.23),
    0 0 18px rgba(120, 255, 205, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -16px 26px rgba(0, 0, 0, 0.12);
}

.daily-signal-button:hover::before {
  color: rgba(220, 255, 239, 0.92);
  transform: translateY(-0.5px) scale(1.08);

  text-shadow:
    0 0 10px rgba(150, 255, 215, 0.32),
    0 0 22px rgba(150, 255, 215, 0.16);
}

.daily-signal-button:hover::after {
  opacity: 0.95;
  animation: dailySignalOrnamentDrift 6.8s ease-in-out infinite;
}

/* boom / tyngd vid klick */
.daily-signal-button:active {
  transform: translateY(1px) scale(0.985);

  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    0 0 10px rgba(120, 255, 205, 0.035),
    inset 0 2px 2px rgba(255, 255, 255, 0.035),
    inset 0 -24px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 18px rgba(0, 0, 0, 0.16);
}

.daily-signal-button:active::after {
  opacity: 1;
  transform: scale(0.975);
  filter: blur(0.1px) brightness(1.08);
}

.daily-signal-button:focus-visible {
  outline: none;
  border-color: rgba(220, 255, 242, 0.34);
  box-shadow:
    0 0 0 3px rgba(150, 255, 215, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.23),
    0 0 18px rgba(120, 255, 205, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -16px 26px rgba(0, 0, 0, 0.12);
}

@keyframes dailySignalOrnamentDrift {
  0% {
    background-position:
      15% 56%,
      16.5% 56%,
      29% 40%,
      30.5% 40%,
      45% 60%,
      46.5% 60%,
      61% 42%,
      62.3% 42%,
      77% 58%,
      78.3% 58%,
      0% 50%;
  }

  25% {
    background-position:
      16.2% 55.3%,
      17.7% 55.3%,
      30.4% 41.1%,
      31.9% 41.1%,
      46.4% 59.1%,
      47.9% 59.1%,
      62.2% 43.2%,
      63.5% 43.2%,
      78.1% 57.2%,
      79.4% 57.2%,
      10% 50%;
  }

  50% {
    background-position:
      15.4% 56.8%,
      16.9% 56.8%,
      28.4% 39.6%,
      29.9% 39.6%,
      44.5% 61.1%,
      46% 61.1%,
      60.4% 41.1%,
      61.7% 41.1%,
      76.8% 58.8%,
      78.1% 58.8%,
      20% 50%;
  }

  75% {
    background-position:
      14.8% 55.6%,
      16.3% 55.6%,
      29.6% 40.8%,
      31.1% 40.8%,
      45.8% 59.6%,
      47.3% 59.6%,
      61.8% 42.8%,
      63.1% 42.8%,
      77.9% 57.9%,
      79.2% 57.9%,
      10% 50%;
  }

  100% {
    background-position:
      15% 56%,
      16.5% 56%,
      29% 40%,
      30.5% 40%,
      45% 60%,
      46.5% 60%,
      61% 42%,
      62.3% 42%,
      77% 58%,
      78.3% 58%,
      0% 50%;
  }
}

.daily-signal-kicker {
  font-family: "Inter", sans-serif;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(170, 255, 210, 0.46);
  margin-bottom: 6px;
}

.daily-signal-title {
  font-family: "Cormorant", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 9px;
}

.daily-signal-text {
  font-family: "Cormorant", serif;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 7px;
}

.daily-signal-compass-label {
  font-family: "Inter", sans-serif;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  margin: 13px 0 6px;
}

.daily-signal-compass {
  font-family: "Cormorant", serif;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(235, 255, 246, 0.88);
  margin: 0;
}

.daily-signal-muted {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.44);
}

.daily-signal-loading {
  font-family: "Cormorant", serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.daily-signal-retry-button {
  appearance: none;
  -webkit-appearance: none;

  margin-top: 14px;
  padding: 6px 13px 7px;

  border-radius: 999px;
  border: 1px solid rgba(170, 255, 210, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.62);

  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;

  cursor: pointer;

  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.daily-signal-retry-button:hover {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(170, 255, 210, 0.22);
  background: rgba(170, 255, 210, 0.035);
  transform: translateY(-1px);
}
/* ENTRIES LIST */
#entriesList {
  position: fixed;
  top: 60px;
  right: 20px;

  min-width: 190px;
  padding: 10px;

  z-index: 9999;
  border-radius: 14px;

  color: rgba(235, 245, 244, 0.76);

  background:
    linear-gradient(
      180deg,
      rgba(4, 12, 16, 0.90),
      rgba(2, 8, 11, 0.92)
    );

  border: 1px solid rgba(160, 220, 230, 0.075);

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    inset 0 0 0 1px rgba(255, 255, 255, 0.01);

  backdrop-filter: blur(16px) saturate(108%);
  -webkit-backdrop-filter: blur(16px) saturate(108%);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#entriesList.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* USER LIST */
#userMenu {
  font-family: "Inter", sans-serif;

  position: absolute;
  top: 52px;
  right: 0;

  min-width: 224px;
  padding: 13px;

  z-index: 10002;
  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(5, 13, 18, 0.92),
      rgba(2, 8, 12, 0.94)
    );

  border: 1px solid rgba(160, 220, 230, 0.08);

  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.028),
    inset 0 0 0 1px rgba(255, 255, 255, 0.01);

  backdrop-filter: blur(16px) saturate(108%);
  -webkit-backdrop-filter: blur(16px) saturate(108%);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#userMenu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#currentUserLabel {
  margin-bottom: 12px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;

  color: rgba(225, 240, 238, 0.78);
}

.auth-status {
  margin-bottom: 6px;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;

  color: rgba(150, 215, 225, 0.56);
}

.auth-email {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;

  color: rgba(235, 246, 246, 0.84);
}

/* ==========================
   USER AVATAR BUTTON
========================== */

.user-button {
  appearance: none;
  -webkit-appearance: none;

  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  color: inherit;
  font: inherit;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;

  position: relative;
  top: -6px;
  left: -5px;

  border-radius: 50%;

  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease;
}

.user-avatar {
  display: block;

  width: 28px;
  height: 28px;

  border-radius: 50%;
  object-fit: cover;

  border: 1px solid rgba(190, 230, 235, 0.14);

  box-shadow:
    0 0 0 1px rgba(140, 225, 235, 0.045),
    0 0 12px rgba(90, 220, 210, 0.035);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.user-button.is-authenticated {
  border-radius: 999px;
  animation: northstarPresence 5.8s ease-in-out infinite;
}

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

.user-button.is-authenticated:hover {
  filter: drop-shadow(0 0 8px rgba(120, 220, 230, 0.12));
}

.user-button.is-authenticated:hover .user-avatar {
  transform: scale(1.06);

  border-color: rgba(190, 245, 245, 0.24);

  box-shadow:
    0 0 0 1px rgba(140, 225, 235, 0.10),
    0 0 14px rgba(90, 220, 210, 0.08);
}

@keyframes northstarPresence {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 220, 230, 0);
  }

  50% {
    box-shadow:
      0 0 6px 2px rgba(120, 220, 230, 0.08),
      0 0 10px 3px rgba(120, 220, 230, 0.035);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(120, 220, 230, 0);
  }
}

/* ==========================
   GOOGLE LOGIN
========================== */

#googleSignInButton {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 44px;
  margin: 10px 0 12px;

  position: relative;
  z-index: 100;
}

#googleSignInMount {
  position: static;

  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#googleSignInMount.show {
  display: block;
}

.google-auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}

#googleSignInButtonHost {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 44px;
  margin-top: 4px;
}

/* ==========================
   TESTER BADGE
========================== */

.tester-badge {
  position: relative;
  isolation: isolate;

  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: auto;
  max-width: 100%;

  margin: 10px auto 14px;
  padding: 7px 12px;

  border: 1px solid rgba(232, 188, 94, 0.42);
  border-radius: 999px;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 232, 170, 0.14), transparent 42%),
    rgba(20, 18, 14, 0.46);

  color: rgba(255, 226, 164, 0.96);

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;

  cursor: pointer;
  overflow: hidden;

  box-shadow:
    0 0 18px rgba(232, 190, 110, 0.08),
    inset 0 0 18px rgba(255, 225, 165, 0.04);

  user-select: none;
  -webkit-user-select: none;
}

.tester-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;

  border: 1px solid rgba(255, 236, 190, 0.10);

  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, 0.10),
    inset 0 -1px 0 rgba(120, 92, 40, 0.12);
}

.tester-badge::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 229, 160, 0.10),
      rgba(255, 210, 120, 0.04) 34%,
      transparent 68%
    );

  filter: blur(8px);
  opacity: 0.72;
}

.tester-badge-orbit {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tester-badge-orbit::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;

  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 245deg,
      rgba(255, 225, 145, 0.00) 280deg,
      rgba(255, 226, 150, 0.35) 312deg,
      rgba(255, 242, 205, 0.82) 338deg,
      rgba(255, 225, 145, 0.42) 356deg,
      transparent 360deg
    );

  filter: blur(9px);
  opacity: 0.78;
  animation: testerBadgeAuraOrbit 12s linear infinite;
}

.tester-badge-orbit::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;

  background: rgba(12, 15, 14, 0.78);

  box-shadow:
    inset 0 0 10px rgba(255, 225, 150, 0.055),
    inset 0 0 2px rgba(255, 241, 210, 0.16);
}

.tester-badge-star,
.tester-badge > span:last-child {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.tester-badge-star {
  font-size: 10px;
  opacity: 0.9;
  color: rgba(255, 222, 150, 0.95);
}

.tester-badge:hover {
  border-color: rgba(255, 224, 156, 0.40);
  color: rgba(255, 244, 214, 0.98);

  box-shadow:
    0 0 24px rgba(232, 190, 110, 0.13),
    inset 0 0 18px rgba(255, 225, 165, 0.055);
}

@keyframes testerBadgeAuraOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tester-badge-modal {
  position: fixed;
  inset: 0;
  z-index: 70000;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 180ms ease;
}

.tester-badge-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tester-badge-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(238, 197, 118, 0.05),
      transparent 42%
    ),
    rgba(3, 8, 10, 0.44);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tester-badge-panel {
  position: relative;
  width: min(332px, calc(100vw - 40px));

  padding: 18px 18px 16px;

  border-radius: 20px;
  border: 1px solid rgba(238, 203, 135, 0.18);

  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 226, 168, 0.06),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(14, 19, 20, 0.92),
      rgba(8, 11, 12, 0.94)
    );

  color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(222, 180, 100, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: translateY(8px) scale(0.985);

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.tester-badge-modal.is-visible .tester-badge-panel {
  transform: translateY(0) scale(1);
}

.tester-badge-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 26px;
  height: 26px;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.56);

  font-size: 17px;
  line-height: 1;

  cursor: pointer;
}

.tester-badge-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.tester-badge-modal-kicker {
  margin-bottom: 10px;

  color: rgba(238, 203, 135, 0.74);

  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tester-badge-modal-title {
  margin: 0 0 12px;

  color: rgba(255, 244, 214, 0.96);

  font-family: "Inter", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tester-badge-modal-text {
  margin: 0 0 12px;

  color: rgba(235, 242, 238, 0.72);

  font-size: 12px;
  line-height: 1.55;
}

.tester-badge-info-grid {
  display: grid;
  gap: 8px;

  margin: 18px 0 16px;
}

.tester-badge-info-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 8px 11px;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);

  background: rgba(255, 255, 255, 0.028);
}

.tester-badge-info-grid span {
  color: rgba(255, 255, 255, 0.42);

  font-size: 11px;
}

.tester-badge-info-grid strong {
  color: rgba(255, 238, 196, 0.9);

  font-size: 11px;
  font-weight: 500;
}

.tester-feedback-btn {
  width: 100%;

  padding: 10px 12px;

  border-radius: 999px;
  border: 1px solid rgba(238, 203, 135, 0.28);

  background:
    linear-gradient(
      180deg,
      rgba(255, 232, 176, 0.11),
      rgba(255, 232, 176, 0.04)
    ),
    rgba(255, 255, 255, 0.035);

  color: rgba(255, 242, 210, 0.95);

  font-size: 12px;
  letter-spacing: 0.02em;

  cursor: pointer;
}

.tester-feedback-btn:hover {
  border-color: rgba(255, 226, 166, 0.42);

  background:
    linear-gradient(
      180deg,
      rgba(255, 232, 176, 0.16),
      rgba(255, 232, 176, 0.06)
    ),
    rgba(255, 255, 255, 0.05);
}

/* ==========================
   LOGOUT
========================== */

#logoutBtn {
  position: relative;
  z-index: 10003;

  width: 100%;
  padding: 10px 12px;

  border-radius: 14px;
  border: 1px solid rgba(180, 230, 235, 0.065);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );

  color: rgba(235, 246, 246, 0.50);

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  pointer-events: none;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

#userMenu.show #logoutBtn {
  pointer-events: auto;
}

#logoutBtn:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.026)
    );

  border-color: rgba(180, 235, 240, 0.12);
  color: rgba(245, 255, 255, 0.72);
}

.auth-message {
  display: none;

  max-width: 220px;
  margin: 11px auto 0;
  padding: 0 6px;

  border: none;
  background: transparent;

  font-family: "Inter", sans-serif;
  font-size: 12.2px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.005em;
  text-align: center;

  color: rgba(188, 218, 211, 0.66);
}

.auth-message.show {
  display: block;
}

.auth-message strong,
.auth-message span,
.auth-message p {
  color: inherit;
}

.active-entry {
  background: rgba(150, 220, 230, 0.045);
  color: rgba(245, 255, 255, 0.86);
  opacity: 1 !important;
}


/* ENTRY PREVIEW */
#entryPreview {
  position: fixed;
  top: 110px;
  right: 235px;

  width: 180px;
  min-height: 64px;
  max-height: 140px;
  overflow: hidden;

  padding: 12px 14px;

  z-index: 9998;

  font-family: "Cormorant", serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.1px;

  color: rgba(235, 246, 246, 0.76);

  background:
    linear-gradient(
      180deg,
      rgba(5, 13, 18, 0.50),
      rgba(2, 8, 12, 0.58)
    );

  border: 1px solid rgba(160, 220, 230, 0.045);
  border-radius: 13px;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(90, 220, 210, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);

  backdrop-filter: blur(16px) saturate(106%);
  -webkit-backdrop-filter: blur(16px) saturate(106%);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#entryPreview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 36px;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(2, 8, 12, 0) 0%,
      rgba(2, 8, 12, 0.46) 100%
    );
}

#entryPreview.show {
  opacity: 1;
  transform: translateY(0);
}

/* SETTINGS LIST */
#settingsMenu {
  position: fixed;
  top: 60px;
  right: 20px;

  min-width: 230px;
  padding: 13px;

  z-index: 9999;
  border-radius: 16px;

  color: rgba(235, 245, 244, 0.78);

  background:
    linear-gradient(
      180deg,
      rgba(4, 12, 16, 0.92),
      rgba(2, 8, 11, 0.94)
    );

  border: 1px solid rgba(160, 220, 230, 0.08);

  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(80, 220, 190, 0.014),
    inset 0 1px 0 rgba(255, 255, 255, 0.028),
    inset 0 0 0 1px rgba(255, 255, 255, 0.01);

  backdrop-filter: blur(16px) saturate(108%);
  -webkit-backdrop-filter: blur(16px) saturate(108%);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#settingsMenu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#toggleWordCountBtn {
  cursor: pointer;

  padding: 8px 8px 7px;
  border-radius: 10px;

  opacity: 0.82;

  color: rgba(235, 246, 246, 0.74);

  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease;
}

#toggleWordCountBtn:hover {
  background: rgba(150, 220, 230, 0.045);
  color: rgba(245, 255, 255, 0.92);
  opacity: 1;
}

/* ==========================
   AMBIENCE / SETTINGS
========================== */

.settings-divider {
  height: 1px;
  margin: 11px 0 9px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(160, 220, 230, 0.09),
      transparent
    );
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row-top {
  justify-content: space-between;
  margin-bottom: 11px;
}

.settings-row-choices {
  gap: 7px;
  margin-bottom: 3px;
}

.settings-label-inline {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(155, 210, 220, 0.62);
}

.settings-choice-btn {
  appearance: none;
  -webkit-appearance: none;

  padding: 7px 12px;

  border-radius: 999px;
  border: 1px solid rgba(160, 220, 230, 0.10);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.036),
      rgba(255, 255, 255, 0.014)
    ),
    rgba(4, 12, 16, 0.62);

  color: rgba(235, 246, 246, 0.76);

  font-size: 13px;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    0 6px 14px rgba(0, 0, 0, 0.12);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.settings-choice-btn:hover {
  transform: translateY(-1px);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.052),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(6, 16, 21, 0.72);

  border-color: rgba(175, 235, 240, 0.16);
  color: rgba(250, 255, 255, 0.94);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.034),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.settings-choice-btn.is-active {
  background:
    linear-gradient(
      180deg,
      rgba(135, 225, 235, 0.105),
      rgba(80, 180, 200, 0.055)
    ),
    rgba(5, 14, 18, 0.78);

  border-color: rgba(170, 235, 245, 0.22);
  color: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 0 0 1px rgba(120, 220, 235, 0.035),
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.038);
}

#ambienceVolumeSlider {
  flex: 1;
  width: 100%;

  appearance: none;
  background: transparent;
  cursor: pointer;
}

#ambienceVolumeSlider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      rgba(110, 210, 225, 0.30),
      rgba(255, 255, 255, 0.13)
    );
}

#ambienceVolumeSlider::-webkit-slider-thumb {
  appearance: none;

  width: 16px;
  height: 16px;
  margin-top: -6px;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(225, 242, 242, 0.82);

  box-shadow:
    0 0 0 1px rgba(120, 220, 235, 0.08),
    0 0 12px rgba(100, 220, 225, 0.12);
}

#ambienceVolumeSlider::-moz-range-track {
  height: 4px;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      rgba(110, 210, 225, 0.30),
      rgba(255, 255, 255, 0.13)
    );
}

#ambienceVolumeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(225, 242, 242, 0.82);

  box-shadow:
    0 0 0 1px rgba(120, 220, 235, 0.08),
    0 0 12px rgba(100, 220, 225, 0.12);
}


/* ==========================
   RADIO PLAYER
========================== */

.radio-player {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 200;
}

/* ==========================
   IDLE BUTTON
========================== */

.radio-trigger {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;

  transition:
    opacity 0.22s ease,
    transform 0.26s ease,
    color 0.22s ease;
}

.radio-trigger:hover {
  color: rgba(255, 255, 255, 0.9);
}

.radio-player.open .radio-trigger {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ==========================
   EXPANDED PLAYER
========================== */

.radio-expanded {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 214px;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;

  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;

  transition:
    opacity 0.26s ease,
    transform 0.3s ease;
}

.radio-player.open .radio-expanded {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ==========================
   PLAYER BACKGROUND IMAGE
========================== */

.radio-expanded::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(2, 8, 10, 0.72) 0%,
      rgba(2, 8, 10, 0.78) 46%,
      rgba(1, 5, 7, 0.94) 100%
    );

  pointer-events: none;
  z-index: 1;
}

.radio-expanded {
  background-image: url("images/northstar-desktop-bg.png");
  background-size: 760%;
  background-position: 78% 50%;
  background-repeat: no-repeat;

  background-color: rgba(2, 8, 10, 0.95);

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(80, 220, 190, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.032),
    inset 0 0 0 1px rgba(170, 255, 220, 0.012);

  border: 1px solid rgba(180, 230, 220, 0.055);
}

/* Mörk toning ovanpå bilden */
.radio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 58% 30%,
      rgba(130, 255, 220, 0.065) 0%,
      rgba(130, 255, 220, 0.028) 24%,
      transparent 58%
    ),
    radial-gradient(
      ellipse at 50% 56%,
      rgba(255, 255, 255, 0.018) 0%,
      rgba(255, 255, 255, 0.008) 22%,
      rgba(5, 12, 12, 0.14) 52%,
      rgba(4, 10, 10, 0.68) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 10, 10, 0.22) 0%,
      rgba(4, 10, 10, 0.42) 52%,
      rgba(2, 6, 7, 0.76) 100%
    );
}

/* ==========================
   CONTENT
========================== */

.radio-content {
  position: relative;
  z-index: 2;

  min-height: auto;
  padding: 34px 14px 14px 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;
}

/* ==========================
   TITLE
========================== */

.radio-title-wrap {
  margin-bottom: 10px;
}

.radio-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.678);
  margin-bottom: 2px;
  line-height: 1.1;
}

.radio-subtitle {
  font-size: 10px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.386);
  max-width: 150px;
}

/* ==========================
   PLAY BUTTON
========================== */

.radio-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;

  border: 1px solid rgba(210, 255, 238, 0.075);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.052),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(6, 15, 15, 0.42);

  color: rgba(245, 255, 250, 0.70);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
  cursor: pointer;

  margin-bottom: 10px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.048),
    0 8px 18px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.radio-play-btn:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================
   VOLUME
========================== */

.radio-volume-wrap {
  width: 100%;
  max-width: 136px;
  margin-bottom: 10px;
}

#radioVolume {
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#radioVolume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#radioVolume::-webkit-slider-thumb {
  appearance: none;
  margin-top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: none;
}

#radioVolume::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#radioVolume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: none;
}
/* ==========================
   CHANNEL LIST
========================== */

.radio-channel-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.radio-channel {
  width: auto;
  max-width: none;

  background: transparent;
  border: none;
  border-radius: 0;

  padding: 2px 0;
  text-align: center;
  opacity: 0.6;

  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.15;
  cursor: pointer;

  transition:
    color 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.radio-channel:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.836);
}

.radio-channel.active {
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.radio-title-wrap {
  cursor: pointer;
}

.radio-title-wrap:hover .radio-title {
  opacity: 0.8;
}

.radio-title-wrap:hover .radio-subtitle {
  opacity: 0.7;
}

.radio-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;

  transition:
    opacity 0.22s ease,
    transform 0.26s ease,
    color 0.22s ease;
}

.radio-trigger:hover {
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(120, 255, 200, 0.18));
}

.radio-trigger:hover .radio-trigger-icon {
  transform: scale(1.12);
  color: rgba(160, 255, 210, 0.9);
  filter: drop-shadow(0 0 6px rgba(120, 255, 200, 0.18));
}

.radio-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    color 0.3s ease;
}

.radio-trigger-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}

.radio-trigger-label {
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}

#northstarVisualizer {
  position: fixed;
  right: -15px;
  bottom: 0px;
  width: 420px;
  height: 420px;
  display: none;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.84;
  background: transparent;

  transform: scale(0.3333);
  transform-origin: bottom right;

  transition:
    left 2.38s ease,
    top 2.38s ease,
    opacity 0.28s ease;
}

.write-box:has(.radio-player.open) ~ #northstarVisualizer {
  right: -80px;
  bottom: -80px;
  transform: scale(1);
  opacity: 0.48;
}


/* ==========================
   RADIO AURA / MULTI-BAND V2
========================== */
.radio-expanded {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 214px;
  border-radius: 20px;
  overflow: visible;
  isolation: isolate;

  --radio-bloom-strength: 0;
  --radio-halo-strength: 0;
  --radio-edge-strength: 0;
  --radio-bloom-scale: 0;
  --radio-bass-x: 0.5;
  --radio-bass-strength: 0;
}

.radio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.radio-content {
  position: relative;
  z-index: 3;
}

.radio-aura {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.radio-aura-core {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(170, 255, 225, calc(var(--radio-edge-strength) * 0.22)),
    0 0 7px rgba(120, 245, 215, calc(var(--radio-edge-strength) * 0.14)),
    0 0 12px rgba(110, 235, 205, calc(var(--radio-edge-strength) * 0.10));
  opacity: calc(var(--radio-edge-strength) * 0.95);
  transition:
    opacity 0.02s linear,
    box-shadow 0.02s linear;
}

.radio-aura-halo {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 0 10px 1px rgba(110, 255, 220, calc(var(--radio-halo-strength) * 0.11)),
    0 0 18px 2px rgba(90, 225, 200, calc(var(--radio-halo-strength) * 0.09));
  filter: blur(3px);
  opacity: calc(var(--radio-halo-strength) * 0.82);
  transform: scale(calc(1 + var(--radio-bloom-scale) * 0.012));
  transform-origin: center;
  transition:
    opacity 0.04s linear,
    transform 0.04s linear,
    box-shadow 0.04s linear;
}

.radio-aura-bloom {
  position: absolute;
  inset: -5px;
  border-radius: 25px;
  background: transparent;
  box-shadow:
    0 0 18px 4px rgba(80, 210, 190, calc(var(--radio-bloom-strength) * 0.05)),
    0 0 28px 8px rgba(70, 185, 165, calc(var(--radio-bloom-strength) * 0.04));
  filter: blur(7px);
  opacity: calc((var(--radio-bloom-strength) * 0.45) + (var(--radio-bass-strength) * 0.35));
  transform:
    translateX(calc((var(--radio-bass-x) - 0.5) * 26px))
    scale(calc(1 + var(--radio-bloom-scale) * 0.02));
  transform-origin: center;
  transition:
    opacity 0.05s linear,
    transform 0.05s linear,
    box-shadow 0.05s linear;
}




/* ==========================
   VIEW SWITCH BUTTON
========================== */

.view-switch-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(4, 8, 10, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);

  font-family: "Cormorant", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1;

  padding: 6px 12px 7px;
  border-radius: 999px;
  cursor: pointer;

  position: relative;
  top: -4px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.view-switch-btn:hover {
  background: rgba(8, 14, 18, 0.58);
  border-color: rgba(170, 255, 210, 0.11);
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(120, 255, 200, 0.03);
}

.view-switch-btn:focus-visible {
  outline: 1px solid rgba(140, 255, 200, 0.25);
  outline-offset: 4px;
}


/* ==========================
   TIMELINE PAGE
========================== */

body.timeline-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(3, 7, 12, 0.42), rgba(3, 7, 12, 0.56)),
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0) 36%,
      rgba(0, 0, 0, 0.24) 100%
    );
}

.timeline-shell {
  position: relative;
  z-index: 1;
  width: min(1230px, calc(100% - 64px));
  margin: 92px auto 68px;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr) 266px;
  gap: 23px;
  align-items: start;

  height: auto;
  min-height: calc(100vh - 142px);
  overflow: visible;
}

#timelineWeeksMount,
#timelineEntryMount {
  min-height: 0;
}

#timelineWeeksMount {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

#timelineEntryMount {
  align-self: start;
  height: clamp(350px, 60vh, 630px);
  min-height: 350px;
  overflow: hidden;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#timelineEntryMount.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

#timelineWeeksMount::-webkit-scrollbar,
#timelineEntryMount::-webkit-scrollbar {
  width: 5px;
}

#timelineWeeksMount::-webkit-scrollbar-track,
#timelineEntryMount::-webkit-scrollbar-track {
  background: transparent;
}

#timelineWeeksMount::-webkit-scrollbar-thumb,
#timelineEntryMount::-webkit-scrollbar-thumb {
  background: rgba(230, 255, 245, 0.12);
  border-radius: 999px;
}

#timelineWeeksMount::-webkit-scrollbar-thumb:hover,
#timelineEntryMount::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 255, 245, 0.2);
}

.timeline-left,
.timeline-center,
.timeline-right {
  min-width: 0;
}

.timeline-left,
.timeline-right {
  position: sticky;
  top: 92px;
  align-self: start;
}

.timeline-center {
  min-height: 0;
}

.timeline-column-title {
  font-family: "Cormorant", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 15px;
  padding-left: 3px;
}

.timeline-card {
  border-radius: 23px;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 17, 0.56),
    rgba(6, 14, 15, 0.64)
  );
  border: 1px solid rgba(150, 190, 165, 0.08);
  box-shadow:
    0 9px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
}

.timeline-card-header {
  margin-bottom: 15px;
}

.timeline-card-title {
  font-family: "Cormorant", serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: rgba(255, 255, 255, 0.92);
}

/* LEFT */

.timeline-calendar-card {
  padding: 17px 17px 14px;
  min-height: 282px;
}

.timeline-calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}

.timeline-calendar-month {
  font-family: "Cormorant", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: rgba(255, 255, 255, 0.94);
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.96);
  transform: scale(1.05);
}

.calendar-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.timeline-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 15px;
}

.calendar-weekday {
  text-align: center;
  padding-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.calendar-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.calendar-day:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.98);
}

.calendar-day:disabled {
  cursor: default;
}

.calendar-day.is-muted {
  color: rgba(255, 255, 255, 0.2);
}

.calendar-day.has-entry::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(170, 255, 210, 0.82);
}

.calendar-day.is-selected-week {
  background: rgba(255, 255, 255, 0.03);
}

.calendar-day.is-active-day {
  background: rgba(150, 255, 210, 0.1);
  color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(170, 255, 210, 0.2),
    0 0 15px rgba(120, 255, 200, 0.06);
}

.timeline-calendar-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-stat-label {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.54);
}

.timeline-stat-value {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}

/* CENTER */

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.week-card {
  border-radius: 23px;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 17, 0.56),
    rgba(6, 14, 15, 0.64)
  );
  border: 1px solid rgba(150, 190, 165, 0.08);
  box-shadow:
    0 9px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
  overflow: hidden;
}

.week-card-toggle {
  position: relative;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 18px 23px;
}

.week-card.is-collapsed .week-card-toggle {
  cursor: pointer;
}

.week-card button,
.week-day-chip {
  cursor: pointer;
}

.week-card-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.week-card-title {
  font-family: "Cormorant", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.12px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.week-card-subline {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
}

.week-card-range {
  font-family: "Cormorant", serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
}

.week-card-meta {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}

.week-card-summary {
  max-width: 92%;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.week-card-chevron {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
}

.week-card-body {
  padding: 0 23px 22px;
}

.week-days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.week-day-chip {
  min-width: 65px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.week-day-chip:hover {
  border-color: rgba(180, 255, 220, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.9);
}

.week-day-chip.is-active {
  border-color: rgba(180, 255, 220, 0.3);
  background: rgba(150, 255, 210, 0.08);
  color: rgba(255, 255, 255, 0.96);
}

.week-reflection-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 18, 0.44),
    rgba(7, 15, 16, 0.52)
  );
  border: 1px solid rgba(150, 190, 165, 0.06);
  margin-bottom: 15px;
}

.week-section-title {
  font-family: "Cormorant", serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
}

.week-reflection-text {
  color: rgba(255, 255, 255, 0.82);
}

.week-reflection-text p {
  margin: 0 0 1em;
  font-family: "Cormorant", serif;
  font-size: 15px;
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.82);
}

.week-reflection-text p:last-child {
  margin-bottom: 0;
}

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

.week-mini-card {
  padding: 15px 15px 14px;
  border-radius: 17px;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 18, 0.42),
    rgba(7, 15, 16, 0.48)
  );
  border: 1px solid rgba(150, 190, 165, 0.05);
}

.week-mini-title {
  font-family: "Cormorant", serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.93);
  margin-bottom: 8px;
}

.week-mini-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.week-breakthrough-card {
  border-color: rgba(170, 190, 165, 0.075);
  background: linear-gradient(
    180deg,
    rgba(8, 18, 18, 0.42),
    rgba(7, 15, 16, 0.48)
  );
}

.week-breakthrough-card .week-mini-title {
  color: rgba(205, 250, 235, 0.94);
}

.week-breakthrough-card .week-mini-title::before {
  content: "✦";
  display: inline-block;
  margin-right: 7px;

  font-size: 10px;
  line-height: 1;
  transform: translateY(-1px);

  color: rgba(150, 235, 205, 0.72);
  text-shadow: 0 0 9px rgba(120, 255, 200, 0.14);
}

.week-breakthrough-card .week-mini-text {
  color: rgba(255, 255, 255, 0.72);
}

.week-insight-grid.is-placeholder .week-mini-text {
  color: rgba(255, 255, 255, 0.48);
}

.week-insight-grid.is-placeholder .week-mini-title {
  color: rgba(255, 255, 255, 0.76);
}

.week-insight-grid.is-placeholder .week-breakthrough-card .week-mini-title {
  color: rgba(205, 250, 235, 0.78);
}

/* RIGHT */
/* ==========================
   TIMELINE – HÖGERKORT
========================== */

.entry-read-card {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.entry-read-inner {
  display: block;
  height: 100%;
  min-height: 0;

  padding: 12px 5px 9px;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(150, 220, 200, 0.22) transparent;
}

.entry-read-inner::-webkit-scrollbar {
  width: 4px;
}

.entry-read-inner::-webkit-scrollbar-track {
  background: transparent;
}

.entry-read-inner::-webkit-scrollbar-thumb {
  background: rgba(150, 220, 200, 0.22);
  border-radius: 999px;
}

.entry-read-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(170, 245, 220, 0.34);
}

.entry-read-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  text-align: center;
}

.entry-read-date {
  width: 100%;

  font-family: "Cormorant", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 1px;
  text-align: center;
}

.entry-read-meta {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;

  font-size: 9.5px;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.46);
  opacity: 0.44;
  text-align: center;
}

.entry-read-divider {
  margin: 0 0 12px;
}

.entry-read-body {
  padding-right: 0;
  margin-right: 0;
  overflow: visible;
}

.entry-read-body p {
  margin: 0 0 0.85em;
  font-family: "Cormorant", serif;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.84);
}

.entry-read-body p:last-child {
  margin-bottom: 0;
}

.entry-read-empty {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}

.entry-read-empty-title {
  font-family: "Cormorant", serif;
  font-size: 23px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.entry-read-empty-text {
  max-width: 185px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.timeline-idle-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 515px;
  overflow: hidden;
  border-radius: 23px;
  isolation: isolate;

  background:
    linear-gradient(
      180deg,
      rgba(3, 12, 15, 0.78),
      rgba(2, 8, 11, 0.94)
    );

  border: 1px solid rgba(190, 220, 210, 0.10);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.timeline-idle-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 43% 52%;

  opacity: 0.80;

  filter:
    brightness(0.84)
    saturate(0.68)
    hue-rotate(18deg)
    contrast(1.06);

  transform: scale(1.005);
  pointer-events: none;
  user-select: none;
}

.timeline-idle-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 18% 47%,
      rgba(255, 186, 92, 0.12) 0%,
      rgba(255, 186, 92, 0.045) 18%,
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(2, 8, 11, 0.12) 0%,
      rgba(2, 8, 11, 0.24) 34%,
      rgba(2, 8, 11, 0.62) 72%,
      rgba(1, 5, 7, 0.88) 100%
    ),
    radial-gradient(
      circle at 50% 42%,
      rgba(110, 220, 210, 0.025),
      rgba(0, 0, 0, 0.24) 68%
    );
}

.timeline-idle-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 35px;
  z-index: 2;

  text-align: center;
}

.timeline-idle-title {
  font-family: "Cormorant", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.1px;
  color: rgba(255, 248, 232, 0.9);

  text-shadow:
    0 2px 15px rgba(0, 0, 0, 0.58),
    0 0 15px rgba(255, 190, 105, 0.06);
}

.timeline-idle-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 13px auto 14px;
  color: rgba(225, 165, 74, 0.76);
}

.timeline-idle-divider span {
  display: block;
  width: 45px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(225, 165, 74, 0.72)
  );
}

.timeline-idle-divider span:last-child {
  background: linear-gradient(
    90deg,
    rgba(225, 165, 74, 0.72),
    transparent
  );
}

.timeline-idle-divider i {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.timeline-idle-text {
  max-width: 205px;
  margin: 0 auto;

  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

#timelineEntryMount:has(.timeline-idle-card) {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

/* ==========================
   DREAM SIGNAL IN TIMELINE
========================== */

.week-day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.week-day-chip.has-dream-signal {
  border-color: rgba(218, 171, 78, 0.34);
  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(218, 171, 78, 0.13),
      transparent 44%
    ),
    rgba(255, 255, 255, 0.035);
}

.week-day-chip-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 11px;
  height: 11px;
  flex: 0 0 auto;

  color: rgba(232, 184, 86, 0.98);
  transform: translateY(-0.5px);

  filter:
    drop-shadow(0 0 4px rgba(218, 171, 78, 0.48))
    drop-shadow(0 0 9px rgba(218, 171, 78, 0.18));
}

.week-day-chip-moon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================
   DREAM SIGNAL CARD
========================== */

.entry-dream-signal {
  margin: 0 0 10px;

  border: 1px solid rgba(218, 171, 78, 0.38);
  border-radius: 13px;

  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(218, 171, 78, 0.15),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(218, 171, 78, 0.065),
      rgba(22, 17, 9, 0.16)
    ),
    rgba(255, 255, 255, 0.022);

  box-shadow:
    inset 0 1px 0 rgba(255, 226, 166, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 15px 38px rgba(0, 0, 0, 0.16);

  overflow: hidden;
}

.entry-dream-signal-summary {
  list-style: none;
  cursor: pointer;

  padding: 10px 13px 11px;
}

.entry-dream-signal-summary::-webkit-details-marker {
  display: none;
}

.entry-dream-signal-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin-bottom: 5px;

  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(235, 189, 94, 0.96);
}

.entry-dream-signal-kicker::before {
  content: "";

  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;

  background: currentColor;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.7 18.3C12.9 18.3 9 14.4 9 9.6C9 7.2 10 5 11.6 3.4C7.2 4 3.8 7.8 3.8 12.3C3.8 17.3 7.9 21.4 12.9 21.4C16.1 21.4 18.9 19.8 20.5 17.3C19.6 18 18.7 18.3 17.7 18.3Z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.7 18.3C12.9 18.3 9 14.4 9 9.6C9 7.2 10 5 11.6 3.4C7.2 4 3.8 7.8 3.8 12.3C3.8 17.3 7.9 21.4 12.9 21.4C16.1 21.4 18.9 19.8 20.5 17.3C19.6 18 18.7 18.3 17.7 18.3Z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  filter:
    drop-shadow(0 0 5px rgba(218, 171, 78, 0.42))
    drop-shadow(0 0 10px rgba(218, 171, 78, 0.16));
}

.entry-dream-signal-preview {
  display: block;
  max-width: 25ch;
  margin: 0 auto;

  font-size: 0.82rem;
  line-height: 1.32;
  font-weight: 520;
  text-align: center;

  color: rgba(255, 248, 230, 0.94);
}

.entry-dream-signal-expanded {
  padding: 0 14px 14px;
}

.entry-dream-signal-title {
  margin: 2px 0 10px;

  font-family: "Cormorant", serif;
  font-size: 0.88rem;
  line-height: 1.28;
  text-align: center;

  color: rgba(255, 250, 236, 0.96);
}

.entry-dream-signal-text {
  margin: 0 0 10px;

  font-family: "Cormorant", serif;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;

  color: rgba(255, 255, 255, 0.78);
}

.entry-dream-signal-compass-label {
  margin-top: 10px;

  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(235, 189, 94, 0.78);
}

.entry-dream-signal-compass {
  margin: 6px 0 0;

  font-size: 0.8rem;
  line-height: 1.5;

  color: rgba(255, 248, 230, 0.92);
}

/* ==========================
   ORIGINAL DREAM TEXT
========================== */

.entry-dream-source {
  margin: 0 0 12px;

  border-radius: 12px;
  border: 1px solid rgba(218, 171, 78, 0.16);

  background:
    linear-gradient(
      180deg,
      rgba(218, 171, 78, 0.035),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(3, 10, 10, 0.12);

  overflow: hidden;

  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.entry-dream-source[open] {
  border-radius: 12px;
  border-color: rgba(218, 171, 78, 0.22);

  background:
    linear-gradient(
      180deg,
      rgba(218, 171, 78, 0.04),
      rgba(255, 255, 255, 0.014)
    ),
    rgba(3, 10, 10, 0.18);

  box-shadow:
    inset 0 1px 0 rgba(255, 226, 166, 0.04),
    0 9px 22px rgba(0, 0, 0, 0.10);
}

.entry-dream-source-summary {
  list-style: none;
  cursor: pointer;

  min-height: 28px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0;
  line-height: 1;
  user-select: none;
}

.entry-dream-source-summary::-webkit-details-marker {
  display: none;
}

.entry-dream-source-summary::before {
  content: "Visa drömtext";

  font-family: "Inter", sans-serif;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(218, 171, 78, 0.72);

  transition:
    color 0.22s ease,
    opacity 0.22s ease;
}

.entry-dream-source[open] .entry-dream-source-summary {
  border-bottom: 1px solid rgba(218, 171, 78, 0.09);
}

.entry-dream-source[open] .entry-dream-source-summary::before {
  content: "Dölj drömtext";
  color: rgba(218, 171, 78, 0.82);
}

.entry-dream-source-summary:hover::before {
  color: rgba(235, 189, 94, 0.92);
}

.entry-dream-source-body {
  padding: 11px 13px 13px;
}

.entry-dream-source-body p {
  margin: 0 0 11px;

  font-family: "Cormorant", serif;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;

  color: rgba(255, 255, 255, 0.66);
}

.entry-dream-source-body p:last-child {
  margin-bottom: 0;
}

/* ==========================
   JOURNAL TEXT BELOW SIGNALS
========================== */

.entry-journal-source p {
  margin: 0 0 0.85em;

  font-family: "Cormorant", serif;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.005em;

  color: rgba(255, 255, 255, 0.84);
}

.entry-journal-source p:last-child {
  margin-bottom: 0;
}

/* ==========================
   NORTHSTAR SCROLLBARS
========================== */

#writeView,
.write-scroll,
.daily-signal-card,
#timelineView,
.entry-read-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 230, 205, 0.16) transparent;
}

#writeView::-webkit-scrollbar,
.write-scroll::-webkit-scrollbar,
.daily-signal-card::-webkit-scrollbar,
#timelineView::-webkit-scrollbar,
.entry-read-inner::-webkit-scrollbar {
  width: 5px;
}

#writeView::-webkit-scrollbar-track,
.write-scroll::-webkit-scrollbar-track,
.daily-signal-card::-webkit-scrollbar-track,
#timelineView::-webkit-scrollbar-track,
.entry-read-inner::-webkit-scrollbar-track {
  background: transparent;
}

#writeView::-webkit-scrollbar-thumb,
.write-scroll::-webkit-scrollbar-thumb,
.daily-signal-card::-webkit-scrollbar-thumb,
#timelineView::-webkit-scrollbar-thumb,
.entry-read-inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(168, 230, 205, 0.12);
}

#writeView:hover::-webkit-scrollbar-thumb,
.write-scroll:hover::-webkit-scrollbar-thumb,
.daily-signal-card:hover::-webkit-scrollbar-thumb,
#timelineView:hover::-webkit-scrollbar-thumb,
.entry-read-inner:hover::-webkit-scrollbar-thumb {
  background: rgba(190, 255, 225, 0.22);
}

/* ==========================
   WRITE SIGNAL SCROLL SPACE
========================== */

#writeView.write-needs-scroll .write-view-inner {
  height: auto;
  min-height: 100dvh;
  padding-bottom: clamp(96px, 14dvh, 180px);
}

#writeView.write-needs-scroll #dailySignalMount {
  margin-bottom: clamp(48px, 8dvh, 120px);
}

/* ==========================
   DAILY SIGNAL SPACING
========================== */

.entry-daily-signal {
  margin: 0 0 10px;
}

.hero-dust {
  display: none;
}

/* ==========================
   TIMELINE BACKDROP DIM
========================== */

#timelineBackdropDim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(4, 8, 10, 0.18),
      rgba(4, 8, 10, 0.34)
    ),
    radial-gradient(
      circle at 50% 40%,
      rgba(6, 16, 14, 0.08),
      rgba(4, 8, 10, 0.28) 72%
    );
}

#timelineBackdropDim.is-active {
  opacity: 1;
}

/* ==========================
   TIMELINE PAGE SCROLL + STICKY PANELS
========================== */

body {
  overflow: hidden;
}

#timelineView {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#timelineView::-webkit-scrollbar {
  width: 6px;
}

#timelineView::-webkit-scrollbar-track {
  background: transparent;
}

#timelineView::-webkit-scrollbar-thumb {
  background: rgba(230, 255, 245, 0.12);
  border-radius: 999px;
}

#timelineView::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 255, 245, 0.2);
}

/* ==========================
   TIMELINE DAILY SIGNAL
========================== */

.entry-daily-signal {
  position: relative;
  overflow: hidden;

  margin: 0 0 12px;
  padding: 0;

  border-radius: 13px;
  border: 1px solid rgba(190, 255, 225, 0.065);
  cursor: pointer;

  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 18, 0.34),
      rgba(5, 12, 13, 0.26)
    );

  box-shadow:
    0 7px 15px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  backdrop-filter: blur(8px) saturate(106%);
  -webkit-backdrop-filter: blur(8px) saturate(106%);

  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.entry-daily-signal::before {
  content: "";
  position: absolute;
  inset: -35% 0;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 50% 18%,
      rgba(160, 255, 220, 0.09),
      rgba(120, 255, 200, 0.035) 32%,
      transparent 66%
    );

  opacity: 0;
  transform: translateY(-8%) scale(0.985);
  filter: brightness(0.98);

  transition:
    opacity 0.34s ease,
    transform 0.34s ease,
    filter 0.34s ease;
}

.entry-daily-signal-summary,
.entry-daily-signal-expanded {
  position: relative;
  z-index: 1;
}

.entry-daily-signal:hover {
  transform: translateY(-1px);

  border-color: rgba(190, 255, 225, 0.12);

  background:
    linear-gradient(
      180deg,
      rgba(10, 22, 22, 0.46),
      rgba(5, 12, 13, 0.34)
    );

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.14),
    0 0 18px rgba(120, 255, 200, 0.022),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.entry-daily-signal:not([open]):hover::before {
  opacity: 0.82;
  animation: timelineSignalHoverBreath 2.8s ease-in-out infinite;
}

.entry-daily-signal[open]::before {
  opacity: 0.68;
  animation: timelineSignalAuroraDrift 7.2s ease-in-out infinite;
}

.entry-daily-signal[open]:hover::before {
  opacity: 0.9;
}

.entry-daily-signal-summary {
  list-style: none;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 8px 10px 9px;
}

.entry-daily-signal-summary::-webkit-details-marker {
  display: none;
}

.entry-daily-signal-kicker {
  font-family: "Inter", sans-serif;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: rgba(170, 255, 210, 0.52);

  transition: color 0.24s ease;
}

.entry-daily-signal-preview {
  font-family: "Cormorant", serif;
  font-size: 12.5px;
  line-height: 1.32;

  color: rgba(235, 255, 246, 0.82);

  transition: color 0.24s ease;
}

.entry-daily-signal-expanded {
  padding: 0 10px 10px;
}

.entry-daily-signal-text {
  margin: 0 0 7px;

  font-family: "Cormorant", serif;
  font-size: 12.2px;
  line-height: 1.36;

  color: rgba(235, 242, 239, 0.56);
}

.entry-daily-signal:hover .entry-daily-signal-kicker {
  color: rgba(170, 255, 210, 0.64);
}

.entry-daily-signal:hover .entry-daily-signal-preview {
  color: rgba(235, 255, 246, 0.94);
}

.entry-daily-signal:hover .entry-daily-signal-text {
  color: rgba(235, 242, 239, 0.62);
}

@keyframes timelineSignalHoverBreath {
  0% {
    transform: translateY(-6%) scale(0.985);
    filter: brightness(0.96);
  }

  50% {
    transform: translateY(2%) scale(1.015);
    filter: brightness(1.08);
  }

  100% {
    transform: translateY(-6%) scale(0.985);
    filter: brightness(0.96);
  }
}

@keyframes timelineSignalAuroraDrift {
  0% {
    transform: translateY(-18%) scale(0.98);
  }

  50% {
    transform: translateY(18%) scale(1.02);
  }

  100% {
    transform: translateY(-18%) scale(0.98);
  }
}

/* ==========================
   RADIO BASS BAR
========================== */

.radio-bass-bar {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -20px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.01),
    0 0 9px rgba(90, 225, 200, 0.04);
  opacity: 0.95;
}

.radio-bass-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(120, 255, 220, 0.78),
      rgba(190, 255, 240, 0.98)
    );
  box-shadow:
    0 0 10px rgba(120, 255, 220, 0.34),
    0 0 17px rgba(90, 225, 200, 0.18);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.18;
}























/* ==========================
   MOBILE BASE
   App shell, viewport and mobile background
========================== */

.mobile-bottom-nav,
.mobile-logo-star {
  display: none;
}

@media (max-width: 1200px) {
  :root {
  --mobile-nav-height: 118px;
  --mobile-sheet-bottom: 104px;

  --mobile-page-x: 14px;
  --mobile-content-width: calc(100% - 4px);
  --mobile-inner-max-width: 740px;
  --mobile-mode-button-width: min(420px, calc(100vw - 112px));
}

  html,
  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  body {
    overflow-y: hidden;
    background: url("images/northstar-app-bg.png") no-repeat center top;
    background-size: cover;
    background-attachment: scroll;
  }

  body:has(#timelineView:not(.is-hidden-view)) {
  background-image: url("images/northstar-app-timeline-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  body::before {
    z-index: -1;
    background:
      linear-gradient(
        180deg,
        rgba(2, 7, 9, 0.28) 0%,
        rgba(2, 7, 9, 0.16) 28%,
        rgba(2, 7, 9, 0.22) 55%,
        rgba(2, 7, 9, 0.34) 100%
      );
  }

  body::after {
    z-index: 0;
    background:
      linear-gradient(
        180deg,
        rgba(1, 6, 8, 0.08) 0%,
        rgba(1, 6, 8, 0.10) 38%,
        rgba(1, 6, 8, 0.18) 62%,
        rgba(1, 6, 8, 0.24) 100%
      );
  }

  body:has(#timelineView:not(.is-hidden-view))::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 7, 9, 0.08) 0%,
        rgba(2, 7, 9, 0.03) 30%,
        rgba(2, 7, 9, 0.10) 62%,
        rgba(2, 7, 9, 0.24) 100%
      );
  }

  header,
  .date,
  .mobile-bottom-nav {
    position: relative;
    z-index: 1;
  }

  #appViews {
    position: relative;
    z-index: auto;
  }

  #appViews,
  #writeView,
  #timelineView,
  .write-view-inner {
    min-height: 100dvh;
  }


  .top-icons {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    gap: 0;
    z-index: 24000;
  }

  #entriesBtn,
  #settingsBtn,
  #userBtn,
  .view-switch-btn,
  #entryPreview {
    display: none !important;
  }

/* ==========================
   MOBILE HEADER
========================== */

header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 182px;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  pointer-events: none;
  z-index: 10000;
}

.mobile-logo-star {
  display: block;
  position: fixed;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;

  font-family: "Cormorant", serif;
  font-size: 32px;
  line-height: 1;

  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.logo {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0;
  letter-spacing: 0;
  line-height: 1;
  opacity: 1;
  text-align: center;
  white-space: nowrap;
  z-index: 10001;
}

.logo::before {
  content: none !important;
}

.logo::after {
  content: "NORTHSTAR";

  font-family: "Cormorant", serif;
  font-size: 43px;
  font-weight: 400;
  letter-spacing: 8.4px;
  line-height: 1;

  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.date {
  position: fixed;
  top: 146px;
  left: 50%;
  transform: translateX(-50%);

  font-family: "Cormorant", serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;

  color: rgba(146, 170, 157, 0.96);
  opacity: 1;
  animation: none;
  z-index: 10001;
}

body.timeline-has-scrolled .mobile-logo-star,
body.timeline-has-scrolled .logo,
body.timeline-has-scrolled .date,
body.write-has-scrolled .mobile-logo-star,
body.write-has-scrolled .logo,
body.write-has-scrolled .date {
  opacity: 0;
  pointer-events: none;
}

.mobile-logo-star,
.logo,
.date {
  transition: opacity 0.22s ease;
}


  /* ==========================
     MOBILE WRITE
  ========================== */

   .write-view-inner {
  display: flex;
  flex-direction: column;

  padding-top: 198px;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
  gap: 24px;
}

  .tomorrow-door-mount {
  display: flex !important;
  justify-content: center;
  align-items: center;

  width: var(--mobile-content-width);
  max-width: var(--mobile-inner-max-width);
  height: auto;

  margin: 0 auto;

  opacity: 1;
  transform: none;

  position: relative;
  z-index: 20;
}

  .dream-mode-toggle {
  width: min(360px, calc(100vw - 96px));
  min-width: 0;
  min-height: 58px;

  padding: 11px 30px 12px;

  border-radius: 999px;
  border-color: rgba(226, 205, 136, 0.20);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 175, 76, 0.10),
      rgba(226, 175, 76, 0.030) 46%,
      transparent 76%
    ),
    linear-gradient(
      180deg,
      rgba(12, 14, 13, 0.44),
      rgba(5, 9, 10, 0.32)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.13),
    0 0 16px rgba(226, 175, 76, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.028);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease,
    color 0.22s ease;
}

.dream-mode-toggle::before {
  left: 20px;
  font-size: 11px;
}

.dream-mode-toggle-generic {
  font-size: 17px;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.dream-mode-toggle-sub {
  margin-top: 3px;

  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;

  color: rgba(226, 205, 136, 0.54);
}

.dream-mode-toggle:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

  .write-box {
    position: relative;

    width: var(--mobile-content-width);
    max-width: var(--mobile-inner-max-width);

    height: clamp(560px, 56dvh, 760px);
    min-height: 0;

    margin: 0 auto;
    padding: 44px 36px 54px;

    overflow: hidden;

    border-radius: 32px;
    border: 1px solid rgba(190, 220, 195, 0.22);

    background:
      linear-gradient(
        180deg,
        rgba(3, 12, 10, 0.21),
        rgba(3, 12, 10, 0.13)
      );

    box-shadow:
      0 12px 38px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .write-box::before {
    background: rgba(0, 0, 0, 0.03);
  }

  .write-box::after {
    display: none;
  }

  .write-box.is-active {
    animation: none;
    border-color: rgba(205, 240, 212, 0.34);

    box-shadow:
      0 10px 34px rgba(0, 0, 0, 0.18),
      0 0 18px rgba(120, 255, 200, 0.02),
      inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .write-box.is-dream-mode {
    border-color: rgba(226, 205, 136, 0.30);

    background:
      radial-gradient(
        ellipse at 50% 0%,
        rgba(226, 175, 76, 0.075),
        transparent 55%
      ),
      linear-gradient(
        180deg,
        rgba(3, 12, 10, 0.23),
        rgba(3, 12, 10, 0.14)
      );

    box-shadow:
      0 12px 38px rgba(0, 0, 0, 0.19),
      0 0 24px rgba(226, 175, 76, 0.025),
      inset 0 1px 0 rgba(255, 255, 255, 0.024);
  }

  .write-scroll {
    flex: 1;
    min-height: 0;
    height: 100%;

    overflow-y: auto;
    margin-right: -8px;
    padding-right: 8px;
    padding-bottom: 118px;
  }

  textarea {
    display: block;
    box-sizing: border-box;

    width: 100%;
    min-height: 100%;
    padding-bottom: 30px;

    font-size: 28px;
    line-height: 1.42;
    letter-spacing: 0.01px;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }

  textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
    text-align: left;
  }

  .write-box.is-dream-mode textarea::placeholder {
    color: rgba(255, 238, 198, 0.50);
  }

  .writing-area {
    position: absolute;
    left: 28px;
    bottom: 22px;

    width: 90px;
    height: 16px;

    pointer-events: none;
    z-index: 20;

    contain: layout paint;
  }

  #wordCount {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: none !important;

    width: 90px;
    height: 16px;

    font-size: 16px;
    line-height: 16px;
    text-align: left;

    opacity: 0.58;
    color: rgba(255, 255, 255, 0.46);

    will-change: auto;
  }

  .save-status {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;

    width: 120px;
    height: 16px;

    z-index: 21;
    pointer-events: none;

    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.01em;
    text-align: center;

    color: rgba(255, 255, 255, 0.30);

    opacity: 0;
    transition:
      opacity 0.22s ease,
      color 0.35s ease;

    will-change: opacity;
    contain: layout paint;
  }

  /* ==========================
     MOBILE DAILY / DREAM SIGNAL
  ========================== */

  .daily-signal-mount {
  width: var(--mobile-content-width);
  max-width: var(--mobile-inner-max-width);

  margin: 0px auto calc(152px + env(safe-area-inset-bottom));

    display: flex;
    justify-content: center;
    align-items: stretch;

    opacity: 0;
    transform: translateY(6px);

    transition:
      opacity 0.28s ease,
      transform 0.28s ease;
  }

  .daily-signal-mount.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .daily-signal-card {
    width: 100%;
    max-width: none;

    padding: 22px 20px 24px;
    border-radius: 22px;

    text-align: center;
  }

  .daily-signal-button {
    width: 100%;
    max-width: none;

    min-height: 60px;
    padding: 16px 20px 17px;

    font-size: 20px;
  }

  /* ==========================
     MOBILE SHEET BASE
  ========================== */

  #entriesList,
  #settingsMenu,
  #userMenu {
    position: fixed;
    top: auto;
    bottom: calc(var(--mobile-sheet-bottom) + 12px + env(safe-area-inset-bottom));

    min-width: 0;
    max-width: none;

    border-radius: 22px;
    z-index: 26000;

    opacity: 0;
    pointer-events: none;

    background: rgba(7, 14, 16, 0.90);
    border: 1px solid rgba(170, 255, 210, 0.08);

    box-shadow:
      0 -10px 34px rgba(0, 0, 0, 0.30),
      0 14px 42px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
  }

  #entriesList.show,
  #settingsMenu.show,
  #userMenu.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

/* ==========================
   MOBILE ENTRIES SHEET
========================== */

#entriesList {
  left: 30% !important;
  right: auto !important;

  width: min(360px, calc(100% - 42px)) !important;

  max-height: min(48dvh, 430px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 10px 8px 10px 10px !important;
  border-radius: 22px !important;

  transform: translate(-50%, 10px) scale(0.985) !important;
  transform-origin: bottom center !important;

  scrollbar-width: thin;
  scrollbar-color: rgba(170, 255, 210, 0.10) transparent;
}

#entriesList.show {
  transform: translate(-50%, 0) scale(1) !important;
}

/* WebKit scrollbar: Chrome, Edge, Safari */
#entriesList::-webkit-scrollbar {
  width: 5px;
}

#entriesList::-webkit-scrollbar-track {
  background: transparent;
}

#entriesList::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170, 255, 210, 0.10);
  border: 1px solid rgba(3, 10, 10, 0.36);
}

#entriesList:hover::-webkit-scrollbar-thumb,
#entriesList:focus-within::-webkit-scrollbar-thumb {
  background: rgba(170, 255, 210, 0.24);
}

#entriesList > div {
  min-height: 42px;
  display: flex;
  align-items: center;

  padding: 10px 12px !important;
  border-radius: 12px !important;

  font-size: 14px;
  line-height: 1.2;
}

#entriesList > div + div {
  margin-top: 2px;
}

#entriesList .active-entry {
  background: rgba(170, 255, 210, 0.09) !important;
}

  /* ==========================
     MOBILE USER SHEET
  ========================== */

  #userMenu {
    left: 50% !important;
    right: auto !important;
    width: min(320px, calc(100% - 48px)) !important;

    padding: 18px 16px 16px !important;
    border-radius: 24px !important;

    text-align: center;

    transform: translate(-50%, 8px) !important;
  }

  #userMenu.show {
    transform: translate(-50%, 0) !important;
  }

  #currentUserLabel {
    margin-bottom: 14px !important;
  }

  #logoutBtn {
    min-height: 46px !important;
    border-radius: 15px !important;
  }


  /* ==========================
     MOBILE SETTINGS SHEET
  ========================== */

  #settingsMenu {
    left: 70% !important;
    right: auto !important;

    width: min(360px, calc(100% - 42px)) !important;

    max-height: min(58dvh, 430px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding: 18px 16px !important;
    border-radius: 24px !important;

    background: rgba(3, 10, 10, 0.94);

    transform: translate(-50%, 10px) scale(0.985) !important;
    transform-origin: bottom center !important;
  }

  #settingsMenu.show {
    transform: translate(-50%, 0) scale(1) !important;
  }

  #settingsMenu::before {
    content: "Settings";
    display: block;
    margin-bottom: 16px;

    font-family: "Cormorant", serif;
    font-size: 27px;
    line-height: 1;
    letter-spacing: 0.02em;

    color: rgba(255, 255, 255, 0.94);
  }

  #settingsMenu .settings-row-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  #settingsMenu .settings-label-inline {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(170, 255, 210, 0.72);
  }

  #settingsMenu #ambienceVolumeSlider {
    width: 100%;
    margin: 0;
  }

  #settingsMenu .settings-row-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  #settingsMenu .settings-choice-btn {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
  }

  #settingsMenu #toggleWordCountBtn {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 2px;

    font-size: 14px;
    line-height: 1.2;
  }

  #settingsMenu .settings-divider {
    margin: 14px 0;
    opacity: 0.5;
  }

  #settingsMenu .privacy-note {
    max-width: none;
    margin-top: 4px;
    padding-top: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  #settingsMenu summary.privacy-note-title {
    list-style: none;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;

    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 38px;
    padding: 0 2px;

    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(170, 255, 210, 0.72);
  }

  #settingsMenu summary.privacy-note-title,
  #settingsMenu summary.privacy-note-title *,
  #settingsMenu .privacy-note > summary {
    cursor: pointer !important;
  }

  #settingsMenu summary.privacy-note-title::marker {
    content: "";
  }

  #settingsMenu summary.privacy-note-title::-webkit-details-marker {
    display: none;
  }

  #settingsMenu summary.privacy-note-title::after {
    content: "+";
    flex-shrink: 0;

    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    color: rgba(170, 255, 210, 0.76);
    font-size: 18px;
    line-height: 1;
  }

  #settingsMenu .privacy-note[open] summary.privacy-note-title::after {
    content: "–";
  }

  #settingsMenu .privacy-note:not([open]) .privacy-note-body {
    display: none;
  }

  #settingsMenu .privacy-note-body {
    margin-top: 12px;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #settingsMenu .privacy-note-body,
  #settingsMenu .privacy-note-body *,
  #settingsMenu .privacy-note-body p {
    cursor: text !important;
  }

  #settingsMenu .privacy-note p {
    max-width: 58ch;
    margin: 0 0 10px;

    font-size: 13px;
    line-height: 1.55;

    color: rgba(255, 255, 255, 0.72);
  }

  #settingsMenu .privacy-note p:last-child {
    margin-bottom: 0;
  }

  /* ==========================
     MOBILE RADIO SHEET
  ========================== */

  .radio-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 24000;
    pointer-events: none;
    transform: translateZ(0);
  }

  .radio-player.open {
    pointer-events: auto;
  }

  .radio-trigger {
    display: none;
  }

  .radio-expanded {
    position: fixed;

    left: auto !important;
    right: 14px !important;
    bottom: calc(var(--mobile-sheet-bottom) + 12px + env(safe-area-inset-bottom)) !important;

    width: min(330px, calc(100% - 42px)) !important;
    height: auto !important;
    min-height: 286px !important;
    max-height: none !important;

    overflow: hidden;
    isolation: isolate;

    border-radius: 28px;
    border: 1px solid rgba(205, 235, 220, 0.12);
    background: rgba(3, 9, 10, 0.92);

    opacity: 0;
    pointer-events: none;

    transform: translate3d(0, 18px, 0) scale(0.985) !important;
    transform-origin: bottom right !important;
    will-change: transform, opacity;

    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.38),
      0 8px 18px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      inset 0 0 0 1px rgba(170, 255, 210, 0.026);

    backdrop-filter: blur(16px) saturate(108%);
    -webkit-backdrop-filter: blur(16px) saturate(108%);

    transition:
      opacity 0.24s ease,
      transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .radio-player.open .radio-expanded {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  .radio-expanded::before {
    content: "";
    position: absolute;
    inset: -14%;
    z-index: 0;
    pointer-events: none;

    background-image: url("images/northstar-app-bg.png");
    background-repeat: no-repeat;
    background-size: 230% auto;
    background-position: 76% 47%;

    transform: scale(1.08);

    filter:
      blur(5px)
      saturate(0.72)
      brightness(0.34)
      contrast(1.02);

    opacity: 0.72;
  }

  .radio-expanded::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
      radial-gradient(
        circle at 76% 20%,
        rgba(120, 255, 200, 0.055) 0%,
        rgba(120, 255, 200, 0.025) 22%,
        transparent 52%
      ),
      linear-gradient(
        180deg,
        rgba(3, 10, 12, 0.58) 0%,
        rgba(3, 10, 12, 0.76) 48%,
        rgba(2, 7, 8, 0.92) 100%
      );
  }

  .radio-aura {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
  }

  .radio-aura-core,
  .radio-aura-halo,
  .radio-aura-bloom {
    position: absolute;
    border-radius: inherit;
    background: transparent;
  }

  .radio-aura-core {
    inset: 0;

    box-shadow:
      0 0 0 1px rgba(170, 255, 225, calc(var(--radio-edge-strength, 0) * 0.24)),
      0 0 8px rgba(120, 245, 215, calc(var(--radio-edge-strength, 0) * 0.16)),
      0 0 15px rgba(110, 235, 205, calc(var(--radio-edge-strength, 0) * 0.10));

    opacity: calc(var(--radio-edge-strength, 0) * 0.95);

    transition:
      opacity 0.04s linear,
      box-shadow 0.04s linear;
  }

  .radio-aura-halo {
    inset: -3px;
    border-radius: 31px;

    box-shadow:
      0 0 14px 2px rgba(110, 255, 220, calc(var(--radio-halo-strength, 0) * 0.11)),
      0 0 24px 4px rgba(90, 225, 200, calc(var(--radio-halo-strength, 0) * 0.08));

    filter: blur(4px);
    opacity: calc(var(--radio-halo-strength, 0) * 0.78);
    transform: scale(calc(1 + var(--radio-bloom-scale, 0) * 0.012));
    transform-origin: center;

    transition:
      opacity 0.05s linear,
      transform 0.05s linear,
      box-shadow 0.05s linear;
  }

  .radio-aura-bloom {
    inset: -7px;
    border-radius: 35px;

    box-shadow:
      0 0 22px 5px rgba(80, 210, 190, calc(var(--radio-bloom-strength, 0) * 0.05)),
      0 0 34px 10px rgba(70, 185, 165, calc(var(--radio-bloom-strength, 0) * 0.035));

    filter: blur(8px);
    opacity: calc((var(--radio-bloom-strength, 0) * 0.42) + (var(--radio-bass-strength, 0) * 0.30));

    transform:
      translateX(calc((var(--radio-bass-x, 0.5) - 0.5) * 18px))
      scale(calc(1 + var(--radio-bloom-scale, 0) * 0.018));

    transform-origin: center;

    transition:
      opacity 0.06s linear,
      transform 0.06s linear,
      box-shadow 0.06s linear;
  }

  .radio-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background:
      radial-gradient(
        ellipse at 50% 48%,
        rgba(255, 255, 255, 0.018) 0%,
        rgba(255, 255, 255, 0.010) 18%,
        rgba(5, 12, 12, 0.08) 38%,
        rgba(5, 12, 12, 0.32) 66%,
        rgba(4, 10, 10, 0.74) 100%
      ),
      linear-gradient(
        180deg,
        rgba(4, 10, 10, 0.16) 0%,
        rgba(4, 10, 10, 0.28) 34%,
        rgba(4, 10, 10, 0.50) 100%
      );
  }

  .radio-content {
    position: relative;
    z-index: 4;

    height: auto !important;
    min-height: 286px !important;

    padding: 30px 20px 22px !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;

    isolation: isolate;
  }

  .radio-content > * {
    position: relative;
    z-index: 1;
  }

  .radio-content::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);

    width: min(78%, 260px);
    height: 190px;
    border-radius: 999px;

    pointer-events: none;
    z-index: 0;

    background:
      radial-gradient(
        ellipse at center,
        rgba(140, 255, 210, 0.075) 0%,
        rgba(140, 255, 210, 0.040) 24%,
        rgba(8, 16, 16, 0.025) 48%,
        rgba(8, 16, 16, 0) 74%
      );

    filter: blur(10px);
  }

  .radio-title {
    font-size: 22px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }

  .radio-subtitle {
    max-width: 210px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.46) !important;
  }

  .radio-play-btn {
    width: 56px !important;
    height: 56px !important;
    margin: 15px 0 13px !important;

    font-size: 19px !important;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .radio-volume-wrap {
    width: 100%;
    max-width: 188px !important;
    margin-bottom: 15px !important;
  }

  .radio-channel-list {
    gap: 6px !important;
  }

  .radio-channel {
    font-size: 14px !important;
  }

  #northstarVisualizer {
    display: none !important;
  }

  /* ==========================
     MOBILE NAVIGATION
  ========================== */

  .mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  box-sizing: border-box;

  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;

  height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  min-height: 112px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));

  background:
    linear-gradient(
      180deg,
      rgba(2, 7, 8, 0.82) 0%,
      rgba(1, 5, 6, 0.96) 34%,
      rgba(1, 4, 5, 0.99) 70%,
      rgba(1, 4, 5, 1) 100%
    );

  backdrop-filter: blur(10px) saturate(105%);
  -webkit-backdrop-filter: blur(10px) saturate(105%);

  border-top: 1px solid rgba(210, 255, 236, 0.026);

  box-shadow:
    0 -16px 42px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.012);

  z-index: 25000;
}

  .mobile-bottom-nav *,
  .mobile-nav-btn {
    box-sizing: border-box;
  }

  .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
      radial-gradient(
        ellipse at 50% 0%,
        rgba(130, 255, 205, 0.026),
        rgba(130, 255, 205, 0.008) 30%,
        transparent 56%
      );
  }

  .mobile-nav-btn {
    position: relative;
    z-index: 1;

    appearance: none;
    -webkit-appearance: none;

    min-width: 0;
    min-height: 74px;
    padding: 7px 2px 6px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: none !important;
    border-radius: 22px;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;

    font-family: "Inter", sans-serif;
    color: rgba(255, 255, 255, 0.54);

    cursor: pointer;

    transition:
      color 0.22s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      filter 0.22s ease;
  }

  .mobile-nav-btn::before {
    content: none !important;
  }

  .mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    opacity: 0.84;

    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      filter 0.22s ease;
  }

  .mobile-nav-icon svg {
    display: block;
    width: 30px;
    height: 30px;

    stroke: currentColor;
    stroke-width: 1.65;
  }

  .mobile-nav-label {
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: currentColor;
  }

  .mobile-nav-btn.is-active {
    color: rgba(145, 245, 174, 0.95);
    filter: drop-shadow(0 0 7px rgba(120, 255, 190, 0.10));
  }

  .mobile-nav-btn.is-active .mobile-nav-icon {
    opacity: 1;
    filter: drop-shadow(0 0 9px rgba(120, 255, 190, 0.12));
  }

  .mobile-nav-btn:active {
    transform: translateY(1px) scale(0.985);
  }

  .mobile-nav-btn:focus-visible {
    outline: 1px solid rgba(170, 255, 210, 0.20);
    outline-offset: 2px;
    border-radius: 22px;
  }

  /* ==========================
     MOBILE TIMELINE LAYOUT
  ========================== */

  #timelineView {
    position: absolute;
    inset: 0;

    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;

    padding-bottom: calc(132px + env(safe-area-inset-bottom));

    background: transparent !important;
    isolation: auto;

    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #timelineView::before {
    content: none;
  }

  .timeline-shell {
    position: relative;
    z-index: 1;

    width: calc(100% - 28px);
    margin: 232px auto 0;
  }

  .timeline-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;

    height: auto;
    min-height: 0;
  }

  .timeline-left,
  .timeline-column-title {
    display: none;
  }

  .timeline-right {
    display: block !important;
    order: 1 !important;
    position: static !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .timeline-center {
    order: 2 !important;
  }

  #timelineWeeksMount,
  #timelineEntryMount {
    max-height: none;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  #timelineView #timelineEntryMount {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
  }

  /* ==========================
     MOBILE TIMELINE HERO
     Idle = Aster hero
  ========================== */

  #timelineView .timeline-idle-card,
  #timelineView .entry-read-inner {
    --timeline-panel-height: 404px;
    --timeline-panel-radius: 31px;
  }

  #timelineView .timeline-idle-card {
    --hero-aster-size: 72%;
    --hero-aster-right: 28px;
    --hero-aster-bottom: -32px;

    display: block !important;
    position: relative !important;
    isolation: isolate;
    box-sizing: border-box !important;

    width: 100% !important;
    min-width: 100% !important;
    height: var(--timeline-panel-height) !important;
    min-height: var(--timeline-panel-height) !important;

    overflow: hidden !important;

    border-radius: var(--timeline-panel-radius) !important;
    border: 1px solid rgba(214, 226, 188, 0.24) !important;

    background:
      linear-gradient(
        90deg,
        rgba(3, 13, 18, 0.72) 0%,
        rgba(4, 20, 24, 0.62) 42%,
        rgba(9, 28, 27, 0.42) 100%
      ) !important;

    box-shadow:
      0 20px 46px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      inset 0 0 0 1px rgba(255, 255, 255, 0.018) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #timelineView .timeline-idle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
      radial-gradient(
        circle at 88% 48%,
        rgba(255, 178, 72, 0.34) 0%,
        rgba(255, 178, 72, 0.16) 12%,
        rgba(255, 178, 72, 0.05) 28%,
        transparent 48%
      ),
      radial-gradient(
        ellipse at 74% 58%,
        rgba(255, 198, 118, 0.13) 0%,
        rgba(255, 198, 118, 0.045) 24%,
        transparent 56%
      ),
      radial-gradient(
        ellipse at 52% 46%,
        rgba(56, 122, 132, 0.10) 0%,
        rgba(56, 122, 132, 0.035) 34%,
        transparent 70%
      ),
      linear-gradient(
        90deg,
        rgba(2, 8, 13, 0.92) 0%,
        rgba(2, 8, 13, 0.72) 30%,
        rgba(2, 8, 13, 0.28) 55%,
        rgba(2, 8, 13, 0.02) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.18) 100%
      );

    transform-origin: 88% 48%;
    animation: heroCandleBreath 6.4s ease-in-out infinite;
  }

  #timelineView .timeline-idle-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    border-radius: inherit;

    background:
      radial-gradient(circle at 67% 24%, rgba(255, 215, 120, 0.34) 0 1.2px, transparent 2.2px),
      radial-gradient(circle at 71% 29%, rgba(255, 215, 120, 0.22) 0 1px, transparent 2px),
      radial-gradient(circle at 74% 22%, rgba(255, 215, 120, 0.30) 0 1.1px, transparent 2.1px),
      radial-gradient(circle at 77% 32%, rgba(255, 215, 120, 0.18) 0 1px, transparent 2px),
      radial-gradient(circle at 80% 25%, rgba(255, 215, 120, 0.28) 0 1.15px, transparent 2.15px),
      radial-gradient(circle at 83% 36%, rgba(255, 215, 120, 0.16) 0 0.95px, transparent 1.9px),
      radial-gradient(circle at 86% 26%, rgba(255, 215, 120, 0.24) 0 1.05px, transparent 2.05px),
      radial-gradient(circle at 89% 31%, rgba(255, 215, 120, 0.18) 0 1px, transparent 2px),
      radial-gradient(circle at 91% 42%, rgba(255, 215, 120, 0.14) 0 0.95px, transparent 1.9px),
      radial-gradient(circle at 84% 20%, rgba(255, 215, 120, 0.20) 0 1px, transparent 2px),
      radial-gradient(circle at 76% 18%, rgba(255, 215, 120, 0.18) 0 0.95px, transparent 1.9px),
      radial-gradient(circle at 88% 18%, rgba(255, 215, 120, 0.16) 0 0.9px, transparent 1.8px);

    opacity: 0.92;
    filter: blur(0.15px) brightness(1.02);

    animation: heroDustFloat 14s ease-in-out infinite;
  }

  #timelineView .timeline-idle-art {
    content: url("images/northstar-timeline-hero-aster.png");

    position: absolute !important;
    z-index: 0;

    inset: auto !important;
    right: var(--hero-aster-right) !important;
    bottom: var(--hero-aster-bottom) !important;

    display: block !important;

    width: var(--hero-aster-size) !important;
    height: auto !important;
    max-width: none !important;

    object-fit: contain !important;
    object-position: center !important;

    opacity: 1;

    transform: none !important;
    transform-origin: center center;

    filter:
      brightness(0.98)
      saturate(1.08)
      contrast(1.14)
      drop-shadow(0 0 16px rgba(255, 185, 92, 0.16))
      drop-shadow(0 18px 34px rgba(0, 0, 0, 0.46));

    pointer-events: none;
    user-select: none;
  }

  #timelineView .timeline-idle-overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;

    overflow: hidden;
    pointer-events: none;

    background: none !important;
  }

  #timelineView .timeline-idle-overlay::before,
  #timelineView .timeline-idle-overlay::after {
    content: none !important;
  }

  #timelineView .timeline-idle-copy {
    position: absolute !important;
    z-index: 4;

    left: 24px !important;
    top: 66px !important;
    right: auto !important;
    bottom: auto !important;

    width: 290px !important;
    max-width: 290px !important;

    text-align: center !important;
    pointer-events: none;
  }

  #timelineView .timeline-idle-title {
    max-width: 290px !important;
    margin: 0 auto !important;

    font-family: "Cormorant", serif;
    font-size: 47px;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;

    color: rgba(255, 255, 255, 0.97);

    text-shadow:
      0 3px 24px rgba(0, 0, 0, 0.55),
      0 0 22px rgba(255, 255, 255, 0.045);
  }

  #timelineView .timeline-idle-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;

    margin: 26px 0 22px !important;
  }

  #timelineView .timeline-idle-divider span {
    display: block !important;
    width: 64px !important;
    height: 1px !important;
    border-radius: 999px !important;

    background:
      linear-gradient(
        90deg,
        rgba(226, 205, 136, 0.04),
        rgba(226, 205, 136, 0.76),
        rgba(226, 205, 136, 0.04)
      ) !important;
  }

  #timelineView .timeline-idle-divider span:last-child {
    display: block !important;
  }

  #timelineView .timeline-idle-divider i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 12px !important;
    height: 12px !important;

    font-style: normal !important;
    font-size: 12px !important;
    line-height: 1 !important;

    color: rgba(226, 205, 136, 0.92) !important;

    transform: translateY(-0.5px) !important;

    text-shadow:
      0 0 8px rgba(226, 205, 136, 0.24),
      0 0 14px rgba(150, 255, 220, 0.08) !important;
  }

  #timelineView .timeline-idle-text {
    max-width: 210px;
    margin: 0 auto;

    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.02em;

    color: rgba(255, 255, 255, 0.70);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
  }

  /* ==========================
     MOBILE HERO DUST
  ========================== */

  #timelineView .hero-dust {
    display: block;
    position: absolute;
    z-index: 1;

    border-radius: 999px;
    pointer-events: none;
    opacity: 0;

    background:
      radial-gradient(
        circle,
        rgba(255, 244, 205, 1) 0%,
        rgba(255, 220, 130, 0.98) 30%,
        rgba(255, 178, 58, 0.90) 62%,
        rgba(255, 150, 34, 0) 100%
      );

    box-shadow:
      0 0 7px rgba(255, 190, 80, 0.72),
      0 0 15px rgba(255, 156, 38, 0.32);

    transform: scale(0.82);

    animation-name: heroDustTwinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  #timelineView .dust-1 {
    left: 82%;
    top: 19%;
    width: 4px;
    height: 4px;
    animation-duration: 8.7s;
    animation-delay: -1.3s;
  }

  #timelineView .dust-2 {
    left: 86%;
    top: 26%;
    width: 5px;
    height: 5px;
    animation-duration: 12.4s;
    animation-delay: -6.1s;
  }

  #timelineView .dust-3 {
    left: 89%;
    top: 18%;
    width: 3.5px;
    height: 3.5px;
    animation-duration: 9.6s;
    animation-delay: -3.8s;
  }

  #timelineView .dust-4 {
    left: 92%;
    top: 31%;
    width: 5px;
    height: 5px;
    animation-duration: 14.8s;
    animation-delay: -9.2s;
  }

  #timelineView .dust-5 {
    left: 94%;
    top: 23%;
    width: 4px;
    height: 4px;
    animation-duration: 10.6s;
    animation-delay: -4.4s;
  }

  #timelineView .dust-6 {
    left: 84%;
    top: 37%;
    width: 3px;
    height: 3px;
    animation-duration: 13.7s;
    animation-delay: -7.3s;
  }

  #timelineView .dust-7 {
    left: 88%;
    top: 40%;
    width: 4.5px;
    height: 4.5px;
    animation-duration: 11.4s;
    animation-delay: -5.6s;
  }

  #timelineView .dust-8 {
    left: 91%;
    top: 36%;
    width: 3.5px;
    height: 3.5px;
    animation-duration: 16.2s;
    animation-delay: -11.1s;
  }

  #timelineView .dust-9 {
    left: 94%;
    top: 42%;
    width: 3px;
    height: 3px;
    animation-duration: 9.1s;
    animation-delay: -2.2s;
  }

  #timelineView .dust-10 {
    left: 87%;
    top: 24%;
    width: 6px;
    height: 6px;
    animation-duration: 18.4s;
    animation-delay: -13.8s;
  }

  /* ==========================
     MOBILE WEEK CARDS
  ========================== */

  .timeline-list {
    gap: 18px;
  }

  .week-card {
    border-radius: 28px;
    border-color: rgba(190, 220, 195, 0.12);

    background:
      linear-gradient(
        180deg,
        rgba(7, 18, 20, 0.58),
        rgba(5, 14, 16, 0.68)
      );
  }

  .week-card-toggle {
    padding: 24px 22px;
  }

  .week-card-title {
    font-size: 24px;
    line-height: 1.12;
  }

  .week-card-subline {
    font-size: 14px;
  }

  .week-card-summary {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  .week-card-chevron {
    top: 24px;
    right: 20px;
  }

  .week-card-body {
    padding: 0 20px 20px;
  }

  .week-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.week-day-chip-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: rgba(226, 177, 82, 0.96);
  filter:
    drop-shadow(0 0 5px rgba(226, 177, 82, 0.34))
    drop-shadow(0 0 13px rgba(226, 177, 82, 0.12));
  transform: translateY(-1px);
}

.week-day-chip-moon svg {
  width: 100%;
  height: 100%;
  display: block;
}

  .week-insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.week-mini-card {
  min-height: 146px;
  padding: 18px 16px 16px;
  border-radius: 22px;
}

.week-mini-title {
  font-size: 22px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.week-mini-text {
  font-size: 14.5px;
  line-height: 1.48;
}


  /* ==========================
     MOBILE ACTIVE ENTRY READER
  ========================== */

  #timelineView .entry-read-card {
    width: 100% !important;
    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: visible !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #timelineView .entry-read-inner {
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box !important;

    width: 100% !important;
    min-width: 100% !important;
    height: var(--timeline-panel-height) !important;
    min-height: var(--timeline-panel-height) !important;

    padding: 20px 20px 18px;

    overflow: hidden !important;

    border-radius: var(--timeline-panel-radius) !important;
    border: 1px solid rgba(190, 220, 195, 0.22);

    background:
      linear-gradient(
        180deg,
        rgba(7, 17, 17, 0.58),
        rgba(6, 14, 15, 0.72)
      );

    box-shadow:
      0 14px 42px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.02);

    backdrop-filter: blur(14px) saturate(116%);
    -webkit-backdrop-filter: blur(14px) saturate(116%);
  }

  #timelineView .entry-read-header {
    flex: 0 0 auto;
    margin-bottom: 10px;
    text-align: center;
  }

  #timelineView .entry-read-date {
    font-size: 23px;
    line-height: 1.12;
  }

  #timelineView .entry-read-meta {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    opacity: 0.56;
  }

  #timelineView .entry-read-divider {
    flex: 0 0 auto;
    margin-bottom: 12px;
    opacity: 0.55;
  }

  #timelineView .entry-daily-signal {
    flex: 0 0 auto;
    margin-bottom: 12px;
  }

  #timelineView .entry-daily-signal-summary {
    min-height: 40px;
    padding: 8px 12px;
  }

  #timelineView .entry-daily-signal-kicker {
    font-size: 9px;
  }

  #timelineView .entry-daily-signal-preview {
    font-size: 15px;
    line-height: 1.45;
  }

  #timelineView .entry-read-body {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    padding-right: 8px;
    margin-right: -8px;

    text-align: left;
  }

  #timelineView .entry-read-body p {
    margin: 0 0 15px;

    font-size: 15.8px;
    line-height: 1.58;
    text-align: left;

    color: rgba(255, 255, 255, 0.83);
  }

  #timelineView .entry-read-body p:last-child {
    margin-bottom: 0;
  }


/* ==========================
   MOBILE ENTRY SIGNALS
   Dream signal, daily signal and entry body
========================== */

/* ==========================
   MOBILE ENTRY SIGNAL REFINEMENT
========================== */

#timelineView .entry-dream-signal-kicker,
#timelineView .entry-daily-signal-kicker {
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.02em !important;
  white-space: nowrap !important;
}

#timelineView .entry-dream-signal-preview {
  font-size: 15.5px !important;
  line-height: 1.45 !important;
  max-width: 96% !important;
}

#timelineView .entry-daily-signal-preview {
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  max-width: 96% !important;
}

#timelineView .entry-dream-source-summary {
  min-height: 56px !important;
  font-size: 11.5px !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap !important;
}

#timelineView .entry-read-body p {
  font-size: 17.5px !important;
  line-height: 1.72 !important;
}

#timelineView .entry-read-inner {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

#timelineView .entry-read-inner {
  height: clamp(640px, 70dvh, 820px) !important;
min-height: clamp(640px, 70dvh, 820px) !important;

  padding: 22px 18px 20px !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: rgba(150, 220, 200, 0.22) transparent;
}

/* Shared signal cards */

#timelineView .entry-dream-signal,
#timelineView .entry-dream-source,
#timelineView .entry-daily-signal {
  display: block !important;
  flex: 0 0 auto !important;

  width: 100% !important;
  box-sizing: border-box !important;

  margin: 0 0 14px !important;

  border-radius: 18px !important;
  overflow: hidden !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    0 10px 24px rgba(0, 0, 0, 0.10) !important;
}

#timelineView .entry-dream-signal-summary,
#timelineView .entry-dream-source-summary,
#timelineView .entry-daily-signal-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;
  cursor: pointer !important;
}

#timelineView .entry-dream-signal-summary::-webkit-details-marker,
#timelineView .entry-dream-source-summary::-webkit-details-marker,
#timelineView .entry-daily-signal-summary::-webkit-details-marker {
  display: none !important;
}

#timelineView .entry-dream-source-summary::before,
#timelineView .entry-dream-source-summary::after {
  content: none !important;
  display: none !important;
}

/* Nattens signal */

#timelineView .entry-dream-signal {
  border: 1px solid rgba(226, 177, 82, 0.23) !important;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(226, 177, 82, 0.12),
      rgba(226, 177, 82, 0.04) 46%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      rgba(13, 17, 14, 0.72),
      rgba(5, 12, 13, 0.76)
    ) !important;
}

#timelineView .entry-dream-signal-summary {
  min-height: 104px !important;
  padding: 21px 18px 22px !important;
  gap: 9px !important;
}

#timelineView .entry-dream-signal-kicker {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;

  color: rgba(226, 177, 82, 0.82) !important;
}

#timelineView .entry-dream-signal-preview {
  max-width: 92% !important;

  font-size: 15px !important;
  line-height: 1.42 !important;
  font-weight: 500 !important;

  color: rgba(255, 239, 196, 0.86) !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

#timelineView .entry-dream-signal-expanded {
  padding: 0 16px 17px !important;
  text-align: left !important;
}

#timelineView .entry-dream-signal-title {
  margin: 6px 0 12px !important;

  font-family: "Cormorant", serif;
  font-size: 27px !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;

  color: rgba(255, 239, 196, 0.95) !important;
  text-align: center !important;
}

#timelineView .entry-dream-signal-text,
#timelineView .entry-dream-signal-compass {
  margin: 0 0 13px !important;

  font-size: 16px !important;
  line-height: 1.62 !important;

  color: rgba(255, 255, 255, 0.80) !important;
  text-align: left !important;
}

#timelineView .entry-dream-signal-compass-label {
  margin: 15px 0 7px !important;

  font-size: 9px !important;
  line-height: 1 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;

  color: rgba(226, 177, 82, 0.65) !important;
  text-align: center !important;
}

/* Visa drömtext */

#timelineView .entry-dream-source {
  margin-top: -3px !important;
  margin-bottom: 15px !important;

  border: 1px solid rgba(226, 177, 82, 0.10) !important;

  background:
    linear-gradient(
      180deg,
      rgba(8, 15, 14, 0.42),
      rgba(4, 10, 11, 0.56)
    ) !important;

  opacity: 0.88;
}

#timelineView .entry-dream-source-summary {
  min-height: 52px !important;
  padding: 13px 14px !important;

  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;

  color: rgba(226, 177, 82, 0.68) !important;
}

#timelineView .entry-dream-source-body {
  padding: 0 16px 17px !important;
}

#timelineView .entry-dream-source-body p {
  margin: 0 0 13px !important;

  font-size: 16px !important;
  line-height: 1.62 !important;

  color: rgba(255, 255, 255, 0.78) !important;
}

/* Dagens signal */

#timelineView .entry-daily-signal {
  margin-bottom: 18px !important;

  border: 1px solid rgba(130, 220, 205, 0.16) !important;

  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 18, 0.56),
      rgba(5, 13, 14, 0.66)
    ) !important;
}

#timelineView .entry-daily-signal-summary {
  min-height: 84px !important;
  padding: 18px 18px 19px !important;
  gap: 8px !important;
}

#timelineView .entry-daily-signal-kicker {
  font-size: 9.5px !important;
  line-height: 1 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;

  color: rgba(130, 220, 205, 0.72) !important;
}

#timelineView .entry-daily-signal-preview {
  max-width: 92% !important;

  font-size: 14px !important;
  line-height: 1.42 !important;

  color: rgba(255, 255, 255, 0.72) !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Journaltext */

#timelineView .entry-read-body {
  flex: 0 0 auto !important;
  min-height: auto !important;

  overflow: visible !important;
  padding: 2px 1px 8px !important;
  margin: 0 !important;

  text-align: left !important;
}

#timelineView .entry-read-body p {
  margin: 0 0 17px !important;
  margin-bottom: 20px;

  font-size: 17.5px !important;
  line-height: 1.76 !important;

  color: rgba(255, 255, 255, 0.84) !important;
}
  /* ==========================
     MOBILE ANIMATIONS
  ========================== */

  @keyframes heroCandleBreath {
    0% {
      opacity: 0.94;
      filter: brightness(0.985) saturate(0.98);
    }

    50% {
      opacity: 1;
      filter: brightness(1.05) saturate(1.03);
    }

    100% {
      opacity: 0.94;
      filter: brightness(0.985) saturate(0.98);
    }
  }

  @keyframes heroDustFloat {
    0% {
      opacity: 0.42;
      transform: translate3d(0, 0, 0) scale(0.985);
      filter: blur(0.2px) brightness(0.96);
    }

    18% {
      opacity: 0.78;
      transform: translate3d(-1px, -2px, 0) scale(1);
      filter: blur(0.12px) brightness(1.06);
    }

    37% {
      opacity: 0.56;
      transform: translate3d(1px, -4px, 0) scale(1.015);
      filter: blur(0.18px) brightness(1);
    }

    58% {
      opacity: 0.84;
      transform: translate3d(-2px, -3px, 0) scale(1.01);
      filter: blur(0.1px) brightness(1.1);
    }

    79% {
      opacity: 0.50;
      transform: translate3d(1px, -1px, 0) scale(0.995);
      filter: blur(0.16px) brightness(0.98);
    }

    100% {
      opacity: 0.42;
      transform: translate3d(0, 0, 0) scale(0.985);
      filter: blur(0.2px) brightness(0.96);
    }
  }

  @keyframes heroDustTwinkle {
    0% {
      opacity: 0;
      transform: scale(0.72);
      filter: brightness(0.9);
    }

    12% {
      opacity: 0.08;
      transform: scale(0.78);
      filter: brightness(0.98);
    }

    24% {
      opacity: 0.82;
      transform: scale(1);
      filter: brightness(1.22);
    }

    35% {
      opacity: 0.22;
      transform: scale(0.84);
      filter: brightness(1);
    }

    48% {
      opacity: 0.95;
      transform: scale(1.08);
      filter: brightness(1.3);
    }

    63% {
      opacity: 0.12;
      transform: scale(0.80);
      filter: brightness(0.96);
    }

    78% {
      opacity: 0.68;
      transform: scale(0.98);
      filter: brightness(1.16);
    }

    89% {
      opacity: 0.14;
      transform: scale(0.82);
      filter: brightness(0.98);
    }

    100% {
      opacity: 0;
      transform: scale(0.72);
      filter: brightness(0.9);
    }
  }
}

/* ==========================
   MOBILE WRITE COMPACT HEIGHT
========================== */

@media (max-width: 1200px) and (max-height: 760px) {
  .write-view-inner {
    padding-top: 166px;
  }

  .tomorrow-door-mount {
    margin-bottom: 16px;
  }

  .dream-mode-toggle {
  min-height: 54px;
  padding: 9px 26px 10px;
}

.dream-mode-toggle-generic {
  font-size: 16px;
}

.dream-mode-toggle-sub {
  font-size: 8px;
}

  .write-box {
    height: clamp(455px, 52dvh, 650px);
    padding: 34px 30px 48px;
  }

  textarea {
    font-size: 24px;
    line-height: 1.38;
  }

  #wordCount {
    font-size: 15px;
  }

  .save-status {
    font-size: 12px;
  }
}

/* ==========================
   MOBILE WRITE LARGE HEIGHT
========================== */

@media (max-width: 1200px) and (min-height: 850px) {
  .write-view-inner {
    padding-top: 210px;
  }

  .write-box {
    height: clamp(585px, 57dvh, 790px);
  }
}