:root {
  --wine: #721538;
  --wine-dark: #4b0b25;
  --rose: #c53b73;
  --pink: #ef88b2;
  --blush: #fff1f6;
  --cream: #fffaf4;
  --gold: #d4a54c;
  --ink: #351728;
  --muted: #78596a;
  --paper: rgba(255, 255, 255, 0.88);
  --line: rgba(114, 21, 56, 0.13);
  --shadow: 0 22px 55px rgba(89, 13, 45, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(238, 121, 172, 0.23), transparent 30%),
    radial-gradient(circle at 92% 28%, rgba(212, 165, 76, 0.14), transparent 27%),
    linear-gradient(155deg, #fffafd 0%, #fff1f6 55%, #fffaf4 100%);
  font-family: var(--sans);
  font-size: 16px;
}

button, textarea, select { font: inherit; }
button { cursor: pointer; }

.petal {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(197, 59, 115, 0.12);
  border-radius: 70% 30% 60% 40%;
  transform: rotate(25deg);
}

.petal-one { top: -130px; left: -90px; }
.petal-two { right: -120px; bottom: 120px; transform: rotate(65deg); }

.app-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 30px 120px;
}

.campus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--wine);
  text-align: left;
  border: 0;
  background: transparent;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.crest {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 53px;
  color: #fff;
  background: linear-gradient(145deg, #9b2050, var(--wine-dark));
  border: 2px solid #f4d68a;
  border-radius: 23px 23px 30px 30px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 8px 18px rgba(92,15,47,.18);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.install-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  color: var(--wine);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(114,21,56,.16);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 760;
  box-shadow: 0 7px 20px rgba(83,16,44,.06);
}

.view { padding-top: 24px; animation: appear .35s ease; }
.view[hidden] { display: none; }

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  align-items: end;
  gap: 40px;
  margin: 12px auto 32px;
}

.section-intro.compact { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .19em;
}

h1, h2 {
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-weight: 600;
}

h1 { max-width: 670px; font-size: clamp(2rem, 5.2vw, 4.35rem); line-height: 1.01; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }

.intro-copy {
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.65;
}

.category-row {
  display: flex;
  gap: 9px;
  padding: 2px 2px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(114,21,56,.12);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 720;
}

.category-chip.active {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.affirmation-stage { max-width: 760px; margin: 0 auto; perspective: 1200px; }

.affirmation-card {
  position: relative;
  display: flex;
  min-height: 370px;
  padding: clamp(26px, 5vw, 54px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.95), rgba(255,248,251,.95)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(198,58,114,.035) 14px 15px);
  border: 1px solid rgba(114,21,56,.16);
  border-radius: 32px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  transition: transform .24s ease, opacity .24s ease, box-shadow .24s ease;
}

.affirmation-card::before,
.affirmation-card::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(212,165,76,.3);
  border-radius: 50%;
}
.affirmation-card::before { top: -52px; left: -48px; }
.affirmation-card::after { right: -48px; bottom: -52px; }

.affirmation-card.swipe-left { transform: translateX(-60px) rotate(-2deg); opacity: .15; }
.affirmation-card.swipe-right { transform: translateX(60px) rotate(2deg); opacity: .15; }
.affirmation-card:focus-visible { outline: 3px solid rgba(197,59,115,.4); outline-offset: 4px; }

.card-topline {
  position: absolute;
  top: 23px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.card-topline span:last-child { margin-left: auto; color: var(--muted); letter-spacing: .05em; }
.card-seal { color: var(--gold); font-size: 1rem; }

blockquote {
  max-width: 620px;
  margin: 16px 0 28px;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.13;
  letter-spacing: -.025em;
}

.recite-note {
  position: absolute;
  bottom: 23px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .92rem;
  font-style: italic;
}

.deck-controls { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 23px; }

.round-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 780;
}
.round-button {
  width: 46px;
  color: var(--wine);
  background: #fff;
  border: 1px solid rgba(114,21,56,.16);
  font-size: 1.1rem;
}
.swipe-hint { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: .79rem; }

.campus-note {
  display: flex;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 20px 22px;
  gap: 15px;
  background: linear-gradient(120deg, rgba(114,21,56,.96), rgba(148,29,75,.94));
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(88,12,44,.16);
}
.campus-note strong { font-family: var(--serif); font-size: 1.08rem; }
.campus-note p { margin: 5px 0 0; color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.5; }
.note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--wine);
  background: #f3d58a;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 800;
}

.pink-panel,
.journal-paper {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(23px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid rgba(114,21,56,.13);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.affirmation-form > label,
.journal-paper > label {
  display: block;
  margin-bottom: 11px;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 650;
}

textarea, select {
  width: 100%;
  color: var(--ink);
  background: #fffafd;
  border: 1px solid rgba(114,21,56,.17);
  border-radius: 16px;
  outline: 0;
}
textarea { padding: 17px; resize: vertical; line-height: 1.65; }
select { min-height: 46px; padding: 0 36px 0 13px; }
textarea:focus, select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(197,59,115,.09); }

.form-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 14px 0 18px; }
.select-label { display: grid; gap: 7px; width: min(100%, 260px); color: var(--muted); font-size: .82rem; font-weight: 760; }
.character-count { color: var(--muted); font-size: .8rem; }

.primary-button {
  min-height: 49px;
  padding: 0 21px;
  color: #fff;
  background: linear-gradient(120deg, var(--wine), #9c2050);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(114,21,56,.16);
}
.affirmation-form .primary-button { width: 100%; }

.form-message { min-height: 20px; margin: 10px 0 0; color: var(--rose); text-align: center; font-size: .85rem; }

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 760px;
  margin: 42px auto 17px;
  gap: 20px;
}
.list-heading .eyebrow { margin-bottom: 4px; }
.count-pill { padding: 7px 12px; color: var(--wine); background: rgba(255,255,255,.76); border: 1px solid rgba(114,21,56,.12); border-radius: 999px; font-size: .78rem; font-weight: 750; }

.affirmation-list,
.journal-list { display: grid; max-width: 760px; margin: 0 auto; gap: 12px; }

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.55);
  border: 1px dashed rgba(114,21,56,.2);
  border-radius: 20px;
  line-height: 1.55;
}

.saved-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(114,21,56,.11);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(91,18,48,.05);
}
.saved-card p { margin: 5px 0 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; }
.saved-card small { color: var(--rose); font-size: .71rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.delete-button { flex: 0 0 auto; padding: 7px 10px; color: var(--muted); background: transparent; border: 0; font-size: .82rem; font-weight: 720; }
.delete-button:hover { color: #a01848; }

.journal-paper {
  background:
    linear-gradient(90deg, transparent 58px, rgba(197,59,115,.12) 58px, rgba(197,59,115,.12) 60px, transparent 60px),
    repeating-linear-gradient(#fffefc 0, #fffefc 38px, rgba(114,21,56,.075) 39px);
}
.journal-date-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; padding-left: 39px; color: var(--muted); font-size: .83rem; font-weight: 720; }
.prompt-button { color: var(--wine); background: #fff; border: 1px solid rgba(114,21,56,.14); border-radius: 999px; padding: 8px 12px; font-size: .78rem; font-weight: 750; }
.journal-paper > label { padding-left: 39px; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.35; }
.journal-paper textarea { min-height: 280px; padding: 7px 10px 7px 39px; background: transparent; border: 0; border-radius: 0; line-height: 39px; }
.journal-paper textarea:focus { box-shadow: none; }
.journal-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-left: 39px; }
.journal-actions > span { color: var(--muted); font-size: .78rem; }

.journal-entry-card { display: grid; gap: 10px; padding: 20px; background: rgba(255,255,255,.78); border: 1px solid rgba(114,21,56,.11); border-radius: 18px; }
.journal-entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.journal-entry-top time { color: var(--rose); font-size: .75rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.journal-entry-card strong { font-family: var(--serif); font-size: 1.04rem; }
.journal-entry-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); line-height: 1.6; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  width: min(calc(100% - 28px), 540px);
  padding: 7px;
  gap: 5px;
  transform: translateX(-50%);
  background: rgba(70,8,33,.94);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(56,5,27,.3);
  backdrop-filter: blur(16px);
}

.nav-button {
  display: flex;
  flex: 1;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255,255,255,.65);
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 760;
}
.nav-button > span:first-child { font-size: 1rem; }
.nav-button.active { color: var(--wine-dark); background: linear-gradient(140deg, #fff5fa, #f3d78e); }

.install-dialog {
  width: min(calc(100% - 30px), 460px);
  padding: 35px;
  color: var(--ink);
  background: #fffafd;
  border: 1px solid rgba(114,21,56,.15);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(61,5,28,.3);
}
.install-dialog::backdrop { background: rgba(50,7,24,.48); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; color: var(--muted); background: transparent; border: 0; font-size: 1.6rem; }
.dialog-crest { margin-bottom: 18px; }
.install-dialog h2 { margin-bottom: 14px; }
.install-dialog p, .install-dialog li { color: var(--muted); line-height: 1.6; }
.install-dialog ol { padding-left: 22px; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 94px;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  color: #fff;
  background: var(--wine-dark);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(61,5,28,.24);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: .25s ease;
  font-size: .85rem;
  font-weight: 720;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .app-shell { padding: 0 17px 116px; }
  .campus-header { min-height: 84px; }
  .brand strong { font-size: 1.06rem; }
  .brand small { font-size: .63rem; }
  .crest { flex-basis: 43px; width: 43px; height: 47px; }
  .install-button { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .install-button span { font-size: 1.2rem; }
  .section-intro { grid-template-columns: 1fr; gap: 14px; margin: 8px 1px 24px; }
  h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .intro-copy { max-width: 540px; }
  .view { padding-top: 12px; }
  .affirmation-card { min-height: 390px; border-radius: 26px; }
  blockquote { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  .campus-note { padding: 18px; }
  .form-row { align-items: center; }
  .journal-paper { padding: 23px 17px; background: repeating-linear-gradient(#fffefc 0, #fffefc 38px, rgba(114,21,56,.075) 39px); }
  .journal-date-row, .journal-paper > label, .journal-paper textarea, .journal-actions { padding-left: 0; }
  .journal-actions { align-items: flex-end; }
  .save-entry { padding: 0 15px; }
}

@media (max-width: 420px) {
  .nav-button { flex-direction: column; gap: 2px; font-size: .68rem; }
  .saved-card { padding: 16px; }
  .form-row { align-items: stretch; flex-direction: column; }
  .select-label { width: 100%; }
  .character-count { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Pretti University royal pink and gold theme */
:root {
  --wine: #d23d84;
  --wine-dark: #8d3f63;
  --rose: #df4f91;
  --pink: #f59bc1;
  --blush: #ffe8f0;
  --cream: #fff9f5;
  --gold: #c88b28;
  --gold-light: #f8d889;
  --ink: #63344d;
  --muted: #8e6679;
  --paper: rgba(255, 250, 252, 0.9);
  --line: rgba(202, 133, 34, 0.2);
  --shadow: 0 24px 60px rgba(186, 61, 119, 0.16);
}

body {
  background:
    radial-gradient(circle at 13% 9%, rgba(255,255,255,.86), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(248,216,137,.28), transparent 27%),
    radial-gradient(circle at 55% 78%, rgba(245,155,193,.25), transparent 34%),
    linear-gradient(155deg, #fff8fb 0%, #ffe8f0 51%, #fff3f6 100%);
}

.petal {
  border-color: rgba(200,139,40,.24);
  box-shadow: inset 0 0 0 10px rgba(245,155,193,.06);
}

.campus-header {
  min-height: 118px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(200,139,40,.22);
}

.brand { gap: 15px; }

.brand-crest {
  display: block;
  width: 104px;
  height: 82px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 8px 10px rgba(169,91,36,.13));
}

.brand strong {
  color: #a64872;
  font-size: 1.34rem;
}

.brand small { color: #a1744a; }

.install-button {
  color: #9b4b6e;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,230,241,.88));
  border: 1px solid rgba(200,139,40,.36);
  box-shadow: 0 8px 23px rgba(184,83,128,.1), inset 0 1px 0 #fff;
}

.eyebrow { color: #b57724; }

h1, h2 { color: #98436b; }

.category-chip {
  color: #936478;
  background: rgba(255,255,255,.78);
  border-color: rgba(200,139,40,.23);
  box-shadow: inset 0 1px 0 #fff;
}

.category-chip.active {
  color: #74441a;
  background: linear-gradient(145deg, #ffe9f2, #f5c65e);
  border-color: #c98a27;
  box-shadow: 0 6px 17px rgba(196,128,31,.18), inset 0 1px 0 rgba(255,255,255,.75);
}

.affirmation-stage { max-width: 780px; }

.affirmation-card {
  min-height: 390px;
  background:
    linear-gradient(rgba(255,248,251,.94), rgba(255,232,241,.96)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(200,139,40,.05) 14px 15px);
  border: 2px solid #d4a347;
  box-shadow:
    0 0 0 5px rgba(255,249,251,.95),
    0 0 0 7px rgba(239,130,175,.5),
    0 24px 62px rgba(172,60,111,.19),
    inset 0 0 30px rgba(255,255,255,.72);
}

.affirmation-card::before,
.affirmation-card::after {
  width: 116px;
  height: 116px;
  border: 2px solid rgba(200,139,40,.42);
  box-shadow: 0 0 0 7px rgba(245,155,193,.08);
}

.card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 470px);
  height: 78%;
  object-fit: contain;
  opacity: .045;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-topline { color: #af7425; }
.card-seal { color: #d49a32; text-shadow: 0 1px 0 #fff; }
blockquote { position: relative; color: #833b5d; text-shadow: 0 1px 0 #fff; }
.recite-note { color: #a06c81; }

.round-button {
  color: #a34470;
  background: linear-gradient(#fff, #fff0f6);
  border-color: rgba(200,139,40,.34);
  box-shadow: 0 8px 18px rgba(173,69,117,.1);
}

.read-button,
.primary-button {
  color: #714414;
  background: linear-gradient(135deg, #ffdcef 0%, #ef87b3 48%, #f6d574 100%);
  border: 1px solid #c98a27;
  box-shadow: 0 11px 26px rgba(191,85,132,.2), inset 0 1px 0 rgba(255,255,255,.85);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}


.campus-note {
  color: #6f3e18;
  background:
    linear-gradient(118deg, rgba(255,232,241,.97), rgba(247,199,221,.95)),
    #ffe8f0;
  border: 1px solid #d2a048;
  box-shadow: 0 18px 42px rgba(183,71,121,.13), inset 0 1px 0 #fff;
}
.campus-note strong { color: #9b416c; }
.campus-note p { color: #8b5d72; }
.note-icon {
  color: #fff8fa;
  background: linear-gradient(145deg, #ed7cad, #c88925);
  border: 1px solid #bd7e20;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}

.pink-panel,
.journal-paper {
  border: 2px solid rgba(200,139,40,.36);
  box-shadow: 0 0 0 5px rgba(255,255,255,.62), var(--shadow);
}

textarea, select { border-color: rgba(200,139,40,.28); }
textarea:focus, select:focus { border-color: #df5b96; box-shadow: 0 0 0 4px rgba(239,119,170,.12); }

.saved-card,
.journal-entry-card {
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,235,243,.8));
  border-color: rgba(200,139,40,.26);
}

.saved-card small,
.journal-entry-top time { color: #b07824; }

.count-pill {
  color: #9e466e;
  border-color: rgba(200,139,40,.26);
  background: rgba(255,250,252,.82);
}

.journal-paper {
  background:
    linear-gradient(90deg, transparent 58px, rgba(225,92,149,.15) 58px, rgba(225,92,149,.15) 60px, transparent 60px),
    repeating-linear-gradient(#fffafd 0, #fffafd 38px, rgba(200,139,40,.10) 39px);
}

.bottom-nav {
  background: linear-gradient(125deg, rgba(234,104,158,.96), rgba(244,148,188,.96));
  border: 1px solid #d8a84b;
  box-shadow: 0 18px 46px rgba(167,55,106,.28), inset 0 1px 0 rgba(255,255,255,.5);
}

.nav-button { color: rgba(255,255,255,.86); }
.nav-button.active {
  color: #774317;
  background: linear-gradient(140deg, #fff8fb, #f5cf77);
  box-shadow: 0 5px 15px rgba(142,73,26,.15), inset 0 1px 0 #fff;
}

.install-dialog {
  background: linear-gradient(155deg, #fffafd, #ffe6f0);
  border: 2px solid #d2a047;
}

.dialog-crest,
.crest {
  color: #fff;
  background: linear-gradient(145deg, #ed78aa, #bd7922);
  border-color: #f5d983;
}

.toast { background: linear-gradient(120deg, #c33d7b, #9c4f68); }

@media (max-width: 720px) {
  .campus-header { min-height: 101px; padding-top: 8px; }
  .brand { gap: 8px; }
  .brand-crest { width: 78px; height: 66px; border-radius: 12px; }
  .brand strong { font-size: 1.03rem; }
  .brand small { color: #aa7a43; }
  .affirmation-card { min-height: 405px; }
  .journal-paper {
    background: repeating-linear-gradient(#fffafd 0, #fffafd 38px, rgba(200,139,40,.10) 39px);
  }
}

@media (max-width: 390px) {
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .55rem; }
  .brand-crest { width: 68px; height: 58px; }
}

/* Grouped campus destinations, accessible puzzle boards, and full comic reader. */
.directory-groups { display: grid; gap: 30px; }
.directory-group { min-width: 0; }
.directory-group h3 { color: #85324e; font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; border-bottom: 1px solid #d9b971; padding-bottom: 10px; }
.directory-group .campus-directory, .directory-group .menu-grid { margin: 0; }
.word-board-scroll { min-width: 0; max-width: 100%; overflow-x: auto; padding: 5px 0 14px; }
.word-search-layout { min-width: 0; grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr); }
.word-letter { min-height: 32px; font-family: sans-serif; font-size: 14px; padding: 0; }
.puzzle-picker { display: grid; gap: 8px; color: #78334f; font-weight: 700; margin: 20px 0 10px; }
.puzzle-picker select, .comic-toolbar select { padding: 12px; border: 1px solid #bc8b9e; border-radius: 12px; background: #fff9f9; color: #683044; font: inherit; max-width: 100%; min-width: 0; }
.puzzle-reward { background: #fff5df; border: 2px solid #d3af62; border-radius: 20px; padding: 24px; margin-top: 24px; }
.puzzle-reward h3 { font-family: var(--serif); color: #85324e; font-size: 1.6rem; }
#puzzleRewardCode { overflow-wrap: anywhere; }
.puzzle-reward a { display: inline-flex; text-decoration: none; padding: 14px 20px; margin: 10px 0; }
.comic-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comic-toolbar label { display: flex; align-items: center; gap: 10px; }
.comic-reader { background: #412039; border: 2px solid #d3af62; border-radius: 20px; padding: 12px; overflow: auto; max-width: 100%; max-height: 85vh; }
.comic-reader img { display: block; width: 100%; max-width: 850px; height: auto; margin: auto; }
.comic-reader.is-enlarged img { width: 1275px; max-width: none; }
.comic-toolbar button:disabled { opacity: .45; cursor: default; }
@media (max-width: 700px) {
 .word-search-layout { grid-template-columns: minmax(0,1fr); }
 .comic-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
 .comic-toolbar label { grid-column: 1 / -1; grid-row: 1; }
 .comic-reader { padding: 5px; border-radius: 12px; }
 .puzzle-reward { padding: 18px; }
}

/* Glossy three-dimensional campus experience */
.dimension-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.float-heart,
.float-spark {
  position: absolute;
  color: #f58fbc;
  text-shadow:
    0 2px 0 #fff,
    0 5px 9px rgba(206, 70, 132, .25),
    0 0 18px rgba(255, 255, 255, .9);
  animation: candy-float 7s ease-in-out infinite;
}

.float-heart {
  padding: 7px 11px 10px;
  background: linear-gradient(145deg, #fff5fa 4%, #ffabd0 48%, #e86ba3 100%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow:
    inset 5px 7px 9px rgba(255,255,255,.75),
    inset -6px -8px 10px rgba(185,53,113,.17),
    0 9px 17px rgba(193,62,122,.2);
  font-size: 1.2rem;
}

.heart-one { top: 24%; left: 3%; transform: rotate(-14deg); }
.heart-two { right: 4%; bottom: 26%; transform: rotate(12deg); animation-delay: -3s; }
.spark-one { top: 15%; right: 12%; font-size: 2rem; }
.spark-two { left: 8%; bottom: 17%; font-size: 1.5rem; animation-delay: -2s; }
.spark-three { right: 18%; bottom: 8%; font-size: 1rem; animation-delay: -4s; }

@keyframes candy-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 5deg; }
}

.brand-logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 4px;
  background: linear-gradient(145deg, #fff 0%, #ffd6e8 42%, #f3b748 100%);
  border: 1px solid #e3af4f;
  border-radius: 22px;
  box-shadow:
    inset 5px 5px 8px rgba(255,255,255,.9),
    inset -5px -6px 10px rgba(197,93,133,.15),
    0 9px 0 #c88129,
    0 15px 22px rgba(166,69,107,.2);
  transform: translateY(-4px);
}

.brand-logo-shell::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 15%;
  width: 54%;
  height: 18%;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.05));
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.brand-crest { border-radius: 18px; }

.brand strong {
  text-shadow: 0 2px 0 #fff, 0 5px 9px rgba(186,70,121,.13);
}

.install-button,
.category-chip,
.round-button,
.read-button,
.primary-button,
.prompt-button,
.count-pill {
  position: relative;
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.install-button {
  box-shadow:
    inset 3px 4px 5px rgba(255,255,255,.9),
    inset -3px -4px 6px rgba(207,74,133,.09),
    0 5px 0 #dda34d,
    0 10px 18px rgba(175,68,116,.13);
  transform: translateY(-2px);
}

.category-chip {
  box-shadow:
    inset 2px 3px 4px rgba(255,255,255,.92),
    inset -2px -3px 5px rgba(215,90,144,.08),
    0 4px 0 rgba(210,158,70,.55),
    0 8px 13px rgba(170,65,111,.09);
  transform: translateY(-2px);
}

.category-chip.active {
  box-shadow:
    inset 3px 4px 5px rgba(255,255,255,.78),
    inset -4px -5px 7px rgba(198,108,24,.13),
    0 6px 0 #bd7723,
    0 12px 20px rgba(181,97,35,.2);
  transform: translateY(-4px);
}

.affirmation-stage {
  position: relative;
  padding: 13px 12px 19px;
  transform-style: preserve-3d;
}

.affirmation-stage::before,
.affirmation-stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 5%;
  right: 5%;
  height: 100%;
  border: 2px solid rgba(214,151,47,.7);
  border-radius: 36px;
}

.affirmation-stage::before {
  top: 17px;
  background: linear-gradient(145deg, #f9b5d1, #dc5d98);
  box-shadow: 0 17px 0 #b34575, 0 28px 40px rgba(157,51,99,.22);
}

.affirmation-stage::after {
  z-index: -1;
  top: 8px;
  left: 3%;
  right: 3%;
  background: linear-gradient(145deg, #ffe9f2, #ef96bd);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75);
}

.affirmation-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(12px);
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 19% 15%, rgba(255,255,255,.96) 0 4%, transparent 13%),
    linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(255,228,240,.97) 48%, rgba(247,168,201,.96) 100%);
  border: 3px solid #e2ad4a;
  box-shadow:
    inset 8px 10px 17px rgba(255,255,255,.9),
    inset -12px -14px 22px rgba(202,70,130,.12),
    0 0 0 5px rgba(255,244,249,.96),
    0 0 0 8px #ef8ab5,
    0 9px 0 #ca3f7e,
    0 16px 0 #a86a21,
    0 32px 53px rgba(159,47,98,.28);
  transition: transform .18s ease, opacity .24s ease, box-shadow .22s ease;
}

.affirmation-card:hover {
  box-shadow:
    inset 8px 10px 17px rgba(255,255,255,.95),
    inset -12px -14px 22px rgba(202,70,130,.12),
    0 0 0 5px rgba(255,244,249,.96),
    0 0 0 8px #f39cc0,
    0 11px 0 #ca3f7e,
    0 19px 0 #a86a21,
    0 38px 64px rgba(159,47,98,.31);
}

.affirmation-card.swipe-left { transform: perspective(1100px) translateX(-60px) rotateY(-9deg) rotateZ(-2deg); }
.affirmation-card.swipe-right { transform: perspective(1100px) translateX(60px) rotateY(9deg) rotateZ(2deg); }

.card-gloss {
  position: absolute;
  z-index: 0;
  top: -7%;
  left: 8%;
  width: 67%;
  height: 33%;
  background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(255,255,255,.06) 67%);
  border-radius: 50%;
  transform: rotate(-5deg) translateZ(25px);
  filter: blur(.3px);
  pointer-events: none;
}

.card-watermark { transform: translate(-50%, -50%) translateZ(4px); opacity: .06; }
.card-topline { transform: translateZ(35px); }
blockquote { transform: translateZ(42px); }
.recite-note { transform: translateZ(32px); }

.card-seal {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff7d6;
  background: radial-gradient(circle at 32% 25%, #fff3af, #dc9b2d 48%, #9f6115 100%);
  border: 1px solid #fff4bd;
  border-radius: 50%;
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.8), 0 4px 7px rgba(143,84,19,.25);
}

.round-button {
  border-width: 2px;
  box-shadow:
    inset 4px 5px 6px rgba(255,255,255,.95),
    inset -4px -5px 8px rgba(207,73,132,.1),
    0 6px 0 #d0953b,
    0 12px 20px rgba(177,67,116,.15);
  transform: translateY(-3px);
}

.read-button,
.primary-button {
  overflow: hidden;
  box-shadow:
    inset 4px 5px 7px rgba(255,255,255,.72),
    inset -5px -6px 9px rgba(178,77,19,.12),
    0 7px 0 #b96c22,
    0 14px 24px rgba(180,67,117,.22);
  transform: translateY(-4px);
}

.read-button::after,
.primary-button::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 12%;
  width: 56%;
  height: 28%;
  background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,0));
  border-radius: 999px;
  pointer-events: none;
}

.install-button:active,
.category-chip:active,
.round-button:active,
.read-button:active,
.primary-button:active,
.prompt-button:active {
  transform: translateY(3px);
  filter: saturate(1.08);
  box-shadow: inset 3px 4px 7px rgba(151,48,92,.12), 0 2px 0 #b67422;
}

.campus-note,
.pink-panel,
.journal-paper,
.saved-card,
.journal-entry-card {
  position: relative;
  box-shadow:
    inset 6px 7px 12px rgba(255,255,255,.82),
    inset -7px -8px 13px rgba(204,75,133,.08),
    0 7px 0 rgba(210,143,45,.72),
    0 18px 34px rgba(175,62,113,.14);
  transform: translateY(-3px);
}

.campus-note::after,
.pink-panel::after,
.journal-paper::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6%;
  width: 38%;
  height: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,0));
  border-radius: 999px;
  pointer-events: none;
}

.bottom-nav {
  box-shadow:
    inset 5px 6px 8px rgba(255,255,255,.48),
    inset -6px -7px 10px rgba(166,45,102,.18),
    0 8px 0 #b66d24,
    0 20px 42px rgba(153,44,94,.31);
  transform: translateX(-50%) translateY(-4px);
}

.nav-button {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-button.active {
  box-shadow:
    inset 4px 5px 6px rgba(255,255,255,.9),
    inset -3px -4px 6px rgba(203,123,35,.12),
    0 5px 0 #b97a27,
    0 10px 18px rgba(131,53,44,.17);
  transform: translateY(-4px);
}

.install-dialog {
  box-shadow:
    inset 8px 10px 15px rgba(255,255,255,.8),
    inset -9px -11px 17px rgba(199,68,128,.09),
    0 9px 0 #bb7624,
    0 35px 90px rgba(119,34,73,.36);
}

@media (max-width: 720px) {
  .brand-logo-shell { border-radius: 17px; box-shadow: inset 4px 4px 7px rgba(255,255,255,.9), inset -4px -5px 8px rgba(197,93,133,.14), 0 6px 0 #c88129, 0 11px 17px rgba(166,69,107,.18); }
  .brand-crest { border-radius: 14px; }
  .affirmation-stage { padding: 11px 8px 18px; }
  .affirmation-stage::before { top: 14px; box-shadow: 0 13px 0 #b34575, 0 22px 34px rgba(157,51,99,.21); }
  .affirmation-card { box-shadow: inset 7px 9px 15px rgba(255,255,255,.9), inset -10px -12px 19px rgba(202,70,130,.11), 0 0 0 4px rgba(255,244,249,.96), 0 0 0 7px #ef8ab5, 0 8px 0 #ca3f7e, 0 14px 0 #a86a21, 0 27px 42px rgba(159,47,98,.25); }
  .float-heart { opacity: .66; transform: scale(.75); }
  .spark-one { right: 4%; }
  .heart-one { left: -7px; }
  .heart-two { right: -4px; }
  .bottom-nav { bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (hover: none) {
  .affirmation-card:hover { box-shadow: inset 7px 9px 15px rgba(255,255,255,.9), inset -10px -12px 19px rgba(202,70,130,.11), 0 0 0 4px rgba(255,244,249,.96), 0 0 0 7px #ef8ab5, 0 8px 0 #ca3f7e, 0 14px 0 #a86a21, 0 27px 42px rgba(159,47,98,.25); }
}

/* Main Campus */
.app-shell { width: min(100%, 1200px); }

.campus-view { padding-top: 18px; }

.campus-scene {
  --campus-x: 0px;
  --campus-y: 0px;
  --campus-rx: 0deg;
  --campus-ry: 0deg;
  position: relative;
  margin: 5px auto 72px;
  padding: 10px 10px 0;
  perspective: 1400px;
}

.campus-frame {
  position: relative;
  aspect-ratio: 16 / 8.9;
  overflow: hidden;
  background: #ef8fb8;
  border: 4px solid #e4b657;
  border-radius: 42px;
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,.88),
    inset 0 -14px 26px rgba(158,44,95,.14),
    0 0 0 8px #f3a8c7,
    0 11px 0 #c94581,
    0 19px 0 #a8681e,
    0 36px 60px rgba(135,39,81,.3);
  transform: perspective(1400px) rotateX(var(--campus-rx)) rotateY(var(--campus-ry));
  transform-style: preserve-3d;
  transition: transform .24s ease, box-shadow .24s ease;
}

.campus-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 8%;
  width: 60%;
  height: 14%;
  background: linear-gradient(105deg, rgba(255,255,255,.76), rgba(255,255,255,.04));
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.campus-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 45%, rgba(91,21,54,.24) 100%),
    radial-gradient(circle at 50% 45%, transparent 50%, rgba(88,23,55,.12) 100%);
  pointer-events: none;
}

.campus-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--campus-x), var(--campus-y)) scale(1.045) translateZ(1px);
  transition: transform .35s ease;
}

.campus-sun-glow {
  position: absolute;
  z-index: 2;
  top: -60px;
  right: 3%;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(255,255,255,.58), rgba(255,219,148,.2) 36%, transparent 70%);
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: sun-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sun-pulse {
  0%, 100% { scale: .94; opacity: .72; }
  50% { scale: 1.08; opacity: 1; }
}

.campus-scene-copy {
  position: absolute;
  z-index: 5;
  left: 32px;
  bottom: 30px;
  width: min(440px, calc(100% - 64px));
  padding: 23px 25px 25px;
  color: #fff;
  text-align: left;
  background: linear-gradient(145deg, rgba(181,49,106,.83), rgba(113,34,70,.76));
  border: 1px solid rgba(255,224,153,.88);
  border-radius: 25px;
  box-shadow:
    inset 5px 6px 9px rgba(255,255,255,.22),
    inset -6px -7px 10px rgba(81,16,44,.18),
    0 8px 0 rgba(137,77,23,.78),
    0 18px 34px rgba(76,16,44,.34);
  backdrop-filter: blur(10px);
  transform: translateZ(58px);
}

.campus-kicker {
  margin: 0 0 4px;
  color: #ffe29c;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .22em;
}

.campus-scene-copy h1 {
  margin: 0;
  color: #fffaf7;
  font-size: clamp(2.2rem, 5.7vw, 4.7rem);
  line-height: .95;
  text-shadow: 0 3px 0 #a5631c, 0 8px 17px rgba(61,8,30,.42);
}

.campus-subtitle {
  margin: 8px 0 19px;
  color: #ffe8f2;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.campus-enter-button {
  min-height: 46px;
  padding: 0 18px;
  color: #7a4313;
  background: linear-gradient(145deg, #fffaf5 0%, #ffd8e8 42%, #f5c75d 100%);
  border: 1px solid #f9dc90;
  border-radius: 999px;
  box-shadow:
    inset 3px 4px 5px rgba(255,255,255,.9),
    inset -4px -5px 7px rgba(171,86,18,.12),
    0 6px 0 #aa651b,
    0 12px 18px rgba(52,8,26,.28);
  font-weight: 850;
  transform: translateY(-3px);
  transition: transform .17s ease, box-shadow .17s ease;
}

.campus-enter-button:active { transform: translateY(3px); box-shadow: inset 3px 4px 6px rgba(143,68,11,.14), 0 2px 0 #aa651b; }

.campus-plaque {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: -39px;
  display: flex;
  min-height: 59px;
  width: min(650px, 76%);
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 20px;
  color: #8b5018;
  text-align: center;
  background: linear-gradient(180deg, #fffdf8 0%, #ffe5ef 54%, #eeb8cd 100%);
  border: 2px solid #dca844;
  border-radius: 18px 18px 30px 30px;
  box-shadow:
    inset 5px 6px 8px rgba(255,255,255,.9),
    inset -5px -6px 9px rgba(191,79,128,.13),
    0 7px 0 #b97120,
    0 14px 27px rgba(135,43,83,.25);
  transform: translateX(-50%);
}

.campus-plaque strong { font-family: var(--serif); font-size: clamp(.92rem, 2.2vw, 1.25rem); letter-spacing: .035em; }
.campus-plaque span { color: #d99e35; text-shadow: 0 1px 0 #fff; }

.campus-welcome {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 42px;
  margin: 0 5px 22px;
}

.campus-welcome p:last-child { margin: 0 0 3px; color: var(--muted); line-height: 1.6; }

.campus-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 2px 3px 24px;
}

.destination-card {
  position: relative;
  display: grid;
  min-height: 205px;
  padding: 23px;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 15px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,225,238,.94));
  border: 2px solid #dda748;
  border-radius: 28px;
  box-shadow:
    inset 6px 7px 10px rgba(255,255,255,.9),
    inset -7px -8px 12px rgba(196,69,127,.1),
    0 8px 0 #c94e84,
    0 14px 0 #a76920,
    0 25px 36px rgba(154,49,96,.18);
  transform: translateY(-5px);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.destination-card::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 12%;
  width: 58%;
  height: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,0));
  border-radius: 999px;
}

.destination-card:hover {
  filter: saturate(1.06);
  transform: translateY(-11px) rotateX(2deg);
  box-shadow:
    inset 6px 7px 10px rgba(255,255,255,.94),
    inset -7px -8px 12px rgba(196,69,127,.1),
    0 11px 0 #c94e84,
    0 18px 0 #a76920,
    0 32px 42px rgba(154,49,96,.23);
}

.destination-card:active { transform: translateY(3px); box-shadow: inset 4px 5px 8px rgba(170,55,104,.12), 0 3px 0 #ad6d21; }

.destination-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff7dc;
  background: radial-gradient(circle at 30% 23%, #ffd9ea 0%, #e870a5 45%, #b55d1c 100%);
  border: 2px solid #f6d476;
  border-radius: 50%;
  box-shadow: inset 4px 5px 7px rgba(255,255,255,.5), inset -4px -5px 7px rgba(130,40,79,.15), 0 6px 8px rgba(141,58,31,.23);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 800;
}

.destination-copy { display: grid; align-content: start; gap: 5px; }
.destination-copy small { color: #b07825; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.destination-copy strong { color: #974168; font-family: var(--serif); font-size: 1.35rem; line-height: 1.12; }
.destination-copy > span { color: var(--muted); font-size: .89rem; line-height: 1.48; }

.destination-arrow {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: #874713;
  background: linear-gradient(145deg, #fff8fb, #f4cd71);
  border: 1px solid #dda749;
  border-radius: 50%;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.8), 0 4px 0 #b67121;
  font-weight: 900;
}

.declaration-destination { background: linear-gradient(145deg, rgba(255,250,252,.97), rgba(251,211,230,.95)); }
.journal-destination { background: linear-gradient(145deg, rgba(255,252,247,.98), rgba(255,229,238,.95)); }
.devotion-destination { background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(255,218,235,.96)); }
.stories-destination { background: linear-gradient(145deg, rgba(255,249,252,.98), rgba(255,205,226,.96)); }
.bottom-nav { width: min(calc(100% - 28px), 650px); }

@media (max-width: 800px) {
  .campus-directory { grid-template-columns: 1fr; gap: 20px; }
  .destination-card { min-height: 150px; }
  .campus-welcome { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  .campus-view { padding-top: 9px; }
  .campus-scene { margin-bottom: 64px; padding: 7px 5px 0; }
  .campus-frame { aspect-ratio: 4 / 5; border-radius: 31px; border-width: 3px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.87), inset 0 -12px 22px rgba(158,44,95,.14), 0 0 0 6px #f3a8c7, 0 8px 0 #c94581, 0 14px 0 #a8681e, 0 28px 43px rgba(135,39,81,.27); }
  .campus-image { object-position: 50% center; transform: translate(var(--campus-x), var(--campus-y)) scale(1.08); }
  .campus-scene-copy { left: 18px; bottom: 21px; width: calc(100% - 36px); padding: 19px 18px 21px; border-radius: 21px; }
  .campus-scene-copy h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .campus-subtitle { margin-bottom: 15px; }
  .campus-plaque { bottom: -34px; width: 86%; min-height: 54px; padding: 8px 13px; }
  .campus-plaque span { display: none; }
  .campus-welcome { margin-bottom: 19px; }
  .destination-card { padding: 21px; border-radius: 24px; }
  .nav-button { gap: 3px; font-size: .66rem; }
}

@media (max-width: 390px) {
  .campus-enter-button { width: 100%; justify-content: center; }
  .campus-kicker { font-size: .64rem; }
  .destination-copy strong { font-size: 1.22rem; }
  .bottom-nav { width: calc(100% - 18px); padding: 6px; }
  .nav-button { font-size: .6rem; }
}

/* Daily Devotion Chapel */
.devotion-today-card {
  position: relative;
  display: grid;
  width: min(100%, 790px);
  min-height: 138px;
  margin: 0 auto 35px;
  padding: 24px 27px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 19px;
  color: #734124;
  text-align: left;
  background: linear-gradient(145deg, #fffdf9 0%, #ffe8f1 50%, #f3c765 100%);
  border: 2px solid #d59d36;
  border-radius: 30px;
  box-shadow: inset 7px 8px 12px rgba(255,255,255,.9), inset -8px -10px 15px rgba(188,83,128,.12), 0 8px 0 #c94f85, 0 14px 0 #9e631d, 0 27px 44px rgba(139,43,83,.22);
  transform: translateY(-5px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.devotion-today-card::after { content: ""; position: absolute; top: 9px; left: 13%; width: 48%; height: 12px; background: linear-gradient(90deg, rgba(255,255,255,.9), transparent); border-radius: 999px; }
.devotion-today-card:hover { transform: translateY(-10px); box-shadow: inset 7px 8px 12px rgba(255,255,255,.94), inset -8px -10px 15px rgba(188,83,128,.12), 0 11px 0 #c94f85, 0 18px 0 #9e631d, 0 33px 50px rgba(139,43,83,.25); }
.devotion-today-card:active { transform: translateY(3px); box-shadow: inset 4px 5px 8px rgba(174,63,111,.12), 0 3px 0 #9e631d; }
.devotion-seal,
.devotion-dialog-seal { display: grid; place-items: center; width: 63px; height: 63px; color: #fff8dc; background: radial-gradient(circle at 30% 22%, #ffdcec, #dc5795 48%, #8f3a61 100%); border: 2px solid #f3ce72; border-radius: 50%; box-shadow: inset 5px 6px 8px rgba(255,255,255,.48), inset -5px -6px 8px rgba(93,27,58,.18), 0 7px 0 #a56820, 0 13px 20px rgba(128,39,77,.22); font-size: 1.45rem; }
.devotion-today-copy { display: grid; gap: 4px; }
.devotion-today-copy small { color: #ad7625; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.devotion-today-copy strong { color: #98436b; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 600; }
.devotion-today-copy > span { color: #875c6e; font-weight: 750; }
.devotion-open-label { display: flex; align-items: center; gap: 8px; color: #8b4c1a; font-size: .86rem; font-weight: 850; }

.devotion-calendar-shell { width: min(100%, 860px); margin: 0 auto; padding: 27px; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,227,239,.96)); border: 2px solid #dca642; border-radius: 32px; box-shadow: inset 8px 10px 14px rgba(255,255,255,.92), inset -9px -11px 16px rgba(195,68,126,.09), 0 9px 0 #cc5b8d, 0 16px 0 #a76b22, 0 30px 48px rgba(150,46,92,.2); }
.calendar-toolbar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 15px; margin-bottom: 24px; text-align: center; }
.calendar-toolbar small { color: #b77b26; font-size: .68rem; font-weight: 900; letter-spacing: .17em; }
.calendar-toolbar h2 { margin-top: 4px; font-size: clamp(1.55rem, 4vw, 2.25rem); }
.calendar-nav-button { width: 46px; height: 46px; color: #8c4265; background: linear-gradient(145deg, #fff, #f7c0d7); border: 1px solid #d69f3e; border-radius: 50%; box-shadow: inset 3px 4px 5px rgba(255,255,255,.88), 0 5px 0 #bd7725; font-weight: 900; }
.calendar-nav-button:active { transform: translateY(4px); box-shadow: inset 2px 3px 5px rgba(171,59,107,.14), 0 1px 0 #bd7725; }
.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.calendar-weekdays { margin-bottom: 9px; }
.calendar-weekdays span { padding: 5px 0; color: #aa7541; text-align: center; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.calendar-day { display: grid; min-height: 78px; padding: 9px 6px 7px; align-content: center; justify-items: center; gap: 5px; color: #8d3f63; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,224,237,.94)); border: 1px solid rgba(206,150,52,.55); border-radius: 17px; box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), inset -3px -4px 6px rgba(196,72,129,.07), 0 4px 0 #dd8caf, 0 8px 12px rgba(161,55,103,.1); transition: transform .16s ease, box-shadow .16s ease; }
.calendar-day > span { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.calendar-day small { display: -webkit-box; overflow: hidden; color: #9a7183; font-size: .62rem; font-weight: 750; line-height: 1.18; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.calendar-day:hover { transform: translateY(-4px); box-shadow: inset 3px 4px 5px rgba(255,255,255,.92), 0 7px 0 #d66d9b, 0 13px 18px rgba(161,55,103,.15); }
.calendar-day.is-today { color: #704212; background: linear-gradient(145deg, #fff9fb, #f4ca68); border: 2px solid #c88929; box-shadow: inset 3px 4px 5px rgba(255,255,255,.82), 0 5px 0 #b66e1f, 0 10px 17px rgba(169,92,27,.18); }
.calendar-day.is-today::after { content: "TODAY"; color: #8a5019; font-size: .55rem; font-weight: 950; letter-spacing: .08em; }
.calendar-note { margin: 24px 0 0; color: #95677b; text-align: center; font-size: .82rem; font-weight: 720; }
.calendar-note span { color: #c28a2f; }

.devotion-dialog { width: min(calc(100% - 28px), 570px); padding: 38px; overflow: visible; color: #6f3a54; background: radial-gradient(circle at 15% 4%, #fff 0 5%, transparent 24%), linear-gradient(145deg, #fffdf9, #ffe3ef 62%, #f7ca68); border: 3px solid #d7a13c; border-radius: 34px; box-shadow: inset 9px 11px 16px rgba(255,255,255,.9), inset -10px -12px 18px rgba(190,71,126,.1), 0 10px 0 #c95789, 0 18px 0 #9f641d, 0 38px 95px rgba(74,9,37,.42); }
.devotion-dialog::backdrop { background: rgba(65,10,34,.55); backdrop-filter: blur(7px); }
.devotion-dialog-top { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }
.devotion-dialog-seal { flex: 0 0 58px; width: 58px; height: 58px; font-size: 1.3rem; }
.devotion-dialog-top p { margin: 0 0 4px; color: #9e4b70; font-family: var(--serif); font-size: 1.03rem; font-weight: 700; }
.devotion-dialog-top small { color: #ad7626; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.devotion-dialog h2 { padding-right: 24px; font-size: clamp(2rem, 7vw, 3.15rem); line-height: 1; }
.devotion-message { margin: 19px 0 22px; color: #815c6e; font-size: 1.04rem; line-height: 1.7; }
.devotion-scripture { position: static; display: grid; margin: 0; padding: 22px; color: #754218; background: rgba(255,252,244,.78); border: 1px solid rgba(190,130,36,.48); border-radius: 22px; box-shadow: inset 4px 5px 7px rgba(255,255,255,.84), 0 5px 0 rgba(185,115,29,.5); font-family: var(--serif); font-size: 1.08rem; font-style: italic; line-height: 1.55; }
.devotion-scripture cite { margin-top: 10px; color: #aa6e1f; font-family: var(--sans); font-size: .78rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.devotion-blessing { margin: 23px 0 0; color: #a64f75; font-family: var(--serif); font-size: .94rem; font-style: italic; text-align: center; }
.devotion-close { z-index: 2; color: #9d4e71; }

@media (max-width: 620px) {
  .devotion-today-card { grid-template-columns: auto 1fr; padding: 21px 18px; }
  .devotion-open-label { grid-column: 1 / -1; justify-self: end; }
  .devotion-calendar-shell { padding: 19px 12px 23px; border-radius: 25px; }
  .calendar-weekdays, .calendar-days { gap: 5px; }
  .calendar-day { min-height: 58px; padding: 6px 2px; border-radius: 12px; }
  .calendar-day small { display: none; }
  .calendar-day.is-today::after { font-size: .48rem; }
  .devotion-dialog { padding: 32px 23px 29px; border-radius: 28px; }
  .devotion-dialog-top { align-items: flex-start; }
  .devotion-dialog-top small { display: block; max-width: 220px; line-height: 1.45; }
}

/* Short Story Library */
.featured-story-card {
  position: relative;
  display: grid;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 34px;
  grid-template-columns: minmax(235px, 340px) 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 68px);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,224,238,.96) 62%, rgba(247,205,112,.9));
  border: 2px solid #d9a23e;
  border-radius: 36px;
  box-shadow: inset 9px 11px 16px rgba(255,255,255,.92), inset -10px -12px 18px rgba(192,69,126,.09), 0 9px 0 #ca4f85, 0 16px 0 #a46820, 0 31px 52px rgba(145,43,89,.22);
}
.featured-story-card::before { content: ""; position: absolute; top: 10px; left: 10%; width: 45%; height: 14px; background: linear-gradient(90deg, rgba(255,255,255,.92), transparent); border-radius: 999px; }
.story-cover-shell {
  position: relative;
  padding: 9px;
  background: linear-gradient(145deg, #fff, #f2c763 56%, #ce4f84);
  border: 1px solid #d69b34;
  border-radius: 23px;
  box-shadow: inset 5px 6px 8px rgba(255,255,255,.82), 0 8px 0 #a96a20, 0 17px 30px rgba(121,34,73,.28);
  transform: perspective(900px) rotateY(3deg) translateY(-4px);
}
.story-cover-shell::after { content: ""; position: absolute; inset: 10px; border-radius: 15px; background: linear-gradient(120deg, rgba(255,255,255,.26), transparent 28% 74%, rgba(255,255,255,.12)); pointer-events: none; }
.story-cover { display: block; width: 100%; height: auto; border-radius: 15px; }
.story-card-copy { position: relative; z-index: 1; }
.story-card-copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .96; }
.story-subtitle { margin: 17px 0 12px; color: #a04972; font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.45; }
.story-summary { margin: 0; color: #805e6f; line-height: 1.7; }
.story-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.story-details span { padding: 8px 11px; color: #8b4a67; background: rgba(255,255,255,.7); border: 1px solid rgba(202,143,45,.38); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.story-read-button { display: inline-flex; min-height: 50px; padding: 0 21px; align-items: center; gap: 11px; color: #fffaf2; background: linear-gradient(145deg, #e15b98, #b42d6d); border: 1px solid #f0c765; border-radius: 999px; box-shadow: inset 4px 5px 6px rgba(255,255,255,.25), inset -4px -5px 7px rgba(111,24,62,.16), 0 6px 0 #8e5518, 0 13px 22px rgba(133,37,79,.2); font-weight: 850; transition: transform .16s ease, box-shadow .16s ease; }
.story-read-button:hover { transform: translateY(-3px); box-shadow: inset 4px 5px 6px rgba(255,255,255,.28), 0 9px 0 #8e5518, 0 17px 27px rgba(133,37,79,.24); }
.story-read-button:active { transform: translateY(4px); box-shadow: inset 3px 4px 6px rgba(95,18,52,.18), 0 2px 0 #8e5518; }

.story-reader-dialog {
  width: min(calc(100% - 24px), 840px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #5f3b4d;
  background: linear-gradient(145deg, #fffdf9, #fff0f6 62%, #ffe1ed);
  border: 3px solid #d8a03a;
  border-radius: 32px;
  box-shadow: inset 9px 10px 15px rgba(255,255,255,.88), 0 9px 0 #c45084, 0 17px 0 #9e631d, 0 40px 100px rgba(63,7,31,.45);
}
.story-reader-dialog::backdrop { background: rgba(58,7,29,.62); backdrop-filter: blur(8px); }
.story-reader-toolbar { position: sticky; z-index: 5; top: 0; display: flex; min-height: 72px; padding: 12px 18px 12px 24px; align-items: center; justify-content: space-between; gap: 15px; color: #fffaf4; background: linear-gradient(120deg, rgba(142,43,83,.97), rgba(206,76,132,.96)); border-bottom: 2px solid #e3b04f; box-shadow: 0 7px 18px rgba(99,24,57,.18); backdrop-filter: blur(12px); }
.story-reader-toolbar div { display: grid; gap: 3px; }
.story-reader-toolbar small { color: #ffe3a1; font-size: .61rem; font-weight: 900; letter-spacing: .13em; }
.story-reader-toolbar strong { font-family: var(--serif); font-size: 1.04rem; }
.story-reader-close { flex: 0 0 42px; width: 42px; height: 42px; color: #8b3e61; background: linear-gradient(145deg, #fff, #f6ccdc); border: 1px solid #e4b24f; border-radius: 50%; box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 4px 0 #9c5d1c; font-size: 1.55rem; line-height: 1; }
.story-reader-hero { display: grid; padding: 36px clamp(24px, 6vw, 54px); grid-template-columns: 170px 1fr; align-items: center; gap: 32px; background: radial-gradient(circle at 82% 15%, rgba(246,203,105,.25), transparent 28%); border-bottom: 1px solid rgba(197,137,39,.22); }
.story-reader-hero img { display: block; width: 100%; border: 6px solid #fff7fb; border-radius: 15px; box-shadow: 0 5px 0 #c7852b, 0 13px 26px rgba(131,38,78,.22); }
.story-reader-hero h2 { font-size: clamp(2.1rem, 6vw, 3.65rem); line-height: .98; }
.story-reader-hero p:last-child { margin: 16px 0 0; color: #856173; line-height: 1.65; }
.story-manuscript { max-width: 710px; margin: 0 auto; padding: 8px clamp(24px, 7vw, 62px) 60px; }
.story-chapter { position: relative; padding: 44px 0 39px; border-bottom: 1px solid rgba(191,127,32,.23); }
.story-chapter > span { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; color: #8a4b1c; background: linear-gradient(145deg, #fff, #f4cb70); border: 1px solid #d49c3a; border-radius: 50%; box-shadow: inset 3px 4px 5px rgba(255,255,255,.82), 0 4px 0 #b76f20; font-size: .72rem; font-weight: 900; }
.story-chapter h3 { margin: 5px 0 16px; color: #9e456e; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.12; }
.story-chapter p { margin: 0; color: #674a59; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.9; }
.story-chapter p::first-letter { color: #bd4c80; font-size: 1.25em; }
.story-ending { display: grid; justify-items: center; padding: 48px 0 8px; color: #a3436f; text-align: center; }
.story-ending > span { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; color: #fff5f9; background: linear-gradient(145deg, #f38fba, #bf3d78); border: 2px solid #f0c864; border-radius: 50%; box-shadow: inset 4px 5px 6px rgba(255,255,255,.35), 0 6px 0 #a3631d, 0 13px 22px rgba(126,36,75,.2); font-size: 1.25rem; }
.story-ending strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; }
.story-ending p { margin: 6px 0 0; color: #97687d; font-family: var(--serif); font-style: italic; }

@media (max-width: 800px) {
  .featured-story-card { grid-template-columns: minmax(190px, 290px) 1fr; padding: 27px; gap: 32px; }
}

@media (max-width: 650px) {
  .featured-story-card { grid-template-columns: 1fr; padding: 24px 19px 29px; }
  .story-cover-shell { width: min(100%, 310px); margin: 0 auto; transform: translateY(-3px); }
  .story-card-copy { text-align: center; }
  .story-details { justify-content: center; }
  .story-reader-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 23px; }
  .story-reader-toolbar { padding-left: 17px; }
  .story-reader-toolbar small { max-width: 230px; line-height: 1.35; }
  .story-reader-hero { grid-template-columns: 115px 1fr; padding: 26px 19px; gap: 19px; }
  .story-reader-hero h2 { font-size: clamp(1.75rem, 8vw, 2.7rem); }
  .story-reader-hero p:last-child { display: none; }
  .story-manuscript { padding: 3px 23px 50px; }
  .story-chapter { padding: 37px 0 34px; }
  .story-chapter p { font-size: 1.03rem; line-height: 1.82; }
}

/* Seven-destination app menu */
.bottom-nav { width: min(calc(100% - 22px), 840px); }
.nav-button { min-width: 0; padding-inline: 4px; }
.nav-button > span:last-child { max-width: 100%; white-space: nowrap; }

@media (max-width: 420px) {
  .bottom-nav { width: calc(100% - 12px); padding-inline: 5px; }
  .nav-button { font-size: .55rem; letter-spacing: -.015em; }
  .nav-button > span:first-child { font-size: .92rem; }
}

/* Portal and notification settings */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  align-items: center;
  gap: 7px;
  color: #9b4b6e;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,230,241,.88));
  border: 1px solid rgba(200,139,40,.36);
  border-radius: 999px;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 5px 0 #dda34d, 0 10px 18px rgba(175,68,116,.13);
  font-size: .82rem;
  font-weight: 800;
}

.settings-button > span:first-child { font-size: 1.15rem; }
.portal-destination { background: linear-gradient(145deg, rgba(255,251,254,.98), rgba(246,214,255,.92)); }
.settings-destination { background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(255,223,239,.95)); }

.portal-dashboard,
.notification-layout {
  width: min(100%, 900px);
  margin: 0 auto;
}

.portal-welcome-card {
  position: relative;
  display: grid;
  min-height: 190px;
  padding: clamp(25px, 5vw, 43px);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.9), transparent 25%), linear-gradient(145deg, #fff8fb, #ffd9e9 58%, #f2ca6b);
  border: 2px solid #d7a03c;
  border-radius: 34px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.9), 0 9px 0 #c84b83, 0 16px 0 #9c611c, 0 30px 48px rgba(145,43,89,.2);
}

.portal-welcome-card::after {
  content: "✦";
  position: absolute;
  right: 7%;
  bottom: -28px;
  color: rgba(255,255,255,.5);
  font-size: 8rem;
}

.portal-seal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 83px;
  height: 83px;
  color: #fff8dc;
  background: radial-gradient(circle at 30% 22%, #ffdcec, #dc5795 48%, #8f3a61 100%);
  border: 3px solid #f3ce72;
  border-radius: 50%;
  box-shadow: inset 6px 7px 9px rgba(255,255,255,.5), 0 8px 0 #a56820, 0 15px 22px rgba(128,39,77,.22);
  font-family: var(--serif);
  font-weight: 800;
}

.portal-welcome-card > div { position: relative; z-index: 1; }
.portal-welcome-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.portal-welcome-card p:last-child { max-width: 620px; margin: 10px 0 0; color: #835d70; line-height: 1.65; }

.portal-module-grid {
  display: grid;
  margin-top: 35px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-module-card {
  display: grid;
  min-height: 250px;
  padding: 28px;
  align-content: start;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,229,241,.94));
  border: 2px solid rgba(204,149,54,.52);
  border-radius: 28px;
  box-shadow: inset 6px 7px 9px rgba(255,255,255,.92), 0 7px 0 #d66e9b, 0 13px 0 #ad7023, 0 24px 36px rgba(148,46,92,.14);
}

.portal-module-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: #874713;
  background: linear-gradient(145deg, #fff8fb, #f4cd71);
  border: 1px solid #dda749;
  border-radius: 50%;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.8), 0 4px 0 #b67121;
  font-weight: 900;
}

.portal-module-card small { color: #b07825; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.portal-module-card h3 { margin: 7px 0 8px; color: #98436b; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.portal-module-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.portal-module-card strong { margin-top: auto; padding-top: 24px; color: #aa6d22; font-size: .71rem; letter-spacing: .14em; }

.notification-layout { display: grid; gap: 28px; }
.notification-permission-card,
.notification-settings-card {
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,228,240,.95));
  border: 2px solid #d7a03c;
  border-radius: 31px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.92), 0 8px 0 #cb5689, 0 15px 0 #a36720, 0 28px 44px rgba(145,43,89,.18);
}

.notification-permission-card {
  display: grid;
  min-height: 150px;
  padding: 26px 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.notification-bell {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff8dc;
  background: radial-gradient(circle at 30% 22%, #ffdcec, #dc5795 48%, #8f3a61 100%);
  border: 2px solid #f3ce72;
  border-radius: 50%;
  box-shadow: inset 5px 6px 8px rgba(255,255,255,.48), 0 7px 0 #a56820;
  font-size: 1.4rem;
}

.notification-permission-card small { color: #ae7625; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.notification-permission-card h2 { margin-top: 4px; }
.notification-permission-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.notification-enable-button,
.test-notification-button {
  min-height: 45px;
  padding: 0 17px;
  color: #fffaf2;
  background: linear-gradient(145deg, #e15b98, #b42d6d);
  border: 1px solid #efc763;
  border-radius: 999px;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.24), 0 5px 0 #8e5518;
  font-size: .84rem;
  font-weight: 850;
}

.notification-enable-button:disabled { opacity: .6; cursor: not-allowed; }
.notification-settings-card { padding: clamp(23px, 4vw, 38px); }
.notification-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.permission-pill { padding: 8px 12px; color: #924a69; background: rgba(255,255,255,.74); border: 1px solid rgba(200,139,40,.38); border-radius: 999px; font-size: .73rem; font-weight: 850; white-space: nowrap; }
.permission-pill.is-on { color: #744214; background: linear-gradient(145deg, #fff7fa, #f4d27f); }

.notification-option {
  display: grid;
  padding: 24px 0;
  grid-template-columns: 1fr auto 128px;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(187,125,36,.22);
}

.affirmation-notification-option {
  grid-template-columns: minmax(0, 1fr) auto 150px 128px;
}

.notification-option strong { display: block; color: #954168; font-family: var(--serif); font-size: 1.25rem; }
.notification-option p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.story-notification-option { grid-template-columns: 1fr auto; }
.switch-control { position: relative; display: inline-flex; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control > span:not(.sr-only) { position: relative; display: block; width: 52px; height: 30px; background: #d7bec8; border: 1px solid #b996a5; border-radius: 999px; box-shadow: inset 2px 3px 5px rgba(92,45,65,.15); transition: .2s ease; }
.switch-control > span:not(.sr-only)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 3px 7px rgba(89,34,58,.25); transition: .2s ease; }
.switch-control input:checked + span { background: linear-gradient(145deg, #f18ab6, #ca3e7f); border-color: #b52f6d; }
.switch-control input:checked + span::after { transform: translateX(22px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(208,64,130,.3); outline-offset: 3px; }
.time-control { display: grid; gap: 5px; color: #9c6e43; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.time-control input,
.time-control select { min-height: 42px; padding: 0 10px; color: #84415f; background: rgba(255,255,255,.8); border: 1px solid rgba(198,139,43,.42); border-radius: 12px; font: inherit; font-size: .82rem; }
.time-control select { width: 100%; padding-right: 30px; text-transform: none; letter-spacing: 0; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.test-notification-button { color: #89455f; background: linear-gradient(145deg, #fff, #f7d5e3); }
.notification-note { margin: 18px 0 0; color: #987384; font-size: .82rem; line-height: 1.55; }

@media (max-width: 760px) {
  .settings-button { width: 42px; padding: 0; justify-content: center; }
  .settings-button > span:last-child { display: none; }
  .portal-module-grid { grid-template-columns: 1fr; }
  .notification-permission-card { grid-template-columns: auto 1fr; padding: 23px 20px; }
  .notification-enable-button { grid-column: 1 / -1; width: 100%; }
  .notification-option { grid-template-columns: 1fr auto; }
  .notification-option .time-control { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .portal-welcome-card { grid-template-columns: 1fr; }
  .portal-seal { width: 68px; height: 68px; }
  .notification-card-heading { align-items: flex-start; flex-direction: column; }
  .notification-settings-card { border-radius: 25px; }
}

@media (max-width: 420px) {
  .bottom-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .nav-button { flex: 0 0 65px; }
}

/* Personalized student accounts */
.bottom-nav { width: min(calc(100% - 22px), 920px); }
.profile-destination { background: linear-gradient(145deg, rgba(255,252,248,.98), rgba(250,216,255,.94)); }

.account-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px 0 7px;
  align-items: center;
  gap: 8px;
  color: #934364;
  text-decoration: none;
  background: linear-gradient(145deg, #fff, #ffe3ef);
  border: 1px solid rgba(200,139,40,.42);
  border-radius: 999px;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 5px 0 #d29a42, 0 10px 18px rgba(175,68,116,.12);
  font-size: .78rem;
  font-weight: 850;
}

.account-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff8dc;
  background: radial-gradient(circle at 30% 22%, #ffdcec, #dc5795 48%, #8f3a61 100%);
  border: 1px solid #efc864;
  border-radius: 50%;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.4), 0 3px 0 #9f651e;
  font-family: var(--serif);
  font-weight: 800;
}

.profile-layout {
  display: grid;
  width: min(100%, 850px);
  margin: 0 auto;
  gap: 28px;
}

.profile-account-card,
.profile-form {
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,228,240,.95));
  border: 2px solid #d7a03c;
  border-radius: 31px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.92), 0 8px 0 #cb5689, 0 15px 0 #a36720, 0 28px 44px rgba(145,43,89,.18);
}

.profile-account-card {
  display: grid;
  min-height: 145px;
  padding: 25px 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-width: 2px;
  font-size: 1.4rem;
}

.profile-account-card small { color: #ad7625; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.profile-account-card h2 { margin-top: 5px; }
.profile-account-card p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.profile-auth-button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  color: #fffaf2;
  text-decoration: none;
  background: linear-gradient(145deg, #e15b98, #b42d6d);
  border: 1px solid #efc763;
  border-radius: 999px;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.24), 0 5px 0 #8e5518;
  font-size: .82rem;
  font-weight: 850;
}

.profile-form { display: grid; padding: clamp(24px, 5vw, 40px); gap: 20px; }
.profile-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.profile-form label { display: grid; gap: 8px; color: #83415f; font-weight: 820; }
.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: #6f3952;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(195,134,37,.42);
  border-radius: 14px;
  font: inherit;
}
.profile-form input:focus,
.profile-form select:focus { outline: 0; border-color: #d94e8d; box-shadow: 0 0 0 4px rgba(222,79,144,.13); }
.profile-form .primary-button { justify-self: start; }
.sync-pill { padding: 8px 12px; color: #924a69; background: rgba(255,255,255,.75); border: 1px solid rgba(200,139,40,.38); border-radius: 999px; font-size: .73rem; font-weight: 850; white-space: nowrap; }
.sync-pill.is-synced { color: #744214; background: linear-gradient(145deg, #fff7fa, #f4d27f); }
.profile-helper { margin: -4px 0 0; color: #967182; font-size: .82rem; line-height: 1.55; }

@media (max-width: 800px) {
  .bottom-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .nav-button { flex: 0 0 77px; }
}

@media (max-width: 720px) {
  .account-button { width: 42px; padding: 0; justify-content: center; }
  .account-button > span:last-child { display: none; }
  .profile-account-card { grid-template-columns: auto 1fr; padding: 23px 20px; }
  .profile-auth-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
  .header-actions { gap: 7px; }
  .profile-form-heading { align-items: flex-start; flex-direction: column; }
}

/* Friendly four-button navigation and full campus menu */
.bottom-nav {
  width: min(calc(100% - 20px), 520px);
  padding: 7px;
  justify-content: stretch;
  gap: 6px;
  overflow: visible;
}

.nav-button {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 6px;
  gap: 5px;
  white-space: nowrap;
}

.nav-button > span:first-child {
  display: grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  font-size: 1.08rem;
}

.menu-dialog {
  position: fixed;
  inset: auto 0 max(92px, calc(env(safe-area-inset-bottom) + 78px));
  width: min(calc(100% - 22px), 680px);
  max-width: none;
  max-height: min(76dvh, 690px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  overflow: auto;
  color: var(--ink);
  background: linear-gradient(155deg, #fffafd, #ffe3ef 72%, #f9d887);
  border: 2px solid #d7a03c;
  border-radius: 30px;
  box-shadow: inset 7px 9px 12px rgba(255,255,255,.85), 0 20px 65px rgba(57,6,29,.42);
}

.menu-dialog::backdrop {
  background: rgba(50,7,24,.48);
  backdrop-filter: blur(5px);
}

.menu-dialog-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.menu-dialog-heading h2 {
  margin-top: 3px;
  color: #853756;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
}

.menu-dialog-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #8b4261;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(190,128,37,.42);
  border-radius: 50%;
  box-shadow: 0 4px 0 #d7a03c;
  font-size: 1.6rem;
}

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

.menu-destination {
  display: grid;
  min-width: 0;
  min-height: 96px;
  padding: 14px 10px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: #81405d;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(194,133,39,.4);
  border-radius: 19px;
  box-shadow: inset 3px 4px 6px rgba(255,255,255,.9), 0 4px 0 rgba(196,83,132,.55);
}

.menu-destination > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff8df;
  background: linear-gradient(145deg, #ef7aae, #b83973);
  border: 1px solid #e6bd59;
  border-radius: 50%;
  box-shadow: 0 3px 0 #9b5d1c;
  font-size: 1rem;
}

.menu-destination strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-size: .9rem;
}

.menu-story {
  color: #8b2d60;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,201,224,.92));
}

.menu-install-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fffaf2;
  background: linear-gradient(145deg, #df5794, #a92c67);
  border: 1px solid #efc763;
  border-radius: 999px;
  box-shadow: inset 3px 4px 5px rgba(255,255,255,.24), 0 5px 0 #8e5518;
  font-weight: 850;
}

.install-help-note {
  padding: 10px 12px;
  color: #82405d !important;
  background: #ffe6f0;
  border: 1px solid rgba(196,83,132,.25);
  border-radius: 13px;
  font-weight: 750;
}

@media (max-width: 800px) {
  .bottom-nav {
    overflow: visible;
    justify-content: stretch;
  }

  .nav-button {
    flex: 1 1 0;
  }
}

@media (max-width: 560px) {
  .bottom-nav {
    bottom: max(9px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 6px;
  }

  .nav-button {
    min-height: 57px;
    flex-direction: column;
    gap: 1px;
    font-size: .875rem;
    letter-spacing: 0;
  }

  .nav-button > span:first-child { font-size: 1rem; }
  .menu-dialog { bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px)); }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-destination { min-height: 86px; padding: 12px 8px; }
  .menu-destination strong { font-size: .84rem; }
}

@media (max-width: 370px) {
  .nav-button { font-size: .8rem; }
  .nav-button > span:first-child { min-height: 23px; }
}

/* Purpose Planner */
.planner-destination {
  background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(250,211,255,.94));
}

.planner-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.planner-toolbar {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.planner-tabs,
.planner-navigation {
  display: inline-flex;
  padding: 6px;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(195,134,37,.42);
  border-radius: 999px;
  box-shadow: inset 3px 4px 6px rgba(255,255,255,.9), 0 6px 15px rgba(144,43,88,.1);
}

.planner-tab,
.planner-navigation button {
  min-height: 42px;
  padding: 0 18px;
  color: #8b4966;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 850;
}

.planner-tab.active {
  color: #fffaf2;
  background: linear-gradient(145deg, #e45c99, #ad2f69);
  box-shadow: inset 2px 3px 4px rgba(255,255,255,.24), 0 4px 0 #8d5518;
}

.planner-navigation button:not(.planner-today-button) {
  width: 42px;
  padding: 0;
  color: #81405d;
  background: #ffe4ef;
}

.planner-navigation .planner-today-button {
  color: #7b451c;
  background: linear-gradient(145deg, #fff, #f3d074);
}

.planner-period-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.planner-period-heading small,
.planner-form-heading small {
  color: #ae7625;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.planner-period-heading h2 {
  margin-top: 4px;
  color: #8d3d61;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.planner-count-pill,
.planner-agenda-heading > span {
  padding: 8px 12px;
  color: #8d4966;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(194,133,39,.38);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.planner-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 26px;
}

.planner-calendar-column,
.planner-form-card {
  min-width: 0;
}

.planner-calendar,
.planner-day-agenda,
.planner-form-card {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,229,241,.93));
  border: 2px solid rgba(204,149,54,.62);
  border-radius: 29px;
  box-shadow: inset 7px 9px 12px rgba(255,255,255,.9), 0 7px 0 #d36b99, 0 13px 0 #a97027, 0 24px 38px rgba(137,39,81,.14);
}

.planner-calendar {
  min-height: 250px;
  padding: clamp(18px, 3vw, 28px);
}

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

.planner-day-part {
  min-height: 145px;
  padding: 18px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(194,133,39,.32);
  border-radius: 20px;
}

.planner-day-part > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.planner-day-part small {
  color: #934060;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.planner-day-part > div > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #fff8dc;
  background: #c74680;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 850;
}

.planner-day-part p {
  margin: 6px 0 12px;
  color: #9a7585;
  font-size: .83rem;
}

.planner-day-part em {
  color: #b292a0;
  font-size: .84rem;
}

.planner-day-part ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.planner-day-part li {
  overflow: hidden;
  color: #784056;
  font-size: .9rem;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-day-part li::before { content: "•"; margin-right: 7px; color: #d8a13e; }
.planner-day-part li.is-complete { opacity: .55; text-decoration: line-through; }

.planner-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.planner-week-day {
  display: grid;
  min-width: 0;
  min-height: 175px;
  padding: 14px 8px;
  align-content: start;
  justify-items: center;
  gap: 5px;
  color: #82435f;
  text-align: center;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(194,133,39,.31);
  border-radius: 16px;
}

.planner-week-day small { color: #ac738a; font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.planner-week-day strong { font-family: var(--serif); font-size: 1.7rem; }
.planner-week-day > span { color: #9c7485; font-size: .72rem; }
.planner-week-day em { width: 100%; padding: 4px 5px; overflow: hidden; color: #7e3b58; background: #ffe2ee; border-radius: 7px; font-size: .69rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.planner-week-day em.is-complete { opacity: .5; text-decoration: line-through; }
.planner-week-day.is-selected { color: #fff; background: linear-gradient(160deg, #e45c99, #a92d68); border-color: #e3b456; box-shadow: 0 5px 0 #8e5518; }
.planner-week-day.is-selected small,
.planner-week-day.is-selected > span { color: #fff4f8; }
.planner-week-day.is-selected em { color: #7d3355; background: #fff0f6; }
.planner-week-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 2px #df4f91; }

.planner-month-weekdays,
.planner-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.planner-month-weekdays { margin-bottom: 8px; }
.planner-month-weekdays span { color: #a56c83; text-align: center; font-size: .74rem; font-weight: 850; }
.planner-month-blank { min-height: 80px; }

.planner-month-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 80px;
  padding: 9px;
  align-content: space-between;
  justify-items: start;
  color: #82425e;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(194,133,39,.3);
  border-radius: 14px;
}

.planner-month-day > span { font-size: .9rem; font-weight: 850; }
.planner-month-day > div { display: flex; gap: 3px; }
.planner-month-day i { width: 7px; height: 7px; background: #d84788; border-radius: 50%; }
.planner-month-day i.is-complete { background: #d6aa4e; }
.planner-month-day small { position: absolute; right: 7px; bottom: 6px; color: #a26d83; font-size: .66rem; }
.planner-month-day.is-selected { color: #fff; background: linear-gradient(155deg, #e35a98, #ac2e69); border-color: #e5bd5d; box-shadow: 0 4px 0 #8f571b; }
.planner-month-day.is-selected i { background: #fff; }
.planner-month-day.is-selected small { color: #fff; }
.planner-month-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 2px #df4f91; }

.planner-day-agenda {
  margin-top: 26px;
  padding: clamp(21px, 4vw, 31px);
}

.planner-agenda-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.planner-agenda-heading h3 { margin-top: 3px; color: #8e3d61; font-family: var(--serif); font-size: 1.55rem; }
.planner-list { display: grid; gap: 11px; }

.planner-item {
  display: grid;
  padding: 16px;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(190,128,37,.32);
  border-left: 5px solid #d94989;
  border-radius: 16px;
}

.planner-item[data-planner-category="Work / Study"] { border-left-color: #a66bd1; }
.planner-item[data-planner-category="Personal"] { border-left-color: #ee8eae; }
.planner-item[data-planner-category="Wellness"] { border-left-color: #60a690; }
.planner-item[data-planner-category="Faith"] { border-left-color: #d6a13c; }
.planner-item.is-complete { opacity: .62; }
.planner-item.is-complete h4 { text-decoration: line-through; }

.planner-item-check { position: relative; display: grid; margin-top: 2px; }
.planner-item-check input { position: absolute; opacity: 0; }
.planner-item-check > span:not(.sr-only) { display: grid; width: 25px; height: 25px; place-items: center; background: #fff; border: 2px solid #d05a8e; border-radius: 8px; }
.planner-item-check input:checked + span { color: #fff; background: #c9427d; }
.planner-item-check input:checked + span::after { content: "✓"; font-size: .85rem; font-weight: 900; }
.planner-item-check input:focus-visible + span { outline: 3px solid rgba(208,64,130,.27); outline-offset: 3px; }

.planner-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.planner-item-meta time,
.planner-item-meta span { color: #9a5f78; font-size: .75rem; font-weight: 850; }
.planner-item-meta span { padding: 4px 7px; background: #ffe4ef; border-radius: 999px; }
.planner-item h4 { margin: 6px 0 0; color: #754052; font-size: 1rem; }
.planner-item p { margin: 5px 0 0; color: #947282; line-height: 1.45; }
.planner-delete-button { width: 34px; height: 34px; color: #a66881; background: transparent; border: 0; border-radius: 50%; font-size: 1.25rem; }
.planner-delete-button:hover { color: #8c2757; background: #ffe0ec; }

.planner-empty { display: grid; min-height: 150px; padding: 25px; place-items: center; align-content: center; text-align: center; background: rgba(255,255,255,.56); border: 1px dashed rgba(190,128,37,.44); border-radius: 18px; }
.planner-empty > span { color: #d19a37; font-size: 1.35rem; }
.planner-empty strong { margin-top: 7px; color: #8e4564; font-family: var(--serif); font-size: 1.15rem; }
.planner-empty p { margin: 5px 0 0; color: #987485; }

.planner-form-card {
  position: sticky;
  top: 20px;
  padding: 25px;
}

.planner-form-heading { display: flex; margin-bottom: 20px; align-items: center; gap: 13px; }
.planner-form-heading > span { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; color: #fff8dc; background: linear-gradient(145deg, #e05b98, #aa2d68); border: 1px solid #e6bd59; border-radius: 50%; box-shadow: 0 5px 0 #8f561b; font-size: 1.2rem; }
.planner-form-heading h2 { margin-top: 3px; color: #8e3d61; font-size: 1.5rem; }
.planner-form-card form { display: grid; gap: 16px; }
.planner-form-card label { display: grid; gap: 7px; color: #80405e; font-size: .88rem; font-weight: 820; }
.planner-form-card label > span { color: #a98796; font-weight: 650; }
.planner-form-card input,
.planner-form-card select,
.planner-form-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: #6f3952;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(195,134,37,.42);
  border-radius: 13px;
  font: inherit;
  font-size: 1rem;
}

.planner-form-card textarea { min-height: 95px; resize: vertical; }
.planner-form-card input:focus,
.planner-form-card select:focus,
.planner-form-card textarea:focus { outline: 0; border-color: #d94e8d; box-shadow: 0 0 0 4px rgba(222,79,144,.13); }
.planner-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.planner-save-note { margin: -2px 0 0; color: #9a7585; font-size: .8rem; line-height: 1.45; }

.menu-planner { background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(241,213,255,.93)); }

@media (max-width: 980px) {
  .planner-workspace { grid-template-columns: 1fr; }
  .planner-form-card { position: static; }
  .planner-week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .planner-week-day { min-height: 150px; }
}

@media (max-width: 680px) {
  .planner-toolbar { align-items: stretch; flex-direction: column; }
  .planner-tabs,
  .planner-navigation { width: 100%; justify-content: center; }
  .planner-tab { flex: 1; }
  .planner-navigation .planner-today-button { flex: 1; }
  .planner-period-heading { align-items: flex-start; flex-direction: column; }
  .planner-day-grid { grid-template-columns: 1fr; }
  .planner-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-week-day { min-height: 135px; }
  .planner-month-weekdays,
  .planner-month-grid { gap: 4px; }
  .planner-month-blank,
  .planner-month-day { min-height: 58px; }
  .planner-month-day { padding: 7px 5px; border-radius: 10px; }
  .planner-month-day small { display: none; }
  .planner-month-day i { width: 5px; height: 5px; }
  .planner-agenda-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .planner-calendar,
  .planner-day-agenda,
  .planner-form-card { border-radius: 23px; }
  .planner-tab,
  .planner-navigation button { padding-inline: 12px; }
  .planner-form-row { grid-template-columns: 1fr; }
  .planner-item { grid-template-columns: auto 1fr; }
  .planner-delete-button { grid-column: 2; justify-self: end; }
  .planner-month-weekdays span { font-size: .66rem; }
  .planner-month-day > span { font-size: .8rem; }
}

/* Planner fit and mobile-safe controls */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.planner-shell,
.planner-toolbar,
.planner-period-heading,
.planner-workspace,
.planner-calendar-column,
.planner-calendar,
.planner-day-agenda,
.planner-form-card,
.planner-form-card form,
.planner-form-card label,
.planner-form-row {
  min-width: 0;
  max-width: 100%;
}

.planner-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
}

.planner-form-card {
  width: 100%;
}

.planner-form-card input,
.planner-form-card select,
.planner-form-card textarea,
.planner-form-card .primary-button {
  min-width: 0;
  max-width: 100%;
}

.planner-form-card .primary-button {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  white-space: normal;
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .planner-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-form-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .planner-shell {
    width: 100%;
  }

  .planner-calendar,
  .planner-day-agenda,
  .planner-form-card {
    padding: 18px;
  }

  .planner-form-heading {
    align-items: flex-start;
  }

  .planner-form-heading h2 {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
    line-height: 1.08;
  }
}

@media (max-width: 560px) {
  .planner-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner-form-card input[type="date"],
  .planner-form-card input[type="time"] {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .planner-calendar,
  .planner-day-agenda,
  .planner-form-card {
    padding: 15px;
    border-radius: 20px;
  }

  .planner-form-heading > span {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

/* Pretti Babe Music Box */
.music-destination,
.menu-music {
  background: linear-gradient(145deg, rgba(255,252,248,.98), rgba(255,205,230,.96) 62%, rgba(246,214,125,.88));
}

.music-box-shell {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr);
  align-items: start;
  gap: 25px;
}

.music-player-card,
.music-playlist-card {
  position: relative;
  min-width: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,220,237,.95) 66%, rgba(248,211,117,.88));
  border: 2px solid rgba(206,148,49,.76);
  border-radius: 31px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.9), inset -8px -10px 15px rgba(188,61,119,.09), 0 8px 0 #ce5489, 0 15px 0 #a96a20, 0 29px 46px rgba(137,39,81,.18);
}

.music-player-card {
  display: grid;
  min-height: 405px;
  padding: clamp(24px, 4vw, 39px);
  grid-template-columns: minmax(210px, 285px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 48px);
  overflow: hidden;
}

.music-player-card::before,
.music-playlist-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 9%;
  width: 48%;
  height: 11px;
  background: linear-gradient(90deg, rgba(255,255,255,.92), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.music-album-art {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 32% 24%, #fff 0 7%, #ffd3e6 31%, #ec7faf 63%, #9d275f 100%);
  border: 3px solid #e8bd5f;
  border-radius: 50%;
  box-shadow: inset 9px 12px 17px rgba(255,255,255,.48), inset -12px -15px 18px rgba(93,18,54,.22), 0 8px 0 #a8661e, 0 18px 32px rgba(111,29,67,.28);
}

.music-album-art img {
  position: relative;
  z-index: 2;
  display: block;
  width: 73%;
  height: 73%;
  object-fit: contain;
  border: 5px solid rgba(255,246,250,.92);
  border-radius: 50%;
  box-shadow: 0 5px 0 #c78b2f, 0 12px 22px rgba(106,24,63,.25);
}

.music-disc-ring {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(115,22,60,.07), 0 0 0 25px rgba(255,255,255,.08);
}

.music-player-card.is-playing .music-album-art {
  animation: music-spin 12s linear infinite;
}

@keyframes music-spin {
  to { transform: rotate(360deg); }
}

.music-player-copy { position: relative; z-index: 2; min-width: 0; }
.music-player-copy h2 { color: #883859; font-size: clamp(2rem, 4vw, 3.25rem); line-height: .98; }
.music-artist { margin: 11px 0 29px; color: #9b6c80; font-size: .95rem; font-weight: 720; }
.music-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 17px; }

.music-play-button {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff8df;
  background: linear-gradient(145deg, #ef76ab, #a92b68);
  border: 2px solid #edc35f;
  border-radius: 50%;
  box-shadow: inset 5px 6px 7px rgba(255,255,255,.3), 0 6px 0 #8d5518, 0 13px 22px rgba(130,37,79,.24);
  font-size: 1.3rem;
  transition: transform .16s ease, box-shadow .16s ease;
}

.music-play-button:hover { transform: translateY(-3px); box-shadow: inset 5px 6px 7px rgba(255,255,255,.34), 0 9px 0 #8d5518, 0 17px 26px rgba(130,37,79,.27); }
.music-play-button:active { transform: translateY(4px); box-shadow: inset 3px 4px 6px rgba(94,18,51,.2), 0 2px 0 #8d5518; }

.music-timeline { display: grid; min-width: 0; gap: 7px; }
.music-timeline input { width: 100%; accent-color: #c73f7b; cursor: pointer; }
.music-timeline > div { display: flex; justify-content: space-between; color: #9a7182; font-size: .76rem; font-weight: 780; }
.music-status { min-height: 21px; margin: 17px 0 0 79px; color: #a04a70; font-size: .82rem; font-weight: 750; }

.music-playlist-card { padding: 27px 24px 29px; }
.music-playlist-heading { display: flex; margin-bottom: 23px; align-items: end; justify-content: space-between; gap: 14px; }
.music-playlist-heading h2 { color: #8d3d60; font-size: 1.55rem; }
.music-playlist-heading > span { padding: 7px 10px; color: #8b4764; background: rgba(255,255,255,.72); border: 1px solid rgba(195,134,37,.42); border-radius: 999px; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.music-track-list { display: grid; gap: 12px; }

.music-track {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 15px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #754052;
  text-align: left;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(190,128,37,.36);
  border-radius: 17px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.music-track.is-active { box-shadow: inset 0 0 0 2px rgba(213,73,136,.18), 0 4px 0 rgba(202,79,133,.48); }
.music-track:hover { transform: translateY(-2px); background: rgba(255,255,255,.94); }
.music-track:focus-visible { outline: 3px solid rgba(171,43,104,.42); outline-offset: 3px; }
.music-track-number { display: grid; width: 37px; height: 37px; place-items: center; color: #fff8df; background: linear-gradient(145deg, #ea72a7, #b52f70); border: 1px solid #e8bd5e; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.music-track > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.music-track strong { overflow: hidden; font-family: var(--serif); font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.music-track small { color: #a5788b; font-size: .74rem; }
.music-track time { color: #9a7182; font-size: .75rem; font-weight: 800; }
.music-playlist-note { margin: 21px 4px 0; color: #967283; font-size: .83rem; line-height: 1.55; }

@media (max-width: 900px) {
  .music-box-shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .music-player-card { grid-template-columns: minmax(0, 1fr); padding: 25px 20px 30px; text-align: center; }
  .music-album-art { width: min(76vw, 275px); margin: 0 auto; }
  .music-controls { text-align: left; }
  .music-status { margin-left: 0; text-align: center; }
}

@media (max-width: 390px) {
  .music-player-card,
  .music-playlist-card { border-radius: 23px; }
  .music-play-button { width: 56px; height: 56px; }
  .music-controls { gap: 12px; }
  .music-player-copy h2 { font-size: 2rem; }
  .music-playlist-card { padding-inline: 16px; }
  .music-track { padding: 12px 10px; gap: 9px; }
  .music-track-number { width: 34px; height: 34px; }
  .music-track strong { font-size: .94rem; }
}

/* Shop, community and game room */
.shop-destination,
.menu-shop { background: linear-gradient(145deg, #fff, #ffd8e9 56%, #f2cc72); }
.community-destination,
.menu-community { background: linear-gradient(145deg, #fff, #f6d6ff 54%, #ffcbdc); }
.games-destination,
.menu-games { background: linear-gradient(145deg, #fff, #ffd1e5 48%, #f7d87d); }

.shop-status-card {
  display: flex;
  width: min(100%, 1120px);
  margin: 0 auto 24px;
  padding: 20px 24px;
  align-items: center;
  gap: 16px;
  color: #7f3154;
  background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(255,220,237,.96));
  border: 1px solid rgba(190,128,37,.46);
  border-radius: 23px;
  box-shadow: 0 7px 0 rgba(195,70,125,.5), 0 15px 30px rgba(113,31,68,.13);
}
.shop-status-card p { margin: 4px 0 0; color: #927183; line-height: 1.5; }
.shop-status-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; color: #fff9df; background: #8b174b; border: 3px solid #edc663; border-radius: 15px; font-family: var(--serif); font-size: 1.15rem; font-weight: 900; }
.shop-status-pill { margin-left: auto; padding: 8px 12px; color: #8b3d60; background: #fff; border: 1px solid rgba(190,128,37,.4); border-radius: 999px; font-size: .78rem; font-weight: 850; white-space: nowrap; }

.shop-grid { display: grid; width: min(100%, 1120px); margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shop-card { min-width: 0; overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid rgba(189,124,36,.43); border-radius: 25px; box-shadow: 0 7px 0 rgba(202,79,133,.46), 0 16px 30px rgba(112,30,67,.13); }
.shop-card > div:last-child { padding: 20px; }
.shop-card small { color: #b33873; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.shop-card h2 { margin: 5px 0 9px; color: #7e3453; font-size: 1.35rem; line-height: 1.06; }
.shop-card p { min-height: 70px; margin: 0 0 14px; color: #856c77; line-height: 1.5; }
.shop-collection-link { display: inline-flex; padding: 9px 12px; align-items: center; gap: 6px; color: #fff; background: linear-gradient(145deg, #d7578f, #8f2056); border: 1px solid #d4a641; border-radius: 999px; font-size: .78rem; font-weight: 850; text-decoration: none; box-shadow: 0 3px 0 #8a5521; }
.shop-collection-link:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #8a5521; }
.shop-card-art { position: relative; display: grid; min-height: 220px; padding: 24px; place-content: center; place-items: center; gap: 10px; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(145deg, #f5a2c5, #a82b67); font-family: var(--serif); font-size: 1.45rem; line-height: 1.05; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(77,13,42,.28); }
.shop-card-art::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,239,191,.75); border-radius: 17px; pointer-events: none; }
.shop-card-art img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(71,13,39,.28)); }
.shop-card-art > * { position: relative; z-index: 1; }
.shop-card-art > span { font-size: 2rem; }
.shop-art-journal { background: linear-gradient(145deg, #ffb5d4, #c73c7b); }
.shop-art-tumbler { background: linear-gradient(145deg, #ffd8e8, #e56a9e 55%, #bb7a20); }
.shop-art-wfh { background: linear-gradient(145deg, #ff9dc7, #87325b); }
.shop-art-faith { background: linear-gradient(145deg, #f7c3d8, #8c174d 62%, #d59f38); }
.shop-art-corporate { background: linear-gradient(145deg, #f5b3d0, #bd3e78 56%, #6e2749); }

.community-layout { display: grid; width: min(100%, 1120px); margin: 0 auto; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 25px; }
.community-composer,
.community-feed-wrap { min-width: 0; padding: 25px; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,223,238,.94)); border: 1px solid rgba(190,128,37,.44); border-radius: 27px; box-shadow: 0 7px 0 rgba(201,75,131,.48), 0 17px 34px rgba(111,29,66,.13); }
.community-composer { display: grid; gap: 10px; }
.community-composer-heading { display: flex; margin-bottom: 8px; align-items: center; gap: 13px; }
.community-composer-heading > span { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: linear-gradient(145deg, #ec76aa, #a62a66); border: 2px solid #ecc45f; border-radius: 50%; font-size: 1.45rem; }
.community-composer-heading small { color: #b03d71; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.community-composer h2 { color: #7e3454; font-size: 1.55rem; }
.community-composer label { margin-top: 6px; color: #7c4057; font-size: .88rem; font-weight: 850; }
.community-composer input,
.community-composer textarea { width: 100%; padding: 14px 15px; color: #674452; background: rgba(255,255,255,.9); border: 1px solid rgba(178,104,135,.4); border-radius: 15px; font: inherit; resize: vertical; }
.community-form-footer { display: flex; margin-top: 5px; align-items: center; justify-content: space-between; gap: 12px; }
.community-form-footer small { color: #9b7787; }
.community-form-footer button { padding: 12px 16px; color: #fffbe8; background: linear-gradient(145deg, #e8669d, #a52965); border: 1px solid #eac15d; border-radius: 14px; font-weight: 850; box-shadow: 0 4px 0 #8a551b; }
.community-feed { display: grid; gap: 14px; }
.community-post { display: grid; padding: 17px; grid-template-columns: auto minmax(0, 1fr); gap: 13px; background: rgba(255,255,255,.76); border: 1px solid rgba(196,126,158,.32); border-radius: 18px; }
.community-avatar { display: grid; width: 45px; height: 45px; place-items: center; color: #fff8de; background: linear-gradient(145deg, #ec75a8, #99245d); border: 2px solid #e8bd58; border-radius: 50%; font-family: var(--serif); font-size: 1.2rem; font-weight: 900; }
.community-post-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.community-post-heading strong { color: #7c3453; font-family: var(--serif); font-size: 1.08rem; }
.community-post-heading time { color: #a78392; font-size: .72rem; white-space: nowrap; }
.community-post p { margin: 7px 0 0; color: #775e69; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-empty { padding: 30px 18px; color: #957382; text-align: center; background: rgba(255,255,255,.58); border: 1px dashed #d7a1ba; border-radius: 18px; }
.form-message a { color: #9a245c; font-weight: 850; }

.games-intro { align-items: center; }
.game-points-card { display: flex; min-width: 165px; padding: 14px 18px; align-items: center; gap: 12px; color: #fff9de; background: linear-gradient(145deg, #d94f8a, #7f174b); border: 2px solid #eac461; border-radius: 20px; box-shadow: 0 6px 0 #915719, 0 13px 24px rgba(101,26,57,.2); }
.game-points-card > span { font-size: 1.6rem; }
.game-points-card div { display: grid; }
.game-points-card small { font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.game-points-card strong { font-family: var(--serif); font-size: 1.65rem; }
.game-points-note { width: min(100%, 1120px); margin: -8px auto 18px; color: #987184; text-align: right; font-size: .82rem; }
.game-tabs { display: flex; width: min(100%, 1120px); margin: 0 auto 18px; padding: 7px; gap: 7px; background: rgba(255,255,255,.65); border: 1px solid rgba(184,110,143,.32); border-radius: 19px; overflow-x: auto; }
.game-tab { min-width: max-content; padding: 12px 16px; color: #8b536b; background: transparent; border: 0; border-radius: 13px; font-weight: 850; }
.game-tab.active { color: #fff9df; background: linear-gradient(145deg, #e769a0, #a42b65); box-shadow: 0 4px 0 #8d571a; }
.game-panel { width: min(100%, 1120px); margin: 0 auto; padding: clamp(20px, 4vw, 31px); background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,218,236,.95)); border: 2px solid rgba(201,148,52,.62); border-radius: 29px; box-shadow: 0 8px 0 #c94b83, 0 16px 0 #a6671d, 0 30px 45px rgba(118,31,68,.15); }
.game-panel-heading { display: flex; margin-bottom: 22px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.game-panel-heading h2 { margin: 3px 0 6px; color: #7f3454; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.game-panel-heading p:not(.eyebrow) { max-width: 660px; margin: 0; color: #866979; line-height: 1.5; }
.game-secondary-button,
.game-primary-button,
.word-clear-button { padding: 11px 14px; border-radius: 13px; font-weight: 850; white-space: nowrap; }
.game-secondary-button,
.word-clear-button { color: #8a3d5e; background: rgba(255,255,255,.88); border: 1px solid rgba(180,113,39,.45); }
.game-primary-button { color: #fff8df; background: linear-gradient(145deg, #e969a0, #a42b65); border: 1px solid #e8bd57; }
.game-primary-button:disabled { opacity: .5; }
.game-message { margin: 20px 0 0; color: #933e65; text-align: center; font-weight: 780; }

.bingo-board { display: grid; max-width: 760px; margin: 0 auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bingo-square { display: grid; min-width: 0; aspect-ratio: 1; padding: 8px; place-content: center; color: #7b4560; text-align: center; background: rgba(255,255,255,.9); border: 1px solid rgba(187,113,146,.42); border-radius: 14px; font-size: clamp(.63rem, 1.6vw, .88rem); font-weight: 760; line-height: 1.22; overflow-wrap: anywhere; transition: transform .15s ease, background .15s ease; }
.bingo-square.is-marked { color: #fff9df; background: linear-gradient(145deg, #ec7bae, #a52b66); border-color: #e9c25e; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); transform: scale(.96); }
.bingo-square.is-free strong { font-family: var(--serif); font-size: 1.1rem; }
.bingo-square.is-free span { font-size: .62rem; }

.word-search-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr); gap: 22px; }
.word-search-grid { display: grid; min-width: 560px; max-width: 760px; width: 100%; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.word-letter { display: grid; min-width: 0; aspect-ratio: 1; place-items: center; color: #793851; background: #fff; border: 1px solid rgba(186,112,144,.4); border-radius: 9px; font-family: var(--serif); font-size: clamp(.72rem, 2vw, 1.05rem); font-weight: 900; }
.word-letter.is-selected { color: #fff; background: #dd6ca0; }
.word-letter.is-found { color: #fff9dd; background: #8c2055; border-color: #e8bd58; }
.word-bank { padding: 18px; background: rgba(255,255,255,.66); border: 1px solid rgba(187,116,146,.32); border-radius: 18px; }
.word-bank > small { color: #b23d72; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.word-bank > div { display: grid; margin: 13px 0 18px; gap: 8px; }
.word-bank span { color: #7d3d58; font-family: var(--serif); font-weight: 850; letter-spacing: .04em; overflow-wrap: anywhere; }
.word-bank span small { margin-left: 4px; color: #bd4b7d; font-family: var(--sans); font-size: .65rem; letter-spacing: 0; }
.word-bank span.is-found { color: #b07a8f; text-decoration: line-through; }
.game-board-label { display: inline-flex; margin-top: 8px; padding: 6px 10px; color: #8c315d; background: #fff5f9; border: 1px solid #efbad1; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.word-next-button { width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .shop-status-card { align-items: flex-start; flex-wrap: wrap; }
  .shop-status-pill { margin-left: 68px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-card { display: grid; grid-template-columns: minmax(125px, .42fr) minmax(0, .58fr); }
  .shop-card-art { min-height: 100%; padding: 14px; font-size: 1rem; }
  .shop-card-art img { width: 62px; height: 62px; }
  .shop-card > div:last-child { padding: 16px; }
  .shop-card h2 { font-size: 1.14rem; }
  .shop-card p { min-height: 0; font-size: .87rem; }
  .shop-collection-link { font-size: .68rem; }
  .games-intro { align-items: flex-start; }
  .game-points-card { min-width: 145px; }
  .game-points-note { margin-top: 10px; text-align: left; }
  .game-panel-heading { display: grid; }
  .bingo-board { gap: 4px; }
  .bingo-square { padding: 4px; border-radius: 9px; font-size: .57rem; }
  .word-search-layout { grid-template-columns: minmax(0, 1fr); }
  .word-bank > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .community-composer,
  .community-feed-wrap,
  .game-panel { padding: 18px 14px; border-radius: 22px; }
  .community-form-footer { align-items: flex-end; flex-direction: column; }
  .community-form-footer button { width: 100%; }
  .community-post { grid-template-columns: minmax(0, 1fr); }
  .community-post-heading { align-items: flex-start; flex-direction: column; }
  .game-tabs { padding: 5px; }
  .game-tab { padding: 10px 12px; }
}

/* Pretti Newsletter */
.newsletter-destination,
.menu-newsletter {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,221,235,.96) 58%, rgba(244,194,215,.94));
}

.newsletter-feature-card {
  position: relative;
  display: grid;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  grid-template-columns: minmax(270px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 64px);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,229,240,.96) 68%, rgba(246,207,123,.88));
  border: 2px solid #d7a33e;
  border-radius: 34px;
  box-shadow: inset 9px 11px 16px rgba(255,255,255,.92), inset -10px -12px 18px rgba(192,69,126,.08), 0 9px 0 #c84e84, 0 16px 0 #9f651f, 0 30px 50px rgba(138,39,83,.2);
}

.newsletter-feature-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 8%;
  width: 44%;
  height: 13px;
  background: linear-gradient(90deg, rgba(255,255,255,.92), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.newsletter-cover-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #efc967 56%, #c84d83);
  border: 1px solid #d39a36;
  border-radius: 23px;
  box-shadow: inset 5px 6px 8px rgba(255,255,255,.84), 0 8px 0 #a6671e, 0 18px 31px rgba(118,31,70,.27);
  transform: perspective(900px) rotateY(2deg) translateY(-3px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.newsletter-cover-button:hover { transform: perspective(900px) rotateY(0) translateY(-7px); box-shadow: inset 5px 6px 8px rgba(255,255,255,.88), 0 12px 0 #a6671e, 0 24px 36px rgba(118,31,70,.28); }
.newsletter-cover-button:active { transform: translateY(3px); box-shadow: inset 4px 5px 7px rgba(133,35,74,.1), 0 2px 0 #a6671e; }
.newsletter-cover-button img { display: block; width: 100%; height: auto; border-radius: 14px; }
.newsletter-cover-button > span { position: absolute; right: 21px; bottom: 21px; padding: 9px 13px; color: #fff9ef; background: rgba(124,27,68,.91); border: 1px solid #ecc15c; border-radius: 999px; box-shadow: 0 5px 13px rgba(72,14,39,.24); font-size: .76rem; font-weight: 900; }

.newsletter-feature-copy { position: relative; z-index: 1; min-width: 0; }
.newsletter-feature-copy h2 { color: #8e3d60; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .96; }
.newsletter-date { margin: 16px 0 13px; color: #bd4b7e; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.newsletter-feature-copy > p:not(.eyebrow):not(.newsletter-date) { color: #795968; line-height: 1.72; }
.newsletter-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0; }
.newsletter-topics span { padding: 8px 11px; color: #85445f; background: rgba(255,255,255,.74); border: 1px solid rgba(197,136,38,.38); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.newsletter-read-button { display: inline-flex; min-height: 51px; padding: 0 22px; align-items: center; gap: 11px; color: #fffaf2; background: linear-gradient(145deg, #e25d99, #ad2968); border: 1px solid #efc560; border-radius: 999px; box-shadow: inset 4px 5px 6px rgba(255,255,255,.27), 0 6px 0 #8d5417, 0 13px 22px rgba(132,35,77,.21); font-weight: 850; transition: transform .16s ease, box-shadow .16s ease; }
.newsletter-read-button:hover { transform: translateY(-3px); box-shadow: inset 4px 5px 6px rgba(255,255,255,.3), 0 9px 0 #8d5417, 0 17px 27px rgba(132,35,77,.24); }
.newsletter-read-button:active { transform: translateY(4px); box-shadow: inset 3px 4px 6px rgba(95,18,52,.18), 0 2px 0 #8d5417; }

.newsletter-reader-dialog {
  width: min(calc(100% - 24px), 920px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fbe2ec;
  border: 3px solid #d6a13b;
  border-radius: 30px;
  box-shadow: inset 9px 10px 15px rgba(255,255,255,.88), 0 9px 0 #c44e82, 0 17px 0 #99601d, 0 40px 100px rgba(61,7,30,.46);
}
.newsletter-reader-dialog::backdrop { background: rgba(56,7,28,.65); backdrop-filter: blur(8px); }
.newsletter-reader-toolbar { position: sticky; z-index: 4; top: 0; display: flex; min-height: 72px; padding: 12px 18px 12px 24px; align-items: center; justify-content: space-between; gap: 15px; color: #fffaf4; background: linear-gradient(120deg, rgba(124,28,68,.98), rgba(205,75,130,.97)); border-bottom: 2px solid #e2b04e; box-shadow: 0 7px 18px rgba(97,23,55,.2); backdrop-filter: blur(12px); }
.newsletter-reader-toolbar > div { display: grid; gap: 3px; }
.newsletter-reader-toolbar small { color: #ffe3a1; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.newsletter-reader-toolbar strong { font-family: var(--serif); font-size: 1.05rem; }
.newsletter-reader-close { flex: 0 0 42px; width: 42px; height: 42px; color: #84395b; background: linear-gradient(145deg, #fff, #f6ccdc); border: 1px solid #e2af4c; border-radius: 50%; box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 4px 0 #995b1b; font-size: 1.55rem; line-height: 1; }
.newsletter-reader-page { width: min(100%, 850px); margin: 0 auto; padding: clamp(12px, 3vw, 27px); }
.newsletter-reader-page img { display: block; width: 100%; height: auto; border: 2px solid rgba(156,94,25,.56); border-radius: 7px; box-shadow: 0 15px 40px rgba(101,27,61,.22); }

@media (max-width: 720px) {
  .newsletter-feature-card { grid-template-columns: minmax(0, 1fr); padding: 24px 18px 29px; }
  .newsletter-cover-button { width: min(100%, 430px); margin: 0 auto; transform: translateY(-3px); }
  .newsletter-feature-copy { text-align: center; }
  .newsletter-topics { justify-content: center; }
  .newsletter-reader-dialog { width: calc(100% - 10px); max-height: calc(100dvh - 10px); border-radius: 21px; }
  .newsletter-reader-toolbar { padding-left: 15px; }
  .newsletter-reader-toolbar small { max-width: 220px; line-height: 1.35; }
  .newsletter-reader-toolbar strong { font-size: .92rem; }
  .newsletter-reader-page { padding: 8px; }
}

@media (max-width: 390px) {
  .newsletter-reader-toolbar small { display: none; }
  .newsletter-feature-copy h2 { font-size: 2.25rem; }
  .newsletter-cover-button > span { right: 16px; bottom: 16px; }
}

/* Interactive Student Module */
.portal-dashboard { width: min(100%, 1040px); }

.portal-course-card {
  position: relative;
  display: grid;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 35px);
  grid-template-columns: minmax(190px, 285px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 52px);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,228,240,.96) 64%, rgba(245,205,112,.88));
  border: 2px solid #d6a03a;
  border-radius: 34px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.91), inset -9px -11px 16px rgba(192,69,126,.08), 0 8px 0 #ca4f85, 0 15px 0 #9d621d, 0 29px 48px rgba(142,41,86,.2);
}

.portal-course-card::before { content: ""; position: absolute; top: 9px; left: 8%; width: 42%; height: 12px; background: linear-gradient(90deg, rgba(255,255,255,.92), transparent); border-radius: 999px; pointer-events: none; }
.portal-course-cover { position: relative; padding: 8px; background: linear-gradient(145deg, #fff, #efc86a 58%, #cb4f86); border: 1px solid #d39b37; border-radius: 22px; box-shadow: inset 5px 6px 8px rgba(255,255,255,.84), 0 7px 0 #a5661e, 0 17px 28px rgba(119,32,71,.25); transform: translateY(-3px); }
.portal-course-cover img { display: block; width: 100%; height: auto; border-radius: 14px; }
.portal-course-cover > span { position: absolute; top: 20px; left: -10px; padding: 8px 12px; color: #fff9ef; background: #9b315f; border: 1px solid #efc563; border-radius: 999px; box-shadow: 0 4px 0 #784411; font-size: .72rem; font-weight: 900; letter-spacing: .09em; }
.portal-course-copy { min-width: 0; }
.portal-course-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.portal-course-heading h2 { color: #8e3c60; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: .98; }
.portal-course-copy > p { margin: 16px 0 20px; color: #785867; font-size: 1rem; line-height: 1.68; }
.portal-module-status { flex: 0 0 auto; padding: 8px 11px; color: #944966; background: rgba(255,255,255,.78); border: 1px solid rgba(193,130,34,.4); border-radius: 999px; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.portal-module-status.is-complete { color: #754412; background: linear-gradient(145deg, #fff7fb, #f3ce72); }
.portal-progress-block { display: grid; gap: 9px; }
.portal-progress-block > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: #9b6d80; font-size: .82rem; }
.portal-progress-block strong { color: #963d66; }
.portal-progress-track { height: 13px; overflow: hidden; background: rgba(255,255,255,.72); border: 1px solid rgba(187,122,31,.36); border-radius: 999px; box-shadow: inset 2px 3px 5px rgba(116,32,70,.1); }
.portal-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #d64e8b, #ef88b6 64%, #edc35e); border-radius: inherit; transition: width .35s ease; }
.portal-course-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 25px; }
.portal-start-button,
.portal-ebook-link { display: inline-flex; min-height: 49px; padding: 0 20px; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-size: .88rem; font-weight: 850; text-decoration: none; }
.portal-start-button { color: #fffaf1; background: linear-gradient(145deg, #e35e9a, #ad2968); border: 1px solid #efc45f; box-shadow: inset 4px 5px 6px rgba(255,255,255,.27), 0 6px 0 #8a5116, 0 12px 20px rgba(129,34,75,.2); }
.portal-ebook-link { color: #89445f; background: rgba(255,255,255,.78); border: 1px solid rgba(193,131,35,.44); box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 4px 0 #c9872b; }

.module-dialog {
  width: min(calc(100% - 20px), 1120px);
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: hidden;
  color: #60404f;
  background: linear-gradient(145deg, #fffdf9, #fff0f6 68%, #ffe1ed);
  border: 3px solid #d69f39;
  border-radius: 30px;
  box-shadow: inset 8px 10px 14px rgba(255,255,255,.88), 0 8px 0 #c54d82, 0 15px 0 #98601d, 0 38px 100px rgba(60,7,29,.46);
}
.module-dialog::backdrop { background: rgba(54,6,27,.66); backdrop-filter: blur(8px); }
.module-toolbar { display: flex; min-height: 72px; padding: 12px 17px 12px 23px; align-items: center; justify-content: space-between; gap: 14px; color: #fffaf4; background: linear-gradient(120deg, #7d1b43, #cc4b82); border-bottom: 2px solid #e2b04e; box-shadow: 0 7px 18px rgba(95,22,53,.2); }
.module-toolbar > div:first-child { display: grid; gap: 3px; }
.module-toolbar small { color: #ffe1a0; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.module-toolbar strong { font-family: var(--serif); font-size: 1.08rem; }
.module-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.module-toolbar-actions a { padding: 9px 13px; color: #fff8df; border: 1px solid rgba(255,226,156,.58); border-radius: 999px; font-size: .78rem; font-weight: 850; text-decoration: none; }
.module-toolbar-actions button { display: grid; width: 41px; height: 41px; place-items: center; color: #84395a; background: linear-gradient(145deg, #fff, #f6ccdc); border: 1px solid #e2af4c; border-radius: 50%; box-shadow: inset 3px 4px 5px rgba(255,255,255,.9), 0 4px 0 #955718; font-size: 1.55rem; line-height: 1; }

.module-layout { display: grid; height: min(760px, calc(100dvh - 98px)); min-height: 0; grid-template-columns: 255px minmax(0, 1fr); }
.module-sidebar { padding: 23px 18px; overflow-y: auto; background: linear-gradient(180deg, rgba(255,221,235,.92), rgba(250,235,218,.9)); border-right: 1px solid rgba(179,116,30,.26); }
.module-mini-cover { width: 104px; margin: 0 auto 20px; padding: 5px; background: linear-gradient(145deg, #fff, #edc768); border: 1px solid #d19a38; border-radius: 12px; box-shadow: 0 5px 0 #a8661e, 0 12px 20px rgba(116,30,69,.2); }
.module-mini-cover img { display: block; width: 100%; border-radius: 8px; }
.module-sidebar > .eyebrow { margin-top: 22px; }
.module-sidebar > strong { display: block; margin: 5px 0 17px; color: #8f3c60; font-family: var(--serif); font-size: 1.35rem; }
.module-step-list { display: grid; gap: 9px; }
.module-step-list button { display: grid; width: 100%; min-height: 48px; padding: 8px 10px; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 9px; color: #85596b; text-align: left; background: rgba(255,255,255,.62); border: 1px solid rgba(188,125,31,.28); border-radius: 14px; font-size: .81rem; font-weight: 800; }
.module-step-list button span { display: grid; width: 30px; height: 30px; place-items: center; color: #8a4815; background: #f6d98e; border: 1px solid #d6a042; border-radius: 50%; font-size: .65rem; }
.module-step-list button.active { color: #813052; background: #fff; border-color: #d59c3a; box-shadow: 0 4px 0 rgba(190,67,119,.55); }

.module-workspace { min-width: 0; padding: clamp(26px, 5vw, 52px); overflow-y: auto; }
.module-step { max-width: 720px; margin: 0 auto; }
.module-step h2 { color: #8f3e61; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1; }
.module-step > p:not(.eyebrow) { margin: 17px 0 22px; color: #735664; font-size: 1rem; line-height: 1.72; }
.module-step blockquote { margin: 26px 0; padding: 22px 24px; color: #a13f6b; background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(255,220,235,.72)); border-left: 4px solid #d49a38; border-radius: 0 18px 18px 0; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.7rem); font-style: italic; line-height: 1.45; }
.module-choice-group,
.module-commitments { display: grid; margin: 25px 0 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; border: 0; }
.module-choice-group legend,
.module-commitments legend { grid-column: 1 / -1; margin-bottom: 4px; color: #87405f; font-weight: 850; }
.module-choice-group label,
.module-commitments label { display: flex; min-height: 50px; padding: 12px 14px; align-items: center; gap: 10px; color: #774d60; background: rgba(255,255,255,.76); border: 1px solid rgba(190,128,34,.36); border-radius: 15px; font-size: .92rem; font-weight: 750; }
.module-choice-group input,
.module-commitments input { width: 19px; height: 19px; accent-color: #c63e7c; }
.money-input-grid { display: grid; margin-top: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.money-input-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.money-input-grid label,
.module-action-note { display: grid; gap: 7px; color: #84415f; font-size: .88rem; font-weight: 820; }
.money-input-grid input,
.module-action-note textarea { width: 100%; min-width: 0; min-height: 51px; padding: 0 14px; color: #5d3f4d; background: rgba(255,255,255,.85); border: 1px solid rgba(188,125,31,.42); border-radius: 14px; font: inherit; font-size: 1rem; box-shadow: inset 2px 3px 5px rgba(103,27,61,.06); }
.module-action-note { margin-top: 17px; }
.module-action-note textarea { min-height: 110px; padding-top: 13px; resize: vertical; }
.money-result-card { display: grid; margin-top: 24px; padding: 22px; gap: 5px; background: linear-gradient(145deg, #fff, #f8d7e5 68%, #f4d487); border: 1px solid #d39a37; border-radius: 20px; box-shadow: inset 5px 6px 8px rgba(255,255,255,.86), 0 5px 0 #bf6f26; }
.money-result-card span { color: #9b6a7e; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.money-result-card strong { color: #913d62; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); }
.money-result-card strong.is-negative { color: #a24150; }
.money-result-card small { color: #7f5e6d; font-size: .84rem; line-height: 1.5; }
.module-affirmation { display: flex; margin-top: 25px; padding: 20px; align-items: center; gap: 14px; color: #9d3e69; background: linear-gradient(145deg, #fff, #f7d7e4); border: 1px solid rgba(194,131,35,.42); border-radius: 20px; }
.module-affirmation > span { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; color: #fff8e7; background: #cf4f87; border: 2px solid #efc360; border-radius: 50%; box-shadow: 0 4px 0 #925516; }
.module-affirmation p { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.module-complete-message { display: grid; margin-top: 20px; padding: 20px; gap: 5px; color: #774713; text-align: center; background: linear-gradient(145deg, #fffdf5, #f5d680); border: 1px solid #d19a38; border-radius: 18px; box-shadow: 0 5px 0 #b36b20; }
.module-complete-message strong { font-family: var(--serif); font-size: 1.55rem; }
.module-complete-message span { font-size: .9rem; line-height: 1.5; }
.module-footer { position: sticky; bottom: -1px; display: grid; max-width: 720px; margin: 34px auto -25px; padding: 17px 0 6px; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: linear-gradient(180deg, transparent, #fff2f7 32%); }
.module-footer button { min-height: 45px; padding: 0 16px; color: #88415e; background: rgba(255,255,255,.85); border: 1px solid rgba(190,128,34,.4); border-radius: 999px; font-weight: 850; }
.module-footer button:disabled { opacity: .45; }
.module-footer span { color: #9c7183; text-align: center; font-size: .8rem; font-weight: 800; }
.module-footer .module-next-button,
.module-footer .module-finish-button { color: #fffaf1; background: linear-gradient(145deg, #e25c98, #aa2865); border-color: #edc15c; box-shadow: 0 5px 0 #884f15; }

@media (max-width: 800px) {
  .portal-course-card { grid-template-columns: minmax(170px, 245px) minmax(0, 1fr); }
  .module-layout { grid-template-columns: 1fr; height: calc(100dvh - 88px); }
  .module-sidebar { display: block; padding: 13px 15px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid rgba(179,116,30,.26); white-space: nowrap; }
  .module-mini-cover,
  .module-sidebar > .eyebrow,
  .module-sidebar > strong { display: none; }
  .module-step-list { display: flex; width: max-content; }
  .module-step-list button { width: auto; min-width: 155px; }
  .module-workspace { padding: 29px 24px 34px; }
}

@media (max-width: 650px) {
  .portal-course-card { grid-template-columns: 1fr; padding: 23px 18px 29px; }
  .portal-course-cover { width: min(72vw, 300px); margin: 0 auto; }
  .portal-course-copy { text-align: center; }
  .portal-course-heading { align-items: center; flex-direction: column; }
  .portal-course-heading > div { width: 100%; }
  .portal-progress-block > div:first-child { align-items: center; flex-direction: column; gap: 4px; }
  .portal-course-actions { justify-content: center; }
  .module-dialog { width: calc(100% - 8px); max-height: calc(100dvh - 8px); border-radius: 20px; }
  .module-toolbar { padding: 10px 11px 10px 15px; }
  .module-toolbar small { display: none; }
  .module-toolbar-actions a { display: none; }
  .module-layout { height: calc(100dvh - 71px); }
  .module-workspace { padding: 27px 18px 31px; }
  .module-choice-group,
  .module-commitments,
  .money-input-grid,
  .money-input-grid.two-column { grid-template-columns: 1fr; }
  .module-footer { margin-bottom: -20px; grid-template-columns: auto 1fr auto; }
  .module-footer button { padding: 0 12px; font-size: .78rem; }
}

@media (max-width: 390px) {
  .module-toolbar strong { font-size: .94rem; }
  .module-step-list button { min-width: 143px; }
  .module-step h2 { font-size: 2rem; }
  .module-footer span { display: none; }
  .module-footer { grid-template-columns: auto 1fr; }
  .module-footer .module-next-button,
  .module-footer .module-finish-button { justify-self: end; }
}
