/* Unified Apple-inspired velvet header and footer across storefront, tailoring, and account routes. */
:root {
  --sc-nav-height: 68px;
  --sc-nav-bg: rgba(31, 17, 21, 0.90);
  --sc-nav-bg-solid: #1f1115;
  --sc-nav-border: rgba(247, 239, 221, 0.14);
  --sc-nav-ink: #fbf3e6;
  --sc-nav-muted: rgba(251, 243, 230, 0.72);
  --sc-nav-gold: #e6d2ae;
  --sc-footer-bg: #1c0f13;
  --sc-max: 1360px;
  --sc-gutter: clamp(16px, 4vw, 48px);
  --sc-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.sc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: calc(var(--sc-nav-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid var(--sc-nav-border);
  color: var(--sc-nav-ink);
  font-family: var(--sc-font);
  -webkit-font-smoothing: antialiased;
}

.sc-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sc-nav-bg);
  pointer-events: none;
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .sc-header::before {
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sc-header::before {
    background: var(--sc-nav-bg-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.sc-header-inner {
  max-width: var(--sc-max);
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--sc-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.sc-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  color: var(--sc-nav-ink);
  text-decoration: none;
}

.sc-brand img {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
}

.sc-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

.sc-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
  color: var(--sc-nav-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease;
}

.sc-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--sc-nav-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.sc-nav a:hover,
.sc-nav a:focus-visible,
.sc-nav a[aria-current="page"] {
  color: var(--sc-nav-ink);
}

.sc-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.sc-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.sc-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sc-nav-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.sc-register-link:hover {
  color: var(--sc-nav-ink);
  background: rgba(255, 248, 236, 0.08);
}

.sc-login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f5ead8;
  color: #2b181d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, transform 140ms ease;
}

.sc-login-pill:hover {
  background: #fff8ec;
}

.sc-login-pill:active {
  transform: scale(0.97);
}

.sc-account-wrap {
  position: relative;
}

.sc-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 210px;
  padding: 3px 12px 3px 4px;
  border: 1px solid rgba(251, 243, 230, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.08);
  color: var(--sc-nav-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sc-account-btn:hover,
.sc-account-btn[aria-expanded="true"] {
  background: rgba(255, 248, 236, 0.15);
  border-color: rgba(230, 210, 174, 0.5);
}

.sc-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6d2ae;
  color: #2b181d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.sc-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.sc-account-btn[aria-expanded="true"] .sc-chevron {
  transform: rotate(180deg);
}

.sc-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 268px;
  padding: 8px;
  border-radius: 18px;
  background: #fffaf4;
  color: #30252a;
  border: 1px solid rgba(96, 70, 77, 0.16);
  box-shadow: 0 20px 50px rgba(24, 11, 15, 0.24), 0 4px 12px rgba(24, 11, 15, 0.08);
  z-index: 120;
  isolation: isolate;
  transform-origin: top right;
  animation: sc-pop 160ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

@keyframes sc-pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.sc-dropdown-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(96, 70, 77, 0.12);
  margin-bottom: 6px;
}

.sc-dropdown-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #30252a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-dropdown-head small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #685b57;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-dropdown-quota {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eee3dc;
  color: #623241;
  font-size: 12px;
  font-weight: 550;
}

.sc-dropdown-list {
  display: grid;
  gap: 2px;
}

.sc-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #30252a;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.sc-dropdown-item:hover,
.sc-dropdown-item:focus-visible {
  background: #f2e8e1;
  color: #623241;
}

.sc-dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(96, 70, 77, 0.12);
}

.sc-dropdown-logout {
  color: #8f2d38;
}

.sc-dropdown-logout:hover,
.sc-dropdown-logout:focus-visible {
  background: #f8e9ea;
  color: #7c1f2c;
}

.sc-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 243, 230, 0.24);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.08);
  color: var(--sc-nav-ink);
  cursor: pointer;
}

.sc-mobile-drawer {
  display: none;
}

.sc-header :is(a, button):focus-visible,
.sc-footer :is(a, button):focus-visible {
  outline: 2px solid var(--sc-nav-gold);
  outline-offset: 2px;
}

/* Unified Footer */
.sc-footer {
  background: var(--sc-footer-bg);
  color: var(--sc-nav-ink);
  padding: clamp(36px, 5vw, 56px) 0 max(24px, env(safe-area-inset-bottom, 0px));
  font-family: var(--sc-font);
}

.sc-footer-inner {
  max-width: var(--sc-max);
  margin: 0 auto;
  padding-inline: var(--sc-gutter);
}

.sc-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(247, 239, 221, 0.14);
}

.sc-footer-brand {
  max-width: 340px;
}

.sc-footer-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.sc-footer-brand img {
  width: 184px;
  height: auto;
}

.sc-footer-brand p {
  margin: 10px 0 0;
  color: var(--sc-nav-muted);
  font-size: 14px;
  line-height: 1.7;
}

.sc-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}

.sc-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sc-nav-ink);
  font-size: 14px;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.sc-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sc-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  color: var(--sc-nav-muted);
  font-size: 13px;
}

.sc-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.sc-footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--sc-nav-gold);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .sc-brand img {
    width: 152px;
  }
  .sc-nav {
    gap: 16px;
  }
  .sc-nav a {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  :root {
    --sc-nav-height: 60px;
  }
  .sc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .sc-brand img {
    width: clamp(122px, 34vw, 152px);
  }
  .sc-nav,
  .sc-register-link {
    display: none;
  }
  .sc-actions {
    flex: none;
    gap: 8px;
  }
  .sc-login-pill {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
  .sc-account-btn {
    max-width: 136px;
    min-height: 36px;
    padding: 2px 10px 2px 3px;
  }
  .sc-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .sc-menu-toggle {
    display: inline-flex;
  }
  .sc-mobile-drawer[data-open="true"] {
    display: grid;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--sc-nav-height) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: 12px var(--sc-gutter) 18px;
    background: #221217;
    border-bottom: 1px solid var(--sc-nav-border);
    box-shadow: 0 24px 48px rgba(15, 7, 9, 0.45);
    animation: sc-drawer-in 180ms cubic-bezier(0.2, 0.78, 0.22, 1);
  }
  @keyframes sc-drawer-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  .sc-mobile-section-label {
    padding: 6px 12px 2px;
    color: var(--sc-nav-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .sc-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sc-nav-ink);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .sc-mobile-link[aria-current="page"] {
    background: rgba(230, 210, 174, 0.14);
    color: var(--sc-nav-gold);
    font-weight: 600;
  }
  .sc-mobile-divider {
    height: 1px;
    margin: 6px 8px;
    background: rgba(247, 239, 221, 0.12);
  }
  .sc-mobile-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 4px;
  }
  .sc-mobile-auth-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
  .sc-mobile-auth-login {
    background: #f5ead8;
    color: #2b181d;
  }
  .sc-mobile-auth-reg {
    border: 1px solid rgba(251, 243, 230, 0.25);
    color: var(--sc-nav-ink);
  }
  .sc-mobile-logout {
    color: #f4b7be;
  }
}

@media (max-width: 374px) {
  .sc-account-name {
    display: none;
  }
  .sc-account-btn {
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-nav a::after,
  .sc-chevron,
  .sc-dropdown,
  .sc-mobile-drawer[data-open="true"] {
    transition: none;
    animation: none;
  }
}

/* === Homepage Editorial Layout & Dialog Polish === */
:root {
  --mast-bar: 68px;
}

@media (max-width: 960px) {
  :root {
    --mast-bar: 60px;
  }
}

.salon-showcase {
  position: relative;
}

.salon-showcase .window-series {
  position: sticky;
  top: calc(var(--sc-nav-height) + env(safe-area-inset-top, 0px));
  z-index: 40;
  margin-bottom: 0;
  background: rgba(245, 238, 228, 0.92);
  border-bottom: 1px solid rgba(96, 70, 77, 0.14);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .salon-showcase .window-series {
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}

.salon-showcase .hero {
  --mast-height: 0px;
  height: clamp(580px, calc(100svh - var(--sc-nav-height) - var(--series-height, 56px)), 840px);
}

@media (max-width: 700px) and (orientation: portrait) {
  .salon-showcase .hero {
    --mast-height: 0px;
    height: clamp(560px, calc(90svh - var(--sc-nav-height) - var(--series-height, 54px)), 720px);
  }
  .salon-showcase .hero .hero-art {
    top: 0;
    height: clamp(370px, 52svh, 450px);
    width: 100%;
  }
  .salon-showcase .hero .hero-photo {
    object-position: 50% 34%;
  }
  .salon-showcase .hero[data-species="cat"] .hero-photo {
    object-position: 38% 42%;
  }
  .salon-showcase .hero .hero-shade,
  .salon-showcase .hero[data-look] .hero-shade {
    background: linear-gradient(
      0deg,
      var(--salon-deep) 0%,
      var(--salon-deep) 31%,
      rgba(36, 19, 24, 0.88) 40%,
      rgba(36, 19, 24, 0.32) 53%,
      transparent 66%
    );
    background: linear-gradient(
      0deg,
      var(--salon-deep) 0%,
      var(--salon-deep) 31%,
      color-mix(in srgb, var(--salon-deep) 88%, transparent) 40%,
      color-mix(in srgb, var(--salon-deep) 32%, transparent) 53%,
      transparent 66%
    );
  }
  .salon-showcase .hero .hero-body {
    height: 100%;
    align-items: end;
    padding: 20px var(--pad) 76px;
  }
}

/* Showcase cards refinement */
.collection .section-head {
  align-items: flex-end;
  margin-bottom: 32px;
}

.collection .section-aside p {
  font-size: 14px;
  color: var(--ft-muted);
}

.look-card {
  transition: transform 240ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.look-card .card-media {
  border-radius: 16px;
}

.collection-grid .card-media {
  aspect-ratio: 1 / 1;
}

.collection-grid.is-pair .card-media {
  aspect-ratio: 1.43;
}

.collection-grid[data-species="cat"] .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
}

.collection-grid[data-species="dog"] .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (max-width: 700px) {
  .collection-grid.is-pair .card-media {
    aspect-ratio: 1 / 1;
  }
}

.look-card .card-open {
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .look-card:hover {
    transform: translateY(-4px);
  }
  .look-card:hover .card-media img {
    transform: scale(1.03);
  }
  .look-card:hover .card-open {
    background: var(--ft-accent);
    border-color: var(--ft-accent);
    color: #fff9f1;
    transform: scale(1.06);
  }
}

.look-card .card-info small {
  color: var(--ft-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Three-step Couture Process band */
.atelier-steps {
  background: #ece3d8;
  border-top: 1px solid rgba(96, 70, 77, 0.10);
  border-bottom: 1px solid rgba(96, 70, 77, 0.10);
  padding: clamp(48px, 6vw, 84px) 0;
}

.atelier-steps-inner {
  max-width: var(--sc-max);
  margin: 0 auto;
  padding-inline: var(--sc-gutter);
}

.atelier-steps-head {
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.atelier-steps-head h2 {
  margin: 10px 0 0;
  font: 500 clamp(26px, 2.8vw, 42px)/1.25 var(--cn);
  color: var(--ft-ink);
}

.atelier-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.atelier-steps-list li {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.85);
  border: 1px solid rgba(96, 70, 77, 0.12);
}

.atelier-step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ft-accent);
  color: #fff9f1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.atelier-steps-list h3 {
  margin: 0 0 8px;
  font: 600 18px/1.35 var(--sc-font);
  color: var(--ft-ink);
}

.atelier-steps-list p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Fixed Semi-Custom section highlights */
.tailor-note .note-copy .eyebrow {
  margin-bottom: 10px;
}

.tailor-note .note-lead {
  margin: 10px 0 18px;
  color: var(--ft-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tailor-note .note-tabs {
  margin-top: 8px;
}

.service-highlights {
  list-style: none;
  margin: 18px 0 6px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.service-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ft-ink);
  line-height: 1.6;
}

.service-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ft-accent);
}

/* Bespoke Luxury Dark Velvet Stage */
.bespoke-invitation {
  display: block;
  background: #241318;
  color: #fbf3e6;
  padding: clamp(48px, 6vw, 88px) 0;
}

.bespoke-invitation > .bespoke-inner {
  max-width: var(--sc-max);
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--sc-gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.bespoke-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(247, 239, 221, 0.16);
  background: #1a0c10;
}

.bespoke-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 610px;
  object-fit: cover;
  object-position: 50% 30%;
}

.bespoke-invitation[data-species="cat"] .bespoke-media img {
  object-position: 45% 35%;
}

.bespoke-copy {
  min-width: 0;
  padding: 0;
}

.bespoke-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--sc-nav-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.bespoke-eyebrow span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.bespoke-copy h2 {
  margin: 0;
  font: 500 clamp(32px, 3.8vw, 56px)/1.2 var(--cn);
  color: #fff8ee;
}

.bespoke-lead {
  margin: 14px 0 24px;
  color: rgba(251, 243, 230, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.bespoke-pillars {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bespoke-pillars li {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.06);
  border: 1px solid rgba(247, 239, 221, 0.12);
}

.bespoke-pillars strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-nav-gold);
  margin-bottom: 3px;
}

.bespoke-pillars span {
  display: block;
  font-size: 13px;
  color: rgba(251, 243, 230, 0.78);
  line-height: 1.6;
}

.bespoke-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #f5ead8;
  color: #2b181d;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 140ms ease;
}

.bespoke-cta:hover {
  background: #fff9ef;
}

@media (max-width: 900px) {
  .atelier-steps-list {
    grid-template-columns: 1fr;
  }
  .bespoke-invitation {
    padding: 0 0 clamp(44px, 8vw, 64px);
  }
  .bespoke-invitation > .bespoke-inner {
    grid-template-columns: 1fr;
    padding-inline: 0;
    gap: 0;
  }
  .bespoke-media {
    border-radius: 0;
    border: 0;
    background: #241318;
  }
  .bespoke-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(36, 19, 24, 0) 0%,
      rgba(36, 19, 24, 0.45) 48%,
      rgba(36, 19, 24, 0.90) 82%,
      #241318 100%
    );
  }
  .bespoke-media img {
    height: clamp(380px, 50svh, 440px);
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 18%;
  }
  .bespoke-invitation[data-species="cat"] .bespoke-media img {
    object-position: 45% 35%;
  }
  .bespoke-copy {
    position: relative;
    z-index: 2;
    padding: 0 var(--sc-gutter);
    margin-top: -58px;
  }
  .bespoke-eyebrow,
  .bespoke-copy h2 {
    text-shadow: 0 2px 14px rgba(20, 8, 12, 0.55);
  }
  .bespoke-lead {
    margin: 12px 0 20px;
  }
  .bespoke-pillars {
    gap: 14px;
    margin-bottom: 24px;
  }
  .bespoke-pillars li {
    padding: 2px 0 2px 14px;
    border: 0;
    border-left: 2px solid rgba(230, 210, 174, 0.45);
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 760px) {
  .bespoke-cta {
    width: 100%;
  }
}

/* Solid opaque dialog guarantee */
dialog.dialog.ft-sheet[open] {
  opacity: 1 !important;
  background: var(--ft-surface, #fffaf4) !important;
  color: var(--ft-ink, #30252a) !important;
}

dialog.dialog.ft-sheet::backdrop {
  background: rgba(26, 14, 18, 0.72) !important;
  opacity: 1 !important;
}

/* === Account Two-Column Apple Layout === */
.account-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: calc(var(--sc-nav-height, 68px) + 24px);
  min-width: 0;
}

.account-profile-card {
  padding: 24px;
  border-radius: var(--ft-card-radius, 18px);
  background: var(--ft-surface, #fffaf4);
  border: 1px solid var(--ft-line, #60464d30);
}

.account-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ft-line, #60464d30);
}

.account-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ft-accent, #623241);
  color: #fffaf4;
  font-size: 19px;
  font-weight: 700;
}

.account-profile-head > div {
  min-width: 0;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-profile-head strong {
  font-size: 17px;
  font-weight: 650;
  color: var(--ft-ink, #30252a);
  overflow-wrap: anywhere;
}

.account-role-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ft-tint, #eee3dc);
  color: var(--ft-accent, #623241);
  font-size: 11px;
  font-weight: 600;
}

.account-profile-head small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ft-muted, #685b57);
  overflow-wrap: anywhere;
}

.account-meta-list {
  margin: 16px 0 8px;
  display: grid;
  gap: 10px;
}

.account-meta-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.account-meta-list dt {
  color: var(--ft-muted, #685b57);
}

.account-meta-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ft-ink, #30252a);
}

.account-quota-note {
  margin: 8px 0 0;
  line-height: 1.6;
}

.account-sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ft-line, #60464d30);
}

.account-sidebar-actions .btn,
.account-logout-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.account-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.account-card {
  padding: var(--ft-pad, 24px);
  border-radius: var(--ft-card-radius, 18px);
  background: var(--ft-surface, #fffaf4);
  border: 1px solid var(--ft-line, #60464d30);
}

.account-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.account-card > p.small {
  margin: 0 0 18px;
}

.account-nickname-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.account-nickname-form > label {
  flex: 1;
  min-width: 0;
}

.account-nickname-form > .btn {
  flex-shrink: 0;
  min-height: 48px;
}

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

.account-field-full {
  max-width: 420px;
}

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

.account-password-hint {
  margin: 0;
}

.account-card-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.account-card-actions .btn {
  min-height: 44px;
}

.account-card--danger {
  border-color: rgba(163, 50, 43, 0.22);
}

@media (max-width: 860px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .account-nickname-form {
    display: grid;
    align-items: stretch;
  }
  .account-nickname-form > .btn,
  .account-card-actions .btn {
    width: 100%;
  }
  .account-password-grid {
    grid-template-columns: 1fr;
  }
}
