:root {
  --navy: #101f35;
  --navy-light: #233b59;
  --gold: #bd9858;
  --cream: #f5f3ee;
  --ink: #15263a;
  --muted: #677384;
  --line: #e1e4e7;
  --white: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  padding: 13px 19px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: var(--navy-light);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
header {
  background: var(--navy);
  padding: 24px max(5vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: white;
  letter-spacing: 3px;
  font-size: 18px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 6px;
  color: #c8d0da;
}
.monogram {
  font-family: Georgia, serif;
  color: #dfc08c;
  font-size: 32px;
  border: 1px solid #90794f;
  padding: 8px;
  letter-spacing: -3px;
  padding-right: 12px;
}
.quiet {
  background: transparent;
  color: #dce2eb;
  border-color: #657083;
  font-size: 13px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px 64px;
}
.intro {
  padding: 54px 0 38px;
  max-width: 700px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #94713c;
  margin: 0 0 15px;
  line-height: 1.6;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 0 0 20px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 18px;
}
h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.intro > p:last-child {
  color: var(--muted);
  font-size: 16px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  box-shadow: 0 15px 50px #192a3a08;
}
.login > div {
  max-width: 410px;
}
.login form {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.login button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 13px 12px;
  border-radius: 7px;
  border: 1px solid #ced4dc;
  background: #fcfcfb;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  padding: 15px 20px;
  border: 1px solid #bfd0c9;
  background: #edf6ef;
  border-radius: 8px;
  margin-bottom: 24px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fff0e9;
  border-color: #e7c7b7;
  color: #833c24;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.tab {
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 0;
  font-weight: 400;
  padding: 12px 14px;
}
.tab:hover {
  background: #e9e7e1;
}
.tab.selected {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
}
.pill {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 5px;
  background: #e7edf0;
  font-size: 11px;
  color: #34566a;
  font-weight: 700;
}
.pill.subtle {
  background: #f5f0e6;
  color: #8c6c38;
}
.billing-note {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 36px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 25px;
}
.section-title h2 {
  margin: 0;
}
.secondary {
  background: transparent;
  color: var(--navy);
  border-color: #c9cdd0;
  font-size: 12px;
  padding: 11px 14px;
}
.secondary:hover {
  background: #ebeef0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.video-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cover {
  height: 180px;
  background:
    radial-gradient(ellipse at 90% 20%, #49617855, transparent 65%),
    linear-gradient(125deg, #13263d, #263e57);
  color: #d9bd85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cover:after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #d5b97b35;
}
.cover-1 {
  background: linear-gradient(130deg, #4f534e, #1d3036);
}
.cover-2 {
  background: linear-gradient(130deg, #625746, #283341);
}
.cover-logo {
  font:
    52px Georgia,
    serif;
  letter-spacing: -5px;
}
.cover-caption {
  font-size: 8px;
  letter-spacing: 4px;
  margin-top: 12px;
}
.card-body {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.card-body .eyebrow {
  font-size: 9px;
}
.card-body button {
  margin-top: auto;
  width: 100%;
}
.description {
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
}
.card-body .description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editor-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
.editor-layout > .panel {
  position: sticky;
  top: 24px;
}
.editor-layout .panel {
  padding: 25px;
}
.editor-layout form > button {
  width: 100%;
}
.editor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 18px;
}
.labels {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.media-status {
  font-size: 12px;
  color: #5e6974;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.file-label {
  font-size: 12px;
  margin-top: 18px;
}
.file-label input {
  padding: 9px;
  font-size: 12px;
}
.empty {
  padding: 40px 24px;
  border: 1px dashed #c9ced4;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1/-1;
  margin: 0;
}
.grid h3,
.editor-card h3 {
  overflow-wrap: anywhere;
}
dialog {
  width: min(960px, 94vw);
  padding: 25px;
  border: 1px solid #465568;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  max-height: 94vh;
}
dialog::backdrop {
  background: #07101bd9;
}
.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.player-heading h2 {
  font-size: 23px;
  margin: 0;
}
.player-heading button {
  color: white;
  border-color: #738299;
}
video {
  display: block;
  width: 100%;
  max-height: 64vh;
  background: #070b11;
  border-radius: 6px;
}
dialog .muted {
  color: #afbac7;
}
#playerMessage {
  font-size: 13px;
  color: #e2c28d;
}
footer {
  border-top: 1px solid var(--line);
  padding: 32px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 20px;
}
footer span {
  font-size: 12px;
  letter-spacing: 3px;
}
footer p {
  font-size: 12px;
  margin: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-layout > .panel {
    position: static;
  }
  .login {
    gap: 30px;
  }
  .toolbar {
    align-items: flex-start;
  }
}
@media (max-width: 580px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 2px;
  }
  .brand small {
    font-size: 9px;
  }
  .monogram {
    font-size: 26px;
  }
  main {
    padding: 0 20px 40px;
  }
  .intro {
    padding: 36px 0 22px;
  }
  .login {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
  .login form {
    max-width: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar {
    flex-direction: column;
  }
  .intro h1 {
    font-size: 44px;
  }
  .cover {
    height: 190px;
  }
  .quiet {
    padding: 9px;
  }
  .panel {
    padding: 24px;
  }
  h2 {
    font-size: 26px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .player-heading {
    align-items: flex-start;
  }
  .player-heading h2 {
    font-size: 20px;
  }
}

.plans-link {
  color: #e0c18b;
  font-size: 13px;
  text-decoration: none;
  margin-left: auto;
}
.plans-link:hover {
  text-decoration: underline;
}
.plans-section {
  margin-top: 48px;
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 28px;
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 25px #b6945812;
}
.plan-card h3 {
  font:
    30px Georgia,
    serif;
  margin-bottom: 6px;
}
.plan-card p:not(.eyebrow):not(.plan-price) {
  font-size: 13px;
  color: var(--muted);
}
.plan-card .plan-duration {
  margin: 0;
}
.plan-card .plan-price {
  font:
    29px Georgia,
    serif;
  margin: 26px 0 8px;
}
.plan-card button {
  margin-top: auto;
}
@media (max-width: 720px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plans-link {
    font-size: 11px;
  }
  header {
    flex-wrap: wrap;
  }
  .plans-grid .plan-card {
    padding: 24px;
  }
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.login form[hidden],
.auth-actions button[hidden] {
  display: none;
}

.offer-section {
  margin: 32px 0;
}
.offer-section input {
  max-width: 320px;
}

/* Biblioteca de vídeo: a loja pública não faz parte da sessão autenticada. */
body.library-mode {
  --library-bg: #111e31;
  --library-ink: #f5f3ef;
  --library-muted: #b7c9df;
  --library-accent: #f0c879;
  background: var(--library-bg);
  color: var(--library-ink);
}
.library-mode > header {
  background: #111e31;
  border-bottom: 1px solid #2a3c42;
  padding-block: 16px;
}
.library-mode main {
  width: min(93%, 1400px);
  margin-inline: auto;
}
.library-mode #workspace {
  max-width: none;
  padding-block: clamp(1rem, 3vw, 3rem) 4rem;
}
.library-mode .toolbar {
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
}
.library-mode .section-title h2 {
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  letter-spacing: -0.04em;
}
.library-mode #catalogPanel .eyebrow {
  color: var(--library-accent);
}
.library-mode .toolbar .tab {
  color: #f5f3ef;
}
.library-mode .toolbar .tab.selected {
  color: #182027;
  background: #f0c879;
  border-color: #f0c879;
}
.library-mode #catalogPanel button.secondary {
  color: var(--library-ink);
  background: #253740;
  border-color: #47606a;
}
.library-mode #catalogPanel button.secondary:not(:disabled):hover {
  background: #354e58;
}
.library-mode #catalogPanel .empty {
  color: #c4d0cc;
  background: #18282f;
  border-color: #3b5057;
}
.library-shelves {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: clamp(1.65rem, 4vw, 3rem);
}
.weekly-spotlight {
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: clamp(15rem, 30vw, 25rem);
  display: grid;
  align-content: center;
  border-radius: 22px;
  border: 1px solid #566263;
  padding: clamp(1.4rem, 5vw, 4rem);
  background:
    radial-gradient(
      ellipse at 82% 14%,
      #d99151 0%,
      #594d41 28%,
      transparent 57%
    ),
    linear-gradient(115deg, #151d22 24%, #284b73 80%);
  box-shadow: 0 14px 40px #0004;
}
.weekly-spotlight::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 91% 33%,
    transparent 0 24px,
    #ffe6b024 25px 26px,
    transparent 27px 44px
  );
  mask-image: linear-gradient(90deg, transparent 35%, black);
}
.weekly-spotlight > h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.weekly-spotlight > p:not(.eyebrow) {
  max-width: 45ch;
  color: #e1e9e5;
  line-height: 1.6;
}
.weekly-spotlight > .library-shelf {
  margin-top: 0.8rem;
}
.shelf-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.32rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.shelf-subtitle {
  color: #e1e9e5;
  margin: -0.4rem 0 1rem;
}
.shelf-row {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 44vw, 18rem);
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: #85999b transparent;
  padding: 4px 4px 0.8rem;
}
.shelf-row:focus-visible {
  outline: 2px solid var(--library-accent);
  outline-offset: 2px;
}
.shelf-row .video-card {
  scroll-snap-align: start;
  background: #1b3351;
  border-color: #435861;
  color: var(--library-ink);
}
.shelf-row .cover {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: radial-gradient(
    ellipse at 85% 22%,
    #ab794c,
    #544637 34%,
    #182e35 74%
  );
}
.shelf-row .cover-1 {
  background: radial-gradient(
    ellipse at 82% 18%,
    #5f948f,
    #3a5d5a 38%,
    #132529 76%
  );
}
.shelf-row .cover-2 {
  background: radial-gradient(
    ellipse at 85% 14%,
    #aa7472,
    #573b4d 39%,
    #1e262e 77%
  );
}
.shelf-row .card-body .muted,
.shelf-row .description {
  color: var(--library-muted);
}
.shelf-row .card-body > h3 {
  overflow-wrap: anywhere;
}
.library-mode footer {
  background: #111e31;
  color: #dce2df;
}
.library-mode #adminPanel .panel {
  color: var(--ink);
}
@media (max-width: 560px) {
  .library-mode #catalogPanel .section-title {
    align-items: flex-start;
  }
  .library-mode #refreshCatalog {
    padding: 0.45rem 0.65rem;
    max-width: 10rem;
  }
  .shelf-row {
    grid-auto-columns: 72%;
  }
}
.metadata-editor {
  margin-block: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 0.7rem;
}
.metadata-editor summary {
  cursor: pointer;
  font-weight: 700;
}
.metadata-editor form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.weekly-schedule {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.weekly-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.95rem;
  border: 1px solid #53666b;
  border-radius: 12px;
  background: #14232be8;
}
.weekly-slot[data-release="available"] {
  border-color: #bb986d;
  background: #1b3656;
}
.weekly-slot[data-release="today"] {
  border-color: var(--library-accent);
  background: #243d5d;
}
.weekly-slot time {
  color: var(--library-accent);
  font-size: 0.82rem;
  font-weight: 750;
}
.weekly-slot h4 {
  margin: 0.4rem 0;
  overflow-wrap: anywhere;
}
.weekly-slot .weekly-status {
  margin: 0.45rem 0;
  color: var(--library-muted);
  font-size: 0.85rem;
}
.weekly-slot button {
  margin-top: auto;
}
@media (min-width: 1180px) {
  .weekly-schedule {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .weekly-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weekly-slot {
    padding: 0.7rem;
  }
}

/* Member app shell. Public landing and account screens keep their own theme. */
body.library-mode {
  --library-bg: #111e31;
  --library-ink: #fcf8ef;
  --library-muted: #c1cde0;
  --library-accent: #eac577;
  --member-line: #354b69;
  background: var(--library-bg);
}
.library-mode > header,
.library-mode footer {
  background: #15253b;
  border-color: var(--member-line);
}
.library-mode main {
  width: min(100%, 1220px);
}
.library-mode .toolbar {
  border-color: var(--member-line);
}
.library-mode .toolbar nav,
.member-main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.library-mode .toolbar .tab {
  border: 1px solid transparent;
  border-radius: 0.65rem;
  min-height: 44px;
}
.library-mode .toolbar .tab:hover {
  background: #223957;
}
.library-mode .toolbar .tab.selected {
  background: #294464;
  color: var(--library-accent);
  border-color: #8d754a;
}
.core-tab {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}
.library-mode #workspace h1 {
  font-size: clamp(2rem, 6vw, 3.3rem);
  letter-spacing: -0.045em;
}
.library-mode #workspace .eyebrow {
  color: var(--library-accent);
}
.library-mode #todayCatalog .empty,
.audio-empty,
.member-profile-card {
  padding: clamp(1.3rem, 4vw, 2.25rem);
  border: 1px solid var(--member-line);
  background: #172941;
  color: var(--library-ink);
  border-radius: 16px;
}
.audio-empty > p,
.member-profile-card > p {
  color: var(--library-muted);
}
.audio-empty > p:first-child {
  color: var(--library-ink);
  margin-top: 0;
  font-weight: 700;
}
.library-mode .weekly-spotlight {
  border-radius: 18px;
  border-color: var(--member-line);
  background: #172941;
  box-shadow: none;
  min-height: 0;
  padding: clamp(1rem, 3vw, 2rem);
}
.library-mode .weekly-spotlight::after {
  display: none;
}
.library-mode .weekly-spotlight > h3 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}
.library-mode .weekly-slot {
  background: #182d48;
  border-color: #454039;
}
.library-mode .weekly-slot[data-release="today"],
.library-mode .weekly-slot[data-release="available"] {
  border-color: #957646;
}
.library-mode .weekly-slot[data-release="today"] {
  background: #264568;
}
.member-feature {
  overflow: hidden;
  min-height: clamp(18rem, 35vw, 26rem);
  display: grid;
  align-content: end;
  border: 1px solid #6d5b3a;
  border-radius: 18px;
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, #15100de8, #15100d44 85%),
    repeating-radial-gradient(
      ellipse at 80% 24%,
      #fbe7b32a 0 1px,
      transparent 2px 20px
    ),
    radial-gradient(ellipse at 78% 24%, #a77b45, #573c2a 40%, #1c1713 78%);
}
.member-feature-copy {
  max-width: 50ch;
  overflow-wrap: anywhere;
}
.member-feature-copy h2 {
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.member-feature-duration {
  color: #f1ddbe;
  font-size: 0.86rem;
}
.library-mode #catalogPanel .member-feature button.secondary,
.library-mode #todayPanel .member-feature button.secondary {
  background: var(--library-accent);
  border-color: var(--library-accent);
  color: #21190c;
}
.library-mode #catalogPanel .member-feature button.secondary:hover,
.library-mode #todayPanel .member-feature button.secondary:hover {
  background: #f9d994;
}
.member-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.member-topics a {
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #5e513a;
  color: var(--library-accent);
  background: #1a3150;
}
.member-topics a:hover {
  background: #254565;
}
.library-mode .shelf-row .video-card {
  background: #1b3351;
  border-color: var(--member-line);
}
.library-mode #catalogPanel .empty {
  background: #172941;
  border-color: var(--member-line);
}
.library-mode #catalogPanel button.secondary,
.library-mode .weekly-slot button.secondary {
  background: #203b5e;
  border-color: #68573d;
  color: var(--library-ink);
}
.library-mode #catalogPanel button.secondary:not(:disabled):hover,
.library-mode .weekly-slot button.secondary:not(:disabled):hover {
  background: #294d75;
}
@media (max-width: 700px) {
  .library-mode {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .library-mode .member-main-nav {
    position: fixed;
    z-index: 8;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15rem;
    padding: 0.38rem max(0.5rem, env(safe-area-inset-right, 0px))
      calc(0.38rem + env(safe-area-inset-bottom, 0px))
      max(0.5rem, env(safe-area-inset-left, 0px));
    background: #13243c;
    border-top: 1px solid #483f30;
    border-radius: 0.9rem 0.9rem 0 0;
    box-shadow: 0 -8px 25px #0008;
  }
  .library-mode .member-main-nav .tab {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.2rem;
    font-size: 0.78rem;
  }
  .library-mode .toolbar {
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 0;
  }
  .library-mode .toolbar nav {
    width: 100%;
    justify-content: flex-end;
  }
  .library-mode .toolbar .member-extra {
    padding: 0.45rem 0.7rem;
  }
  .library-mode .weekly-schedule {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(7.5rem, 36%);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 4px 0.65rem;
    scrollbar-color: #78674a transparent;
  }
  .library-mode .weekly-slot {
    scroll-snap-align: start;
  }
  .library-mode .weekly-slot > button {
    padding: 0.4rem 0.55rem;
  }
}
.library-mode .weekly-schedule:focus-visible,
.library-mode .library-shelf:focus-visible {
  outline: 2px solid var(--library-accent);
  outline-offset: 3px;
}

.library-mode .member-brand-group {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 2.5vw, 1rem);
}
.member-menu {
  position: relative;
}
.member-menu > button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--library-accent);
  border-color: #68573d;
}
.member-check-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.45rem, 4vw, 2.6rem);
  border: 1px solid #68573d;
  border-radius: 16px;
  background: #1a304d;
  color: var(--library-ink);
  padding: clamp(1rem, 3vw, 1.7rem);
}
.member-check-in .eyebrow {
  margin: 0 0 0.45rem;
}
.member-check-in h2 {
  margin: 0;
}
.check-in-status {
  color: var(--library-muted);
  margin-bottom: 0;
}
.member-check-in button.secondary {
  min-height: 44px;
  flex-shrink: 0;
  background: var(--library-accent);
  border-color: var(--library-accent);
  color: #21190c;
}
.member-check-in button.secondary:disabled {
  opacity: 1;
  background: #264568;
  color: var(--library-accent);
  border-color: #68573d;
}
@media (max-width: 460px) {
  .member-check-in {
    align-items: stretch;
    flex-direction: column;
  }
}

#achievementsPanel > .eyebrow {
  margin-top: 1.3rem;
}
#achievementsProgress {
  color: var(--library-muted);
}
.achievements-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem;
}
.achievement-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid #354b69;
  background: #172941;
  color: var(--library-muted);
}
.achievement-card[data-earned="true"] {
  color: #fcf2dc;
  border-color: #ac894b;
  background: linear-gradient(145deg, #29486c, #172941 80%);
}
.achievement-badge {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  margin-bottom: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.25rem;
}
.achievement-card[data-earned="true"] .achievement-badge,
.achievement-card[data-earned="true"] .achievement-state {
  color: var(--library-accent);
}
.achievement-card h2 {
  font-size: 1.2rem;
  margin: 0;
}
.achievement-card p {
  font-size: 0.86rem;
  margin-bottom: 0;
}
.achievement-state {
  font-weight: 700;
}
@media (min-width: 340px) and (max-width: 560px) {
  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#profilePanel {
  position: fixed;
  inset: clamp(4.8rem, 10vh, 6rem) auto auto max(5vw, 24px);
  margin: 0;
  inline-size: min(31rem, calc(100vw - max(5vw, 24px) - 1rem));
  max-inline-size: none;
  max-block-size: min(80vh, calc(100dvh - 7rem));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #577595;
  border-radius: 1rem;
  background: #152941;
  color: var(--library-ink);
  box-shadow: 0 1.2rem 3.2rem #071323bb;
}
#profilePanel::backdrop {
  background: #071423b0;
}
.profile-dialog-content {
  padding: clamp(0.9rem, 3vw, 1.5rem);
}
.profile-dialog-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 0.35rem;
  align-items: center;
}
#profileHeading {
  grid-column: 2;
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
}
#closeProfile {
  min-height: 44px;
  padding: 0;
  font-size: 1.4rem;
  color: var(--library-accent);
  border-color: #577595;
}
@media (max-width: 580px) {
  #profilePanel {
    inset: max(4.7rem, env(safe-area-inset-top, 0px)) 1rem auto;
    inline-size: auto;
    max-block-size: min(
      82vh,
      calc(100dvh - 6rem - env(safe-area-inset-bottom, 0px))
    );
  }
}
.profile-identity {
  position: relative;
  isolation: isolate;
  padding: 1.5rem 0 0;
  text-align: center;
  overflow: hidden;
}
.profile-identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 50% -142%,
      transparent 62%,
      #af884440 62.5%,
      transparent 63.2%
    ),
    radial-gradient(ellipse at 50% 25%, #94642e41, transparent 67%);
}
.profile-portrait {
  width: clamp(100px, 27vw, 136px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  background: #1b3656;
  border: 2px solid #ca9c51;
  box-shadow: 0 0 32px #c69e5233;
  border-radius: 50%;
  overflow: hidden;
  color: var(--library-accent);
  font:
    2rem Georgia,
    serif;
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-identity h2 {
  overflow-wrap: anywhere;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  text-align: center;
}
.profile-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 0.8rem 0.35rem;
  border-radius: 0.8rem;
  border: 1px solid #6d5635;
  background: #1a304d;
}
.profile-stats dt {
  color: var(--library-muted);
  font-size: 0.84rem;
}
.profile-stats dd {
  margin: 0 0 0.3rem;
  color: var(--library-accent);
  font-size: 1.55rem;
  font-weight: 700;
}
.profile-rows,
#profileForm fieldset {
  display: grid;
  gap: 0.6rem;
}
.profile-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  min-height: 53px;
  align-items: center;
  text-align: left;
  border-color: #624d32;
  background: #172b46;
  color: var(--library-ink);
}
.profile-row:hover {
  background: #244467;
}
.profile-row svg,
.profile-row > :last-child {
  color: var(--library-accent);
}
#profileForm {
  margin-top: 1rem;
}
#profileForm fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
#profileForm legend {
  color: var(--library-accent);
  padding: 0 0 0.7rem;
  font-weight: 700;
}
#profileForm label {
  min-width: 0;
}
#profileForm input {
  display: block;
  max-width: 100%;
  color: #111e31;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.achievements-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0.25rem;
  align-items: center;
}
.achievements-header h1 {
  text-align: center;
  margin: 0;
}
#achievementsBack {
  min-height: 44px;
  padding: 0;
  font-size: 1.3rem;
  color: var(--library-accent);
  border-color: #6d5635;
}
.achievement-card {
  text-align: center;
}
.achievement-badge {
  width: clamp(2.35rem, 10vw, 4rem);
  margin-inline: auto;
  font-size: clamp(1.2rem, 5vw, 2rem);
  background: radial-gradient(circle at 35% 20%, #395879, #172941);
  box-shadow: inset 0 0 0 3px #17141154;
}
.achievement-card[data-earned="true"] .achievement-badge {
  background: radial-gradient(circle at 35% 20%, #356089, #1c3959);
}
@media (min-width: 390px) and (max-width: 560px) {
  .achievements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .achievement-card {
    padding: 0.7rem 0.4rem;
  }
  .achievement-card h2 {
    font-size: 0.98rem;
  }
}

/* Jornada LB visual identity: azul profundo, horizonte e luz dourada. */
:root {
  --navy: #101f35;
  --navy-light: #25466d;
  --gold: #c4a361;
  --jornada-blue: #172c48;
  --jornada-blue-lit: #285177;
  --jornada-gold: #efcc87;
  --jornada-mist: #c1cfe2;
}
body:not(.library-mode) {
  background: var(--navy);
  color: #f5f3ef;
}
body:not(.library-mode) > header {
  border-bottom: 1px solid #3b4d66;
  padding-block: clamp(0.8rem, 2vw, 1.3rem);
}
body:not(.library-mode) > main {
  width: min(100%, 1320px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.8rem);
  margin-inline: auto;
  padding-top: clamp(1.15rem, 5vw, 3.5rem);
}
body:not(.library-mode) > main > :not(#publicIntro):not(#loginPanel) {
  grid-column: 1 / -1;
}
body:not(.library-mode) > main > #notice {
  grid-row: 1;
  margin-bottom: 0;
}
#publicIntro {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: clamp(1.8rem, 5vw, 4.5rem);
  min-height: clamp(20rem, 39vw, 33rem);
  max-width: none;
  border: 1px solid #45617d;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #142841 17%, #23496b 77%, #305b80);
}
#publicIntro::before,
#publicIntro::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
#publicIntro::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 100%, #dfb56e69, transparent 34%),
    repeating-linear-gradient(
      158deg,
      transparent 0 24px,
      #91b8de18 25px 26px,
      transparent 27px 38px
    );
  mask-image: linear-gradient(145deg, transparent 16%, #000 85%);
}
#publicIntro::after {
  width: 72%;
  aspect-ratio: 2;
  right: -17%;
  bottom: -16%;
  transform: rotate(-9deg);
  border-top: 1px solid #efcc87aa;
  border-radius: 50%;
  box-shadow: 0 -12px 50px #efcc8740;
}
#publicIntro h1 {
  max-width: 13ch;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5.5vw, 5.1rem);
}
#publicIntro > p:last-child {
  color: #e3ecf6;
  max-width: 32ch;
  margin-bottom: 0;
}
#publicIntro .eyebrow,
#loginPanel .eyebrow {
  color: var(--jornada-gold);
}
#loginPanel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  background: #192d47;
  border-color: #466083;
  color: #f5f3ef;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.25rem;
  box-shadow: 0 18px 38px #090f1c70;
}
#loginPanel .login-intro,
#loginPanel form {
  max-width: none;
}
#loginPanel .login-intro {
  display: grid;
  gap: 0.65rem;
}
#loginPanel .login-intro > .eyebrow {
  margin: 0;
  align-self: end;
}
#loginPanel #authTitle {
  margin: -0.65rem 0 -0.4rem;
}
#loginPanel .login-intro > p:not(.muted):not(.eyebrow) {
  margin: 0;
  color: var(--jornada-mist);
}
#loginPanel > .auth-actions {
  order: 2;
  margin: 0;
}
#loginPanel > .muted {
  order: 3;
  margin: 0;
}
#loginPanel .muted {
  color: var(--jornada-mist);
}
#loginPanel label {
  margin-bottom: 0.9rem;
}
#loginPanel label input {
  min-height: 44px;
  border-color: #6684a4;
  background: #f2f6fb;
}
#loginPanel form button:not(.secondary) {
  min-height: 44px;
  color: #111e31;
  background: var(--jornada-gold);
  border-color: var(--jornada-gold);
}
#loginPanel form button:not(.secondary):hover {
  background: #ffe1a8;
}
#loginPanel .auth-actions .secondary {
  min-height: 44px;
  color: #f4e1b5;
  background: #203852;
  border-color: #597390;
}
#loginPanel .auth-actions .secondary:hover {
  background: #28496c;
}
body:not(.library-mode) .plans-section {
  margin: 2rem 0 0;
}
body:not(.library-mode) #planos .eyebrow,
body:not(.library-mode) #oferta .eyebrow {
  color: var(--jornada-gold);
}
body:not(.library-mode) .plan-card,
body:not(.library-mode) #oferta {
  background: #192d47;
  color: #f5f3ef;
  border-color: #57708e;
}
body:not(.library-mode) .plan-card.featured {
  border-color: var(--jornada-gold);
}
body:not(.library-mode) .plan-card p:not(.eyebrow):not(.plan-price),
body:not(.library-mode) #oferta .muted {
  color: var(--jornada-mist);
}
body:not(.library-mode) .plan-card button:disabled,
body:not(.library-mode) #oferta button:disabled {
  opacity: 1;
  background: #28415d;
  color: #bac6d6;
  border-color: #516681;
}
.library-mode .member-feature {
  border-color: #527398;
  background:
    linear-gradient(90deg, #131d2df5, #13213d40 90%),
    repeating-linear-gradient(
      155deg,
      transparent 0 18px,
      #a8caea2a 19px 20px,
      transparent 21px 36px
    ),
    radial-gradient(ellipse at 80% 85%, #b28c57, #325b81 38%, #172d4a 74%);
}
.library-mode .shelf-row .cover {
  background: radial-gradient(
    ellipse at 79% 15%,
    #b18e56,
    #365a7a 43%,
    #182f4d 78%
  );
}
.library-mode .shelf-row .cover-1 {
  background: radial-gradient(
    ellipse at 82% 20%,
    #6b9fc5,
    #335a82 41%,
    #182e4e 78%
  );
}
.library-mode .shelf-row .cover-2 {
  background: radial-gradient(
    ellipse at 82% 14%,
    #8195c9,
    #3e4a76 45%,
    #192d47 78%
  );
}
.library-mode .profile-identity {
  padding-block: 1.4rem 0.55rem;
}
.library-mode .profile-identity::before {
  background:
    linear-gradient(
      156deg,
      transparent 43%,
      #6e91b957 43.2%,
      transparent 43.6%
    ),
    radial-gradient(ellipse at 50% 30%, #34649180, transparent 68%);
}
.library-mode .profile-portrait {
  border-color: var(--jornada-gold);
  box-shadow:
    0 0 0 5px #4b769136,
    0 0 30px #7eabd04d;
}
.library-mode .profile-stats div {
  border-color: #527398;
}
.library-mode .achievement-card[data-earned="true"] {
  border-color: #c4a361;
}
.library-mode .achievement-badge {
  box-shadow: inset 0 0 0 3px #111e31;
}
@media (max-width: 720px) {
  body:not(.library-mode) > main {
    grid-template-columns: minmax(0, 1fr);
  }
  #publicIntro {
    min-height: 0;
    padding: 1.35rem 1.15rem;
  }
  #publicIntro h1 {
    font-size: clamp(2.05rem, 8vw, 3rem);
    margin-bottom: 0.5rem;
  }
  #publicIntro .eyebrow {
    margin-bottom: 0.5rem;
  }
  #publicIntro > p:last-child {
    font-size: 0.95rem;
  }
}

/* Public front door: product story, comparison, then sign-in. */
body:not(.library-mode) > main {
  display: block;
  padding-top: clamp(1rem, 3vw, 2rem);
}
.public-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 2vw, 1.1rem);
}
.public-header-actions .plans-link {
  margin-left: 0;
}
.locale-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding-inline: 0.5rem 0.2rem;
  color: #e3edf9;
  min-height: 44px;
  border: 1px solid #607993;
  border-radius: 0.5rem;
  background: #162b46;
}
.locale-menu select {
  width: auto;
  margin: 0;
  padding: 0.25rem;
  background: #162b46;
  color: #edf4fd;
  border: 0;
}
.landing-button {
  display: inline-grid;
  place-items: center;
  text-align: center;
  min-height: 44px;
  padding: 0.62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
}
.landing-button--gold {
  color: #101f35;
  background: var(--jornada-gold);
  border-color: var(--jornada-gold);
}
.landing-button--gold:hover {
  background: #ffe1a8;
}
.landing-button--outline {
  background: #172d49;
  border-color: #8aa2ba;
  color: #f6f9ff;
}
.landing-button--outline:hover {
  background: #264b72;
}
#publicIntro {
  min-height: clamp(22rem, 43vw, 34rem);
  justify-items: center;
  text-align: center;
  background: linear-gradient(155deg, #13243c 14%, #1f3f62 75%, #2d557b);
}
#publicIntro h1 {
  max-width: 15ch;
}
#publicIntro > .landing-lead {
  max-width: 45ch;
  color: #e3ecf6;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.landing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}
#planos,
#loginPanel {
  scroll-margin-top: 1rem;
}
body:not(.library-mode) .plans-section {
  margin: clamp(2rem, 6vw, 4.5rem) 0 0;
}
.plans-heading .muted {
  color: var(--jornada-mist);
}
.billing-note {
  color: #c1cfe2;
}
.landing-reasons {
  margin-block: clamp(2rem, 6vw, 4.5rem);
}
.landing-reasons > .eyebrow {
  color: var(--jornada-gold);
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.reason-card {
  padding: clamp(0.9rem, 2.5vw, 1.4rem);
  border-radius: 0.9rem;
  border: 1px solid #466383;
  background: linear-gradient(143deg, #192e4a, #13243c);
}
.reason-card h3 {
  margin: 0.65rem 0 0.4rem;
  font-size: 1.05rem;
}
.reason-card p {
  margin: 0;
  color: var(--jornada-mist);
  font-size: 0.9rem;
}
.reason-icon {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  border: 1px solid #7c7c71;
  color: var(--jornada-gold);
  font-weight: 700;
}
#loginPanel {
  width: min(100%, 630px);
  margin: 0 auto;
}
#notice:not([hidden]) {
  margin-block: 1rem;
}
@media (max-width: 850px) {
  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #publicIntro {
    min-height: 20rem;
    padding: 1.2rem;
  }
  .public-header-actions .plans-link {
    display: none;
  }
  body:not(.library-mode) > header {
    padding-inline: 1rem;
    gap: 0.55rem;
  }
  .public-header-actions .landing-button {
    padding-inline: 0.7rem;
  }
  .locale-menu {
    padding-inline: 0.25rem 0.1rem;
  }
  .locale-menu > span {
    display: none;
  }
}
@media (max-width: 380px) {
  .landing-reasons .reasons-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.billing-summary {
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.billing-summary-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.billing-summary-heading .eyebrow {
  margin-bottom: 0.4rem;
}
.billing-summary-heading h3 {
  margin-bottom: 0;
}
.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.billing-summary-grid div {
  background: #edf2f8;
  border-radius: 0.65rem;
  padding: 0.7rem;
  overflow-wrap: anywhere;
}
.billing-summary-grid dt {
  font-size: 0.85rem;
}
.billing-summary-grid dd {
  margin: 0.3rem 0 0;
  font-weight: 700;
  font-size: 1.3rem;
}
@media (max-width: 370px) {
  .billing-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Editorial tools use light cards on the same navy frame as the member app. */
.library-mode #adminPanel {
  --editor-surface: #ffffff;
  --editor-ink: #15263a;
  --editor-muted: #536176;
}
.library-mode #adminPanel .editor-card,
.library-mode #adminPanel .panel {
  background: var(--editor-surface);
  color: var(--editor-ink);
}
.library-mode #adminPanel .editor-card .description,
.library-mode #adminPanel .media-status,
.library-mode #adminPanel .panel .muted {
  color: var(--editor-muted);
}
.library-mode #adminPanel .metadata-editor {
  color: var(--editor-ink);
  border-color: #7d8ea4;
  background: #f7f9fc;
}
.library-mode #adminPanel #refreshAdmin {
  color: #f5f8ff;
  background: #25466d;
  border-color: #91aac4;
  min-height: 44px;
}
.library-mode #adminPanel #refreshAdmin:not(:disabled):hover {
  background: #365a82;
}
.library-mode #adminPanel #refreshAdmin:disabled {
  opacity: 1;
  color: #dbe6f5;
  background: #243650;
}
.library-mode #adminPanel .empty {
  color: #dbe6f5;
  background: #1a304d;
  border-color: #829ab5;
}
.library-mode
  #adminPanel
  :is(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #24588d;
  outline-offset: 3px;
}
.library-mode #adminPanel #refreshAdmin:focus-visible {
  outline-color: #efcc87;
}
.library-mode #adminPanel > .section-title .eyebrow {
  color: #efcc87;
}
.library-mode #adminPanel .pill.subtle {
  color: #735622;
}

/* Keep short signed-in tabs on the navy viewport with the footer at the bottom. */
:root:has(> body.library-mode) {
  background: #111e31;
}
body.library-mode {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.library-mode > main {
  flex: 1 0 auto;
  margin-block: 0;
}
body.library-mode > :is(header, footer) {
  flex-shrink: 0;
}

.library-mode #audioPanel button.secondary {
  background: #203b5e;
  border-color: #6887a9;
  color: var(--library-ink);
}
.library-mode #audioPanel button.secondary:not(:disabled):hover {
  background: #294d75;
}
#audioCatalog {
  margin-top: 1rem;
}
#audioCatalog .empty {
  color: #dbe6f5;
  background: #1a304d;
  border-color: #6887a9;
}
#audioPlayer {
  width: 100%;
  margin: 0.5rem 0;
}

.bible-fab {
  position: fixed;
  display: grid;
  place-items: center;
  z-index: 9;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: #203b5e;
  color: #efcc87;
  border-color: #bda171;
  box-shadow: 0 3px 16px #081426b0;
}
.bible-fab:hover {
  background: #33557c;
}
.player-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.player-actions .secondary {
  min-height: 44px;
}
@media (max-width: 700px) {
  .bible-fab {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
.player-actions .secondary:hover {
  background: #294d75;
}

/* On small screens the result stays alongside the action, not above the hero. */
#loginPanel .auth-inline-feedback {
  margin: 0;
  scroll-margin-block: 1rem;
}
#loginPanel .auth-inline-feedback:not(:empty) {
  border: 1px solid #83aacb;
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  color: #f2f7ff;
  background: #1b3554;
  text-align: start;
  overflow-wrap: anywhere;
}
#loginPanel .auth-inline-feedback[data-state="error"] {
  border-color: #f6aea7;
  color: #ffe8e4;
  background: #572d39;
}
