/* TEJMAR Crystal White design pass — 14 November 2026.
   The dark theme remains intact. This file standardises the light surface,
   typography, responsive rhythm, and editorial image treatment. */

:root[data-theme="light"] {
  --background: 0 0% 100%;
  --foreground: 0 0% 7%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 7%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 7%;
  --muted: 0 0% 97.5%;
  --muted-foreground: 0 0% 36%;
  --secondary: 0 0% 97%;
  --secondary-foreground: 0 0% 8%;
  --border: 0 0% 89%;
  --input: 0 0% 86%;
  --ring: 354 100% 44%;
  --primary: 354 100% 44%;
  --primary-foreground: 0 0% 100%;
  --sidebar: 0 0% 100%;
  --card-border: 0 0% 89%;
  --popover-border: 0 0% 89%;
  --accent: 354 100% 44%;
  --accent-foreground: 0 0% 100%;
  --destructive: 354 80% 45%;
  --destructive-foreground: 0 0% 100%;
  --sidebar-foreground: 0 0% 8%;
  --sidebar-border: 0 0% 89%;
  --sidebar-primary: 354 100% 44%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 0 0% 97%;
  --sidebar-accent-foreground: 0 0% 8%;
  --sidebar-ring: 354 100% 44%;
  color-scheme: light;
}

html, body, #root { min-width: 320px; min-height: 100%; }
html { scroll-behavior: smooth; background: hsl(var(--background)); }
body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid #df1526; outline-offset: 3px; }

/* One consistent content grid across migrated and original React pages. */
.tr-page, .tr-page.tr-wide {
  width: min(1240px, calc(100% - 64px));
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(42px, 6vw, 76px);
}
.tr-dashboard-route { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.tr-core-workspace-main { width: min(1240px, calc(100% - 64px)); padding: 28px 0 64px; }
.tr-page-heading { max-width: 850px; margin-bottom: clamp(26px, 4vw, 42px); }
.tr-page-heading h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
.tr-subtitle { max-width: 690px; margin-top: 13px; font-size: 14px; line-height: 1.8; }
.tr-eyebrow, .tr-about-kicker { letter-spacing: .16em; }
.tr-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 2.5%);
}
.tr-panel-head { margin-bottom: 20px; }
.tr-panel-head h2 { font-size: 16px; letter-spacing: -.015em; }
.tr-input {
  min-height: 47px;
  border-color: hsl(var(--input));
  border-radius: 7px;
  background: hsl(var(--background));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tr-input:focus, .tr-input:focus-visible { border-color: #df1526; box-shadow: 0 0 0 3px rgb(223 21 38 / 9%); }
.tr-button { min-height: 42px; border-radius: 6px; font-weight: 650; }
.tr-button.tr-primary { background: #df1526; }
.tr-button.tr-primary:hover:not(:disabled) { background: #c91020; }
.tr-button.tr-secondary, .tr-button.tr-icon { border-color: hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); }
.tr-list-item, .tr-suggestion { border-color: hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); }
.tr-copy-field { border-color: hsl(var(--border)); border-radius: 7px; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.tr-global-header {
  background: hsl(var(--background) / .96);
  border-bottom-color: hsl(var(--border));
  color: hsl(var(--foreground));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tr-global-inner { max-width: 1440px; min-height: 68px; }
.tr-menu-drawer, .tr-account-popover { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.tr-feature-footer { border-top-color: hsl(var(--border)); }
.tr-shared-footer { background: hsl(var(--background)); color: hsl(var(--foreground)); border-top: 1px solid hsl(var(--border)); }

/* Image-led hero sections: large, edge-to-edge photography that fades into copy. */
.tr-dashboard-banner {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 0;
  min-height: 300px;
  margin: 26px 0 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: hsl(var(--background));
  overflow: visible;
}
.tr-dashboard-banner-copy { position: relative; z-index: 1; align-self: center; padding: clamp(20px, 4vw, 54px) 0; }
.tr-dashboard-banner-copy h2 {
  max-width: 590px;
  margin: 0 0 14px;
  color: hsl(var(--foreground));
  font: 600 clamp(35px, 4.5vw, 58px)/.99 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.tr-dashboard-banner-copy p:not(.tr-eyebrow) { max-width: 480px; color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.85; }
.tr-dashboard-banner > img {
  width: 100%; height: 300px; min-height: 0;
  object-fit: cover; object-position: center 44%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}
.tr-book-form-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  margin: 0 0 28px;
  padding: 8px 0 18px;
  border: 0;
  border-radius: 0;
  background: hsl(var(--background));
  overflow: visible;
}
.tr-book-form-hero > div { padding: 18px 0; }
.tr-book-form-hero h2 { color: hsl(var(--foreground)); font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -.03em; }
.tr-book-form-hero p:not(.tr-eyebrow) { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.8; }
.tr-book-form-photo { min-width: 0; overflow: hidden; }
.tr-book-form-hero img {
  width: 100%; height: 260px; min-height: 0;
  object-fit: cover; object-position: center 48%;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 100%);
}
.tr-pricing-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr) minmax(150px, .48fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: hsl(var(--background));
  overflow: visible;
}
.tr-pricing-visual-copy { align-self: center; padding: 20px 0; }
.tr-pricing-visual-copy h2 { color: hsl(var(--foreground)); font-size: clamp(32px, 4vw, 49px); line-height: 1.01; letter-spacing: -.035em; text-wrap: balance; }
.tr-pricing-visual-copy > p:not(.tr-eyebrow) { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.8; }
.tr-pricing-visual figure { min-width: 0; height: 100%; min-height: 240px; overflow: hidden; }
.tr-pricing-visual img {
  display: block; width: 100%; height: 100%; min-height: 240px; max-height: 330px;
  object-fit: cover; border-radius: 0;
}
.tr-pricing-image-main img { object-position: center 48%; }
.tr-pricing-image-secondary img { object-position: center 50%; }
.tr-pricing-image-main { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%); }
.tr-pricing-image-secondary { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%); }
.tr-pricing-visual figcaption { padding: 0 4px; color: hsl(var(--muted-foreground)); }
.tr-pricing-plans { gap: 16px; }
.tr-price-plan { border-color: hsl(var(--border)); border-radius: 9px; background: hsl(var(--card)); box-shadow: 0 2px 12px rgb(0 0 0 / 2%); }
.tr-price-agency { border-color: hsl(var(--border)); border-radius: 9px; background: hsl(var(--muted)); }
.tr-about-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); margin: 10px 0 76px; }
.tr-about-hero-copy h2, .tr-about-mission h2, .tr-about-principles-head h2, .tr-about-footer h2, .tr-about-story h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.tr-about-hero-copy h2 { font-size: clamp(38px, 5.3vw, 66px); line-height: .99; }
.tr-about-hero-copy > p:not(.tr-about-kicker) { color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.85; }
.tr-about-photo { min-height: 390px; aspect-ratio: 5 / 4; border-radius: 0; background: hsl(var(--muted)); }
.tr-about-photo img {
  width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}
.tr-about-mission, .tr-about-principles { border-color: hsl(var(--border)); }
.tr-about-mission > p:last-child, .tr-about-story > div > p:not(.tr-about-kicker) { color: hsl(var(--muted-foreground)); }
.tr-about-quote { background: hsl(var(--muted)); }
.tr-about-footer { border-color: hsl(var(--border)); background: hsl(var(--muted)); }

/* Preview cards should never retain a broken remote image as a blank frame. */
.tr-preview-book-summary { border-color: hsl(var(--border)); border-radius: 9px; background: hsl(var(--card)); }
.tr-preview-book-summary img, .tr-preview-book-photo img { width: 100%; min-width: 0; object-fit: cover; }
.tr-preview-book-photo { overflow: hidden; background: hsl(var(--muted)); }
.tr-my-book-cover img, .tr-public-book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A single phone reader geometry replaces the conflicting legacy overrides. */
.tr-full-preview { border-color: hsl(var(--border)); border-radius: 9px; background: hsl(var(--card)); box-shadow: none; }
.tr-reader-heading { background: hsl(var(--card)); color: hsl(var(--foreground)); border-bottom-color: hsl(var(--border)); }
.tr-reader-stage { background: hsl(var(--muted)); }
.tr-book-page-stack { max-width: 790px; width: min(100%, 790px); margin: 0 auto; }
.tr-book-page { width: 100%; max-width: 790px; background: #fff; }
.tr-book-page-stack .tr-book-page-text { max-width: 700px; }

@media (max-width: 900px) {
  .tr-pricing-visual { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .55fr); }
  .tr-pricing-image-secondary { display: flex !important; }
  .tr-pricing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-price-agency { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .tr-page, .tr-page.tr-wide, .tr-dashboard-route, .tr-core-workspace-main { width: calc(100% - 32px); }
  .tr-page { padding-top: 30px; padding-bottom: 42px; }
  .tr-page-heading { margin-bottom: 24px; }
  .tr-page-heading h1 { font-size: clamp(34px, 10vw, 43px); line-height: 1.02; }
  .tr-subtitle { font-size: 13px; line-height: 1.75; }
  .tr-core-workspace-main { padding: 20px 0 42px; }
  .tr-panel { padding: 17px; }
  .tr-two-col, .tr-book-fields-grid, .tr-dynamic-card .tr-book-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-dashboard-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 18px 0 25px;
    padding: 0;
  }
  .tr-dashboard-banner-copy { padding: 20px 0 14px; }
  .tr-dashboard-banner-copy h2 { font-size: clamp(36px, 11vw, 46px); }
  .tr-dashboard-banner-copy p:not(.tr-eyebrow) { font-size: 13px; }
  .tr-dashboard-banner > img {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100%; height: auto; min-height: 190px; max-height: 245px;
    aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 100%);
  }
  .tr-book-form-hero { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 22px; padding: 0 0 12px; }
  .tr-book-form-hero > div { padding: 12px 0 4px; }
  .tr-book-form-hero h2 { font-size: clamp(32px, 9.5vw, 41px); }
  .tr-book-form-photo { display: block !important; width: 100%; min-height: 0; }
  .tr-book-form-hero img {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100%; height: auto; min-height: 180px; max-height: 220px;
    aspect-ratio: 16 / 9; border-radius: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
  }
  .tr-pricing-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0 0 24px;
  }
  .tr-pricing-visual-copy { grid-column: 1; padding: 12px 0 4px; }
  .tr-pricing-visual-copy h2 { max-width: 100%; font-size: clamp(32px, 9.5vw, 42px); }
  .tr-pricing-visual-copy > p:not(.tr-eyebrow) { font-size: 13px; line-height: 1.7; }
  .tr-pricing-visual figure, .tr-pricing-image-secondary { display: flex !important; visibility: visible !important; opacity: 1 !important; min-height: 0; height: auto; width: 100%; }
  .tr-pricing-visual img {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100%; height: auto; min-height: 0; max-height: none; border-radius: 0;
  }
  .tr-pricing-image-main img { aspect-ratio: 16 / 9; }
  .tr-pricing-image-secondary img { aspect-ratio: 16 / 7; max-height: 150px; }
  .tr-pricing-image-main, .tr-pricing-image-secondary {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 100%);
  }
  .tr-pricing-visual figcaption { font-size: 9px; }
  .tr-pricing-plans { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tr-price-agency { align-items: flex-start; flex-direction: column; }
  .tr-about-hero, .tr-about-story { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tr-about-hero { margin: 8px 0 54px; }
  .tr-about-hero-copy h2 { font-size: clamp(38px, 11vw, 49px); }
  .tr-about-hero-copy > p:not(.tr-about-kicker) { font-size: 14px; line-height: 1.8; }
  .tr-about-photo, .tr-about-photo img {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100%; min-height: 0; max-height: none; height: auto; aspect-ratio: 16 / 11; border-radius: 0;
  }
  .tr-about-photo img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }
  .tr-about-mission { margin-bottom: 54px; padding: 30px 0; }
  .tr-about-story { margin-bottom: 58px; }
  .tr-about-quote { margin-top: 8px; }
  .tr-about-principles { margin-bottom: 54px; }
  .tr-about-principle { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .tr-about-footer { padding: 28px 18px; }
  .tr-preview-book-summary { grid-template-columns: 100px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .tr-preview-book-summary img { height: 132px; }
  .tr-full-preview { margin-top: 16px; }
  .tr-reader-heading { align-items: flex-start; padding: 13px; }
  .tr-reader-heading-actions { max-width: 100%; }
  .tr-reader-heading h2 { font-size: 22px; }
  .tr-reader-workspace {
    display: flex; flex-direction: column; width: 100%; height: 76dvh;
    min-height: 420px; max-height: calc(100dvh - 150px); overflow: hidden;
  }
  .tr-reader-contents {
    flex: 0 0 auto; width: 100%; max-height: 112px; overflow: auto;
    padding: 8px 10px; border-right: 0; border-bottom: 1px solid hsl(var(--border));
  }
  .tr-reader-contents-heading { position: static; padding: 2px 0 7px; margin: 0; }
  .tr-reader-contents-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .tr-reader-chapter { flex: 0 0 190px; grid-template-columns: 24px minmax(0, 1fr); font-size: 10px; padding: 8px; }
  .tr-reader-main-column { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .tr-reader-control-bar { padding: 9px; gap: 8px; }
  .tr-reader-control-group { gap: 5px; }
  .tr-reader-control-group .tr-button { min-height: 34px; padding: 7px 9px; font-size: 10px; }
  .tr-reader-control-group .tr-page-indicator { min-width: 70px; font-size: 10px; }
  .tr-reader-jump { width: 100%; gap: 7px; }
  .tr-reader-jump .tr-field { min-width: 0; flex: 1 1 120px; }
  .tr-reader-stage { flex: 1 1 auto; min-height: 0; padding: 12px; gap: 12px; overflow: auto; }
  .tr-book-page-stack {
    width: 100%; max-width: 700px; min-height: 68dvh; flex: 0 0 auto;
    margin: 0 auto; padding: 28px 20px; box-sizing: border-box;
  }
  .tr-book-page-stack .tr-book-page-text { width: 100%; max-width: 100%; font-size: 14px; line-height: 1.82; text-align: left; }
  .tr-reader-control-bar .tr-input { min-height: 36px; }
  .tr-book-submit { position: static; }
}
@media (max-width: 420px) {
  .tr-page, .tr-page.tr-wide, .tr-dashboard-route, .tr-core-workspace-main { width: calc(100% - 28px); }
  .tr-global-inner { min-height: 60px; padding: 0 14px; }
  .tr-header-actions { gap: 8px; }
  .tr-panel { padding: 15px; }
  .tr-preview-book-summary { grid-template-columns: 1fr; }
  .tr-preview-book-summary img { width: min(180px, 100%); height: 230px; }
  .tr-reader-workspace { min-height: 390px; height: 74dvh; max-height: calc(100dvh - 132px); }
  .tr-book-page-stack { min-height: 66dvh; padding: 23px 16px; }
  .tr-book-page-stack .tr-book-page-text { font-size: 13.5px; line-height: 1.78; }
  .tr-reader-chapter { flex-basis: 166px; }
  .tr-reader-control-group .tr-button { min-height: 32px; padding: 6px 7px; font-size: 9px; }
  .tr-reader-control-group .tr-page-indicator { min-width: 60px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The original homepage photo was desktop-only (hidden lg:block). It now
   participates in the hero at every viewport, with a direction-aware fade. */
.tr-home-hero-section { min-height: min(92vh, 980px); background: hsl(var(--background)); flex-direction: row; }
.tr-home-hero-visual { position: relative; flex: 0 0 50%; min-height: 0; background: hsl(var(--background)); }
.tr-home-hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.tr-home-hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 72%, hsl(var(--background)) 100%);
}
.tr-home-hero-copy { min-width: 0; background: hsl(var(--background)); }
.tr-home-hero-copy h1 {
  max-width: 680px;
  color: hsl(var(--foreground));
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(48px, 5.5vw, 76px) !important;
  font-weight: 600 !important;
  line-height: .97 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance;
}
.tr-home-hero-copy h1 span { color: #df1526; }
.tr-home-hero-copy p { max-width: 560px; color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.85; }
.tr-home-hero-copy button { border-radius: 6px !important; box-shadow: none !important; }
.tr-home-hero-visual > div { z-index: 2; }
@media (max-width: 1023px) {
  .tr-home-hero-section { min-height: 0; flex-direction: column-reverse; }
  .tr-home-hero-visual { display: block !important; width: 100%; height: clamp(210px, 62vw, 330px); flex: 0 0 auto; }
  .tr-home-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
  .tr-home-hero-visual::after { background: linear-gradient(180deg, hsl(var(--background)) 0%, transparent 27%, transparent 100%); }
  .tr-home-hero-visual > div { display: none; }
  .tr-home-hero-copy { width: 100%; padding: 68px 24px 26px !important; }
  .tr-home-hero-copy h1 { font-size: clamp(43px, 11vw, 58px) !important; }
  .tr-home-hero-copy p { font-size: 14px; }
}
@media (max-width: 520px) {
  .tr-home-hero-visual { height: clamp(190px, 58vw, 250px); }
  .tr-home-hero-copy { padding: 58px 20px 22px !important; }
  .tr-home-hero-copy > div:first-child { max-width: 100%; }
  .tr-home-hero-copy h1 { font-size: clamp(41px, 11.5vw, 50px) !important; }
  .tr-home-hero-copy .flex.flex-col.sm\:flex-row { margin-top: 24px; gap: 10px; }
  .tr-home-hero-copy button { width: 100%; min-height: 48px; }
}


/* 16 Nov preview patch: reliable book-art rendering on mobile and desktop. */
.tr-cover-image, .tr-cover-grid img, .tr-my-book-cover img,
.tr-public-book-cover img, .tr-preview-book-photo img,
.tr-dashboard-banner > img, .tr-book-form-photo img,
.tr-pricing-visual img, .tr-about-photo img {
  display: block !important;
  max-width: 100% !important;
  min-width: 0;
  backface-visibility: hidden;
}
.tr-cover-image, .tr-my-book-cover img, .tr-public-book-cover img,
.tr-preview-book-photo img { object-fit: cover; object-position: center; }
.tr-my-book-cover, .tr-public-book-cover, .tr-preview-book-photo { min-width: 0; overflow: hidden; }
.tr-cover-grid img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 700px) {
  .tr-dashboard-banner, .tr-book-form-hero, .tr-pricing-visual, .tr-about-hero { min-width: 0; }
  .tr-dashboard-banner > img, .tr-book-form-photo img, .tr-pricing-visual img,
  .tr-about-photo img { display: block !important; width: 100% !important; max-width: 100% !important; }
  .tr-about-photo, .tr-about-photo img { min-height: 250px !important; }
  .tr-cover-image { width: min(100%, 330px) !important; height: auto !important; margin-inline: auto; }
  .tr-my-book-row { grid-template-columns: 84px minmax(0,1fr) !important; }
  .tr-my-book-cover { width: 84px; aspect-ratio: 2 / 3; }
  .tr-my-book-cover img { width: 100%; height: 100%; }
}
