:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-elevated: #121214;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f6f2ec;
  --muted: rgba(246, 242, 236, 0.76);
  --muted-soft: rgba(246, 242, 236, 0.56);
  --gold: #e5bf86;
  --green: #22b96f;
  --green-deep: #158653;
  --blue-glow: rgba(62, 117, 255, 0.24);
  --gold-glow: rgba(229, 191, 134, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

/* Account v9: compact SHINE actions, exact Bible ranges, and visible media work. */
.account-body .folder-add-popover .folder-source-action {
  display: flex;
  min-height: 48px;
  padding: 8px 12px;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid #163f67;
  border-radius: 6px;
  background: #194d7d;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(18, 58, 94, 0.12);
}

.account-body .folder-add-popover .folder-source-action:hover,
.account-body .folder-add-popover .folder-source-action:focus-visible {
  border-color: #0e3152;
  background: #123e68;
}

.account-body .folder-add-popover .folder-source-folder,
.account-body .folder-add-popover .folder-source-folder:hover,
.account-body .folder-add-popover .folder-source-folder:focus-visible {
  border-color: #111719;
  background: #111719;
  color: #ffffff;
}

.account-body .folder-add-popover .folder-source-symbol {
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  line-height: 1;
}

.account-body .folder-add-popover .folder-source-label {
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.account-body .library-tool-dialog .bible-range-hint {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #456152;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.account-body .library-tool-dialog .number-field input:focus {
  background: #f1f8ff;
}

.youtube-activity {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b9d5c6;
  border-radius: 7px;
  background: #f2faf6;
  color: #183f2c;
}

.youtube-activity-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.youtube-activity p {
  margin: 0;
  color: #52665b;
  font-size: 12px;
}

.youtube-activity-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #a8cab8;
  border-top-color: #168451;
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}

.youtube-activity-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #d9e7df;
}

.youtube-activity-bar {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #18a765;
  animation: youtube-progress-live 1.35s ease-in-out infinite;
}

.youtube-activity.is-complete .youtube-activity-spinner {
  display: grid;
  place-items: center;
  border-color: #168451;
  background: #168451;
  color: #ffffff;
  animation: none;
  font-size: 12px;
}

.youtube-activity.is-complete .youtube-activity-bar {
  width: 100%;
  animation: none;
}

@keyframes youtube-progress-live {
  0% { transform: translateX(-105%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(275%); }
}

@media (max-width: 700px) {
  .account-body .folder-add-bottom[open] .folder-add-popover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-body .folder-add-popover .folder-source-action {
    min-height: 48px;
    padding: 8px 10px;
  }
}

/* Account v10: edit folder names in the folder row. */
.folder-inline-name-editor {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 6px;
}

.folder-inline-name-editor input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #2b7d59;
  border-radius: 6px;
  background: #ffffff;
  color: #15251c;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 159, 98, 0.12);
}

.folder-inline-name-save,
.folder-inline-name-cancel {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
}

.shine-folder-row[data-editing="true"] .folder-count-badge,
.shine-folder-row[data-editing="true"] .folder-row-actions {
  display: none;
}

.folder-inline-name-save {
  border: 1px solid #168451;
  background: #168451;
  color: #ffffff;
}

.folder-inline-name-cancel {
  border: 1px solid #bcc8c0;
  background: #ffffff;
  color: #33463b;
}

.folder-inline-editor .folder-editor-title {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(46, 97, 236, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(226, 140, 72, 0.12), transparent 28rem),
    linear-gradient(180deg, #0a0a0c 0%, #090909 100%);
  font-family: "Manrope", "Aptos", "Segoe UI", system-ui, sans-serif;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: rgba(8, 8, 10, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-star {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  font-size: 20px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-text small {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.header-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 185, 111, 0.3);
  background: linear-gradient(180deg, #2bc578, #16985a);
  color: #f7fff9;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(22, 152, 90, 0.18);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(22, 152, 90, 0.22);
}

.windows-badge {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.windows-badge i {
  display: block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 1px;
}

.hero,
.software-overview,
.story-section,
.remote-section,
.final-section,
.site-footer {
  padding-left: 16px;
  padding-right: 16px;
}

.hero {
  display: grid;
  gap: 26px;
  padding-top: 24px;
  padding-bottom: 46px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.flag {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flag-free {
  border-color: rgba(34, 185, 111, 0.26);
  color: #9be7bf;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 11vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 8vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.story-copy p,
.remote-item p,
.final-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-inline-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-inline-proof span {
  position: relative;
  padding-left: 14px;
}

.hero-inline-proof span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  min-height: 19rem;
  aspect-ratio: 16 / 10;
  order: -1;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  pointer-events: none;
}

.hero-glow-blue {
  width: 42%;
  height: 42%;
  top: 8%;
  left: 4%;
  background: var(--blue-glow);
}

.hero-glow-gold {
  width: 38%;
  height: 38%;
  right: 2%;
  bottom: 10%;
  background: var(--gold-glow);
}

.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  display: none;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-photo.is-active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-photo,
.story-media,
.remote-visual {
  cursor: zoom-in;
}

.photo-remote img {
  object-position: center center;
}

.photo-bible img {
  object-position: center top;
}

.photo-youtube img,
.photo-song img {
  object-position: center center;
}

.software-overview {
  padding-bottom: 22px;
}

.overview-kicker {
  margin-bottom: 10px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.overview-strip span {
  position: relative;
  padding-left: 16px;
}

.overview-strip span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eed4a4, #af8650);
  transform: translateY(-50%);
}

.story-section,
.remote-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 26px;
}

.story-row {
  display: grid;
  gap: 20px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line-soft);
}

.story-copy {
  max-width: 34rem;
}

.story-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  color: var(--muted-soft);
  font-size: 14px;
}

.story-list li {
  position: relative;
  padding-left: 18px;
}

.story-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

.story-media {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-bible img,
.media-workspace img {
  object-position: center top;
}

.media-youtube,
.media-song {
  background: rgba(255, 255, 255, 0.02);
}

.media-youtube img,
.media-song img {
  object-fit: contain;
  padding: 10px;
}

.story-duo {
  display: grid;
  gap: 12px;
}

.remote-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(62, 117, 255, 0.1), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 80%);
}

.remote-heading {
  margin-bottom: 22px;
}

.remote-layout {
  display: grid;
  gap: 22px;
}

.remote-visual {
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.remote-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.remote-columns {
  display: grid;
  gap: 18px;
}

.remote-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.remote-number {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.remote-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.public-plans-section {
  display: grid;
  gap: 22px;
  padding: 42px 16px 46px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 84% 8%, rgba(34, 185, 111, 0.11), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 76%);
}

.public-plans-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.public-plans-heading h2 {
  margin-bottom: 0;
}

.public-plans-heading p:last-child,
.public-plans-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.public-plan-grid {
  display: grid;
  gap: 14px;
}

.public-plan {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(7, 8, 8, 0.62);
}

.public-plan-featured {
  border-color: rgba(34, 185, 111, 0.42);
  background:
    radial-gradient(circle at 88% 0%, rgba(34, 185, 111, 0.2), transparent 18rem),
    linear-gradient(145deg, rgba(34, 185, 111, 0.095), rgba(255, 255, 255, 0.02)),
    rgba(7, 8, 8, 0.66);
}

.public-plan h3 {
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 10vw, 4rem);
  letter-spacing: -0.07em;
}

.public-plan h3 span {
  color: var(--muted-soft);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.public-plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-plan li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.public-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #f7fff9 0 2px, transparent 2.5px),
    linear-gradient(180deg, #2bc578, #16985a);
  box-shadow: 0 0 0 4px rgba(34, 185, 111, 0.08);
}

.public-plan-button {
  width: 100%;
}

.public-plans-note {
  max-width: 760px;
  color: var(--muted-soft);
}

.final-section {
  display: grid;
  gap: 18px;
  padding-top: 42px;
  padding-bottom: 52px;
  border-top: 1px solid var(--line-soft);
}

.final-copy {
  max-width: 40rem;
}

.site-footer {
  display: grid;
  gap: 6px;
  padding-top: 0;
  padding-bottom: 30px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 3, 4, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  width: min(100%, 1200px);
  display: grid;
  gap: 12px;
}

.lightbox-frame {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 18, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100svh - 140px);
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-caption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.download-page,
.account-page {
  min-height: 100svh;
  padding: 100px 16px 48px;
}

.account-page-centered {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 180px);
  padding-top: 24px;
  padding-bottom: 44px;
  position: relative;
}

.account-stack {
  width: min(100%, 980px);
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.account-intro,
.auth-panel,
.account-status-strip,
.account-footer-notes {
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: auto;
}

.account-page-centered::before,
.account-page-centered::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.72;
}

.account-page-centered::before {
  width: 14rem;
  height: 14rem;
  top: 8%;
  left: max(2%, calc(50% - 22rem));
  background: rgba(35, 116, 255, 0.12);
}

.account-page-centered::after {
  width: 13rem;
  height: 13rem;
  right: max(4%, calc(50% - 23rem));
  bottom: 10%;
  background: rgba(229, 191, 134, 0.1);
}

.account-intro {
  display: grid;
  gap: 10px;
  text-align: center;
}

.account-intro h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.account-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    linear-gradient(135deg, rgba(16, 16, 23, 0.94), rgba(18, 15, 13, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.auth-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 14px;
}

.auth-panel-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #61f2a5, #16955b);
  box-shadow: 0 0 0 5px rgba(34, 185, 111, 0.08);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.auth-tab-panel {
  display: none;
  padding: 20px 8px 8px;
}

.auth-tab-panel.is-active {
  display: block;
}

.account-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: rgba(34, 185, 111, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 185, 111, 0.12);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.auth-message {
  min-height: 22px;
  margin: 8px 8px 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-soft);
}

.auth-message[data-tone="success"] {
  color: #8fe0b5;
}

.auth-message[data-tone="error"] {
  color: #ff9e9e;
}

.auth-message[data-tone="muted"] {
  color: var(--muted);
}

.auth-text-button {
  padding: 0 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-text-button:hover {
  color: var(--text);
}

.account-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.session-state {
  display: grid;
  gap: 5px;
}

.session-state strong {
  font-size: 15px;
}

.session-state span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.subscription-overview {
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(34, 185, 111, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 185, 111, 0.12), transparent 16rem),
    rgba(255, 255, 255, 0.035);
}

.subscription-overview[hidden] {
  display: none;
}

.subscription-overview-main {
  display: grid;
  gap: 8px;
}

.subscription-overview-main h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
}

.subscription-overview-main p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.subscription-metrics {
  display: grid;
  gap: 10px;
}

.subscription-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.subscription-metrics span {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-metrics strong {
  text-align: right;
  font-size: 14px;
}

.account-link-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.028);
}

.account-link-panel h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.account-link-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-link-form {
  display: grid;
  gap: 10px;
}

.account-link-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-link-form input:focus {
  outline: none;
  border-color: rgba(34, 185, 111, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 185, 111, 0.12);
}

.signout-button {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.account-footer-notes {
  display: grid;
  gap: 4px;
}

.account-footnote {
  margin: 0;
  text-align: center;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.5;
}

.remote-plans {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 4px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 185, 111, 0.12), transparent 18rem),
    radial-gradient(circle at 100% 18%, rgba(229, 191, 134, 0.1), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.remote-plans-copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.remote-plans-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  line-height: 0.98;
}

.remote-plans-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.plan-grid {
  display: grid;
  gap: 14px;
}

.plan-option {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(8, 8, 10, 0.5);
}

.plan-option-featured {
  border-color: rgba(34, 185, 111, 0.42);
  background:
    linear-gradient(180deg, rgba(34, 185, 111, 0.11), rgba(8, 8, 10, 0.56)),
    rgba(8, 8, 10, 0.5);
}

.plan-name {
  margin: 0 0 8px;
  color: #9be7bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-option h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.06em;
}

.plan-option h3 span {
  color: var(--muted-soft);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.plan-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-option ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-option li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-option li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #f7fff9 0 2px, transparent 2.5px),
    linear-gradient(180deg, #2bc578, #16985a);
  box-shadow: 0 0 0 4px rgba(34, 185, 111, 0.08);
}

.billing-button {
  width: 100%;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.billing-actions .header-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.billing-actions .auth-message {
  min-height: 0;
  margin: 0;
}

@media (min-width: 760px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero,
  .software-overview,
  .story-section,
  .remote-section,
  .public-plans-section,
  .final-section,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero {
    grid-template-columns: minmax(310px, 0.88fr) minmax(430px, 1.12fr);
    align-items: center;
    gap: 42px;
    padding-top: 34px;
    padding-bottom: 60px;
  }

  .hero-visual {
    order: 0;
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .story-row {
    grid-template-columns: minmax(260px, 0.82fr) minmax(380px, 1.18fr);
    align-items: center;
    gap: 26px;
  }

  .story-row-reverse {
    grid-template-columns: minmax(380px, 1.18fr) minmax(260px, 0.82fr);
  }

  .story-row-reverse .story-copy {
    order: 2;
  }

  .story-row-reverse .story-media {
    order: 1;
  }

  .story-duo {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .remote-layout {
    grid-template-columns: minmax(380px, 1.08fr) minmax(280px, 0.92fr);
    align-items: center;
    gap: 28px;
  }

  .public-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-plan {
    align-content: space-between;
  }

  .final-section {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
  }

  .account-page-centered {
    padding-top: 34px;
  }

  .account-stack {
    width: min(100%, 980px);
    gap: 22px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-overview {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    align-items: center;
  }

  .account-link-panel {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    align-items: center;
  }

  .plan-option {
    padding: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .site-footer p:last-child {
    text-align: right;
  }
}

@media (min-width: 1120px) {
  .site-header,
  .hero,
  .software-overview,
  .story-section,
  .remote-section,
  .public-plans-section,
  .final-section,
  .site-footer {
    padding-left: 44px;
    padding-right: 44px;
  }

  .hero {
    min-height: calc(100svh - 84px);
    gap: 58px;
    padding-top: 20px;
    padding-bottom: 70px;
  }

  .hero-visual {
    aspect-ratio: 16 / 10.4;
  }

  .hero-copy {
    max-width: 33rem;
  }
}

@media (max-width: 759px) {
  .site-header {
    gap: 12px;
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
  }

  .header-actions .download-button {
    flex: 0 0 100%;
    width: 100%;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.25rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero {
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .hero-visual {
    min-height: 15rem;
    aspect-ratio: 16 / 10.8;
  }

  .hero-inline-proof {
    display: grid;
    gap: 8px;
  }

  .hero-inline-proof span {
    padding-left: 12px;
  }

  .software-overview,
  .story-section,
  .remote-section,
  .public-plans-section,
  .final-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .overview-strip {
    display: grid;
    gap: 10px;
  }

  .story-media,
  .remote-visual {
    border-radius: 22px;
  }

  .account-page-centered {
    min-height: auto;
    padding-top: 14px;
  }

  .account-stack {
    width: 100%;
    gap: 16px;
  }

  .account-intro {
    text-align: left;
  }

  .account-page-centered::before {
    top: 1.75rem;
    left: -3rem;
  }

  .account-page-centered::after {
    right: -3rem;
    bottom: 3rem;
  }

  .auth-panel-head {
    align-items: flex-start;
  }

  .auth-panel-head h2 {
    font-size: 20px;
  }

  .account-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-frame {
    border-radius: 18px;
  }

  .lightbox-caption {
    font-size: 12px;
  }
}

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

/* Account v13: local Pages launcher. */
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"] {
  border-color: #176546;
  background: #176546;
  color: #ffffff;
}

.pages-launch-panel {
  display: grid;
  gap: 14px;
}

.pages-launch-panel[hidden] { display: none !important; }

.pages-launch-intro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #cfe0d6;
  border-radius: 7px;
  background: #f1faf5;
}

.pages-launch-mark,
.pages-draft-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #176546;
  color: #ffffff;
  font-weight: 900;
}

.pages-launch-intro strong { font-size: 16px; }
.pages-launch-intro p { margin: 3px 0 0; color: #617069; font-size: 12px; line-height: 1.45; }

.pages-new-document {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pages-new-document > span:first-child { font-size: 22px; }

.pages-drafts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pages-drafts-heading > span {
  padding: 5px 7px;
  border: 1px solid #d3dbd6;
  border-radius: 999px;
  color: #66736b;
  font-size: 10px;
  font-weight: 800;
}

.pages-draft-list { display: grid; gap: 7px; }

.pages-draft-row {
  display: grid;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d3dcd6;
  border-radius: 7px;
  background: #ffffff;
  color: #17231c;
  text-align: left;
  cursor: pointer;
}

.pages-draft-row:hover,
.pages-draft-row:focus-visible { border-color: #408064; background: #f6fbf8; }
.pages-draft-copy { display: grid; min-width: 0; gap: 3px; }
.pages-draft-copy strong,
.pages-draft-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pages-draft-copy small { color: #69756e; }
.pages-draft-open { color: #647168; font-size: 18px; }
.pages-draft-empty,
.pages-draft-loading { margin: 0; color: #69756e; font-size: 13px; text-align: center; }

.library-item-row-v3.local-page-draft-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  color: #15231b;
  text-align: left;
}

.local-page-draft-open {
  display: grid;
  min-width: 0;
  padding: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.local-page-draft-row:hover,
.local-page-draft-row:focus-within {
  border-color: #64b48b;
  background: #e5f8ee;
}

.local-draft-menu-disclosure { position: relative; }
.local-draft-popover { right: 0; left: auto; min-width: 210px; }

.library-item-row-v3[data-deleting="true"] {
  opacity: 0.82;
  pointer-events: none;
}

.item-menu-delete[data-deleting="true"] {
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.item-menu-delete[data-deleting="true"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.34);
  content: "";
  transform: translateX(-100%);
  animation: item-delete-progress 1.1s ease-in-out infinite;
}

@keyframes item-delete-progress {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(-20%); }
  100% { transform: translateX(100%); }
}

.local-page-kind {
  background: #176546 !important;
  color: #ffffff !important;
}

.local-page-badge {
  padding: 6px 8px;
  border: 1px solid #94c7ac;
  border-radius: 999px;
  color: #176546;
  font-size: 10px;
  font-weight: 850;
}

/* Polished account hub */
.account-page-centered {
  place-items: start center;
  padding-top: clamp(18px, 4vw, 46px);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 185, 111, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34rem);
}

.account-stack {
  width: min(100%, 1040px);
}

.account-intro-polished {
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}

.account-intro-polished h1 {
  max-width: 740px;
  margin-inline: auto;
  font-size: clamp(2.55rem, 9vw, 5.45rem);
}

.account-intro-polished .account-subtext {
  max-width: 660px;
  margin-inline: auto;
  font-size: clamp(15px, 2vw, 17px);
}

.account-flags {
  justify-content: center;
  margin-bottom: 12px;
}

.account-tabs-nav {
  position: sticky;
  top: 96px;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 1fr);
  gap: 8px;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(10, 10, 12, 0.76);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.account-tabs-nav::-webkit-scrollbar {
  display: none;
}

.account-section-tab {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.account-section-tab span {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.account-section-tab small {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-section-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.045);
}

.account-section-tab.is-active {
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 185, 111, 0.18), transparent 6rem),
    rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.account-tab-section {
  display: grid;
  gap: 16px;
  animation: accountPanelIn 260ms ease both;
}

.account-tab-section[hidden] {
  display: none;
}

#accountAccessSection .auth-panel,
#accountAccessSection .account-status-strip {
  width: min(100%, 560px);
}

.auth-panel-premium {
  overflow: hidden;
  position: relative;
}

.auth-panel-premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 191, 134, 0.65), transparent);
  opacity: 0.65;
}

.auth-panel-head p:not(.auth-kicker) {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.subscription-overview {
  width: min(100%, 900px);
}

.subscription-metrics {
  gap: 8px;
}

.subscription-metrics div {
  min-height: 54px;
  align-items: center;
}

.account-explain-row {
  display: grid;
  gap: 12px;
  width: min(100%, 900px);
  margin: 0 auto;
}

.account-explain-row article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.028);
}

.account-explain-row span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-explain-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.account-explain-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-link-panel {
  width: min(100%, 900px);
}

.account-link-form {
  align-self: end;
}

.account-link-form input {
  text-align: center;
}

.remote-plans {
  width: min(100%, 980px);
  margin-inline: auto;
}

.remote-plans-copy h2 {
  max-width: 760px;
}

.trial-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 191, 134, 0.2);
  border-radius: 20px;
  background: rgba(229, 191, 134, 0.075);
}

.trial-note strong {
  color: #f2d8ad;
  font-size: 14px;
}

.trial-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-option {
  align-content: space-between;
}

.plan-option h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.plan-option-featured .plan-name::after {
  content: "Best for teams";
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 185, 111, 0.12);
  color: #c8f7dc;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.billing-actions {
  justify-content: space-between;
  padding-top: 2px;
}

.billing-actions .header-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

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

@media (min-width: 760px) {
  .account-tabs-nav {
    top: 86px;
  }

  .account-tab-section {
    gap: 18px;
  }

  .account-explain-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .account-intro-polished {
    text-align: left;
  }

  .account-intro-polished h1,
  .account-intro-polished .account-subtext {
    margin-inline: 0;
  }

  .account-flags {
    justify-content: flex-start;
  }

  .account-tabs-nav {
    top: 138px;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: unset;
    width: 100%;
    margin-left: 0;
    padding: 6px;
    overflow: visible;
    border-radius: 22px;
  }

  .account-section-tab {
    min-height: 54px;
    padding: 9px 12px;
  }

  .subscription-metrics div {
    display: grid;
    gap: 4px;
  }

  .subscription-metrics strong {
    text-align: left;
  }

  .billing-actions {
    display: grid;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-tab-section,
  .account-section-tab,
  .auth-panel-premium,
  .billing-button {
    animation: none !important;
    transition: none !important;
  }
}

/* Simple Netflix-style account flow */
.simple-account-page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 16px 56px;
}

.simple-account-hero {
  order: 0;
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.simple-account-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 9vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.simple-account-hero p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.62;
}

.linked-account-title,
.linked-account-copy {
  display: none;
}

.simple-account-hero h1 span {
  display: inline;
}

.linked-account-copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.62;
}

.simple-flow {
  order: 1;
  display: grid;
  gap: 10px;
  margin: 0 auto 18px;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.flow-step span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #2bc578, #16985a);
  color: #f7fff9;
  font-size: 13px;
  font-weight: 900;
}

.flow-step strong {
  font-size: 15px;
}

.flow-step small {
  color: var(--muted-soft);
  font-size: 12px;
}

.simple-account-grid {
  order: 3;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.simple-card,
.simple-plan-card,
.simple-status-card {
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 12, 0.76);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.simple-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 28px);
}

.simple-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.simple-card-head h2 {
  margin: 3px 0 0;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1;
}

.simple-session-state {
  display: none;
  min-width: 160px;
  padding: 11px 13px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  text-align: right;
}

.simple-session-state strong,
.simple-session-state span {
  display: block;
}

.simple-session-state strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.simple-session-state span {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
}

.simple-auth-tabs {
  margin-top: -2px;
}

.simple-muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.connection-badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-badge[data-state="linked"] {
  background: rgba(34, 185, 111, 0.14);
  color: #9be7bf;
}

.connection-badge[data-state="pending"] {
  background: rgba(229, 191, 134, 0.12);
  color: #f2d8ad;
}

.simple-code-form {
  grid-template-columns: 1fr;
}

.simple-plans-section {
  order: 2;
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 32px;
  border: 1px solid rgba(34, 185, 111, 0.16);
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 185, 111, 0.14), transparent 22rem),
    radial-gradient(circle at 10% 10%, rgba(229, 191, 134, 0.09), transparent 18rem),
    rgba(255, 255, 255, 0.028);
}

.simple-plans-head {
  max-width: 720px;
}

.simple-plans-head h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 7vw, 4rem);
}

.simple-plans-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.simple-plan-grid {
  display: grid;
  gap: 14px;
}

.simple-plan-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: clamp(18px, 4vw, 26px);
}

.simple-plan-card-featured {
  border-color: rgba(34, 185, 111, 0.42);
  background:
    linear-gradient(180deg, rgba(34, 185, 111, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 12, 0.76);
}

.simple-plan-card h3 {
  margin: 0;
  font-size: clamp(2.7rem, 10vw, 4.4rem);
  letter-spacing: -0.08em;
}

.simple-plan-card h3 span {
  color: var(--muted-soft);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.simple-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-plan-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.simple-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #f7fff9 0 2px, transparent 2.5px),
    linear-gradient(180deg, #2bc578, #16985a);
}

.simple-status-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.simple-status-card[hidden] {
  display: none;
}

.simple-status-card h3 {
  margin-bottom: 8px;
}

.simple-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.simple-status-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.simple-status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.simple-status-card dt {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simple-status-card dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
}

.simple-billing-message {
  margin: 0;
}

body[data-signed-in="false"] .connect-shine-card {
  opacity: 0.64;
}

.simple-link-copy {
  display: none;
}

body[data-has-shine-link="true"] .simple-link-copy {
  display: block;
}

body[data-has-shine-link="true"] .regular-account-title,
body[data-has-shine-link="true"] .regular-account-copy {
  display: none;
}

body[data-has-shine-link="true"] .linked-account-title,
body[data-has-shine-link="true"] .linked-account-copy {
  display: inline;
}

body[data-has-shine-link="true"] .linked-account-copy {
  display: block;
}

body[data-has-shine-link="true"] .simple-manual-copy {
  display: none;
}

body[data-has-shine-link="true"] .simple-plans-section {
  display: none;
}

body[data-has-shine-link="true"][data-account-linked="false"] .connect-shine-card {
  display: none;
}

body[data-has-shine-link="true"][data-account-linked="false"] .simple-account-grid {
  grid-template-columns: 1fr;
  width: min(100%, 620px);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

body[data-has-shine-link="true"][data-account-linked="false"] .simple-account-grid .account-auth-card {
  min-height: 0;
}

@media (min-width: 760px) {
  .simple-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-account-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .simple-session-state {
    display: block;
  }

  .simple-code-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .simple-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-status-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr) auto;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .simple-account-page {
    padding-top: 22px;
  }

  .simple-account-hero {
    text-align: left;
  }

  .simple-account-hero p:last-child {
    margin-left: 0;
  }

  .simple-card-head {
    display: grid;
  }

  .simple-status-card dl div {
    display: grid;
  }

  .simple-status-card dd {
    text-align: left;
  }
}

/* SHINE account workspace */

body.account-body {
  color-scheme: dark;
  background: #0b0c0d;
  letter-spacing: 0;
}

.account-body h1,
.account-body h2,
.account-body h3,
.account-body button,
.account-body input,
.account-body select {
  letter-spacing: 0;
}

.account-body [hidden] {
  display: none !important;
}

.account-body button,
.account-body select {
  font: inherit;
}

.account-body button:focus-visible,
.account-body input:focus-visible,
.account-body select:focus-visible,
.account-body summary:focus-visible {
  outline: 2px solid #38c982;
  outline-offset: 2px;
}

.account-body .download-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 6px;
  border-color: #2bbf77;
  background: #1dab68;
  box-shadow: none;
}

.account-body .download-button:hover {
  transform: none;
  background: #24b974;
  box-shadow: none;
}

.account-body button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.account-workspace {
  display: grid;
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding: 34px 0 70px;
  gap: 20px;
}

.account-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #262a2d;
}

.account-page-head .eyebrow,
.account-pricing-section .eyebrow {
  margin-bottom: 8px;
  color: #d7b575;
}

.account-page-head h1 {
  max-width: 760px;
  margin: 0 0 7px;
  font-size: 32px;
  line-height: 1.12;
}

.account-page-head p:last-child {
  margin: 0;
  color: #a9afb1;
  font-size: 14px;
  line-height: 1.55;
}

.account-session-summary {
  display: grid;
  min-width: 210px;
  gap: 3px;
  text-align: right;
}

.account-session-summary strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-session-summary span {
  color: #8e9699;
  font-size: 12px;
}

.account-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-access-pane {
  min-width: 0;
  padding: 20px;
  border: 1px solid #292d30;
  border-radius: 8px;
  background: #121416;
}

.account-section-head,
.dashboard-heading-row,
.dashboard-status-line,
.remote-control-head,
.pricing-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-section-head {
  margin-bottom: 16px;
}

.account-section-head h2,
.dashboard-heading-row h2,
.remote-control-head h2,
.pricing-heading-row h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.account-body .auth-kicker {
  color: #d7b575;
  letter-spacing: 0.12em;
}

.account-body .auth-tabs {
  gap: 0;
  padding: 3px;
  border: 1px solid #292d30;
  border-radius: 6px;
  background: #0d0f10;
}

.account-body .auth-tab {
  min-height: 40px;
  border-radius: 4px;
  color: #a9afb1;
  letter-spacing: 0;
}

.account-body .auth-tab.is-active {
  background: #24282b;
  color: #ffffff;
  box-shadow: none;
}

.account-body .auth-tab-panel {
  padding: 16px 0 0;
}

.account-form-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form-compact .auth-submit-full {
  grid-column: 1 / -1;
}

.account-body .field {
  min-width: 0;
  gap: 6px;
}

.account-body .field span,
.control-label,
.installation-picker label {
  color: #a9afb1;
  font-size: 12px;
  font-weight: 700;
}

.account-body .field input,
.account-body .field select,
.account-body select,
.account-body .search-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #303538;
  border-radius: 6px;
  background: #0d0f10;
  color: #f5f6f6;
}

.account-body .field input::placeholder,
.account-body .search-field input::placeholder {
  color: #687174;
}

.account-body .field input:focus,
.account-body .field select:focus,
.account-body select:focus,
.account-body .search-field input:focus {
  outline: none;
  border-color: #37c981;
  box-shadow: 0 0 0 3px rgba(55, 201, 129, 0.12);
}

.account-body .auth-submit {
  margin-top: 2px;
}

.account-body .auth-message {
  min-height: 20px;
  margin: 10px 0 0;
}

.account-body .auth-text-button {
  padding: 5px 0 0;
  color: #9da5a8;
  letter-spacing: 0;
}

.secondary-button,
.text-action,
.item-action {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #343a3d;
  border-radius: 6px;
  background: #191c1e;
  color: #f2f4f4;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover,
.text-action:hover,
.item-action:hover {
  border-color: #51595d;
  background: #212528;
}

.compact-button {
  min-height: 38px !important;
}

.signed-in-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0 2px;
  border-top: 1px solid #292d30;
}

.signed-in-panel div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.signed-in-panel span {
  color: #8e9699;
  font-size: 11px;
  text-transform: uppercase;
}

.signed-in-panel strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.recovery-form {
  padding-top: 4px;
}

.recovery-form h3 {
  margin: 3px 0 8px;
  font-size: 18px;
}

.account-muted {
  margin: 0;
  color: #a2aaad;
  font-size: 13px;
  line-height: 1.6;
}

.connection-badge,
.status-badge,
.device-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #343a3d;
  background: #1b1e20;
  color: #b3babc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.connection-badge[data-state="linked"],
.status-badge[data-status="active"],
.device-status[data-online="true"] {
  border-color: rgba(55, 201, 129, 0.42);
  background: rgba(55, 201, 129, 0.1);
  color: #8ae1b6;
}

.connection-badge[data-state="pending"],
.status-badge[data-status="trial"],
.status-badge[data-status="grace"] {
  border-color: rgba(215, 181, 117, 0.42);
  background: rgba(215, 181, 117, 0.1);
  color: #e6cb98;
}

.connection-badge[data-state="error"],
.status-badge[data-status="expired"] {
  border-color: rgba(240, 103, 103, 0.42);
  background: rgba(240, 103, 103, 0.1);
  color: #f3a2a2;
}

.manual-link-fallback {
  margin-top: 16px;
  border-top: 1px solid #292d30;
  padding-top: 13px;
}

.manual-link-fallback summary {
  width: fit-content;
  color: #a9afb1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.manual-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 13px;
}

.account-dashboard {
  padding: 22px 0;
  border-top: 1px solid #292d30;
  border-bottom: 1px solid #292d30;
}

.dashboard-heading-row {
  align-items: end;
  margin-bottom: 20px;
}

.installation-picker {
  display: grid;
  width: min(100%, 300px);
  gap: 6px;
}

.dashboard-status-line {
  align-items: center;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid #23272a;
}

.dashboard-status-line h3 {
  margin: 9px 0 5px;
  font-size: 18px;
}

.dashboard-status-line p {
  max-width: 720px;
  margin: 0;
  color: #9da5a8;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-actions,
.remote-runtime-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #23272a;
}

.dashboard-metrics > div {
  min-width: 0;
  padding: 15px 16px 3px 0;
}

.dashboard-metrics > div + div {
  padding-left: 16px;
  border-left: 1px solid #23272a;
}

.dashboard-metrics dt {
  margin-bottom: 6px;
  color: #7f888b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-metrics dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-wide-message {
  margin-top: 14px !important;
}

.remote-control-section {
  overflow: hidden;
  border: 1px solid #2b3033;
  border-radius: 8px;
  background: #101214;
}

.remote-control-head {
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #292d30;
}

.control-lock-message {
  min-height: 0;
  margin: 0;
  padding: 0 20px;
  color: #e4c488;
  font-size: 12px;
  line-height: 1.5;
}

.control-lock-message:not(:empty) {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(215, 181, 117, 0.18);
  background: rgba(215, 181, 117, 0.06);
}

.remote-library-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 470px;
}

.folder-browser {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #292d30;
  background: #0d0f10;
}

.folder-browser > .control-label {
  display: block;
  margin-bottom: 6px;
}

.folder-list {
  display: grid;
  max-height: 290px;
  margin: 13px 0 9px;
  overflow: auto;
}

.folder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 10px;
  padding: 5px 8px 5px calc(8px + var(--folder-indent, 0px));
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #bec4c6;
  text-align: left;
  cursor: pointer;
}

.folder-row:hover {
  background: #181b1d;
}

.folder-row[data-selected="true"] {
  border-left-color: #32c67d;
  background: #1a211e;
  color: #ffffff;
}

.folder-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-row small {
  color: #778083;
  font-size: 11px;
}

.selected-folder-actions {
  display: flex;
  gap: 4px;
  padding-bottom: 15px;
  border-bottom: 1px solid #292d30;
}

.text-action {
  min-height: 30px;
  padding: 0 7px;
  border-color: transparent;
  background: transparent;
  color: #a9afb1;
  font-size: 11px;
}

.danger-action {
  color: #ec9999;
}

.compact-control-form {
  display: grid;
  gap: 9px;
  padding-top: 15px;
}

.compact-control-form h3,
.bible-control-form h3 {
  margin: 0;
  font-size: 15px;
}

.library-browser {
  min-width: 0;
  padding: 16px 18px 0;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #292d30;
}

.search-field {
  width: min(100%, 420px);
}

.library-count {
  color: #8f979a;
  font-size: 12px;
  white-space: nowrap;
}

.library-items {
  display: grid;
}

.library-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #23272a;
}

.library-item-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.library-item-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item-copy span {
  color: #7f888b;
  font-size: 11px;
  text-transform: capitalize;
}

.library-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.item-action {
  min-height: 32px;
  padding: 0 9px;
  font-size: 11px;
}

.primary-item-action {
  border-color: rgba(55, 201, 129, 0.44);
  color: #91dfb9;
}

.library-empty {
  margin: 28px 0;
  color: #7f888b;
  font-size: 13px;
  text-align: center;
}

.bible-control-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(190px, 1.2fr) minmax(100px, 0.65fr) minmax(140px, 0.85fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 0 18px;
  border-top: 1px solid #292d30;
}

.remote-control-section > .account-wide-message {
  margin: 0 !important;
  padding: 0 18px 14px;
}

.account-pricing-section {
  padding-top: 24px;
}

.pricing-heading-row {
  align-items: end;
  padding-bottom: 18px;
}

.pricing-heading-row > p {
  max-width: 430px;
  margin: 0;
  color: #9da5a8;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

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

.account-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #2b3033;
  border-radius: 8px;
  background: #111315;
}

.account-plan-featured {
  border-color: rgba(55, 201, 129, 0.42);
}

.account-plan .plan-name {
  margin: 0 0 4px;
  color: #d7b575;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-plan h3 {
  margin: 0;
  font-size: 23px;
}

.account-plan h3 span {
  color: #8f979a;
  font-size: 12px;
  font-weight: 500;
}

.account-plan .plan-note {
  margin: 5px 0 0;
  color: #8f979a;
  font-size: 12px;
}

.account-plan ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #a9afb1;
  font-size: 11px;
  line-height: 1.45;
}

.account-plan .billing-button {
  width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1040px) {
  .account-plan {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-plan .billing-button {
    width: 100%;
  }

  .bible-control-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bible-control-form > div,
  .bible-control-form .download-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .account-workspace {
    width: min(calc(100% - 24px), 1180px);
    padding-top: 22px;
  }

  .account-page-head,
  .account-section-head,
  .dashboard-heading-row,
  .dashboard-status-line,
  .remote-control-head,
  .pricing-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-page-head h1 {
    font-size: 27px;
  }

  .account-session-summary,
  .pricing-heading-row > p {
    min-width: 0;
    text-align: left;
  }

  .account-access,
  .account-plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-form-compact,
  .manual-link-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .installation-picker {
    width: 100%;
  }

  .dashboard-actions,
  .remote-runtime-actions {
    justify-content: flex-start;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics > div,
  .dashboard-metrics > div + div {
    padding: 13px 10px 13px 0;
    border-left: 0;
    border-bottom: 1px solid #23272a;
  }

  .dashboard-metrics > div:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid #23272a;
  }

  .remote-library-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .folder-browser {
    border-right: 0;
    border-bottom: 1px solid #292d30;
  }

  .folder-list {
    max-height: 190px;
  }

  .library-browser {
    padding: 14px 14px 0;
  }

  .library-item-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .library-item-actions {
    justify-content: flex-start;
  }

  .bible-control-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .bible-control-form > div,
  .bible-control-form .download-button {
    grid-column: auto;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .account-access {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote-library-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

/* SHINE library projector */

.remote-control-section {
  color-scheme: light;
  border-color: #d7ddd7;
  background: #f7f9f6;
  color: #17231c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.remote-control-head {
  padding: 16px 18px;
  border-bottom-color: #dce2dc;
  background: #ffffff;
}

.shine-library-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.shine-library-logo {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid #c8d0c9;
  border-radius: 8px;
  background: #142d51;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.remote-control-section .auth-kicker {
  color: #98620c;
}

.remote-control-head h2 {
  color: #17231c;
}

.remote-control-section .account-muted {
  color: #647068;
}

.remote-control-section .secondary-button,
.remote-control-section .item-action {
  border-color: #cfd7d0;
  background: #ffffff;
  color: #24312a;
}

.remote-control-section .secondary-button:hover,
.remote-control-section .item-action:hover {
  border-color: #9ca9a0;
  background: #f2f5f2;
}

.remote-control-section .remote-runtime-actions .secondary-button:first-child {
  border-color: #173d69;
  background: #173d69;
  color: #ffffff;
}

.shine-library-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #dce2dc;
  background: #f3f5f2;
  scrollbar-width: thin;
}

.shine-library-tab {
  min-width: 88px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #173d69;
  border-radius: 7px;
  background: #173d69;
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

.shine-library-tab:hover {
  background: #0f3158;
}

.shine-library-tab.is-active {
  border-color: #0f2b20;
  background: #0f2b20;
  box-shadow: inset 0 -3px 0 #38b977;
}

.control-lock-message:not(:empty) {
  border-bottom-color: #eed7a6;
  background: #fff7e5;
  color: #775112;
}

.remote-library-layout {
  background: #ffffff;
}

.folder-browser {
  padding: 15px;
  border-right-color: #dce2dc;
  background: #f6f8f5;
}

.folder-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.folder-browser-head h3 {
  margin: 2px 0 0;
  color: #17231c;
  font-size: 17px;
}

.remote-control-section .control-label,
.remote-control-section .field span {
  color: #5f6b63;
}

.remote-control-section select,
.remote-control-section .field input,
.remote-control-section .search-field input {
  border-color: #cbd4cc;
  background: #ffffff;
  color: #17231c;
}

.remote-control-section .field input::placeholder,
.remote-control-section .search-field input::placeholder {
  color: #89938c;
}

.folder-list {
  gap: 5px;
  margin-top: 11px;
}

.folder-row {
  min-height: 42px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 7px;
  color: #34423a;
}

.folder-row:hover {
  border-color: #d7ddd7;
  background: #ffffff;
}

.folder-row[data-selected="true"] {
  border-color: #e2bc70;
  border-left-color: #b77a17;
  background: #fff0ca;
  color: #4d3510;
}

.folder-row small {
  display: grid;
  min-width: 23px;
  min-height: 23px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #6e5a34;
}

.selected-folder-actions {
  padding: 3px 0 13px;
  border-bottom-color: #dce2dc;
}

.remote-control-section .text-action {
  color: #506058;
}

.remote-control-section .text-action:hover {
  border-color: #cfd7d0;
  background: #ffffff;
}

.remote-control-section .danger-action {
  color: #af3f3f;
}

.folder-create-disclosure {
  padding-top: 13px;
}

.folder-create-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #102a1e;
  border-radius: 7px;
  background: #102a1e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.folder-create-disclosure summary::-webkit-details-marker {
  display: none;
}

.folder-create-disclosure[open] summary {
  border-color: #b8c2ba;
  background: #ffffff;
  color: #17231c;
}

.compact-control-form {
  padding-top: 12px;
}

.library-browser {
  padding: 0 16px;
  background: #ffffff;
}

.library-toolbar {
  min-height: 72px;
  padding: 12px 0;
  border-bottom-color: #dce2dc;
}

.selected-library-folder {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.selected-library-folder span {
  color: #79837c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-library-folder strong {
  overflow: hidden;
  color: #17231c;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-search-group {
  display: flex;
  align-items: center;
  width: min(100%, 460px);
  gap: 10px;
}

.library-search-group .search-field {
  flex: 1 1 auto;
}

.library-count {
  color: #667169;
}

.library-items {
  gap: 7px;
  padding: 10px 0;
}

.library-item-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 9px 11px;
  border: 1px solid #bfe7d1;
  border-radius: 8px;
  background: #e9fbf1;
}

.library-kind-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #fff0bb;
  color: #9a6508;
  font-size: 13px;
  font-weight: 850;
}

.library-kind-mark[data-kind="songs"] {
  background: #dceaff;
  color: #285b97;
}

.library-kind-mark[data-kind="media"] {
  background: #e7e0ff;
  color: #6447a9;
}

.library-kind-mark[data-kind="documents"] {
  background: #e5e9ec;
  color: #53616a;
}

.library-kind-mark[data-kind="slides"] {
  background: #ffe1d7;
  color: #a64e2f;
}

.library-item-copy strong {
  color: #122019;
  font-size: 14px;
}

.library-item-copy span {
  color: #617069;
}

.remote-control-section .item-action {
  min-height: 34px;
  border-color: #b7c5bb;
  background: rgba(255, 255, 255, 0.82);
  color: #324039;
}

.remote-control-section .primary-item-action {
  border-color: #173d69;
  background: #173d69;
  color: #ffffff;
}

.remote-control-section .item-action.danger-action {
  color: #a23939;
}

.library-empty {
  color: #728078;
}

.bible-control-form {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #c8d9e7;
  border-radius: 8px 8px 0 0;
  background: #eef6fc;
}

.bible-control-form h3 {
  color: #18324a;
}

.remote-control-section > .account-wide-message {
  color: #56625a;
  background: #ffffff;
}

.remote-control-section > .account-wide-message[data-tone="success"] {
  color: #187447;
}

.remote-control-section > .account-wide-message[data-tone="error"] {
  color: #a23939;
}

@media (max-width: 760px) {
  .remote-control-head {
    gap: 14px;
  }

  .shine-library-title {
    align-items: flex-start;
  }

  .remote-runtime-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .remote-runtime-actions .secondary-button {
    width: 100%;
  }

  .shine-library-tabs {
    padding: 9px 11px;
    scroll-snap-type: x proximity;
  }

  .shine-library-tab {
    min-width: 92px;
    scroll-snap-align: start;
  }

  .folder-browser {
    padding: 14px;
    border-bottom-color: #dce2dc;
  }

  .folder-list {
    display: grid;
    grid-auto-columns: minmax(155px, 72vw);
    grid-auto-flow: column;
    max-height: none;
    padding-bottom: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .folder-row {
    padding-left: 10px;
    scroll-snap-align: start;
  }

  .library-browser {
    padding: 0 12px;
  }

  .library-toolbar {
    display: grid;
    gap: 10px;
  }

  .library-search-group {
    width: 100%;
  }

  .library-item-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .library-item-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .library-item-actions .item-action {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
  }

  .bible-control-form {
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
}

/* Account dashboard v2 */
body.account-v2 {
  min-width: 320px;
  background: #eef2ee;
  color: #17231c;
  color-scheme: light;
}

.account-v2 [hidden] {
  display: none !important;
}

.account-v2 .account-site-header {
  background: #0b0f0d;
}

.account-v2 .account-site-header .brand-text strong,
.account-v2 .account-site-header .header-link {
  color: #ffffff;
}

.account-v2 .account-site-header .brand-text small {
  color: #aab5ae;
}

.account-v2 .site-footer {
  background: #0b0f0d;
  color: #cbd3cd;
}

.account-workspace-v2 {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.account-page-head-v2 {
  align-items: end;
  margin-bottom: 24px;
  color: #17231c;
}

.account-page-head-v2 h1 {
  margin: 4px 0 6px;
  color: #111a15;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.account-page-head-v2 > div > p:last-child,
.account-v2 .account-muted {
  color: #647069;
}

.account-v2 .account-session-summary {
  min-width: 220px;
  border-color: #cad2cc;
  background: #ffffff;
  color: #17231c;
}

.account-access-v2 {
  display: grid;
  width: min(100%, 560px);
  min-height: 500px;
  margin: 42px auto 70px;
  grid-template-columns: 1fr;
}

.account-auth-focus,
.email-confirmation-panel {
  align-self: start;
  padding: 30px;
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 29, 21, 0.08);
}

.account-auth-focus .account-section-head {
  padding-bottom: 20px;
}

.account-auth-focus .account-form-compact {
  grid-template-columns: 1fr;
}

.account-auth-focus h2,
.email-confirmation-panel h2,
.account-app-shell h2,
.account-app-shell h3 {
  color: #17231c;
  letter-spacing: 0;
}

.account-auth-focus .simple-auth-tabs {
  margin-bottom: 20px;
  border-bottom: 1px solid #d9dfda;
  background: #f1f4f1;
}

.account-auth-focus .auth-tab {
  min-height: 48px;
  background: transparent;
  color: #53615a;
}

.account-auth-focus .auth-tab.is-active {
  color: #0d5536;
  box-shadow: inset 0 -3px #16a663;
}

.account-v2 .field input,
.account-v2 .field select,
.account-v2 select {
  min-height: 46px;
  border-color: #c8d0ca;
  border-radius: 6px;
  background: #ffffff;
  color: #17231c;
  font-size: 16px;
}

.account-v2 .field input:focus,
.account-v2 .field select:focus,
.account-v2 select:focus {
  border-color: #168a55;
  outline: 3px solid rgba(22, 138, 85, 0.15);
}

.account-v2 .download-button,
.account-v2 .secondary-button {
  min-height: 46px;
  border-radius: 6px;
}

.fixed-message {
  min-height: 24px;
}

.email-confirmation-panel {
  text-align: center;
}

.email-confirmation-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8ed;
  color: #117442;
  font-size: 24px;
  font-weight: 800;
}

.email-confirmation-panel > p {
  color: #5e6963;
}

.email-confirmation-panel > p strong {
  color: #17231c;
  overflow-wrap: anywhere;
}

.email-confirmation-panel h2 {
  font-size: 38px;
  line-height: 1.1;
}

.confirmation-wait {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 24px 0;
  padding: 14px 16px;
  gap: 12px;
  border: 1px solid #c8e7d4;
  border-radius: 7px;
  background: #effaf3;
  color: #27563d;
  text-align: left;
}

.confirmation-spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #b4d8c1;
  border-top-color: #168a55;
  border-radius: 50%;
  animation: shine-confirm-spin 900ms linear infinite;
}

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

.confirmation-actions {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 10px;
}

.email-confirmation-panel .auth-text-button {
  margin-top: 14px;
}

.account-app-shell {
  overflow: hidden;
  min-height: 650px;
  border: 1px solid #cbd3cd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(18, 31, 22, 0.08);
}

.account-app-tabs {
  display: flex;
  min-height: 64px;
  padding: 0 20px;
  gap: 4px;
  border-bottom: 1px solid #d8ded9;
  background: #f8faf8;
  overflow-x: auto;
}

.account-app-tab {
  min-width: 126px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #58645d;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.account-app-tab.is-active {
  border-bottom-color: #14975a;
  color: #123d28;
}

.account-app-panel {
  min-height: 580px;
  padding: 30px;
}

.overview-panel {
  min-height: 500px;
}

.overview-metrics,
.dashboard-metrics {
  display: grid;
  margin: 30px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d8ded9;
  border-bottom: 1px solid #d8ded9;
}

.overview-metrics > div,
.account-v2 .dashboard-metrics > div {
  min-width: 0;
  min-height: 112px;
  padding: 22px 20px;
  border-right: 1px solid #d8ded9;
}

.overview-metrics > div:last-child,
.account-v2 .dashboard-metrics > div:last-child {
  border-right: 0;
}

.overview-metrics dt,
.account-v2 .dashboard-metrics dt {
  margin-bottom: 8px;
  color: #748078;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-metrics dd,
.account-v2 .dashboard-metrics dd {
  margin: 0;
  color: #152119;
  font-size: 17px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.overview-primary-actions {
  display: flex;
  gap: 10px;
}

.account-v2 .control-lock-message {
  color: #647069;
}

.remote-control-v2 {
  min-height: 650px;
  margin: -30px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.remote-control-v2 .remote-control-head {
  min-height: 104px;
  padding: 20px 24px;
  border-bottom: 1px solid #d7ddd8;
}

.shine-tool-tabs {
  display: flex;
  min-height: 64px;
  padding: 10px 20px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #d7ddd8;
  background: #f4f6f3;
}

.shine-tool-tab {
  display: inline-flex;
  min-width: 130px;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #173d69;
  border-radius: 6px;
  background: #173d69;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.shine-tool-tab span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.shine-tool-tab.is-active {
  border-color: #0b6039;
  background: #0b6039;
  box-shadow: inset 0 -3px #38d88a;
}

.stable-control-message,
.stable-command-message {
  min-height: 34px;
  margin: 0;
  padding: 7px 24px;
  border-bottom: 1px solid #e1e5e2;
}

.remote-control-v2 .remote-library-layout {
  min-height: 510px;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
}

.remote-control-v2 .folder-browser {
  background: #f5f7f4;
}

.library-tool-panel {
  min-height: 184px;
  margin: 0 -16px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #dce2dd;
  background: #f3f8fc;
}

.library-tool-panel[data-library-tool-panel="songs"] {
  background: #f2f6fc;
}

.bible-workspace-head {
  display: flex;
  min-height: 48px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.bible-workspace-head h3 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1.2;
}

.bible-browser-form {
  display: grid;
  grid-template-columns: minmax(140px, 1.15fr) 88px 78px 78px minmax(150px, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
}

.bible-reference-field {
  grid-column: 1 / span 3;
}

.bible-add-button {
  grid-column: 4 / -1;
  width: 100%;
}

.bible-install-disclosure {
  margin-top: 14px;
  color: #315440;
}

.bible-install-disclosure summary {
  min-height: 42px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.bible-install-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.songs-tool-copy {
  margin: 12px 0 0;
}

.stable-library-items {
  min-height: 190px;
}

.refresh-stable-button[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}

.membership-dashboard {
  padding: 0 0 30px;
  border: 0;
}

.usage-progress {
  overflow: hidden;
  height: 8px;
  margin-top: 18px;
  border-radius: 4px;
  background: #e3e8e4;
}

.usage-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #15945a;
  transition: width 220ms ease;
}

.account-v2 .account-pricing-section {
  margin-top: 24px;
  padding-top: 30px;
  border-top: 1px solid #d8ded9;
}

.account-v2 .account-plan {
  border-color: #ccd4ce;
  background: #f8faf8;
  color: #17231c;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
}

.account-settings-section {
  min-width: 0;
}

.account-settings-section + .account-settings-section {
  padding-left: 36px;
  border-left: 1px solid #d8ded9;
}

.account-v2 .signed-in-panel {
  min-height: 90px;
  margin-top: 18px;
  border-top: 1px solid #d8ded9;
  border-bottom: 1px solid #d8ded9;
}

@media (max-width: 900px) {
  .account-app-panel {
    padding: 22px;
  }

  .remote-control-v2 {
    margin: -22px;
  }

  .overview-metrics,
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-metrics > div:nth-child(2),
  .dashboard-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .overview-metrics > div:nth-child(-n + 2),
  .dashboard-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #d8ded9;
  }

  .bible-browser-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bible-book-field,
  .bible-version-field,
  .bible-folder-field {
    grid-column: span 2;
  }

  .bible-reference-field {
    grid-column: 1 / span 2;
  }

  .bible-add-button {
    grid-column: 3 / -1;
  }
}

@media (max-width: 700px) {
  .email-confirmation-panel h2 {
    font-size: 32px;
  }

  .account-workspace-v2 {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .account-page-head-v2 {
    display: grid;
    gap: 14px;
  }

  .account-v2 .account-session-summary {
    width: 100%;
  }

  .account-access-v2 {
    min-height: 440px;
    margin: 20px auto 48px;
  }

  .account-auth-focus,
  .email-confirmation-panel {
    padding: 22px 18px;
  }

  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .account-app-tabs {
    padding: 0 8px;
    scroll-snap-type: x proximity;
  }

  .account-app-tab {
    min-width: 112px;
    padding: 0 12px;
    scroll-snap-align: start;
  }

  .account-app-panel {
    min-height: 620px;
    padding: 16px;
  }

  .dashboard-heading-row {
    display: grid;
    gap: 16px;
  }

  .installation-picker,
  .installation-picker select {
    width: 100%;
  }

  .overview-metrics,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .overview-metrics > div,
  .account-v2 .dashboard-metrics > div {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid #d8ded9;
  }

  .overview-metrics > div:last-child,
  .account-v2 .dashboard-metrics > div:last-child {
    border-bottom: 0;
  }

  .overview-primary-actions {
    display: grid;
  }

  .remote-control-v2 {
    margin: -16px;
  }

  .remote-control-v2 .remote-control-head {
    padding: 16px;
  }

  .shine-tool-tabs {
    padding: 10px;
  }

  .shine-tool-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
  }

  .stable-control-message,
  .stable-command-message {
    padding-right: 16px;
    padding-left: 16px;
  }

  .remote-control-v2 .remote-library-layout {
    grid-template-columns: 1fr;
  }

  .remote-control-v2 .folder-browser {
    min-height: 0;
  }

  .library-tool-panel {
    min-height: 0;
    margin: 0 -12px;
    padding: 16px 12px;
  }

  .bible-workspace-head {
    display: grid;
    gap: 8px;
  }

  .bible-browser-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bible-book-field,
  .bible-version-field,
  .bible-folder-field,
  .bible-reference-field,
  .bible-add-button {
    grid-column: 1 / -1;
  }

  .bible-install-form {
    grid-template-columns: 1fr;
  }

  .bible-install-form .secondary-button {
    width: 100%;
  }

  .account-settings-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-settings-section + .account-settings-section {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid #d8ded9;
    border-left: 0;
  }
}

/* Account and web Library v3 */
.account-v3 [hidden] {
  display: none !important;
}

/* Library and live-control stability */
.shine-library-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #d4dbd6;
  border-radius: 6px;
  background: #102b49;
  object-fit: contain;
}

.new-folder-disclosure > summary {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 13px;
  align-items: center;
  gap: 9px;
  border-color: #18221c;
  background: #18221c;
  color: #ffffff;
}

.new-folder-disclosure[data-disabled="true"] > summary {
  cursor: not-allowed;
  opacity: 0.52;
}

.toolbar-folder-icon,
.folder-icon-mark {
  position: relative;
}

.toolbar-folder-icon {
  display: inline-block;
  width: 19px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.toolbar-folder-icon::before,
.folder-icon-mark.folder-icon-mark::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.toolbar-folder-icon::after {
  content: "+";
  position: absolute;
  right: -6px;
  bottom: -7px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #18221c;
  font-size: 11px;
  font-weight: 900;
}

.folder-icon-mark {
  color: #8b671d;
  background: #fff4d8;
}

.folder-icon-mark::after {
  content: "";
  width: 18px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.library-kind-mark {
  font-size: 17px;
  line-height: 1;
}

.library-kind-mark[data-kind="bible"] {
  background: #fff0b8;
  color: #7b5810;
}

.library-kind-mark[data-kind="song"],
.library-kind-mark[data-kind="songs"],
.library-kind-mark[data-kind="audio"] {
  background: #dff1ff;
  color: #245f8a;
}

.library-kind-mark[data-kind="video"],
.library-kind-mark[data-kind="youtube"] {
  background: #ffe6e7;
  color: #a52f38;
}

.library-kind-mark[data-kind="slider"],
.library-kind-mark[data-kind="slide"],
.library-kind-mark[data-kind="presentation"] {
  background: #e7efe9;
  color: #315846;
}

.folder-inline-editor {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.folder-editor-actions {
  grid-column: 1 / -1;
  min-height: 44px;
  justify-content: space-between;
}

.order-actions,
.item-order-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #c7d0c9;
  border-radius: 6px;
  background: #ffffff;
  color: #233129;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
  border-color: #5e7768;
  background: #eef4ef;
}

.icon-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.item-popover-menu {
  display: grid;
  gap: 9px;
}

.item-move-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.item-move-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.item-move-disclosure > summary {
  display: flex;
  min-height: 44px;
  padding: 9px 12px;
  align-items: center;
  gap: 9px;
  list-style: none;
  border: 1px solid #d4ddd7;
  border-radius: 8px;
  background: #f7f9f8;
  color: #203128;
  font-weight: 850;
  cursor: pointer;
}

.item-move-disclosure > summary::-webkit-details-marker { display: none; }
.item-move-disclosure[open] > summary { border-color: #6c8778; background: #edf3ef; }
.item-move-disclosure .item-move-form { margin-top: 7px; }
.item-move-symbol { font-size: 19px; line-height: 1; }

.item-order-actions {
  padding-top: 2px;
}

.live-control-tree {
  min-height: 320px;
  background: #f8faf8;
}

.live-folder-group {
  margin-left: calc(var(--control-depth) * 10px);
  border: 1px solid color-mix(in srgb, var(--folder-color) 38%, #d2dad4);
  border-left: 5px solid var(--folder-color);
  border-radius: 7px;
  overflow: hidden;
}

.live-folder-heading {
  grid-template-columns: 42px 34px minmax(0, 1fr) auto;
  background: color-mix(in srgb, var(--folder-color) 9%, #ffffff);
}

.control-folder-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3e4d45;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.control-folder-toggle:hover,
.control-folder-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.8);
}

.live-folder-contents {
  min-width: 0;
  background: #ffffff;
}

.live-item-block + .live-item-block {
  border-top: 1px solid #e2e7e3;
}

.live-item-block[data-active="true"] {
  box-shadow: inset 4px 0 #15945a;
}

.live-item-row {
  display: grid;
  min-height: 66px;
  padding: 7px 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #ffffff;
}

.live-item-block[data-active="true"] > .live-item-row {
  background: #edfaf2;
}

.live-item-open {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 4px 5px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #17231c;
  font: inherit;
  text-align: left;
}

.live-item-open[data-control-item-toggle] {
  cursor: pointer;
}

.live-item-open[data-control-item-toggle]:hover,
.live-item-open[data-control-item-toggle]:focus-visible {
  background: #eef6f1;
  outline: 0;
}

.live-item-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #536159;
  font-weight: 900;
}

.live-send-button {
  min-width: 76px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #10864f;
  border-radius: 6px;
  background: #10864f;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.live-send-button:hover,
.live-send-button:focus-visible {
  border-color: #0b6f40;
  background: #0b6f40;
}

.live-send-button[data-active="true"] {
  border-color: #0d6038;
  background: #0d6038;
}

.live-send-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.live-slide-list {
  display: grid;
  padding: 0 9px 9px 56px;
  gap: 6px;
  background: #f7faf8;
}

.live-slide-row {
  display: grid;
  min-height: 58px;
  padding: 6px 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8e0da;
  border-radius: 6px;
  background: #ffffff;
}

.live-slide-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
}

.live-slide-copy .slide-number {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 5px;
  background: #eaf4ed;
  color: #21583b;
  font-size: 11px;
  font-weight: 850;
}

.live-slide-copy strong,
.live-slide-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-slide-copy small {
  color: #69766e;
  font-size: 11px;
}

.live-slide-send {
  min-width: 70px;
}

.live-slide-loading {
  min-height: 52px;
  margin: 0;
  padding: 15px 10px;
  color: #657269;
  font-size: 12px;
}

@media (max-width: 700px) {
  .shine-library-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .folder-inline-editor {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .folder-editor-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .new-folder-disclosure > summary {
    width: 44px;
    padding: 8px;
    justify-content: center;
  }

  .new-folder-disclosure > summary > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .live-folder-group {
    margin-left: calc(var(--control-depth) * 5px);
  }

  .live-folder-heading {
    grid-template-columns: 38px 32px minmax(0, 1fr) 30px;
    min-height: 54px;
    padding: 5px 6px;
  }

  .control-folder-toggle {
    width: 38px;
    height: 42px;
  }

  .live-item-row {
    min-height: 68px;
    padding: 7px;
  }

  .live-item-open {
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    gap: 7px;
  }

  .live-send-button {
    min-width: 68px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .live-slide-list {
    padding: 0 7px 8px 16px;
  }

  .live-slide-row {
    min-height: 64px;
  }

  .live-slide-copy small {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .item-popover-menu {
    width: min(310px, calc(100vw - 28px));
  }
}

/* Account v8: SHINE source actions and polished Bible bottom sheet. */
.folder-add-bottom[open] .folder-add-popover {
  width: min(460px, calc(100vw - 28px));
  padding: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #c8d5df;
  background: #f7fafc;
}

.folder-add-popover .folder-source-action {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 9px 6px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #174b78;
  border-radius: 7px;
  background: #174b78;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 10px rgba(20, 66, 105, 0.13);
}

.folder-add-popover .folder-source-action:hover,
.folder-add-popover .folder-source-action:focus-visible {
  border-color: #0f385d;
  background: #0f385d;
}

.folder-add-popover .folder-source-folder {
  border-color: #245d92;
  background: #245d92;
}

.folder-source-symbol {
  display: grid;
  min-width: 26px;
  height: 24px;
  padding: 0 5px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 900;
}

.folder-source-label {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.folder-quick-create {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding-top: 3px;
}

.folder-quick-create[hidden] {
  display: none !important;
}

.folder-quick-create input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #aebdca;
  border-radius: 7px;
  background: #ffffff;
  color: #182a38;
  font: inherit;
  font-size: 14px;
}

.folder-add-popover .folder-quick-submit {
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid #173f64;
  border-radius: 7px;
  background: #173f64;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.library-tool-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 18px;
  border-color: #c7d3cb;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(9, 25, 16, 0.32);
}

.library-tool-dialog .library-tool-drawer-head {
  display: grid;
  min-height: 56px;
  margin: 0 0 12px;
  padding: 0 0 13px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid #e0e7e2;
}

.library-tool-title-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding-top: 1px;
}

.library-tool-dialog .library-tool-title-copy strong {
  overflow: hidden;
  color: #13231a;
  font-size: 21px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-close-button {
  width: 44px;
  height: 44px;
  border-color: #bf263b;
  border-radius: 7px;
  background: #d52d43;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 5px 12px rgba(190, 31, 54, 0.18);
}

.tool-close-button:hover,
.tool-close-button:focus-visible {
  border-color: #9f172c;
  background: #b91f35;
}

.bible-language-control {
  display: grid;
  gap: 3px;
  justify-items: start;
}

.bible-language-control select {
  min-width: 112px;
  min-height: 44px;
  border-color: #bdcac1;
  background: #f9fbfa;
  font-weight: 750;
}

.library-tool-dialog .tool-inline-status {
  min-height: 0;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #c9e4d4;
  border-radius: 7px;
  background: #eff9f3;
  color: #326048;
  font-size: 12px;
  line-height: 1.4;
}

.library-tool-dialog .bible-mode-tabs {
  min-height: 52px;
  margin: 0 0 16px;
  border-color: #ccd8df;
  background: #eef3f6;
}

.library-tool-dialog .bible-mode-tab {
  min-height: 44px;
  color: #4d5e68;
}

.library-tool-dialog .bible-mode-tab.is-active {
  background: #174b78;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 66, 105, 0.16);
}

.library-tool-dialog .bible-entry-form {
  gap: 12px;
}

.library-tool-dialog .bible-mode-panel {
  gap: 10px;
}

.library-tool-dialog .bible-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.library-tool-dialog .bible-book-field,
.library-tool-dialog .bible-version-field {
  grid-column: 1 / -1 !important;
}

.library-tool-dialog .bible-entry-form .field {
  gap: 5px;
}

.library-tool-dialog .bible-entry-form .field > span {
  color: #53635a;
  font-size: 11px;
  font-weight: 850;
}

.library-tool-dialog .bible-entry-form .field input,
.library-tool-dialog .bible-entry-form .field select {
  min-height: 48px;
  border-color: #c4d0c8;
  border-radius: 7px;
  background: #fbfcfb;
  color: #18271e;
  font-size: 15px;
}

.library-tool-dialog .bible-entry-form .field input:focus,
.library-tool-dialog .bible-entry-form .field select:focus {
  border-color: #247cb6;
  box-shadow: 0 0 0 3px rgba(36, 124, 182, 0.12);
}

.library-tool-dialog .bible-submit-row {
  display: block;
  margin: 2px 0 0;
}

.library-tool-dialog .bible-submit-row .add-submit-button {
  width: 100%;
  min-height: 50px !important;
  border-color: #168c57;
  background: #1aab68;
  font-size: 14px;
  font-weight: 850;
}

.library-tool-dialog .bible-mode-help {
  padding: 0 2px;
  color: #64736a;
}

.library-tool-dialog .compact-disclosure {
  margin-top: 17px;
  padding-top: 13px;
}

.library-tool-dialog .compact-disclosure > summary {
  min-height: 44px;
  color: #244f6e;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .folder-add-bottom[open] .folder-add-popover {
    position: static;
    width: 100%;
    margin-top: 7px;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #c8d5df;
    box-shadow: none;
  }

  .folder-add-popover .folder-source-action {
    min-height: 58px;
  }

  .folder-quick-create {
    grid-template-columns: 1fr;
  }

  .folder-add-popover .folder-quick-submit {
    width: 100%;
  }

  .library-tool-dialog {
    top: 6svh;
    bottom: 0;
    width: 100%;
    max-height: 94svh;
    padding: 16px 12px calc(15px + env(safe-area-inset-bottom));
    border-radius: 8px 8px 0 0;
    transform: none;
  }

  .library-tool-dialog .library-tool-drawer-head {
    min-height: 58px;
    margin-bottom: 10px;
    padding-bottom: 11px;
    grid-template-columns: 44px minmax(0, 1fr) 108px;
    gap: 9px;
  }

  .library-tool-dialog .library-tool-title-copy strong {
    font-size: 18px;
    white-space: normal;
  }

  .bible-language-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .bible-language-control select {
    width: 108px;
    min-width: 0;
  }

  .library-tool-dialog .tool-inline-status {
    margin-bottom: 10px;
  }

  .library-tool-dialog .bible-mode-tabs {
    margin-bottom: 13px;
  }

  .library-tool-dialog .bible-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .library-tool-dialog .bible-book-field,
  .library-tool-dialog .bible-version-field {
    grid-column: 1 / -1 !important;
  }

  .library-tool-dialog .bible-entry-form .field input,
  .library-tool-dialog .bible-entry-form .field select {
    min-height: 48px;
  }
}

/* Account v7: focused authentication, expressive Live state, and clear Bible entry. */
.language-control,
.bible-language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-control select {
  min-height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid #34413a;
  border-radius: 6px;
  background: #141b17;
  color: #f7faf8;
  font-size: 13px;
  font-weight: 700;
}

.account-body[data-signed-in="false"] {
  min-height: 100svh;
  background: #f1f6f2;
}

.account-body[data-signed-in="false"] .account-site-header {
  min-height: 76px;
  padding: 13px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid #1d2821;
  background: #09100c;
}

.account-body[data-signed-in="false"] .account-site-header .brand-logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-color: #314038;
}

.account-body[data-signed-in="false"] .account-site-header .brand-text strong {
  font-size: 14px;
}

.account-body[data-signed-in="false"] .account-site-header .brand-text small {
  margin-top: 3px;
  color: #91a298;
  font-size: 10px;
}

.account-body[data-signed-in="false"] .account-workspace-v3 {
  width: min(100% - 32px, 520px);
  padding: clamp(34px, 8vh, 72px) 0 64px;
}

.account-body[data-signed-in="false"] .account-page-head-v3 {
  display: none;
}

.account-body[data-signed-in="false"] .site-footer {
  display: none;
}

.account-body[data-signed-in="false"] .account-access-v3 {
  width: 100%;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
}

.account-body[data-signed-in="false"] .account-auth-focus,
.account-body[data-signed-in="false"] .email-confirmation-panel {
  position: relative;
  padding: clamp(24px, 6vw, 34px);
  border: 1px solid #dce5de;
  border-top: 4px solid #18a864;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(24, 48, 33, 0.12);
}

.account-body[data-signed-in="false"] .account-auth-focus h2 {
  margin-top: 4px;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.08;
}

.account-body[data-signed-in="false"] .account-auth-focus .account-section-head {
  margin-bottom: 6px;
  padding-bottom: 18px;
}

.account-body[data-signed-in="false"] .simple-auth-tabs {
  display: grid;
  min-height: 52px;
  padding: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #d7dfd9;
  border-radius: 8px;
  background: #f2f5f3;
}

.account-body[data-signed-in="false"] .account-auth-focus .auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #536159;
  font-size: 14px;
  font-weight: 800;
}

.account-body[data-signed-in="false"] .account-auth-focus .auth-tab.is-active {
  background: #132019;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 30, 20, 0.14);
}

.account-body[data-signed-in="false"] .account-form-compact {
  gap: 15px;
}

.account-body[data-signed-in="false"] .field > span:first-child,
.account-body[data-signed-in="false"] .field-label {
  color: #425047;
  font-size: 12px;
  font-weight: 800;
}

.account-body[data-signed-in="false"] .field input {
  min-height: 52px;
  border-color: #cbd5ce;
  border-radius: 8px;
  background: #fbfcfb;
  color: #142119;
  font-size: 16px;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 86px !important;
}

.password-visibility-button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 70px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #246344;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.account-body[data-signed-in="false"] .auth-submit {
  position: relative;
  min-height: 52px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
}

.auth-submit[data-state="loading"]::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}

.account-body[data-signed-in="false"] .auth-message {
  min-height: 0;
  margin: 0;
}

.account-body[data-signed-in="false"] .auth-message:empty {
  display: none;
}

.account-body[data-signed-in="false"] .auth-message[data-tone="error"] {
  display: grid;
  min-height: 56px;
  padding: 11px 13px 11px 45px;
  align-items: center;
  border: 1px solid #ef9ca7;
  border-radius: 8px;
  background: #fff0f2;
  color: #8d2031;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(142, 31, 49, 0.09);
}

.account-body[data-signed-in="false"] .auth-message[data-tone="error"]::before {
  content: "!";
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c82d43;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.account-body[data-signed-in="false"] #signinForm[data-state="error"] .password-input-wrap input {
  border-color: #d84559;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(216, 69, 89, 0.12);
  animation: auth-error-nudge 0.28s ease-out;
}

.account-body[data-signed-in="false"] .auth-text-button {
  min-height: 44px;
  padding-top: 10px;
  color: #286347;
  font-size: 13px;
}

@keyframes auth-error-nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

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

.live-send-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.live-send-button:active:not(:disabled) {
  transform: translateY(1px);
}

.live-send-button[data-state="live"] {
  border-color: #bd2036;
  background: #d42d43;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(190, 31, 54, 0.2);
}

.live-send-button[data-state="sent"] {
  border-color: #e9a8b4;
  background: #fde8ec;
  color: #8b2740;
}

.live-send-button[data-state="sending"] {
  border-color: #0b6f43;
  background: #0d7c4a;
  color: #ffffff;
}

.live-send-button[data-state="sending"]:disabled {
  opacity: 1;
}

.live-send-label,
.live-send-spinner {
  position: relative;
  z-index: 2;
}

.live-send-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: account-spin 0.75s linear infinite;
}

.live-send-progress {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.78);
  transform: scaleX(0);
  transform-origin: left;
  animation: live-send-progress 3.2s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}

@keyframes live-send-progress {
  0% { transform: scaleX(0); }
  70% { transform: scaleX(0.72); }
  100% { transform: scaleX(0.9); }
}

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

.tool-close-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #d0d9d2;
  border-radius: 50%;
  background: #f7f9f7;
  color: #26372d;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.tool-close-button:hover,
.tool-close-button:focus-visible {
  border-color: #9eaca2;
  background: #eef3ef;
}

.bible-language-control {
  color: #5c6b62;
  font-size: 11px;
  font-weight: 800;
}

.bible-language-control select {
  min-height: 40px;
  padding: 0 28px 0 10px;
  border: 1px solid #cbd5ce;
  border-radius: 6px;
  background: #ffffff;
  color: #203128;
  font-size: 13px;
}

.library-tool-dialog .library-add-panel[data-add-panel="bible"] {
  min-height: 0;
}

.bible-mode-tabs {
  display: grid;
  min-height: 50px;
  margin: 2px 0 16px;
  padding: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #d3dcd5;
  border-radius: 8px;
  background: #f1f5f2;
}

.bible-mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536159;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.bible-mode-tab.is-active {
  background: #142119;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(18, 34, 24, 0.13);
}

.bible-entry-form,
.bible-mode-panel {
  display: grid;
  gap: 9px;
}

.bible-entry-form .reference-field,
.bible-entry-form .add-submit-button,
.bible-entry-form .field {
  grid-column: auto !important;
}

.bible-entry-form .field input,
.bible-entry-form .field select {
  min-height: 50px;
  font-size: 15px;
}

.bible-mode-help {
  margin: 0;
  color: #68756d;
  font-size: 12px;
  line-height: 1.45;
}

.bible-filter-grid {
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(74px, 0.55fr));
  align-items: end;
}

.bible-submit-row {
  display: grid;
  margin-top: 4px;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.72fr);
  align-items: end;
  gap: 10px;
}

.bible-submit-row .add-submit-button {
  min-height: 50px !important;
}

.library-tool-dialog .compact-disclosure {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e0e6e1;
}

@media (max-width: 700px) {
  .account-body[data-signed-in="false"] .account-site-header {
    min-height: 68px;
    padding: 9px 12px;
  }

  .account-body[data-signed-in="false"] .account-site-header .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .account-body[data-signed-in="false"] .account-site-header .header-actions {
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .account-body[data-signed-in="false"] .account-site-header .header-link {
    display: none;
  }

  .account-body[data-signed-in="false"] .account-workspace-v3 {
    width: min(100% - 20px, 520px);
    padding: 22px 0 calc(36px + env(safe-area-inset-bottom));
  }

  .account-body[data-signed-in="false"] .account-auth-focus,
  .account-body[data-signed-in="false"] .email-confirmation-panel {
    padding: 22px 18px 24px;
    box-shadow: 0 16px 38px rgba(24, 48, 33, 0.11);
  }

  .account-body[data-signed-in="false"] .account-auth-focus h2 {
    font-size: 29px;
  }

  .library-tool-dialog .library-tool-drawer-head {
    align-items: flex-start;
  }

  .drawer-head-actions {
    align-items: flex-end;
  }

  .bible-language-control {
    display: grid;
    gap: 3px;
  }

  .bible-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bible-filter-grid .bible-book-field {
    grid-column: 1 / -1 !important;
  }

  .bible-submit-row {
    grid-template-columns: 1fr;
  }

  .bible-mode-tabs,
  .bible-mode-tab {
    min-height: 48px;
  }

  .live-send-button {
    min-width: 78px;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit[data-state="loading"]::before,
  .live-send-spinner,
  .live-send-progress,
  #signinForm[data-state="error"] .password-input-wrap input {
    animation: none;
  }

  .live-send-progress {
    transform: scaleX(0.72);
  }
}

.folder-icon-mark.folder-icon-mark::before {
  top: 7px;
  left: 8px;
}

.item-popover-menu .item-rename-form input,
.item-popover-menu .item-rename-form button,
.item-popover-menu .item-move-form select,
.item-popover-menu .item-move-form button,
.library-item-actions .item-menu-disclosure > summary {
  min-height: 44px;
}

.library-item-actions .item-menu-disclosure > summary {
  width: 44px;
  height: 44px;
}

.account-v3 .compact-disclosure > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.library-mirror-notice {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #e2c889;
  background: #fff8e8;
  color: #6d5017;
  font-size: 13px;
}

.account-workspace-v3 {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.account-page-head-v3 {
  margin-bottom: 22px;
}

.account-page-head-v3 h1 {
  margin: 3px 0 5px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.account-access-v3 {
  display: grid;
  width: min(100%, 560px);
  min-height: 500px;
  margin: 36px auto 64px;
}

.account-app-shell-v3 {
  min-height: 680px;
}

.account-app-tabs-v3 .account-app-tab {
  flex: 0 0 auto;
  min-width: 160px;
}

.account-settings-layout-v3 {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.section-title-row,
.library-tool-drawer-head,
.shine-library-head-v3,
.library-head-actions,
.account-row-actions,
.subscription-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title-row h2,
.shine-library-head-v3 h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.account-identity-row {
  display: flex;
  min-height: 76px;
  margin: 18px 0;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #d8ded9;
  border-bottom: 1px solid #d8ded9;
}

.account-identity-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-identity-row span {
  color: #6a756e;
  font-size: 12px;
}

.account-identity-row strong {
  overflow-wrap: anywhere;
}

.role-badge,
.library-count,
.folder-count-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd6cf;
  border-radius: 999px;
  background: #f6f8f6;
  color: #405048;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.account-link-pane {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #d8ded9;
}

.manual-link-form,
.team-invite-form,
.inline-tool-form,
.youtube-tool-form,
.library-add-grid {
  display: grid;
  gap: 10px;
  align-items: end;
}

.manual-link-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
}

.team-invite-form {
  grid-template-columns: minmax(0, 1fr) 130px auto;
  margin: 18px 0 4px;
}

.team-list,
.team-invitations {
  display: grid;
  gap: 0;
}

.team-invitations:not(:empty) {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #d8ded9;
}

.team-row {
  display: grid;
  min-height: 68px;
  padding: 10px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e0e5e1;
}

.team-plan-message {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #e2c889;
  background: #fff8e8;
  color: #6d5017;
  font-size: 13px;
}

.team-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.team-row-copy strong {
  overflow-wrap: anywhere;
}

.team-row-copy span {
  color: #6d7871;
  font-size: 12px;
}

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

.team-row-controls select {
  min-width: 108px;
  min-height: 42px;
}

.danger-text-button,
.icon-text-button {
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #b22a35;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.icon-text-button {
  color: #405048;
}

.danger-text-button:disabled,
.icon-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shine-library-shell-v3 {
  min-height: 620px;
  margin: -30px;
  background: #ffffff;
}

.shine-library-head-v3 {
  min-height: 96px;
  padding: 18px 22px;
  border-bottom: 1px solid #d8ded9;
}

.shine-library-title {
  min-width: 0;
}

.shine-library-logo {
  flex: 0 0 auto;
}

.library-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-button {
  min-height: 42px !important;
  padding: 8px 13px !important;
}

.library-source-row {
  display: flex;
  min-height: 68px;
  padding: 11px 16px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #d8ded9;
  background: #f5f7f4;
  overflow-x: auto;
}

.library-source-button {
  display: inline-flex;
  min-width: 128px;
  min-height: 46px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #cbd4cd;
  border-radius: 6px;
  background: #ffffff;
  color: #223029;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.library-source-button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 5px;
  background: #edf1ee;
  font-size: 11px;
}

.library-source-button[data-add-tool="bible"].is-active {
  border-color: #126c43;
  background: #126c43;
  color: #ffffff;
}

.library-source-button[data-add-tool="songs"].is-active {
  border-color: #2f6592;
  background: #2f6592;
  color: #ffffff;
}

.library-source-button[data-add-tool="youtube"].is-active {
  border-color: #a63b42;
  background: #a63b42;
  color: #ffffff;
}

.library-source-button.is-active span {
  background: rgba(255, 255, 255, 0.16);
}

.library-tool-drawer {
  padding: 16px 18px 18px;
  border-bottom: 1px solid #d8ded9;
  background: #f8faf8;
}

.library-tool-drawer-head {
  min-height: 38px;
  margin-bottom: 10px;
}

.library-add-panel {
  min-height: 104px;
}

.bible-add-grid {
  grid-template-columns: minmax(145px, 1fr) 86px 76px 76px minmax(130px, 0.8fr) minmax(150px, 1fr);
}

.reference-field {
  grid-column: 1 / span 4;
}

.add-submit-button {
  grid-column: 5 / -1;
  width: 100%;
}

.compact-disclosure {
  margin-top: 12px;
  color: #365247;
}

.compact-disclosure > summary,
.library-menu-disclosure > summary,
.library-search-disclosure > summary,
.folder-add-disclosure > summary,
.item-menu-disclosure > summary {
  list-style: none;
  cursor: pointer;
}

.compact-disclosure > summary::-webkit-details-marker,
.library-menu-disclosure > summary::-webkit-details-marker,
.library-search-disclosure > summary::-webkit-details-marker,
.folder-add-disclosure > summary::-webkit-details-marker,
.item-menu-disclosure > summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure .inline-tool-form {
  margin-top: 8px;
}

.inline-tool-form {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.45fr) auto;
}

.youtube-tool-form {
  grid-template-columns: minmax(240px, 1fr) auto minmax(150px, 0.45fr) auto;
}

.format-segment {
  display: flex;
  min-height: 46px;
  margin: 0;
  padding: 3px;
  align-items: stretch;
  gap: 2px;
  border: 1px solid #c8d0ca;
  border-radius: 6px;
  background: #ffffff;
}

.format-segment legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.format-segment label {
  display: grid;
  min-width: 70px;
  place-items: center;
  cursor: pointer;
}

.format-segment input {
  position: absolute;
  opacity: 0;
}

.format-segment span {
  display: grid;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  place-items: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
}

.format-segment input:checked + span {
  background: #173e2c;
  color: #ffffff;
}

.remote-search-results {
  display: grid;
  max-height: 360px;
  margin-top: 12px;
  gap: 7px;
  overflow: auto;
}

.remote-result-row {
  display: grid;
  min-height: 62px;
  padding: 8px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d6ddd8;
  border-radius: 6px;
  background: #ffffff;
}

.youtube-result-row {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.youtube-result-row img {
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
  background: #e4e8e5;
}

.youtube-result-placeholder {
  display: grid;
  width: 96px;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 5px;
  background: #e7ece8;
  color: #4c5c53;
  font-size: 12px;
  font-weight: 850;
}

.remote-result-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.remote-result-copy strong {
  overflow-wrap: anywhere;
}

.remote-result-copy span {
  color: #6d7871;
  font-size: 12px;
}

.library-utility-bar {
  position: relative;
  display: flex;
  min-height: 64px;
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #d8ded9;
  background: #ffffff;
}

.library-menu-disclosure,
.library-search-disclosure,
.folder-add-disclosure,
.item-menu-disclosure {
  position: relative;
}

.library-menu-disclosure > summary,
.library-search-disclosure > summary {
  display: grid;
  min-height: 42px;
  padding: 8px 13px;
  place-items: center;
  border: 1px solid #cbd4cd;
  border-radius: 6px;
  background: #ffffff;
  color: #26352d;
  font-size: 13px;
  font-weight: 800;
}

.library-menu-disclosure[open] > summary,
.library-search-disclosure[open] > summary {
  border-color: #1d6e48;
  color: #145737;
}

.library-popover-menu,
.library-popover-form,
.folder-add-popover,
.item-popover-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #cdd5cf;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 33, 24, 0.14);
}

.library-popover-menu,
.folder-add-popover {
  display: grid;
  gap: 3px;
}

.library-popover-menu button,
.folder-add-popover button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #26352d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.library-popover-menu button:hover,
.folder-add-popover button:hover {
  background: #eef4ef;
}

.library-popover-form {
  width: min(320px, calc(100vw - 32px));
}

.library-search-disclosure {
  flex: 1 1 220px;
}

.library-search-disclosure[open] {
  display: flex;
  align-items: center;
  gap: 7px;
}

.library-search-disclosure .search-field {
  flex: 1 1 auto;
}

.library-search-disclosure input {
  min-height: 42px;
}

.library-utility-bar > .library-count {
  margin-left: auto;
}

.stable-control-message,
.stable-command-message {
  min-height: 30px;
  margin: 0;
  padding: 5px 16px;
  border-bottom: 1px solid #e1e5e2;
}

.stable-command-message:empty,
.stable-control-message:empty {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.shine-library-tree {
  min-height: 280px;
  padding: 12px;
  background: #fbfcfb;
}

.shine-folder-block {
  min-width: 0;
}

.shine-folder-contents > .shine-folder-block {
  margin-left: 20px;
}

.shine-folder-row {
  display: grid;
  min-height: 58px;
  margin-bottom: 5px;
  padding: 6px 8px;
  grid-template-columns: 36px 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--folder-color) 48%, #cfd6d1);
  border-left: 5px solid var(--folder-color);
  border-radius: 7px;
  background: color-mix(in srgb, var(--folder-color) 10%, #ffffff);
}

.shine-folder-row[data-selected="true"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--folder-color) 70%, #5d6a62);
}

.folder-toggle-button,
.folder-edit-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #425048;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.folder-toggle-button:hover,
.folder-edit-button:hover {
  background: rgba(255, 255, 255, 0.74);
}

.folder-icon-mark,
.library-kind-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--folder-color) 20%, #ffffff);
  color: #37453d;
  font-size: 12px;
  font-weight: 850;
}

.folder-title-button {
  display: grid;
  min-width: 0;
  min-height: 42px;
  padding: 2px 4px;
  align-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #18251e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.folder-title-button strong,
.folder-title-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-title-button span {
  color: #68746d;
  font-size: 11px;
}

.folder-row-actions,
.library-item-actions,
.folder-editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.folder-add-disclosure > summary,
.item-menu-disclosure > summary {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(70, 85, 76, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #26362e;
  font-size: 18px;
  font-weight: 800;
}

.folder-add-popover,
.item-popover-menu {
  right: 0;
  left: auto;
}

.folder-inline-editor {
  display: grid;
  margin: 0 0 8px 48px;
  padding: 12px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(170px, 0.55fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid #d3dad5;
  border-radius: 7px;
  background: #ffffff;
}

.folder-color-field {
  display: flex;
  min-width: 190px;
  min-height: 46px;
  margin: 0;
  padding: 4px 7px;
  align-items: center;
  gap: 5px;
  border: 1px solid #c8d0ca;
  border-radius: 6px;
}

.folder-color-field legend {
  padding: 0 4px;
  color: #68746d;
  font-size: 11px;
  font-weight: 750;
}

.folder-color-swatch {
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
  cursor: pointer;
}

.folder-color-swatch input {
  position: absolute;
  opacity: 0;
}

.folder-color-swatch span {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #bfc8c1;
}

.folder-color-swatch input:checked + span {
  box-shadow: 0 0 0 3px #1b6d47;
}

.folder-editor-actions {
  justify-content: flex-end;
}

.shine-folder-contents {
  min-width: 0;
  padding: 0 0 2px 26px;
}

.library-item-row-v3 {
  display: grid;
  min-height: 68px;
  margin: 0 0 5px;
  padding: 8px 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #bce8d0;
  border-radius: 7px;
  background: #ecfbf3;
}

.library-item-row-v3 .library-kind-mark {
  background: #fff0b8;
  color: #805d13;
}

.library-item-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.library-item-copy strong,
.library-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item-copy span {
  color: #64736b;
  font-size: 11px;
}

.send-live-button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #0d6a3c;
  border-radius: 6px;
  background: #0d6a3c;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.send-live-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.item-popover-menu {
  width: min(280px, calc(100vw - 32px));
}

.item-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.item-rename-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #c8d0ca;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
}

.item-popover-menu > .danger-text-button {
  width: 100%;
  margin-top: 5px;
  text-align: left;
}

.folder-empty-line,
.library-empty {
  margin: 6px 0 10px;
  color: #7a857e;
  font-size: 12px;
}

.subscription-dashboard {
  padding: 0 0 28px;
}

.subscription-status-block {
  padding: 22px 0;
  border-bottom: 1px solid #d8ded9;
}

.subscription-status-block h3 {
  margin: 0 0 5px;
}

.subscription-status-block p {
  margin: 0;
  color: #68746d;
}

.membership-details {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #d8ded9;
}

.membership-details > div {
  min-height: 96px;
  padding: 20px 16px;
  border-right: 1px solid #d8ded9;
}

.membership-details > div:last-child {
  border-right: 0;
}

.membership-details dt {
  margin-bottom: 8px;
  color: #738078;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.subscription-actions {
  margin-top: 18px;
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .account-settings-layout-v3 {
    grid-template-columns: 1fr;
  }

  .account-settings-layout-v3 .account-settings-section + .account-settings-section {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid #d8ded9;
    border-left: 0;
  }

  .bible-add-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bible-add-grid > .field:first-child,
  .bible-add-grid > .field:nth-child(5),
  .bible-add-grid > .field:nth-child(6) {
    grid-column: span 2;
  }

  .reference-field {
    grid-column: 1 / span 2;
  }

  .add-submit-button {
    grid-column: 3 / -1;
  }

  .youtube-tool-form {
    grid-template-columns: minmax(0, 1fr) auto minmax(150px, 0.5fr);
  }

  .youtube-tool-form > .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .folder-inline-editor {
    grid-template-columns: minmax(180px, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .account-workspace-v3 {
    width: min(100% - 16px, 1180px);
    padding-top: 16px;
  }

  .account-page-head-v3 {
    display: grid;
    gap: 12px;
  }

  .account-page-head-v3 h1 {
    font-size: 30px;
  }

  .account-access-v3 {
    margin-top: 18px;
  }

  .account-app-tabs-v3 {
    padding: 0 4px;
  }

  .account-app-tabs-v3 .account-app-tab {
    flex: 1 0 112px;
    min-width: 112px;
    min-height: 58px;
    padding: 0 9px;
    font-size: 13px;
  }

  .account-app-panel {
    padding: 14px;
  }

  .manual-link-form,
  .team-invite-form,
  .inline-tool-form,
  .youtube-tool-form {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr;
  }

  .team-row-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .shine-library-shell-v3 {
    margin: -14px;
  }

  .shine-library-head-v3 {
    display: grid;
    min-height: 0;
    padding: 14px;
  }

  .library-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }

  .library-source-row {
    display: grid;
    min-height: 0;
    padding: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .library-source-button {
    min-width: 0;
    min-height: 54px;
    padding: 7px 5px;
    gap: 6px;
    font-size: 12px;
  }

  .library-source-button span {
    width: 24px;
    height: 24px;
  }

  .library-tool-drawer {
    padding: 12px;
  }

  .bible-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bible-add-grid > .field:first-child,
  .bible-add-grid > .field:nth-child(5),
  .bible-add-grid > .field:nth-child(6),
  .reference-field,
  .add-submit-button {
    grid-column: 1 / -1;
  }

  .number-field {
    min-width: 0;
  }

  .format-segment {
    width: 100%;
  }

  .format-segment label {
    flex: 1 1 0;
  }

  .remote-result-row,
  .youtube-result-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .youtube-result-row img {
    display: none;
  }

  .library-utility-bar {
    flex-wrap: wrap;
    padding: 9px;
  }

  .library-search-disclosure {
    flex-basis: 100%;
    order: 5;
  }

  .library-search-disclosure[open] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .library-utility-bar > .library-count {
    margin-left: 0;
  }

  .shine-library-tree {
    padding: 8px;
  }

  .shine-folder-contents {
    padding-left: 10px;
  }

  .shine-folder-contents > .shine-folder-block {
    margin-left: 8px;
  }

  .shine-folder-row {
    grid-template-columns: 32px 32px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 5px;
  }

  .folder-count-badge {
    display: none;
  }

  .folder-row-actions {
    grid-column: 4;
  }

  .folder-toggle-button,
  .folder-edit-button,
  .folder-add-disclosure > summary,
  .item-menu-disclosure > summary {
    width: 44px;
    height: 44px;
  }

  .folder-inline-editor {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .folder-color-field {
    min-width: 0;
    overflow-x: auto;
  }

  .folder-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .folder-editor-actions .danger-text-button {
    grid-column: 1 / -1;
  }

  .library-item-row-v3 {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .library-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .send-live-button {
    flex: 1 1 auto;
  }

  .membership-details {
    grid-template-columns: 1fr;
  }

  .membership-details > div {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid #d8ded9;
  }

  .membership-details > div:last-child {
    border-bottom: 0;
  }
}

/* Account workspace v4: Library-first, stable mobile control */
.account-site-header .brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.account-body[data-signed-in="true"] {
  background: #ffffff;
}

.account-body[data-signed-in="true"] .account-site-header {
  display: none;
}

.account-body[data-signed-in="true"] .account-site-header .brand-text,
.account-body[data-signed-in="true"] .account-site-header .header-actions,
.account-body[data-signed-in="true"] .account-page-head-v3,
.account-body[data-signed-in="true"] .site-footer {
  display: none;
}

.account-body[data-signed-in="true"] .account-site-header .brand {
  min-height: 42px;
}

.account-body[data-signed-in="true"] .account-site-header .brand-logo {
  width: 42px;
  height: 42px;
}

.account-body[data-signed-in="true"] .account-workspace-v3 {
  width: min(100%, 1260px);
  padding: 0;
}

.account-app-shell-v4 {
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-app-tabs-v4 {
  position: sticky;
  z-index: 35;
  top: 0;
  min-height: 68px;
  padding: 8px 14px;
  gap: 8px;
  border-bottom: 1px solid #d8ded9;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.account-app-tabs-v4 .account-app-tab {
  min-width: 120px;
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  color: #59635d;
  font-size: 15px;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease;
}

.account-app-tabs-v4 .account-app-tab.is-active {
  border-bottom-color: transparent;
  background: #eef2ef;
  color: #111713;
  font-weight: 850;
}

.folder-share-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #4b91d7;
  border-radius: 7px;
  background: #66a9e8;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.folder-share-button:hover,
.folder-share-button:focus-visible { border-color: #347fc7; background: #4f99df; outline: 3px solid rgba(102, 169, 232, 0.24); }
.folder-share-button[data-active="true"]::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16b86b;
  box-shadow: 0 0 0 3px rgba(22, 184, 107, .16);
}
.folder-share-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111b17;
  box-shadow: 0 24px 70px rgba(6, 20, 13, 0.3);
}

.folder-share-dialog::backdrop { background: rgba(5, 14, 10, 0.62); backdrop-filter: blur(4px); }
.folder-share-sheet { display: grid; gap: 16px; padding: 22px; border-top: 5px solid #1677e8; }
.folder-share-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.folder-share-sheet header span { color: #1266d4; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.folder-share-sheet h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: 0; }
.folder-share-sheet header button { width: 42px; height: 42px; border: 0; border-radius: 7px; background: #111915; color: #fff; font-size: 25px; }
.folder-share-sheet > p { margin: 0; color: #617068; line-height: 1.5; }
.folder-share-confirm { display: grid; gap: 10px; padding: 16px; border: 1px solid #bad6f2; border-radius: 7px; background: #f2f8fe; }
.folder-share-confirm[hidden] { display: none; }
.folder-share-confirm strong { color: #173e6d; font-size: 18px; }
.folder-share-confirm p { margin: 0; color: #526f8e; line-height: 1.45; }
.folder-share-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.folder-share-confirm button { min-height: 46px; border: 1px solid #9cbfe2; border-radius: 7px; background: #fff; color: #244a70; font-weight: 800; }
.folder-share-confirm #confirmFolderShareButton { border-color: #4b91d7; background: #66a9e8; color: #fff; }
.folder-share-busy { display: flex; min-height: 52px; align-items: center; gap: 12px; color: #204a7f; font-weight: 700; }
.folder-share-busy span { width: 20px; height: 20px; border: 3px solid #d9e8fa; border-top-color: #1677e8; border-radius: 50%; animation: folder-share-spin .8s linear infinite; }
@keyframes folder-share-spin { to { transform: rotate(360deg); } }
#folderShareResult { display: grid; gap: 12px; }
#folderShareResult[hidden], .folder-share-busy[hidden] { display: none; }
#folderShareResult label { color: #43534b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.folder-share-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.folder-share-copy-row input { min-width: 0; height: 50px; border: 1px solid #c9d5ce; border-radius: 7px; padding: 0 12px; background: #f5f8f6; color: #21342c; font-size: 14px; }
.folder-share-copy-row button { min-width: 88px; border: 0; border-radius: 7px; background: #1677e8; color: #fff; font-weight: 800; }
.folder-share-existing { display: grid; gap: 8px; padding: 14px; border: 1px solid #a9c9f2; border-radius: 7px; background: #eef6ff; color: #173e6d; }
.folder-share-existing[hidden] { display: none; }
.folder-share-existing p { margin: 0; color: #45698f; line-height: 1.4; }
.folder-share-existing button { min-height: 44px; border: 1px solid #1677e8; border-radius: 7px; background: #fff; color: #1266d4; font-weight: 800; }
.folder-share-expiry { display: flex; align-items: center; gap: 8px; color: #5d6c64 !important; }
.folder-share-expiry strong { color: #14261e; font-variant-numeric: tabular-nums; }
.folder-share-revoke { min-height: 48px; border: 1px solid #d91f40; border-radius: 7px; background: #e52848; color: #fff; font-weight: 800; }
.folder-share-revoke[hidden] { display: none; }

@media (max-width: 620px) {
  .folder-share-dialog { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .folder-share-sheet { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}

.administrators-panel {
  background: #f6f8f6;
}

.administrators-workspace {
  width: min(100%, 860px);
  margin: 0 auto;
}

.administrators-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d8ded9;
}

.administrators-heading h2 {
  margin: 2px 0 4px;
  color: #111713;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
}

.admin-people-section {
  margin-top: 22px;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-section-heading h3 {
  margin: 0;
  color: #142019;
  font-size: 18px;
}

.admin-section-heading p {
  margin: 4px 0 0;
  color: #68746d;
  font-size: 13px;
}

.access-role-guide {
  display: grid;
  margin: 20px 0 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8ded9;
  border-radius: 7px;
  background: #d8ded9;
}

.access-role-guide > div {
  display: grid;
  min-height: 92px;
  padding: 14px;
  align-content: start;
  gap: 5px;
  background: #fff;
}

.access-role-guide strong {
  color: #132019;
  font-size: 14px;
}

.access-role-guide span {
  color: #637068;
  font-size: 12px;
  line-height: 1.45;
}

.access-role-guide [data-role-guide="admin"] strong { color: #0b7645; }
.access-role-guide [data-role-guide="user"] strong { color: #195e94; }
.access-role-guide [data-role-guide="guest"] strong { color: #73591f; }

.administrators-list {
  gap: 10px;
  margin-top: 8px;
}

.admin-person-card {
  overflow: hidden;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 39, 27, 0.04);
}

.admin-person-summary {
  display: grid;
  min-height: 76px;
  padding: 12px;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
}

.admin-person-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6ef;
  color: #0c7042;
  font-size: 14px;
  font-weight: 850;
}

.admin-person-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-person-copy strong,
.admin-person-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-person-copy strong { color: #142019; font-size: 15px; }
.admin-person-copy span { color: #657169; font-size: 12px; }

.admin-person-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8a6a20;
  font-size: 11px;
}

.admin-person-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1aa2d;
  content: "";
}

.admin-person-status[data-linked="true"] { color: #26704b; }
.admin-person-status[data-linked="true"]::before { background: #23ad6b; }

.admin-role-badge {
  min-width: 62px;
  padding: 7px 9px;
  border: 1px solid #d6ddd8;
  border-radius: 999px;
  background: #f6f8f6;
  color: #526058;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.admin-role-badge[data-role="admin"] { border-color: #a5d7bd; background: #edf9f2; color: #0b6b3f; }
.admin-role-badge[data-role="user"] { border-color: #b7d3e8; background: #f0f7fc; color: #174f78; }
.admin-role-badge[data-role="guest"] { border-color: #dfd19f; background: #fff9e8; color: #68501a; }

.admin-edit-button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #ced7d1;
  border-radius: 7px;
  background: #fff;
  color: #142019;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.admin-person-editor {
  display: grid;
  padding: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 140px;
  gap: 12px;
  border-top: 1px solid #e0e6e1;
  background: #f8faf8;
}

.admin-person-editor .field { min-width: 0; }
.admin-person-editor input,
.admin-person-editor select { min-height: 46px; background: #fff; }
.admin-person-editor input:disabled,
.admin-person-editor select:disabled { background: #edf1ee; color: #69746d; opacity: 1; }

.admin-owner-hint {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #67736b;
  font-size: 12px;
}

.admin-editor-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
}

.admin-save-button,
.admin-cancel-button,
.admin-remove-button { min-height: 44px; }

.admin-save-button[data-loading="true"] { color: transparent; position: relative; }
.admin-save-button[data-loading="true"]::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  content: "...";
}

.admin-remove-button {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid #e62443;
  border-radius: 7px;
  background: #e62443;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.admin-empty-state {
  padding: 22px;
  border: 1px dashed #bdc9c1;
  border-radius: 8px;
  color: #637068;
  text-align: center;
}

.admin-disclosure {
  margin-top: 16px;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  background: #fff;
}

.admin-disclosure > summary {
  display: flex;
  min-height: 54px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  color: #142019;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.admin-disclosure > summary::-webkit-details-marker { display: none; }
.admin-summary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #11884e;
  color: #fff;
  font-size: 20px;
}

.admin-summary-chevron {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid #57645c;
  border-bottom: 2px solid #57645c;
  transform: rotate(45deg) translateY(-2px);
}

.admin-disclosure[open] .admin-summary-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.admin-disclosure[open] > summary { border-bottom: 1px solid #e0e6e1; }
.admin-invite-form { padding: 14px; margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 130px auto; }
.admin-role-disclosure .access-role-guide { margin: 0; border: 0; border-radius: 0 0 7px 7px; }

.team-role-select[data-role="admin"] { border-color: #73c79c; background: #ecfbf3; color: #0b6b3f; }
.team-role-select[data-role="user"] { border-color: #9ac5e6; background: #f0f7fc; color: #174f78; }
.team-role-select[data-role="guest"] { border-color: #d8c587; background: #fff9e8; color: #68501a; }

.account-app-shell-v4 > .account-app-panel {
  min-height: calc(100svh - 114px);
  padding: 26px;
}

.shine-library-shell-v4 {
  min-height: 0;
  margin: -26px;
}

.shine-library-head-v4 {
  min-height: 78px;
  padding: 13px 18px;
  background: #ffffff;
}

.shine-library-head-v4 h2,
.live-control-head h2 {
  margin: 1px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.shine-library-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shine-library-title .auth-kicker {
  margin: 0;
}

.shine-library-title .account-muted {
  margin: 3px 0 0;
  font-size: 12px;
}

.shine-library-logo {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: contain;
}

.status-badge[data-status="linked"] {
  border-color: #8bd2aa;
  background: #e8f8ee;
  color: #0d6b3b;
}

.status-badge[data-status="offline"] {
  border-color: #d2d8d4;
  background: #f2f4f2;
  color: #667069;
}

.whatsapp-auth-entry {
  display: grid;
  gap: 9px;
  margin: 4px 0 18px;
}

.whatsapp-auth-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #128c52;
  border-radius: 8px;
  background: #25d366;
  color: #082e1b;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 140, 82, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.whatsapp-auth-button:hover {
  background: #2bdd70;
  box-shadow: 0 10px 24px rgba(18, 140, 82, 0.24);
  transform: translateY(-1px);
}

.whatsapp-auth-button:active {
  transform: translateY(0);
}

.whatsapp-auth-button:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.3);
  outline-offset: 3px;
}

.whatsapp-auth-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.whatsapp-auth-message {
  color: #526159;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.whatsapp-auth-message[data-tone="muted"] {
  padding: 9px 11px;
  border: 1px solid #cfe8d8;
  border-radius: 7px;
  background: #f0faf4;
  color: #315c43;
}

.whatsapp-login-flow {
  overflow: hidden;
  border: 1px solid #cddbd2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 52, 34, 0.1);
  animation: whatsapp-flow-in 180ms ease-out both;
}

.whatsapp-flow-head {
  display: flex;
  min-height: 58px;
  padding: 12px 12px 12px 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8e3;
  background: #f5f8f6;
}

.whatsapp-flow-head > div {
  display: grid;
  gap: 2px;
}

.whatsapp-flow-head strong {
  color: #183225;
  font-size: 14px;
}

.whatsapp-flow-head span,
.whatsapp-flow-hint,
.whatsapp-delivery-panel p {
  margin: 0;
  color: #66736b;
  font-size: 12px;
  line-height: 1.45;
}

.whatsapp-flow-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #536159;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.whatsapp-flow-close:hover {
  background: #e5ece7;
}

.whatsapp-flow-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.whatsapp-flow-panel[hidden] {
  display: none;
}

.whatsapp-flow-panel .field {
  gap: 7px;
}

.whatsapp-flow-panel input[type="tel"] {
  min-height: 48px;
  font-size: 16px;
  letter-spacing: 0;
}

.whatsapp-flow-submit {
  min-height: 46px;
  box-shadow: none;
}

.whatsapp-flow-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.whatsapp-delivery-panel {
  min-height: 118px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
}

.whatsapp-delivery-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #20372a;
  font-size: 14px;
}

.whatsapp-delivery-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #cbe8d5;
  border-top-color: #149452;
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}

.whatsapp-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.whatsapp-code-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whatsapp-code-countdown {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 6px 9px;
  border: 1px solid #a9dec0;
  border-radius: 999px;
  background: #eaf9f0;
  color: #087b40;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.whatsapp-profile-form input {
  min-height: 48px;
  font-size: 16px;
}

.whatsapp-profile-intro strong {
  display: block;
  color: #142b1d;
  font-size: 17px;
}

.whatsapp-profile-intro p {
  margin: 4px 0 0;
  color: #607168;
  font-size: 13px;
  line-height: 1.45;
}

.whatsapp-code-inputs input {
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.82;
  padding: 0;
  border: 1px solid #b9c8be;
  border-radius: 7px;
  background: #fbfcfb;
  color: #152b1e;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.whatsapp-code-inputs input:focus {
  border-color: #159855;
  outline: 3px solid rgba(21, 152, 85, 0.15);
}

.whatsapp-login-flow .whatsapp-auth-message {
  margin: 0 16px 16px;
  text-align: left;
}

@keyframes whatsapp-flow-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-method-divider {
  display: grid;
  margin: 0 0 18px;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 12px;
  color: #77837c;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-method-divider::before,
.auth-method-divider::after {
  content: "";
  height: 1px;
  background: #dbe2dd;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-auth-button,
  .whatsapp-login-flow,
  .whatsapp-delivery-spinner {
    transition: none;
    animation: none;
  }
}

.workspace-status-row {
  display: flex;
  min-height: 48px;
  padding: 8px 14px;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
  border-bottom: 1px solid #dfe4e0;
  background: #ffffff;
}

.library-control-mode-button {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 13px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #1d2831;
  border-radius: 6px;
  background: #1d2831;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.library-control-mode-button.is-active {
  border-color: #0f8050;
  background: #128a57;
}

.control-mode-icon {
  display: grid;
  width: 20px;
  gap: 3px;
}

.control-mode-icon i {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.control-mode-icon i::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: inherit;
  content: "";
  transform: translateY(-50%);
}

.control-mode-icon i:nth-child(1)::after,
.control-mode-icon i:nth-child(3)::after {
  left: 3px;
}

.control-mode-icon i:nth-child(2)::after {
  right: 3px;
}

.shine-library-shell[data-library-mode="control"] .new-folder-disclosure {
  display: none;
}

.library-standby-button {
  min-width: 112px;
  min-height: 44px;
  margin-left: auto;
  padding: 7px 13px;
}

.unified-control-tree {
  min-height: 280px;
  padding: 12px;
  gap: 5px;
  background: #fbfcfb;
}

.unified-control-tree .live-folder-group {
  margin-left: calc(var(--control-depth) * 20px);
}

.unified-control-tree .live-folder-heading {
  min-height: 58px;
  margin-bottom: 5px;
  padding: 6px 8px;
  grid-template-columns: 36px 36px minmax(0, 1fr) auto;
  border: 1px solid color-mix(in srgb, var(--folder-color) 48%, #cfd6d1);
  border-left: 5px solid var(--folder-color);
  border-radius: 7px;
  background: color-mix(in srgb, var(--folder-color) 10%, #ffffff);
}

.unified-control-tree .live-item-block {
  margin: 0 0 5px 20px;
  border: 1px solid #a9ddc0;
  border-radius: 7px;
  background: #eaf9f1;
  overflow: hidden;
}

.unified-control-tree .live-item-row {
  min-height: 60px;
  padding: 6px 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 0;
  background: transparent;
}

.unified-control-tree .live-item-open {
  min-width: 0;
  background: transparent;
}

.unified-control-tree .live-send-button {
  min-width: 82px;
  min-height: 44px;
  border-radius: 6px;
}

.unified-control-tree .live-slide-list {
  padding: 0 7px 7px;
}

.offline-queue-count {
  color: #6b5420;
  font-size: 12px;
  font-weight: 800;
}

.offline-queue-notice {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #ead79a;
  background: #fff8df;
  color: #5f4a18;
  font-size: 13px;
  font-weight: 700;
}

.library-utility-bar-v4 {
  min-height: 58px;
  padding: 8px 14px;
  background: #f7f9f7;
}

.library-utility-bar-v4 .library-search-disclosure {
  flex: 0 1 360px;
}

.offline-workspace-message {
  display: grid;
  min-height: 280px;
  margin: 0;
  place-items: center;
  color: #69746d;
  text-align: center;
}

.library-tool-backdrop {
  position: fixed;
  z-index: 79;
  inset: 0;
  background: rgba(8, 13, 10, 0.48);
}

.library-tool-dialog {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100svh - 32px));
  padding: 18px;
  border: 1px solid #c9d2cc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(8, 18, 12, 0.28);
  overflow: auto;
  transform: translate(-50%, -50%);
}

body.library-tool-open {
  overflow: hidden;
}

.library-tool-dialog .library-tool-drawer-head {
  min-height: 48px;
  margin-bottom: 4px;
}

.library-tool-dialog .library-tool-drawer-head > div {
  display: grid;
  gap: 3px;
}

.library-tool-dialog .library-tool-drawer-head strong {
  font-size: 19px;
}

.tool-target-copy,
.tool-inline-status {
  color: #66736b;
  font-size: 12px;
}

.tool-inline-status {
  min-height: 20px;
  margin: 6px 0 10px;
}

.source-capability-message {
  margin: 0 0 10px;
  padding: 0;
  color: #68746d;
  font-size: 13px;
}

.source-capability-message[data-tone="warning"] {
  padding: 10px 12px;
  border: 1px solid #e0c57f;
  border-radius: 6px;
  background: #fff8e7;
  color: #6c4d0f;
}

.library-tool-dialog .bible-add-grid {
  grid-template-columns: minmax(160px, 1.25fr) 86px 86px 86px minmax(145px, 0.9fr);
}

.library-tool-dialog .reference-field {
  grid-column: 1 / span 3;
}

.library-tool-dialog .add-submit-button {
  grid-column: 4 / -1;
}

.library-tool-dialog .inline-tool-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.library-tool-dialog .youtube-tool-form {
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.shine-folder-row {
  min-height: 56px;
}

.folder-add-bottom {
  margin: 4px 0 10px;
}

.folder-add-bottom > summary {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px dashed color-mix(in srgb, var(--folder-color) 55%, #bfc8c1);
  border-radius: 6px;
  background: #ffffff;
  color: #355044;
  font-size: 13px;
  font-weight: 800;
}

.folder-add-bottom[open] > summary {
  border-style: solid;
  border-color: #168a55;
  color: #0d6038;
}

.library-item-row-v3 {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.live-control-shell {
  min-height: 560px;
}

.live-control-head {
  position: sticky;
  z-index: 24;
  top: 58px;
  display: flex;
  min-height: 82px;
  padding: 12px 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-bottom: 1px solid #d8ded9;
  background: rgba(255, 255, 255, 0.98);
}

.live-primary-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.standby-control-button {
  min-width: 116px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid #202722;
  border-radius: 6px;
  background: #202722;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.standby-symbol {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #17221c;
  font-size: 14px;
  line-height: 1;
}

.standby-control-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.live-control-toolbar {
  display: grid;
  min-height: 66px;
  padding: 10px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dfe4e0;
  background: #f7f9f7;
}

.account-body .live-control-toolbar .search-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8d0ca;
  border-radius: 999px;
  background: #e9eeea;
  color: #17231c;
  padding-inline: 18px;
  box-shadow: none;
}

.account-body .live-control-toolbar .search-field input::placeholder {
  color: #47534c;
}

.offline-action-dialog {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid #ccd5cf;
  border-radius: 8px;
  background: #ffffff;
  color: #17231c;
  box-shadow: 0 24px 70px rgba(10, 18, 13, 0.3);
}

.offline-action-dialog::backdrop {
  background: rgba(8, 14, 10, 0.5);
}

.offline-action-dialog form {
  display: grid;
  padding: 22px;
  gap: 14px;
}

.offline-action-dialog h2,
.offline-action-dialog p {
  margin: 0;
}

.offline-action-dialog p {
  color: #5c6861;
  line-height: 1.5;
}

.offline-action-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff1bf;
  color: #6a5015;
  font-weight: 900;
}

.offline-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.live-current-item {
  display: inline-flex;
  max-width: 320px;
  min-height: 34px;
  padding: 6px 10px;
  align-items: center;
  border: 1px solid #9dd7b6;
  border-radius: 6px;
  background: #eaf8ef;
  color: #0e663a;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-control-tree {
  display: grid;
  padding: 12px;
  gap: 10px;
  background: #f7f9f7;
}

.live-folder-group {
  min-width: 0;
  margin-left: calc(var(--control-depth) * 12px);
  border-left: 3px solid var(--folder-color);
  background: #ffffff;
}

.live-folder-heading {
  display: grid;
  min-height: 52px;
  padding: 7px 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e1e5e2;
}

.live-folder-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-folder-count {
  color: #6a756e;
  font-size: 12px;
}

.live-item-button {
  display: grid;
  width: 100%;
  min-height: 62px;
  padding: 8px 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e5e9e6;
  background: #ffffff;
  color: #17231c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.live-item-button:last-child {
  border-bottom: 0;
}

.live-item-button:hover,
.live-item-button:focus-visible {
  background: #eef8f2;
  outline: 0;
}

.live-item-button[data-active="true"] {
  background: #e7f8ee;
  box-shadow: inset 4px 0 #15945a;
}

.live-item-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.live-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-item-copy strong,
.live-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-item-copy small {
  color: #68746d;
  font-size: 11px;
}

.live-item-state {
  min-width: 52px;
  color: #0d6a3c;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.account-settings-layout-v4 {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 28px;
}

.account-settings-layout-v4 > .account-settings-section {
  padding: 0;
}

.account-settings-layout-v4 > .account-settings-section + .account-settings-section {
  padding-top: 28px;
  border-top: 1px solid #d8ded9;
  border-left: 0;
}

.account-settings-layout-v4 .team-section {
  grid-column: auto;
  border-left: 0;
}

.account-connection-section {
  color: #152019;
}

.account-connection-head {
  display: flex;
  min-height: 50px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-connection-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.account-connection-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
}

.account-signout-button,
.account-signout-button:hover,
.account-signout-button:focus-visible {
  min-height: 44px;
  padding: 0 17px;
  border-color: #0d1210;
  border-radius: 7px;
  background: #0d1210;
  color: #ffffff;
  box-shadow: none;
}

.account-signout-button:hover {
  background: #1b211e;
}

.account-connection-section .installation-field {
  gap: 8px;
  margin: 0;
}

.account-connection-section .installation-field > span {
  color: #5d6962;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-connection-section .installation-field select {
  min-height: 50px;
  padding-inline: 14px 44px;
  border: 1px solid #cbd4ce;
  border-radius: 7px;
  background-color: #ffffff;
  color: #172019;
  font-size: 15px;
  font-weight: 750;
}

.account-connection-section #connectionSummary {
  margin: 8px 0 0;
  font-size: 13px;
}

.account-connection-section .account-identity-row {
  min-height: 68px;
  margin: 20px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid #d8ded9;
  border-bottom: 0;
}

.account-connection-section .account-identity-row strong {
  font-size: 16px;
  line-height: 1.25;
}

.account-membership-section .membership-details {
  grid-template-columns: 1fr;
}

.account-membership-section .subscription-status-block {
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid #b9ddc8;
  border-left: 4px solid #15945a;
  border-radius: 7px;
  background: #f1faf5;
}

.membership-current-label {
  display: block;
  margin-bottom: 7px;
  color: #41705a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-membership-section .subscription-status-block h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.account-membership-section .membership-details > div {
  min-height: 66px;
  padding: 13px 0;
  border-right: 0;
  border-bottom: 1px solid #e1e5e2;
}

.subscription-plans-only {
  margin: 0;
  padding: 0;
  border: 0;
}

.account-plan[data-plan-card].is-current-plan {
  border-color: #15945a;
  box-shadow: inset 0 0 0 1px #15945a;
}

.account-plan[data-plan-card].is-current-plan .plan-name::after {
  content: "Current";
  display: inline-flex;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 7px;
  align-items: center;
  border-radius: 5px;
  background: #e7f8ee;
  color: #0d6a3c;
  font-size: 10px;
  font-weight: 850;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .account-app-shell-v4 > .account-app-panel {
    padding: 18px;
  }

  .shine-library-shell-v4 {
    margin: -18px;
  }

  .account-settings-layout-v4 {
    grid-template-columns: 1fr;
  }

  .account-settings-layout-v4 > .account-settings-section,
  .account-settings-layout-v4 > .account-settings-section:nth-child(even) {
    padding: 0 0 26px;
    border-left: 0;
  }

  .account-settings-layout-v4 > .account-settings-section + .account-settings-section {
    padding-top: 26px;
    border-top: 1px solid #d8ded9;
  }

  .account-settings-layout-v4 .team-section {
    grid-column: auto;
  }

  .account-connection-head {
    margin-bottom: 18px;
  }

  .account-connection-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .account-connection-title h2 {
    font-size: 27px;
  }

  .account-signout-button {
    flex: 0 0 auto;
  }

  .account-connection-section .account-identity-row {
    align-items: flex-start;
  }

  .library-tool-dialog .bible-add-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .library-tool-dialog .bible-add-grid > .field:first-child,
  .library-tool-dialog .bible-add-grid > .field:nth-child(5) {
    grid-column: span 2;
  }

  .library-tool-dialog .reference-field {
    grid-column: 1 / span 2;
  }

  .library-tool-dialog .add-submit-button {
    grid-column: 3 / -1;
  }
}

@media (max-width: 700px) {
  .account-app-shell-v4 {
    min-height: 100svh;
  }

  .account-app-tabs-v4 {
    min-height: 64px;
    padding: 7px 8px;
    gap: 5px;
    overflow: hidden;
  }

  .account-app-tabs-v4 .account-app-tab {
    flex: 1 1 25%;
    min-width: 0;
    min-height: 50px;
    padding: 0 6px;
    font-size: 12px;
    white-space: normal;
  }

  .administrators-panel {
    padding: 18px 12px 28px !important;
  }

  .administrators-heading {
    align-items: flex-start;
  }

  .administrators-heading h2 { font-size: 28px; }

  .admin-person-summary {
    padding: 11px 10px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .admin-person-avatar { width: 42px; height: 42px; }

  .admin-role-badge {
    grid-column: 2;
    justify-self: start;
    padding: 5px 8px;
  }

  .admin-edit-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 58px;
  }

  .admin-person-editor { grid-template-columns: 1fr; }
  .admin-owner-hint,
  .admin-editor-actions { grid-column: 1; }

  .admin-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-remove-button {
    margin: 0;
    grid-column: 1 / -1;
  }

  .admin-invite-form { grid-template-columns: 1fr; }

  .access-role-guide {
    grid-template-columns: 1fr;
  }

  .access-role-guide > div {
    min-height: 0;
  }

  .administrators-workspace .team-invite-form {
    grid-template-columns: 1fr;
  }

  .administrators-list .team-row {
    grid-template-columns: 1fr;
  }

  .administrators-list .team-row-controls {
    width: 100%;
    justify-content: space-between;
  }

  .administrators-list .team-role-select {
    flex: 1 1 auto;
  }

  .account-app-shell-v4 > .account-app-panel {
    min-height: calc(100svh - 64px);
    padding: 10px;
  }

  .shine-library-shell-v4 {
    margin: -10px;
  }

  .shine-library-head-v4 {
    display: flex;
    min-height: 68px;
    padding: 9px 10px;
  }

  .shine-library-logo {
    width: 38px;
    height: 38px;
  }

  .shine-library-title {
    gap: 8px;
  }

  .shine-library-head-v4 h2,
  .live-control-head h2 {
    font-size: 18px;
  }

  .shine-library-title .auth-kicker {
    display: none;
  }

  .shine-library-title .account-muted {
    display: none;
  }

  .library-head-actions {
    display: flex;
    width: auto;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .library-head-actions .compact-button {
    min-width: 44px;
    padding: 7px 9px !important;
  }

  .library-utility-bar-v4 {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 6px;
  }

  .library-utility-bar-v4 .library-search-disclosure {
    grid-column: 1 / -1;
    order: 5;
  }

  .library-utility-bar-v4 > .library-count {
    justify-self: end;
  }

  .shine-library-tree {
    padding: 6px;
  }

  .shine-folder-row {
    grid-template-columns: 38px 32px minmax(0, 1fr) 44px;
    min-height: 54px;
    padding: 4px;
  }

  .folder-row-actions {
    grid-column: auto;
  }

  .library-item-row-v3 {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    min-height: 60px;
    padding: 6px 7px;
  }

  .library-item-actions {
    grid-column: auto;
  }

  .folder-add-bottom[open] .folder-add-popover {
    position: static;
    display: grid;
    width: 100%;
    margin-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
    box-shadow: none;
  }

  .folder-add-bottom[open] .folder-add-popover button {
    min-height: 46px;
    text-align: center;
  }

  .library-tool-dialog {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90svh;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: none;
  }

  .library-tool-dialog .bible-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-tool-dialog .bible-add-grid > .field:first-child,
  .library-tool-dialog .bible-add-grid > .field:nth-child(5),
  .library-tool-dialog .reference-field,
  .library-tool-dialog .add-submit-button {
    grid-column: 1 / -1;
  }

  .library-tool-dialog .inline-tool-form,
  .library-tool-dialog .youtube-tool-form {
    grid-template-columns: 1fr;
  }

  .library-tool-dialog .youtube-result-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }

  .library-tool-dialog .youtube-result-row img,
  .library-tool-dialog .youtube-result-placeholder {
    display: grid;
    width: 84px;
  }

  .live-control-head {
    top: 56px;
    min-height: 74px;
    padding: 9px 10px;
  }

  .live-primary-actions {
    gap: 6px;
  }

  .standby-control-button {
    min-width: 92px;
    min-height: 46px;
    padding: 8px 12px;
  }

  .live-control-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .live-current-item {
    max-width: 100%;
  }

  .live-control-tree {
    padding: 7px;
    gap: 7px;
  }

  .live-folder-group {
    margin-left: calc(var(--control-depth) * 5px);
  }

  .live-item-button {
    min-height: 64px;
  }
}

/* Final v6 overrides stay after the legacy account styles. */
.shine-library-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #d4dbd6;
  border-radius: 6px;
  background: #102b49;
  object-fit: contain;
}

.new-folder-disclosure > summary {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 13px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: #18221c;
  background: #18221c;
  color: #ffffff;
}

.new-folder-disclosure[data-disabled="true"] > summary {
  cursor: not-allowed;
  opacity: 0.52;
}

.folder-icon-mark {
  position: relative;
  color: #8b671d;
  background: #fff4d8;
}

.folder-inline-editor {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.folder-editor-actions {
  grid-column: 1 / -1;
  min-height: 44px;
  justify-content: space-between;
}

.live-control-tree {
  min-height: 320px;
  background: #f8faf8;
}

.live-folder-group {
  margin-left: calc(var(--control-depth) * 10px);
  border: 1px solid color-mix(in srgb, var(--folder-color) 38%, #d2dad4);
  border-left: 5px solid var(--folder-color);
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.live-folder-heading {
  grid-template-columns: 42px 34px minmax(0, 1fr) auto;
  background: color-mix(in srgb, var(--folder-color) 9%, #ffffff);
}

@media (max-width: 700px) {
  .shine-library-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .new-folder-disclosure > summary {
    width: 44px;
    padding: 8px;
  }

  .new-folder-disclosure > summary > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .folder-inline-editor {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .folder-editor-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .live-folder-group {
    margin-left: calc(var(--control-depth) * 5px);
  }

  .live-folder-heading {
    grid-template-columns: 38px 32px minmax(0, 1fr) 30px;
    min-height: 54px;
    padding: 5px 6px;
  }
}

/* Account v8 final cascade: keep the polished sheet above legacy generations. */
.account-body .library-tool-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 18px;
  border-color: #c7d3cb;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(9, 25, 16, 0.32);
}

.account-body .library-tool-dialog .library-tool-drawer-head {
  display: grid;
  min-height: 56px;
  margin: 0 0 12px;
  padding: 0 0 13px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid #e0e7e2;
}

.account-body .library-tool-dialog .tool-close-button {
  width: 44px;
  height: 44px;
  border: 1px solid #bf263b;
  border-radius: 7px;
  background: #d52d43;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(190, 31, 54, 0.18);
}

.account-body .library-tool-dialog .tool-close-button:hover,
.account-body .library-tool-dialog .tool-close-button:focus-visible {
  border-color: #9f172c;
  background: #b91f35;
}

.account-body .folder-add-bottom[open] .folder-add-popover {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #c8d5df;
  background: #f7fafc;
}

.account-body .library-tool-dialog .bible-filter-grid .bible-book-field,
.account-body .library-tool-dialog .bible-filter-grid .bible-version-field {
  grid-column: 1 / -1 !important;
}

@media (max-width: 700px) {
  .account-body .folder-add-bottom[open] .folder-add-popover {
    position: static;
    width: 100%;
    margin-top: 7px;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #c8d5df;
    box-shadow: none;
  }

  .account-body .library-tool-dialog {
    top: 6svh;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 94svh;
    padding: 16px 12px calc(15px + env(safe-area-inset-bottom));
    border-radius: 8px 8px 0 0;
    transform: none;
  }

  .account-body .library-tool-dialog .library-tool-drawer-head {
    min-height: 58px;
    margin-bottom: 10px;
    padding-bottom: 11px;
    grid-template-columns: 44px minmax(0, 1fr) 108px;
    gap: 9px;
  }

}

/* Account v11: nested folders remain visually independent. */
.account-body .live-folder-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.account-body .live-folder-heading {
  border: 1px solid color-mix(in srgb, var(--folder-color) 38%, #d2dad4);
  border-left: 5px solid var(--folder-color);
  border-radius: 7px;
}

.account-body .live-folder-contents {
  overflow: visible;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="youtube"] {
  border-color: #c9273f;
  background: #d92f49;
  color: #ffffff;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="youtube"]:hover,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="youtube"]:focus-visible {
  border-color: #a91f34;
  background: #be263d;
}

.account-body .library-kind-mark[data-kind="video"],
.account-body .library-kind-mark[data-kind="youtube"] {
  background: #d92f49;
  color: #ffffff;
}

.folder-create-status {
  position: relative;
  display: grid;
  min-height: 46px;
  grid-column: 1 / -1;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 12px 13px;
  overflow: hidden;
  border: 1px solid #d8b251;
  border-radius: 7px;
  background: #fff7dc;
  color: #503b0a;
  font-size: 12px;
  font-weight: 800;
}

.folder-create-status[hidden] {
  display: none !important;
}

.folder-create-lock {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 17px;
  border-radius: 4px;
  background: currentColor;
  color: #8f6810;
}

.folder-create-lock::before {
  position: absolute;
  top: -8px;
  left: 4px;
  width: 10px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.folder-create-lock::after {
  position: absolute;
  top: 6px;
  left: 9px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #fff7dc;
  content: "";
}

.folder-create-button-lock {
  width: 16px;
  height: 14px;
  color: #ffffff;
}

.folder-create-button-lock::before {
  top: -6px;
  left: 3px;
  width: 8px;
  height: 8px;
}

.folder-create-button-lock::after {
  top: 5px;
  left: 7px;
  width: 3px;
  height: 5px;
  background: #173f64;
}

.folder-create-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  overflow: hidden;
  background: rgba(143, 104, 16, 0.16);
}

.folder-create-progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 5px;
  background: #d39a1d;
  animation: folder-create-progress 1.05s ease-in-out infinite;
}

[data-folder-create-state="creating"] button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
  opacity: 1;
}

.shine-folder-block[data-just-created="true"] > .shine-folder-row {
  animation: folder-created-highlight 2.8s ease-out both;
}

@keyframes folder-create-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(250%); }
}

@keyframes folder-created-highlight {
  0% {
    background: #1faf68;
    border-color: #13894f;
    box-shadow: 0 0 0 5px rgba(31, 175, 104, 0.2);
    transform: translateY(5px);
  }
  18% { transform: translateY(0); }
  68% {
    background: #e8fff2;
    box-shadow: 0 0 0 3px rgba(31, 175, 104, 0.1);
  }
  100% { box-shadow: 0 0 0 0 rgba(31, 175, 104, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .folder-create-progress-bar { animation-duration: 2.1s; }
  .shine-folder-block[data-just-created="true"] > .shine-folder-row {
    animation: none;
    outline: 3px solid rgba(31, 175, 104, 0.35);
  }
}

/* Compact account workspace */
.account-connection-head {
  align-items: flex-start;
}

.account-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-title-line h2 {
  margin: 2px 0 0;
}

.account-title-line .status-badge {
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: #55635b;
}

.account-title-line .status-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c9790;
  content: "";
}

.account-title-line .status-badge[data-status="linked"]::before {
  background: #15945a;
  box-shadow: 0 0 0 4px #e3f5ea;
}

.account-title-line .status-badge[data-status="offline"]::before,
.account-title-line .status-badge[data-status="pending"]::before {
  background: #d89a16;
  box-shadow: 0 0 0 4px #fff3d5;
}

.account-signout-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #cad3cd;
  border-radius: 7px;
  background: #ffffff;
  color: #18221c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-signout-button:hover,
.account-signout-button:focus-visible {
  border-color: #17231c;
  background: #17231c;
  color: #ffffff;
  outline: 0;
}

.account-connection-section .installation-field {
  margin-top: 18px;
}

.account-connection-section .installation-field > span {
  margin-bottom: 5px;
  color: #66736b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-connection-section .installation-field select {
  min-height: 46px;
  border-color: #cbd5ce;
  background: #f8faf8;
  font-weight: 750;
}

.account-connection-section #connectionSummary {
  margin-top: 7px;
  color: #5e6c64;
  line-height: 1.4;
}

.account-connection-section .account-identity-row {
  min-height: 58px;
  margin: 16px 0 0;
  padding: 11px 0 0;
  border-bottom: 0;
}

.account-membership-section .dashboard-heading-row {
  align-items: flex-start;
}

.account-membership-section .dashboard-heading-row h2 {
  margin: 2px 0 0;
}

.account-membership-section .status-badge[data-status="trial"],
.account-membership-section .status-badge[data-status="grace"] {
  border-color: #e3bf58;
  background: #fff0b8;
  color: #684800;
}

.account-membership-section .subscription-status-block {
  padding: 16px 0 14px;
}

.account-membership-section .subscription-status-block h3 {
  font-size: 18px;
}

.account-membership-section .membership-details > div {
  min-height: 54px;
  padding: 10px 0;
}

.account-membership-section .membership-details dt {
  margin-bottom: 3px;
}

.account-membership-section .usage-progress {
  margin-top: 14px;
}

.account-membership-section #usageRemainingText {
  margin-top: 7px;
  color: #5e6c64;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .account-app-panel[data-app-panel="account"] {
    padding-top: 14px;
  }

  .account-settings-layout-v4 > .account-settings-section,
  .account-settings-layout-v4 > .account-settings-section:nth-child(even) {
    padding-bottom: 20px;
  }

  .account-settings-layout-v4 > .account-settings-section + .account-settings-section {
    padding-top: 20px;
  }

  .account-title-line {
    gap: 7px;
  }

  .account-title-line h2,
  .account-membership-section .dashboard-heading-row h2 {
    font-size: 22px;
  }

  .account-signout-button {
    min-height: 40px;
    padding: 0 13px;
  }
}

/* Account v17: a focused dark control surface on the unified Library tree. */
.workspace-status-row .status-badge {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 13px;
  align-items: center;
  border-width: 1px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.workspace-status-row .status-badge[data-status="linked"] {
  border-color: #70c997;
  background: #e6f8ed;
  color: #08683a;
  box-shadow: inset 0 0 0 1px rgba(13, 107, 59, 0.04);
}

.workspace-status-row .status-badge[data-status="offline"] {
  border-color: #d5a72c;
  background: #ffefb5;
  color: #5e4300;
  box-shadow: inset 0 0 0 1px rgba(112, 79, 0, 0.05);
}

.workspace-status-row .status-badge[data-status="pending"] {
  border-color: #e0ad3d;
  background: #fff4d6;
  color: #754b00;
}

.workspace-status-row .status-badge[data-status="error"] {
  border-color: #e5a0a7;
  background: #fff0f2;
  color: #9f2430;
}

.shine-library-shell[data-library-mode="control"] {
  min-height: calc(100svh - 132px);
  background: #080b09;
  color: #f7faf8;
  color-scheme: dark;
}

.shine-library-shell[data-library-mode="control"] .workspace-status-row {
  border-color: #242b27;
  background: #080b09;
}

.shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="linked"] {
  border-color: #26935c;
  background: #112b1d;
  color: #8ce3b2;
}

.shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="offline"] {
  border-color: #c5941f;
  background: #33280d;
  color: #ffd86c;
}

.shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="pending"] {
  border-color: #c5941f;
  background: #33280d;
  color: #ffd86c;
}

.shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="error"] {
  border-color: #a94a55;
  background: #35161b;
  color: #ffb9c0;
}

.shine-library-shell[data-library-mode="control"] .library-utility-bar-v4 {
  border-color: #262d29;
  background: #0d110f;
}

.shine-library-shell[data-library-mode="control"] .library-control-mode-button,
.shine-library-shell[data-library-mode="control"] .library-control-mode-button.is-active,
.shine-library-shell[data-library-mode="control"] .library-standby-button {
  border-color: #4a554f;
  background: #171c19;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.shine-library-shell[data-library-mode="control"] .library-control-mode-button:hover,
.shine-library-shell[data-library-mode="control"] .library-control-mode-button:focus-visible,
.shine-library-shell[data-library-mode="control"] .library-standby-button:hover,
.shine-library-shell[data-library-mode="control"] .library-standby-button:focus-visible {
  border-color: #7b8981;
  background: #222925;
}

.shine-library-shell[data-library-mode="control"] .library-search-disclosure > summary {
  border-color: #353e39;
  background: #1a201d;
  color: #f1f5f2;
}

.shine-library-shell[data-library-mode="control"] .library-search-disclosure[open] > summary {
  border-color: #6a766f;
  color: #ffffff;
}

.shine-library-shell[data-library-mode="control"] .library-search-disclosure input {
  border-color: #455049;
  background: #121714;
  color: #ffffff;
  caret-color: #7ce0a8;
}

.shine-library-shell[data-library-mode="control"] .library-search-disclosure input::placeholder {
  color: #9ca7a0;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree {
  border-color: #222824;
  background: #080b09;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-folder-heading {
  border-color: color-mix(in srgb, var(--folder-color) 62%, #4b4535);
  border-left-color: var(--folder-color);
  background: color-mix(in srgb, var(--folder-color) 15%, #17150f);
  color: #fff8e7;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-folder-heading strong {
  color: #fff8e7;
}

.shine-library-shell[data-library-mode="control"] .control-folder-toggle {
  color: #f6e4b2;
}

.shine-library-shell[data-library-mode="control"] .control-folder-toggle:hover,
.shine-library-shell[data-library-mode="control"] .control-folder-toggle:focus-visible {
  background: rgba(255, 230, 166, 0.1);
}

.shine-library-shell[data-library-mode="control"] .live-folder-count {
  color: #dacda8;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-folder-contents {
  background: transparent;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block {
  border-color: #303a34;
  background: #141916;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block[data-active="true"] {
  border-color: #b83449;
  box-shadow: inset 4px 0 #db334c;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-row,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block[data-active="true"] > .live-item-row {
  background: #141916;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-open {
  color: #f6f8f6;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-open:hover,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-open:focus-visible {
  background: #202722;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-copy strong,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-copy strong {
  color: #ffffff;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-copy small,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-copy small,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-chevron,
.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-loading {
  color: #aab4ae;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-list {
  background: #0e120f;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-row {
  border-color: #333d37;
  background: #181e1a;
}

.shine-library-shell[data-library-mode="control"] .unified-control-tree .live-slide-copy .slide-number {
  background: #29332d;
  color: #a8e8c4;
}

.shine-library-shell[data-library-mode="control"] .offline-queue-notice {
  border-color: #69551f;
  background: #29220f;
  color: #f5d779;
}

.shine-library-shell[data-library-mode="control"] .stable-control-message,
.shine-library-shell[data-library-mode="control"] .stable-command-message,
.shine-library-shell[data-library-mode="control"] .library-empty {
  border-color: #252c28;
  background: #080b09;
  color: #aab4ae;
}

.library-control-mode-button,
.library-standby-button,
.live-send-button,
.live-item-open,
.control-folder-toggle,
.library-search-disclosure > summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
  .account-body .library-search-disclosure input,
  .account-body .library-popover-form input,
  .account-body .library-popover-form select {
    font-size: 16px;
  }

  .shine-library-shell[data-library-mode="control"] {
    min-height: calc(100svh - 112px);
  }

  .shine-library-shell[data-library-mode="control"] .library-utility-bar-v4,
  .shine-library-shell[data-library-mode="control"] .unified-control-tree {
    transform: none;
  }
}

/* Account v18: true-black, full-page glass control mode. */
html:has(.account-body[data-control-view="true"]),
.account-body[data-control-view="true"],
.account-body[data-control-view="true"] .account-workspace-v3,
.account-body[data-control-view="true"] .account-app-shell-v4,
.account-body[data-control-view="true"] .account-app-shell-v4 > .account-app-panel {
  background: #000000;
}

.account-body[data-control-view="true"] {
  min-height: 100svh;
  color-scheme: dark;
}

.account-body[data-control-view="true"] .account-site-header {
  border-color: #171b18;
  background: #000000;
}

.account-body[data-control-view="true"] .account-app-tabs-v4 {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.account-body[data-control-view="true"] .account-app-tabs-v4 .account-app-tab {
  color: #aeb7b1;
}

.account-body[data-control-view="true"] .account-app-tabs-v4 .account-app-tab.is-active {
  border-bottom-color: transparent;
  background: #171b18;
  color: #ffffff;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"],
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .workspace-status-row,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .stable-control-message,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .stable-command-message,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-empty {
  background: #000000;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-utility-bar-v4 {
  border-color: rgba(255, 255, 255, 0.12);
  background: #000000;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-control-mode-button,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-control-mode-button.is-active,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-standby-button,
.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-search-disclosure > summary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree .live-folder-heading {
  border-color: color-mix(in srgb, var(--folder-color) 72%, rgba(255, 255, 255, 0.22));
  border-left-color: var(--folder-color);
  background: color-mix(in srgb, var(--folder-color) 26%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 8px 26px color-mix(in srgb, var(--folder-color) 12%, transparent);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-row {
  background: transparent;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block[data-active="true"] {
  border-color: #f04a61;
  background: rgba(218, 39, 65, 0.3);
  box-shadow: inset 4px 0 #ff405a, inset 0 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(218, 39, 65, 0.2);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .unified-control-tree .live-item-block[data-active="true"] > .live-item-row {
  background: linear-gradient(110deg, rgba(117, 12, 29, 0.5), rgba(226, 42, 69, 0.2));
}

.account-body[data-control-view="true"] .live-send-button[data-state="live"] {
  border-color: #ff5068;
  background: linear-gradient(180deg, #f13c56, #d91f3c);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 0 22px rgba(231, 42, 70, 0.42);
}

.account-body[data-control-view="true"] .live-send-button:not([data-state="live"]):not([data-state="sent"]):not([data-state="sending"]) {
  border-color: #16a965;
  background: linear-gradient(180deg, #12a45f, #087e47);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 7px 18px rgba(7, 126, 70, 0.18);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="linked"] {
  border-color: #25b875;
  background: rgba(12, 128, 72, 0.22);
  color: #9af0c0;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 0 22px rgba(25, 181, 110, 0.12);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .workspace-status-row .status-badge[data-status="offline"] {
  border-color: #e1ad25;
  background: rgba(191, 132, 0, 0.24);
  color: #ffe180;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 0 22px rgba(219, 167, 26, 0.12);
}

/* Keep Library gestures deliberate on touch screens without blocking scrolling. */
.account-body .shine-library-shell {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

/* Account v20: one search field and a compact shared Library toolbar. */
.library-utility-bar-v4 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.library-utility-bar-v4 .library-control-mode-button {
  grid-column: 1;
  grid-row: 1;
}

.library-utility-bar-v4 .library-collapse-button {
  grid-column: 1;
  grid-row: 2;
}

.library-utility-bar-v4 .library-search-field {
  grid-column: 2 / -1;
  grid-row: 2;
}

.library-utility-bar-v4 > .library-count,
.library-utility-bar-v4 > .library-standby-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-left: 0;
}

.library-search-field {
  display: block;
  min-width: 0;
}

.account-body .shine-library-shell .library-utility-bar-v4 .library-search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d0cc;
  border-radius: 7px;
  background: #eef1ef;
  color: #18201b;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
}

.account-body .shine-library-shell .library-utility-bar-v4 .library-search-field input::placeholder {
  color: #68716c;
}

.library-collapse-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #bec7c1;
  border-radius: 7px;
  background: #eef1ef;
  color: #18201b;
  cursor: pointer;
  touch-action: manipulation;
}

.collapse-all-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 20px;
}

.collapse-all-icon i {
  position: absolute;
  left: 4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.collapse-all-icon i:first-child {
  top: 0;
  transform: rotate(45deg);
}

.collapse-all-icon i:last-child {
  bottom: 0;
  transform: rotate(225deg);
}

.library-collapse-button[data-collapsed="true"] .collapse-all-icon i:first-child {
  top: 5px;
  transform: rotate(225deg);
}

.library-collapse-button[data-collapsed="true"] .collapse-all-icon i:last-child {
  bottom: 5px;
  transform: rotate(45deg);
}

.control-mode-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.control-mode-icon i {
  display: none;
}

.control-mode-icon::before,
.control-mode-icon::after {
  position: absolute;
  content: "";
}

.control-mode-icon::before {
  top: 5px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 6px currentColor;
}

.control-mode-icon::after {
  top: 6px;
  right: 3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 6px currentColor;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-control-mode-button.is-active {
  border-color: #e3b82f;
  background: linear-gradient(180deg, #ffdf72, #edc348);
  color: #3d2c00;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 7px 20px rgba(219, 173, 36, 0.16);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-search-field input,
.account-body[data-control-view="true"] .library-collapse-button {
  border-color: #cbd1cd;
  background: #eef1ef;
  color: #151b17;
  color-scheme: light;
}

@media (max-width: 700px) {
  .library-utility-bar-v4 {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .library-utility-bar-v4 .library-search-field {
    grid-column: 2 / -1;
  }

  .account-body .shine-library-tree,
  .account-body .unified-control-tree {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .account-body .library-item-row-v3:has(.item-menu-disclosure[open]) {
    align-items: start;
  }

  .account-body .library-item-actions:has(.item-menu-disclosure[open]),
  .account-body .item-menu-disclosure[open] {
    width: 100%;
  }

  .account-body .library-item-row-v3:has(.item-menu-disclosure[open]) .library-item-actions {
    grid-column: 1 / -1;
  }

  .account-body .item-menu-disclosure[open] > summary {
    margin-left: auto;
  }

  .account-body .item-menu-disclosure[open] .item-popover-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    max-height: none;
    overflow: visible;
    box-shadow: 0 10px 26px rgba(20, 33, 24, 0.12);
  }
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-standby-button[data-state="ready"] {
  border-color: #4a514d;
  background: #050505;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-standby-button[data-state="standby"] {
  border-color: #f09a32;
  background: linear-gradient(180deg, #f6a23c, #dc791c);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 0 22px rgba(229, 128, 29, 0.24);
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-standby-button[data-state="standby"] .standby-symbol {
  color: #ffffff;
}

/* Account: clearer Add menu and direct Photo picker state. */
.account-body .folder-add-bottom[open] .folder-add-popover {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.account-body .folder-add-popover .folder-add-menu-title {
  grid-column: 1 / -1;
  margin: 0 2px 2px;
  color: #52635a;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.account-body .folder-add-popover .folder-source-action {
  display: grid;
  min-height: 58px;
  padding: 8px 9px;
  grid-template-columns: 28px minmax(0, 1fr);
  place-items: initial;
  align-items: center;
  align-content: center;
  gap: 8px;
  text-align: left;
}

.account-body .folder-add-popover .folder-source-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-body .folder-add-popover .folder-source-label,
.account-body .folder-add-popover .folder-source-hint {
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.account-body .folder-add-popover .folder-source-hint {
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 700;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"] {
  border-color: #975712;
  background: #a96316;
  color: #ffffff;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"]:hover,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"]:focus-visible {
  border-color: #78420c;
  background: #8b4d0e;
}

/* Add content tools: consistent SHINE colors and recognizable icons. */
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"],
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"] {
  border-color: #163f67;
  background: #194d7d;
  color: #ffffff;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"]:hover,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"]:focus-visible,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"]:hover,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"]:focus-visible {
  border-color: #0e3152;
  background: #123e68;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"] .folder-source-symbol,
.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"] .folder-source-symbol,
.account-body .folder-add-popover .folder-source-folder-icon {
  position: relative;
  font-size: 0;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"] .folder-source-symbol::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="photo"] .folder-source-symbol::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(5px, -3px);
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="pages"] .folder-source-symbol::before {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) 3px 5px / 8px 2px no-repeat,
              linear-gradient(currentColor, currentColor) 3px 10px / 8px 2px no-repeat;
  content: "";
}

.account-body .folder-add-popover .folder-source-folder,
.account-body .folder-add-popover .folder-source-folder:hover,
.account-body .folder-add-popover .folder-source-folder:focus-visible {
  border-color: #d8aa36;
  background: #fff2c9;
  color: #2c2514;
}

.account-body .folder-add-popover .folder-source-folder .folder-source-hint {
  color: #66572f;
}

.account-body .folder-add-popover .folder-source-folder-icon {
  background: #f5d77b;
}

.account-body .folder-add-popover .folder-source-folder-icon::before {
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
}

.account-body .folder-add-popover .folder-source-folder-icon::after {
  position: absolute;
  width: 8px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
  transform: translate(-4px, -7px);
}

/* Account v27: clearer creation, language, and edit surfaces. */
.library-utility-bar-v4 {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.library-utility-bar-v4 .library-language-menu {
  grid-column: 2;
  grid-row: 2;
}

.library-utility-bar-v4 .library-collapse-button {
  grid-column: 1;
  grid-row: 2;
}

.library-utility-bar-v4 .library-search-field {
  grid-column: 3 / -1;
  grid-row: 2;
}

.library-utility-bar-v4 > .library-count,
.library-utility-bar-v4 > .library-standby-button {
  grid-column: 4;
}

.library-language-menu {
  position: relative;
}

.library-language-menu > summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #bdc8c1;
  border-radius: 7px;
  background: #ffffff;
  color: #183125;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.library-language-menu > summary::-webkit-details-marker { display: none; }

.library-language-menu[open] > summary {
  border-color: #17864f;
  background: #eaf8f0;
  box-shadow: 0 0 0 3px rgba(23, 134, 79, 0.12);
}

.library-language-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  width: 190px;
  gap: 6px;
  padding: 9px;
  border: 1px solid #cdd6d0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(18, 36, 25, 0.18);
}

.library-language-popover > strong {
  padding: 2px 4px 5px;
  color: #66736b;
  font-size: 11px;
  text-transform: uppercase;
}

.library-language-popover button {
  display: grid;
  min-height: 46px;
  padding: 6px 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f4f6f4;
  color: #17231c;
  text-align: left;
  cursor: pointer;
}

.library-language-popover button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #17231c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.library-language-popover button[data-active="true"] {
  border-color: #91d5af;
  background: #eaf8f0;
}

.pages-launch-panel {
  gap: 15px;
}

.pages-create-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.pages-create-option {
  position: relative;
  display: grid;
  min-height: 92px;
  padding: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cdd9d1;
  border-radius: 8px;
  background: #ffffff;
  color: #17231c;
  text-align: left;
  cursor: pointer;
}

.pages-create-option:hover,
.pages-create-option:focus-within,
.pages-create-option:focus-visible {
  border-color: #33845d;
  background: #f4fbf7;
  box-shadow: 0 0 0 3px rgba(30, 127, 77, 0.1);
}

.pages-create-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pages-create-option > span:nth-of-type(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pages-create-option strong { font-size: 14px; line-height: 1.2; }
.pages-create-option small { color: #67736c; font-size: 11px; line-height: 1.3; }
.pages-create-option > i { color: #758078; font-size: 24px; font-style: normal; }

.pages-create-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: #176546;
  color: #ffffff;
  font-weight: 900;
}

.pages-create-photo .pages-create-icon {
  position: relative;
  background: #b96b13;
}

.pages-photo-icon::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.pages-photo-icon::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(5px, -4px);
}

.pages-draft-mark {
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.pages-draft-mark[data-kind="image"] { background: #b96b13; }
.pages-draft-open { justify-self: end; font-size: 11px; font-weight: 850; }

.folder-source-symbol {
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.account-body .folder-add-popover .folder-source-action[data-folder-add-tool="bible"] .folder-source-symbol,
.account-body .library-kind-mark[data-kind="bible"] {
  font-family: Arial, sans-serif;
}

.folder-inline-editor {
  border: 2px solid color-mix(in srgb, var(--folder-color) 58%, #cfd6d1);
  border-top: 5px solid var(--folder-color);
  background: color-mix(in srgb, var(--folder-color) 12%, #ffffff);
}

.folder-editor-head {
  display: grid;
  grid-column: 1 / -1;
  padding: 9px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #e3c67c;
  border-radius: 7px;
  background: #fff8e6;
}

.folder-editor-head-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 27px;
  border: 2px solid #9a6b0b;
  border-radius: 5px;
  background: #fff4cf;
}

.folder-editor-head-icon::before {
  position: absolute;
  top: -7px;
  left: 3px;
  width: 14px;
  height: 7px;
  border: 2px solid #9a6b0b;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  content: "";
}

.folder-editor-head-copy { display: grid; min-width: 0; gap: 2px; }
.folder-editor-head-copy strong { overflow: hidden; color: #6d4a03; text-overflow: ellipsis; white-space: nowrap; }
.folder-editor-head-copy small { color: #8a7546; font-size: 11px; }

.folder-delete-button {
  min-height: 42px;
  border: 1px solid #f2a5b4;
  border-radius: 7px;
  background: #fff0f3;
  color: #bd2444;
  font-weight: 800;
  cursor: pointer;
}

.item-menu-delete {
  min-height: 42px;
  border: 1px solid #d91f36;
  border-radius: 7px;
  background: #d91f36;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.item-popover-menu {
  gap: 10px;
  padding: 11px;
  border-color: #cbd5ce;
  background: #ffffff;
}

.item-menu-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e1e6e2;
}

.item-menu-kind {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #fff0bb;
  color: #8d6008;
  font-weight: 900;
}

.item-menu-head-copy { display: grid; min-width: 0; gap: 2px; }
.item-menu-head-copy strong { overflow: hidden; color: #17231c; text-overflow: ellipsis; white-space: nowrap; }
.item-menu-head-copy small { color: #6b756f; font-size: 11px; }
.item-menu-title-row { display: flex; min-width: 0; align-items: center; gap: 7px; }
.item-menu-title-row > strong { min-width: 0; }
.item-menu-rename-toggle {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #d3dbd6;
  border-radius: 7px;
  background: #f6f8f7;
  color: #284337;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.item-menu-rename-toggle:hover,
.item-menu-rename-toggle:focus-visible { border-color: #5f7d6c; background: #edf4ef; }
.item-menu-rename-toggle:disabled { cursor: not-allowed; opacity: 0.45; }

.item-menu-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #161c18;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.item-popover-menu .item-rename-form,
.item-popover-menu .item-move-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.item-menu-field { display: grid; min-width: 0; gap: 5px; }
.item-menu-field > span { color: #626e66; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.item-menu-field input,
.item-menu-field select { width: 100%; min-height: 42px; border: 1px solid #c8d1cb; border-radius: 7px; background: #f8faf8; color: #17231c; }

.item-menu-primary {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #15251c;
  border-radius: 7px;
  background: #15251c;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.photo-viewer-dialog {
  width: min(92vw, 880px);
  max-width: 880px;
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111713;
  color: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.photo-viewer-dialog::backdrop { background: rgba(7, 12, 9, 0.72); backdrop-filter: blur(5px); }
.photo-viewer-dialog > header,
.photo-viewer-dialog > footer { display: flex; min-height: 64px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 10px; }
.photo-viewer-dialog > header > div { display: grid; min-width: 0; gap: 2px; }
.photo-viewer-dialog > header span { color: #8ed3ae; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.photo-viewer-dialog > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-viewer-dialog > header button { width: 42px; height: 42px; border: 1px solid #465149; border-radius: 7px; background: #202822; color: #fff; font-size: 18px; }
.photo-viewer-stage { display: grid; min-height: 260px; max-height: calc(90dvh - 136px); place-items: center; overflow: auto; background: #050705; }
.photo-viewer-stage img { display: block; max-width: 100%; max-height: calc(90dvh - 150px); object-fit: contain; }
.photo-viewer-dialog > footer { border-top: 1px solid #303a33; }
.photo-viewer-delete,
.photo-viewer-done { min-height: 44px; padding: 0 16px; border-radius: 7px; font-weight: 850; }
.photo-viewer-delete { border: 1px solid #8f3a50; background: #32151d; color: #ffb0c0; }
.photo-viewer-done { border: 1px solid #17955a; background: #17955a; color: #ffffff; }

@media (max-width: 620px) {
  .library-utility-bar-v4 { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .pages-create-options { grid-template-columns: 1fr; }
  .pages-create-option { min-height: 78px; }
  .library-language-popover { left: 50%; transform: translateX(-50%); }
  .item-popover-menu .item-rename-form,
  .item-popover-menu .item-move-form { grid-template-columns: 1fr; }
  .item-menu-primary { width: 100%; }
  .photo-viewer-dialog { width: 100vw; max-width: none; min-height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .photo-viewer-stage { min-height: calc(100dvh - 136px); max-height: calc(100dvh - 136px); }
  .photo-viewer-stage img { max-height: calc(100dvh - 150px); }
}

.photo-upload-panel {
  display: grid;
  gap: 12px;
}

.photo-upload-panel[hidden] {
  display: none !important;
}

.photo-file-picker {
  position: relative;
  display: grid;
  min-height: 108px;
  padding: 16px;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px dashed #9d703a;
  border-radius: 8px;
  background: #fff9f1;
  color: #422b12;
  cursor: pointer;
}

.photo-file-picker:hover,
.photo-file-picker:focus-within {
  border-color: #84520f;
  background: #fff5e7;
  box-shadow: 0 0 0 3px rgba(169, 99, 22, 0.12);
}

.photo-file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-picker-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 7px;
  background: #a96316;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.photo-picker-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.photo-picker-copy strong {
  font-size: 15px;
}

.photo-picker-copy small {
  color: #6c5c48;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.photo-selection {
  display: grid;
  min-height: 68px;
  padding: 7px;
  grid-template-columns: 54px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8ddd9;
  border-radius: 8px;
  background: #f7f9f7;
}

.photo-selection[hidden] {
  display: none !important;
}

.photo-preview-frame {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: #e4e9e5;
  color: #657068;
  font-size: 10px;
  font-weight: 900;
}

.photo-preview-frame::after {
  content: "IMG";
}

.photo-preview-frame img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-frame[data-preview-ready="true"] img {
  display: block;
}

.photo-selection-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.photo-selection-copy strong,
.photo-selection-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-selection-copy strong {
  color: #1f2d24;
  font-size: 13px;
}

.photo-selection-copy span {
  color: #69736d;
  font-size: 11px;
}

.photo-clear-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #ccd3ce;
  border-radius: 7px;
  background: #ffffff;
  color: #4d5d53;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.photo-clear-button:hover,
.photo-clear-button:focus-visible {
  border-color: #a62339;
  color: #a62339;
}

.photo-upload-message {
  min-height: 20px;
  margin: 0;
  color: #657068;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.photo-upload-message[data-tone="error"] {
  color: #a62339;
}

.photo-upload-message[data-tone="success"] {
  color: #117a43;
}

.photo-conversion-progress {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #bfd9ca;
  border-radius: 7px;
  background: #f2faf5;
}

.photo-conversion-progress[hidden] {
  display: none !important;
}

.photo-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1d4d33;
  font-size: 11px;
}

.photo-progress-copy strong {
  font-size: 12px;
}

.photo-progress-copy span {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.photo-conversion-progress progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #d7e7dc;
  color: #16965a;
  accent-color: #16965a;
}

.photo-conversion-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #d7e7dc;
}

.photo-conversion-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: #16965a;
  transition: width 180ms ease;
}

.photo-conversion-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: #16965a;
}

.photo-conversion-progress[data-complete="true"] {
  border-color: #8fd5ae;
  background: #ecfbf2;
}

.local-photo-kind {
  background: #dcecff !important;
  color: #174f86 !important;
  font-size: 8px !important;
}

.photo-upload-button:disabled {
  border-color: #bcc4bf;
  background: #d9dedb;
  color: #5c6760;
  opacity: 1;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .account-body .folder-add-bottom[open] .folder-add-popover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-body .folder-add-popover .folder-source-action {
    min-height: 60px;
  }

  .photo-file-picker {
    min-height: 96px;
    padding: 13px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
  }

  .photo-picker-mark {
    width: 46px;
    height: 46px;
  }
}

.account-body .local-photo-kind {
  background: #f8e3c7 !important;
  color: #96530c !important;
  font-size: 17px !important;
}

.account-body[data-control-view="true"] .shine-library-shell[data-library-mode="control"] .library-language-menu > summary {
  border-color: #4b544f;
  background: #111713;
  color: #ffffff;
}

/* Compact item actions: one clear menu for editing, renaming, moving, and deleting. */
.account-body .item-menu-disclosure > summary {
  width: 44px;
  height: 44px;
  border-color: #ccd4cf;
  border-radius: 8px;
  background: #ffffff;
  color: #17231c;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.account-body .item-menu-disclosure > summary:hover,
.account-body .item-menu-disclosure[open] > summary {
  border-color: #17231c;
  background: #17231c;
  color: #ffffff;
}

.account-body .item-menu-disclosure > summary:active { transform: scale(0.96); }
.account-body .item-menu-disclosure > summary:focus-visible { outline: 3px solid rgba(44, 151, 102, 0.32); outline-offset: 2px; }

.item-menu-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.item-menu-dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.account-body .item-popover-menu {
  width: min(340px, calc(100vw - 28px));
  gap: 9px;
  padding: 12px;
  border: 1px solid #cbd5ce;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(18, 31, 23, 0.18);
}

.account-body .item-menu-head {
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 10px;
  padding-bottom: 10px;
}

.account-body .item-menu-kind { width: 42px; height: 42px; }
.account-body .item-menu-close { width: 44px; height: 44px; border-radius: 8px; }

.item-menu-edit-action {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9ed9bb;
  border-radius: 8px;
  background: #eaf8f1;
  color: #12613d;
  font-weight: 850;
  cursor: pointer;
}

.item-menu-edit-action::before {
  margin-right: 8px;
  font-size: 17px;
  content: "✎";
}

.account-body .item-popover-menu .item-rename-form,
.account-body .item-popover-menu .item-move-form {
  padding: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  border: 1px solid #e0e6e2;
  border-radius: 8px;
  background: #f7f9f8;
}

.account-body .item-menu-field input,
.account-body .item-menu-field select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  background: #ffffff;
  font-size: 16px;
}

.account-body .item-menu-field input:focus,
.account-body .item-menu-field select:focus {
  border-color: #268b5c;
  outline: 3px solid rgba(38, 139, 92, 0.16);
}

.item-name-confirm {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #168d55;
  border-radius: 8px;
  background: #168d55;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.item-name-confirm[hidden] { display: none !important; }
.item-name-confirm:disabled { border-color: #c8d1cb; background: #dbe1dd; color: #738078; cursor: not-allowed; }
.item-rename-form[hidden] { display: none !important; }

.account-body .item-rename-form > input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c8d1cb;
  border-radius: 7px;
  background: #ffffff;
  color: #17231c;
  font: inherit;
  font-size: 16px;
}

.account-body .item-rename-form > input:focus {
  border-color: #268b5c;
  outline: 3px solid rgba(38, 139, 92, 0.16);
}

.account-body .item-order-actions {
  min-height: 44px;
  padding: 6px;
  justify-content: flex-start;
  gap: 7px;
  border: 1px solid #e0e6e2;
  border-radius: 8px;
  background: #f7f9f8;
}

.account-body .item-order-actions .icon-action-button { width: 44px; height: 44px; }
.account-body .item-menu-delete { min-height: 46px; border-radius: 8px; }

@media (max-width: 620px) {
  .account-body .item-popover-menu .item-rename-form,
  .account-body .item-popover-menu .item-move-form { grid-template-columns: minmax(0, 1fr) auto; }
  .account-body .item-popover-menu .item-menu-primary { width: auto; min-width: 84px; }
}

/* Bible workspace: modern entry, visible validation, and completion feedback. */
.account-body .library-tool-dialog[data-active-tool="bible"] {
  overflow-x: hidden;
  border: 1px solid #bccdc3;
  border-top: 4px solid #1f5f91;
  border-radius: 8px 8px 0 0;
  background: #f7faf8;
  box-shadow: 0 28px 80px rgba(8, 24, 16, 0.28);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .library-tool-drawer-head {
  position: sticky;
  top: -16px;
  z-index: 4;
  margin: -16px -12px 14px;
  padding: 16px 12px 13px;
  border-bottom-color: #d8e2dc;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .library-tool-title-copy strong {
  color: #102219;
  font-size: 20px;
  font-weight: 900;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .tool-target-copy {
  color: #66736c;
  font-size: 12px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-language-control {
  border-color: transparent;
  background: transparent;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-language-control select {
  border: 1px solid #c5d0c9;
  border-radius: 8px;
  background: #f7f9f8;
  color: #1d2b23;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .source-capability-message:empty {
  display: none;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .tool-inline-status {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #c4dfd0;
  border-left: 4px solid #269363;
  border-radius: 8px;
  background: #eef8f2;
  color: #315b45;
  font-size: 13px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-mode-tabs {
  min-height: 54px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid #cbd8e0;
  border-radius: 8px;
  background: #eaf0f4;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-mode-tab {
  min-height: 44px;
  border-radius: 6px;
  color: #4c5b64;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-mode-tab.is-active {
  background: #1f5f91;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 95, 145, 0.2);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form {
  gap: 12px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-mode-panel {
  gap: 11px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .field > span {
  color: #46574e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .field input,
.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .field select {
  min-height: 54px;
  border: 1px solid #bccbc2;
  border-radius: 8px;
  background: #ffffff;
  color: #13251b;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(17, 45, 29, 0.03);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .number-field input {
  min-width: 0;
  min-height: 62px;
  padding-inline: 8px;
  text-align: center;
  font-size: 21px;
  font-weight: 850;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .field input:focus,
.account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .field select:focus {
  border-color: #247cb6;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(36, 124, 182, 0.13);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .reference-field input {
  min-height: 60px;
  padding-inline: 15px;
  font-size: 18px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-mode-help {
  margin-top: -3px;
  color: #68766e;
  font-size: 12px;
}

.bible-validation-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.bible-validation-message:empty {
  display: none;
}

.bible-validation-message[data-tone="error"] {
  display: block;
  padding: 11px 13px;
  border: 1px solid #ef9eae;
  background: #fff0f3;
  color: #a51f3b;
  animation: bible-message-in 180ms ease-out both;
}

.bible-validation-message[data-tone="success"] {
  display: block;
  padding: 11px 13px;
  border: 1px solid #a9d9bd;
  background: #effaf3;
  color: #17663e;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .bible-submit-row {
  position: relative;
  display: block;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 8px;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .add-submit-button {
  display: flex;
  width: 100%;
  min-height: 56px !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #14834f;
  border-radius: 8px;
  background: #17985b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(23, 152, 91, 0.18);
}

.account-body .library-tool-dialog[data-active-tool="bible"] .add-submit-button:disabled {
  background: #147d4c;
  color: #ffffff;
  cursor: wait;
  opacity: 1;
}

.bible-submit-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.bible-entry-form[data-submitting="true"] .bible-submit-icon {
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  font-size: 0;
  animation: bible-submit-spin 700ms linear infinite;
}

.bible-add-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.bible-add-progress[hidden] {
  display: none;
}

.bible-add-progress > span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 5px;
  background: #b9f4d3;
  animation: bible-progress-travel 1.05s ease-in-out infinite;
}

.account-body .library-tool-dialog[data-active-tool="bible"] .compact-disclosure {
  margin-top: 18px;
  padding-top: 12px;
  border-top-color: #dbe3de;
}

.library-item-row-v3[data-just-added="true"] {
  animation: bible-item-added 2.8s ease-out both;
}

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

@keyframes bible-progress-travel {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(250%); }
}

@keyframes bible-message-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bible-item-added {
  0% { border-color: #1b995d; background: #dff9e9; box-shadow: 0 0 0 5px rgba(27, 153, 93, 0.16); transform: translateY(5px); }
  18% { transform: translateY(0); }
  72% { border-color: #52bd83; background: #ebfff3; box-shadow: 0 0 0 3px rgba(27, 153, 93, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(27, 153, 93, 0); }
}

@media (min-width: 701px) {
  .account-body .library-tool-dialog[data-active-tool="bible"] .library-tool-drawer-head {
    top: -18px;
    margin: -18px -18px 15px;
    padding: 18px 18px 14px;
  }
}

@media (max-width: 420px) {
  .account-body .library-tool-dialog[data-active-tool="bible"] .library-tool-drawer-head {
    grid-template-columns: 44px minmax(0, 1fr) 94px;
  }

  .account-body .library-tool-dialog[data-active-tool="bible"] .bible-language-control select {
    width: 94px;
  }

  .account-body .library-tool-dialog[data-active-tool="bible"] .bible-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .account-body .library-tool-dialog[data-active-tool="bible"] .bible-entry-form .number-field input {
    min-height: 58px;
    font-size: 19px;
  }
}

/* Read-only Library preview: the web reads the same slides returned by SHINE. */
.library-item-copy:is(button) {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.library-item-copy:is(button):focus-visible {
  outline: 3px solid rgba(37, 111, 171, 0.32);
  outline-offset: 4px;
}

.library-preview-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(860px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  background: #f7faf8;
  color: #14221b;
  box-shadow: 0 24px 70px rgba(7, 20, 14, 0.32);
}

.library-preview-dialog::backdrop {
  background: rgba(4, 12, 8, 0.68);
  backdrop-filter: blur(5px);
}

.library-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 15px 13px 18px;
  border-bottom: 1px solid #d7e0db;
  background: #ffffff;
}

.library-preview-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.library-preview-head span {
  color: #24714c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-preview-head strong {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-preview-head button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: #e92749;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.library-preview-stage {
  display: grid;
  min-height: min(440px, 54dvh);
  max-height: 62dvh;
  padding: 18px;
  overflow: auto;
  background: #eef3f0;
}

.library-preview-page {
  align-self: start;
  min-height: 320px;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid #d9dfdb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 53, 38, 0.09);
}

.library-preview-page > span {
  display: block;
  margin-bottom: 20px;
  color: #4c6b5b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-preview-page h3 {
  margin: 0 0 20px;
  color: #16251d;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.18;
}

#libraryPreviewText {
  color: #25362d;
  font-size: clamp(18px, 3.6vw, 24px);
  line-height: 1.65;
  white-space: pre-wrap;
}

.library-preview-loading {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  color: #315c45;
}

.library-preview-loading[hidden] {
  display: none;
}

.library-preview-loading span {
  width: 42px;
  height: 42px;
  border: 4px solid #c9dbd0;
  border-top-color: #168b52;
  border-radius: 50%;
  animation: bible-submit-spin 700ms linear infinite;
}

.library-preview-message {
  margin: auto;
  color: #5d6c64;
  font-weight: 750;
  text-align: center;
}

.library-preview-message:empty {
  display: none;
}

.library-preview-footer {
  display: grid;
  gap: 12px;
  padding: 12px 15px 15px;
  border-top: 1px solid #d4ded8;
  background: #ffffff;
}

.library-preview-slides {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.library-preview-slides[hidden] {
  display: none;
}

.library-preview-slide-tab {
  display: grid;
  min-width: 128px;
  min-height: 54px;
  padding: 8px 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #d1dbd5;
  border-radius: 6px;
  background: #f6f8f7;
  color: #203229;
  text-align: left;
}

.library-preview-slide-tab > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: #e4ebe7;
  font-size: 12px;
  font-weight: 900;
}

.library-preview-slide-tab strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-preview-slide-tab[data-selected="true"] {
  border-color: #256fab;
  background: #e7f3fc;
  box-shadow: inset 0 0 0 1px #256fab;
}

.library-preview-slide-tab[data-selected="true"] > span {
  background: #256fab;
  color: #ffffff;
}

.library-preview-nav {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 9px;
}

.library-preview-nav button {
  min-height: 48px;
  border: 1px solid #cbd6d0;
  border-radius: 6px;
  background: #ffffff;
  color: #17261e;
  font-size: 24px;
  font-weight: 900;
}

#libraryPreviewDone {
  border-color: #168b52;
  background: #168b52;
  color: #ffffff;
  font-size: 15px;
}

.library-preview-nav button:disabled {
  color: #aeb9b3;
  cursor: default;
}

@media (max-width: 600px) {
  .library-preview-dialog {
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .library-preview-stage {
    min-height: 0;
    max-height: none;
    height: calc(100dvh - 76px - 128px);
    padding: 12px;
  }

  .library-preview-page {
    min-height: calc(100dvh - 240px);
    padding: 24px 20px;
  }
}
