:root {
  color-scheme: dark;
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.18);
  --panel: rgba(15, 23, 42, 0.58);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --gold: #facc15;
  --gold-dark: #ca8a04;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 34rem),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px;
}

.card {
  position: relative;
  width: min(980px, 100%);
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.top-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(15, 23, 42, 0.34);
  color: rgba(248, 250, 252, 0.86);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.top-action-button:hover,
.settings-toggle[aria-expanded="true"] {
  background: rgba(250, 204, 21, 0.13);
  border-color: rgba(250, 204, 21, 0.48);
  color: var(--gold);
  transform: translateY(-1px);
}

.settings-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.82;
}

.library-toggle {
  border-radius: 999px;
  padding: 0 14px;
  font: 800 0.8rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.app-view {
  position: relative;
}

.home-view {
  padding-top: 64px;
}

.settings-view,
.library-view {
  min-height: 520px;
  text-align: left;
}

.settings-header {
  position: relative;
  margin-bottom: 30px;
  padding-top: 4px;
}

.settings-title {
  padding: 0 84px;
  text-align: center;
}

.settings-title h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 0.98;
}

.settings-subtitle {
  margin: 0;
  color: var(--muted);
  font: 600 0.98rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.back-button {
  position: absolute;
  top: 0;
  left: 0;
  appearance: none;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--gold);
  font: 800 0.92rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.back-button:hover {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.55);
}

.settings-sections {
  display: grid;
  gap: 24px;
}

.settings-section-heading {
  margin-bottom: 12px;
}

.settings-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  line-height: 1.15;
}

.settings-card {
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.1);
  font: 800 0.72rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.is-active {
  border-color: rgba(74, 222, 128, 0.44);
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.settings-list {
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.settings-row + .settings-row {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.settings-row h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
}

.settings-row p {
  margin: 0;
  color: var(--muted);
  font: 600 0.9rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.settings-row-meta {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font: 800 0.72rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-status {
  min-height: 22px;
  margin: 18px 0 0;
  text-align: center;
  color: var(--gold);
  font: 700 0.9rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.library-empty {
  padding: 28px;
  text-align: center;
}

.library-empty h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.library-empty p:last-child {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font: 600 0.98rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.library-viewer {
  display: grid;
  gap: 18px;
}

.library-card-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.library-card-image {
  display: block;
  width: min(100%, 480px);
  margin: 0;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.library-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.85);
  color: #052e16;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.library-card-stage > .library-nav-button:first-of-type {
  left: 4px;
}

.library-card-stage > .library-nav-button:last-of-type {
  right: 4px;
}

.library-nav-button:hover:not(:disabled) {
  background: rgba(34, 197, 94, 1);
  border-color: rgba(34, 197, 94, 1);
}

.library-nav-button:disabled {
  cursor: default;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(203, 213, 225, 0.45);
  box-shadow: none;
}

.library-card-meta {
  text-align: center;
}

.library-card-meta .reference {
  margin: 0;
}

.library-card-meta .tool-meta {
  margin: 8px 0 0;
}

.library-actions {
  margin-top: 0;
}

.danger-button {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.home-focal {
  width: min(100%, 760px);
  margin: 0 auto;
}

.passage {
  min-height: 150px;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.55;
  color: var(--text);
}

.reference {
  margin: 22px 0 32px;
  color: var(--muted);
  font: 600 1rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: #171717;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  font: 800 1rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(250, 204, 21, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(250, 204, 21, 0.32);
}

.button:active {
  transform: translateY(0);
}

.home-actions {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.utility-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 2px 10px;
}

.utility-divider {
  color: rgba(203, 213, 225, 0.46);
  font: 800 1.05rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.utility-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 4px;
  background: transparent;
  color: rgba(203, 213, 225, 0.88);
  font: 800 0.88rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.utility-button:hover:not(:disabled) {
  color: var(--gold);
  transform: translateY(-1px);
}

.utility-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button-secondary:hover:not(:disabled) {
  box-shadow: 0 20px 42px rgba(250, 204, 21, 0.18);
}

.button-premium {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(250, 204, 21, 0.44);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.button-premium:hover:not(:disabled) {
  box-shadow: 0 20px 44px rgba(250, 204, 21, 0.2);
}

.button-compact {
  padding: 14px 20px;
  font-size: 0.92rem;
}

.action-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--gold);
  font: 700 0.9rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.subscription-panel,
.share-card-panel,
.scripture-tools {
  margin-top: 34px;
  text-align: left;
}

.settings-view .subscription-panel {
  margin-top: 0;
}

.subscription-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.subscription-panel.is-subscribed {
  border-color: rgba(74, 222, 128, 0.36);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(15, 23, 42, 0.6));
}

.subscription-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-copy .tool-meta {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font: 600 0.95rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-examples-label {
  margin: 0;
}

.subscription-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-examples-grid li {
  margin: 0;
  padding: 0;
}

.subscription-examples-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.subscription-panel.is-subscribed .subscription-examples {
  display: none;
}

.subscription-actions .button {
  width: 100%;
}

.web-sign-in-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-sign-in-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.web-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  color: #4285f4;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.web-sign-in-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.web-sign-in-divider::before,
.web-sign-in-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.web-sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.web-sign-in-form .text-input {
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.web-sign-in-buttons {
  display: flex;
  gap: 8px;
}

.web-sign-in-buttons .button {
  flex: 1 1 0;
  white-space: nowrap;
}

.web-sign-in-help {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.web-sign-in-help a {
  color: inherit;
  text-decoration: underline;
}

.web-sign-in-row .tool-meta {
  margin: 0;
  min-height: 0;
}

#webSignOutButton {
  align-self: flex-start;
}

.scripture-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.share-card-panel {
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel);
}

.focal-card-panel {
  width: min(100%, 520px);
  margin: 24px auto 26px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.home-view.has-focal-card .home-actions {
  margin-top: 8px;
}

.share-card-heading {
  text-align: center;
}

.share-card-stage {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.focal-card-panel .share-card-stage {
  margin-top: 0;
}

.share-card-canvas {
  display: none;
}

.share-card-preview {
  display: block;
  width: min(100%, 360px);
  border-radius: 24px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.focal-card-panel .share-card-preview {
  width: min(100%, 430px);
}

.share-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.tool-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel);
}

.tool-heading {
  margin-bottom: 16px;
}

.tool-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font: 800 0.72rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testament-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-pill {
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  font: 700 0.85rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill:hover:not([aria-pressed="true"]) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter-pill[aria-pressed="true"] {
  color: #0b1020;
  background: var(--gold);
}

.text-input,
.select-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  font: 600 0.95rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.text-input {
  padding: 13px 14px;
}

.select-input {
  padding: 12px 13px;
}

.text-input:focus,
.select-input:focus {
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

.tool-meta {
  min-height: 22px;
  margin: 14px 0;
  color: var(--muted-2);
  font: 600 0.85rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.results-list,
.chapter-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.result-row,
.verse-row {
  width: 100%;
  appearance: none;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.result-row:hover,
.verse-row:hover,
.verse-row.is-active {
  border-color: rgba(250, 204, 21, 0.48);
  background: rgba(250, 204, 21, 0.1);
  transform: translateY(-1px);
}

.result-ref,
.verse-ref {
  color: var(--gold);
  font: 800 0.82rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.result-text,
.verse-text {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.browse-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.browse-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 800 0.76rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-panel {
  margin-top: 34px;
  margin-bottom: 28px;
  padding-top: 30px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.image-status {
  margin: 0 0 18px;
  color: var(--muted);
  font: 600 0.95rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.message-image {
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.prompt-details {
  margin-top: 18px;
  color: var(--muted);
  font: 500 0.9rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

.prompt-details summary {
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

.prompt-details p {
  margin: 12px auto 0;
  max-width: 680px;
}

.image-panel.is-loading {
  display: grid;
  place-items: center;
}

.image-panel.is-loading .image-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.spinner-clock {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(250, 204, 21, 0.25);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.18);
}

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

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

.app-view[hidden],
.library-viewer[hidden],
.library-empty[hidden],
.message-image[hidden],
.image-status[hidden],
.prompt-details[hidden],
.subscription-panel[hidden],
.share-card-panel[hidden],
.share-card-preview[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 16px;
  }

  .card {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .top-actions {
    position: static;
    justify-content: flex-end;
    margin-bottom: 20px;
  }

  .home-view {
    padding-top: 0;
  }

  .settings-header {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
  }

  .settings-title {
    padding: 0;
  }

  .back-button {
    position: static;
    width: fit-content;
  }

  .scripture-tools {
    grid-template-columns: 1fr;
  }

  .settings-row {
    align-items: flex-start;
  }

  .share-card-preview,
  .focal-card-panel .share-card-preview {
    width: min(100%, 320px);
  }

  .library-card-image {
    width: 100%;
  }

  .library-nav-button {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .browse-controls {
    grid-template-columns: 1fr;
  }

  .primary-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .utility-actions {
    gap: 8px;
  }
}
