
:root {
  --bg: #d9eaff;
  --bg-deep: #a8ccec;
  --surface: #f2f8ff;
  --surface-soft: #e3f1ff;
  --surface-warm: #d1e7fb;
  --ink: #0d1f33;
  --muted: #405a76;
  --line: #a8c9eb;
  --line-strong: #5f98cf;
  --accent: #256ea8;
  --accent-dark: #0f4775;
  --accent-soft: #a8ceef;
  --gold: #3b82f6;
  --focus: #1d4ed8;
  --shadow: 0 24px 70px rgba(13, 56, 96, 0.16);
  --shadow-soft: 0 14px 34px rgba(13, 56, 96, 0.11);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(96, 165, 250, 0.22), transparent 26rem),
    radial-gradient(circle at 85% 0%, rgba(37, 110, 168, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 71, 117, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 71, 117, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 72%);
}

a {
  color: var(--accent-dark);
}

a:focus,
button:focus,
textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -90px;
  left: 16px;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(95, 152, 207, 0.65);
  background: rgba(220, 236, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 18px 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "LS";
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.26), transparent 34%),
    linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 24px rgba(15, 71, 117, 0.25);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  color: var(--accent-dark);
  background: rgba(232, 244, 255, 0.72);
  border-color: rgba(95, 152, 207, 0.7);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 18px rgba(15, 71, 117, 0.18);
}

.hero {
  padding: clamp(54px, 8vw, 94px) 0 clamp(38px, 5vw, 60px);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: clamp(24px, 4vw, 42px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

h1,
h2 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 880px;
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 6.4vw, 5.35rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.48rem);
  line-height: 1.55;
}

.hero .lead + p {
  max-width: 760px;
  color: #465360;
  background: rgba(232, 244, 255, 0.62);
  border: 1px solid rgba(95, 152, 207, 0.56);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 18px 0 clamp(70px, 9vw, 112px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 26px);
}

.card,
.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.96), rgba(225, 241, 255, 0.92));
  border: 1px solid rgba(95, 152, 207, 0.72);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.6vw, 34px);
  box-shadow: var(--shadow);
}

.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
}

.panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.20), transparent 16rem),
    linear-gradient(180deg, rgba(235, 246, 255, 0.96), rgba(218, 236, 252, 0.92));
}

.panel p,
.card p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(95, 152, 207, 0.35);
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.22), transparent 20rem),
    linear-gradient(135deg, var(--accent-dark), #0b3358);
  color: white;
  padding: 34px 0;
}

.site-footer p {
  margin: 0;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 920px) {
  .header-inner,
  .grid,
  .cards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .brand {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, 1120px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    padding: 14px 0;
  }

  .brand::before {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .main-nav a {
    font-size: 0.88rem;
    padding: 8px 9px;
  }

  .hero {
    padding-top: 42px;
  }

  .card,
  .panel {
    border-radius: 22px;
  }
}

.note-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.note-list li {
  margin-bottom: 10px;
}

.note-list li:last-child {
  margin-bottom: 0;
}

.card ul,
.panel ul {
  margin-top: 0;
}

@media (max-width: 640px) {
  .note-list {
    padding-left: 1.05rem;
  }
}

.scripture-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
}

.scripture-brand::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.scripture-brand {
  padding-left: 58px;
  min-height: 48px;
  justify-content: center;
}

.brand-quote {
  display: block;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.55vw, 1.18rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.brand-ref {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .scripture-brand {
    padding-left: 50px;
  }

  .brand-quote {
    font-size: 0.94rem;
  }

  .brand-ref {
    font-size: 0.72rem;
  }
}

/* Phase 4C-A8b clean two-line scripture header */
.scripture-brand::before {
  display: none;
  content: none;
}

.scripture-brand {
  padding-left: 0;
  min-height: auto;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.brand-quote {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.12;
}

.brand-ref {
  display: block;
  margin-top: 2px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .scripture-brand {
    padding-left: 0;
  }

  .brand-quote {
    font-size: 0.94rem;
  }

  .brand-ref {
    font-size: 0.72rem;
  }
}

/* Phase 4C-A8c restore LS mark and compact scripture header */
.scripture-brand {
  position: relative;
  padding-left: 56px;
  min-height: 48px;
  max-width: 520px;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
}

.scripture-brand::before {
  content: "LS";
  display: inline-grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(37, 110, 168, 0.18);
}

.brand-quote {
  display: block;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-ref {
  display: block;
  margin-top: 2px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .scripture-brand {
    padding-left: 50px;
    max-width: 100%;
  }

  .scripture-brand::before {
    width: 38px;
    height: 38px;
    font-size: 0.76rem;
  }

  .brand-quote {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .brand-ref {
    font-size: 0.7rem;
  }
}

/* Phase 4C-A8d LAS brand mark and scripture reference indent */
.scripture-brand {
  position: relative;
  padding-left: 62px;
  min-height: 50px;
  max-width: 570px;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
}

.scripture-brand::before {
  content: "LAS";
  display: inline-grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(37, 110, 168, 0.18);
}

.brand-quote {
  display: block;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.12vw, 1.02rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-ref {
  display: block;
  margin-top: 4px;
  margin-left: 22px;
  color: var(--accent-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .scripture-brand {
    padding-left: 56px;
    max-width: 100%;
  }

  .scripture-brand::before {
    width: 42px;
    height: 42px;
    font-size: 0.68rem;
  }

  .brand-quote {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .brand-ref {
    margin-left: 14px;
    font-size: 0.7rem;
  }
}

/* Phase 4C-A11 align LAS brand and oval mark */
.header-inner {
  align-items: center;
}

.scripture-brand {
  padding-left: 74px;
  min-height: 38px;
  max-width: 610px;
  align-self: flex-start;
  transform: translateY(1px);
}

.scripture-brand::before {
  content: "LAS";
  width: 58px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.brand-quote {
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.04vw, 0.98rem);
  line-height: 1.03;
}

.brand-ref {
  margin-top: 2px;
  margin-left: 28px;
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .scripture-brand {
    padding-left: 66px;
    min-height: 38px;
    align-self: auto;
    transform: translateY(0);
  }

  .scripture-brand::before {
    width: 52px;
    height: 34px;
    font-size: 0.7rem;
  }

  .brand-quote {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .brand-ref {
    margin-top: 2px;
    margin-left: 18px;
    font-size: 0.7rem;
  }
}

/* Daily Journal workspace */
.journal-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.journal-card {
  display: flex;
  flex-direction: column;
}

.journal-help {
  color: var(--muted);
  margin-top: 0;
}

.journal-label {
  display: block;
  margin: 12px 0 8px;
  font-weight: 700;
  color: var(--ink);
}

.journal-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(232, 244, 255, 0.92);
  color: var(--ink);
  padding: 14px 15px;
  font: inherit;
  line-height: 1.55;
  min-height: 180px;
}

.journal-output {
  background: rgba(211, 231, 252, 0.85);
}

.journal-button {
  margin-top: 14px;
  align-self: flex-start;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.journal-button:hover {
  filter: brightness(1.04);
}

@media (max-width: 820px) {
  .journal-workspace {
    grid-template-columns: 1fr;
  }
}

.journal-card-wide {
  grid-column: 1 / -1;
}

/* Study room directory and group pages */
.room-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.room-card {
  display: flex;
  flex-direction: column;
}

.room-access {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(211, 231, 252, 0.9);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.room-button {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.group-composer,
.group-post {
  display: flex;
  flex-direction: column;
}

.group-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(232, 244, 255, 0.92);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.group-feed {
  display: grid;
  gap: 22px;
}

.group-comment-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .room-directory,
  .group-layout {
    grid-template-columns: 1fr;
  }
}

/* Study Rooms page spacing */
.study-rooms-page .study-rooms-hero {
  padding-top: 56px;
  padding-bottom: 24px;
}

.study-rooms-page .study-rooms-hero .grid {
  align-items: start;
  gap: 32px;
}

.study-rooms-page .study-rooms-hero .panel {
  align-self: start;
}

.study-rooms-page .study-rooms-hero .lead {
  margin-bottom: 16px;
}

.study-rooms-page .study-rooms-hero p:last-child {
  margin-bottom: 0;
}

.study-rooms-page .room-directory-section {
  padding-top: 24px;
}

.study-rooms-page .panel h3 {
  margin-top: 22px;
}

/* Social-style Study Room pages */
.study-room-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.room-cover {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.room-cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.96), rgba(211, 231, 252, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.room-cover-card h1 {
  margin: 6px 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.room-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.room-meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.85);
  padding: 8px 12px;
  font-weight: 800;
  color: var(--muted);
}

.room-feed-section {
  padding-top: 28px;
}

.social-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.room-feed-column {
  display: grid;
  gap: 20px;
}

.social-composer,
.social-post {
  display: flex;
  flex-direction: column;
}

.post-author-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-author-row h2 {
  margin-top: 0;
  margin-bottom: 4px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-dark);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.small-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 0.85rem;
}

.compact-textarea {
  min-height: 96px;
}

.composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.file-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(211, 231, 252, 0.9);
  color: var(--accent-dark);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.screen-reader-file {
  width: 1px;
  height: 1px;
  opacity: 0.01;
  overflow: hidden;
  position: absolute;
}

.composer-post-button {
  margin-top: 0;
}

.feed-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.feed-heading-row h2,
.feed-heading-row p {
  margin: 0;
}

.feed-heading-row p,
.post-meta {
  color: var(--muted);
  font-weight: 700;
}

.scripture-line {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.attachment-card {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(211, 231, 252, 0.7);
  padding: 16px;
}

.attachment-card h3 {
  margin-top: 0;
}

.study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.study-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.9);
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.comment-thread {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-bubble {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(232, 244, 255, 0.92);
  padding: 10px 12px;
}

.comment-bubble p {
  margin: 0;
}

.comment-bubble p + p {
  margin-top: 4px;
}

.room-right-rail {
  display: grid;
  gap: 20px;
}

.sticky-panel {
  position: sticky;
  top: 110px;
}

@media (max-width: 980px) {
  .social-room-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .feed-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

/* Study Room comment replies */
.comment-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 4px;
}

.comment-actions button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 0;
}

.reply-comment {
  margin-left: 44px;
}

.comment-compose-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .reply-comment {
    margin-left: 20px;
  }
}

/* Study Room local prototype interactions */
.prototype-post {
  border-left: 4px solid var(--accent);
}

.prototype-comment .comment-bubble {
  background: rgba(211, 231, 252, 0.95);
}

.study-actions button.is-active,
.comment-actions button.is-active {
  border-color: var(--accent-dark);
  background: rgba(37, 110, 168, 0.1);
  color: var(--accent-dark);
}

.comment-actions button.is-active {
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Study Room locked directory states */
.room-card-open {
  border-color: rgba(37, 110, 168, 0.28);
}

.room-card-locked {
  position: relative;
  background: rgba(211, 231, 252, 0.72);
}

.room-card-locked h2::before {
  content: "\1F512";
}

.room-access-open {
  background: rgba(232, 244, 255, 0.96);
}

.room-access-locked {
  background: rgba(194, 220, 247, 0.95);
  color: var(--muted);
}

.room-lock-note {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
  font-weight: 700;
}

.room-button-locked {
  border-color: var(--line);
  background: rgba(194, 220, 247, 0.95);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Create Group flow */
.room-card-create {
  border: 2px solid rgba(37, 110, 168, 0.32);
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.98), rgba(211, 231, 252, 0.92));
}

.create-group-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.create-group-form {
  display: flex;
  flex-direction: column;
}

.create-group-draft {
  border-left: 4px solid var(--accent);
}

@media (max-width: 980px) {
  .create-group-layout {
    grid-template-columns: 1fr;
  }
}

/* Study Room post sharing */
.post-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-share-label {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.post-share-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.9);
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.post-share-actions button:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.post-share-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Join page */
.join-hero {
  padding-top: 56px;
}

.join-path-grid,
.join-layout {
  display: grid;
  gap: 24px;
}

.join-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-layout {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  align-items: start;
}

.join-form {
  display: flex;
  flex-direction: column;
}

.join-draft {
  border-left: 4px solid var(--accent);
}

@media (max-width: 980px) {
  .join-path-grid,
  .join-layout {
    grid-template-columns: 1fr;
  }
}

/* Join conversion polish */
.join-from-share-section {
  padding-top: 24px;
}

.join-from-share-card {
  border-left: 4px solid var(--accent);
}

.join-from-share-highlight {
  box-shadow: 0 0 0 4px rgba(37, 110, 168, 0.12), var(--shadow-soft);
}

.join-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.room-button-soft {
  background: rgba(232, 244, 255, 0.95);
  color: var(--accent-dark);
}

.join-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 980px) {
  .join-benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* No ads / membership promise */
.membership-promise-section {
  padding-top: 24px;
}

.membership-promise-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.98), rgba(211, 231, 252, 0.92));
}

/* Membership page */
.membership-hero {
  padding-top: 56px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.membership-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.membership-card,
.membership-join-card {
  display: flex;
  flex-direction: column;
}

.membership-card .room-button {
  margin-top: auto;
}

.membership-join-section,
.membership-crosslink-section {
  padding-top: 24px;
}

.membership-join-card {
  border-left: 4px solid var(--accent);
}

@media (max-width: 980px) {
  .membership-grid,
  .membership-grid-two {
    grid-template-columns: 1fr;
  }
}

/* Membership pricing */
.membership-pricing-section {
  padding-top: 28px;
}

.membership-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pricing-card h3,
.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  margin: 10px 0 8px;
  line-height: 0.95;
}

.pricing-amount {
  font-size: clamp(2.35rem, 4.4vw, 3.35rem);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.pricing-period {
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.pricing-year {
  margin-top: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.pricing-card .note-list {
  margin-bottom: 22px;
}

.pricing-card .room-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  text-align: center;
  line-height: 1.2;
}

.pricing-card-featured {
  border: 2px solid rgba(37, 110, 168, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 110, 168, 0.08), var(--shadow-soft);
}

/* Website Support */
.support-hero {
  padding-top: 56px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.support-card,
.support-form {
  display: flex;
  flex-direction: column;
}

.support-draft {
  border-left: 4px solid var(--accent);
}

@media (max-width: 1100px) {
  .membership-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .membership-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Study Room share more menu */
.post-share-more {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.post-share-more summary {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.9);
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.post-share-more summary::-webkit-details-marker {
  display: none;
}

.post-share-more[open] summary {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.post-share-more-grid {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.post-share-more .post-share-more-grid button {
  background: rgba(211, 231, 252, 0.92);
}

/* A75 footer layout repair */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-nav a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* A77 LifeNote notebook */
.lifenote-card {
  grid-column: 1 / -1;
}

.lifenote-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lifenote-save-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 110, 168, 0.22);
  border-radius: 999px;
  background: rgba(211, 231, 252, 0.78);
  color: var(--accent-dark);
  margin: 0;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.lifenote-shell {
  display: grid;
  grid-template-columns: minmax(165px, 0.82fr) minmax(205px, 1fr) minmax(300px, 1.55fr);
  gap: 16px;
  align-items: stretch;
}

.lifenote-sidebar,
.lifenote-notes-panel,
.lifenote-editor {
  border: 1px solid rgba(95, 152, 207, 0.58);
  border-radius: 22px;
  background: rgba(232, 244, 255, 0.72);
  padding: 16px;
}

.lifenote-sidebar h3,
.lifenote-panel-heading h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.lifenote-folder-list,
.lifenote-note-list {
  display: grid;
  gap: 8px;
}

.lifenote-folder-button,
.lifenote-note-button {
  width: 100%;
  border: 1px solid rgba(37, 110, 168, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 10px 11px;
  text-align: left;
}

.lifenote-folder-button {
  font-weight: 850;
}

.lifenote-folder-button.is-active,
.lifenote-note-button.is-active {
  border-color: rgba(37, 110, 168, 0.46);
  background: rgba(159, 199, 235, 0.72);
  box-shadow: var(--shadow-soft);
}

.lifenote-note-button strong,
.lifenote-note-button span {
  display: block;
}

.lifenote-note-button strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.lifenote-note-button span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.lifenote-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lifenote-small-button {
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 850;
  padding: 8px 12px;
  white-space: nowrap;
}

.lifenote-textarea {
  min-height: 300px;
}

.lifenote-legacy-field {
  display: none;
}

@media (max-width: 980px) {
  .lifenote-shell {
    grid-template-columns: 1fr;
  }

  .lifenote-header-row {
    flex-direction: column;
  }

  .lifenote-save-status {
    white-space: normal;
  }
}

/* A78 LifeNote autosave layout stability */
.lifenote-header-row > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.lifenote-save-status {
  flex: 0 0 230px;
  justify-content: center;
  min-width: 230px;
  text-align: center;
}

@media (max-width: 980px) {
  .lifenote-save-status {
    flex-basis: auto;
    min-width: 0;
    width: fit-content;
  }
}

/* A79 LifeNote moved to Daily Journal */
.lifenote-bridge-card {
  grid-column: 1 / -1;
}

.lifenote-daily-section {
  padding-top: 0;
}

/* A80 LifeNote new folder controls */
.lifenote-new-folder {
  margin-bottom: 14px;
}

.lifenote-folder-actions-inline {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.lifenote-folder-actions-inline .lifenote-small-button {
  flex: 1 1 0;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.lifenote-folder-label {
  margin-bottom: 6px;
}

.lifenote-folder-input {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

.lifenote-folder-add-button {
  justify-content: center;
}

.lifenote-folder-feedback {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.lifenote-notes-eyebrow {
  margin-bottom: 2px;
}

/* A82 LifeNote daily follow-up bridge */
.lifenote-followup-section {
  padding-bottom: 0;
}

.lifenote-followup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lifenote-followup-card h2 {
  margin-top: 0;
}

.lifenote-followup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(420px, 100%);
}

.lifenote-shortcut-button {
  margin-top: 0;
}

@media (max-width: 860px) {
  .lifenote-followup-card {
    align-items: stretch;
    flex-direction: column;
  }

  .lifenote-followup-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* A83 LifeNote delete controls */
.lifenote-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lifenote-danger-button {
  border-color: rgba(143, 56, 45, 0.55);
  background: rgba(143, 56, 45, 0.08);
  color: #7f2f27;
}

.lifenote-danger-button:hover,
.lifenote-danger-button:focus {
  border-color: rgba(143, 56, 45, 0.78);
  background: rgba(143, 56, 45, 0.14);
}

@media (max-width: 760px) {
  .lifenote-heading-actions {
    justify-content: flex-start;
  }
}

/* A85 LifeNote folder controls inside Folders box */
@media (max-width: 520px) {
  .lifenote-folder-actions-inline {
    flex-wrap: wrap;
  }

  .lifenote-folder-actions-inline .lifenote-small-button {
    flex: 1 1 130px;
  }
}

/* A86 LifeNote folder title cleanup and inline note buttons */
.lifenote-sidebar .lifenote-new-folder {
  margin-top: 0;
}

.lifenote-note-actions-inline {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.lifenote-note-actions-inline .lifenote-small-button {
  flex: 1 1 0;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.lifenote-notes-heading h3 {
  margin: 0;
}

@media (max-width: 520px) {
  .lifenote-note-actions-inline {
    flex-wrap: wrap;
  }

  .lifenote-note-actions-inline .lifenote-small-button {
    flex: 1 1 130px;
  }
}

/* A87 LifeNote note actions top alignment */
.lifenote-notes-heading .lifenote-note-actions-inline {
  margin: 0 0 14px;
}

.lifenote-notes-heading .lifenote-notes-eyebrow {
  margin-top: 0;
}

/* A88 LifeNote remove decorative line before Notes label */
.lifenote-notes-eyebrow::before {
  content: none;
  display: none;
}

.lifenote-notes-eyebrow {
  gap: 0;
}

/* A91 smooth blue page fade repair */
html {
  background: #f2f8ff;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 204, 236, 0.84) 0%, rgba(217, 234, 255, 0.74) 28%, rgba(242, 248, 255, 0.96) 78%),
    linear-gradient(180deg, #a8ccec 0%, #d9eaff 38%, #f2f8ff 100%);
  background-attachment: fixed;
}

.site-header {
  background: rgba(217, 234, 255, 0.90);
}

.hero,
.section {
  background: transparent;
}

.card,
.panel,
.hero-panel,
.journal-card,
.lifenote-sidebar,
.lifenote-notes-panel,
.lifenote-editor {
  background: linear-gradient(135deg, rgba(235, 246, 255, 0.96), rgba(218, 236, 252, 0.90));
  border-color: rgba(95, 152, 207, 0.44);
}

.lifenote-folder-button,
.lifenote-note-button {
  background: rgba(242, 248, 255, 0.82);
  border-color: rgba(95, 152, 207, 0.26);
}

.lifenote-folder-button.is-active,
.lifenote-note-button.is-active {
  background: rgba(168, 206, 239, 0.68);
  border-color: rgba(37, 110, 168, 0.46);
}

/* A92R top-right hero and side panels blue finalize */
.hero .panel,
.grid > .panel,
aside.panel,
article.panel,
.sticky-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(235, 246, 255, 0.97), rgba(218, 236, 252, 0.93));
  border-color: rgba(95, 152, 207, 0.50);
}

.hero .panel::before,
.grid > .panel::before,
aside.panel::before,
article.panel::before,
.sticky-panel::before {
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
}

/* A93 LifeNote rename folder control */
.lifenote-folder-rename-button {
  justify-content: center;
}

@media (max-width: 760px) {
  .lifenote-folder-actions-inline {
    flex-wrap: wrap;
  }

  .lifenote-folder-actions-inline .lifenote-small-button {
    flex: 1 1 120px;
  }
}

/* A94R LifeNote folder button layout repair */
.lifenote-folder-actions-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.lifenote-folder-actions-inline .lifenote-small-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}

#lifenote-delete-folder {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .lifenote-folder-actions-inline {
    grid-template-columns: 1fr;
  }

  #lifenote-delete-folder {
    grid-column: auto;
  }
}

/* A94S LifeNote rename button label fit */
#lifenote-rename-folder {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A95 LifeNote note search */
.lifenote-note-search-wrap {
  margin: 0 0 12px;
}

.lifenote-note-search-label {
  margin-bottom: 6px;
}

.lifenote-note-search-input {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.lifenote-note-search-status,
.lifenote-empty-search {
  min-height: 1.2em;
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.lifenote-empty-search {
  border: 1px dashed rgba(95, 152, 207, 0.42);
  border-radius: 14px;
  padding: 10px 11px;
}

/* A96 LifeNote move note */
.lifenote-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.lifenote-editor-actions .lifenote-small-button {
  justify-content: center;
}

/* A97 LifeNote download backup */
.lifenote-header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lifenote-backup-button {
  background: transparent;
  color: var(--accent-dark);
}

.lifenote-backup-button:hover,
.lifenote-backup-button:focus {
  background: rgba(37, 110, 168, 0.10);
}

@media (max-width: 980px) {
  .lifenote-header-actions {
    justify-content: flex-start;
  }
}

/* A98 LifeNote layout polish */
.lifenote-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  align-items: start;
  gap: 18px;
}

.lifenote-header-row > div:first-child {
  min-width: 0;
}

.lifenote-header-actions {
  align-items: stretch;
  flex-direction: column;
  min-width: 230px;
}

.lifenote-header-actions .lifenote-small-button,
.lifenote-header-actions .lifenote-save-status {
  width: 100%;
}

.lifenote-header-actions .lifenote-save-status {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.lifenote-shell {
  grid-template-columns: minmax(190px, 0.78fr) minmax(240px, 1fr) minmax(360px, 1.62fr);
  gap: 18px;
}

.lifenote-sidebar,
.lifenote-notes-panel,
.lifenote-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lifenote-new-folder,
.lifenote-note-search-wrap {
  border: 1px solid rgba(95, 152, 207, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  padding: 12px;
}

.lifenote-new-folder {
  margin-bottom: 14px;
}

.lifenote-folder-actions-inline,
.lifenote-note-actions-inline {
  gap: 8px;
}

.lifenote-note-actions-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.lifenote-note-actions-inline .lifenote-small-button {
  min-width: 0;
  width: 100%;
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.lifenote-notes-heading {
  border-bottom: 1px solid rgba(95, 152, 207, 0.22);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.lifenote-folder-list,
.lifenote-note-list {
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.lifenote-note-list {
  max-height: 460px;
}

.lifenote-folder-list {
  max-height: 520px;
}

.lifenote-note-search-wrap {
  margin-bottom: 12px;
}

.lifenote-editor .journal-label {
  margin-top: 10px;
}

.lifenote-editor .journal-label:first-child {
  margin-top: 0;
}

.lifenote-textarea {
  flex: 1 1 auto;
  min-height: 340px;
}

.lifenote-editor-actions {
  border-top: 1px solid rgba(95, 152, 207, 0.22);
  justify-content: flex-end;
  margin: 14px 0 10px;
  padding-top: 12px;
}

.lifenote-editor-actions .lifenote-small-button {
  min-width: 140px;
}

@media (max-width: 1120px) {
  .lifenote-shell {
    grid-template-columns: minmax(190px, 0.85fr) minmax(260px, 1.15fr);
  }

  .lifenote-editor {
    grid-column: 1 / -1;
  }

  .lifenote-textarea {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .lifenote-header-row {
    grid-template-columns: 1fr;
  }

  .lifenote-header-actions {
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .lifenote-shell {
    grid-template-columns: 1fr;
  }

  .lifenote-note-actions-inline {
    grid-template-columns: 1fr;
  }

  .lifenote-folder-list,
  .lifenote-note-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .lifenote-editor-actions {
    justify-content: stretch;
  }

  .lifenote-editor-actions .lifenote-small-button {
    width: 100%;
  }
}

/* A99 Study Rooms clarity polish */
.study-rooms-page .study-rooms-hero .panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.study-rooms-page .study-rooms-hero .panel h3 {
  margin-bottom: 0;
}

.study-rooms-page .study-rooms-hero .panel p + h3 {
  border-top: 1px solid rgba(95, 152, 207, 0.24);
  margin-top: 10px;
  padding-top: 14px;
}

.room-directory {
  align-items: stretch;
}

.room-card {
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.room-card::before {
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
  content: "";
  display: block;
  height: 4px;
  margin: -1.5rem -1.5rem 4px;
}

.room-card p {
  margin-top: 0;
}

.room-card-open .room-access {
  background: rgba(221, 245, 231, 0.92);
  border-color: rgba(44, 130, 82, 0.24);
  color: #23623f;
}

.room-card-locked .room-access {
  background: rgba(211, 231, 252, 0.88);
}

.room-lock-note {
  border-left: 4px solid rgba(37, 110, 168, 0.42);
  color: var(--muted);
  padding-left: 12px;
}

.room-button,
.room-button-locked {
  margin-top: auto;
}

.room-button-locked {
  background: rgba(232, 244, 255, 0.82);
  border-color: rgba(95, 152, 207, 0.50);
  color: var(--accent-dark);
  cursor: not-allowed;
  box-shadow: none;
}

.room-study-guardrails {
  border: 1px solid rgba(95, 152, 207, 0.28);
  border-radius: 18px;
  background: rgba(232, 244, 255, 0.58);
  margin: 16px 0 18px;
  padding: 14px;
}

.room-study-guardrails h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.room-study-guardrails ul {
  margin: 0;
  padding-left: 1.1rem;
}

.room-study-guardrails li + li {
  margin-top: 6px;
}

.social-composer .journal-label:first-of-type {
  margin-top: 0;
}

.composer-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-tools .journal-button {
  margin-top: 0;
}

.post-share-actions {
  border-top: 1px solid rgba(95, 152, 207, 0.24);
  margin-top: 16px;
  padding-top: 14px;
}

.post-share-actions button,
.post-share-more summary {
  min-height: 40px;
}

.comment-thread {
  border-top: 1px solid rgba(95, 152, 207, 0.24);
  margin-top: 18px;
  padding-top: 16px;
}

.comment-compose-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .room-card::before {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .composer-tools,
  .comment-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-tools .journal-button,
  .composer-tools .file-pill,
  .comment-compose-actions .journal-button {
    width: 100%;
  }
}

/* A100R2 Tell Your Story scripture-pattern report flow */
.story-report-button {
  margin-bottom: 8px;
}

.story-report-status {
  min-height: 1.3em;
}

.story-report-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.story-report-path > div {
  border: 1px solid rgba(95, 152, 207, 0.28);
  border-radius: 18px;
  background: rgba(232, 244, 255, 0.58);
  padding: 14px;
}

.story-report-path span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  font-weight: 900;
  margin-bottom: 8px;
}

.story-report-path strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.story-report-path p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 980px) {
  .story-report-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .story-report-path {
    grid-template-columns: 1fr;
  }
}

/* A101 Tell Your Story autosave and backup */
.story-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.story-save-actions .journal-button {
  margin-top: 0;
}

.story-backup-button {
  background: transparent;
  color: var(--accent-dark);
}

.story-backup-button:hover,
.story-backup-button:focus {
  background: rgba(37, 110, 168, 0.10);
}

@media (max-width: 620px) {
  .story-save-actions,
  .story-save-actions .journal-button {
    width: 100%;
  }
}

/* A102 Tell Your Story import backup */
.story-import-button {
  background: rgba(232, 244, 255, 0.82);
  color: var(--accent-dark);
  cursor: pointer;
}

.story-import-button:hover,
.story-import-button:focus {
  background: rgba(37, 110, 168, 0.10);
}

.story-save-actions .story-backup-button,
.story-save-actions .story-import-button {
  justify-content: center;
}

/* A116-A3 readable Scripture Likening and scripture links */
.scripture-likening-view {
  min-height: 320px;
  border: 1px solid rgba(95, 152, 207, 0.58);
  border-radius: 20px;
  background: rgba(211, 231, 252, 0.58);
  padding: clamp(22px, 3vw, 32px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.scripture-likening-view:focus {
  outline: 3px solid rgba(37, 110, 168, 0.25);
  outline-offset: 3px;
}

.scripture-likening-view h2,
.scripture-likening-view h3,
.scripture-likening-view h4 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
}

.scripture-likening-view h2:first-child,
.scripture-likening-view h3:first-child,
.scripture-likening-view h4:first-child {
  margin-top: 0;
}

.scripture-likening-view p {
  margin: 0 0 1em;
}

.scripture-likening-view ul,
.scripture-likening-view ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.scripture-likening-placeholder {
  color: var(--muted);
}

.scripture-reference-link {
  font-weight: 800;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.16em;
}



/* A116-A4 Regenerate controls */
.story-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.story-report-actions .journal-button {
  margin-top: 0;
}

.story-regenerate-button {
  background: transparent;
  color: var(--accent-dark);
}

.story-regenerate-button:hover,
.story-regenerate-button:focus {
  background: rgba(37, 110, 168, 0.10);
}

.story-regenerate-button[hidden] {
  display: none;
}
/* A117-A3 Renew Your Testimony */
.testimony-prayer-card,
.testimony-history-card {
  max-width: 960px;
  margin: 0 auto;
}

.testimony-renewal-workspace {
  padding-top: 0;
}

.testimony-step {
  scroll-margin-top: 110px;
}

.testimony-four-part-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimony-compact-textarea {
  min-height: 150px;
}

.testimony-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.testimony-renewal-actions .journal-button {
  margin-top: 0;
  justify-content: center;
}

.testimony-secondary-button {
  color: var(--accent-dark);
  background: rgba(37, 110, 168, 0.10);
}

.testimony-import-button {
  display: inline-flex;
  align-items: center;
}

.testimony-save-status {
  margin-top: 14px;
  font-weight: 700;
}

.testimony-history-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.testimony-history-entry {
  padding: 20px;
  border: 1px solid rgba(95, 152, 207, 0.58);
  border-radius: var(--radius-sm);
  background: rgba(235, 246, 255, 0.72);
}

.testimony-history-entry h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.testimony-history-date {
  margin-top: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.testimony-history-open-button {
  margin-top: 8px;
}

.testimony-history-empty {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .testimony-four-part-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .testimony-renewal-actions,
  .testimony-renewal-actions .journal-button,
  .testimony-renewal-actions .testimony-import-button {
    width: 100%;
  }
}

/* A117-A5.1 Christus identity and header spacing repair */
.site-header .header-inner {
  width: calc(100% - 40px);
  max-width: none;
  margin-inline: auto;
  gap: clamp(44px, 4vw, 76px);
}

.brand-cluster {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 0;
}

.christus-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 74px;
}

.christus-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 52%;
  backface-visibility: visible;
  filter: drop-shadow(0 8px 10px rgba(26, 75, 117, 0.28));
  animation: christus-reverent-turn 28s linear infinite;
  will-change: transform;
}

.brand-cluster:hover .christus-mark img,
.brand-cluster:focus-within .christus-mark img {
  animation-play-state: paused;
}

@keyframes christus-reverent-turn {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.main-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.main-nav a[href="/support/"] {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
}

.support-nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-nav-dot {
  fill: currentColor;
  stroke: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-header .header-inner {
    width: calc(100% - 32px);
    gap: 32px;
  }

  .brand-cluster {
    gap: 10px;
  }

  .christus-mark {
    width: 50px;
    height: 64px;
  }
}

@media (max-width: 920px) {
  .site-header .header-inner {
    gap: 18px;
  }

  .brand-cluster {
    width: fit-content;
  }

  .main-nav {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    width: calc(100% - 24px);
    padding: 14px 0;
  }

  .brand-cluster {
    align-items: center;
    gap: 8px;
  }

  .christus-mark {
    width: 44px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .christus-mark img {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* A117-A5.2 Tell Your Story top Sample Report placement */
.story-intro-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.story-intro-sidebar > .panel,
.story-intro-sidebar > .card {
  margin: 0;
}

/* A117-A5.4 Christus-only header */
.scripture-brand {
  padding-left: 0;
  min-height: 0;
  align-self: center;
  transform: none;
}

.scripture-brand::before {
  content: none;
  display: none;
}

.brand-ref {
  margin-left: 0;
}

.brand-cluster {
  gap: 14px;
}

.christus-mark {
  width: 72px;
  height: 90px;
}

@media (max-width: 1180px) {
  .christus-mark {
    width: 62px;
    height: 78px;
  }
}

@media (max-width: 640px) {
  .brand-cluster {
    gap: 10px;
  }

  .christus-mark {
    width: 52px;
    height: 66px;
  }
}

/* A117-A5.5 Christus proportion and scripture alignment */
.brand-cluster {
  gap: 26px;
}

.christus-mark {
  width: 92px;
  height: 110px;
}

@keyframes christus-reverent-turn {
  from {
    transform: scaleX(1.15) rotateY(0deg);
  }

  to {
    transform: scaleX(1.15) rotateY(360deg);
  }
}

.scripture-brand {
  align-items: center;
  text-align: center;
}

.brand-ref {
  width: 100%;
  align-self: center;
  margin-left: 0;
  text-align: center;
}

@media (max-width: 1180px) {
  .brand-cluster {
    gap: 20px;
  }

  .christus-mark {
    width: 78px;
    height: 94px;
  }
}

@media (max-width: 640px) {
  .brand-cluster {
    gap: 14px;
  }

  .christus-mark {
    width: 64px;
    height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .christus-mark img {
    transform: scaleX(1.15);
  }
}
/* A118-A4.3 Align Tell Your Story sample card with left introduction bottom */
.story-intro-sidebar {
  align-self: stretch;
  grid-template-rows: auto 1fr;
}

.story-intro-sidebar > .story-sample-card {
  align-self: end;
  transform: translateY(-18px);
}
/* A118-A6.6 Final centered Daily Journal layout */
.daily-journal-page .daily-journal-hero {
  padding-bottom: clamp(26px, 4vw, 42px);
}

.daily-journal-page .daily-journal-hero-content {
  max-width: 1120px;
}

.daily-journal-page .daily-journal-hero h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 0.99;
}

.daily-journal-page .daily-journal-hero .lead {
  width: 100%;
  max-width: 100%;
}

.daily-journal-page .daily-journal-safety {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px 0 0;
  padding: 16px 18px;
  color: #465360;
  background: rgba(232, 244, 255, 0.64);
  border: 1px solid rgba(95, 152, 207, 0.52);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.daily-journal-page .daily-journal-hero + .section {
  padding-top: 18px;
}

.daily-journal-page .journal-workspace {
  gap: clamp(20px, 3vw, 30px);
}

.daily-journal-page .journal-card {
  padding: clamp(24px, 3vw, 34px);
}

.daily-journal-page .journal-textarea {
  font-size: 1rem;
  line-height: 1.55;
}

.daily-journal-page .journal-card .journal-button {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1rem;
}

.daily-journal-page .daily-study-access-banner-section {
  padding-top: 14px;
  padding-bottom: 20px;
}

.daily-journal-page .daily-study-access-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.7fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
  padding: clamp(24px, 3vw, 34px);
}

.daily-journal-page .daily-study-access-banner h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.1;
}

.daily-journal-page .daily-study-access-banner p {
  margin-bottom: 0;
  line-height: 1.55;
}

.daily-journal-page .daily-study-milestones {
  display: grid;
  gap: 12px;
}

.daily-journal-page .daily-study-milestones p {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(95, 152, 207, 0.34);
  border-radius: 14px;
}

.daily-journal-page .daily-study-milestones strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.daily-journal-page .daily-study-milestones span {
  font-size: 0.94rem;
}

.daily-journal-page .daily-study-access-note {
  display: grid;
  gap: 12px;
}

.daily-journal-page .daily-study-access-note a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .daily-journal-page .daily-journal-hero h1 {
    max-width: none;
    font-size: clamp(2.65rem, 10vw, 4.25rem);
  }

  .daily-journal-page .daily-study-access-banner {
    grid-template-columns: 1fr;
  }
}
/* A118-A6.8 Override generic hero paragraph width for Daily Journal safety */
.daily-journal-page .daily-journal-hero .lead + .daily-journal-safety {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* A118-A7.2 Membership spacing and three-card layout */
.membership-page .membership-hero {
  padding-top: 48px;
  padding-bottom: 38px;
}

.membership-page .membership-pricing-section {
  padding-top: 10px;
  padding-bottom: 48px;
}

.membership-page .membership-pricing-section .section-heading {
  margin-bottom: 24px;
}

.membership-page .pricing-card {
  padding: 26px;
}

.membership-page .pricing-card .note-list {
  margin-bottom: 0;
}

.membership-page .membership-join-section {
  padding-top: 0;
  padding-bottom: 30px;
}

.membership-page .membership-promise-card {
  padding: 24px 26px;
}

.membership-page .membership-promise-card h2 {
  margin-bottom: 10px;
}

.membership-page .membership-final-section {
  padding-top: 0;
  padding-bottom: 58px;
}

.membership-page .membership-join-card {
  padding: 26px 30px;
}

.membership-page .membership-join-card .eyebrow {
  margin-bottom: 10px;
}

.membership-page .membership-join-card h2 {
  margin-bottom: 10px;
}

.membership-page .membership-join-card p {
  max-width: 780px;
}

.membership-page .membership-join-card .join-action-row {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .membership-page .membership-pricing-grid,
  .membership-page .membership-grid-two {
    grid-template-columns: 1fr;
  }
}
/* A118-A7.5 Founding beta action button */
.membership-page .membership-hero .panel .membership-beta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 4px;
  padding: 12px 20px;
  border: 1px solid rgba(24, 84, 134, 0.85);
  border-radius: 999px;
  background: linear-gradient(135deg, #256ea8, #174f7c);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(24, 84, 134, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.membership-page .membership-hero .panel .membership-beta-button:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(24, 84, 134, 0.28);
}

.membership-page .membership-hero .panel .membership-beta-button:focus {
  color: #ffffff;
  text-decoration: none;
}

/* A118-A9.1 Founding Beta visual repair */
.join-page .join-hero {
  padding-top: 44px;
  padding-bottom: 34px;
}

.join-page .join-hero .grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
  gap: 30px;
}

.join-page .join-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 4.8vw, 4.55rem);
  line-height: 0.99;
}

.join-page .join-hero .lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
}

.join-page .join-hero .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 30px;
}

.join-page .join-hero .panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.join-page .join-hero .panel .note-list {
  line-height: 1.55;
}

.join-page .section {
  padding-top: 10px;
  padding-bottom: 78px;
}

.join-page .join-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  align-items: stretch;
  gap: 28px;
}

.join-page .join-form {
  padding: 34px;
}

.join-page .join-form h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
}

.join-page .join-form > p {
  max-width: 720px;
}

.join-page .join-form .group-input {
  min-height: 48px;
  background: rgba(242, 248, 255, 0.94);
}

.join-page .join-form .journal-textarea {
  min-height: 160px;
  background: rgba(242, 248, 255, 0.94);
}

.join-page .join-form .journal-button {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 1rem;
}

.join-page .join-draft {
  display: flex;
  min-height: 100%;
  padding: 32px;
  border-left-width: 1px;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.join-page .join-draft h2 {
  max-width: 300px;
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
}

.join-page .join-draft .journal-help {
  max-width: 300px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .join-page .join-hero .grid,
  .join-page .join-layout {
    grid-template-columns: 1fr;
  }

  .join-page .join-draft {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .join-page .join-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .join-page .join-form,
  .join-page .join-draft,
  .join-page .join-hero .panel {
    padding: 24px;
  }
}

/* A118-A9.2 Founding Beta balance repair */
.join-page .join-hero .grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.join-page .join-hero h1 {
  max-width: 690px;
  font-size: clamp(2.95rem, 4.35vw, 4.15rem);
}

.join-page .join-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
}

.join-page .join-draft {
  justify-content: flex-start;
  min-height: 0;
  padding: 32px;
}

.join-page .join-draft h2,
.join-page .join-draft .journal-help {
  max-width: none;
}

.join-page .join-draft-guide {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(95, 152, 207, 0.32);
}

.join-page .join-draft-guide h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
}

.join-page .join-draft-guide ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.join-page .join-draft-guide li + li {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .join-page .join-hero .grid,
  .join-page .join-layout {
    grid-template-columns: 1fr;
  }
}

/* A118-A9.3 Founding Beta layout reset */
.join-page .join-hero {
  padding-top: 42px;
  padding-bottom: 24px;
}

.join-page .join-hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.join-page .join-hero h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  line-height: 1;
}

.join-page .join-hero .lead {
  max-width: 900px;
  margin-bottom: 0;
}

.join-page .join-hero .panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 6px 30px;
  min-height: 0;
  padding: 24px 28px;
}

.join-page .join-hero .panel .room-access {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 4px;
}

.join-page .join-hero .panel h2 {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
}

.join-page .join-hero .panel .note-list {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}

.join-page .join-hero .panel .note-list li {
  margin: 0;
}

.join-page .section {
  padding-top: 10px;
  padding-bottom: 78px;
}

.join-page .join-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.join-page .join-form,
.join-page .join-draft {
  width: 100%;
  max-width: none;
  min-height: 0;
  box-sizing: border-box;
}

.join-page .join-form {
  padding: clamp(28px, 3.5vw, 38px);
}

.join-page .join-form h2,
.join-page .join-form > p {
  max-width: 800px;
}

.join-page .join-form .compact-textarea {
  min-height: 140px;
}

.join-page .join-draft {
  display: block;
  padding: 28px 34px;
  border-left-width: 1px;
}

.join-page .join-draft h2,
.join-page .join-draft p {
  max-width: 900px;
}

@media (max-width: 760px) {
  .join-page .join-hero .panel {
    grid-template-columns: 1fr;
  }

  .join-page .join-hero .panel .room-access,
  .join-page .join-hero .panel h2,
  .join-page .join-hero .panel .note-list {
    grid-column: 1;
    grid-row: auto;
  }

  .join-page .join-hero .panel .note-list {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .join-page .join-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
  }
}

/* A118-A9.4 Founding Beta full-height columns */
.join-page .join-hero .grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: stretch;
}

.join-page .join-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  align-items: stretch;
}

.join-page .join-hero .grid > .panel,
.join-page .join-layout > .join-draft {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.join-page .join-layout > .join-draft {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .join-page .join-hero .grid,
  .join-page .join-layout {
    grid-template-columns: 1fr;
  }

  .join-page .join-hero .grid > .panel,
  .join-page .join-layout > .join-draft {
    height: auto;
    min-height: 0;
  }
}

/* A118-A9.5 Founding Beta top panel repair */
.join-page .join-hero .grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  align-items: stretch;
}

.join-page .join-hero .panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 28px 30px;
}

.join-page .join-hero .panel .room-access {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
}

.join-page .join-hero .panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.join-page .join-hero .panel .note-list {
  display: block;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.join-page .join-hero .panel .note-list li {
  margin: 0 0 10px;
}

.join-page .join-hero .panel .note-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .join-page .join-hero .grid {
    grid-template-columns: 1fr;
  }
}

/* A118-A10.1 Privacy page visual repair */
.privacy-page .privacy-hero {
  padding-top: 42px;
  padding-bottom: 30px;
}

.privacy-page .privacy-hero .grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
  gap: 30px;
}

.privacy-page .privacy-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.7vw, 4.4rem);
  line-height: 0.99;
}

.privacy-page .privacy-hero .lead {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
}

.privacy-page .privacy-hero .lead + p {
  max-width: 780px;
  margin-bottom: 0;
  padding: 16px 18px;
}

.privacy-page .privacy-hero .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  box-sizing: border-box;
  padding: 30px;
}

.privacy-page .privacy-hero .panel h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
}

.privacy-page .privacy-hero .panel p:last-child {
  margin-bottom: 0;
  line-height: 1.58;
}

.privacy-page .privacy-commitments-section {
  padding-top: 10px;
  padding-bottom: 28px;
}

.privacy-page .privacy-commitments-section .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.privacy-page .privacy-commitments-section .card {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 28px 30px;
}

.privacy-page .privacy-commitments-section .card h2 {
  font-size: clamp(1.6rem, 2.2vw, 1.95rem);
}

.privacy-page .privacy-commitments-section .card p:last-child {
  margin-bottom: 0;
  line-height: 1.58;
}

.privacy-page .privacy-boundaries-section {
  padding-top: 0;
  padding-bottom: 28px;
}

.privacy-page .privacy-boundaries-section .grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  align-items: stretch;
  gap: 22px;
}

.privacy-page .privacy-boundaries-section .card,
.privacy-page .privacy-boundaries-section .panel {
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 30px;
}

.privacy-page .privacy-boundaries-section h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.05rem);
}

.privacy-page .privacy-boundaries-section p:last-child,
.privacy-page .privacy-boundaries-section li:last-child {
  margin-bottom: 0;
}

.privacy-page .privacy-membership-section {
  padding-top: 0;
  padding-bottom: 78px;
}

.privacy-page .privacy-membership-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 6px 36px;
  padding: 30px 34px;
  border-left-width: 1px;
}

.privacy-page .privacy-membership-card .room-access {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 6px;
}

.privacy-page .privacy-membership-card h2 {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
}

.privacy-page .privacy-membership-card > p:not(.room-access) {
  grid-column: 2;
  margin-bottom: 10px;
  line-height: 1.58;
}

.privacy-page .privacy-membership-card > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .privacy-page .privacy-hero .grid,
  .privacy-page .privacy-boundaries-section .grid,
  .privacy-page .privacy-membership-card {
    grid-template-columns: 1fr;
  }

  .privacy-page .privacy-membership-card .room-access,
  .privacy-page .privacy-membership-card h2,
  .privacy-page .privacy-membership-card > p:not(.room-access) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .privacy-page .privacy-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .privacy-page .privacy-commitments-section .cards {
    grid-template-columns: 1fr;
  }

  .privacy-page .privacy-hero .panel,
  .privacy-page .privacy-commitments-section .card,
  .privacy-page .privacy-boundaries-section .card,
  .privacy-page .privacy-boundaries-section .panel,
  .privacy-page .privacy-membership-card {
    padding: 24px;
  }
}

/* A118-A10.2 Privacy hero boundary repair */
.privacy-page .privacy-hero .panel {
  justify-content: flex-start;
  padding: 28px 30px;
}

.privacy-page .privacy-hero .panel .room-access {
  align-self: flex-start;
  margin-bottom: 14px;
}

.privacy-page .privacy-hero .panel h2 {
  margin-bottom: 12px;
}

.privacy-page .privacy-hero .panel > p:not(.room-access) {
  margin-bottom: 20px;
}

.privacy-page .privacy-boundary-list {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(95, 152, 207, 0.32);
  list-style: none;
}

.privacy-page .privacy-boundary-list li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.privacy-page .privacy-boundary-list li::before {
  content: "\1F512";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

/* A118-A10.4 Complete Privacy page redesign */
.privacy-redesign-page .privacy-redesign-hero {
  padding-top: 44px;
  padding-bottom: 30px;
}

.privacy-redesign-page .privacy-redesign-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  align-items: stretch;
  gap: 28px;
}

.privacy-redesign-page .privacy-redesign-intro {
  align-self: center;
}

.privacy-redesign-page .privacy-redesign-intro h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.6vw, 4.35rem);
  line-height: 0.99;
}

.privacy-redesign-page .privacy-redesign-intro .lead {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.privacy-redesign-page .privacy-redesign-commitment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  box-sizing: border-box;
  padding: 30px;
}

.privacy-redesign-page .privacy-redesign-commitment h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.privacy-redesign-page .privacy-redesign-commitment .note-list {
  line-height: 1.5;
}

.privacy-redesign-page .privacy-redesign-principles {
  padding-top: 12px;
  padding-bottom: 28px;
}

.privacy-redesign-page .privacy-redesign-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.privacy-redesign-page .privacy-redesign-card {
  height: 100%;
  box-sizing: border-box;
  padding: 28px;
}

.privacy-redesign-page .privacy-redesign-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 110, 168, 0.3);
  border-radius: 14px;
  background: rgba(211, 231, 252, 0.82);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.privacy-redesign-page .privacy-redesign-card h2 {
  font-size: clamp(1.55rem, 2.1vw, 1.9rem);
}

.privacy-redesign-page .privacy-redesign-card p:last-child {
  margin-bottom: 0;
  line-height: 1.58;
}

.privacy-redesign-page .privacy-redesign-final-section {
  padding-top: 0;
  padding-bottom: 78px;
}

.privacy-redesign-page .privacy-redesign-final-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 38px;
  padding: 30px 34px;
}

.privacy-redesign-page .privacy-redesign-final-card .eyebrow {
  margin-bottom: 10px;
}

.privacy-redesign-page .privacy-redesign-final-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
}

.privacy-redesign-page .privacy-redesign-final-card > p {
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .privacy-redesign-page .privacy-redesign-hero-grid,
  .privacy-redesign-page .privacy-redesign-final-card {
    grid-template-columns: 1fr;
  }

  .privacy-redesign-page .privacy-redesign-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .privacy-redesign-page .privacy-redesign-intro h1 {
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .privacy-redesign-page .privacy-redesign-commitment,
  .privacy-redesign-page .privacy-redesign-card,
  .privacy-redesign-page .privacy-redesign-final-card {
    padding: 24px;
  }
}

/* A118-A11.2 Complete Support page redesign */
.support-redesign-hero {
  padding-top: 44px;
  padding-bottom: 28px;
}

.support-redesign-intro h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.7vw, 4.4rem);
  line-height: 0.99;
}

.support-redesign-intro .lead {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.support-redesign-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(95, 152, 207, 0.48);
  border-radius: var(--radius-lg);
  background: rgba(232, 244, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.support-redesign-scope p {
  margin: 0;
  line-height: 1.55;
}

.support-redesign-scope strong {
  color: var(--ink);
}

.support-redesign-workspace {
  padding-top: 10px;
  padding-bottom: 78px;
}

.support-redesign-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 24px;
}

.support-redesign-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(28px, 3.3vw, 36px);
}

.support-redesign-card h2 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.support-redesign-card > p:not(.room-access):not(.journal-help) {
  max-width: 680px;
  margin-bottom: 14px;
}

.support-redesign-card .group-input {
  min-height: 48px;
  background: rgba(242, 248, 255, 0.94);
}

.support-redesign-card .journal-textarea {
  min-height: 170px;
  background: rgba(242, 248, 255, 0.94);
}

.support-redesign-card .journal-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 21px;
}

.support-redesign-card .journal-help {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.support-redesign-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-redesign-preview {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 28px 34px;
  border-left-width: 1px;
}

.support-redesign-preview h2 {
  max-width: 800px;
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
}

.support-redesign-preview p:last-child {
  max-width: 860px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .support-redesign-scope,
  .support-redesign-grid {
    grid-template-columns: 1fr;
  }

  .support-redesign-preview {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .support-redesign-intro h1 {
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .support-redesign-field-grid {
    grid-template-columns: 1fr;
  }

  .support-redesign-scope,
  .support-redesign-card,
  .support-redesign-preview {
    padding: 24px;
  }
}

/* A118-A12.2 Complete About page redesign */
.about-redesign-hero {
  padding-top: 44px;
  padding-bottom: 30px;
}

.about-redesign-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
  gap: 28px;
}

.about-redesign-intro {
  align-self: center;
}

.about-redesign-intro h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.6vw, 4.3rem);
  line-height: 0.99;
}

.about-redesign-intro .lead {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.about-redesign-purpose {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  box-sizing: border-box;
  padding: 30px;
}

.about-redesign-purpose h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
}

.about-redesign-purpose p:last-child {
  margin-bottom: 0;
  line-height: 1.6;
}

.about-redesign-process-section {
  padding-top: 12px;
  padding-bottom: 28px;
}

.about-redesign-section-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.about-redesign-section-heading .eyebrow {
  margin-bottom: 10px;
}

.about-redesign-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.04;
}

.about-redesign-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.about-redesign-process-card {
  height: 100%;
  box-sizing: border-box;
  padding: 28px;
}

.about-redesign-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 110, 168, 0.3);
  border-radius: 14px;
  background: rgba(211, 231, 252, 0.82);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.about-redesign-process-card h2 {
  font-size: clamp(1.55rem, 2.1vw, 1.9rem);
}

.about-redesign-process-card p:last-child {
  margin-bottom: 0;
  line-height: 1.58;
}

.about-redesign-difference-section {
  padding-top: 0;
  padding-bottom: 28px;
}

.about-redesign-difference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  align-items: stretch;
  gap: 22px;
}

.about-redesign-difference-card,
.about-redesign-limits-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 30px;
}

.about-redesign-difference-card h2,
.about-redesign-limits-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.about-redesign-difference-card p:last-child,
.about-redesign-limits-card li:last-child {
  margin-bottom: 0;
}

.about-redesign-outcome-section {
  padding-top: 0;
  padding-bottom: 78px;
}

.about-redesign-outcome-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 38px;
  padding: 30px 34px;
}

.about-redesign-outcome-card .eyebrow {
  margin-bottom: 10px;
}

.about-redesign-outcome-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
}

.about-redesign-outcome-card > p {
  margin-bottom: 0;
  line-height: 1.62;
}

@media (max-width: 940px) {
  .about-redesign-hero-grid,
  .about-redesign-difference-grid,
  .about-redesign-outcome-card {
    grid-template-columns: 1fr;
  }

  .about-redesign-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-redesign-intro h1 {
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .about-redesign-purpose,
  .about-redesign-process-card,
  .about-redesign-difference-card,
  .about-redesign-limits-card,
  .about-redesign-outcome-card {
    padding: 24px;
  }
}

/* A121-A3 LifeNote dedicated page and Daily Journal workflow */
.lifenote-page-hero {
  padding-top: 44px;
  padding-bottom: 30px;
}

.lifenote-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
  gap: 26px;
}

.lifenote-page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.8vw, 4.5rem);
  line-height: 0.99;
}

.lifenote-page-hero .lead {
  max-width: 850px;
  margin-bottom: 0;
}

.lifenote-private-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 30px;
}

.lifenote-private-panel h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
}

.lifenote-purpose-section {
  padding-top: 8px;
  padding-bottom: 26px;
}

.lifenote-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.lifenote-purpose-grid .card {
  height: 100%;
  box-sizing: border-box;
  padding: 26px;
}

.lifenote-purpose-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 110, 168, 0.3);
  border-radius: 13px;
  background: rgba(211, 231, 252, 0.82);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.lifenote-page-notebook-section {
  padding-top: 0;
  padding-bottom: 28px;
}

.lifenote-return-section {
  padding-top: 0;
  padding-bottom: 76px;
}

.lifenote-return-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 34px;
  padding: 30px 34px;
}

.lifenote-return-card h2,
.lifenote-return-card p:last-child {
  margin-bottom: 0;
}

.lifenote-workflow-section {
  padding-top: 6px;
  padding-bottom: 76px;
}

.lifenote-workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 34px;
  padding: 32px;
}

.lifenote-workflow-copy h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.lifenote-workflow-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-weight: 800;
}

.lifenote-workflow-path span:nth-child(odd) {
  padding: 9px 13px;
  border: 1px solid rgba(37, 110, 168, 0.3);
  border-radius: 999px;
  background: rgba(218, 235, 252, 0.75);
}

.lifenote-workflow-actions {
  display: grid;
  gap: 12px;
}

.lifenote-workflow-actions .journal-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.lifenote-workflow-open-link {
  display: block;
  padding-top: 5px;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 940px) {
  .lifenote-page-hero-grid,
  .lifenote-purpose-grid,
  .lifenote-return-card,
  .lifenote-workflow-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lifenote-page-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .lifenote-private-panel,
  .lifenote-purpose-grid .card,
  .lifenote-return-card,
  .lifenote-workflow-card {
    padding: 24px;
  }

  .lifenote-workflow-path {
    align-items: flex-start;
    flex-direction: column;
  }

  .lifenote-workflow-path span[aria-hidden="true"] {
    transform: rotate(90deg);
  }
}

/* A121-A3.1 LifeNote notebook visual repair */
.lifenote-page-notebook-section .lifenote-note-actions-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.lifenote-page-notebook-section .lifenote-note-actions-inline .lifenote-small-button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}

/* A121-A3.2 LifeNote identity and folder controls */
.lifenote-page-hero > .container > div:first-child > .eyebrow,
.lifenote-page-notebook-section .lifenote-header-row .eyebrow {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.lifenote-page-notebook-section .lifenote-folder-actions-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.lifenote-page-notebook-section .lifenote-folder-actions-inline .lifenote-small-button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}

/* A123-A2 LifeNote modern application shell */
.lifenote-app-page {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.lifenote-app-main {
  min-height: calc(100vh - 150px);
  padding-bottom: 72px;
}

.lifenote-app-intro {
  padding: 42px 0 24px;
}

.lifenote-app-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 42px;
}

.lifenote-app-intro-copy h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(2.55rem, 4.6vw, 4.35rem);
  line-height: 0.99;
}

.lifenote-app-intro-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.lifenote-app-trust {
  display: grid;
  gap: 5px;
  padding: 5px 0 6px 22px;
  border-left: 3px solid rgba(37, 110, 168, 0.5);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lifenote-app-trust strong {
  color: var(--ink);
  font-size: 1rem;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 2px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(95, 152, 207, 0.72);
  border-radius: 999px;
  background: rgba(242, 248, 255, 0.72);
}

.main-nav .locale-switcher-option {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  min-height: 30px;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main-nav .locale-switcher-option.is-current {
  color: white;
  background: var(--accent-dark);
}

.main-nav .locale-switcher-divider {
  color: var(--line-strong);
  font-size: 0.7rem;
}

.lifenote-guided-exercises-section {
  padding: 0 0 24px;
}

.lifenote-guided-exercise-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(37, 110, 168, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 242, 250, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 38px rgba(41, 69, 96, 0.09);
}

.lifenote-guided-exercise-card h2 {
  margin: 0 0 7px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.lifenote-guided-exercise-card p:not(.lifenote-app-kicker) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lifenote-guided-exercise-card .lifenote-small-button {
  min-height: 44px;
  padding-inline: 18px;
  text-decoration: none;
}

.lifenote-app-workspace-section {
  padding: 0;
}

.lifenote-app-frame {
  overflow: hidden;
  border: 1px solid rgba(69, 103, 134, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(41, 69, 96, 0.14);
}

.lifenote-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(69, 103, 134, 0.2);
  background: #ffffff;
}

.lifenote-app-toolbar-title h2,
.lifenote-panel-header h3,
.lifenote-notes-heading h3 {
  margin: 0;
}

.lifenote-app-toolbar-title h2 {
  font-size: 1.4rem;
}

.lifenote-app-kicker {
  margin: 0 0 3px;
  color: #52708a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lifenote-app-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lifenote-app-page .lifenote-save-status {
  display: block;
  flex: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  white-space: normal;
}

.lifenote-app-page .lifenote-shell {
  display: grid;
  grid-template-columns: 230px 300px minmax(0, 1fr);
  gap: 0;
  min-height: 640px;
  align-items: stretch;
}

.lifenote-app-page .lifenote-sidebar,
.lifenote-app-page .lifenote-notes-panel,
.lifenote-app-page .lifenote-editor {
  min-width: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lifenote-app-page .lifenote-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(69, 103, 134, 0.18);
  background: #f3f6f9;
}

.lifenote-app-page .lifenote-notes-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(69, 103, 134, 0.18);
  background: #fafbfd;
}

.lifenote-app-page .lifenote-editor {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.lifenote-panel-header {
  margin-bottom: 16px;
}

.lifenote-panel-header h3,
.lifenote-notes-heading h3 {
  font-size: 1.05rem;
}

.lifenote-app-page .lifenote-folder-list,
.lifenote-app-page .lifenote-note-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 100px;
  max-height: none;
  overflow: auto;
  padding: 0 3px 0 0;
}

.lifenote-app-page .lifenote-folder-list {
  flex: 1 1 auto;
}

.lifenote-app-page .lifenote-note-list {
  flex: 1 1 auto;
}

.lifenote-app-page .lifenote-folder-button,
.lifenote-app-page .lifenote-note-button {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

.lifenote-app-page .lifenote-folder-button:hover,
.lifenote-app-page .lifenote-note-button:hover {
  background: rgba(37, 110, 168, 0.07);
}

.lifenote-app-page .lifenote-folder-button.is-active,
.lifenote-app-page .lifenote-note-button.is-active {
  border-color: rgba(37, 110, 168, 0.15);
  background: rgba(37, 110, 168, 0.11);
  box-shadow: inset 3px 0 0 #256ea8;
}

.lifenote-app-page .lifenote-folder-button {
  font-weight: 800;
}

.lifenote-app-page .lifenote-note-button strong {
  font-size: 0.9rem;
}

.lifenote-app-page .lifenote-note-button span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifenote-sidebar-tools {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(69, 103, 134, 0.2);
}

.lifenote-app-page .lifenote-folder-input,
.lifenote-app-page .lifenote-note-search-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border-radius: 8px;
  background: #ffffff;
}

.lifenote-app-page .lifenote-folder-actions-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 9px 0 0;
}

.lifenote-app-page #lifenote-delete-folder {
  grid-column: auto;
}

.lifenote-app-page .lifenote-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 110, 168, 0.5);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.lifenote-app-page .lifenote-small-button:hover,
.lifenote-app-page .lifenote-small-button:focus {
  background: rgba(37, 110, 168, 0.08);
}

.lifenote-app-page .lifenote-primary-action {
  border-color: #256ea8;
  background: #256ea8;
  color: #ffffff;
}

.lifenote-app-page .lifenote-primary-action:hover,
.lifenote-app-page .lifenote-primary-action:focus {
  background: #1d5c8e;
}

.lifenote-app-page .lifenote-danger-button {
  border-color: rgba(143, 56, 45, 0.34);
  background: transparent;
  color: #7f2f27;
}

.lifenote-app-page .lifenote-notes-heading {
  margin: 0 0 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(69, 103, 134, 0.17);
}

.lifenote-app-page .lifenote-note-actions-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 14px 0 0;
}

.lifenote-app-page .lifenote-note-actions-inline .lifenote-small-button {
  width: 100%;
}

.lifenote-app-page .lifenote-note-search-wrap {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lifenote-app-page .lifenote-note-search-status {
  min-height: 0;
  margin: 5px 0 0;
}

.lifenote-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lifenote-editor-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lifenote-editor-header .lifenote-app-kicker {
  margin: 0;
}

.lifenote-private-marker {
  color: #45647f;
  font-size: 0.76rem;
  font-weight: 850;
}

.lifenote-private-marker::before {
  content: "\2022";
  margin-right: 7px;
  color: #4c8e69;
}

.lifenote-app-page .lifenote-title-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 15px;
  padding: 4px 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(69, 103, 134, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
}

.lifenote-app-page .lifenote-title-input:focus {
  outline: none;
  border-bottom-color: #256ea8;
  box-shadow: none;
}

.lifenote-app-page .lifenote-textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 430px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
  resize: vertical;
}

.lifenote-app-page .lifenote-textarea:focus {
  outline: none;
  box-shadow: none;
}

.lifenote-editor-help {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(69, 103, 134, 0.16);
  color: var(--muted);
  font-size: 0.79rem;
}

.lifenote-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 20px;
  border-top: 1px solid rgba(69, 103, 134, 0.2);
  background: #f7f9fb;
}

.lifenote-app-footer p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.lifenote-app-footer strong {
  color: var(--ink);
}

.lifenote-app-footer a {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .lifenote-app-page .lifenote-shell {
    grid-template-columns: 205px 270px minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .lifenote-app-intro-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lifenote-app-trust {
    max-width: 620px;
  }

  .lifenote-app-page .lifenote-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .lifenote-app-page .lifenote-notes-panel {
    border-right: 0;
  }

  .lifenote-app-page .lifenote-editor {
    grid-column: 1 / -1;
    min-height: 540px;
    border-top: 1px solid rgba(69, 103, 134, 0.18);
  }
}

@media (max-width: 700px) {
  .lifenote-app-main {
    padding-bottom: 46px;
  }

  .lifenote-app-intro {
    padding-top: 30px;
  }

  .lifenote-app-intro-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .lifenote-guided-exercise-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .lifenote-guided-exercise-card .lifenote-small-button {
    width: 100%;
    white-space: normal;
  }

  .lifenote-app-toolbar,
  .lifenote-app-toolbar-actions,
  .lifenote-app-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lifenote-app-toolbar-actions {
    width: 100%;
  }

  .lifenote-app-page .lifenote-save-status {
    text-align: left;
  }

  .lifenote-app-page .lifenote-shell {
    grid-template-columns: 1fr;
  }

  .lifenote-app-page .lifenote-sidebar,
  .lifenote-app-page .lifenote-notes-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(69, 103, 134, 0.18);
  }

  .lifenote-app-page .lifenote-editor {
    grid-column: auto;
    border-top: 0;
  }

  .lifenote-app-page .lifenote-folder-list,
  .lifenote-app-page .lifenote-note-list {
    max-height: 320px;
  }

  .lifenote-app-footer a {
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .lifenote-app-page .lifenote-folder-actions-inline,
  .lifenote-app-page .lifenote-note-actions-inline {
    grid-template-columns: 1fr;
  }

  .lifenote-app-page #lifenote-delete-folder {
    grid-column: auto;
  }

  .lifenote-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .lifenote-move-button {
    width: 100%;
  }
}

/* A123-A3 LifeNote first-use orientation */
.lifenote-app-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(69, 103, 134, 0.2);
  background: #f7f9fb;
}

.lifenote-app-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 15px 18px;
}

.lifenote-app-guide-step:not(:last-child) {
  border-right: 1px solid rgba(69, 103, 134, 0.18);
}

.lifenote-app-guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(37, 110, 168, 0.38);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.lifenote-app-guide-step > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lifenote-app-guide-step strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.lifenote-app-guide-step div span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .lifenote-app-guide {
    grid-template-columns: 1fr;
  }

  .lifenote-app-guide-step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(69, 103, 134, 0.18);
  }
}

/* A123-A6R1 private discussion-draft workspace */
.lifenote-editor-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lifenote-app-page .lifenote-discussion-open-button {
  border-color: rgba(56, 112, 82, 0.48);
  color: #356f50;
}

.lifenote-discussion-panel[hidden] {
  display: none;
}

.lifenote-discussion-panel {
  border-top: 1px solid rgba(69, 103, 134, 0.22);
  background: #f8fafc;
}

.lifenote-discussion-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  background: #fff;
}

.lifenote-discussion-header h3,
.lifenote-discussion-preview-panel h4 {
  margin: 0;
}

.lifenote-discussion-header div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.lifenote-discussion-safety {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 14px 24px;
  border-top: 1px solid rgba(56, 112, 82, 0.18);
  border-bottom: 1px solid rgba(56, 112, 82, 0.18);
  background: rgba(226, 241, 232, 0.58);
  color: #436052;
  font-size: 0.82rem;
}

.lifenote-discussion-safety strong {
  color: #274c39;
}

.lifenote-discussion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
}

.lifenote-discussion-form,
.lifenote-discussion-preview-panel {
  min-width: 0;
  padding: 24px;
}

.lifenote-discussion-form {
  border-right: 1px solid rgba(69, 103, 134, 0.18);
  background: #fff;
}

.lifenote-discussion-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lifenote-discussion-form .journal-label {
  margin-top: 18px;
}

.lifenote-discussion-options .journal-label {
  margin-top: 0;
}

.lifenote-discussion-form .group-input,
.lifenote-discussion-form .journal-textarea,
.lifenote-discussion-preview {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
}

.lifenote-discussion-small {
  min-height: 88px;
}

.lifenote-discussion-message {
  min-height: 180px;
}

.lifenote-discussion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(69, 103, 134, 0.16);
}

.lifenote-discussion-review,
.lifenote-discussion-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.lifenote-discussion-preview {
  min-height: 430px;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.lifenote-discussion-copy {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 940px) {
  .lifenote-discussion-layout,
  .lifenote-discussion-safety {
    grid-template-columns: 1fr;
  }

  .lifenote-discussion-form {
    border-right: 0;
    border-bottom: 1px solid rgba(69, 103, 134, 0.18);
  }
}

@media (max-width: 700px) {
  .lifenote-editor-header-actions,
  .lifenote-discussion-header,
  .lifenote-discussion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lifenote-discussion-options {
    grid-template-columns: 1fr;
  }

  .lifenote-editor-header-actions .lifenote-small-button,
  .lifenote-discussion-header .lifenote-small-button,
  .lifenote-discussion-actions .lifenote-small-button {
    width: 100%;
  }
}

/* A122 Community Study Rooms prototype */
.study-rooms-page .study-rooms-hero .grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: start;
}

.study-rooms-hero-copy {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.study-room-organization-card {
  padding: 24px 26px;
}

.study-room-organization-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.study-room-organization-list {
  display: grid;
  gap: 0;
}

.study-room-organization-list > div {
  padding: 14px 0;
  border-top: 1px solid rgba(95, 152, 207, 0.26);
}

.study-room-organization-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.study-room-organization-list p {
  margin: 0;
  color: var(--muted);
}

.study-room-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.study-room-section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.study-room-section-heading p {
  margin-bottom: 0;
}

.official-room-disclaimer,
.member-room-safety-note,
.community-room-disclaimer {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(232, 244, 255, 0.78);
  color: var(--muted);
}

.room-source-label {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-study-rooms-section,
.community-study-rooms-section,
.how-study-rooms-section {
  padding-top: 28px;
}

.member-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.member-room-card,
.member-room-empty,
.member-room-summary-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-room-card::before,
.member-room-empty::before,
.member-room-summary-card::before {
  display: block;
  height: 4px;
  margin: -1.5rem -1.5rem 16px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--gold),
    transparent
  );
  content: "";
}

.member-room-action-card {
  border: 2px dashed rgba(37, 110, 168, 0.38);
  background: linear-gradient(
    135deg,
    rgba(232, 244, 255, 0.98),
    rgba(211, 231, 252, 0.84)
  );
}

.member-room-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.member-room-visibility {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.member-room-metadata {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.member-room-metadata div {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 0.64fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(95, 152, 207, 0.22);
}

.member-room-metadata dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.member-room-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.member-room-actions,
.create-group-actions,
.prototype-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.room-button-secondary {
  border: 1px solid rgba(37, 110, 168, 0.42);
  background: rgba(232, 244, 255, 0.88);
  color: var(--accent-dark);
  box-shadow: none;
}

.community-prototype-status {
  min-height: 1.4em;
  margin-top: 16px;
}

.create-study-room-section {
  padding-top: 28px;
}

.create-group-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.create-group-field-grid .journal-label {
  margin-top: 0;
}

.create-group-status {
  min-height: 1.4em;
  margin-top: 14px;
}

.room-lifecycle-list {
  margin: 0;
  padding-left: 1.2rem;
}

.room-lifecycle-list li + li {
  margin-top: 10px;
}

.prototype-review-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(37, 110, 168, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(232, 244, 255, 0.78);
}

.prototype-review-box h3 {
  margin-bottom: 8px;
}

.create-group-preview-actions {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .study-rooms-page .study-rooms-hero .grid,
  .study-room-section-heading,
  .member-room-grid,
  .create-group-field-grid {
    grid-template-columns: 1fr;
  }

  .study-room-organization-card {
    max-width: none;
  }

  .member-room-visibility {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .study-room-organization-card,
  .member-room-card,
  .member-room-empty,
  .member-room-summary-card {
    padding: 22px;
  }

  .member-room-card::before,
  .member-room-empty::before,
  .member-room-summary-card::before {
    margin-left: -22px;
    margin-right: -22px;
  }

  .member-room-card-header,
  .member-room-actions,
  .create-group-actions,
  .prototype-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .member-room-actions .room-button,
  .create-group-actions .journal-button,
  .create-group-actions .room-button,
  .prototype-review-actions .journal-button,
  .prototype-review-actions .room-button {
    width: 100%;
  }

  .member-room-metadata div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* A122-A3 Create Study Room layout repair */
.create-group-main-column {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.create-group-main-column > .create-group-form,
.create-group-main-column > .create-group-draft {
  margin: 0;
}

.create-group-main-column > .create-group-draft {
  min-height: 0;
}

.create-group-main-column .create-group-draft h2 {
  margin-bottom: 10px;
}

.create-group-main-column .create-group-draft > p:last-child {
  margin-bottom: 0;
}
/* A122-A4 Fill Create Study Room draft workspace */
@media (min-width: 981px) {
  .create-group-main-column {
    align-self: stretch;
    grid-template-rows: auto minmax(180px, 1fr);
  }

  .create-group-main-column > .create-group-draft {
    box-sizing: border-box;
    height: 100%;
    min-height: 180px;
  }
}
/* A123 Study Rooms expansion and spacing polish */
.study-rooms-page .study-rooms-hero {
  padding-bottom: 18px;
}

.study-rooms-page .official-study-rooms-section {
  padding-top: 18px;
  padding-bottom: 48px;
}

.study-rooms-page .member-study-rooms-section,
.study-rooms-page .community-study-rooms-section {
  padding-top: 8px;
  padding-bottom: 40px;
}

.study-rooms-page .how-study-rooms-section {
  padding-top: 8px;
  padding-bottom: 64px;
}

.study-rooms-page .study-room-section-heading {
  margin-bottom: 18px;
}

.study-rooms-page .room-directory,
.study-rooms-page .member-room-grid {
  gap: 18px;
}

.study-rooms-page .room-directory .room-card {
  padding: 24px;
  gap: 10px;
}

.study-rooms-page .member-room-grid > .member-room-empty:only-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.study-rooms-page .how-study-rooms-section .card {
  padding-top: 26px;
  padding-bottom: 26px;
}

@media (max-width: 980px) {
  .study-rooms-page .official-study-rooms-section,
  .study-rooms-page .member-study-rooms-section,
  .study-rooms-page .community-study-rooms-section {
    padding-bottom: 38px;
  }

  .study-rooms-page .how-study-rooms-section {
    padding-bottom: 52px;
  }
}

/* A124-A2 Individual Study Room right-rail scroll repair */
.study-room-page .room-right-rail > .sticky-panel {
  position: static;
  top: auto;
}

/* A125 Main Study Rooms spacing polish */
.study-rooms-page .study-rooms-hero {
  padding-bottom: 12px;
}

.study-rooms-page .official-study-rooms-section {
  padding-top: 12px;
  padding-bottom: 34px;
}

.study-rooms-page .member-study-rooms-section,
.study-rooms-page .community-study-rooms-section {
  padding-top: 0;
  padding-bottom: 28px;
}

.study-rooms-page .how-study-rooms-section {
  padding-top: 0;
  padding-bottom: 46px;
}

.study-rooms-page .study-room-section-heading {
  margin-bottom: 14px;
}

.study-rooms-page .member-room-grid > .member-room-empty:only-child {
  padding-top: 22px;
  padding-bottom: 22px;
}

.study-rooms-page .community-prototype-status:empty {
  display: none;
}

@media (max-width: 980px) {
  .study-rooms-page .official-study-rooms-section {
    padding-bottom: 30px;
  }

  .study-rooms-page .member-study-rooms-section,
  .study-rooms-page .community-study-rooms-section {
    padding-bottom: 26px;
  }

  .study-rooms-page .how-study-rooms-section {
    padding-bottom: 42px;
  }
}

/* A126 Study Rooms open-space repair */
@media (min-width: 981px) {
  .study-rooms-page .study-rooms-hero .grid {
    align-items: stretch;
  }

  .study-rooms-page .study-rooms-hero > .container.grid > aside.panel {
    align-self: stretch;
    box-sizing: border-box;
    height: 100%;
  }
}

.study-rooms-page .member-room-grid {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(300px, 100%), 1fr)
  );
}

@media (max-width: 980px) {
  .study-rooms-page .member-room-grid {
    grid-template-columns: 1fr;
  }
}

/* A130 Study Room three-column directory repair */
@media (min-width: 721px) and (max-width: 980px) {
  .study-rooms-page .room-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A131-A4-A1 internal Spanish translation-review boundary */
.localization-review-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding: 10px max(18px, calc((100% - 1120px) / 2));
  color: #3f3210;
  background: #fff4c7;
  border-bottom: 1px solid #d5be65;
  font-size: 0.92rem;
  line-height: 1.45;
}

.localization-review-banner strong {
  color: #2d2309;
}

[data-liken-release-status="internal-review"]
  :is(input, textarea, select, button):disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

/* A131-A4-A2 Spanish review layout and readability corrections */
.lifenote-bridge-inline {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(95, 152, 207, 0.42);
}

.lifenote-bridge-inline .eyebrow {
  margin-bottom: 14px;
}

[data-liken-release-status="internal-review"].lifenote-app-page textarea:disabled,
[data-liken-release-status="internal-review"].lifenote-app-page input:disabled {
  color: #52697d;
  background: #f8fafc;
  -webkit-text-fill-color: #52697d;
}

@media (min-width: 981px) {
  [lang="es"] .study-rooms-page .room-directory .room-card {
    padding: 20px;
    gap: 8px;
  }

  [lang="es"] .study-rooms-page .room-directory .room-card::before {
    margin-right: -20px;
    margin-left: -20px;
  }

[lang="es"] .study-rooms-page .room-directory .room-card > p {
    line-height: 1.48;
  }
}

/* Phase 6 launch-safe read-only Study Rooms */
.study-room-access-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(232, 244, 255, 0.72);
}

.study-room-access-shell .room-access,
.room-access-actions .room-button {
  margin: 0;
}

.study-room-retry {
  cursor: pointer;
  font: inherit;
}

.study-room-retry:focus-visible,
.read-only-room-content a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.room-card-available .room-access {
  background: rgba(221, 245, 231, 0.92);
  border-color: rgba(44, 130, 82, 0.24);
  color: #23623f;
}

.room-card-readiness_locked .room-access,
.room-card-readiness_paused .room-access,
.room-card-profile_unavailable .room-access,
.room-card-membership_required .room-access,
.room-access-checking {
  background: rgba(232, 244, 255, 0.88);
  color: var(--accent-dark);
}

.room-access-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.room-read-only-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(44, 130, 82, 0.28);
  border-radius: 999px;
  background: rgba(221, 245, 231, 0.86);
  color: #23623f;
  font-weight: 800;
}

.study-room-page[data-study-room-authorized="false"]
  .room-protected-section {
  display: none;
}

.study-room-page[data-study-room-authorized="true"]
  .room-protected-section {
  display: block;
  padding-top: 28px;
}

.read-only-room-content {
  display: grid;
  gap: 20px;
}

.read-only-room-section {
  overflow-wrap: anywhere;
}

.read-only-room-section h2 {
  margin-top: 0;
}

.read-only-room-section > :last-child {
  margin-bottom: 0;
}

#study-room-directory[hidden],
#study-room-protected-content[hidden],
.study-room-retry[hidden],
#study-room-copy[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .study-rooms-page .room-directory {
    grid-template-columns: 1fr;
  }

  .room-cover-card {
    padding: 22px;
  }

  .room-access-actions,
  .study-room-access-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .room-read-only-badge,
  .study-room-retry {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* A124 LifeNote recovery, Archive, and Trash */
.lifenote-recovery-panel {
  border-top: 1px solid #c6d9eb;
  padding: 1.5rem;
  background: #f8fbfe;
}

.lifenote-recovery-panel[hidden] {
  display: none;
}

.lifenote-recovery-header,
.lifenote-recovery-row,
.lifenote-recovery-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lifenote-recovery-header {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lifenote-recovery-header h3,
.lifenote-recovery-columns h4 {
  margin: 0;
}

.lifenote-recovery-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lifenote-recovery-columns > section {
  min-width: 0;
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.lifenote-recovery-columns h4 {
  margin-bottom: 0.75rem;
}

.lifenote-recovery-row {
  justify-content: space-between;
  border-top: 1px solid #e4edf5;
  padding: 0.8rem 0;
}

.lifenote-recovery-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.lifenote-recovery-row > div:first-child {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.lifenote-recovery-row span {
  color: #536f88;
  font-size: 0.88rem;
}

.lifenote-recovery-actions {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .lifenote-recovery-columns {
    grid-template-columns: 1fr;
  }

  .lifenote-recovery-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lifenote-recovery-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A132-A8 private scripture-profile choice */
.scripture-profile-selector {
  margin-top: 28px;
  color: var(--ink, #10263d);
}

.scripture-profile-selector fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(47, 126, 215, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 36px rgba(16, 54, 89, 0.1);
}

.scripture-profile-selector legend {
  padding: 0 8px;
  color: var(--ink, #10263d);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
}

.scripture-profile-intro,
.scripture-profile-privacy,
.scripture-profile-change-note,
.scripture-profile-status {
  margin: 0;
}

.scripture-profile-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #b7d3ee;
  border-radius: 14px;
  background: #f8fbff;
  cursor: pointer;
}

.scripture-profile-choice:hover {
  border-color: #438bd3;
  background: #f0f7ff;
}

.scripture-profile-choice:has(input:checked) {
  border-color: #1f6ca8;
  background: #e8f4ff;
  box-shadow: inset 4px 0 0 #1f6ca8;
}

.scripture-profile-choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: #1f6ca8;
}

.scripture-profile-choice > span {
  display: grid;
  gap: 4px;
}

.scripture-profile-choice strong {
  font-size: 1.03rem;
}

.scripture-profile-choice span span,
.scripture-profile-intro,
.scripture-profile-change-note {
  color: #456681;
}

.scripture-profile-help {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(229, 241, 252, 0.72);
}

.scripture-profile-help summary {
  color: #174f7f;
  font-weight: 700;
  cursor: pointer;
}

.scripture-profile-help p:last-child {
  margin-bottom: 0;
}

.scripture-profile-privacy {
  padding-left: 12px;
  border-left: 3px solid #73a9d9;
  font-size: 0.93rem;
}

.scripture-profile-status {
  color: #245f4a;
  font-weight: 700;
}

.scripture-profile-save-account {
  justify-self: start;
  width: auto;
}

@media (max-width: 560px) {
  .scripture-profile-selector fieldset {
    padding: 18px 14px;
  }
}

/* A132-A9 explicit, separately preserved profile comparison */
.scripture-profile-result-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: #174f7f;
}

.scripture-profile-comparison {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(47, 126, 215, 0.35);
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fbff, #edf6ff);
}

.scripture-profile-comparison[hidden],
.scripture-profile-result-label[hidden],
#life-story-comparison-result[hidden] {
  display: none;
}

.scripture-profile-comparison h3,
.scripture-profile-comparison h4,
.scripture-profile-comparison h5,
.scripture-profile-comparison p,
.scripture-profile-comparison dl {
  margin-top: 0;
}

.scripture-profile-comparison-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.scripture-profile-comparison-labels div {
  padding: 14px;
  border: 1px solid #c5dcf1;
  border-radius: 14px;
  background: #fff;
}

.scripture-profile-comparison-labels dt {
  color: #456681;
  font-size: 0.9rem;
  font-weight: 700;
}

.scripture-profile-comparison-labels dd {
  margin: 5px 0 0;
  color: var(--ink, #10263d);
  font-weight: 800;
}

.scripture-reference-comparison {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #c5dcf1;
}

.scripture-reference-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scripture-reference-comparison-grid > div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.scripture-reference-comparison-grid ul {
  margin-bottom: 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .scripture-profile-comparison-labels,
  .scripture-reference-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Production Study Rooms community */
.study-community-section {
  padding-block: clamp(42px, 7vw, 76px);
  background:
    radial-gradient(circle at 92% 8%, rgba(83, 148, 204, 0.12), transparent 36%),
    linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
  border-block: 1px solid rgba(65, 117, 155, 0.18);
}

.study-community-shell,
.study-community-experience,
.study-community-moderator,
.study-community-feed,
.study-community-thread,
.study-community-replies,
.study-community-notifications,
.study-community-form,
.study-community-field,
.study-community-review-queue {
  display: grid;
  gap: 14px;
}

.study-community-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.study-community-heading h2,
.study-community-heading p,
.study-community-card h3,
.study-community-card h4,
.study-community-card h5,
.study-community-card p {
  margin-top: 0;
}

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

.study-community-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(52, 113, 158, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 36px rgba(21, 64, 96, 0.08);
}

.study-community-profile-summary,
.study-community-row,
.study-community-review-row,
.study-community-post-meta,
.study-community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.study-community-profile-summary,
.study-community-row,
.study-community-review-row {
  justify-content: space-between;
}

.study-community-profile-summary > div {
  min-width: 0;
}

.study-community-field > span,
.study-community-check {
  color: #173f60;
  font-weight: 750;
}

.study-community-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #9ebed6;
  border-radius: 11px;
  background: #fff;
  color: #10263d;
  font: inherit;
}

textarea.study-community-input {
  min-height: 100px;
  resize: vertical;
}

.study-community-input:focus-visible,
.study-community-check input:focus-visible {
  outline: 3px solid rgba(35, 111, 170, 0.28);
  outline-offset: 2px;
  border-color: #236faa;
}

.study-community-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.study-community-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: #236faa;
}

.study-community-help,
.study-community-feedback {
  color: #456681;
  font-size: 0.94rem;
}

.study-community-feedback {
  min-height: 1.4em;
  margin-bottom: 0;
  font-weight: 700;
}

.room-button-following {
  border-color: #2d755f;
  background: #e8f7f1;
  color: #175440;
}

.room-button-danger {
  border-color: #a34b4b;
  background: #fff2f2;
  color: #7c2525;
}

.study-community-prompt {
  padding: 16px;
  border-left: 4px solid #4f8fbe;
  border-radius: 0 12px 12px 0;
  background: #f2f8fc;
  font-size: 1.05rem;
}

.study-community-prompt-room {
  color: #245f4a;
  font-weight: 800;
}

.study-community-notification,
.study-community-review-row {
  padding: 13px 0;
  border-top: 1px solid rgba(65, 117, 155, 0.18);
}

.study-community-notification:first-child,
.study-community-review-row:first-of-type {
  border-top: 0;
}

.study-community-notification.is-read {
  opacity: 0.68;
}

.study-community-text-link {
  display: inline-block;
  margin-right: 10px;
  color: #1d6398;
  font-weight: 750;
}

.study-community-composer {
  margin-top: 22px;
}

.study-community-feed {
  margin-top: 24px;
}

.study-community-post {
  padding: 18px;
  border-radius: 16px;
  box-shadow: none;
}

.study-community-post-meta {
  justify-content: flex-start;
  color: #557189;
  font-size: 0.88rem;
}

.study-community-post-text,
.study-community-review-detail blockquote {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.study-community-replies {
  margin-left: clamp(12px, 4vw, 52px);
  padding-left: clamp(10px, 3vw, 24px);
  border-left: 3px solid rgba(79, 143, 190, 0.3);
}

.study-community-inline-mount:empty {
  display: none;
}

.study-community-inline-form {
  margin-top: 14px;
  padding: 15px;
  border-radius: 13px;
  background: #f5f9fc;
}

.study-community-private-share-mount {
  margin-top: 18px;
}

.study-community-private-share {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(52, 113, 158, 0.24);
  border-radius: 14px;
  background: #f5f9fc;
}

.study-community-private-preview {
  max-height: 18rem;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(52, 113, 158, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #10263d;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.study-community-moderator-panel {
  margin-top: 24px;
  border-color: #c7a95f;
  background: #fffdf7;
}

.study-community-review-queue {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 112, 42, 0.24);
}

.study-community-review-detail {
  margin: 10px 0 18px;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
}

.study-community-review-detail blockquote {
  margin: 14px 0;
  padding: 13px 16px;
  border-left: 4px solid #c7a95f;
  background: #fffaf0;
}

@media (max-width: 760px) {
  .study-community-grid {
    grid-template-columns: 1fr;
  }

  .study-community-profile-summary,
  .study-community-row,
  .study-community-review-row {
    align-items: stretch;
    flex-direction: column;
  }

  .study-community-actions .room-button,
  .study-community-profile-summary .room-button,
  .study-community-row .room-button,
  .study-community-review-row .room-button {
    width: 100%;
  }

  .study-community-replies {
    margin-left: 6px;
    padding-left: 10px;
  }
}
