:root {
  --brand-pink: #FA83AD;
  --brand-plum: #4F213B;
  --brand-white: #FFFFFF;
  --brand-pink-soft: rgba(250, 131, 173, 0.12);
  --brand-plum-muted: rgba(79, 33, 59, 0.68);
  --brand-border: rgba(79, 33, 59, 0.12);
  --brand-shadow: 0 20px 60px rgba(79, 33, 59, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--brand-plum);
  background: var(--brand-white);
}

a,
button,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--brand-border);
  backdrop-filter: blur(16px);
}

.header-content,
.logo-link,
.header-nav,
.header-buttons {
  display: flex;
  align-items: center;
}

.header-content {
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  gap: 12px;
  color: var(--brand-plum);
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
}

.app-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header-nav,
.header-buttons {
  gap: 12px;
}

.nav-link {
  margin-right: 12px;
  color: var(--brand-plum);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.text-link:hover {
  color: var(--brand-pink);
}

.download-btn,
.pagination-link,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--brand-pink);
  border-radius: 999px;
  background: var(--brand-pink);
  color: var(--brand-white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-btn:hover,
.pagination-link:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 131, 173, 0.28);
}

.download-btn-outline {
  background: var(--brand-white);
  color: var(--brand-plum);
  border-color: var(--brand-border);
}

.download-btn-outline:hover {
  box-shadow: none;
  border-color: var(--brand-pink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(circle at 85% 20%, rgba(250, 131, 173, 0.22), transparent 36%),
    var(--brand-white);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -170px;
  bottom: -170px;
  border: 56px solid var(--brand-pink-soft);
  border-radius: 50%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--brand-pink);
}

.hero-description {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--brand-plum-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-plum);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-visual {
  position: relative;
  padding: 14px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 10% 12%;
  border-radius: 36px;
  background: var(--brand-pink);
  transform: rotate(4deg);
}

.hero-image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid var(--brand-white);
  border-radius: 30px;
  box-shadow: var(--brand-shadow);
}

.catalog,
.features,
.about,
.cta {
  padding: 88px 0;
}

.catalog {
  background: var(--brand-white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.section-title,
.about h2,
.cta h2 {
  color: var(--brand-plum);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-description {
  max-width: 480px;
  color: var(--brand-plum-muted);
  font-size: 1rem;
}

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

.design-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: var(--brand-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.design-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 131, 173, 0.55);
  box-shadow: var(--brand-shadow);
}

.design-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-pink-soft);
}

.design-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.design-card:hover .design-card-image img {
  transform: scale(1.025);
}

.design-card-content {
  padding: 20px 22px 22px;
}

.design-card h3 {
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-plum-muted);
  font-size: 0.82rem;
}

.featured-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-pink-soft);
  color: var(--brand-plum);
  font-size: 0.68rem;
  font-weight: 700;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}

.pagination-status {
  color: var(--brand-plum-muted);
  font-size: 0.9rem;
}

.catalog-empty {
  padding: 64px 24px;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: var(--brand-pink-soft);
  text-align: center;
}

.catalog-empty h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.catalog-empty p {
  margin-bottom: 20px;
  color: var(--brand-plum-muted);
}

.catalog-empty .text-link {
  justify-content: center;
}

.features {
  background: var(--brand-pink-soft);
}

.section-heading-centered {
  display: block;
  text-align: center;
}

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

.feature-card {
  padding: 32px;
  border: 1px solid rgba(250, 131, 173, 0.16);
  border-radius: 24px;
  background: var(--brand-white);
}

.feature-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brand-pink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.feature-description {
  color: var(--brand-plum-muted);
  font-size: 0.94rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  max-width: 540px;
  margin-bottom: 24px;
}

.about-text > p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--brand-plum-muted);
  font-size: 1.02rem;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  z-index: 0;
  border-radius: 28px;
  background: var(--brand-pink-soft);
}

.about-image img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.cta {
  overflow: hidden;
  background: var(--brand-white);
}

.cta-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 72px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 8% 110%, rgba(255, 255, 255, 0.38), transparent 38%),
    var(--brand-pink);
  box-shadow: 0 30px 80px rgba(250, 131, 173, 0.25);
  isolation: isolate;
}

.cta-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -210px;
  right: 18%;
  width: 460px;
  height: 460px;
  border: 70px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.cta-shell::after {
  content: "iola";
  position: absolute;
  z-index: -1;
  right: 320px;
  bottom: -100px;
  color: rgba(255, 255, 255, 0.13);
  font-size: 15rem;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta .eyebrow {
  color: var(--brand-white);
}

.cta h2 {
  margin-bottom: 24px;
  color: var(--brand-plum);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.98;
}

.cta h2 span {
  color: var(--brand-white);
}

.cta-description {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(79, 33, 59, 0.78);
  font-size: 1.08rem;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-plum);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-note span {
  width: 8px;
  height: 8px;
  border: 2px solid var(--brand-white);
  border-radius: 50%;
  background: var(--brand-plum);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.cta-download {
  position: relative;
  z-index: 1;
  padding: 38px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(79, 33, 59, 0.16);
  text-align: center;
  transform: rotate(2deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.cta-download:hover {
  box-shadow: 0 30px 70px rgba(79, 33, 59, 0.22);
  transform: rotate(0) translateY(-6px);
}

.cta-app-icon {
  width: 82px;
  height: 82px;
  margin-top: -80px;
  margin-bottom: 22px;
  border: 6px solid var(--brand-white);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(79, 33, 59, 0.14);
}

.cta-download h3 {
  margin-bottom: 8px;
  color: var(--brand-plum);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.cta-download > p {
  margin-bottom: 24px;
  color: var(--brand-plum-muted);
  font-size: 0.85rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.store-link {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.store-link:hover {
  transform: scale(1.035);
}

.store-link img {
  width: auto;
  height: 50px;
}

.footer {
  padding: 30px 0;
  background: var(--brand-white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.footer .app-name {
  font-size: 1.1rem;
}

.footer-content > p {
  color: var(--brand-plum-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--brand-plum-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--brand-pink);
}

.legal-content,
.support-content {
  min-height: calc(100vh - 75px);
  padding: 72px 0 88px;
  background: var(--brand-white);
}

.legal-content h1,
.support-content h1 {
  margin-bottom: 32px;
  color: var(--brand-plum);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  text-align: center;
}

.support-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--brand-plum-muted);
  font-size: 1.05rem;
  text-align: center;
}

.account-deletion-container,
.support-form-container {
  max-width: 640px;
  margin: 0 auto 24px;
}

.account-deletion-details,
.support-form-container {
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  background: var(--brand-pink-soft);
}

.account-deletion-summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.account-deletion-summary::-webkit-details-marker,
.account-deletion-summary::marker {
  display: none;
}

.account-deletion-summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--brand-pink);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.account-deletion-details[open] .account-deletion-summary::after {
  content: "−";
}

.account-deletion-content {
  padding: 0 24px 24px;
}

.account-deletion-content p {
  margin-bottom: 12px;
}

.support-form-container {
  padding: 32px;
}

.support-form-container h2 {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  outline: none;
  background: var(--brand-white);
  color: var(--brand-plum);
  font: inherit;
}

.form-input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px var(--brand-pink-soft);
}

.form-actions {
  margin-top: 26px;
  text-align: center;
}

.privacy-content,
.terms-content {
  max-width: 820px;
  margin: 0 auto;
}

.privacy-date,
.terms-date {
  margin-bottom: 32px;
  color: var(--brand-plum-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.privacy-content h2,
.terms-content h2 {
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-pink);
  font-size: 1.35rem;
}

.privacy-content p,
.terms-content p,
.privacy-content ul,
.terms-content ul {
  margin-bottom: 16px;
  color: var(--brand-plum-muted);
}

.privacy-content ul,
.terms-content ul {
  padding-left: 24px;
}

.privacy-content a,
.terms-content a {
  color: var(--brand-pink);
  font-weight: 600;
}

.privacy-content strong,
.terms-content strong,
.account-deletion-content strong {
  color: var(--brand-plum);
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(680px, 100%);
    margin: 0 auto;
  }

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

  .footer-content {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .header {
    padding: 10px 0;
  }

  .logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .app-name {
    font-size: 1.15rem;
  }

  .nav-link,
  .download-btn-outline {
    display: none;
  }

  .download-btn {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .hero,
  .catalog,
  .features,
  .about,
  .cta {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-description {
    margin-top: 16px;
  }

  .features-grid,
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    gap: 48px;
  }

  .about-image {
    width: min(480px, 100%);
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .app-name {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 20px;
  }

  .designs-grid {
    grid-template-columns: 1fr;
  }

  .design-card-image {
    aspect-ratio: 1 / 1;
  }

  .catalog-pagination {
    gap: 12px;
    flex-wrap: wrap;
  }

  .pagination-status {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .feature-card,
  .support-form-container {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding-bottom: 18px;
}

.stats-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(250, 131, 173, 0.22);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand-white), rgba(250, 131, 173, 0.09));
  box-shadow: 0 24px 60px rgba(79, 33, 59, 0.08);
  isolation: isolate;
}

.stats-glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: 50%;
  width: 560px;
  height: 360px;
  border-radius: 50%;
  background: rgba(250, 131, 173, 0.14);
  filter: blur(70px);
  transform: translateX(-50%);
  pointer-events: none;
}

.stat-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 40px 36px 36px;
  flex-direction: column;
  color: var(--brand-plum);
}

.stat-card + .stat-card {
  border-left: 1px solid rgba(250, 131, 173, 0.18);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 0;
  left: 36px;
  height: 3px;
  background: var(--brand-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.stats.is-visible .stat-card::after {
  transform: scaleX(1);
}

.stat-index {
  margin-bottom: 22px;
  color: var(--brand-pink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.stat-value {
  margin-bottom: 4px;
  color: var(--brand-plum);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
  line-height: 1;
}

.stat-label {
  margin-bottom: 12px;
  color: var(--brand-plum);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat-caption {
  color: var(--brand-plum-muted);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .stats {
    margin-top: -20px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    padding: 26px 28px;
  }

  .stat-card + .stat-card {
    border-top: 1px solid rgba(250, 131, 173, 0.18);
    border-left: 0;
  }

  .stat-card::after {
    right: 28px;
    left: 28px;
  }

  .stat-index {
    display: none;
  }

  .stat-value {
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    font-size: 3rem;
  }

  .stat-label {
    align-self: end;
    margin: 0;
  }

  .stat-caption {
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card::after {
    transform: scaleX(1);
  }
}

@media (max-width: 960px) {
  .cta-shell {
    grid-template-columns: 1fr;
    gap: 76px;
    padding: 64px 48px 76px;
  }

  .cta-content {
    text-align: center;
  }

  .cta-description {
    margin-right: auto;
    margin-left: auto;
  }

  .cta-note {
    justify-content: center;
  }

  .cta-download {
    width: min(400px, 100%);
    margin: 0 auto;
  }

  .cta-shell::after {
    right: -20px;
    bottom: 240px;
  }
}

@media (max-width: 520px) {
  .cta-shell {
    gap: 68px;
    padding: 52px 20px 68px;
    border-radius: 28px;
  }

  .cta h2 {
    font-size: clamp(2.7rem, 14vw, 3.7rem);
  }

  .cta-description {
    font-size: 0.96rem;
  }

  .cta-note {
    font-size: 0.68rem;
  }

  .cta-download {
    padding: 32px 20px 24px;
    border-radius: 24px;
    transform: none;
  }

  .cta-shell::before {
    right: -240px;
  }

  .cta-shell::after {
    font-size: 10rem;
  }
}

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

.design-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.design-card-image {
  position: relative;
}

.design-card-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--brand-plum);
  box-shadow: 0 8px 24px rgba(79, 33, 59, 0.14);
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.design-card:hover .design-card-open,
.design-card-link:focus-visible .design-card-open {
  opacity: 1;
  transform: translateY(0);
}

.design-card-link:focus-visible {
  outline: 3px solid var(--brand-pink);
  outline-offset: 4px;
}

.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}

.catalog-actions .download-btn {
  gap: 12px;
  padding-right: 28px;
  padding-left: 28px;
}

.catalog-intro {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  background:
    radial-gradient(circle at 90% 10%, rgba(250, 131, 173, 0.2), transparent 32%),
    var(--brand-pink-soft);
}

.catalog-intro-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.catalog-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.catalog-intro h1 span {
  color: var(--brand-pink);
}

.catalog-intro-content > div > p:last-child {
  max-width: 620px;
  color: var(--brand-plum-muted);
  font-size: 1.05rem;
}

.catalog-intro-mark {
  margin-right: 24px;
  color: rgba(250, 131, 173, 0.24);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  padding: 8px;
  border: 1px solid rgba(250, 131, 173, 0.24);
  border-radius: 22px;
  background: var(--brand-white);
  box-shadow: 0 16px 40px rgba(79, 33, 59, 0.07);
}

.catalog-search-input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brand-plum);
  font: inherit;
}

.catalog-search-input::placeholder {
  color: var(--brand-plum-muted);
}

.catalog-search:focus-within {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 4px var(--brand-pink-soft), 0 16px 40px rgba(79, 33, 59, 0.07);
}

.catalog-search-submit {
  min-width: 112px;
  border: 0;
}

.catalog-search-reset {
  padding: 8px 12px 8px 4px;
  color: var(--brand-plum-muted);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-search-reset:hover {
  color: var(--brand-pink);
}

.catalog-page-results {
  padding-top: 56px;
}

.catalog-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.catalog-results-heading .eyebrow {
  margin-bottom: 8px;
}

.catalog-results-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.catalog-count {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-pink-soft);
  color: var(--brand-plum);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-pagination {
  gap: 8px;
}

.pagination-page,
.pagination-arrow {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--brand-plum);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pagination-page:hover,
.pagination-page.is-current {
  border-color: var(--brand-plum);
  background: var(--brand-plum);
  color: var(--brand-white);
}

.pagination-gap {
  padding: 0 4px;
  color: var(--brand-plum-muted);
}

.design-page {
  padding: 30px 0 88px;
  background:
    linear-gradient(to bottom, var(--brand-pink-soft) 0, var(--brand-pink-soft) 420px, var(--brand-white) 420px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--brand-plum-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.breadcrumbs a {
  flex-shrink: 0;
  color: var(--brand-plum);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-pink);
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.design-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}

.design-main {
  min-width: 0;
}

.design-hero-image {
  display: grid;
  overflow: hidden;
  min-height: 360px;
  max-height: 780px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: rgba(250, 131, 173, 0.1);
  box-shadow: 0 24px 70px rgba(79, 33, 59, 0.12);
}

.design-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-hero-image .design-image-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 40px;
}

.design-info {
  padding: 42px 8px 38px;
  border-bottom: 1px solid var(--brand-border);
}

.design-info h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.design-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.author-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--brand-pink);
  color: var(--brand-white);
  font-weight: 700;
}

.design-author > div {
  display: flex;
  flex-direction: column;
}

.design-author > div span {
  color: var(--brand-plum-muted);
  font-size: 0.72rem;
}

.design-author > div strong {
  font-size: 0.95rem;
}

.design-likes {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-pink-soft);
  color: var(--brand-plum);
  font-size: 0.76rem;
  font-weight: 700;
}

.design-description {
  max-width: 760px;
  color: var(--brand-plum-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.design-description p {
  margin-bottom: 14px;
}

.design-description p:last-child {
  margin-bottom: 0;
}

.design-comments {
  padding: 38px 8px 0;
}

.comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.comments-heading .eyebrow {
  margin-bottom: 6px;
}

.comments-heading h2 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}

.comments-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pink-soft);
  color: var(--brand-plum);
  font-size: 0.8rem;
  font-weight: 700;
}

.comments-list {
  display: grid;
  gap: 14px;
}

.comment-card {
  padding: 22px 24px;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  background: var(--brand-white);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.comment-author .author-avatar {
  width: 38px;
  height: 38px;
}

.comment-author > div {
  display: flex;
  flex-direction: column;
}

.comment-author strong {
  font-size: 0.88rem;
}

.comment-author time {
  color: var(--brand-plum-muted);
  font-size: 0.7rem;
}

.comment-card > p {
  color: var(--brand-plum-muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-empty,
.products-empty {
  padding: 28px;
  border-radius: 20px;
  background: var(--brand-pink-soft);
  color: var(--brand-plum-muted);
  text-align: center;
}

.design-products {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding: 24px 18px 18px;
  border: 1px solid rgba(250, 131, 173, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 50px rgba(79, 33, 59, 0.08);
  backdrop-filter: blur(12px);
}

.products-heading {
  position: relative;
  padding: 0 6px 18px;
}

.products-heading .eyebrow {
  margin-bottom: 6px;
}

.products-heading h2 {
  padding-right: 32px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.products-heading > span {
  position: absolute;
  right: 6px;
  bottom: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pink);
  color: var(--brand-white);
  font-size: 0.72rem;
  font-weight: 700;
}

.products-rail {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  padding: 2px 6px 2px 2px;
  overscroll-behavior: contain;
  scrollbar-color: var(--brand-pink) var(--brand-pink-soft);
  scrollbar-width: thin;
}

.product-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  background: var(--brand-white);
  color: var(--brand-plum);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: var(--brand-pink);
  box-shadow: 0 12px 30px rgba(79, 33, 59, 0.09);
  transform: translateY(-2px);
}

.product-card-image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--brand-pink-soft);
}

.product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image .product-image-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.product-card-content {
  padding: 16px;
}

.product-card h3 {
  margin-bottom: 4px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.product-card-content > p {
  margin-bottom: 10px;
  color: var(--brand-plum-muted);
  font-size: 0.72rem;
}

.product-card-link {
  color: var(--brand-pink);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .design-layout {
    grid-template-columns: 1fr;
  }

  .design-products {
    position: static;
    padding: 24px 18px;
  }

  .products-rail {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 2px 2px 16px;
    scroll-snap-type: x proximity;
  }

  .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .product-card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  .catalog-intro {
    padding: 48px 0 36px;
  }

  .catalog-intro-mark {
    display: none;
  }

  .catalog-search {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .catalog-search-input {
    flex-basis: calc(100% - 122px);
  }

  .catalog-search-reset {
    width: 100%;
    padding: 4px 12px 8px;
    text-align: center;
  }

  .catalog-results-heading {
    align-items: start;
  }

  .catalog-actions {
    flex-direction: column;
    gap: 20px;
  }

  .design-page {
    padding-top: 22px;
    background: linear-gradient(to bottom, var(--brand-pink-soft) 0, var(--brand-pink-soft) 260px, var(--brand-white) 260px);
  }

  .design-hero-image {
    min-height: 260px;
    border-width: 5px;
    border-radius: 24px;
  }

  .design-info {
    padding: 32px 2px;
  }

  .design-comments {
    padding-right: 2px;
    padding-left: 2px;
  }

  .design-products {
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .catalog-search-submit {
    min-width: 96px;
  }

  .catalog-results-heading {
    display: block;
  }

  .catalog-count {
    display: inline-block;
    margin-top: 14px;
  }

  .catalog-pagination {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .pagination-page,
  .pagination-arrow {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .pagination-gap {
    display: none;
  }

  .design-hero-image {
    min-height: 220px;
    aspect-ratio: 1 / 1;
  }

  .design-author {
    flex-wrap: wrap;
  }

  .design-likes {
    margin-left: 58px;
  }

  .comment-card {
    padding: 18px;
  }

  .product-card {
    flex-basis: 230px;
  }
}

.design-card-image {
  aspect-ratio: 4 / 3;
}

.design-card-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.design-card-content:has(.design-card-meta:only-child) {
  padding-top: 18px;
}

.design-hero-image {
  display: block;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

.design-hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

.design-info h1:not(:last-child) {
  margin-bottom: 24px;
}

.product-card-content > p {
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-border);
}

.product-price > span {
  color: var(--brand-plum-muted);
  font-size: 0.72rem;
}

.blurred-price {
  color: var(--brand-plum);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  filter: blur(5px);
  user-select: none;
}

@media (max-width: 720px) {
  .design-hero-image {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .design-card-image {
    aspect-ratio: 1 / 1;
  }

  .design-hero-image {
    min-height: 0;
    aspect-ratio: auto;
  }
}

.design-card-title {
  color: var(--brand-plum);
  text-decoration: none;
}

.design-card-title:hover {
  color: var(--brand-pink);
}

.design-card-likes {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(79, 33, 59, 0.72);
  color: var(--brand-white);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.design-card-likes svg,
.author-stat-with-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.design-card-author {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--brand-plum-muted);
  font-weight: 600;
  text-decoration: none;
}

.design-card-author > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-card-author:hover {
  color: var(--brand-pink);
}

.design-card-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.design-card-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--brand-pink);
  color: var(--brand-white);
  font-size: 0.72rem;
  font-weight: 700;
}

.design-card-image .design-card-placeholder {
  padding: 48px;
  object-fit: contain;
}

.design-author {
  color: var(--brand-plum);
  text-decoration: none;
}

.design-author strong {
  transition: color 0.2s ease;
}

.design-author:hover strong {
  color: var(--brand-pink);
}

.author-hero {
  padding: 32px 0 0;
}

.author-profile {
  position: relative;
  overflow: hidden;
  padding: 40px 48px 44px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 255, 255, 0.35), transparent 42%),
    var(--brand-pink);
  box-shadow: 0 24px 60px rgba(250, 131, 173, 0.2);
  isolation: isolate;
}

.author-profile::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 64px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.author-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--brand-plum);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.author-back:hover {
  background: var(--brand-white);
}

.author-profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.author-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 28px;
}

.author-profile-avatar {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border: 7px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(79, 33, 59, 0.16);
}

.author-profile-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--brand-plum);
  color: var(--brand-white);
  font-size: 4rem;
  font-weight: 700;
}

.author-identity .eyebrow {
  margin-bottom: 8px;
  color: var(--brand-white);
}

.author-identity h1 {
  overflow-wrap: anywhere;
  color: var(--brand-plum);
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.author-site {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-plum);
  font-size: 0.85rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  padding-left: 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.author-stat {
  display: flex;
  flex-direction: column;
}

.author-stat-value {
  color: var(--brand-plum);
  font-size: 2.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.author-stat-with-icon {
  display: flex;
  align-items: center;
  gap: 9px;
}

.author-stat-with-icon svg {
  width: 24px;
  height: 24px;
}

.author-stat-label {
  margin-top: 5px;
  color: rgba(79, 33, 59, 0.76);
  font-size: 0.82rem;
  font-weight: 600;
}

.author-description {
  max-width: 760px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(79, 33, 59, 0.82);
  font-size: 1rem;
}

.author-description p {
  margin-bottom: 12px;
}

.author-description p:last-child {
  margin-bottom: 0;
}

.author-works {
  padding: 72px 0 88px;
}

@media (max-width: 900px) {
  .author-profile-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .author-stats {
    padding-top: 30px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .author-hero {
    padding-top: 16px;
  }

  .author-profile {
    padding: 24px 22px 28px;
    border-radius: 28px;
  }

  .author-back {
    margin-bottom: 28px;
  }

  .author-identity {
    gap: 18px;
  }

  .author-profile-avatar {
    width: 104px;
    height: 104px;
    border-width: 5px;
  }

  .author-profile-avatar-fallback {
    font-size: 2.8rem;
  }

  .author-identity h1 {
    font-size: 1.8rem;
  }

  .author-stats {
    gap: 22px;
  }

  .author-stat-value {
    font-size: 2rem;
  }

  .author-works {
    padding: 56px 0;
  }

  .author-works .section-heading {
    margin-bottom: 26px;
  }

  .author-works .section-description {
    display: none;
  }

  .author-works .designs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .author-works .design-card {
    border-radius: 18px;
  }

  .author-works .design-card-content {
    padding: 13px 12px 15px;
  }

  .author-works .design-card h3 {
    margin-bottom: 8px;
    font-size: 0.88rem;
  }

  .author-works .design-card-author {
    gap: 6px;
    font-size: 0.68rem;
  }

  .author-works .design-card-avatar {
    width: 22px;
    height: 22px;
  }

  .author-works .featured-badge {
    display: none;
  }

  .author-works .design-card-likes {
    top: 10px;
    right: 10px;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .author-works .design-card-open {
    display: none;
  }
}

/* Keep account links accessible when the compact header hides catalog links. */
.home-header-content .header-nav { flex-wrap: wrap; justify-content: flex-end; }
.home-header-content .header-auth-link { display: inline-flex; margin-right: 0; }
@media (max-width: 720px) {
  .home-header-content { flex-wrap: nowrap; gap: 10px; }
  .home-header-content .header-nav { width: auto; min-width: 0; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; gap: 10px; }
  .home-header-content .header-auth-link { font-size: .85rem; }
}

/* The Rails header stays visible; Flutter owns scrolling inside the frame. */
.webapp-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.webapp-page > .header { position: relative; top: 0; flex-shrink: 0; }
.webapp-content { flex: 1; min-height: 0; display: flex; }
.webapp-frame { display: block; width: 100%; height: 100%; border: 0; flex: 1; background: var(--brand-white); }

.profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.profile-tab { padding: 10px 18px; border: 1px solid var(--brand-border); border-radius: 24px; color: var(--brand-plum); text-decoration: none; }
.profile-tab.active { background: var(--brand-plum); color: white; }
.profile-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; }

.owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.owner-actions form { margin: 0; }
.owner-actions .download-btn-outline { display: inline-flex; }
.owner-actions button, .owner-actions input { font: inherit; cursor: pointer; }
.owner-like { padding: 10px 18px; border: 1px solid var(--brand-border); border-radius: 24px; color: var(--brand-plum); background: white; }
.owner-estimate-menu > div { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--brand-border); border-radius: 16px; background: white; }
.owner-estimate-menu button { border: 0; background: transparent; }
.owner-description-edit, .owner-comment-form { padding: 20px; margin: 16px 0; border: 1px solid var(--brand-border); border-radius: 18px; background: var(--brand-pink-soft); }
.owner-description-edit summary { cursor: pointer; font-weight: 600; }
.owner-description-edit form, .owner-comment-form { display: grid; gap: 12px; }
.owner-description-edit input[type=text], .owner-description-edit textarea, .owner-comment-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--brand-border); border-radius: 12px; font: inherit; }
.owner-gallery-slide { margin: 0; }
.owner-gallery-slide[hidden] { display: none !important; }
.owner-zoom { display: block; width: 100%; border: 0; background: var(--brand-pink-soft); border-radius: 24px; overflow: hidden; cursor: zoom-in; }
.owner-zoom img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.owner-gallery-slide figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; }
.owner-gallery button:not(.owner-zoom) { cursor: pointer; padding: 8px 12px; border: 1px solid var(--brand-border); border-radius: 12px; color: var(--brand-plum); background: white; font: inherit; }
.owner-gallery-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.owner-gallery-controls button[aria-pressed=true] { background: var(--brand-plum); color: white; }
.owner-image-dialog { margin: auto; padding: 16px; width: min(95vw, 1400px); max-height: 95vh; border: 0; border-radius: 20px; }
.owner-image-dialog::backdrop { background: #000b; }
.owner-image-dialog img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.owner-image-dialog button { float: right; }
.owner-estimate-page { padding-top: 32px; padding-bottom: 40px; overflow-x: auto; }
.owner-estimate-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.owner-estimate-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.owner-estimate-table th, .owner-estimate-table td { padding: 12px; border: 1px solid var(--brand-border); text-align: left; }
@media print {
  body:has(.owner-estimate-page) > .header, body:has(.owner-estimate-page) > .flash-stack, .owner-estimate-toolbar { display: none !important; }
  .owner-estimate-page { width: 100%; padding: 0; overflow: visible; }
  .owner-estimate-table { font-size: 10pt; }
  .owner-estimate-table tr { break-inside: avoid; }
}

/* Public sign-in and email registration: independent of admin/Bootstrap forms. */
body.public-auth { background: linear-gradient(180deg, #fff 0%, #fff7fa 100%); }
.public-auth-page { display: flex; justify-content: center; padding: 48px 20px 64px; }
.public-auth-card { width: 100%; max-width: 440px; padding: 32px; background: var(--brand-white); color: var(--brand-plum); border: 1px solid var(--brand-border); border-radius: 28px; box-shadow: var(--brand-shadow); }
.public-auth-heading { text-align: center; margin-bottom: 24px; }
.public-auth-eyebrow { margin: 0 0 12px; color: var(--brand-plum-muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.public-auth-heading h1 { margin: 0 0 10px; color: var(--brand-plum); font: inherit; font-size: 28px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.public-auth-heading > p:last-child { margin: 0; color: var(--brand-plum-muted); font-size: 14px; line-height: 1.5; }
.public-auth-form { display: grid; gap: 16px; }
.public-auth-field { display: grid; gap: 7px; min-width: 0; }
.public-auth-field label { color: var(--brand-plum); font-size: 13px; line-height: 1.4; font-weight: 600; }
.public-auth-field input { width: 100%; min-width: 0; height: 48px; padding: 12px 14px; border: 1px solid var(--brand-border); border-radius: 12px; background: #fff; color: var(--brand-plum); font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.public-auth-field input::placeholder { color: #a58e9a; }
.public-auth-field input:focus { outline: none; border-color: var(--brand-pink); box-shadow: 0 0 0 3px var(--brand-pink-soft); }
.public-auth-field small, .public-auth-note { color: var(--brand-plum-muted); font-size: 12px; line-height: 1.5; }
.public-auth-note { margin: 0; }
.public-auth-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.public-auth-checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.public-auth-checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-plum); }
.public-auth-card a { color: var(--brand-plum); text-decoration: none; text-underline-offset: 3px; font-weight: 600; }
.public-auth-card a:hover { color: #8a3b64; text-decoration: underline; }
.public-auth-card a:focus-visible, .public-auth-submit:focus-visible, .social-login-icon:focus-visible { outline: 3px solid var(--brand-pink); outline-offset: 4px; }
.public-auth-submit { width: 100%; min-height: 48px; border: 0; border-radius: 999px; padding: 12px 20px; background: var(--brand-pink); color: var(--brand-white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.public-auth-submit:hover { background: #ed6d9b; transform: translateY(-1px); }
.public-auth-links { margin-top: 22px; text-align: center; color: var(--brand-plum-muted); font-size: 13px; line-height: 1.6; }
.public-auth-links p { margin: 0 0 12px; }
.public-auth-links .public-auth-secondary-link { font-size: 12px; font-weight: 400; color: var(--brand-plum-muted); }
.public-auth-social .public-auth-note { text-align: center; margin-top: 12px; }
.public-auth-status { margin: 12px 0 0; color: #a42850; font-size: 13px; line-height: 1.5; }
.public-auth-status:empty { display: none; }
.public-auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--brand-plum-muted); font-size: 12px; }
.public-auth-divider::before, .public-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--brand-border); }
.social-login-icons { display: flex; justify-content: center; gap: 14px; }
.social-login-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; padding: 12px; border: 1px solid var(--brand-border); border-radius: 50%; background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.social-login-icon img { width: 28px; height: 28px; object-fit: contain; }
.social-login-icon--apple { background: #000; border-color: #000; }
.social-login-icon--apple img { filter: invert(1); }
.social-login-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 14px var(--brand-border); }
.social-login-icon:disabled { opacity: .5; cursor: wait; transform: none; }
.public-auth-form .field_with_errors { display: contents; }
.public-auth-form .field_with_errors input { border-color: #a42850; }
.public-auth-form #error_explanation { padding: 12px; border-radius: 12px; background: var(--brand-pink-soft); font-size: 13px; }
.public-auth-form #error_explanation h2 { font-size: 15px; }
.public-auth-form #error_explanation ul { margin: 0; padding-left: 18px; }
@media (max-width: 480px) {
  .public-auth-page { padding: 24px 16px 40px; }
  .public-auth-card { padding: 24px 20px; border-radius: 22px; }
  .public-auth-heading h1 { font-size: 26px; }
  .social-login-icons { gap: 12px; }
  .social-login-icon { flex-basis: 48px; width: 48px; height: 48px; padding: 9px; }
}
