/*
  Server-rendered implementation of the shadcn/ui visual language.
  The tokens and component anatomy mirror Button, Card, Badge, Input, Select,
  and Sheet-style surfaces without requiring a React client runtime.
*/
:root {
  --background: #fbfcfa;
  --foreground: #2f3e46;
  --card: #ffffff;
  --card-foreground: #2f3e46;
  --primary: #354f52;
  --primary-foreground: #f8faf6;
  --secondary: #dfe8da;
  --secondary-foreground: #354f52;
  --muted: #e7ece3;
  --muted-foreground: #52796f;
  /* Coastal green palette: pale foliage, sage, sea green, slate and deep blue-green. */
  --accent: #52796f;
  --accent-soft: #dbe8d7;
  --accent-inverse: #84a98c;
  --accent-border: #84a98c;
  --border: #b4c5b1;
  --input: #b4c5b1;
  --ring: #52796f;
  --radius: .8rem;
  --shadow-sm: 0 1px 2px rgba(24, 33, 30, .04), 0 1px 3px rgba(24, 33, 30, .04);
  --shadow-card: 0 12px 30px rgba(24, 33, 30, .07), 0 2px 7px rgba(24, 33, 30, .04);
  --shell-max: 1180px;
  --shell-gutter: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 5.1vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3 { font-size: 1.08rem; }

.shell { width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2))); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lucide-icon { display: block; width: 1em; height: 1em; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--lucide-icon) center / contain no-repeat; mask: var(--lucide-icon) center / contain no-repeat; }
.lucide-icon[data-lucide-icon="heart"] { --lucide-icon: url("/vendor/lucide/heart.svg"); }
.lucide-icon[data-lucide-icon="user-round"] { --lucide-icon: url("/vendor/lucide/user-round.svg"); }
.lucide-icon[data-lucide-icon="tag"] { --lucide-icon: url("/vendor/lucide/tag.svg"); }
.lucide-icon[data-lucide-icon="warehouse"] { --lucide-icon: url("/vendor/lucide/warehouse.svg"); }
.lucide-icon[data-lucide-icon="circle-plus"] { --lucide-icon: url("/vendor/lucide/circle-plus.svg"); }
.lucide-icon[data-lucide-icon="lock"] { --lucide-icon: url("/vendor/lucide/lock.svg"); }
.lucide-icon[data-lucide-icon="circle-alert"] { --lucide-icon: url("/vendor/lucide/circle-alert.svg"); }
.lucide-icon[data-lucide-icon="credit-card"] { --lucide-icon: url("/vendor/lucide/credit-card.svg"); }
.lucide-icon[data-lucide-icon="list"] { --lucide-icon: url("/vendor/lucide/list.svg"); }
.lucide-icon[data-lucide-icon="map"] { --lucide-icon: url("/vendor/lucide/map.svg"); }
.lucide-icon[data-lucide-icon="map-pin"] { --lucide-icon: url("/vendor/lucide/map-pin.svg"); }
.lucide-icon[data-lucide-icon="chevron-down"] { --lucide-icon: url("/vendor/lucide/chevron-down.svg"); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220, 226, 220, .82);
  background: rgba(251, 251, 250, .9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--primary); font-size: 1.55rem; font-weight: 780; letter-spacing: -.08em; }
.brand-mark { display: block; width: 1.6rem; height: 1.6rem; flex: 0 0 1.6rem; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; color: var(--muted-foreground); font-size: .9rem; font-weight: 600; }
.desktop-nav a, .footer-inner nav a { transition: color .18s ease; }
.desktop-nav a:hover, .footer-inner nav a:hover { color: var(--foreground); }
.header-create { min-height: 2.35rem; padding-inline: .8rem; font-size: .78rem; white-space: nowrap; }
.header-actions { display: flex; align-self: stretch; border-left: 1px solid var(--border); }
.icon-action { display: grid; width: 74px; place-items: center; align-content: center; gap: .25rem; border-right: 1px solid var(--border); color: var(--muted-foreground); font-size: .65rem; font-weight: 700; transition: background .18s ease, color .18s ease; }
.icon-action:hover { color: var(--primary); background: var(--secondary); }
.icon-action svg, .icon-action .lucide-icon { width: 1.24rem; height: 1.24rem; }
.favorite-notification-trigger { position: relative; border-top: 0; border-bottom: 0; border-left: 0; background: transparent; cursor: pointer; }
.notification-badge { position: absolute; top: .5rem; right: .78rem; display: grid; min-width: 1.05rem; height: 1.05rem; place-items: center; border: 2px solid var(--card); border-radius: 999px; background: var(--accent); color: #fff; font-size: .54rem; font-weight: 850; line-height: 1; }
.site-header--overlay .notification-badge { border-color: rgba(255,255,255,.24); background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(8, 18, 13, .28); }
.notification-panel { position: fixed; z-index: 90; top: 5.2rem; right: max(var(--shell-gutter), calc((100vw - var(--shell-max)) / 2)); width: min(390px, calc(100vw - (var(--shell-gutter) * 2))); overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) + .1rem); background: rgba(255,255,255,.98); box-shadow: 0 22px 62px rgba(18, 35, 27, .2); color: var(--foreground); backdrop-filter: blur(18px); }
.notification-panel[hidden] { display: none; }
.notification-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem; padding: 1rem 1rem .85rem; border-bottom: 1px solid var(--border); }
.notification-panel-heading .eyebrow { margin-bottom: .35rem; font-size: .6rem; }
.notification-panel-heading h2 { margin: 0; font-size: 1.15rem; }
.notification-panel-heading .plain-button { padding: .25rem; color: var(--accent); font-size: .68rem; font-weight: 760; }
.notification-list { max-height: min(380px, calc(100vh - 220px)); overflow-y: auto; }
.notification-item { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .7rem; align-items: center; min-height: 4.6rem; padding: .68rem 1rem; border-bottom: 1px solid var(--border); transition: background .16s ease; }
.notification-item--without-image { grid-template-columns: minmax(0, 1fr); }
.notification-item:hover { background: var(--secondary); }
.notification-item.is-unread { background: #f1fbfa; }
.notification-item.is-unread::before { position: absolute; top: 50%; left: .34rem; width: .32rem; height: .32rem; border-radius: 999px; background: var(--accent); content: ""; transform: translateY(-50%); }
.notification-item img { width: 3rem; height: 3rem; border-radius: .55rem; object-fit: cover; }
.notification-item-copy { display: grid; min-width: 0; gap: .08rem; }
.notification-item-copy strong, .notification-item-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy strong { font-size: .75rem; }
.notification-item-copy > span { color: var(--muted-foreground); font-size: .7rem; }
.notification-item-copy small { color: #8a948d; font-size: .62rem; font-weight: 650; }
.notification-empty { display: grid; min-height: 10.5rem; place-items: center; align-content: center; gap: .55rem; padding: 1rem; color: var(--muted-foreground); text-align: center; }
.notification-empty span { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.notification-empty p { margin: 0; max-width: 210px; font-size: .76rem; }
.notification-panel-body-section { padding: .65rem 1rem; border-bottom: 1px solid var(--border); background: #f7f9f7; }
.notification-panel-body-section > a { display: flex; min-height: 2.35rem; align-items: center; justify-content: center; border: 1px solid #b7c9ba; border-radius: calc(var(--radius) - .35rem); background: var(--card); color: var(--primary); font-size: .72rem; font-weight: 780; }
.notification-panel-body-section > a:hover { border-color: #89aaa0; background: #eff6f0; }
.mobile-favorites-trigger, .mobile-menu-trigger, .mobile-menu { display: none; }

/* The homepage header sits in the image instead of reserving a separate bar. */
.home-page .hero { min-height: 100svh; }
.site-header--overlay { position: absolute; right: 0; left: 0; border-bottom-color: rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(8, 18, 13, .36), transparent); backdrop-filter: none; }
.site-header--overlay .brand, .site-header--overlay .desktop-nav, .site-header--overlay .icon-action { color: #fff; }
.site-header--overlay .brand-mark { filter: brightness(0) invert(1); }
.site-header--overlay .desktop-nav a:hover, .site-header--overlay .icon-action:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-header--overlay .header-actions { border-left-color: rgba(255,255,255,.18); }
.site-header--overlay .icon-action { border-right-color: rgba(255,255,255,.18); }
.site-header--overlay .header-create { border-color: rgba(255,255,255,.28); background: rgba(21, 40, 30, .56); box-shadow: none; backdrop-filter: blur(10px); }
.site-header--overlay .header-create:hover { background: rgba(255,255,255,.15); }

.hero { position: relative; min-height: max(690px, 100svh); overflow: hidden; background: #32443c var(--hero-image) 50% 48% / cover no-repeat; color: white; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 28, 22, .76) 0%, rgba(20, 37, 29, .48) 53%, rgba(17, 29, 23, .19) 100%); }
.hero-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.eyebrow { margin-bottom: .8rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; }
.eyebrow.inverse { color: var(--accent-inverse); }
.hero h1 { max-width: 680px; margin-bottom: 1rem; font-weight: 700; }
.hero h1 em { color: var(--accent-inverse); font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 430px; margin-bottom: 1.6rem; color: rgba(255, 255, 255, .84); font-size: clamp(.98rem, 1.45vw, 1.1rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .button-primary { border-color: rgba(255,255,255,.46); background: rgba(53,79,82,.88); box-shadow: 0 7px 18px rgba(8,24,20,.2); backdrop-filter: blur(8px); }
.hero-actions .button-primary:hover { border-color: rgba(255,255,255,.72); background: #354f52; box-shadow: 0 9px 22px rgba(8,24,20,.28); }
.hero-stable-spotlight { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 2.6rem 0 1.15rem; background: linear-gradient(0deg, rgba(8, 25, 20, .68), transparent); }
.hero-stable-spotlight-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .48rem; }
.hero-stable-spotlight-heading .eyebrow { margin: 0; }
.hero-stable-spotlight-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .85rem; }
.hero-stable-spotlight-link { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.9); font-size: .73rem; font-weight: 760; white-space: nowrap; }
.hero-stable-spotlight-link:hover { color: var(--accent-inverse); text-decoration: underline; text-underline-offset: 3px; }
.hero-merchant-rail { display: grid; grid-auto-columns: minmax(228px, 272px); grid-auto-flow: column; gap: .65rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .18rem .06rem .45rem; scroll-padding-inline: .06rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-merchant-rail::-webkit-scrollbar { display: none; }
.merchant-card.hero-merchant-card { min-height: 76px; border-color: rgba(214, 248, 245, .3); background: linear-gradient(135deg, rgba(11, 40, 35, .72), rgba(21, 61, 55, .46)); color: #fff; box-shadow: 0 10px 28px rgba(5, 20, 15, .2); backdrop-filter: blur(14px) saturate(125%); }
.merchant-card.hero-merchant-card small { color: rgba(241, 255, 253, .74); }
.merchant-card.hero-merchant-card .merchant-arrow { color: var(--accent-inverse); }
.merchant-card.hero-merchant-card:hover { border-color: rgba(218, 252, 248, .72); background: linear-gradient(135deg, rgba(12, 47, 41, .78), rgba(28, 76, 69, .56)); box-shadow: 0 14px 32px rgba(5, 20, 15, .28); }
.preview-notice { border-bottom: 1px solid var(--accent-border); background: #effafa; color: #1d6569; font-size: .78rem; }
.preview-notice > div { padding-block: .65rem; }
.preview-notice code { border-radius: .2rem; background: rgba(25, 127, 131, .1); padding: .1rem .25rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.button { display: inline-flex; min-height: 2.6rem; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: calc(var(--radius) - .2rem); padding: .6rem 1rem; font-size: .9rem; font-weight: 700; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.button-primary:hover { background: #2f3e46; box-shadow: 0 7px 15px rgba(47, 62, 70, .22); }
.button-ghost { border-color: rgba(255, 255, 255, .38); color: white; background: rgba(255, 255, 255, .06); backdrop-filter: blur(5px); }
.button-ghost:hover { background: rgba(255, 255, 255, .16); }
.button-lg { min-height: 3.05rem; padding-inline: 1.25rem; }

.merchant-section { padding-bottom: clamp(2.5rem, 4vw, 3.75rem); border-bottom: 1px solid var(--border); background: #f3f5f2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading.compact { margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-description { max-width: 340px; margin: 0; color: var(--muted-foreground); font-size: .91rem; line-height: 1.65; }
.text-link, .back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-size: .88rem; font-weight: 750; white-space: nowrap; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.merchant-rail { display: grid; grid-auto-columns: minmax(250px, 300px); grid-auto-flow: column; gap: .8rem; overflow-x: auto; padding: .2rem .1rem .7rem; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.merchant-card { display: flex; min-height: 78px; align-items: center; gap: .85rem; padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); scroll-snap-align: start; transition: border .18s ease, transform .18s ease, box-shadow .18s ease; }
.merchant-card:hover { border-color: #bdcabf; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.merchant-card img { width: 3.5rem; height: 3.5rem; border-radius: calc(var(--radius) - .2rem); object-fit: cover; }
.merchant-card > span:nth-child(2) { display: grid; min-width: 0; gap: .08rem; }
.merchant-card strong { overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.merchant-card small { color: var(--muted-foreground); font-size: .73rem; }
.merchant-arrow { margin-left: auto; color: var(--accent); font-size: 1.1rem; }

/* Stutteri directory: the front-page rail is for discovery; this is the calm
   comparison view for the full community of profiles. */
.stable-directory-page { min-height: calc(100vh - 77px); background: #f7f9f6; }
.stable-directory-hero { padding-block: clamp(3.2rem, 8vw, 6.6rem); background: linear-gradient(90deg, rgba(10, 29, 25, .78) 0%, rgba(17, 45, 38, .62) 46%, rgba(17, 45, 38, .18) 100%), radial-gradient(circle at 84% 10%, rgba(119, 222, 218, .16), transparent 27rem), url("/images/stable-directory-hero.png") 50% 53% / cover; color: #fff; }
.stable-directory-hero-content { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.stable-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.stable-directory-heading .eyebrow { color: var(--accent-inverse); }
.stable-directory-heading h1 { max-width: 780px; margin: 0 0 1rem; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .99; }
.stable-directory-heading h1 em { color: var(--accent-inverse); font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.stable-directory-heading > div > p:not(.eyebrow) { max-width: 620px; margin: 0; color: rgba(255,255,255,.77); font-size: 1rem; line-height: 1.7; }
.stable-directory-heading .button { flex: 0 0 auto; }
.stable-directory-content { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem); }
.stable-directory-filters { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, .32fr) auto; gap: .65rem; margin-bottom: 1.25rem; padding: .65rem; }
.stable-directory-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 .9rem; color: var(--muted-foreground); font-size: .77rem; }
.stable-directory-results-heading p { margin: 0; font-weight: 710; }
.stable-directory-results-heading span { font-size: .7rem; }
.stable-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stable-directory-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.stable-directory-card:hover { border-color: #aec2b4; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.stable-directory-image { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 1; flex: 0 0 auto; overflow: hidden; background: var(--secondary); }
.stable-directory-image::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 28, 21, .45)); content: ""; }
.stable-directory-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.stable-directory-card:hover .stable-directory-image img { transform: scale(1.035); }
.stable-directory-region { position: absolute; z-index: 1; right: .72rem; bottom: .68rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .28rem .52rem; background: rgba(16, 45, 36, .66); color: #fff; font-size: .64rem; font-weight: 760; backdrop-filter: blur(8px); }
.favorite-button--stable-directory { top: .7rem; right: .7rem; }
.stable-directory-card-content { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 1.1rem; }
.stable-directory-kicker { display: flex; align-items: center; gap: .34rem; margin: 0 0 .42rem; color: #24787b; font-size: .62rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.stable-directory-kicker span { font-size: .75rem; }
.stable-directory-card h2 { margin: 0 0 .55rem; font-size: clamp(1.05rem, 1.8vw, 1.26rem); line-height: 1.2; }
.stable-directory-card h2 a:hover { color: var(--accent); }
.stable-directory-description { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted-foreground); font-size: .78rem; line-height: 1.58; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.stable-directory-card-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: .4rem; align-items: center; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .67rem; }
.stable-directory-card-footer strong { color: var(--foreground); font-size: .78rem; }
.stable-directory-card-footer a { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 999px; background: var(--accent-soft); color: #176b70; font-size: 1rem; }
.stable-directory-card-footer a:hover { background: var(--accent); color: #fff; }
.stable-directory-empty { margin-top: 1rem; }

.listing-section { padding-top: clamp(2rem, 3vw, 2.75rem); background: var(--background); }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.search-panel { display: grid; grid-template-columns: minmax(260px, 1.35fr) 2fr; gap: .9rem; margin-bottom: 2rem; padding: .75rem; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 1rem; width: 1.15rem; height: 1.15rem; color: var(--muted-foreground); pointer-events: none; }
.input, .select { width: 100%; height: 2.75rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - .25rem); outline: none; background: transparent; color: var(--foreground); transition: box-shadow .18s ease, border .18s ease; }
.input:focus, .select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(40, 127, 131, .18); }
.search-input { padding: .65rem 1rem .65rem 2.8rem; font-size: .85rem; font-weight: 500; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .55rem; }
.select-wrap { position: relative; }
.select { padding: .55rem 2rem .55rem .75rem; appearance: none; font-size: .85rem; }
.select-wrap::after { position: absolute; top: 50%; right: .8rem; color: var(--muted-foreground); content: "⌄"; font-size: .9rem; pointer-events: none; transform: translateY(-57%); }
.filter-reset { display: inline-flex; align-items: center; justify-content: center; padding-inline: .6rem; color: var(--muted-foreground); font-size: .82rem; font-weight: 650; }
.filter-reset:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.marketplace-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: -.3rem 0 1rem; }
.marketplace-results > [hidden] { display: none !important; }
.marketplace-view-toolbar .eyebrow { margin: 0 0 .32rem; }
.marketplace-view-copy { margin: 0; color: var(--muted-foreground); font-size: .78rem; }
.marketplace-view-toggle { display: inline-flex; flex: 0 0 auto; gap: .16rem; padding: .22rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - .1rem); background: var(--secondary); box-shadow: var(--shadow-sm); }
.marketplace-view-toggle button { display: inline-flex; min-height: 2.25rem; align-items: center; gap: .42rem; border: 0; border-radius: calc(var(--radius) - .32rem); padding: .45rem .68rem; background: transparent; color: var(--muted-foreground); font-size: .75rem; font-weight: 760; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.marketplace-view-toggle button:hover { color: var(--primary); }
.marketplace-view-toggle button.is-active { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(24, 33, 30, .12); }
.marketplace-view-toggle svg, .marketplace-view-toggle .lucide-icon { width: 1rem; height: 1rem; }
.marketplace-view-toggle button:focus-visible, .marketplace-map-close:focus-visible { outline: 3px solid rgba(40, 127, 131, .38); outline-offset: 2px; }
.marketplace-map-legend { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.35rem 0 .85rem; color: var(--muted-foreground); font-size: .68rem; font-weight: 700; }
.marketplace-map-legend[hidden] { display: none; }
.marketplace-map-legend > span { display: inline-flex; min-height: 1.65rem; align-items: center; gap: .34rem; padding: .25rem .5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.marketplace-map-legend .lucide-icon { width: .82rem; height: .82rem; color: var(--primary); }
.marketplace-map-legend .is-stutteri { border-color: var(--accent-border); background: #f1fbfa; color: #176b70; }
.marketplace-map-legend .is-approximate { border-style: dashed; }
.marketplace-map-legend .is-stutteri .lucide-icon { color: var(--accent); }
.marketplace-map-panel { position: relative; height: min(680px, 70vh); min-height: 480px; overflow: hidden; margin-top: .15rem; }
.marketplace-map-canvas { position: absolute; inset: 0; z-index: 1; background: #e7eee6; }
.marketplace-map-status { position: absolute; z-index: 4; top: .9rem; left: 50%; display: inline-flex; max-width: min(400px, calc(100% - 2rem)); align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); color: var(--muted-foreground); font-size: .73rem; font-weight: 650; text-align: center; transform: translateX(-50%); }
.marketplace-map-status .spinner { width: .85rem; height: .85rem; flex: 0 0 auto; }
.marketplace-map-status.is-error { border-color: #e4c1ae; background: #fff8f3; color: #8a4b2c; }
.marketplace-map-selection { position: absolute; z-index: 5; bottom: 1rem; left: 1rem; width: min(620px, calc(100% - 2rem)); padding: .75rem; box-shadow: 0 14px 36px rgba(24, 33, 30, .18); }
.marketplace-map-selection-header { display: flex; align-items: start; justify-content: space-between; gap: .8rem; padding: .1rem .18rem .6rem; }
.marketplace-map-selection-header .eyebrow { margin: 0 0 .18rem; font-size: .63rem; }
.marketplace-map-selection-title { margin: 0; color: var(--foreground); font-size: .82rem; font-weight: 760; }
.marketplace-map-close { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: calc(var(--radius) - .25rem); background: var(--card); color: var(--muted-foreground); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.marketplace-map-close:hover { background: var(--secondary); color: var(--primary); }
.marketplace-map-carousel { display: grid; grid-auto-columns: minmax(238px, 278px); grid-auto-flow: column; gap: .65rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .05rem .1rem .25rem; scroll-padding-inline: .1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.marketplace-map-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); min-height: 101px; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) - .18rem); background: var(--card); scroll-snap-align: start; transition: border .18s ease, box-shadow .18s ease, transform .18s ease; }
.marketplace-map-card:hover { border-color: #aebdaf; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.marketplace-map-card.is-stutteri { border-color: var(--accent-border); box-shadow: inset 3px 0 var(--accent); }
.marketplace-map-card > img { width: 100%; height: 100%; min-height: 101px; object-fit: cover; background: var(--muted); }
.marketplace-map-card-content { display: flex; min-width: 0; flex-direction: column; padding: .62rem .65rem; }
.marketplace-map-card-meta { overflow: hidden; color: var(--muted-foreground); font-size: .63rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-map-card-content > strong { display: -webkit-box; margin: .24rem 0 .5rem; overflow: hidden; color: var(--foreground); font-size: .77rem; line-height: 1.24; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.marketplace-map-card-footer { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; color: var(--foreground); font-size: .68rem; }
.marketplace-map-card-footer em { overflow: hidden; color: #176b70; font-size: .58rem; font-style: normal; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-map-pin-wrap { background: transparent; border: 0; }
.marketplace-map-pin { position: relative; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: var(--map-marker-background, var(--primary)); box-shadow: 0 2px 5px rgba(20, 35, 27, .2); color: #fff; }
.marketplace-map-pin.is-stutteri { box-shadow: 0 0 0 2px #26aaa9, 0 2px 5px rgba(20, 35, 27, .2); }
.marketplace-map-pin.is-approximate { border-style: dashed; }
.marketplace-map-pin .map-marker-icon { display: block; width: 13px; height: 13px; }
.marketplace-map-pin b { position: absolute; top: -7px; right: -9px; min-width: 16px; padding: 2px 3px; border: 1px solid white; border-radius: 8px; background: #354f52; color: white; font-size: 10px; line-height: 1; text-align: center; }
.marketplace-map-pin-wrap:focus-visible { outline: 3px solid #354f52; outline-offset: 4px; border-radius: 50%; }
.marketplace-map-legend .map-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--map-category-color, #526462); }
.marketplace-map-legend .map-legend-dot.is-stutteri { box-shadow: 0 0 0 2px #26aaa9; }
.marketplace-map-legend .map-zoom-hint { flex-basis: 100%; margin: .15rem 0 0; font-weight: 500; }
.marketplace-map-card-footer em { display: inline-flex; align-items: center; gap: .2rem; }
.marketplace-map-card-icon { width: .74rem; height: .74rem; flex: 0 0 auto; }
.marketplace-map-cluster { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; margin: 0 !important; border: 2px solid rgba(255,255,255,.95); border-radius: 999px; background: var(--primary); box-shadow: 0 2px 6px rgba(20, 35, 27, .2); color: #fff; text-align: center; transform: translate(-50%, -50%); }
.marketplace-map-cluster span { font-size: .72rem; font-weight: 850; line-height: 1; }
.marketplace-map-panel .leaflet-control-zoom { overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) - .15rem); box-shadow: var(--shadow-sm); }
.marketplace-map-panel .leaflet-control-zoom a { width: 31px; height: 31px; border: 0; border-bottom: 1px solid var(--border); background: var(--card); color: var(--primary); line-height: 29px; }
.marketplace-map-panel .leaflet-control-zoom a:last-child { border-bottom: 0; }
.marketplace-map-panel .leaflet-control-attribution { padding: 2px 4px; background: rgba(255,255,255,.8); color: #69736c; font-size: 9px; }

.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; transition: opacity .18s ease-out, transform .18s ease-out; }
.listing-grid.is-filtering { opacity: .46; transform: translateY(.2rem); }
.listing-grid.is-filter-results .listing-card,
.listing-grid.is-filter-results .empty-state { animation: listing-filter-enter .3s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--listing-enter-delay, 0ms); }
@keyframes listing-filter-enter { from { opacity: 0; transform: translateY(.55rem); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .listing-grid { transition: none; }
  .listing-grid.is-filter-results .listing-card,
  .listing-grid.is-filter-results .empty-state { animation: none; }
}
.listing-card { --listing-card-inset: 1rem; position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.listing-card:hover { border-color: #bec9c0; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.listing-card--boosted { border-color: #354f52; background: linear-gradient(145deg, #f8faf6, #dbe8d7); box-shadow: 0 12px 30px rgba(47, 62, 70, .18); }
.listing-image { position: relative; z-index: 1; width: 100%; min-height: 0; aspect-ratio: 1; flex: 0 0 auto; overflow: visible; background: var(--muted); }
.listing-image-link { display: block; width: 100%; height: 100%; overflow: hidden; }
.listing-image-link > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.listing-card:hover .listing-image-link > img:first-child { transform: scale(1.035); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .56rem; background: var(--secondary); color: var(--secondary-foreground); font-size: .68rem; font-weight: 760; line-height: 1; }
.category-badge { position: absolute; top: .7rem; left: .7rem; background: rgba(255,255,255,.94); backdrop-filter: blur(5px); }
.listing-boost-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; border-radius: 999px; padding: .3rem .56rem; background: #2f3e46; color: #f8faf6; font-size: .62rem; font-weight: 800; letter-spacing: .045em; line-height: 1; text-transform: uppercase; box-shadow: 0 3px 10px rgba(47, 62, 70, .3); }
.boost-page { padding-block: clamp(3rem, 8vw, 6rem); }
.boost-heading { max-width: 650px; margin: 2rem 0; }
.boost-heading h1 { margin: 0 0 .8rem; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .94; letter-spacing: -.06em; }
.boost-heading h1 em { color: #52796f; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.boost-heading > p:last-child { max-width: 560px; color: var(--muted-foreground); line-height: 1.65; }
.boost-checkout { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.25rem; }
.boost-checkout > img { width: 104px; height: 82px; border-radius: calc(var(--radius) - .25rem); object-fit: cover; }
.boost-checkout h2 { margin: .15rem 0; font-size: 1.18rem; }
.boost-checkout p { margin: .15rem 0 0; color: var(--muted-foreground); font-size: .8rem; }
.boost-price, .boost-active { display: grid; justify-items: end; gap: .2rem; text-align: right; }
.boost-price strong { font-size: 1.5rem; letter-spacing: -.05em; }
.boost-price span, .boost-active span { color: var(--muted-foreground); font-size: .7rem; }
.boost-active strong { color: #354f52; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.boost-checkout form { grid-column: 2 / -1; }
.boost-payment-actions { grid-column: 2 / -1; display: grid; gap: .8rem; }
.boost-payment-form { display: grid; gap: .7rem; }
.boost-consent { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted-foreground); font-size: .76rem; line-height: 1.45; }
.boost-consent input { width: 1rem; height: 1rem; margin-top: .12rem; accent-color: var(--primary); flex: 0 0 auto; }
.boost-consent a { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
.boost-development-note, .boost-payment-pending { grid-column: 2 / -1; margin: 0 !important; font-size: .72rem !important; }
@media (max-width: 640px) { .boost-checkout { grid-template-columns: 72px minmax(0, 1fr); gap: .85rem; } .boost-checkout > img { width: 72px; height: 62px; } .boost-price, .boost-active { grid-column: 1 / -1; justify-items: start; text-align: left; } .boost-payment-actions, .boost-checkout form, .boost-development-note, .boost-payment-pending { grid-column: 1 / -1; } .boost-checkout form .button { width: 100%; justify-content: center; } }
.merchant-avatar { position: absolute; z-index: 1; right: .7rem; bottom: -.8rem; width: 2.25rem; height: 2.25rem; border: 2px solid white; border-radius: 999px; object-fit: cover; box-shadow: var(--shadow-sm); }
.listing-stutteri-mark { position: absolute; z-index: 2; bottom: -.8rem; left: .7rem; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #354f52; color: #fff; box-shadow: var(--shadow-sm); }
.listing-stutteri-mark .lucide-icon { width: 1rem; height: 1rem; }
.favorite-button { position: absolute; z-index: 3; top: .62rem; right: .62rem; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgba(255,255,255,.68); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(18, 32, 24, .16); color: #375048; cursor: pointer; transition: transform .18s ease, background .18s ease, border .18s ease, color .18s ease; backdrop-filter: blur(9px); }
.favorite-button svg { width: 1.22rem; height: 1.22rem; }
.favorite-button:hover { border-color: #92c9c6; background: #f3fffe; color: #137478; transform: scale(1.06); }
.favorite-button:focus-visible { outline: 3px solid rgba(40, 127, 131, .42); outline-offset: 3px; }
.favorite-button.is-saved { border-color: #76bdbb; background: #dff6f4; color: #137478; }
.favorite-button.is-saved svg { fill: currentColor; }
.favorite-button:disabled { cursor: wait; opacity: .68; transform: none; }
.listing-card-content { display: flex; flex: 1; flex-direction: column; padding: var(--listing-card-inset); }
.listing-meta, .listing-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted-foreground); font-size: .7rem; }
.listing-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card h3 { display: -webkit-box; min-height: 2.4em; margin: .55rem 0 .7rem; overflow: hidden; font-size: .98rem; font-weight: 600; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.listing-card-footer { min-height: 1.65rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border); }
.listing-card-footer strong { color: var(--foreground); font-size: .84rem; }
.load-more { grid-column: 1 / -1; display: grid; min-height: 3.2rem; place-items: center; }
.load-more--checkpoint { gap: .65rem; min-height: 0; padding: 1.15rem 0 .35rem; color: var(--muted-foreground); text-align: center; }
.load-more--checkpoint p { margin: 0; font-size: .83rem; }
.load-more-button .spinner { display: none; width: 1rem; height: 1rem; border-width: 2px; }
.load-more--checkpoint.htmx-request .load-more-button > span:first-child,
.load-more--checkpoint[aria-busy="true"] .load-more-button > span:first-child { display: none; }
.load-more--checkpoint.htmx-request .load-more-button .spinner,
.load-more--checkpoint[aria-busy="true"] .load-more-button .spinner { display: block; }
.spinner { display: block; width: 1.25rem; height: 1.25rem; border: 2px solid #d2dad3; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { grid-column: 1 / -1; display: grid; min-height: 260px; place-items: center; align-content: center; border: 1px dashed #bdc8be; border-radius: var(--radius); color: var(--muted-foreground); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state h3 { margin: .7rem 0 .25rem; color: var(--foreground); }
.empty-state p { margin-bottom: 0; font-size: .9rem; }
.empty-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 999px; background: var(--secondary); color: var(--primary); font-size: 2rem; }

.payment-sample-page { padding-block: 2rem 5rem; }
.payment-sample-heading { max-width: 710px; margin: 2rem 0 2.2rem; }
.payment-sample-heading h1 { margin: .3rem 0 .9rem; font-size: clamp(2.7rem, 6.2vw, 5.25rem); line-height: .95; letter-spacing: -.055em; }
.payment-sample-heading h1 em { color: #21888b; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.payment-sample-intro { max-width: 610px; margin: 0; color: var(--muted-foreground); line-height: 1.65; }
.payment-sample-benefits { margin-top: .85rem; font-size: .78rem; }
.payment-sample-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(270px, .72fr); gap: 1.25rem; align-items: start; }
.subscription-overview { overflow: hidden; margin: 0 0 1.25rem; padding: 0; border-color: #b9d9d6; background: linear-gradient(135deg, #f7fdfd, #edf9f8); }
.subscription-overview--grant { border-color: #c9d8cd; background: linear-gradient(135deg, #f8fbf7, #f0f7f0); }
.subscription-overview--problem { border-color: #edc5bc; background: linear-gradient(135deg, #fff9f7, #fff1ed); }
.subscription-overview--simulation { border-color: #dccd9c; background: linear-gradient(135deg, #fffdf5, #faf5e6); }
.subscription-overview-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.05rem; align-items: start; padding: 1.2rem 1.2rem 1rem; }
.subscription-overview-icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; flex: 0 0 auto; border-radius: .72rem; background: #d8f1ef; color: #167175; font-size: 1rem; font-weight: 800; }
.subscription-overview--grant .subscription-overview-icon { background: #e4f0e4; color: #44654a; }
.subscription-overview--problem .subscription-overview-icon { background: #fae1da; color: #a24737; }
.subscription-overview-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .35rem; }
.subscription-overview-copy .eyebrow, .subscription-management-card .eyebrow { margin: 0; }
.subscription-overview-badge { background: #dff5f3; color: #147477; }
.subscription-overview-badge--ending { background: #eef1ec; color: #586b5b; }
.subscription-overview-badge--problem { background: #fae1da; color: #9b4938; }
.subscription-overview-badge--simulation { background: #f7e9bc; color: #805d15; }
.subscription-overview-copy h2 { margin: 0 0 .45rem; font-size: 1.22rem; letter-spacing: -.025em; }
.subscription-overview-copy p:last-child, .subscription-management-card > p:last-child { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.62; }
.subscription-overview-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 0; border-top: 1px solid rgba(40, 114, 113, .16); background: rgba(255,255,255,.42); }
.subscription-overview--grant .subscription-overview-facts { border-top-color: rgba(68, 101, 74, .15); }
.subscription-overview--problem .subscription-overview-facts { border-top-color: rgba(162, 71, 55, .16); }
.subscription-overview--simulation .subscription-overview-facts { border-top-color: rgba(128, 93, 21, .16); }
.subscription-overview-fact { min-width: 0; padding: .82rem 1.2rem .9rem; }
.subscription-overview-fact + .subscription-overview-fact { border-left: 1px solid rgba(40, 114, 113, .16); }
.subscription-overview--grant .subscription-overview-fact + .subscription-overview-fact { border-left-color: rgba(68, 101, 74, .15); }
.subscription-overview--problem .subscription-overview-fact + .subscription-overview-fact { border-left-color: rgba(162, 71, 55, .16); }
.subscription-overview--simulation .subscription-overview-fact + .subscription-overview-fact { border-left-color: rgba(128, 93, 21, .16); }
.subscription-overview-fact dt { margin: 0 0 .25rem; color: var(--muted-foreground); font-size: .67rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.subscription-overview-fact dd { margin: 0; color: var(--foreground); font-size: .86rem; font-weight: 760; line-height: 1.35; }
.subscription-overview-fact small { display: block; margin-top: .12rem; color: var(--muted-foreground); font-size: .72rem; }
.subscription-overview-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid rgba(128, 93, 21, .16); }
.subscription-overview-actions form, .subscription-overview-actions p { margin: 0; }
.subscription-overview-actions p { color: var(--muted-foreground); font-size: .68rem; }
.subscription-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.subscription-management-card { padding: 1.1rem 1.2rem; }
.subscription-management-card--plan { grid-column: 1 / -1; }
.subscription-management-card h2 { margin: 0 0 .45rem; font-size: 1.08rem; letter-spacing: -.025em; }
.subscription-management-card .text-link { display: inline-flex; margin-top: .75rem; }
.subscription-management-card form { margin-top: .8rem; }
.payment-plan-picker--managed { display: grid; min-height: 260px; align-content: center; justify-items: start; padding: clamp(1.5rem, 5vw, 3rem); background: linear-gradient(135deg, #f7faf8, #f0f7f5); }
.payment-plan-picker--managed h2 { max-width: 500px; margin: 0 0 .65rem; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.04em; }
.payment-plan-picker--managed > p:not(.eyebrow) { max-width: 540px; margin: 0; color: var(--muted-foreground); line-height: 1.65; }
.payment-plan-picker--managed .button { margin-top: 1.15rem; }
.payment-plan-picker { display: grid; gap: .8rem; padding: clamp(1rem, 2.8vw, 1.7rem); }
.payment-plan-picker .editor-field-heading { margin-bottom: .35rem; }
.payment-plan-option { display: block; cursor: pointer; }
.payment-plan-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.payment-plan-option-body { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - .18rem); background: #fff; transition: border .16s ease, background .16s ease, box-shadow .16s ease; }
.payment-plan-option > input:checked + .payment-plan-option-body { border-color: #5bb0b0; background: #f0fbfa; box-shadow: 0 0 0 3px rgba(75, 170, 170, .13); }
.payment-plan-option > input:focus-visible + .payment-plan-option-body { outline: 3px solid rgba(40, 127, 131, .38); outline-offset: 3px; }
.payment-plan-option-body > span { display: grid; gap: .18rem; }
.payment-plan-option-body strong { color: var(--foreground); font-size: .93rem; }
.payment-plan-option-body small { color: var(--muted-foreground); font-size: .7rem; font-weight: 600; line-height: 1.4; }
.payment-plan-option-body > b { display: grid; flex: 0 0 auto; color: #176f72; font-size: 1rem; text-align: right; }
.payment-plan-option-body > b small { color: #5e8383; font-weight: 650; }
.payment-consents { display: grid; gap: .65rem; margin-top: .55rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.payment-consent { display: flex; align-items: start; gap: .55rem; color: #526359; font-size: .74rem; line-height: 1.45; cursor: pointer; }
.payment-consent input { width: 1rem; height: 1rem; flex: 0 0 auto; margin: .08rem 0 0; accent-color: #21888b; }
.payment-consent a { color: #176f72; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.payment-consents > span { margin: -.36rem 0 0 1.55rem; color: #a34430; font-size: .69rem; font-weight: 650; }
.payment-provider-actions { display: grid; gap: .65rem; margin-top: .15rem; }
.payment-provider-choice { display: grid; align-content: start; gap: .45rem; }
.payment-start-button { width: 100%; margin-top: .15rem; justify-content: center; background: #197e81; }
.payment-start-button:hover { background: #116a6d; }
.payment-provider-divider { display: flex; align-items: center; gap: .7rem; color: var(--muted-foreground); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.payment-provider-divider::before, .payment-provider-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.payment-start-button--pensopay { margin-top: .05rem; border-color: #c5ad89; background: #fffaf1; color: #704d20; }
.payment-start-button--pensopay:hover { border-color: #a8824e; background: #f8eddc; color: #573b18; }
.payment-provider-copy { margin: -.1rem 0 0; color: var(--muted-foreground); font-size: .68rem; line-height: 1.45; text-align: center; }
.payment-sample-aside { display: grid; gap: 1rem; position: sticky; top: 1.25rem; }
.payment-attempt-card, .payment-attempt-history { padding: 1.2rem; }
.payment-attempt-card h2 { margin: .75rem 0 .35rem; font-size: 1.28rem; }
.payment-attempt-card > p:not(.eyebrow) { margin: 0; color: var(--muted-foreground); font-size: .75rem; line-height: 1.5; }
.payment-attempt-detail { margin-top: .8rem !important; padding-top: .8rem; border-top: 1px solid var(--border); }
.payment-attempt-card form { margin-top: 1rem; }
.payment-state { display: inline-flex; margin-top: .2rem; border-radius: 999px; padding: .32rem .52rem; background: #eef4ef; color: #4d6653; font-size: .67rem; font-weight: 800; line-height: 1; }
.payment-state--active { background: #dff5f3; color: #147477; }
.payment-state--rejected, .payment-state--stopped, .payment-state--expired { background: #faebe7; color: #9b4938; }
.payment-attempt-card ol { display: grid; gap: .7rem; margin: .95rem 0 0; padding-left: 1.25rem; color: var(--muted-foreground); font-size: .76rem; line-height: 1.5; }
.payment-attempt-history h2 { margin: 0 0 .65rem; font-size: .94rem; }
.payment-attempt-history ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.payment-attempt-history a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem; border-radius: .4rem; color: #45584b; font-size: .73rem; }
.payment-attempt-history a:hover { background: var(--secondary); color: var(--primary); }
.payment-attempt-history span { color: var(--muted-foreground); font-size: .64rem; }

.detail-page { padding-block: 2.3rem 5.5rem; }
.back-link { margin-bottom: 1.6rem; color: var(--muted-foreground); }
.back-link--bottom { margin-top: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .82fr); gap: clamp(1.5rem, 3.2vw, 3.5rem); align-items: start; }
.detail-gallery { position: relative; border-radius: var(--radius); }
.detail-gallery-viewport { display: flex; overflow-x: auto; border-radius: inherit; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.detail-gallery-viewport::-webkit-scrollbar { display: none; }
.detail-gallery-slide { width: 100%; aspect-ratio: 1; flex: 0 0 100%; margin: 0; overflow: hidden; scroll-snap-align: start; }
.detail-gallery-slide img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.detail-gallery-slide--video { min-height: 200px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; background: #0c1c15; }
.detail-gallery-video { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.detail-gallery-controls { position: absolute; right: .75rem; bottom: .75rem; display: flex; align-items: center; gap: .25rem; border: 1px solid rgba(255,255,255,.26); border-radius: .6rem; padding: .25rem; background: rgba(12, 28, 21, .78); box-shadow: 0 8px 22px rgba(7, 18, 12, .25); backdrop-filter: blur(10px); }
.detail-gallery-button { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 0; border-radius: .42rem; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.detail-gallery-button:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.detail-gallery-button:disabled { opacity: .4; cursor: default; }
.detail-gallery-count { min-width: 2.75rem; color: rgba(255,255,255,.92); font-size: .7rem; font-weight: 760; text-align: center; }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; padding-block: 2rem 1.6rem; border-bottom: 1px solid var(--border); }
.detail-heading .badge { margin-bottom: .7rem; }
.detail-heading h1 { margin: 0; font-size: clamp(2rem, 3.9vw, 3.8rem); }
.detail-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .55rem; }
.favorite-button--detail { position: static; flex: 0 0 auto; border-color: var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.share-button { display: inline-grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s ease; }
.share-button:hover { background: var(--secondary); transform: translateY(-1px); }
.share-button.is-copied { background: var(--primary); color: #fff; }
.share-button svg { width: 1.15rem; height: 1.15rem; }
.detail-price { flex: 0 0 auto; padding: .6rem .75rem; border: 1px solid #b9c7bb; border-radius: calc(var(--radius) - .2rem); color: var(--primary); font-size: 1.05rem; white-space: nowrap; }
.detail-merchant { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: .7rem; transition: border .18s ease, box-shadow .18s ease; }
.detail-merchant:hover { border-color: #bdcabf; box-shadow: var(--shadow-card); }
.detail-merchant img { width: 3rem; height: 3rem; border-radius: calc(var(--radius) - .2rem); object-fit: cover; }
.detail-merchant > span:nth-child(2) { display: grid; gap: .05rem; }
.detail-merchant small { color: var(--muted-foreground); font-size: .72rem; }
.detail-merchant strong { font-size: .9rem; }
.detail-copy { max-width: 730px; margin-top: 2.8rem; }
.detail-copy h2, .fact-card h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.detail-copy p { color: #3d4a43; white-space: pre-line; line-height: 1.75; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: .85rem; }
.fact-card { padding: 1.2rem; }
.fact-card dl { margin: 0; }
.fact-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .72rem; border-top: 1px solid var(--border); font-size: .86rem; }
.fact-card dt { color: var(--muted-foreground); }
.fact-card dd { margin: 0; font-weight: 650; text-align: right; }
.contact-card { overflow: hidden; }
.contact-card summary { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; cursor: pointer; list-style: none; }
.contact-card summary::-webkit-details-marker { display: none; }
.contact-card summary small, .contact-card summary strong { display: block; }
.contact-card summary small { margin-bottom: .1rem; color: var(--muted-foreground); font-size: .72rem; }
.contact-card summary strong { font-size: .92rem; }
.contact-card[open] summary > span:last-child { transform: rotate(45deg); }
.contact-details { padding: 0 1.2rem 1.1rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .88rem; }
.contact-details p { margin: .65rem 0 0; }
.contact-details a { color: var(--primary); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.contact-address { display: grid; gap: .08rem; margin: .9rem 0 0; padding-top: .85rem; border-top: 1px solid var(--border); color: var(--foreground); font-style: normal; line-height: 1.5; }
.contact-location-note { margin-top: .85rem !important; color: var(--muted-foreground); font-size: .72rem; line-height: 1.5; }
.contact-map-card { margin: .9rem -1.2rem -1.1rem; overflow: hidden; border-top: 1px solid var(--border); background: var(--secondary); }
.contact-map { display: block; width: 100%; height: 230px; border: 0; background: var(--secondary); }
.contact-map--approximate { position: relative; }
.contact-map-area-overlay { position: absolute; z-index: 500; top: 50%; left: 50%; height: 72%; max-width: calc(100% - 68px); aspect-ratio: 1; translate: -50% -50%; border: 2px dashed #354f52; border-radius: 50%; background: rgba(132, 169, 140, .24); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset; pointer-events: none; }
.contact-map--approximate.is-unavailable { display: grid; place-items: center; padding: 1rem; color: var(--muted-foreground); font-size: .75rem; text-align: center; }
.contact-directions { display: flex; min-height: 2.8rem; align-items: center; justify-content: space-between; padding: .65rem 1.2rem; background: var(--card); text-decoration: none !important; }
.contact-directions:hover { background: var(--secondary); }
.location-precision-field small { max-width: 760px; line-height: 1.55; }

.site-footer { border-top: 1px solid var(--border); background: #f0f2ef; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem; min-height: 130px; }
.footer-inner p { margin: 0; color: var(--muted-foreground); font-size: .8rem; text-align: center; }
.footer-inner nav { display: flex; justify-content: flex-end; gap: 1rem; color: var(--muted-foreground); font-size: .77rem; font-weight: 620; }
.error-page { padding-block: 10rem; }
.about-page { padding-block: clamp(3rem, 7vw, 7rem); }
.about-heading { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.about-heading h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 7vw, 5.7rem); }
.about-heading > p:last-child { max-width: 650px; color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.about-grid .card, .about-contact { padding: clamp(1.4rem, 3vw, 2.4rem); }
.about-grid h2, .about-contact h2 { margin-bottom: .7rem; }
.about-grid p, .about-contact p { margin: 0; color: var(--muted-foreground); line-height: 1.7; }
.about-contact { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; }
.about-contact .button { flex: 0 0 auto; }
.error-page h1 { margin-bottom: 1rem; }
.error-page p:not(.eyebrow) { max-width: 480px; margin-bottom: 1.7rem; color: var(--muted-foreground); }
.favorites-page { padding-block: clamp(2.3rem, 6vw, 5.5rem); }
.favorites-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.favorites-heading h1 { margin-bottom: .7rem; }
.favorites-heading > div > p:not(.eyebrow) { max-width: 500px; margin-bottom: 0; color: var(--muted-foreground); }
.favorite-test { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin-bottom: 2.2rem; padding: 1.15rem 1.3rem; border-color: var(--accent-border); background: linear-gradient(115deg, color-mix(in srgb, var(--accent-soft) 88%, var(--card)), var(--card)); }
.favorite-test .eyebrow { margin-bottom: .35rem; }
.favorite-test h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.favorite-test p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.5; }
.favorite-test-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.favorite-test-actions .button { white-space: nowrap; }
.favorite-test-notice { margin: -1rem 0 1.3rem; padding: .72rem .9rem; border: 1px solid var(--accent-border); border-radius: calc(var(--radius) - .1rem); background: var(--accent-soft); color: #195d60; font-size: .82rem; font-weight: 650; }
.favorites-notifications { overflow: hidden; margin-bottom: clamp(2.8rem, 6vw, 4.7rem); }
.favorites-notifications .favorites-group-heading { margin: 0; padding: 1.15rem 1.25rem .9rem; border-bottom: 1px solid var(--border); }
.favorites-empty { margin-top: clamp(2.8rem, 6vw, 4.7rem); margin-bottom: 0; }
.favorites-empty[hidden] { display: none; }
.favorites-empty-copy { min-height: 12rem; }
.notification-history-list { display: grid; }
.favorites-notifications .notification-item:last-child { border-bottom: 0; }
.favorites-group + .favorites-group { margin-top: clamp(2.8rem, 6vw, 4.7rem); }
.favorites-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1rem; }
.favorites-group-heading .eyebrow { margin-bottom: .45rem; }
.favorites-group-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.favorites-group-heading > p { max-width: 260px; margin: 0; color: var(--muted-foreground); font-size: .78rem; text-align: right; }
.favorite-stable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.favorite-stable-card { position: relative; overflow: hidden; }
.favorite-stable-image { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--secondary); }
.favorite-stable-image img { width: 100%; height: 100%; object-fit: cover; }
.favorite-button--stable { top: .65rem; right: .65rem; }
.favorite-stable-content { padding: 1rem; }
.favorite-stable-content > p { margin-bottom: .35rem; color: var(--muted-foreground); font-size: .68rem; font-weight: 700; }
.favorite-stable-content h3 { margin: 0 0 .75rem; font-size: 1.02rem; }
.favorite-stable-content > span { display: inline-flex; border-radius: 999px; padding: .28rem .48rem; background: var(--accent-soft); color: #1b6669; font-size: .62rem; font-weight: 760; }
.favorite-auth-dialog { width: min(430px, calc(100vw - 1.5rem)); padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + .15rem); background: var(--card); color: var(--foreground); box-shadow: 0 26px 90px rgba(21, 31, 24, .34); }
.favorite-auth-dialog::backdrop { background: rgba(18, 28, 21, .62); backdrop-filter: blur(3px); }
.favorite-auth-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem 0; }
.favorite-dialog-mark { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 1.45rem; }
.favorite-dialog-close { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted-foreground); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.favorite-dialog-close:hover { background: var(--secondary); color: var(--foreground); }
.favorite-auth-dialog-copy { padding: .8rem 1.25rem .35rem; }
.favorite-auth-dialog-copy .eyebrow { margin-bottom: .55rem; }
.favorite-auth-dialog-copy h2 { margin: 0 0 .6rem; font-size: 1.55rem; }
.favorite-auth-dialog-copy > p:last-child { margin: 0; color: var(--muted-foreground); font-size: .88rem; line-height: 1.55; }
.favorite-auth-dialog-actions { display: flex; gap: .55rem; padding: 1.15rem 1.25rem 1.3rem; }
.favorite-auth-dialog-actions .button { flex: 1; }
.favorite-feedback { position: fixed; z-index: 120; bottom: 1.25rem; left: 50%; max-width: calc(100vw - 2rem); margin: 0; padding: .65rem .85rem; border: 1px solid #91ceca; border-radius: 999px; background: #e8fbf9; box-shadow: 0 10px 28px rgba(18, 39, 30, .16); color: #1f6568; font-size: .78rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, .6rem); transition: opacity .18s ease, transform .18s ease; }
.favorite-feedback.is-error { border-color: #e4c1ae; background: #fff8f3; color: #8a4b2c; }
.favorite-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }

.auth-page { display: grid; min-height: calc(100vh - 77px); grid-template-columns: minmax(0, 1fr) minmax(430px, .83fr); background: var(--background); }
.auth-art { position: relative; display: grid; min-height: 640px; align-items: end; overflow: hidden; background: url("/images/login-horse-hero.jpg") 52% 50% / cover; color: white; }
.auth-art-content { position: relative; z-index: 1; width: min(550px, calc(100% - 5rem)); margin: 0 auto clamp(4rem, 8vw, 7rem); }
.auth-art h1 { margin-bottom: 1.2rem; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.auth-art p:not(.eyebrow) { max-width: 440px; margin-bottom: 0; color: rgba(255, 255, 255, .8); font-size: 1.02rem; line-height: 1.7; }
.auth-content { display: grid; place-items: center; padding: 3rem 2rem; }
.auth-card { width: min(100%, 430px); padding: 2rem; box-shadow: var(--shadow-card); }
.auth-card > .back-link { margin-bottom: 2.5rem; }
.auth-card h1 { margin-bottom: .75rem; font-size: clamp(2rem, 3vw, 2.55rem); }
.auth-intro { margin-bottom: 1.75rem; color: var(--muted-foreground); font-size: .92rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-form label { display: grid; gap: .4rem; color: #39483f; font-size: .82rem; font-weight: 700; }
.auth-form .input { padding-inline: .8rem; }
.auth-submit { width: 100%; margin-top: .3rem; }
.auth-social-button + .auth-social-button { margin-top: .6rem; }
.button-outline { border-color: #bac6bc; background: var(--card); color: var(--primary); }
.button-outline:hover { border-color: #8ca08f; background: var(--secondary); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted-foreground); }
.button-quiet:hover { background: var(--secondary); color: var(--primary); }
.plain-button { width: fit-content; border: 0; padding: 0; background: transparent; color: var(--primary); font-size: .79rem; font-weight: 720; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plain-button:hover { color: #176b70; }
.plain-button:disabled, .button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin-block: 1.3rem; color: var(--muted-foreground); font-size: .72rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.google-mark { width: 1.05rem; height: 1.05rem; }
.facebook-mark { width: 1.05rem; height: 1.05rem; }
.auth-switch { margin: 1.5rem 0 0; color: var(--muted-foreground); font-size: .8rem; }
.plain-button.inline { display: inline; margin-left: .2rem; }
.auth-message { min-height: 1.3rem; margin: 1.25rem 0 0; color: #43654d; font-size: .8rem; line-height: 1.5; }
.auth-message.error { color: #a34430; }
.auth-card > .auth-message { margin-bottom: 1rem; padding: .75rem; border-radius: calc(var(--radius) - .25rem); background: #fff1ed; }
.auth-card code { border-radius: .2rem; background: rgba(163, 68, 48, .1); padding: .1rem .25rem; }
.account-page { padding-block: clamp(4rem, 11vw, 8rem); }
.account-page h1 { margin-bottom: 1rem; font-size: clamp(2.75rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.055em; }
.account-page h1 em { color: #21888b; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.account-copy { color: var(--muted-foreground); font-size: 1.05rem; }
.account-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 2.2rem; }
.account-action-card, .account-subscription-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.account-action-card:hover, .account-subscription-card:hover { border-color: var(--accent-border); box-shadow: 0 12px 30px rgba(20, 64, 61, .08); transform: translateY(-2px); }
.account-action-card > span:nth-child(2), .account-subscription-card > span:nth-child(2) { display: grid; min-width: 0; gap: .18rem; }
.account-action-card small, .account-subscription-card small { color: var(--muted-foreground); font-size: .64rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.account-action-card strong, .account-subscription-card strong { overflow: hidden; font-size: .94rem; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.account-action-card em, .account-subscription-card em { overflow: hidden; color: var(--muted-foreground); font-size: .72rem; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.account-action-card > b, .account-subscription-card > b { color: var(--accent); font-size: 1.05rem; }
.account-action-icon { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: .65rem; background: #e1f4f2; color: #177478; font-size: 1rem; font-weight: 800; }
.account-action-icon .lucide-icon { width: 1.25rem; height: 1.25rem; }
.account-action-card--inactive { border-color: #e5d6ad; background: linear-gradient(135deg, #fffdf7, #fbf7eb); }
.account-action-card--inactive .account-action-icon { background: #f6e9c9; color: #8a681e; }
.account-action-status { display: inline-flex; width: fit-content; align-items: center; gap: .28rem; margin-top: .3rem; border-radius: 999px; padding: .2rem .42rem; font-size: .61rem; font-weight: 780; letter-spacing: .025em; line-height: 1.2; }
.account-action-status .lucide-icon { width: .72rem; height: .72rem; }
.account-action-status--inactive { background: #f3e5bc; color: #745717; }
.account-action-status--problem { background: #f7ddd7; color: #8f382c; }
.account-stutteri-card strong, .account-stutteri-card em { overflow: visible; text-overflow: clip; white-space: normal; }
.account-subscription-card { margin-top: .9rem; border-color: #bcdedb; background: linear-gradient(135deg, #f5fcfb, #eef9f8); }
.account-subscription-card--problem { border-color: #ebc1b8; background: #fff7f4; }
.account-subscription-card--problem .account-action-icon { background: #f9dfd9; color: #a14838; }
.account-subscription-card--locked { border-color: #d9e1dc; background: #f8faf8; color: var(--foreground); cursor: default; }
.account-subscription-card--locked:hover { border-color: #d9e1dc; box-shadow: var(--shadow-sm); transform: none; }
.account-subscription-card--locked .account-action-icon { background: #edf1ee; color: #809087; }
.account-subscription-card--locked > b { color: #a1aea6; }
.account-subscription-card--locked strong, .account-subscription-card--locked em { overflow: visible; text-overflow: clip; white-space: normal; }
.account-subscription-benefit-link { display: inline-flex; width: fit-content; align-items: center; gap: .3rem; margin-top: .22rem; color: #176b70; font-size: .72rem; font-weight: 780; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.account-subscription-benefit-link:hover { color: var(--primary); }
.payment-local-simulation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .36fr) auto; gap: 1rem; align-items: end; margin-bottom: 1.25rem; padding: 1rem 1.1rem; border-color: #d9cea8; background: #fffdf4; }
.payment-local-simulation .eyebrow { margin-bottom: .35rem; color: #86713b; }
.payment-local-simulation strong { display: block; color: var(--primary); font-size: .9rem; }
.payment-local-simulation p:last-child { max-width: 530px; margin: .25rem 0 0; color: var(--muted-foreground); font-size: .73rem; line-height: 1.5; }
.payment-local-simulation label { display: grid; gap: .35rem; color: var(--muted-foreground); font-size: .67rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.payment-local-simulation .button { min-height: 2.75rem; white-space: nowrap; }

/* Stutteri upgrade: two decision-oriented cards keep the upgrade choice
   understandable before payment and activation are introduced. */
.stable-upgrade-hero { overflow: hidden; padding-block: clamp(5rem, 11vw, 9.5rem); background: linear-gradient(90deg, rgba(16,38,34,.32), rgba(20,45,38,.08) 54%, rgba(20,45,38,.14)), url("/images/stable-upgrade-community-hero.jpg") center / cover no-repeat; color: #fff; }
.stable-upgrade-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .4fr); gap: clamp(2.4rem, 9vw, 9rem); align-items: end; }
.stable-upgrade-hero .eyebrow { color: var(--accent-inverse); }
.stable-upgrade-hero h1 { max-width: 690px; margin-bottom: 1.1rem; font-size: clamp(3.15rem, 6.7vw, 6rem); line-height: .98; }
.stable-upgrade-hero h1 em { color: var(--accent-inverse); font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.stable-upgrade-hero > .shell > div > p:not(.eyebrow) { max-width: 580px; margin: 0; color: rgba(255,255,255,.8); font-size: 1.08rem; line-height: 1.7; }
.stable-upgrade-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.stable-plans-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.stable-plans-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.stable-plans-heading h2, .stable-upgrade-faq-grid h2 { max-width: 680px; margin: 0; font-size: clamp(2.25rem, 4.7vw, 4.5rem); }
.stable-plans-heading > p { max-width: 320px; margin: 0; color: var(--muted-foreground); font-size: .86rem; line-height: 1.65; }
.stable-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.stable-plan { display: flex; flex-direction: column; padding: clamp(1.35rem, 3vw, 2rem); border-color: #d9e0d9; box-shadow: none; }
.stable-plan--profile { position: relative; border-color: var(--accent-border); background: linear-gradient(145deg, #fdffff, #edf9f8); box-shadow: 0 16px 40px rgba(25, 127, 131, .1); }
.stable-plan-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.stable-plan-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #d3ded4; border-radius: calc(var(--radius) - .18rem); background: #f1f6f1; color: var(--primary); }
.stable-plan-icon .lucide-icon { width: 1.2rem; height: 1.2rem; }
.stable-plan--profile .stable-plan-icon { border-color: var(--accent-border); background: var(--accent-soft); color: #176b70; }
.stable-plan-status { border-radius: 999px; padding: .3rem .52rem; background: #edf2ed; color: #52685a; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stable-plan-status--recommended { background: #176b70; color: #fff; }
.stable-plan .eyebrow { margin-bottom: .55rem; color: #75837b; }
.stable-plan--profile .eyebrow { color: #176b70; }
.stable-plan h3 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.stable-plan-copy { min-height: 4.6em; margin: .65rem 0 1.35rem; color: var(--muted-foreground); font-size: .88rem; line-height: 1.62; }
.stable-plan-price { display: flex; align-items: baseline; gap: .45rem; margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.stable-plan-price strong { font-size: 2.25rem; letter-spacing: -.06em; }
.stable-plan-price span { color: var(--muted-foreground); font-size: .75rem; }
.stable-plan-benefits { display: grid; gap: .9rem; margin: 0 0 1.35rem; padding: 0; list-style: none; color: #3d4d43; font-size: .82rem; line-height: 1.55; }
.stable-plan-benefits li { position: relative; min-height: 1.15rem; padding-left: 1.7rem; }
.stable-plan-benefits li::before { position: absolute; top: .14rem; left: 0; display: grid; width: 1rem; height: 1rem; place-items: center; border-radius: 999px; background: #e8f0e8; color: #416449; content: "✓"; font-size: .64rem; font-weight: 800; }
.stable-plan--profile .stable-plan-benefits li::before { background: var(--accent-soft); color: #176b70; }
.stable-plan-note { margin: 0; padding: .8rem; border-radius: calc(var(--radius) - .28rem); background: #f4f7f4; color: #5c6b61; font-size: .71rem; line-height: 1.55; }
.stable-plan-action { width: 100%; margin-top: auto; justify-content: center; }
.stable-plan-note + .stable-plan-action { margin-top: .9rem; }
.stable-upgrade-faq-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.stable-upgrade-faq-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(2.4rem, 9vw, 10rem); align-items: start; }
.stable-upgrade-faq { display: grid; gap: .65rem; }
.stable-upgrade-faq details { overflow: hidden; padding: 0; box-shadow: none; }
.stable-upgrade-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.15rem; cursor: pointer; font-size: .88rem; font-weight: 760; list-style: none; }
.stable-upgrade-faq summary::-webkit-details-marker { display: none; }
.stable-upgrade-faq summary span { color: var(--accent); font-size: 1.2rem; font-weight: 400; }
.stable-upgrade-faq details[open] summary span { transform: rotate(45deg); }
.stable-upgrade-faq details p { margin: 0; padding: 0 1.15rem 1.1rem; color: var(--muted-foreground); font-size: .82rem; line-height: 1.65; }

/* Stutteri detail: a configurable mini-site, assembled from the same card,
   tab, badge, and button anatomy as the rest of the Razor design system. */
.stable-page { --stable-accent: #197f83; --stable-accent-soft: #e2f6f5; --stable-accent-contrast: #f9fefd; overflow: hidden; background: #fdfcfa; }
.stable-hero { position: relative; display: grid; min-height: min(670px, calc(100vh - 77px)); align-items: end; overflow: hidden; background: #253a30; color: #fff; }
.stable-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stable-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 23, 17, .28) 0%, rgba(11, 23, 17, .15) 34%, rgba(11, 23, 17, .82) 100%); }
.stable-hero-content { position: relative; z-index: 1; padding-block: 2.2rem clamp(3rem, 7vw, 6.8rem); }
.stable-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: auto; color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 720; }
.stable-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.stable-hero .eyebrow { margin-top: clamp(8rem, 22vh, 13.5rem); margin-bottom: .7rem; color: var(--accent-inverse); }
.stable-hero h1 { max-width: 850px; margin-bottom: 1rem; font-size: clamp(3.25rem, 7.1vw, 6.4rem); font-weight: 720; text-shadow: 0 2px 22px rgba(0,0,0,.18); }
.stable-hero-motto { max-width: 580px; margin-bottom: 1.7rem; color: rgba(255,255,255,.87); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.stable-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; color: rgba(255,255,255,.85); font-size: .78rem; }
.stable-pulse span { display: inline-flex; align-items: center; gap: .28rem; }
.stable-pulse span + span::before { width: .2rem; height: .2rem; margin-right: .46rem; border-radius: 999px; background: var(--stable-accent-soft); content: ""; }
.stable-pulse strong { color: #fff; font-size: .87rem; }
.stable-highlights { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stable-highlights li { border: 1px solid rgba(255,255,255,.34); border-radius: 999px; padding: .32rem .55rem; background: rgba(12, 34, 27, .38); color: rgba(255,255,255,.9); font-size: .67rem; font-weight: 760; backdrop-filter: blur(9px); }
.stable-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.15rem; }
.stable-hero-actions .button { min-height: 2.8rem; font-size: .76rem; }
.stable-follow-button { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .45rem; margin: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .55rem .86rem; background: rgba(13, 39, 31, .38); color: #fff; font-size: .76rem; font-weight: 760; cursor: pointer; backdrop-filter: blur(12px); transition: background .18s ease, border .18s ease, transform .18s ease; }
.stable-follow-button svg { width: 1.08rem; height: 1.08rem; }
.stable-follow-button:hover, .stable-follow-button.is-saved { border-color: var(--accent-inverse); background: rgba(25, 127, 131, .66); }
.stable-follow-button.is-saved svg { fill: currentColor; }
.stable-follow-button:focus-visible { outline: 3px solid var(--accent-inverse); outline-offset: 3px; }
.stable-preview-notice { border-bottom: 1px solid var(--accent-border); background: #effafa; color: #1d6569; font-size: .78rem; }
.stable-preview-notice > div { padding-block: .65rem; }
.stable-jump-nav { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.95); }
.stable-jump-nav > div { display: flex; gap: 1.5rem; min-height: 58px; align-items: center; }
.stable-jump-nav a { color: #637068; font-size: .77rem; font-weight: 760; }
.stable-jump-nav a:hover { color: var(--stable-accent); }
.stable-story-section { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 7vw, 9rem); padding-block: clamp(4.5rem, 9vw, 8rem); align-items: start; }
.stable-story-intro { position: sticky; top: 108px; }
.stable-story-intro .eyebrow { color: var(--stable-accent); }
.stable-story-intro h2 { max-width: 390px; margin-bottom: 0; font-size: clamp(2.25rem, 4.15vw, 4rem); }
.stable-story-copy { position: relative; padding: clamp(1.8rem, 4vw, 3.7rem); border-color: color-mix(in srgb, var(--stable-accent) 20%, var(--border)); background: var(--stable-accent-contrast); box-shadow: 0 18px 45px color-mix(in srgb, var(--stable-accent) 10%, transparent); }
.story-mark { display: block; height: .45em; color: var(--stable-accent); font-family: "Source Serif 4", Georgia, serif; font-size: 6.5rem; line-height: .75; }
.stable-story-copy p { max-width: 690px; margin: 1.2rem 0 2rem; color: #34453b; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.3rem, 2.15vw, 1.95rem); line-height: 1.55; }
.story-signature { color: var(--stable-accent); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stable-horses-section { padding-block: clamp(4rem, 8vw, 7.5rem); background: #243a32; color: #fff; }
.stable-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.stable-section-heading .eyebrow { color: var(--accent-inverse); }
.stable-section-heading h2 { max-width: 660px; margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
.stable-section-heading > p { max-width: 340px; margin: 0; color: rgba(255,255,255,.66); font-size: .91rem; line-height: 1.65; }
.stable-horse-browser { padding: .45rem; border: 1px solid rgba(255,255,255,.14); border-radius: calc(var(--radius) + .25rem); background: rgba(255,255,255,.06); }
.stable-tabs { display: inline-flex; gap: .2rem; padding: .26rem; border-radius: calc(var(--radius) - .12rem); background: rgba(10,25,18,.38); }
.stable-tab { min-height: 2.3rem; border: 0; border-radius: calc(var(--radius) - .28rem); padding: .48rem .8rem; background: transparent; color: rgba(255,255,255,.68); font-size: .78rem; font-weight: 750; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.stable-tab:hover { color: #fff; }
.stable-tab.is-active { background: #fff; color: #243a32; box-shadow: 0 1px 4px rgba(0,0,0,.19); }
.stable-horse-browser-heading { display: flex; justify-content: space-between; gap: 1rem; padding: 1.45rem .75rem 1rem; }
.stable-horse-browser-heading h3 { margin: 0 0 .2rem; font-size: 1rem; }
.stable-horse-browser-heading p { margin: 0; color: rgba(255,255,255,.62); font-size: .82rem; }
.stable-horse-count { height: fit-content; padding: .28rem .5rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.75); font-size: .7rem; font-weight: 740; white-space: nowrap; }
.stable-horse-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stable-horse-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: calc(var(--radius) - .05rem); background: #fff; color: var(--foreground); transition: transform .18s ease, box-shadow .18s ease; }
.stable-horse-card:hover { box-shadow: 0 14px 25px rgba(0,0,0,.19); transform: translateY(-3px); }
.stable-horse-image { position: relative; display: block; aspect-ratio: 1 / .86; overflow: hidden; background: var(--secondary); }
.stable-horse-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stable-horse-card:hover .stable-horse-image img { transform: scale(1.04); }
.stable-horse-pill { position: absolute; top: .6rem; left: .6rem; border-radius: 999px; padding: .28rem .45rem; background: rgba(255,255,255,.93); color: var(--stable-accent); font-size: .62rem; font-weight: 810; line-height: 1; }
.favorite-button--stable-horse { top: .52rem; right: .52rem; }
.stable-horse-content { padding: .9rem; }
.stable-horse-content > p { margin-bottom: .35rem; color: #718078; font-size: .67rem; font-weight: 680; }
.stable-horse-content h3 { display: -webkit-box; min-height: 2.45em; margin: 0 0 .95rem; overflow: hidden; font-size: .92rem; line-height: 1.26; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.stable-horse-content h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stable-horse-content > div { display: flex; justify-content: space-between; gap: .5rem; padding-top: .65rem; border-top: 1px solid var(--border); color: #748177; font-size: .68rem; }
.stable-horse-content strong { color: var(--stable-accent); font-size: .72rem; white-space: nowrap; }
.stable-horse-empty { display: grid; min-height: 275px; place-items: center; align-content: center; padding: 2rem; border: 1px dashed rgba(255,255,255,.28); border-radius: calc(var(--radius) - .08rem); color: rgba(255,255,255,.72); text-align: center; }
.stable-horse-empty > span { margin-bottom: .7rem; color: var(--accent-inverse); font-size: 1.8rem; }
.stable-horse-empty strong { color: #fff; font-size: 1rem; }
.stable-horse-empty p { margin: .35rem 0 0; font-size: .82rem; }
.stable-updates-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--stable-accent-contrast); }
.stable-updates-section .stable-section-heading .eyebrow { color: var(--stable-accent); }
.stable-updates-section .stable-section-heading > p { color: var(--muted-foreground); }
.stable-updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stable-update { padding: 1.2rem; border-color: color-mix(in srgb, var(--stable-accent) 21%, var(--border)); box-shadow: none; }
.stable-update .eyebrow { margin-bottom: .55rem; color: var(--stable-accent); }
.stable-update h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.stable-update > p:last-child { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }
.stable-visit-section { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(400px, 1.15fr); gap: clamp(2rem, 7vw, 8rem); padding-block: clamp(4.5rem, 9vw, 8rem); align-items: center; }
.stable-visit-copy .eyebrow { color: var(--stable-accent); }
.stable-visit-copy h2 { max-width: 480px; margin-bottom: 1rem; font-size: clamp(2.25rem, 4.15vw, 4rem); }
.stable-visit-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted-foreground); line-height: 1.72; }
.stable-contact-list { overflow: hidden; margin-top: 1.8rem; }
.stable-contact-list p { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .8rem; margin: 0; padding: .82rem 1rem; border-top: 1px solid var(--border); font-size: .83rem; }
.stable-contact-list p:first-child { border-top: 0; }
.stable-contact-list span { color: var(--muted-foreground); }
.stable-contact-list strong, .stable-contact-list a { min-width: 0; color: var(--foreground); font-weight: 700; overflow-wrap: anywhere; }
.stable-contact-list a:hover { color: var(--stable-accent); text-decoration: underline; text-underline-offset: 3px; }
.stable-map-card { overflow: hidden; border-color: color-mix(in srgb, var(--stable-accent) 22%, var(--border)); box-shadow: var(--shadow-card); }
.stable-map { display: block; width: 100%; height: 430px; border: 0; background: var(--secondary); }
.stable-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem; background: #fff; }
.stable-map-footer span { display: grid; gap: .1rem; min-width: 0; }
.stable-map-footer strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.stable-map-footer small { color: var(--muted-foreground); font-size: .72rem; }
.stable-map-footer .button-primary { flex: 0 0 auto; background: var(--stable-accent); }
.stable-map-footer .button-primary:hover { background: var(--primary); }
.stable-map-unavailable { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 2rem; color: var(--muted-foreground); text-align: center; }
.stable-map-unavailable > span { color: var(--stable-accent); font-size: 2rem; }
.stable-map-unavailable h3 { margin: .75rem 0 .2rem; color: var(--foreground); }
.stable-map-unavailable p { margin: 0; font-size: .85rem; }

.demo-login { display: grid; gap: 1rem; margin-bottom: 1.35rem; padding: 1.05rem; border-color: var(--accent-border); background: #f5fcfb; box-shadow: none; }
.demo-login .eyebrow { margin-bottom: .42rem; color: #176b70; }
.demo-login h2 { margin-bottom: .35rem; font-size: 1.05rem; }
.demo-login > div > p:last-child { margin: 0; color: #52686a; font-size: .78rem; line-height: 1.55; }
.demo-login-form { display: grid; gap: .65rem; }
.demo-login-form label { display: grid; gap: .33rem; color: #4d514e; font-size: .71rem; font-weight: 760; }
.demo-login-form .input { height: 2.45rem; padding-inline: .7rem; font-size: .82rem; }
.demo-login-form .button { width: 100%; margin-top: .15rem; }

/* Shadcn-inspired workspace: Cards, Badges, Buttons, and grouped fields make
   a task-heavy CRUD area feel like a focused studio rather than admin chrome. */
.listing-workspace, .editor-page { padding-block: clamp(2.2rem, 6vw, 5.7rem); }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: clamp(2.2rem, 5vw, 4.3rem); border-bottom: 1px solid var(--border); }
.workspace-heading h1, .editor-heading h1 { max-width: 760px; margin-bottom: .95rem; font-size: clamp(2.75rem, 5.7vw, 5.6rem); }
.workspace-heading h1 em, .editor-heading h1 em { color: var(--accent); font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.workspace-heading > div > p:not(.eyebrow), .editor-heading > p { max-width: 530px; margin-bottom: 0; color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.7; }
.workspace-metric { display: grid; min-width: 150px; gap: .12rem; padding: 1.1rem 1.2rem; border: 1px solid #cbd7cd; border-radius: var(--radius); background: #f2f6f2; color: var(--primary); }
.workspace-metric strong { font-size: 2.2rem; letter-spacing: -.06em; line-height: 1; }
.workspace-metric span { color: #657268; font-size: .72rem; font-weight: 740; }
.workspace-preview, .workspace-notice { margin-top: 1.2rem; padding: .8rem 1rem; border-radius: calc(var(--radius) - .22rem); font-size: .8rem; }
.workspace-preview { border: 1px solid var(--accent-border); background: #effafa; color: #1d6569; }
.workspace-notice { border: 1px solid #c5d9c8; background: #f2f8f1; color: #416449; }
.editor-prefill-notice { display: flex; align-items: start; gap: .55rem; margin: 0 0 1.2rem; padding: .7rem .8rem; border: 1px solid var(--accent-border); border-radius: calc(var(--radius) - .22rem); background: #f5fcfb; color: #285f63; font-size: .75rem; line-height: 1.45; }
.editor-prefill-notice > span:first-child { color: var(--accent); font-size: .95rem; }
.region-suggestion { display: flex; align-items: start; gap: .55rem; margin-top: .9rem; padding: .72rem .8rem; border: 1px solid #e5d6ad; border-radius: calc(var(--radius) - .22rem); background: #fffaf0; color: #765817; font-size: .75rem; line-height: 1.45; }
.region-suggestion[hidden] { display: none; }
.region-suggestion-icon { flex: 0 0 auto; color: #aa7a1f; font-size: 1rem; line-height: 1.2; }
.region-suggestion-message { display: block; font-weight: 700; }
.region-suggestion-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .62rem; }
.region-suggestion-actions .button { min-height: 2rem; padding: .35rem .6rem; font-size: .68rem; }
.workspace-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 3rem 0 1.2rem; }
.workspace-toolbar h2 { margin: 0 0 .28rem; font-size: 1.4rem; }
.workspace-toolbar p { margin: 0; color: var(--muted-foreground); font-size: .8rem; }
.workspace-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.owned-listings { display: grid; gap: .85rem; }
.owned-listing { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(265px, 315px); align-items: center; gap: 1.1rem; min-height: 150px; overflow: visible; padding: .85rem; border-color: #cad7cc; box-shadow: 0 2px 8px rgba(47, 62, 70, .045); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.owned-listing:hover { z-index: 2; border-color: #aebfb1; box-shadow: 0 10px 28px rgba(47, 62, 70, .09); transform: translateY(-1px); }
.owned-listing:has(.owned-listing-menu[open]) { z-index: 9; }
.owned-listing--boosted { border: 2px solid #354f52; background: linear-gradient(110deg, #fff 42%, #eef4ee); box-shadow: 0 10px 28px rgba(47, 62, 70, .12), inset 4px 0 0 #354f52; }
.owned-listing-image { width: 124px; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) - .3rem); background: var(--secondary); }
.owned-listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.owned-listing:hover .owned-listing-image img { transform: scale(1.035); }
.owned-listing-content { min-width: 0; }
.owned-listing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.owned-status { display: inline-flex; align-items: center; gap: .32rem; min-height: 1.45rem; padding: .2rem .48rem; border: 1px solid var(--border); border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); font-size: .62rem; font-weight: 800; line-height: 1; }
.owned-status::before { width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; content: ""; opacity: .65; }
.owned-status.is-active { border-color: #bcd3c0; background: #eaf4e9; color: #386343; }
.owned-listing-category { color: var(--muted-foreground); font-size: .67rem; font-weight: 720; }
.owned-listing-content h2 { display: -webkit-box; overflow: hidden; margin: .48rem 0 .35rem; font-size: 1.08rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.owned-listing-content h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.owned-listing-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; color: var(--muted-foreground); font-size: .77rem; }
.owned-listing-facts strong { color: var(--foreground); font-size: .82rem; }
.owned-listing-facts span::before { content: "·"; margin-right: .45rem; }
.owned-listing-updated { margin: .25rem 0 0; color: var(--muted-foreground); font-size: .68rem; }
.owned-listing-side { display: grid; align-self: stretch; gap: .62rem; }
.owned-promotion { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 72px; padding: .68rem .72rem; border: 1px solid #84a98c; border-radius: calc(var(--radius) - .22rem); background: linear-gradient(120deg, #eef6ed, #e1eee3); color: #2f4b40; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.owned-promotion:hover:not(:disabled) { border-color: #52796f; box-shadow: 0 7px 18px rgba(53, 79, 82, .13); transform: translateY(-1px); }
.owned-promotion:disabled { width: 100%; font: inherit; text-align: left; cursor: not-allowed; opacity: .65; }
.owned-promotion-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(82, 121, 111, .28); border-radius: calc(var(--radius) - .35rem); background: rgba(255, 255, 255, .72); color: #354f52; }
.owned-promotion-icon .lucide-icon { width: 1rem; height: 1rem; }
.owned-promotion-copy { display: grid; min-width: 0; gap: .14rem; }
.owned-promotion-copy strong { font-size: .75rem; line-height: 1.25; }
.owned-promotion-copy small { overflow: hidden; color: #5a7164; font-size: .61rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.owned-promotion-cta { padding: .28rem .45rem; border-radius: 999px; background: #354f52; color: #fff; font-size: .61rem; font-weight: 800; white-space: nowrap; }
.owned-promotion.is-active { border-color: #354f52; background: #354f52; color: #fff; }
.owned-promotion.is-active .owned-promotion-icon { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #cad2c5; }
.owned-promotion.is-active .owned-promotion-copy small { color: #cad2c5; }
.owned-promotion.is-active .owned-promotion-cta { background: #cad2c5; color: #2f3e46; }
.owned-listing-visibility { display: grid; align-content: center; min-height: 68px; gap: .18rem; padding: .65rem .75rem; border: 1px dashed #bdc9bf; border-radius: calc(var(--radius) - .22rem); background: #f6f7f5; color: #536158; }
.owned-listing-visibility strong { color: #354f52; font-size: .72rem; }
.owned-listing-visibility span { font-size: .64rem; line-height: 1.4; }
.owned-listing-actions { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.owned-listing-actions form { margin: 0; }
.owned-listing-actions .button { min-height: 2.2rem; padding: .45rem .7rem; font-size: .76rem; }
.owned-listing-menu { position: relative; }
.owned-listing-menu > summary { gap: .3rem; min-width: auto; list-style: none; cursor: pointer; }
.owned-listing-menu > summary::-webkit-details-marker { display: none; }
.owned-listing-menu > summary .lucide-icon { width: .85rem; height: .85rem; transition: transform .16s ease; }
.owned-listing-menu[open] > summary .lucide-icon { transform: rotate(180deg); }
.owned-listing-menu-content { position: absolute; z-index: 8; top: calc(100% + .45rem); right: 0; display: grid; width: max-content; min-width: 184px; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) - .18rem); background: var(--card); box-shadow: 0 14px 34px rgba(47, 62, 70, .18); }
.owned-listing-menu-content form + form { border-top: 1px solid var(--border); }
.owned-listing-menu-content button { width: 100%; border: 0; padding: .7rem .8rem; background: transparent; color: var(--foreground); font-size: .76rem; font-weight: 680; text-align: left; cursor: pointer; }
.owned-listing-menu-content button:hover { background: var(--secondary); }
.owned-listing-menu-content .owned-listing-menu-danger { color: #9c4237; }
.owned-listing-menu-content .owned-listing-menu-danger:hover { background: #fff2ef; }
.workspace-empty { display: grid; min-height: 340px; place-items: center; align-content: center; padding: 2rem; text-align: center; }
.workspace-empty > span { color: var(--accent); font-size: 2rem; }
.workspace-empty h2 { margin: .7rem 0 .35rem; font-size: 1.4rem; }
.workspace-empty p { max-width: 360px; margin-bottom: 1.25rem; color: var(--muted-foreground); font-size: .88rem; }

.editor-heading { max-width: 690px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.editor-heading .eyebrow { margin-bottom: .7rem; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: clamp(1.2rem, 4vw, 4rem); align-items: start; }
.editor-form { padding: clamp(1rem, 3vw, 2rem); }
.editor-field-group { padding-block: 1.6rem; border-top: 1px solid var(--border); }
.editor-field-group:first-child { padding-top: 0; border-top: 0; }
.editor-field-heading { margin-bottom: 1.1rem; }
.editor-field-heading h2 { margin: 0 0 .28rem; font-size: 1.12rem; }
.editor-field-heading p { margin: 0; color: var(--muted-foreground); font-size: .78rem; line-height: 1.55; }
.editor-section-title { margin: 0 0 1rem; font-size: 1.12rem; }
.editor-label { display: grid; gap: .4rem; margin-top: .9rem; color: #35443b; font-size: .78rem; font-weight: 760; line-height: 1.35; }
.editor-label:first-of-type { margin-top: 0; }
.editor-form .input, .editor-form .select, .editor-form .textarea { padding: .65rem .75rem; background: transparent; font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .85rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.editor-form .select { padding-right: 2.4rem; background-image: url("/vendor/lucide/chevron-down.svg"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; }
.editor-form .input::placeholder, .editor-form .textarea::placeholder { color: #718078; font-family: inherit; font-size: .78rem; font-weight: 450; opacity: 1; }
.editor-label small { color: var(--muted-foreground); font-size: .69rem; font-weight: 500; line-height: 1.5; }
.editor-label .field-validation-error { color: #983c2b; font-size: .69rem; font-weight: 620; line-height: 1.4; }
.editor-field-group[hidden], .editor-label[hidden] { display: none; }
.textarea { width: 100%; min-height: 135px; resize: vertical; border: 1px solid var(--input); border-radius: calc(var(--radius) - .25rem); color: var(--foreground); font: inherit; line-height: 1.55; outline: none; }
.textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(40, 127, 131, .18); }
.editor-field-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: .9rem; }
.editor-field-grid > .editor-label { margin-top: 0; }
.editor-field-group > .editor-label + .editor-field-grid { margin-top: .9rem; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.editor-aside { display: grid; gap: .8rem; position: sticky; top: 100px; }
.editor-tip { padding: 1.15rem; background: #f1f5f1; box-shadow: none; }
.editor-tip > span { color: var(--accent); font-size: 1.25rem; }
.editor-tip h2 { margin: .55rem 0 .35rem; font-size: 1rem; }
.editor-tip p { margin: 0; color: #617066; font-size: .78rem; line-height: 1.6; }
.editor-stable-upgrade { padding: 1.15rem; border-color: var(--accent-border); background: #f5fcfb; box-shadow: none; }
.editor-stable-upgrade .eyebrow { margin-bottom: .48rem; color: #176b70; }
.editor-stable-upgrade h2 { margin: 0 0 .4rem; font-size: 1.03rem; }
.editor-stable-upgrade > p:not(.eyebrow) { margin: 0; color: #48666a; font-size: .77rem; line-height: 1.6; }
.editor-stable-upgrade ul { display: grid; gap: .4rem; margin: .9rem 0 1rem; padding: 0; list-style: none; color: #3c676a; font-size: .7rem; line-height: 1.42; }
.editor-stable-upgrade li { position: relative; padding-left: 1.1rem; }
.editor-stable-upgrade li::before { position: absolute; top: .16rem; left: 0; width: .45rem; height: .45rem; border-radius: 999px; background: var(--accent); content: ""; }
.editor-stable-upgrade .button { width: 100%; justify-content: center; font-size: .73rem; }

/* The owner-facing stutteri form keeps the familiar listing-editor anatomy,
   but makes publication status and the review boundary unmistakable. */
.stable-editor-page { padding-block: clamp(2.2rem, 6vw, 5.7rem); }
.stable-editor-heading { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.stable-editor-heading .eyebrow { margin-bottom: .7rem; color: #176b70; }
.stable-editor-heading h1 { max-width: 760px; margin: 0 0 .95rem; font-size: clamp(2.75rem, 5.7vw, 5.6rem); }
.stable-editor-heading h1 em { color: var(--accent); font-family: "Source Serif 4", Georgia, serif; font-weight: 400; }
.stable-editor-heading > p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.7; }
.stable-management-overview { margin-bottom: 1.2rem; overflow: hidden; border-color: #c8d8cc; box-shadow: none; }
.stable-management-overview--problem { border-color: #e4b8ae; background: #fff9f7; }
.stable-setup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; }
.stable-setup-heading .eyebrow { margin: 0 0 .25rem; }
.stable-setup-heading h2 { margin: 0 0 .28rem; font-size: 1.18rem; }
.stable-setup-heading p:last-child { max-width: 680px; margin: 0; color: var(--muted-foreground); font-size: .77rem; line-height: 1.5; }
.stable-management-status { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .3rem .55rem; border: 1px solid #e5d6ad; border-radius: 999px; background: #fbf3dc; color: #765817; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.stable-management-status.is-active { border-color: #c5d9c8; background: #e9f4e9; color: #386343; }
.stable-management-status.is-problem { border-color: #e4b8ae; background: #f8dfd9; color: #913c30; }
.stable-setup-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.stable-setup-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .82rem; min-width: 0; padding: 1.15rem 1.2rem 1.2rem; background: #fbfcfb; }
.stable-setup-step + .stable-setup-step { border-left: 1px solid var(--border); }
.stable-setup-step.is-current { background: #f3f8f5; }
.stable-setup-step.is-problem { background: #fff7f5; }
.stable-setup-step.is-locked { background: #fafafa; color: #77817b; }
.stable-setup-number { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #9bb7a3; border-radius: 999px; background: #fff; color: #354f52; font-size: .74rem; font-weight: 850; }
.stable-setup-step.is-current .stable-setup-number { border-color: #354f52; background: #354f52; color: #fff; }
.stable-setup-step.is-complete .stable-setup-number { border-color: #52796f; background: #dfece1; color: #354f52; }
.stable-setup-step.is-problem .stable-setup-number { border-color: #b95949; background: #b95949; color: #fff; }
.stable-setup-step.is-locked .stable-setup-number { border-color: #d5dbd7; background: #f1f3f1; color: #8a938d; }
.stable-setup-title { display: grid; gap: .08rem; }
.stable-setup-title span { color: #52796f; font-size: .59rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.stable-setup-title strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1rem; line-height: 1.25; }
.stable-setup-copy > p { min-height: 2.35rem; margin: .35rem 0 0; color: var(--muted-foreground); font-size: .73rem; line-height: 1.5; }
.stable-setup-action { min-height: 2.25rem; margin-top: .72rem; padding: .46rem .7rem; font-size: .71rem; }
.stable-setup-locked-note { display: inline-flex; margin-top: .72rem; color: #727d76; font-size: .68rem; font-weight: 720; }
.stable-setup-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem 1.2rem; border-top: 1px solid var(--border); background: #fff; color: var(--muted-foreground); font-size: .69rem; }
.stable-setup-footer .text-link { font-size: .71rem; white-space: nowrap; }
.payment-details-anchor { scroll-margin-top: 5rem; }
.stable-editor-notice { margin: 0 0 1rem; padding: 1rem 1.2rem; font-size: .82rem; line-height: 1.55; }
.stable-editor-notice h2 { margin: 0 0 .4rem; font-family: inherit; font-size: .95rem; font-weight: 650; letter-spacing: normal; line-height: 1.4; }
.stable-editor-notice p { max-width: 85ch; margin: .3rem 0; font-size: .82rem; line-height: 1.55; }
.stable-editor-notice .button { margin-top: .6rem; min-height: 2.2rem; padding: .5rem .85rem; font-size: .76rem; }
.stable-notice-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.stable-visibility-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.stable-visibility-bar h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 .3rem; font-family: inherit; font-size: .9rem; font-weight: 650; letter-spacing: normal; line-height: 1.4; }
.stable-visibility-label { padding: .15rem .5rem; border-radius: 1rem; background: var(--muted); color: var(--muted-foreground); font-size: .68rem; font-weight: 600; }
.stable-visibility-bar p { margin: 0; max-width: 75ch; color: var(--muted-foreground); font-size: .77rem; line-height: 1.5; }
.stable-visibility-bar form { flex-shrink: 0; }
.stable-visibility-bar .button { min-height: 2.2rem; padding: .5rem .85rem; font-size: .76rem; }
@media (max-width: 640px) { .stable-visibility-bar { align-items: flex-start; flex-direction: column; } }
.stable-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .4fr); gap: clamp(1.2rem, 4vw, 4rem); align-items: start; }
.stable-editor-aside { align-content: start; }
.stable-profile-builder { background: transparent; }
.stable-builder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.stable-builder-mood { max-width: 40rem; margin-top: 1.1rem; }
.stable-builder-mood-select { display: none; }
.stable-mood-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.stable-builder-mood + .editor-label { margin-top: 1rem; }
.stable-mood-option { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .48rem; align-items: center; min-height: 4rem; padding: .38rem; border: 1px solid #cedccf; border-radius: calc(var(--radius) - .25rem); background: #fff; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.stable-mood-option:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.stable-mood-option[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.stable-mood-option:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 2px; }
.stable-mood-option strong, .stable-mood-option small { display: block; }
.stable-mood-option strong { font-size: .72rem; line-height: 1.3; }
.stable-mood-option small { margin-top: .12rem; color: var(--muted-foreground); font-size: .62rem; font-weight: 540; line-height: 1.35; }
.stable-mood-swatch { position: relative; display: block; aspect-ratio: .78; overflow: hidden; border-radius: .35rem; background: #52796f; }
.stable-mood-swatch::before, .stable-mood-swatch::after { position: absolute; right: -22%; bottom: -30%; left: -22%; border-radius: 50% 50% 0 0; content: ""; }
.stable-mood-swatch::before { height: 56%; background: rgba(255,255,255,.36); transform: rotate(-8deg); }
.stable-mood-swatch::after { height: 36%; background: rgba(21,63,57,.42); transform: rotate(10deg); }
.stable-mood-swatch--coast { background: radial-gradient(circle at 70% 22%, #f2ffff 0 10%, transparent 27%), linear-gradient(155deg, #bde4df 0 45%, #6eaaa3 46% 68%, #355d59 69%); }
.stable-mood-swatch--meadow { background: radial-gradient(circle at 74% 22%, #f9efd3 0 10%, transparent 26%), linear-gradient(155deg, #d9e0ac 0 45%, #94aa69 46% 68%, #4f7257 69%); }
.stable-mood-swatch--midnight { background: radial-gradient(circle at 72% 20%, #d5e8e6 0 7%, transparent 23%), linear-gradient(155deg, #405f62 0 45%, #253f44 46% 68%, #14292d 69%); }
.stable-builder-fieldset { min-width: 0; margin: 1.25rem 0 0; padding: 0; border: 0; background: transparent; }
.stable-builder-fieldset legend { padding: 0; color: #35443b; font-size: .78rem; font-weight: 760; line-height: 1.35; }
.stable-builder-fieldset > p { margin: .38rem 0 .7rem; color: var(--muted-foreground); font-size: .69rem; line-height: 1.5; }
.stable-highlight-editor { display: grid; gap: .7rem; }
.stable-highlight-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.stable-highlight-composer .button { min-height: 2.75rem; padding-inline: .85rem; font-size: .72rem; }
.stable-highlight-chips { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 0; }
.stable-highlight-chip { display: inline-flex; align-items: center; gap: .36rem; max-width: 100%; border: 1px solid var(--accent-border); border-radius: 999px; padding: .28rem .3rem .28rem .62rem; background: var(--accent-soft); color: var(--accent); font-size: .68rem; font-weight: 780; line-height: 1.25; }
.stable-highlight-chip button { display: grid; width: 1.3rem; height: 1.3rem; flex: 0 0 auto; place-items: center; border: 0; border-radius: 999px; background: rgba(82,121,111,.16); color: inherit; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.stable-highlight-chip button:hover { background: var(--accent); color: #fff; }
.stable-highlight-chip button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 2px; }
.stable-page-structure-preview { --structure-background: #f7faf6; --structure-border: #cad8c8; --structure-card: #fff; --structure-card-border: #cedccf; --structure-accent: var(--accent); --structure-accent-soft: var(--accent-soft); --structure-hover: #fbfefb; display: grid; grid-template-columns: minmax(0, .72fr) minmax(270px, 1.28fr); gap: 1rem; align-items: start; margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--structure-border); border-radius: calc(var(--radius) - .18rem); background: var(--structure-background); transition: background .22s ease, border-color .22s ease; }
.stable-page-structure-preview[data-mood="meadow"] { --structure-background: #f4f7ea; --structure-border: #cbd8ae; --structure-card: #fffef8; --structure-card-border: #d6dfbc; --structure-accent: #557044; --structure-accent-soft: #e5edd2; --structure-hover: #fbfdf4; }
.stable-page-structure-preview[data-mood="midnight"] { --structure-background: #e9f0ef; --structure-border: #a8c2c1; --structure-card: #f8fbfa; --structure-card-border: #bed1cf; --structure-accent: #315f63; --structure-accent-soft: #d7e8e6; --structure-hover: #f2f8f7; }
.stable-page-structure-preview .eyebrow { margin-bottom: .3rem; color: var(--structure-accent); font-size: .6rem; }
.stable-page-structure-preview > div > strong { display: block; color: var(--structure-accent); font-family: "Source Serif 4", Georgia, serif; font-size: 1rem; }
.stable-page-structure-preview > div > p:last-child { margin: .45rem 0 0; color: var(--muted-foreground); font-size: .7rem; line-height: 1.5; }
.stable-page-structure-preview ol { display: grid; gap: .38rem; margin: 0; padding: 0; list-style: none; }
.stable-page-structure-preview li { border: 1px solid var(--structure-card-border); border-radius: .48rem; background: var(--structure-card); transition: opacity .18s ease, filter .18s ease, border-color .18s ease, background .18s ease; }
.stable-page-structure-preview li.is-always { display: grid; grid-template-columns: 1.65rem minmax(0, 1fr); gap: .55rem; align-items: center; padding: .45rem .55rem; }
.stable-page-structure-preview li > button { display: grid; width: 100%; grid-template-columns: 1.65rem minmax(0, 1fr); gap: .55rem; align-items: center; padding: .45rem .55rem; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.stable-page-structure-preview li:not(.is-disabled):hover { border-color: var(--structure-accent); background: var(--structure-hover); }
.stable-page-structure-preview li > button:focus-visible { outline: 3px solid color-mix(in srgb, var(--structure-accent) 38%, transparent); outline-offset: 2px; }
.stable-page-structure-preview li > span,
.stable-page-structure-preview li > button > span:first-child { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 999px; background: var(--structure-accent-soft); color: var(--structure-accent); font-size: .6rem; font-weight: 820; }
.stable-page-structure-preview li strong, .stable-page-structure-preview li small { display: block; }
.stable-page-structure-preview li strong { color: var(--foreground); font-size: .7rem; }
.stable-page-structure-preview li small { margin-top: .08rem; color: var(--muted-foreground); font-size: .61rem; }
.stable-page-structure-preview li.is-disabled { border-style: dashed; opacity: .45; filter: grayscale(1); }
.stable-profile-live-preview { overflow: hidden; box-shadow: var(--shadow-sm); }
.stable-profile-live-preview--inline { display: none; margin: .2rem 0 1.15rem; }
.stable-profile-live-preview-image { display: grid; aspect-ratio: 1; align-items: start; justify-items: start; padding: .65rem; background: linear-gradient(135deg, #52796f, #354f52); background-position: center; background-size: cover; color: #fff; }
.stable-profile-live-preview-image span { border-radius: 999px; padding: .28rem .46rem; background: rgba(10,27,22,.52); font-size: .58rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.stable-profile-live-preview-content { padding: .95rem; }
.stable-profile-live-preview-content .eyebrow { margin-bottom: .35rem; color: var(--accent); font-size: .58rem; }
.stable-profile-live-preview-content > strong { display: block; margin-bottom: .4rem; color: var(--muted-foreground); font-size: .67rem; font-weight: 750; }
.stable-profile-live-preview-content h2 { margin: 0 0 .45rem; font-size: 1.22rem; line-height: 1.08; }
.stable-profile-live-preview-content > p:not(.eyebrow) { margin: 0; color: var(--muted-foreground); font-size: .72rem; line-height: 1.5; }
.stable-profile-live-preview-content ul { display: flex; flex-wrap: wrap; gap: .28rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.stable-profile-live-preview-content li { border-radius: 999px; padding: .22rem .4rem; background: var(--accent-soft); color: var(--accent); font-size: .58rem; font-weight: 780; }
.stable-profile-preview-action { display: inline-flex; margin-top: .8rem; color: var(--accent); font-size: .7rem; font-weight: 800; }
.stable-profile-live-preview[data-mood="meadow"] .stable-profile-live-preview-image { background-color: #52796f; }
.stable-profile-live-preview[data-mood="midnight"] .stable-profile-live-preview-image { background-color: #354f52; }
.stable-full-preview-open { position: relative; width: 100%; justify-content: center; margin-top: -.35rem; overflow: visible; }
.stable-mobile-preview-open { position: fixed; z-index: 42; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); display: none; min-height: 48px; border-color: rgba(255,255,255,.55); box-shadow: 0 12px 32px rgba(25,48,42,.26); }
.stable-preview-update-hint { position: absolute; z-index: 1; top: -.7rem; right: .5rem; padding: .22rem .42rem; border: 1px solid #84a98c; border-radius: 999px; background: #f8fbf7; color: #354f52; font-size: .58rem; font-weight: 820; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(.2rem) scale(.96); transition: opacity .18s ease, transform .18s ease; }
.has-preview-update { outline: 3px solid transparent; animation: stable-preview-attention 1.35s ease; }
.has-preview-update .stable-preview-update-hint { opacity: 1; transform: translateY(0) scale(1); }
@keyframes stable-preview-attention { 0%, 100% { outline-color: transparent; outline-offset: 0; } 24%, 72% { outline-color: rgba(82,121,111,.45); outline-offset: 3px; } }
@media (prefers-reduced-motion: reduce) {
  .has-preview-update { outline-color: rgba(82,121,111,.45); outline-offset: 3px; animation: none; }
  .stable-preview-update-hint { transition: none; }
}
.stable-full-preview-dialog { width: min(1180px, calc(100vw - 2rem)); max-width: none; height: min(92dvh, 900px); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #bfcfc2; border-radius: calc(var(--radius) + .2rem); background: #f5f7f4; box-shadow: 0 30px 90px rgba(20,38,32,.32); color: var(--foreground); }
.stable-full-preview-dialog::backdrop { background: rgba(24,39,35,.58); backdrop-filter: blur(4px); }
.stable-full-preview-shell { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.stable-full-preview-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); }
.stable-full-preview-header .eyebrow { margin-bottom: .2rem; font-size: .58rem; }
.stable-full-preview-header h2 { margin: 0; font-size: 1.08rem; }
.stable-full-preview-header .image-icon-action { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border); background: #fff; color: var(--foreground); }
.stable-full-preview-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); background: #fff; }
.stable-preview-tabs, .stable-preview-devices { display: inline-flex; gap: .18rem; padding: .2rem; border: 1px solid #c9d5cb; border-radius: .6rem; background: #eef2ed; }
.stable-preview-tabs button, .stable-preview-devices button { min-height: 32px; padding: .35rem .7rem; border: 0; border-radius: .42rem; background: transparent; color: var(--muted-foreground); font: inherit; font-size: .7rem; font-weight: 780; cursor: pointer; }
.stable-preview-tabs button[aria-selected="true"], .stable-preview-devices button[aria-pressed="true"] { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(27,45,33,.13); }
.stable-preview-tabs button:focus-visible, .stable-preview-devices button:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring) 38%, transparent); outline-offset: 2px; }
.stable-full-preview-loading { margin-left: auto; color: var(--muted-foreground); font-size: .68rem; opacity: 0; transition: opacity .15s ease; }
.stable-full-preview-loading.htmx-request { opacity: 1; }
.stable-full-preview-stage { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 1.25rem; background: #e6ebe6; overscroll-behavior: contain; }
.stable-preview-panel[hidden] { display: none; }
.stable-preview-card-frame { width: min(360px, 100%); margin: 0 auto; }
.stable-preview-device-frame { width: 100%; max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid #bdcbbf; border-radius: .72rem; background: #fff; box-shadow: 0 16px 42px rgba(28,48,41,.14); transition: max-width .2s ease; }
.stable-preview-device-frame[data-device="mobile"] { max-width: 390px; }
.stable-full-preview-footer { flex: 0 0 auto; padding: .65rem 1rem; border-top: 1px solid var(--border); background: #fff; color: var(--muted-foreground); font-size: .67rem; text-align: center; }
.stable-draft-preview { --draft-accent: #52796f; --draft-accent-soft: #e1ebe3; --draft-dark: #2f3e46; background: #fff; color: var(--foreground); }
.stable-draft-preview[data-mood="meadow"] { --draft-accent: #657752; --draft-accent-soft: #edf0df; --draft-dark: #354638; }
.stable-draft-preview[data-mood="midnight"] { --draft-accent: #52796f; --draft-accent-soft: #dce9e7; --draft-dark: #24383d; }
.stable-draft-preview-hero { position: relative; display: grid; min-height: 440px; overflow: hidden; place-items: end start; background: linear-gradient(135deg, var(--draft-dark), var(--draft-accent)); color: #fff; }
.stable-draft-preview-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stable-draft-preview-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,35,30,.82) 0%, rgba(17,35,30,.5) 48%, rgba(17,35,30,.08) 100%); }
.stable-draft-preview-hero-copy { position: relative; z-index: 1; width: min(660px, 74%); padding: clamp(1.5rem, 5vw, 4rem); }
.stable-draft-preview-hero-copy h1 { max-width: 12ch; margin: .3rem 0 .55rem; color: #fff; font-size: clamp(2.35rem, 6vw, 5.2rem); line-height: .9; }
.stable-draft-preview-hero-copy > p:not(.eyebrow) { max-width: 44ch; margin: 0; color: rgba(255,255,255,.88); font-size: clamp(.82rem, 1.4vw, 1rem); }
.stable-draft-preview-hero-copy ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stable-draft-preview-hero-copy li { padding: .35rem .58rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(24,48,40,.38); font-size: .67rem; font-weight: 750; }
.stable-draft-preview-hero-copy .button { margin-top: 1rem; }
.stable-draft-preview-section { padding: clamp(2rem, 6vw, 4.5rem); }
.stable-draft-preview-section h2 { margin: .25rem 0 0; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1; }
.stable-draft-preview-story { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(1.2rem, 5vw, 4rem); background: #fafbf9; }
.stable-draft-preview-story blockquote { margin: 0; padding: 1.4rem; border: 1px solid #ced9cf; border-radius: .72rem; background: #fff; }
.stable-draft-preview-story blockquote p { margin: 0; color: #52645a; font-size: .85rem; line-height: 1.75; }
.stable-draft-preview-story cite { display: block; margin-top: 1rem; color: var(--draft-accent); font-family: "Source Serif 4", Georgia, serif; font-style: normal; font-weight: 760; }
.stable-draft-preview-horses { background: var(--draft-accent-soft); }
.stable-draft-preview-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.stable-draft-preview-section-heading > p { max-width: 35ch; margin: 0; color: #52645a; font-size: .78rem; }
.stable-draft-preview-horse-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-top: 1.5rem; }
.stable-draft-preview-horse-grid > div { overflow: hidden; border: 1px solid #c5d2c7; border-radius: .62rem; background: #fff; }
.stable-draft-preview-horse-grid span { display: block; aspect-ratio: 1.3/1; background: linear-gradient(145deg, #b9cfca, var(--draft-accent)); }
.stable-draft-preview-horse-grid strong, .stable-draft-preview-horse-grid small { display: block; margin-inline: .7rem; }
.stable-draft-preview-horse-grid strong { margin-top: .65rem; font-family: "Source Serif 4", Georgia, serif; font-size: .78rem; }
.stable-draft-preview-horse-grid small { margin-block: .22rem .75rem; color: var(--muted-foreground); font-size: .6rem; }
.stable-draft-preview-visit { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 1.5rem; align-items: center; }
.stable-draft-preview-visit > div:first-child > p:not(.eyebrow) { color: var(--muted-foreground); font-size: .8rem; }
.stable-draft-preview-visit strong { display: block; margin-top: .35rem; color: var(--draft-accent); font-size: .72rem; }
.stable-draft-preview-map { display: grid; min-height: 230px; place-items: center; border: 1px solid #c4d2c7; border-radius: .72rem; background: radial-gradient(circle at 40% 45%, #f8faf7 0 5%, transparent 6%), linear-gradient(135deg,#dce7dd,#eef3ed); color: var(--draft-accent); }
.stable-draft-preview-map span { font-size: 2rem; }
.stable-draft-preview-map small { margin-top: -4rem; font-size: .65rem; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-hero { min-height: 430px; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-hero-copy { width: auto; padding: 1.35rem; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-hero-copy h1 { font-size: 2.7rem; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-section { padding: 2rem 1.2rem; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-story,
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-visit { grid-template-columns: 1fr; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-section-heading { display: block; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-section-heading > p { margin-top: .65rem; }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-horse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stable-preview-device-frame[data-device="mobile"] .stable-draft-preview-horse-grid > div:last-child { display: none; }
.stable-editor-status, .stable-editor-checklist { padding: 1.15rem; box-shadow: none; }
.stable-editor-status { border-color: var(--accent-border); background: #f3fbfa; }
.stable-editor-status--live { border-color: #bdd3bf; background: #f1f8f1; }
.stable-editor-status > span { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; margin-bottom: .8rem; border-radius: 999px; background: var(--accent-soft); color: #176b70; font-size: .95rem; }
.stable-editor-status--live > span { background: #dceedd; color: #3e7049; }
.stable-editor-status .eyebrow { margin-bottom: .4rem; color: #176b70; }
.stable-editor-status--live .eyebrow { color: #46714d; }
.stable-editor-status h2, .stable-editor-checklist h2 { margin: 0 0 .38rem; font-size: 1.02rem; }
.stable-editor-status p:not(.eyebrow) { margin: 0; color: #49666a; font-size: .76rem; line-height: 1.62; }
.stable-editor-status-action { margin-top: .85rem; font-size: .73rem; }
.stable-editor-checklist { border-color: #d9e1da; background: #f6f9f6; }
.stable-editor-checklist ul { display: grid; gap: .48rem; margin: .75rem 0 1rem; padding: 0; list-style: none; color: #55645a; font-size: .74rem; line-height: 1.45; }
.stable-editor-checklist li { position: relative; padding-left: 1.05rem; }
.stable-editor-checklist li::before { position: absolute; top: .35rem; left: 0; width: .38rem; height: .38rem; border-radius: 999px; background: #7c9c80; content: ""; }
.stable-editor-checklist .text-link { font-size: .73rem; }
.editor-current-image { overflow: hidden; padding: .75rem; }
.editor-current-image .eyebrow { margin: .2rem .25rem .65rem; }
.editor-current-image img { width: 100%; aspect-ratio: 1; border-radius: calc(var(--radius) - .25rem); object-fit: cover; }
.editor-preview-note { margin: 0; color: var(--muted-foreground); font-size: .72rem; line-height: 1.5; }
.validation-summary:empty { display: none; }
.validation-summary { margin-bottom: 1rem; padding: .75rem; border: 1px solid #efc0b3; border-radius: calc(var(--radius) - .25rem); background: #fff3ef; color: #983c2b; font-size: .78rem; }
.validation-summary ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.address-editor { scroll-margin-top: 100px; }
.address-search { position: relative; z-index: 2; }
.address-search .editor-label { margin-top: 0; }
.address-search-control { position: relative; display: flex; align-items: center; }
.address-search-control .input { width: 100%; padding-right: 2.8rem; padding-left: 2.45rem; }
.address-search-icon { position: absolute; left: .82rem; color: #66756b; font-size: 1.2rem; line-height: 1; pointer-events: none; }
.address-clear { position: absolute; right: .35rem; display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 0; border-radius: .45rem; background: transparent; color: #657267; font-size: 1.35rem; cursor: pointer; }
.address-clear:hover { background: var(--secondary); color: var(--primary); }
.address-clear:focus-visible, .address-suggestions button:focus-visible, .address-location-button:focus-visible { outline: 3px solid rgba(40, 127, 131, .38); outline-offset: 2px; }
.address-suggestions { position: absolute; top: calc(100% + .35rem); right: 0; left: 0; max-height: 242px; margin: 0; padding: .28rem; overflow-y: auto; border: 1px solid var(--border); border-radius: calc(var(--radius) - .25rem); background: var(--card); box-shadow: 0 14px 32px rgba(27, 45, 33, .16); list-style: none; }
.address-suggestions li + li { border-top: 1px solid #edf0ed; }
.address-suggestions button { display: block; width: 100%; min-height: 44px; padding: .62rem .7rem; border: 0; border-radius: .42rem; background: transparent; color: var(--foreground); font: inherit; font-size: .78rem; font-weight: 680; line-height: 1.35; text-align: left; cursor: pointer; }
.address-suggestions button:hover, .address-suggestions button:focus-visible { background: #eef5ef; color: var(--primary); }
.address-status { min-height: 1.15rem; margin: .5rem 0 0; color: var(--muted-foreground); font-size: .69rem; line-height: 1.45; }
.address-fields, .address-field-grid { margin-top: .35rem; }
.address-editor > .location-precision-field { margin-top: 1.25rem; }
.address-map-shell, .address-map-card { position: relative; z-index: 1; margin-top: 1.15rem; overflow: hidden; border: 1px solid #cfdbd1; border-radius: var(--radius); background: var(--card); box-shadow: none; }
.address-map { min-height: 325px; background: #edf2ee; touch-action: pan-x pan-y; }
.address-map.is-unavailable { display: grid; place-items: center; padding: 1.5rem; color: var(--muted-foreground); font-size: .8rem; line-height: 1.5; text-align: center; }
.address-map .leaflet-control-attribution { font-size: 9px; }
.address-map-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .78rem .85rem; background: #fff; }
.address-map-footer > div { display: grid; min-width: 0; gap: .14rem; }
.address-map-kicker { color: var(--muted-foreground); font-size: .62rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.address-map-footer strong { overflow: hidden; color: #3d5043; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.address-location-button { flex: 0 0 auto; min-height: 44px; padding-inline: .75rem; font-size: .7rem; }
.address-map-help { margin: .62rem 0 0; color: var(--muted-foreground); font-size: .68rem; line-height: 1.5; }
.image-manager { scroll-margin-top: 100px; }
.first-impression-images { margin-top: .9rem; }
.image-dropzone { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; margin-top: 1rem; padding: 1rem; border: 1px dashed #afc3b3; border-radius: var(--radius); background: #f7faf7; color: var(--foreground); text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.image-dropzone:hover, .image-dropzone.is-dragging { border-color: var(--ring); background: #edf5ee; transform: translateY(-1px); }
.image-dropzone:focus-visible, .image-icon-action:focus-visible, .image-text-action:focus-visible { outline: 3px solid rgba(40, 127, 131, .38); outline-offset: 3px; }
.image-dropzone-icon { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: 999px; background: var(--primary); color: #fff; font-size: 1.25rem; font-weight: 600; }
.image-dropzone strong, .image-dropzone small { display: block; }
.image-dropzone strong { font-size: .82rem; }
.image-dropzone small, .image-dropzone-format { margin-top: .16rem; color: var(--muted-foreground); font-size: .68rem; font-weight: 600; line-height: 1.45; }
.image-dropzone-format { align-self: end; text-align: right; }
.image-manager-message { min-height: 1.15rem; margin: .6rem 0 0; color: #a34430; font-size: .72rem; font-weight: 650; }
.image-manager-message:empty { display: none; }
.image-attachment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .4rem; }
.image-attachment { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) - .15rem); background: var(--card); box-shadow: 0 1px 2px rgba(20, 30, 24, .04); }
.image-attachment:first-child { border-color: #7f9c85; box-shadow: 0 0 0 2px rgba(91, 126, 97, .11); }
.image-attachment > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--secondary); }
.image-attachment figcaption { display: flex; min-height: 2.45rem; align-items: center; justify-content: space-between; gap: .35rem; padding: .42rem .5rem; }
.image-attachment-state { color: #496b51; font-size: .64rem; font-weight: 760; white-space: nowrap; }
.image-attachment-actions { display: flex; align-items: center; gap: .12rem; }
.image-text-action, .image-icon-action { border: 0; border-radius: .35rem; background: transparent; color: #59685e; font: inherit; cursor: pointer; }
.image-text-action { padding: .28rem; font-size: .62rem; font-weight: 720; }
.image-text-action:hover { color: var(--primary); background: var(--secondary); }
.image-icon-action { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; color: #99513f; font-size: 1.25rem; line-height: 1; }
.image-icon-action:hover { background: #fff1ed; color: #7b3020; }
.image-manager-help { margin: .75rem 0 0; color: var(--muted-foreground); font-size: .69rem; line-height: 1.5; }
.image-crop-dialog { width: min(680px, calc(100vw - 1.5rem)); max-height: min(800px, calc(100vh - 1.5rem)); padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + .15rem); background: var(--card); color: var(--foreground); box-shadow: 0 26px 90px rgba(21, 31, 24, .34); }
.image-crop-dialog::backdrop { background: rgba(18, 28, 21, .66); backdrop-filter: blur(3px); }
.image-crop-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.15rem .2rem; }
.image-crop-dialog-header .eyebrow { margin: 0 0 .35rem; }
.image-crop-dialog h2 { margin: 0; font-size: 1.3rem; }
.image-crop-copy { margin: .45rem 1.15rem 1rem; color: var(--muted-foreground); font-size: .76rem; line-height: 1.45; }
.image-crop-stage { min-height: 260px; max-height: min(58vh, 520px); overflow: hidden; background: #17261d; }
.image-crop-stage > img { display: block; max-width: 100%; }
.image-crop-stage .cropper-container { touch-action: none; }
.image-crop-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: .55rem; align-items: center; padding: 1rem 1.15rem .45rem; }
.image-zoom-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border); border-radius: calc(var(--radius) - .25rem); background: var(--card); color: var(--primary); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.image-zoom-button:hover { border-color: #9bb39f; background: #f0f6f0; }
.image-zoom-range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; align-items: center; color: #506056; font-size: .7rem; font-weight: 760; }
.image-zoom-range input { width: 100%; min-width: 0; accent-color: var(--primary); cursor: pointer; touch-action: pan-x; }
.image-zoom-range output { min-width: 2.55rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; text-align: right; }
.image-crop-gesture { margin: .1rem 1.15rem 0; color: var(--muted-foreground); font-size: .68rem; line-height: 1.45; }
.image-crop-dialog-actions { display: flex; justify-content: flex-end; gap: .55rem; padding: 1rem 1.15rem 1.15rem; }
.detail-gallery-slide img { aspect-ratio: 1; }

@media (max-width: 1000px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stable-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: 1fr 1fr; }
  .stable-horse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stable-visit-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .stable-visit-copy { max-width: 620px; }
  .stable-upgrade-hero-grid, .stable-upgrade-faq-grid { grid-template-columns: 1fr; }
  .stable-editor-layout { grid-template-columns: 1fr; }
  .stable-editor-aside { position: static; grid-template-columns: 1fr 1fr; }
  .payment-sample-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, .65fr); }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-aside { position: static; grid-template-columns: 1fr 1fr; }
  .image-attachment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --shell-gutter: .625rem; }
  .header-inner { min-height: 66px; gap: .8rem; }
  .brand { font-size: 1.35rem; }
  .desktop-nav, .header-create, .header-actions { display: none; }
  .mobile-favorites-trigger { position: relative; display: inline-grid; width: 2.75rem; height: 2.75rem; place-items: center; margin-left: auto; border: 1px solid var(--border); border-radius: calc(var(--radius) - .2rem); background: var(--card); color: var(--primary); cursor: pointer; }
  .mobile-favorites-trigger svg, .mobile-favorites-trigger .lucide-icon { width: 1.2rem; height: 1.2rem; }
  .mobile-favorites-trigger + .mobile-menu-trigger { margin-left: 0; }
  .mobile-favorites-trigger .notification-badge { top: -.22rem; right: -.2rem; border-color: var(--card); }
  .mobile-menu-trigger { display: inline-grid; width: 50px; height: 50px; place-items: center; align-content: center; gap: .12rem; margin-left: auto; border: 1px solid var(--border); border-radius: calc(var(--radius) - .2rem); background: var(--card); color: var(--primary); font-size: .61rem; font-weight: 750; cursor: pointer; }
  .mobile-menu-trigger svg { width: 1.25rem; height: 1.25rem; }
  .mobile-menu-trigger:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible { outline: 3px solid rgba(40, 127, 131, .4); outline-offset: 3px; }
  .site-header--overlay .mobile-menu-trigger, .site-header--overlay .mobile-favorites-trigger { border-color: rgba(255,255,255,.25); background: rgba(20, 39, 29, .38); color: #fff; backdrop-filter: blur(10px); }
  .notification-panel { top: 4.5rem; right: .65rem; width: calc(100vw - 1.3rem); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu { position: fixed; z-index: 80; inset: 0; display: block; }
  .mobile-menu-scrim { position: absolute; inset: 0; background: rgba(10, 20, 15, 0); transition: background .18s ease; }
  .mobile-menu-sheet { position: absolute; top: 0; right: 0; display: flex; width: min(88vw, 370px); height: 100%; flex-direction: column; overflow-y: auto; padding: 1rem; background: var(--card); box-shadow: -16px 0 46px rgba(12, 25, 18, .2); opacity: 0; transform: translateX(100%); transition: opacity .18s ease, transform .22s cubic-bezier(.16, 1, .3, 1); }
  .mobile-menu.is-open .mobile-menu-scrim { background: rgba(10, 20, 15, .46); }
  .mobile-menu.is-open .mobile-menu-sheet { opacity: 1; transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-bottom: .8rem; border-bottom: 1px solid var(--border); color: var(--primary); font-size: .74rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-menu-close { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid var(--border); border-radius: calc(var(--radius) - .25rem); background: var(--card); color: var(--foreground); cursor: pointer; }
  .mobile-menu-close svg { width: 1.2rem; height: 1.2rem; }
  .mobile-nav { display: grid; margin: 1rem 0; border-top: 1px solid var(--border); }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 3.45rem; border-bottom: 1px solid var(--border); color: var(--foreground); font-size: 1.03rem; font-weight: 720; }
  .mobile-nav a span { color: var(--accent); }
  .mobile-menu-create { width: 100%; min-height: 3rem; margin-top: .25rem; }
  .mobile-menu-note { margin: auto .3rem .2rem; color: var(--muted-foreground); font-size: .74rem; }
  /* Keep the opening mobile screen as one complete composition: image, actions, and stutteri rail. */
  .home-page .hero { height: 100dvh; min-height: max(620px, 100svh); }
  .hero { min-height: max(620px, 100svh); background-position: 60% 50%; }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(2.55rem, 12.5vw, 4rem); }
  .hero-lede { max-width: 290px; margin-bottom: 1.3rem; font-size: .94rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { min-height: 2.72rem; padding-inline: .85rem; font-size: .8rem; }
  .hero-stable-spotlight { bottom: max(.65rem, env(safe-area-inset-bottom)); padding-top: 1.5rem; padding-bottom: .35rem; }
  .hero-stable-spotlight-heading { margin-bottom: .32rem; }
  .hero-stable-spotlight-heading .eyebrow { font-size: .61rem; }
  .hero-stable-spotlight-links { gap: .55rem; }
  .hero-stable-spotlight-link { font-size: .67rem; }
  .hero-merchant-rail { grid-auto-columns: minmax(224px, 76vw); gap: .5rem; padding-bottom: .34rem; }
  .hero-merchant-card { min-height: 70px; gap: .65rem; padding: .55rem; }
  .hero-merchant-card img { width: 2.95rem; height: 2.95rem; }
  .hero-merchant-card strong { font-size: .77rem; }
  .hero-merchant-card small { font-size: .67rem; }
  .section-heading { display: block; margin-bottom: 1.35rem; }
  .section-heading .text-link { margin-top: .8rem; }
  .section-description { margin-top: .8rem; }
  .stable-directory-hero { padding-block: 2rem 2.7rem; background-position: 62% 53%; }
  .stable-directory-heading { display: block; }
  .stable-directory-heading h1 { font-size: clamp(2.45rem, 11vw, 3.6rem); }
  .stable-directory-heading .button { width: 100%; margin-top: 1.3rem; }
  .stable-directory-filters { grid-template-columns: 1fr; padding: .6rem; }
  .stable-directory-filters .filter-reset { min-height: 2.25rem; padding-inline: .3rem; }
  .stable-directory-results-heading { margin-top: 1rem; }
  .stable-directory-results-heading span { display: none; }
  .stable-directory-grid { gap: .65rem; }
  .stable-directory-card-content { padding: .8rem; }
  .stable-directory-card h2 { font-size: .93rem; }
  .stable-directory-description { font-size: .7rem; -webkit-line-clamp: 3; }
  .stable-directory-card-footer { gap: .2rem; margin-top: auto; padding-top: .6rem; font-size: .59rem; }
  .stable-directory-card-footer strong { font-size: .68rem; }
  .stable-directory-card-footer a { width: 1.65rem; height: 1.65rem; }
  .favorite-button--stable-directory { top: .45rem; right: .45rem; }
  .search-panel { grid-template-columns: 1fr; padding: .6rem; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-reset { justify-content: flex-start; }
  .marketplace-view-toolbar { align-items: end; margin: .1rem 0 .85rem; }
  .marketplace-view-copy { max-width: 195px; font-size: .71rem; line-height: 1.35; }
  .marketplace-view-toggle button { min-height: 2.18rem; padding-inline: .56rem; font-size: .7rem; }
  .marketplace-map-legend { margin-top: -.1rem; }
  .marketplace-map-panel { height: min(640px, 72svh); min-height: 430px; border-radius: calc(var(--radius) - .12rem); }
  .marketplace-map-status { top: .65rem; max-width: calc(100% - 1.25rem); font-size: .67rem; }
  .marketplace-map-selection { right: .6rem; bottom: .6rem; left: .6rem; width: auto; padding: .6rem; }
  .marketplace-map-selection-header { padding-bottom: .45rem; }
  .marketplace-map-carousel { grid-auto-columns: minmax(235px, 76vw); gap: .5rem; }
  .marketplace-map-card { grid-template-columns: 84px minmax(0, 1fr); min-height: 94px; }
  .marketplace-map-card > img { min-height: 94px; }
  .marketplace-map-card-content { padding: .52rem .58rem; }
  .marketplace-map-card-content > strong { margin: .18rem 0 .35rem; }
  .marketplace-map-panel .leaflet-bottom { bottom: 132px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .favorite-button { top: .45rem; right: .45rem; width: 2.6rem; height: 2.6rem; }
  .listing-card { --listing-card-inset: .8rem; }
  .listing-card h3 { font-size: .86rem; }
  .listing-meta, .listing-card-footer { font-size: .64rem; }
  .listing-card-footer strong { font-size: .75rem; }
  .detail-page { padding-block: 1.4rem 3.5rem; }
  .detail-gallery-controls { right: .5rem; bottom: .5rem; }
  .detail-gallery-slide img { height: auto; }
  .detail-gallery-slide--video { min-height: 200px; }
  .detail-heading { display: block; padding-block: 1.5rem; }
  .detail-heading-actions { margin-top: 1rem; justify-content: space-between; }
  .detail-price { display: inline-block; margin-top: 1rem; }
  .detail-heading-actions .detail-price { margin-top: 0; }
  .favorites-heading { display: block; margin-bottom: 1.5rem; }
  .favorites-heading > .button { width: 100%; margin-top: 1rem; }
  .favorite-test { display: block; margin-bottom: 1.6rem; }
  .favorite-test-actions { display: grid; margin-top: .9rem; }
  .favorite-test-actions .button { width: 100%; }
  .favorite-test-notice { margin-top: -.7rem; }
  .favorites-group-heading { display: block; }
  .favorites-group-heading > p { margin-top: .55rem; text-align: left; }
  .favorites-notifications .favorites-group-heading { padding: 1rem; }
  .favorite-stable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .favorite-stable-content { padding: .8rem; }
  .favorite-stable-content h3 { font-size: .88rem; }
  .favorite-button--stable { top: .45rem; right: .45rem; }
  .favorite-auth-dialog-actions { flex-direction: column; }
  .detail-aside { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-contact { display: block; }
  .about-contact .button { width: 100%; margin-top: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; padding-block: 2rem; }
  .footer-inner p { text-align: left; }
  .footer-inner nav { justify-content: flex-start; flex-wrap: wrap; }
  .auth-page { min-height: auto; grid-template-columns: 1fr; }
    .auth-art { min-height: 330px; background-position: 54% 41%; }
  .auth-art-content { width: calc(100% - 2.5rem); margin-bottom: 3rem; }
  .auth-art h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .auth-content { padding: 2rem .75rem 3rem; }
  .auth-card { padding: 1.35rem; }
  .account-page { padding-block: 3rem 5rem; }
  .account-action-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .stable-hero { min-height: 590px; }
  .stable-hero-content { padding-bottom: 3rem; }
  .stable-hero .eyebrow { margin-top: 8rem; }
  .stable-pulse { max-width: 390px; }
  .stable-jump-nav > div { gap: 1rem; overflow-x: auto; }
  .stable-story-section { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 4rem; }
  .stable-story-intro { position: static; }
  .stable-story-copy { padding: 1.5rem; }
  .stable-updates-grid { grid-template-columns: 1fr; }
  .stable-section-heading { display: block; }
  .stable-section-heading > p { margin-top: 1rem; }
  .stable-horse-browser-heading { align-items: start; padding-inline: .35rem; }
  .stable-horse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .stable-horse-content { padding: .75rem; }
  .stable-horse-content h3 { font-size: .84rem; }
  .stable-horse-content > div { display: block; }
  .stable-horse-content strong { display: block; margin-top: .25rem; }
  .stable-visit-section { padding-block: 4rem; }
  .stable-map { height: 330px; }
  .stable-map-footer { align-items: start; }
  .stable-upgrade-hero { padding-block: 4.6rem 4rem; }
  .stable-upgrade-hero h1 { font-size: clamp(2.75rem, 13vw, 4.25rem); }
  .stable-upgrade-hero-actions { display: grid; }
  .stable-upgrade-hero-actions .button { width: 100%; justify-content: center; }
  .stable-plans-heading { display: block; }
  .stable-plans-heading > p { margin-top: 1rem; }
  .stable-plan-grid { grid-template-columns: 1fr; }
  .stable-plan-copy { min-height: 0; }
  .stable-upgrade-step-list li { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1rem; }
  .stable-upgrade-faq-grid { gap: 1.8rem; }
  .stable-editor-heading h1 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
  .stable-setup-heading { display: grid; padding: .95rem; }
  .stable-management-status { width: fit-content; }
  .stable-setup-steps { grid-template-columns: 1fr; }
  .stable-setup-step { padding: 1rem .95rem; }
  .stable-setup-step + .stable-setup-step { border-top: 1px solid var(--border); border-left: 0; }
  .stable-setup-copy > p { min-height: 0; }
  .stable-setup-action { width: 100%; justify-content: center; }
  .stable-setup-footer { align-items: flex-start; flex-direction: column; gap: .4rem; padding: .8rem .95rem; }
  .stable-editor-aside { grid-template-columns: 1fr; }
  .stable-builder-grid { grid-template-columns: 1fr; }
  .stable-mood-options { grid-template-columns: 1fr; }
  .stable-highlight-composer { grid-template-columns: 1fr; }
  .stable-highlight-composer .button { width: 100%; }
  .stable-editor-aside > .stable-profile-live-preview { display: none; }
  .stable-full-preview-open { display: none; }
  .stable-mobile-preview-open { display: inline-flex; }
  .stable-mobile-preview-open .stable-preview-update-hint { top: -.58rem; right: .2rem; }
  .stable-page-structure-preview { grid-template-columns: 1fr; }
  .stable-full-preview-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .stable-full-preview-header { padding-top: calc(.85rem + env(safe-area-inset-top)); }
  .stable-full-preview-header h2 { font-size: .98rem; }
  .stable-full-preview-toolbar { padding: .55rem .7rem; }
  .stable-preview-tabs { width: 100%; }
  .stable-preview-tabs button { flex: 1; }
  .stable-preview-devices { display: none; }
  .stable-full-preview-loading { position: absolute; right: 3.8rem; top: calc(1.35rem + env(safe-area-inset-top)); }
  .stable-full-preview-stage { padding: .75rem; }
  .stable-preview-device-frame { max-width: 390px; }
  .stable-full-preview-footer { padding-bottom: calc(.65rem + env(safe-area-inset-bottom)); }
  .stable-draft-preview-hero { min-height: 430px; }
  .stable-draft-preview-hero-copy { width: auto; padding: 1.35rem; }
  .stable-draft-preview-hero-copy h1 { font-size: 2.7rem; }
  .stable-draft-preview-section { padding: 2rem 1.2rem; }
  .stable-draft-preview-story, .stable-draft-preview-visit { grid-template-columns: 1fr; }
  .stable-draft-preview-section-heading { display: block; }
  .stable-draft-preview-section-heading > p { margin-top: .65rem; }
  .stable-draft-preview-horse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stable-draft-preview-horse-grid > div:last-child { display: none; }
  .payment-sample-page { padding-top: 1.2rem; }
  .payment-sample-heading { margin: 1.5rem 0 1.7rem; }
  .payment-sample-heading h1 { font-size: clamp(2.6rem, 12vw, 4.25rem); }
  .payment-local-simulation { grid-template-columns: 1fr; align-items: stretch; }
  .payment-local-simulation .button { width: 100%; justify-content: center; }
  .payment-sample-layout { grid-template-columns: 1fr; }
  .payment-sample-aside { position: static; }
  .subscription-overview-header { gap: .8rem; padding: 1rem 1rem .9rem; }
  .subscription-overview-fact { padding: .78rem 1rem .84rem; }
  .subscription-overview-actions { align-items: stretch; flex-direction: column; }
  .subscription-overview-actions .button { width: 100%; justify-content: center; }
  .subscription-management-grid { grid-template-columns: 1fr; }
  .payment-plan-option-body { min-height: 78px; padding: .85rem; }
  .workspace-heading { display: block; }
  .workspace-metric { width: fit-content; margin-top: 1.3rem; }
  .workspace-toolbar { display: block; margin-top: 2.3rem; }
  .workspace-toolbar-actions { justify-content: flex-start; margin-top: .85rem; }
  .workspace-toolbar-actions .button { padding-inline: .65rem; font-size: .71rem; }
  .owned-listings { gap: .72rem; }
  .owned-listing { grid-template-columns: 88px minmax(0, 1fr); gap: .72rem; min-height: 0; padding: .72rem; }
  .owned-listing--boosted { box-shadow: 0 7px 20px rgba(47, 62, 70, .11), inset 3px 0 0 #354f52; }
  .owned-listing-image { width: 88px; align-self: start; }
  .owned-listing-content h2 { font-size: .94rem; white-space: normal; }
  .owned-listing-updated { margin-top: .2rem; }
  .owned-listing-side { grid-column: 1 / -1; gap: .55rem; }
  .owned-promotion { grid-template-columns: 34px minmax(0, 1fr); min-height: 68px; }
  .owned-promotion-icon { width: 34px; height: 34px; }
  .owned-promotion-cta { grid-column: 2; width: fit-content; }
  .owned-promotion-copy small { white-space: normal; }
  .owned-listing-actions { display: flex; flex-wrap: wrap; justify-content: stretch; padding-top: .62rem; border-top: 1px solid var(--border); }
  .owned-listing-actions > .button, .owned-listing-actions > form { flex: 1 1 0; }
  .owned-listing-actions > form .button { width: 100%; }
  .owned-listing-menu { margin-left: auto; }
  .owned-listing-menu[open] { flex-basis: 100%; margin-left: 0; }
  .owned-listing-menu[open] > summary { margin-left: auto; }
  .owned-listing-menu-content { position: static; width: 100%; margin-top: .45rem; box-shadow: none; }
  .editor-field-grid { grid-template-columns: 1fr; gap: .9rem; }
  .editor-aside { grid-template-columns: 1fr; }
  .search-input, .editor-form .input, .editor-form .select, .editor-form .textarea { font-size: 1rem; }
  .editor-form .input::placeholder, .editor-form .textarea::placeholder { font-size: .94rem; }
  .editor-heading h1, .workspace-heading h1 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
  .editor-actions { justify-content: space-between; }
  .address-map { min-height: 310px; }
  .address-map-footer { align-items: start; flex-direction: column; }
  .address-location-button { width: 100%; }
  .image-dropzone { grid-template-columns: auto minmax(0, 1fr); }
  .image-dropzone-format { display: none; }
  .image-attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-crop-controls { grid-template-columns: 46px minmax(0, 1fr) 46px; padding-inline: 1rem; }
  .image-zoom-button { width: 46px; height: 46px; }
  .image-zoom-range { grid-template-columns: 1fr auto; gap: .3rem; }
  .image-zoom-range > span { grid-column: 1 / -1; }
  .image-crop-gesture { margin-inline: 1rem; }
  .image-crop-dialog-actions { flex-direction: column-reverse; }
  .image-crop-dialog-actions .button { width: 100%; }
}

@media (max-width: 390px) {
  .listing-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
}

/* Reuse advertisement description typography for the full stutteri story. */
.stable-story-body { min-width: 0; overflow-wrap: anywhere; }
.stable-story-body.detail-copy h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.stable-story-copy { align-self: start; }
.stable-story-copy p { overflow-wrap: anywhere; }
.stable-story-section > .stable-story-body, .stable-draft-preview-story > .stable-story-body { grid-column: 1 / -1; margin-top: 0; }

/* Preserve the full asset, with balanced photo/text space at each width. */
.stable-hero--contained { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); min-height: 0; padding: clamp(2rem, 4vw, 4rem) max(2rem, calc((100% - 1200px) / 2)); }
.stable-hero--contained .stable-hero-image { position: relative; inset: auto; grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 560px, var(--hero-native-width)); height: auto; max-height: 560px; object-fit: contain; border-radius: .75rem; }
.stable-hero--contained .stable-hero-scrim, .stable-hero--missing .stable-hero-image { display: none; }
.stable-hero--contained .stable-hero-content { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; padding: 0; }
.stable-hero--contained .eyebrow { margin-top: 2.5rem; }
.stable-hero--contained h1 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); overflow-wrap: anywhere; }
@media (max-width: 960px) {
    .stable-hero--contained { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2rem max(1.25rem, calc((100% - 640px) / 2)) 2.5rem; }
    .stable-hero--contained .stable-hero-image { grid-column: 1; grid-row: 1; width: min(100%, 440px, var(--hero-native-width)); max-height: 440px; }
    .stable-hero--contained .stable-hero-content { grid-column: 1; grid-row: 2; }
    .stable-hero--contained .eyebrow { margin-top: 1.5rem; }
    .stable-hero--contained h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
}

.stable-photo-gallery { padding-bottom: clamp(3rem, 6vw, 6rem); scroll-margin-top: 6rem; }
.stable-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stable-photo-grid a { display: block; overflow: hidden; border-radius: .75rem; background: var(--muted); }
.stable-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.stable-photo-grid a:hover img { transform: scale(1.025); }
.stable-photo-grid a:focus-visible { outline: 3px solid var(--stable-accent); outline-offset: 4px; }
.stable-photo-dialog { width: min(1000px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid #40554a; border-radius: 1rem; background: #17271f; color: white; }
.stable-photo-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.stable-photo-dialog > img { display: block; width: 100%; height: min(70dvh, 760px); object-fit: contain; }
.stable-photo-toolbar, .stable-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stable-photo-toolbar { padding-bottom: .75rem; }
.stable-photo-controls { padding-top: .75rem; }
.stable-photo-dialog button { padding: .65rem 1rem; border: 1px solid #718078; border-radius: .5rem; background: transparent; color: white; cursor: pointer; }
.stable-photo-dialog button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 760px) { .stable-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } }
@media (prefers-reduced-motion: reduce) { .stable-photo-grid img { transition: none; } }
