/*
  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: #fbfbfa;
  --foreground: #18211e;
  --card: #ffffff;
  --card-foreground: #18211e;
  --primary: #243a32;
  --primary-foreground: #fcfcfb;
  --secondary: #edf1ed;
  --secondary-foreground: #26342e;
  --muted: #f0f2ef;
  --muted-foreground: #68736c;
  /* Ice teal is the shared accent. The deeper tone keeps small labels readable. */
  --accent: #197f83;
  --accent-soft: #e2f6f5;
  --accent-inverse: #a9e8e5;
  --accent-border: #a7dfdd;
  --border: #dce2dc;
  --input: #dce2dc;
  --ring: #287f83;
  --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);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, 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 { letter-spacing: -.035em; 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(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.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; }

.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: grid; width: 1.6rem; height: 1.6rem; place-items: center; color: var(--accent); font-size: 1.15rem; }
.brand-mark svg { width: 100%; height: 100%; }
.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 { width: 1.24rem; height: 1.24rem; }
.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(20, 39, 29, .7); background: var(--accent-inverse); color: #15595d; }
.notification-panel { position: fixed; z-index: 90; top: 5.2rem; right: max(1.25rem, calc((100vw - 1180px) / 2)); width: min(390px, calc(100vw - 2rem)); 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(490px, calc(100vh - 150px)); 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: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-footer { display: flex; min-height: 3.1rem; align-items: center; justify-content: space-between; padding: 0 1rem; background: #f7f9f7; color: var(--primary); font-size: .75rem; font-weight: 760; }
.notification-panel-footer span { color: var(--accent); }
.mobile-notification-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 .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: Georgia, "Times New Roman", 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-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: thin; }
.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: #162c23; box-shadow: 0 7px 15px rgba(18, 38, 29, .2); }
.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: 330px; margin: 0; color: var(--muted-foreground); font-size: .95rem; }
.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: radial-gradient(circle at 84% 10%, rgba(119, 222, 218, .28), transparent 27rem), linear-gradient(135deg, #183229, #2c4d41); color: #fff; }
.stable-directory-hero-content { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.stable-directory-back { color: rgba(255,255,255,.77); }
.stable-directory-back:hover { color: #fff; }
.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: Georgia, "Times New Roman", 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; aspect-ratio: 1.45 / 1; 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: 1.05rem; 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(2.5rem, 4vw, 3.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: var(--background); 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; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; 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 { 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 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 i { display: inline-grid; width: .68rem; height: .68rem; place-items: center; border-radius: 999px; background: var(--primary); color: white; font-size: .5rem; font-style: normal; line-height: 1; }
.marketplace-map-legend .is-stutteri { border-color: var(--accent-border); background: #f1fbfa; color: #176b70; }
.marketplace-map-legend .is-stutteri i { background: var(--accent); color: #fff; }
.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 { width: 0 !important; height: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; }
.marketplace-map-pin { display: inline-flex; min-height: 2.1rem; align-items: center; justify-content: center; gap: .25rem; border: 2px solid #fff; border-radius: 999px; padding: .34rem .6rem; background: var(--primary); box-shadow: 0 4px 13px rgba(20, 35, 27, .28); color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; white-space: nowrap; transform: translate(-50%, -50%); }
.marketplace-map-pin.is-stutteri { border-color: #c8f2f0; background: #56c3c2; color: #133e40; }
.marketplace-map-pin b { color: #fff; font-size: .8rem; }
.marketplace-map-pin.is-stutteri b { color: currentColor; }
.marketplace-map-pin i { display: block; width: .42rem; height: .42rem; border-radius: 999px; background: currentColor; }
.marketplace-map-pin.is-single-advertisement { width: 1.1rem; min-height: 1.1rem; padding: 0; }
.marketplace-map-cluster { width: 48px; height: 48px; margin: 0 !important; border: 3px solid rgba(255,255,255,.9); border-radius: 999px; background: var(--primary); box-shadow: 0 4px 13px rgba(20, 35, 27, .25); color: #fff; text-align: center; transform: translate(-50%, -50%); }
.marketplace-map-cluster span { display: block; padding-top: .38rem; font-size: .84rem; font-weight: 850; line-height: 1; }
.marketplace-map-cluster small { display: block; margin-top: .1rem; font-size: .48rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.marketplace-map-cluster.has-stutteri { border-color: #c8f2f0; background: #56c3c2; color: #133e40; }
.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; }
.listing-card { 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-image { position: relative; aspect-ratio: 1 / .78; overflow: hidden; background: var(--muted); }
.listing-image-link { display: block; width: 100%; height: 100%; }
.listing-image-link > img:first-child { width: 100%; height: 100%; object-fit: cover; 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); }
.merchant-avatar { position: absolute; 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); }
.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: 1rem; }
.listing-meta, .listing-card-footer { display: flex; 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: .5rem 0 1rem; overflow: hidden; font-size: .98rem; font-weight: 720; line-height: 1.24; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.listing-card-footer { align-items: center; margin-top: auto; padding-top: .7rem; 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: Georgia, serif; font-weight: 400; }
.payment-sample-heading > p:last-child { max-width: 610px; margin: 0; color: var(--muted-foreground); line-height: 1.65; }
.payment-environment { display: flex; max-width: 780px; align-items: center; gap: .85rem; margin-bottom: 1.5rem; padding: .9rem 1rem; border-color: #9cd4d1; background: #effcfb; }
.payment-environment > span { display: grid; width: 2.1rem; height: 2.1rem; flex: 0 0 auto; place-items: center; border-radius: 999px; background: #cfeeed; color: #15777a; font-size: 1rem; }
.payment-environment strong, .payment-environment p { display: block; margin: 0; }
.payment-environment strong { color: #164d4f; font-size: .82rem; }
.payment-environment p { margin-top: .12rem; color: #507173; font-size: .73rem; line-height: 1.45; }
.payment-environment--demo { border-color: #cbd4ce; background: #f7faf8; }
.payment-environment--demo > span { background: #e5eee8; color: #456151; }
.payment-environment--pensopay { border-color: #d7c8b1; background: #fffaf1; }
.payment-environment--pensopay > span { background: #f1e4cd; color: #785321; }
.payment-sample-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(270px, .72fr); gap: 1.25rem; align-items: start; }
.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-config { margin: -.1rem 0 0; color: #8b6739; 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); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: clamp(2rem, 4vw, 4.25rem); align-items: start; }
.detail-gallery { display: grid; grid-auto-columns: minmax(82%, 1fr); grid-auto-flow: column; gap: .75rem; overflow-x: auto; border-radius: var(--radius); scroll-snap-type: x mandatory; }
.detail-gallery img { width: 100%; height: min(530px, 60vw); border-radius: var(--radius); object-fit: cover; scroll-snap-align: start; }
.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); }
.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-location { color: var(--muted-foreground); }

.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 { max-width: 720px; padding-block: 10rem; }
.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-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; aspect-ratio: 1.75 / 1; 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: linear-gradient(115deg, rgba(14, 29, 22, .84), rgba(26, 50, 39, .36)), url("/images/ice-horse-hero.svg") 50% / cover; color: white; }
.auth-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(11, 24, 18, .42), transparent 60%); }
.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; }
.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; }
.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 { max-width: 760px; padding-block: clamp(5rem, 14vw, 11rem); }
.account-page h1 { margin-bottom: 1rem; }
.account-copy { color: var(--muted-foreground); font-size: 1.05rem; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.account-actions form { margin: 0; }

/* 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: radial-gradient(circle at 83% 14%, rgba(119, 222, 218, .28), transparent 28rem), linear-gradient(135deg, #193229, #2d4a3c); 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: Georgia, "Times New Roman", 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-upgrade-trust { padding: 1.35rem; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; box-shadow: 0 18px 45px rgba(9, 26, 18, .18); backdrop-filter: blur(12px); }
.stable-upgrade-trust-mark { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; margin-bottom: 1.35rem; border-radius: 999px; background: var(--accent-inverse); color: #174548; font-size: 1rem; }
.stable-upgrade-trust .eyebrow { margin-bottom: .55rem; font-size: .62rem; }
.stable-upgrade-trust strong { display: block; max-width: 265px; font-size: 1.08rem; line-height: 1.35; }
.stable-upgrade-trust > p:last-child { margin: .75rem 0 0; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.6; }
.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-steps-intro 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); font-size: 1.32rem; }
.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-status--live { background: #e8f3e9; color: #346044; }
.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: .74rem; margin: 0; padding: 0; list-style: none; color: #3d4d43; font-size: .82rem; line-height: 1.45; }
.stable-plan-benefits li { position: relative; padding-left: 1.55rem; }
.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: 1rem 0 0; padding: .7rem; border-radius: calc(var(--radius) - .28rem); background: #f4f7f4; color: #5c6b61; font-size: .71rem; line-height: 1.5; }
.stable-plan-action { width: 100%; margin-top: auto; justify-content: center; }
.stable-plan-note + .stable-plan-action { margin-top: .9rem; }
.stable-upgrade-steps-section { padding-block: clamp(4.5rem, 9vw, 8rem); background: #eff3ef; }
.stable-upgrade-steps { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(2.4rem, 9vw, 10rem); align-items: start; }
.stable-upgrade-steps-intro { position: sticky; top: 105px; }
.stable-upgrade-steps-intro > p:not(.eyebrow) { max-width: 390px; margin: 1rem 0 0; color: var(--muted-foreground); font-size: .9rem; line-height: 1.7; }
.stable-upgrade-step-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.stable-upgrade-step-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border: 1px solid #d8e1d9; border-radius: var(--radius); background: rgba(255,255,255,.72); }
.stable-upgrade-step-list li > span { color: var(--accent); font-size: .73rem; font-weight: 820; letter-spacing: .08em; }
.stable-upgrade-step-list h3 { margin: 0 0 .35rem; font-size: 1rem; }
.stable-upgrade-step-list p { margin: 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.6; }
.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; }
.stable-upgrade-closing { padding-block: clamp(4.5rem, 9vw, 8rem); background: #244033; color: #fff; text-align: center; }
.stable-upgrade-closing .shell { display: grid; justify-items: center; }
.stable-upgrade-closing .eyebrow { color: var(--accent-inverse); }
.stable-upgrade-closing h2 { max-width: 720px; margin: 0; font-size: clamp(2.35rem, 5vw, 4.8rem); }
.stable-upgrade-closing p:not(.eyebrow) { max-width: 470px; margin: 1rem 0 1.4rem; color: rgba(255,255,255,.75); line-height: 1.65; }
.stable-upgrade-closing .button-primary { background: #89ddda; color: #173d3f; }
.stable-upgrade-closing .button-primary:hover { background: #b5eeeb; }

/* 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-follow-button { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .45rem; margin-top: 1.2rem; 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: Georgia, "Times New Roman", serif; font-size: 6.5rem; line-height: .75; }
.stable-story-copy p { max-width: 690px; margin: 1.2rem 0 2rem; color: #34453b; font-family: Georgia, "Times New Roman", 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-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-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2.6rem, 5vw, 5.5rem); }
.workspace-create-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.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: Georgia, "Times New Roman", 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; }
.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; }
.owned-listings { display: grid; gap: .8rem; }
.owned-listing { display: grid; grid-template-columns: 170px minmax(0, 1fr); overflow: hidden; transition: border .18s ease, box-shadow .18s ease, transform .18s ease; }
.owned-listing:hover { border-color: #b9c9bb; box-shadow: var(--shadow-card); transform: translateY(-1px); }
.owned-listing-image { position: relative; min-height: 150px; overflow: hidden; 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.04); }
.owned-status { position: absolute; top: .65rem; left: .65rem; padding: .28rem .48rem; border: 1px solid rgba(44,58,49,.1); border-radius: 999px; background: rgba(255,255,255,.94); color: #737b76; font-size: .64rem; font-weight: 800; }
.owned-status.is-active { background: #e9f4e9; color: #386343; }
.owned-listing-content { display: grid; padding: 1rem 1.15rem; }
.owned-listing-meta { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted-foreground); font-size: .69rem; font-weight: 650; }
.owned-listing-content h2 { margin: .35rem 0 .42rem; font-size: 1.1rem; }
.owned-listing-content h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.owned-listing-content > p { margin: 0; color: #5b675f; font-size: .82rem; }
.owned-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.owned-listing-actions form { margin: 0; }
.owned-listing-actions .button { min-height: 2.2rem; padding: .45rem .7rem; font-size: .76rem; }
.listing-delete { border: 0; padding: .45rem; background: transparent; color: #a25442; font-size: .73rem; font-weight: 720; cursor: pointer; }
.listing-delete:hover { color: #762e20; text-decoration: underline; text-underline-offset: 3px; }
.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-page { max-width: 1080px; }
.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-of-type { padding-top: 0; border-top: 0; }
.editor-field-heading { margin-bottom: 1.1rem; }
.editor-field-heading h2 { margin: 0 0 .22rem; font-size: 1.12rem; }
.editor-field-heading p { margin: 0; color: var(--muted-foreground); font-size: .79rem; }
.editor-label { display: grid; gap: .42rem; margin-top: .9rem; color: #35443b; font-size: .78rem; font-weight: 760; }
.editor-label:first-of-type { margin-top: 0; }
.editor-label .input, .editor-label .select, .textarea { padding: .65rem .75rem; background: var(--background); }
.editor-label small { color: var(--muted-foreground); font-size: .69rem; font-weight: 500; }
.editor-category-note { display: inline-flex; align-items: center; min-height: 1.9rem; margin: .8rem 0 0; padding: .42rem .64rem; border: 1px solid #dbe5dc; border-radius: calc(var(--radius) - .35rem); background: #f2f7f2; color: #52685a; font-size: .7rem; font-weight: 650; line-height: 1.35; }
.editor-category-note:empty { display: none; }
.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; gap: .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 { max-width: 1120px; 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: Georgia, "Times New Roman", 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-editor-notice { margin: -1.4rem 0 1.3rem; }
.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-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-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 / .8; 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 { margin-top: .35rem; }
.address-map-shell { position: relative; z-index: 1; margin-top: 1.15rem; overflow: hidden; border-color: #cfdbd1; 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; }
.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 / .78; 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 img { aspect-ratio: 1 / .78; height: auto; max-height: 530px; }

@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-steps, .stable-upgrade-faq-grid { grid-template-columns: 1fr; }
  .stable-upgrade-trust { max-width: 480px; }
  .stable-upgrade-steps-intro { position: static; }
  .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) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .header-inner { min-height: 66px; gap: .8rem; }
  .brand { font-size: 1.35rem; }
  .desktop-nav, .header-create, .header-actions { display: none; }
  .mobile-notification-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-notification-trigger svg { width: 1.2rem; height: 1.2rem; }
  .mobile-notification-trigger + .mobile-menu-trigger { margin-left: 0; }
  .mobile-notification-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-notification-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; 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-stable { width: 100%; min-height: 3rem; margin-top: .55rem; }
  .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; }
  .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: .75rem; 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-content { padding: .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 { grid-auto-columns: 92%; }
  .detail-gallery img { height: auto; }
  .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; }
  .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; }
  .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; }
  .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; }
  .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-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-upgrade-trust { padding: 1.15rem; }
  .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-editor-aside { grid-template-columns: 1fr; }
  .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-sample-layout { grid-template-columns: 1fr; }
  .payment-sample-aside { position: static; }
  .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 > .button { margin-top: .85rem; }
  .workspace-topbar { align-items: start; }
  .workspace-create-actions { gap: .35rem; }
  .workspace-create-actions .button { padding-inline: .65rem; font-size: .71rem; }
  .owned-listing { grid-template-columns: 120px minmax(0, 1fr); }
  .owned-listing-image { min-height: 100%; }
  .owned-listing-content { padding: .8rem; }
  .owned-listing-meta { display: block; }
  .owned-listing-meta span + span { display: none; }
  .owned-listing-content h2 { font-size: .95rem; }
  .owned-listing-actions { margin-top: .75rem; }
  .editor-field-grid { grid-template-columns: 1fr; gap: 0; }
  .editor-aside { grid-template-columns: 1fr; }
  .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; }
}
