

/* Start:/local/templates/mtemplate/assets/css/styles.css?178730336784504*/
:root {
  --bg: #0b1424;
  --bg-deep: #08111f;
  --surface: #111e30;
  --surface-2: #17263a;
  --surface-3: #1c2d43;
  --surface-light: #f5f8fb;
  --text: #f4f8fc;
  --text-dark: #101927;
  --muted: #93a4b8;
  --muted-2: #6f8298;
  --line: rgba(159, 187, 214, .16);
  --line-strong: rgba(159, 187, 214, .28);
  --primary: #2cc6f3;
  --primary-strong: #11b4e6;
  --primary-soft: rgba(44, 198, 243, .12);
  --success: #46d79a;
  --danger: #ff667f;
  --warning: #f4b94c;
  --info: #6598ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: Inter, "Noto Sans Armenian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[lang="hy"] body { font-family: "Noto Sans Armenian", Inter, system-ui, sans-serif; }
body.nav-open { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.container { width: min(calc(100% - 36px), var(--container)); margin: 0 auto; }
.narrow-container { width: min(calc(100% - 36px), 860px); }
.site-main { min-height: 70vh; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, .9);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0; padding: 0; }
.logo-image { display: block; width: 152px; height: auto; max-width: none; }
.footer-logo .logo-image { width: 152px; }
.logo-text { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.logo-text span { color: var(--primary); }
.main-nav { align-self: stretch; display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.main-nav__item { position: relative; display: flex; align-self: stretch; align-items: center; }
.main-nav > .main-nav__link,
.main-nav__item > .main-nav__link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 27px 0 25px; border: 0; background: transparent; color: #aebed0; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .18s ease; }
.main-nav > .main-nav__link::after,
.main-nav__item > .main-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .18s ease; }
.main-nav > .main-nav__link:hover,
.main-nav > .main-nav__link.is-active,
.main-nav__item > .main-nav__link:hover,
.main-nav__item > .main-nav__link.is-active { color: #fff; }
.main-nav > .main-nav__link.is-active::after,
.main-nav__item > .main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__caret { width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; transition: transform .18s ease; }
.main-nav__submenu { position: absolute; top: 100%; left: 50%; z-index: 120; width: max-content; min-width: 190px; padding: 7px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 18px 38px rgba(19, 42, 66, .12); opacity: 0; visibility: hidden; transform: translate(-50%, 5px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.main-nav__submenu-link { display: block; padding: 10px 12px; border-radius: 8px; color: var(--primary); font-size: 13px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.main-nav__submenu-link::after { display: none !important; }
.main-nav__submenu-link:hover, .main-nav__submenu-link.is-active { color: var(--primary-strong); background: var(--primary-soft); }
.main-nav__item--has-submenu.is-open .main-nav__submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav__item--has-submenu.is-open .main-nav__caret { transform: rotate(225deg) translate(-1px, -1px); }
.nav-unread-dot { width: 7px; height: 7px; flex: 0 0 7px; display: inline-block; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px rgba(255,102,127,.12); }
.main-nav > .main-nav__link .nav-unread-dot,
.main-nav__item > .main-nav__link .nav-unread-dot { position: absolute; z-index: 2; top: 30px; right: -5px; margin: 0; }
.mobile-nav a .nav-unread-dot { margin-left: 7px; vertical-align: middle; }
.header-tools { align-self: stretch; display: flex; align-items: center; gap: 10px; }
.header-login { padding: 11px 12px; color: #c8d4e1; font-size: 14px; font-weight: 700; }
.header-auth-icon { display: none; }
.header-add-icon { display: none; }
.header-account { position: relative; align-self: stretch; display: flex; align-items: center; }
.header-account__toggle { display: inline-flex; align-items: center; gap: 8px; max-width: 150px; padding: 11px 4px 11px 12px; border: 0; background: transparent; color: #c8d4e1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.header-account__toggle:hover { color: #fff; }
.header-account__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account__caret { flex: 0 0 auto; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; transition: transform .18s ease; }
.header-account__dropdown { position: absolute; top: 100%; right: 0; z-index: 125; width: max-content; min-width: 220px; padding: 7px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 18px 38px rgba(19,42,66,.12); opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.header-account.is-open .header-account__dropdown { opacity: 1; visibility: visible; transform: none; }
.header-account.is-open .header-account__caret { transform: rotate(225deg) translate(-1px,-1px); }
.header-account__item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: left; white-space: nowrap; cursor: pointer; }
.header-account__item:hover { color: var(--primary-strong); background: var(--primary-soft); }
.header-account__divider { height: 1px; margin: 6px 5px; background: var(--line); }
.header-account__logout-form { margin: 0; }
.header-account__logout { color: #66758a; }
.header-account__logout:hover { color: var(--primary-strong); }
.header-language { position: relative; align-self: stretch; display: flex; align-items: center; }
.header-language__toggle {
  height: 42px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 11px; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255,255,255,.035); cursor: pointer; font-weight: 800; font-size: 13px;
}
.header-language__toggle img, .header-language__item img { width: 19px; height: 19px; border-radius: 50%; }
.header-language__toggle i { width: 7px; height: 7px; border-right: 1.5px solid #8da1b7; border-bottom: 1.5px solid #8da1b7; transform: rotate(45deg) translateY(-2px); }
.header-language__dropdown {
  position: absolute; top: 100%; right: 0; width: 180px;
  padding: 7px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px;
  background: #101c2d; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(5px); transition: .18s ease;
}
.header-language.is-open .header-language__dropdown { opacity: 1; visibility: visible; transform: none; }
.header-language__item { display: flex; padding: 10px; border-radius: 8px; color: #b8c6d5; font-size: 13px; font-weight: 650; }
.header-language__item span { display: flex; align-items: center; gap: 9px; }
.header-language__item:hover, .header-language__item.is-active { color: #fff; background: var(--primary-soft); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #dce6f0; cursor: pointer; }
.menu-toggle svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.mobile-nav { display: none; }

/* buttons */
.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 11px;
  font-size: 14px; font-weight: 750; cursor: pointer; transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #04131b; background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 28px rgba(44,198,243,.16); }
.btn-primary:hover { background: #53d4f7; border-color: #53d4f7; }
.btn-secondary, .btn-light { color: #e6eef7; background: rgba(255,255,255,.045); border-color: var(--line-strong); }
.btn-secondary:hover, .btn-light:hover { background: rgba(255,255,255,.075); border-color: rgba(44,198,243,.34); }
.btn-block { width: 100%; }
.header-add__plus {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  overflow: visible;
}
.text-link { color: #bcd0e3; font-weight: 700; font-size: 14px; }
.text-link b { color: var(--primary); margin-left: 5px; }
.text-link:hover { color: #fff; }
.text-link--block { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }

/* generic typography */
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
h3 { line-height: 1.16; }

/* home */
.home-hero { position: relative; overflow: hidden; padding: 82px 0 66px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 92% 12%, rgba(44,198,243,.13), transparent 30%), radial-gradient(circle at 14% 86%, rgba(24,96,160,.12), transparent 30%), var(--bg); }
.home-hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -250px; top: -300px; border: 1px solid rgba(44,198,243,.08); border-radius: 50%; pointer-events: none; }
.home-hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 72px; }
.home-hero__content { position: relative; z-index: 2; }
.product-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 8px 12px; border: 1px solid rgba(44,198,243,.33); border-radius: 999px; color: var(--primary); background: rgba(44,198,243,.055); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.product-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 15px var(--primary); }
.home-hero h1 { max-width: 780px; margin-bottom: 22px; font-weight: 500; font-size: clamp(48px, 6vw, 76px); }
.hero-summary { max-width: 640px; margin: 0 0 28px; color: #a8b8c9; font-size: 19px; line-height: 1.6; }
.global-search { max-width: 690px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.global-search input { width: 100%; height: 44px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 15px; }
.global-search input::placeholder, input::placeholder, textarea::placeholder { color: #75899e; }
.search-icon { position: relative; width: 16px; height: 16px; display: block; border: 1.8px solid #7290aa; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; background: #7290aa; transform: rotate(45deg); border-radius: 2px; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.product-window { overflow: hidden; border: 1px solid rgba(157,188,215,.22); border-radius: 28px; background: linear-gradient(150deg, rgba(42,69,94,.72), rgba(18,30,48,.94)); box-shadow: var(--shadow); }
.product-window__bar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #70879f; font-size: 11px; }
.product-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: #6f8193; }
.product-window__bar span { margin-left: auto; }
.product-window__body { padding: 30px; }
.window-label { margin-bottom: 10px; color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.product-window h2 { margin-bottom: 24px; font-size: 31px; font-weight: 550; }
.window-actions { display: grid; gap: 9px; }
.window-actions a { min-height: 62px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid rgba(177,197,216,.17); border-radius: 12px; background: rgba(255,255,255,.055); transition: .18s ease; }
.window-actions a:hover { border-color: rgba(44,198,243,.45); background: rgba(44,198,243,.08); transform: translateX(2px); }
.window-actions b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: rgba(44,198,243,.12); font-size: 11px; }
.window-actions span { font-size: 14px; font-weight: 700; }
.window-actions i { color: var(--primary); font-style: normal; }
.home-launcher { padding: 26px 0 16px; }
.launcher-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.launcher-card { position: relative; min-height: 156px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); transition: .18s ease; }
.launcher-card:last-child { border-right: 0; }
.launcher-card:hover { background: var(--primary-soft); }
.launcher-code { margin-bottom: auto; color: #61758a; font-size: 11px; font-weight: 800; }
.launcher-card strong { margin-top: 22px; font-size: 16px; }
.launcher-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.launcher-card i { position: absolute; top: 17px; right: 18px; color: var(--primary); font-style: normal; }
.content-section { padding: 74px 0; }
.content-section--dark { padding: 88px 0; background: var(--bg-deep); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading > div > span, .service-overview__copy > span { display: block; margin-bottom: 8px; color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.section-heading h2 { margin-bottom: 0; font-size: 38px; font-weight: 560; }
.listing-grid { display: grid; gap: 18px; }
.listing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: .18s ease; }
.listing-card:hover { transform: translateY(-3px); border-color: rgba(44,198,243,.3); box-shadow: 0 22px 50px rgba(0,0,0,.18); }
.listing-card__media { position: relative; height: 245px; overflow: hidden; background: #152236; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.05); transition: transform .3s ease; }
.listing-card:hover .listing-card__media img { transform: scale(1.025); }
.listing-card__body { padding: 19px; }
.listing-card__body h3 { margin: 0 0 7px; font-size: 20px; }
.listing-card__body p { margin: 0; color: var(--muted); font-size: 14px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.meta-row b { color: var(--primary); }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.listing-card__media > .badge { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(8px); }
.badge-danger { color: #ffdce3; background: rgba(158,33,62,.78); border-color: rgba(255,102,127,.32); }
.badge-success { color: #cbffe7; background: rgba(18,104,70,.82); border-color: rgba(70,215,154,.3); }
.badge-info { color: #dce7ff; background: rgba(48,80,150,.82); border-color: rgba(101,152,255,.3); }
.save-button { position: absolute; right: 11px; top: 11px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(8,17,31,.68); color: #fff; cursor: pointer; font-size: 19px; backdrop-filter: blur(8px); }
.save-button.is-saved { color: var(--primary); border-color: rgba(44,198,243,.45); }
.save-button--large { position: static; flex: 0 0 auto; }
.service-overview { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; }
.service-overview__copy h2 { max-width: 520px; margin-bottom: 16px; font-size: 43px; font-weight: 520; }
.service-overview__copy p { max-width: 560px; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.service-stack { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-stack a { min-height: 78px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.service-stack a:last-child { border-bottom: 0; }
.service-stack a:hover { background: var(--primary-soft); }
.service-stack b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(44,198,243,.1); color: var(--primary); font-size: 11px; }
.service-stack div { display: grid; gap: 2px; }
.service-stack strong { font-size: 15px; }
.service-stack span { color: var(--muted); font-size: 12px; }
.service-stack i { color: var(--primary); font-style: normal; }

/* generic pages */
.page-shell { padding: 52px 0 84px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head--compact { align-items: flex-start; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(38px, 5vw, 56px); font-weight: 560; }
.page-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 20px; color: #71859a; font-size: 12px; font-weight: 700; }
.breadcrumbs > * { display: inline-flex; align-items: center; }
.breadcrumbs > * + *::before { content: "/"; flex: 0 0 auto; margin: 0 9px; color: #51677c; }
.breadcrumbs a { color: #9eb0c2; }
.breadcrumbs a:hover { color: var(--primary); }

@media (max-width: 720px) {
  .breadcrumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .breadcrumbs > * {
    flex: 0 0 auto;
  }
}
.filter-panel { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px,.55fr)) auto; gap: 9px; margin-bottom: 22px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.filter-panel select, .filter-panel input, .form-card input, .form-card select, .form-card textarea, .auth-form input, .answer-form textarea, .forum-search input { width: 100%; border: 1px solid var(--line); outline: 0; border-radius: 10px; background: #0f1b2c; color: #eaf1f8; }
.filter-panel select { height: 44px; padding: 0 12px; }
.filter-search { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #0f1b2c; }
.filter-search input { height: 40px; padding: 0; border: 0; background: transparent; }
.content-toolbar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 17px; color: #c9d5e1; }
.toolbar-count { color: var(--muted); font-size: 13px; font-weight: 650; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.segmented button { min-height: 35px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #8fa2b5; font-size: 12px; font-weight: 750; cursor: pointer; }
.segmented button.is-active { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(44,198,243,.18); }
.segmented--full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.is-filter-hidden { display: none !important; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.panel-label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-title h2 { margin: 0; font-size: 23px; font-weight: 650; }
.panel-title > span { color: var(--muted); font-size: 13px; }

/* details */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.detail-main { display: grid; gap: 18px; min-width: 0; }
.detail-aside { display: grid; gap: 14px; position: sticky; top: 96px; }
.detail-gallery { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-gallery > img { width: 100%; height: 520px; object-fit: cover; filter: saturate(.82); }
.detail-gallery__thumbs { display: flex; gap: 8px; padding: 10px; }
.detail-gallery__thumbs button { width: 75px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: transparent; opacity: .55; cursor: pointer; }
.detail-gallery__thumbs button.is-active { opacity: 1; border-color: var(--primary); }
.detail-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 27px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-title-row h1 { margin: 12px 0 6px; font-size: 42px; font-weight: 600; }
.detail-title-row p { margin: 0; color: var(--muted); }
.detail-copy h2 { margin: 30px 0 10px; font-size: 23px; }
.detail-copy > p { margin: 0; color: #b1c0cf; line-height: 1.7; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.facts-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.facts-grid span, .facts-grid b { display: block; }
.facts-grid span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.facts-grid b { font-size: 13px; }
.contact-card, .safety-card, .detail-aside > .panel { padding: 20px; }
.service-detail-main > .panel { padding: 24px 26px; }
.owner-row, .topic-author { display: flex; align-items: center; gap: 11px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.owner-row div, .topic-author div { display: grid; gap: 2px; }
.owner-row small, .topic-author small, .detail-aside small { color: var(--muted); font-size: 11px; }
.contact-card .btn:first-of-type { margin-top: 18px; }
.contact-card .btn + .btn { margin-top: 8px; }
.safety-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.business-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #132136, #0f1c2d); }
.business-hero h1 { margin: 10px 0 6px; font-size: 48px; font-weight: 560; }
.business-hero p { margin: 0; color: var(--muted); }
.business-score { display: grid; min-width: 110px; text-align: right; }
.business-score strong { color: var(--primary); font-size: 40px; line-height: 1; }
.business-score span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.business-person { display: flex; align-items: center; gap: 18px; }
.price-list { display: grid; }
.price-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list > div:last-child { border-bottom: 0; }
.price-list span { color: #c2ceda; }
.price-list b { color: #fff; white-space: nowrap; }
.mini-map { position: relative; height: 145px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/32px 32px, linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/32px 32px, #0c1829; }
.mini-map .map-marker { position: absolute; left: 52%; top: 47%; }

/* forms */
.form-layout { display: grid; gap: 14px; }
.form-card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-step { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.form-card h2 { margin: 4px 0 18px; font-size: 22px; }
.form-card label, .auth-form label, .answer-form label { display: grid; gap: 7px; color: #aebdcb; font-size: 12px; font-weight: 650; }
.form-card input, .form-card select, .auth-form input { height: 46px; padding: 0 12px; }
.form-card textarea, .answer-form textarea { min-height: 120px; padding: 12px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid__full { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice-grid label { display: block; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { min-height: 54px; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0f1b2c; color: #b6c3d0; cursor: pointer; text-align: center; }
.choice-grid input:checked + span { border-color: rgba(44,198,243,.52); background: var(--primary-soft); color: #fff; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }

/* pet profiles/social */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pet-profile-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: .18s ease; }
.pet-profile-card:hover { transform: translateY(-2px); border-color: rgba(44,198,243,.32); }
.pet-profile-card__photo { position: relative; height: 260px; }
.pet-profile-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); }
.online-dot { position: absolute; right: 14px; bottom: 14px; width: 12px; height: 12px; border: 3px solid #111e30; border-radius: 50%; background: var(--success); }
.pet-profile-card > div:last-child { padding: 18px; }
.pet-state { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pet-profile-card h3 { margin: 7px 0 4px; font-size: 23px; }
.pet-profile-card p { margin: 0; color: #b1becc; font-size: 13px; }
.pet-profile-card small { display: block; margin-top: 12px; color: var(--muted-2); }
.social-profile { padding: 32px 0 80px; }
.profile-cover { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-cover__art { height: 190px; background: radial-gradient(circle at 75% 30%, rgba(44,198,243,.25), transparent 28%), linear-gradient(120deg,#17283c,#0c1829); }
.profile-identity { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; padding: 0 24px 24px; }
.profile-avatar { width: 132px; height: 132px; margin-top: -66px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.profile-identity h1 { margin: 8px 0 2px; font-size: 38px; }
.profile-identity p { margin: 0; color: var(--muted); }
.profile-actions { display: flex; gap: 8px; }
.social-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.social-feed { display: grid; gap: 16px; }
.social-aside { position: sticky; top: 96px; display: grid; gap: 14px; }
.social-feed > .panel, .social-aside > .panel { padding: 22px; }
.profile-about > p { margin: 22px 0 0; color: #b1c0cf; }
.feed-post__head { display: flex; gap: 10px; margin-bottom: 15px; }
.feed-post__head div { display: grid; }
.feed-post p { color: #c4d0dc; }
.feed-post > img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; filter: saturate(.78); }
.mini-link { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: #c5d1dd; font-size: 13px; }
.mini-link b { color: var(--primary); }

/* clinics/map */
.map-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(420px,1.15fr); gap: 18px; align-items: start; }
.clinic-results { display: grid; gap: 10px; }
.clinic-result-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .18s ease; }
.clinic-result-card:hover { border-color: rgba(44,198,243,.35); }
.clinic-result-card__top { display: grid; grid-template-columns: 45px 1fr auto; gap: 12px; align-items: center; }
.clinic-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 850; }
.clinic-result-card h3 { margin: 0 0 3px; font-size: 17px; }
.clinic-result-card p { margin: 0; color: var(--muted); font-size: 12px; }
.clinic-result-card__top > b { color: var(--primary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.chip-row span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: #93a5b8; font-size: 10px; }
.map-panel { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0d1a2b; }
.map-grid { position: relative; min-height: 560px; background: linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/50px 50px,linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px) 0 0/50px 50px,radial-gradient(circle at 30% 35%,rgba(44,198,243,.08),transparent 24%),#0c1828; }
.map-grid::before, .map-grid::after { content:""; position:absolute; left:-8%; right:-10%; height:45px; background:rgba(123,151,178,.09); transform:rotate(-10deg); top:38%; }
.map-grid::after { transform:rotate(13deg); top:67%; }
.map-marker { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(44,198,243,.48); border-radius: 9px 9px 9px 2px; background: #15304a; color: var(--primary); box-shadow: 0 12px 25px rgba(0,0,0,.25); font-size: 11px; font-weight: 850; }
.map-grid .map-marker { position: absolute; z-index: 2; }
.m1 { left: 24%; top: 28%; }.m2 { left: 61%; top: 43%; }.m3 { left: 44%; top: 72%; }
.map-caption { display: flex; justify-content: space-between; gap: 16px; padding: 15px 17px; border-top: 1px solid var(--line); }
.map-caption span { color: var(--muted); font-size: 12px; }
.map-toggle { display: none; border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 750; cursor: pointer; }

/* services */
.service-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 20px; }
.service-categories a { min-height: 92px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); }
.service-categories a:hover { border-color: rgba(44,198,243,.34); background: var(--primary-soft); }
.service-categories span { color: var(--muted-2); font-size: 10px; font-weight: 800; }
.service-categories strong { font-size: 15px; }
.service-categories i { color: var(--primary); font-style: normal; }
.provider-list { display: grid; gap: 9px; }
.provider-card { min-height: 86px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.provider-card:hover { border-color: rgba(44,198,243,.33); }
.provider-avatar { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(44,198,243,.25); border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 17px; font-weight: 800; }
.provider-avatar--large { width: 86px; height: 86px; border-radius: 18px; font-size: 28px; }
.provider-card__main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.provider-card h3 { margin: 0 0 4px; font-size: 17px; }
.provider-card p { margin: 0; color: var(--muted); font-size: 12px; }
.provider-meta { min-width: 150px; display: grid; justify-items: end; }
.provider-meta span { color: var(--warning); font-size: 12px; }
.provider-meta b { font-size: 13px; }
.provider-card > i { color: var(--primary); font-style: normal; }

/* forum */
.forum-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; align-items: start; }
.forum-sidebar { position: sticky; top: 96px; padding: 14px; }
.forum-sidebar a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: 8px; color: #9eb0c1; font-size: 13px; font-weight: 650; }
.forum-sidebar a:hover, .forum-sidebar a.is-active { color: #fff; background: var(--primary-soft); }
.forum-sidebar b { color: #5f7790; font-size: 11px; }
.forum-main { min-width: 0; }
.forum-search { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 8px 8px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.forum-search input { height: 38px; padding: 0; border: 0; background: transparent; }
.topic-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.topic-row { position: relative; min-height: 96px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: #142337; }
.topic-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.topic-content > span { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.topic-content h3 { margin: 3px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.topic-content small { color: var(--muted); font-size: 11px; }
.topic-row > b { color: var(--primary); }
.topic-page > header { margin-bottom: 18px; }
.topic-page h1 { max-width: 900px; margin: 12px 0 18px; font-size: 46px; font-weight: 560; }
.topic-message, .answer { padding: 24px; }
.topic-message p, .answer p { margin: 0; color: #c0ccd8; line-height: 1.75; }
.answers-head { margin: 30px 0 12px; }
.answers-head h2 { margin: 0; font-size: 24px; }
.answer-list { display: grid; gap: 12px; }
.answer .topic-author { margin-bottom: 16px; }
.answer-form { margin-top: 16px; padding: 20px; }
.answer-form .btn { margin-top: 12px; }
.form-card__wide { min-width: 0; }
.form-card__wide > label + label { margin-top: 14px; }

/* auth/dashboard/search */
.auth-page { min-height: calc(100vh - 74px); display: flex; align-items: stretch; }
.auth-grid { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; padding-top: 65px; padding-bottom: 65px; }
.auth-pitch h1 { max-width: 690px; font-size: 58px; font-weight: 520; }
.auth-feature-list { max-width: 620px; display: grid; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.auth-feature-list > div { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.auth-feature-list > div:last-child { border-bottom: 0; }
.auth-feature-list b { color: var(--primary); font-size: 11px; }
.auth-feature-list span { color: #becbd8; font-size: 14px; font-weight: 650; }
.auth-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-form { display: none; gap: 14px; margin-top: 22px; }
.auth-form.is-active { display: grid; }
.auth-form h2 { margin-bottom: 4px; font-size: 26px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.dashboard-head > div > span { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dashboard-head h1 { margin: 7px 0 0; font-size: 46px; font-weight: 560; }
.dashboard-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; align-items: start; }
.dashboard-nav { display: grid; position: sticky; top: 96px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.dashboard-nav a { padding: 11px 12px; border-radius: 8px; color: #9fb0c1; font-size: 13px; font-weight: 650; }
.dashboard-nav a.is-active, .dashboard-nav a:hover { color: #fff; background: var(--primary-soft); }
.dashboard-content { display: grid; gap: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.metric-card { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { color: var(--primary); font-size: 36px; }
.dashboard-content > .panel { padding: 20px; }
.activity-list { display: grid; }
.activity-list a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-list span { color: var(--primary); font-size: 10px; font-weight: 800; }
.activity-list div { display: grid; }
.activity-list small { color: var(--muted); font-size: 11px; }
.activity-list > a > b { color: var(--primary); }
.global-search--light { max-width: none; margin-bottom: 30px; background: var(--surface); }
.search-groups { display: grid; gap: 16px; }
.search-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.search-group__head { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.search-group__head h2 { margin: 0; font-size: 18px; }
.search-group__head a { color: var(--primary); font-size: 11px; font-weight: 750; }
.search-result-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 15px 18px; }
.result-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.search-result-row div { display: grid; }
.search-result-row small { color: var(--muted); }
.search-result-row > b { color: var(--primary); }

/* breeds list */
.breeds-page { padding-top: 42px; }
.breeds-head { display: grid; grid-template-columns: 1fr minmax(420px,.7fr); align-items: end; gap: 40px; margin-bottom: 26px; }
.breeds-head h1 { margin: 0; font-size: 52px; font-weight: 560; }
.directory-search--compact { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.directory-search--compact input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: #fff; }
.breed-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.022); }
.breed-tab { padding: 9px 13px; border-radius: 7px; color: #8fa2b5; font-size: 12px; font-weight: 750; }
.breed-tab.is-active { color: #fff; background: var(--surface-3); }
.breed-tags-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.breed-filter-tag, .compact-tags span { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: #a6b5c5; font-size: 11px; font-weight: 720; cursor: pointer; }
.breed-filter-tag:hover, .breed-filter-tag.is-active { color: #fff; border-color: rgba(44,198,243,.38); background: var(--primary-soft); }
.breed-results__toolbar { margin-top: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.breed-results__toolbar > span { color: var(--muted); font-size: 11px; }
.breed-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.breed-list-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .18s ease; }
.breed-list-card:hover { transform: translateY(-2px); border-color: rgba(44,198,243,.32); }
.breed-list-card__image { height: 180px; overflow: hidden; background: #16263a; }
.breed-list-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .3s ease; }
.breed-list-card:hover img { transform: scale(1.025); }
.breed-list-card__body { padding: 14px; }
.breed-list-card h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.025em; }
.breed-list-card p { min-height: 39px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.breed-list-card__body > span { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.breed-list-card.is-search-hidden { display: none; }
.breed-search-empty, .breed-empty-state { padding: 30px; text-align: center; }
.breed-search-empty h3, .breed-empty-state h3 { margin-bottom: 7px; }
.breed-search-empty p, .breed-empty-state p { margin: 0; color: var(--muted); }

/* breed detail compatibility */
.breed-detail-page { padding: 40px 0 80px; }
.breed-detail-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.75fr); gap: 22px; margin-bottom: 20px; }
.breed-detail-media { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.breed-gallery-slide { display: block; height: 520px; }
.breed-gallery-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.breed-detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#15243a,#101d2f); }
.breed-detail-copy h1 { margin: 0 0 9px; font-size: 50px; font-weight: 560; }
.breed-subtitle { margin: 0 0 17px; color: var(--primary); font-size: 14px; font-weight: 650; }
.breed-intro { margin: 0; color: #a9b8c8; line-height: 1.7; }
.breed-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.breed-detail-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; align-items: start; }
.breed-detail-sidebar { position: sticky; top: 96px; display: grid; gap: 12px; }
.breed-info-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.breed-info-card > strong { display: block; margin-bottom: 12px; font-size: 14px; }
.breed-info-card dl { margin: 0; }
.breed-info-card dl > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.breed-info-card dt { color: var(--muted); font-size: 11px; }
.breed-info-card dd { margin: 0; text-align: right; font-size: 11px; font-weight: 700; }
.compact-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.compact-tags span { min-height: 30px; cursor: default; }
.breed-detail-content { display: grid; gap: 14px; min-width: 0; }
.breed-section-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.breed-section-card .section-kicker { display: block; margin-bottom: 7px; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.breed-section-card h1, .breed-section-card h2 { margin: 0 0 14px; font-size: 28px; font-weight: 600; }
.breed-section-card p, .breed-section-card li { color: #b3c1ce; line-height: 1.75; }
.breed-rating-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 18px; }
.rating-row { display: grid; grid-template-columns: 135px 1fr 34px; align-items: center; gap: 10px; }
.rating-row span { color: #b7c5d2; font-size: 11px; }
.rating-row i { position: relative; height: 5px; border-radius: 5px; background: #26364a; overflow: hidden; }
.rating-row i::after { content:""; position:absolute; inset:0 auto 0 0; width: var(--value); background: var(--primary); }
.rating-row b { color: #dce7f1; font-size: 10px; text-align: right; }
.owl-nav { position: absolute; left: 12px; right: 12px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.owl-nav button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22)!important; border-radius: 9px!important; background: rgba(8,17,31,.7)!important; color: #fff!important; pointer-events: auto; }
.owl-dots { position: absolute; left: 0; right: 0; bottom: 12px; }
.owl-theme .owl-dots .owl-dot span { width: 7px; height: 7px; background: rgba(255,255,255,.35); }
.owl-theme .owl-dots .owl-dot.active span { background: var(--primary); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #07101d; }
.footer-top { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr); gap: 64px; padding-top: 42px; padding-bottom: 36px; }
.footer-brand p { max-width: 390px; margin: 14px 0 0; color: #71859a; font-size: 13px; line-height: 1.65; }
.footer-nav-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.footer-nav-grid nav { display: grid; align-content: start; gap: 10px; min-width: 0; }
.footer-nav-grid strong { margin-bottom: 4px; color: #dbe5ef; font-size: 13px; line-height: 1.35; }
.footer-nav-grid a { color: #73889d; font-size: 13px; line-height: 1.45; }
.footer-nav-grid a:hover { color: var(--primary); }
.footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px 24px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid var(--line); color: #52677d; font-size: 11px; }
.footer-copy { justify-self: start; }
.footer-country { justify-self: end; }
.footer-legal { display: flex; align-items: center; justify-content: center; gap: 8px 18px; min-width: 0; }
.footer-legal a { color: #73889d; line-height: 1.45; white-space: nowrap; transition: color .2s ease; }
.footer-legal a:hover { color: var(--primary); }

/* responsive */
@media (max-width: 1180px) {
  .main-nav { gap: 15px; }
  .header-add { display: none; }
  .launcher-grid { grid-template-columns: repeat(3,1fr); }
  .launcher-card { border-bottom: 1px solid var(--line); }
  .launcher-card:nth-child(3n) { border-right: 0; }
  .breed-list-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 980px) {
  .header-inner { gap: 10px; }
  .main-nav, .header-login, .header-account { display: none; }
  .header-tools { margin-left: auto; gap: 0; flex-direction: row-reverse; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .menu-toggle:hover { color: #fff; background: transparent; }
  .header-language { align-self: stretch; }
  .header-language__toggle {
    width: auto;
    height: 38px;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(22,118,189,.16);
  }
  .header-language__toggle:hover { background: rgba(22,118,189,.26); }
  .header-messages {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(22,118,189,.16);
  }
  .header-messages:hover,
  .header-messages.is-active {
    border-color: transparent;
    background: rgba(22,118,189,.26);
  }
  .header-auth-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(22,118,189,.16);
    color: #d9e6f1;
  }
  .header-auth-icon,
  .header-messages { margin-right: 7px; }
  .header-auth-icon:hover { color: #fff; background: rgba(22,118,189,.26); }
  .header-auth-icon svg { width: 24px; height: 24px; fill: currentColor; }
  .header-add-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    border: 0;
    border-radius: 10px;
    background: rgba(22,118,189,.16);
    color: #d9e6f1;
  }
  .header-add-icon:hover { color: #fff; background: rgba(22,118,189,.26); }
  .header-add-icon svg { width: 24px; height: 24px; fill: currentColor; }
  html, body { overflow-x: hidden; }

  /* ChatGPT-like push drawer: the menu stays fixed on the left while the whole
     site shell moves as one layout pane. No overlay and no double animation. */
  .site-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    margin-left: 0;
    background: var(--bg);
    transition: margin-left .24s cubic-bezier(.22,.61,.36,1);
  }
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.nav-open .site-shell {
    margin-left: 300px;
    touch-action: none;
  }

  .mobile-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    display: block;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .24s;
  }
  .mobile-nav__backdrop { display: none; }
  .mobile-nav__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(181,204,224,.13);
    background: #0d1d2e;
    box-shadow: none;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
  .nav-open .mobile-nav {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .mobile-nav__head {
    min-height: 74px;
    height: 74px;
    flex: 0 0 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(181,204,224,.11);
  }
  .mobile-nav__logo { display: inline-flex; align-items: center; padding: 0; }
  .mobile-nav__logo .logo-image { width: 152px; }
  .mobile-nav__close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    color: #d8e4ef;
    cursor: pointer;
  }
  .mobile-nav__close:hover { color: #fff; background: rgba(255,255,255,.09); }
  .mobile-nav__close svg { width: 22px; height: 22px; fill: currentColor; }
  .mobile-nav__scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 12px calc(24px + env(safe-area-inset-bottom));
    scrollbar-width: thin;
  }
  .mobile-nav__search {
    position: absolute;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 3;
    width: 48px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    transition: background-color .18s ease, transform .18s ease;
  }
  .mobile-nav__search:hover,
  .mobile-nav__search:focus-visible {
    color: #fff;
    background: var(--primary-strong);
  }
  .mobile-nav__search:active { transform: translateY(1px); }
  .mobile-nav__search svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor;
  }
  .mobile-nav__section + .mobile-nav__section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(181,204,224,.11);
  }
  .mobile-nav__section-title {
    padding: 0 10px 8px;
    color: #778ca1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .mobile-nav__list { display: grid; gap: 4px; }
  .mobile-nav__link,
  .mobile-nav__cluster-title,
  .mobile-account__links a,
  .mobile-account__logout {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: 9px;
    color: #b4c3d2;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }
  .mobile-nav__link { justify-content: flex-start; gap: 9px; }
  .mobile-nav__link:hover,
  .mobile-nav__link.is-active,
  .mobile-nav__cluster-title:hover,
  .mobile-nav__cluster-title.is-active,
  .mobile-account__links a:hover {
    color: #fff;
    background: rgba(22,118,189,.17);
  }
  .mobile-nav__cluster { padding: 2px 0 5px; }
  .mobile-nav__cluster-title { justify-content: space-between; gap: 12px; color: #e8f0f7; }
  .mobile-nav__cluster-title i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .55;
  }
  .mobile-nav__subnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 4px 0 2px 12px;
    padding: 0 0 0 11px;
    border-left: 1px solid rgba(181,204,224,.12);
  }
  .mobile-nav__subnav a {
    min-height: 35px;
    display: flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    color: #879caf;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }
  .mobile-nav__subnav a:hover,
  .mobile-nav__subnav a.is-active { color: #fff; background: rgba(22,118,189,.14); }
  .mobile-account__name {
    margin: 11px 10px 7px;
    overflow: hidden;
    color: #eef5fb;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Inside /profile/* the drawer prioritizes account navigation. On public
     pages the original site-navigation-first order is preserved. */
  .mobile-nav--profile-context .mobile-nav__scroll {
    display: flex;
    flex-direction: column;
  }
  .mobile-nav--profile-context .mobile-nav__section--account {
    order: 1;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .mobile-nav--profile-context .mobile-nav__section:not(.mobile-nav__section--account) {
    order: 2;
    margin-top: 7px;
    padding-top: 18px;
    border-top: 1px solid rgba(181,204,224,.11);
  }
  .mobile-account__links { display: grid; gap: 3px; }
  .mobile-account__links a { justify-content: space-between; gap: 10px; }
  .mobile-account__messages-count {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-account__logout-form { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(181,204,224,.1); }
  .mobile-account__logout { border: 0; background: transparent; color: #879caf; text-align: left; cursor: pointer; }
  .mobile-account__logout:hover { color: #fff; background: rgba(255,255,255,.05); }
  .home-hero { padding-top: 34px; }
  .home-hero__grid, .service-overview, .auth-grid { grid-template-columns: 1fr; }
  .home-hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .home-hero__content { display: contents; }
  .home-hero .product-badge { order: 1; align-self: flex-start; }
  .home-hero h1 {
    order: 2;
    position: relative;
    z-index: 2;
    font-size: 32px;
    line-height: 1.08;
  }
  .home-hero .product-window {
    order: 3;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 0 24px;
  }
  .home-hero .hero-summary {
    order: 4;
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-bottom: 20px;
  }
  .home-hero .global-search { display: none; }
  .home-hero .hero-actions {
    order: 5;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }
  .home-hero .hero-actions .btn { width: 100%; min-width: 0; }
  .service-overview { gap: 40px; }
  .listing-grid--3, .profile-grid { grid-template-columns: repeat(2,1fr); }
  .detail-layout, .social-layout, .map-layout { grid-template-columns: 1fr; }
  .detail-aside, .social-aside, .map-panel { position: static; }
  .map-grid { min-height: 400px; }
  .map-toggle { display: inline-flex; }
  .map-panel { display: none; }
  .map-panel.is-visible { display: block; }
  .breeds-head { grid-template-columns: 1fr; gap: 18px; }
  .directory-search--compact { max-width: 720px; }
  .breed-detail-hero { grid-template-columns: 1fr; }
  .breed-detail-layout { grid-template-columns: 1fr; }
  .breed-detail-sidebar { position: static; grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; grid-template-columns: repeat(4,1fr); }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { position: static; display: flex; overflow-x: auto; }
  .forum-sidebar .panel-label { display: none; }
  .forum-sidebar a { white-space: nowrap; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 30px; }
  .footer-nav-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
}
@media (max-width: 720px) {
  .container, .narrow-container { width: min(calc(100% - 24px), var(--container)); }
  .header-inner { min-height: 64px; gap: 10px; }
  .mobile-nav__head { min-height: 64px; height: 64px; flex-basis: 64px; }
  .mobile-nav__logo .logo-image { width: 146px; }
  .logo-image { width: 146px; }
  .footer-logo .logo-image { width: 138px; }
  .logo-text { font-size: 18px; }
  .header-tools { gap: 0; }
  .header-language__toggle { width: auto; height: 36px; min-width: 0; flex-basis: auto; }
  .header-messages { width: 36px; height: 36px; flex-basis: 36px; }
  .header-auth-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .header-auth-icon svg { width: 24px; height: 24px; }
  .header-add-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .header-add-icon svg { width: 24px; height: 24px; }
  .menu-toggle { width: 36px; height: 36px; flex-basis: 36px; padding: 6px; }
  .home-hero { padding: 28px 0 38px; }
  .home-hero h1 { font-size: 32px; line-height: 1.08; }
  .hero-summary { font-size: 16px; }
  .home-hero .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-hero .hero-actions .btn {
    min-height: 44px;
    padding: 9px 7px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }
  .product-window { border-radius: 18px; }
  .product-window__body { padding: 20px; }
  .product-window h2 { font-size: 27px; }
  .window-actions a { min-height: 58px; }
  .launcher-grid { grid-template-columns: repeat(2,1fr); }
  .launcher-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .launcher-card:nth-child(2n) { border-right: 0; }
  .launcher-card { min-height: 138px; }
  .content-section { padding: 54px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 31px; }
  .listing-grid--3, .profile-grid { grid-template-columns: 1fr; }
  .listing-card__media { height: 260px; }
  .service-overview__copy h2 { font-size: 34px; }
  .page-shell { padding: 32px 0 60px; }
  .page-head, .dashboard-head { align-items: flex-start; flex-direction: column; }
  .page-head h1, .dashboard-head h1 { font-size: 38px; }
  .page-head > .btn, .dashboard-head > .btn { width: 100%; }
  .filter-panel { grid-template-columns: 1fr; }
  .content-toolbar { align-items: flex-start; flex-direction: column; }
  .segmented { max-width: 100%; overflow-x: auto; }
  .segmented button { white-space: nowrap; }
  .listing-card__media > .badge { top: 10px; left: 10px; }
  .detail-gallery > img { height: 360px; }
  .detail-copy { padding: 19px; }
  .detail-title-row h1 { font-size: 34px; }
  .facts-grid { grid-template-columns: repeat(2,1fr); }
  .business-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .business-hero h1 { font-size: 36px; }
  .business-score { text-align: left; }
  .business-person { align-items: flex-start; }
  .form-card { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-cover__art { height: 130px; }
  .profile-identity { grid-template-columns: 1fr; align-items: start; }
  .profile-avatar { width: 104px; height: 104px; margin-top: -54px; }
  .profile-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .breed-list-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .breed-list-card__image { height: 150px; }
  .breed-list-card p { display: none; }
  .breeds-head h1 { font-size: 40px; }
  .directory-search--compact { grid-template-columns: 18px 1fr; }
  .directory-search--compact .btn { grid-column: 1/-1; width: 100%; }
  .breed-detail-copy { padding: 22px; }
  .breed-detail-copy h1 { font-size: 38px; }
  .breed-gallery-slide { height: 360px; }
  .breed-detail-sidebar { grid-template-columns: 1fr; }
  .breed-rating-grid { grid-template-columns: 1fr; }
  .rating-row { grid-template-columns: 115px 1fr 30px; }
  .service-categories { grid-template-columns: repeat(2,1fr); }
  .provider-card { grid-template-columns: 48px 1fr auto; }
  .provider-avatar { width: 46px; height: 46px; }
  .provider-card__main { align-items: flex-start; flex-direction: column; gap: 7px; }
  .provider-meta { min-width: 0; justify-items: start; }
  .topic-row { grid-template-columns: 36px 1fr auto; padding: 14px 12px; }
  .topic-icon { width: 34px; height: 34px; }
  .topic-content h3 { font-size: 15px; }
  .topic-page h1 { font-size: 34px; }
  .auth-grid { gap: 35px; padding-top: 40px; }
  .auth-pitch h1 { font-size: 42px; }
  .metric-grid { grid-template-columns: 1fr; }
  .dashboard-nav { display: flex; overflow-x: auto; }
  .dashboard-nav a { white-space: nowrap; }
  .footer-top { gap: 26px; padding-top: 28px; padding-bottom: 24px; }
  .footer-brand p { max-width: 520px; margin-top: 11px; font-size: 12.5px; line-height: 1.6; }
  .footer-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; }
  .footer-nav-grid nav:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
  .footer-nav-grid nav:last-child strong { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .footer-copy { grid-column: 1; grid-row: 1; }
  .footer-country { grid-column: 2; grid-row: 1; }
  .footer-legal { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 6px 16px; }
  .footer-legal a { white-space: normal; }
}
@media (max-width: 440px) {
  .launcher-grid { grid-template-columns: 1fr; }
  .launcher-card { min-height: 115px; border-right: 0; }
  .breed-list-grid { grid-template-columns: 1fr; }
  .breed-list-card { display: grid; grid-template-columns: 118px 1fr; }
  .breed-list-card__image { height: 128px; }
  .profile-actions { grid-template-columns: 1fr; width: 100%; }
  .service-categories { grid-template-columns: 1fr; }
  .footer-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .footer-nav-grid nav:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }
  .footer-nav-grid nav:last-child strong { grid-column: 1 / -1; }
  .footer-nav-grid strong, .footer-nav-grid a { font-size: 12.5px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 8px; }
  .footer-copy, .footer-country, .footer-legal { grid-column: 1; grid-row: auto; justify-self: start; }
  .footer-legal { gap: 5px 14px; }
}
.error-page { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 70px 0; }
.error-card { max-width: 700px; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 80% 10%, rgba(44,198,243,.12), transparent 35%), var(--surface); }
.error-card > span { color: var(--primary); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.error-card h1 { margin: 12px 0 12px; font-size: 52px; font-weight: 560; }
.error-card p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .error-card { padding: 28px; } .error-card h1 { font-size: 38px; } }
/* vendor overrides: keep carousel inside the PetBook visual system */
.owl-theme .owl-nav button.owl-prev,
.owl-theme .owl-nav button.owl-next {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 9px !important;
  background: rgba(8,17,31,.78) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.2) !important;
}
.owl-theme .owl-nav button.owl-prev:hover,
.owl-theme .owl-nav button.owl-next:hover {
  background: #15304a !important;
  color: var(--primary) !important;
}
.owl-theme .owl-dot.active span { background: var(--primary) !important; }

/* Breed gallery — native PetBook slider, independent from jQuery plugins */
.breed-gallery {
  padding: 10px;
}
.breed-gallery__stage {
  position: relative;
  height: 510px;
  overflow: hidden;
  border-radius: 13px;
  background: #0a1422;
}
.breed-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.breed-gallery__slide[hidden] { display: none !important; }
.breed-gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.88) contrast(1.02);
  transition: transform .35s ease, filter .25s ease;
}
.breed-gallery__slide:hover img {
  transform: scale(1.018);
  filter: saturate(.96) contrast(1.02);
}
.breed-gallery__zoom {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: #fff;
  background: rgba(5,13,24,.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.breed-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(5,13,24,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: .16s ease;
}
.breed-gallery__nav:hover {
  border-color: rgba(44,198,243,.5);
  background: rgba(15,41,60,.92);
  color: var(--primary);
}
.breed-gallery__nav--prev { left: 14px; }
.breed-gallery__nav--next { right: 14px; }
.breed-gallery__counter {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #dce9f4;
  background: rgba(5,13,24,.72);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.breed-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86px;
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #2b4056 transparent;
}
.breed-gallery__thumb {
  position: relative;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b1727;
  opacity: .58;
  cursor: pointer;
  transition: .16s ease;
}
.breed-gallery__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.76);
}
.breed-gallery__thumb:hover,
.breed-gallery__thumb.is-active {
  opacity: 1;
  border-color: rgba(44,198,243,.58);
  box-shadow: inset 0 0 0 1px rgba(44,198,243,.14);
}
.breed-gallery__thumb.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

/* PetBook gallery popup / lightbox */
body.pb-lightbox-open { overflow: hidden; }
.pb-lightbox[hidden] { display: none !important; }
.pb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  transition: opacity .17s ease;
}
.pb-lightbox.is-open { opacity: 1; }
.pb-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(44,198,243,.11), transparent 28%),
    rgba(3,9,17,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pb-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(151,181,207,.2);
  border-radius: 18px;
  background: #0b1626;
  box-shadow: 0 38px 100px rgba(0,0,0,.55);
}
.pb-lightbox__topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #0d1a2b;
}
.pb-lightbox__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pb-lightbox__meta strong {
  overflow: hidden;
  color: #e7f0f8;
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pb-lightbox__meta span {
  flex: 0 0 auto;
  color: #72879b;
  font-size: 11px;
  font-weight: 700;
}
.pb-lightbox__close,
.pb-lightbox__nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  color: #dbe6ef;
  background: #122238;
  cursor: pointer;
  transition: .16s ease;
}
.pb-lightbox__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.pb-lightbox__close:hover,
.pb-lightbox__nav:hover {
  color: var(--primary);
  border-color: rgba(44,198,243,.42);
  background: #162b42;
}
.pb-lightbox__stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 26px 82px;
  background:
    linear-gradient(rgba(255,255,255,.012), rgba(255,255,255,.012)),
    #07111e;
}
.pb-lightbox__figure {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  place-items: center;
  margin: 0;
}
.pb-lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 65px rgba(0,0,0,.34);
}
.pb-lightbox__figure figcaption {
  max-width: 760px;
  padding-top: 12px;
  color: #75899c;
  font-size: 11px;
  text-align: center;
}
.pb-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 56px;
  border-radius: 11px;
  transform: translateY(-50%);
}
.pb-lightbox__nav--prev { left: 18px; }
.pb-lightbox__nav--next { right: 18px; }

@media (max-width: 760px) {
  .breed-gallery { padding: 7px; }
  .breed-gallery__stage { height: min(62vh, 430px); border-radius: 11px; }
  .breed-gallery__thumbs { grid-auto-columns: 72px; gap: 6px; }
  .breed-gallery__thumb { height: 56px; border-radius: 8px; }
  .breed-gallery__nav { width: 38px; height: 38px; }
  .breed-gallery__nav--prev { left: 9px; }
  .breed-gallery__nav--next { right: 9px; }
  .breed-gallery__counter { left: 9px; bottom: 9px; }
  .breed-gallery__zoom { top: 9px; right: 9px; }

  .pb-lightbox { padding: 0; }
  .pb-lightbox__dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .pb-lightbox__topbar { min-height: 58px; padding-left: 14px; }
  .pb-lightbox__stage { padding: 18px 12px 82px; }
  .pb-lightbox__figure img { border-radius: 7px; }
  .pb-lightbox__nav {
    top: auto;
    bottom: 17px;
    width: 48px;
    height: 46px;
    transform: none;
  }
  .pb-lightbox__nav--prev { left: calc(50% - 56px); }
  .pb-lightbox__nav--next { right: calc(50% - 56px); }
}

/* forum dynamic */
.forum-empty{padding:28px;color:var(--muted);text-align:center}.topic-row.is-new{border-color:rgba(255,102,127,.24)}.topic-row.is-new::after{content:"";position:absolute;right:42px;top:50%;width:7px;height:7px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px rgba(255,102,127,.12);transform:translateY(-50%)}.forum-new-badge{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:999px;background:rgba(255,102,127,.12);color:var(--danger);font-size:9px;font-style:normal;font-weight:850;line-height:1.4;text-transform:uppercase;letter-spacing:.03em}.forum-pagination{display:flex;gap:7px;justify-content:center;margin-top:18px;flex-wrap:wrap}.forum-pagination a{min-width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:12px;font-weight:750}.forum-pagination a.is-active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.topic-head-meta{display:flex;align-items:center;justify-content:space-between;gap:18px}.forum-topic-actions,.forum-post-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.forum-link-btn{padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.forum-link-btn:hover,.forum-link-btn.is-active{color:var(--primary)}.forum-inline-form{display:inline}.forum-avatar{overflow:hidden}.forum-avatar img{width:100%;height:100%;object-fit:cover}.forum-expert{position:relative;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;margin-left:3px;padding:0;border:0;border-radius:50%;background:var(--primary);color:#fff;font-size:9px;line-height:0;font-weight:900;text-align:center;vertical-align:middle;cursor:pointer}.forum-expert>span{position:absolute;z-index:20;left:50%;bottom:calc(100% + 9px);min-width:210px;display:none;transform:translateX(-50%);padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);color:var(--text);text-align:left;white-space:normal}.forum-expert:hover>span,.forum-expert.is-open>span{display:grid;gap:4px;line-height:1.2}.forum-expert>span b{font-size:11px;line-height:1.2}.forum-expert em{color:var(--muted);font-size:12px;font-style:normal;font-weight:600;line-height:1.2}.forum-reply-context{margin:-2px 0 12px;padding:9px 11px;border-left:2px solid var(--primary);border-radius:0 8px 8px 0;background:var(--primary-soft);color:var(--muted);font-size:11px;line-height:1.45}.forum-post{position:relative}.forum-depth-1{margin-left:18px}.forum-depth-2{margin-left:36px}.forum-depth-3{margin-left:54px}.forum-depth-4{margin-left:72px}.forum-post.is-best{border-color:rgba(35,177,107,.38);box-shadow:inset 3px 0 0 rgba(35,177,107,.7)}.forum-best-label{color:#239c63}.forum-edit-form{display:grid;gap:12px;margin-top:12px;padding:18px}.forum-edit-form[hidden]{display:none}.forum-edit-form label{display:grid;gap:6px}.forum-edit-form input,.forum-edit-form textarea,.forum-report-dialog select,.forum-report-dialog textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:var(--surface);color:var(--text);font:inherit}.forum-answering{display:inline-flex;margin-bottom:10px;padding:7px 10px;border-radius:8px;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:750}.forum-check{display:flex!important;align-items:center;gap:9px}.forum-check input{width:auto!important}.forum-closed{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.forum-login-note{margin-top:16px;padding:18px;text-align:center}.forum-report-dialog{width:min(460px,calc(100% - 28px));border:1px solid var(--line);border-radius:16px;padding:0;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.forum-report-dialog::backdrop{background:rgba(8,19,32,.58)}.forum-report-dialog form{display:grid;gap:14px;padding:22px}.forum-report-dialog label{display:grid;gap:6px}.forum-dialog-close{position:absolute;right:12px;top:10px;border:0;background:none;color:var(--muted);font-size:24px;cursor:pointer}.forum-toast{position:fixed;z-index:10000;left:50%;bottom:24px;transform:translate(-50%,12px);padding:10px 14px;border-radius:10px;background:#10253a;color:#fff;box-shadow:var(--shadow);opacity:0;transition:.2s}.forum-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:720px){.topic-page h1{font-size:34px}.topic-head-meta{align-items:flex-start;flex-direction:column}.forum-topic-actions{width:100%}.forum-depth-1{margin-left:8px}.forum-depth-2{margin-left:16px}.forum-depth-3{margin-left:24px}.forum-depth-4{margin-left:32px}.topic-message,.answer{padding:18px}.forum-expert>span{position:fixed;left:16px;right:16px;bottom:20px;transform:none;min-width:0}.forum-search{grid-template-columns:18px 1fr}.forum-search .btn{grid-column:1/-1;width:100%}}

/* forum thread scroll + attachments */
.forum-thread{position:relative;margin-top:2px}
.answer-list[data-forum-thread-scroll]{max-height:min(62vh,720px);overflow-y:auto;overscroll-behavior:contain;padding:3px 8px 8px 0;scrollbar-gutter:stable;scroll-behavior:smooth}
.answer-list[data-forum-thread-scroll]::-webkit-scrollbar{width:8px}
.answer-list[data-forum-thread-scroll]::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(91,116,141,.28)}
.forum-sticky-reply{position:sticky;z-index:8;bottom:12px;width:min(850px,calc(100% - 32px));margin:16px auto 0;box-shadow:0 16px 42px rgba(20,46,72,.13)}
.forum-file-upload{display:grid;gap:7px;margin-top:10px}
.forum-file-upload>small{color:var(--muted);font-size:10px;line-height:1.45}
.forum-file-picker{display:inline-flex!important;width:max-content;align-items:center!important;gap:7px!important;padding:8px 11px;border:1px dashed var(--line);border-radius:9px;background:var(--surface-soft);color:var(--primary)!important;font-size:11px!important;font-weight:750!important;cursor:pointer}
.forum-file-picker:hover{border-color:var(--primary);background:var(--primary-soft)}
.forum-file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.forum-file-picker-label{display:inline-flex;align-items:center;gap:6px;line-height:1}
.forum-file-picker-icon{width:17px;height:17px;display:block;flex:0 0 17px;fill:currentColor}
.forum-selected-files{display:flex;gap:7px;flex-wrap:wrap}
.forum-selected-file{display:grid;gap:1px;max-width:280px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}
.forum-selected-file b{overflow:hidden;color:var(--text);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.forum-selected-file small{color:var(--muted);font-size:9px}
.forum-submit-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.forum-submit-loader{display:none;width:14px;height:14px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:forum-spin .7s linear infinite}
.answer-form.is-uploading .forum-submit-loader{display:inline-block}
.answer-form.is-uploading{pointer-events:none;opacity:.86}
@keyframes forum-spin{to{transform:rotate(360deg)}}
.forum-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 4px}
.forum-attachment{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);transition:border-color .18s,background .18s}
.forum-attachment:hover{border-color:rgba(22,118,189,.35);background:var(--primary-soft)}
.forum-attachment--image{grid-template-columns:76px minmax(0,1fr)}
.forum-attachment-preview{position:relative;width:76px;height:56px;overflow:hidden;border-radius:7px;background:#e8eef3}
.forum-attachment-preview img{width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .18s}
.forum-attachment-preview.is-loaded img{opacity:1}
.forum-attachment-loader{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid rgba(22,118,189,.18);border-top-color:var(--primary);border-radius:50%;animation:forum-spin .7s linear infinite}
.forum-attachment-preview.is-loaded .forum-attachment-loader{display:none}
.forum-attachment-file-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;background:var(--primary-soft);color:var(--primary)}.forum-attachment-file-icon svg{width:20px;height:20px;display:block;fill:currentColor}
.forum-attachment-meta{min-width:0;display:grid;gap:2px}
.forum-attachment-meta b{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.forum-attachment-meta small{color:var(--muted);font-size:9px}
@media(max-width:720px){.answer-list[data-forum-thread-scroll]{max-height:58dvh;padding-right:4px}.forum-sticky-reply{bottom:8px;width:100%;margin-top:12px;padding:14px}.forum-attachments{grid-template-columns:1fr}.forum-attachment--image{grid-template-columns:64px minmax(0,1fr)}.forum-attachment-preview{width:64px;height:50px}}

/* Prevent iOS Safari from auto-zooming focused form controls on tablet/mobile.
   Keep page pinch-zoom enabled; only normalize text size inside editable controls. */
@media (max-width: 980px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Tablet/mobile language control — single authoritative spacing rule. */
@media (max-width: 980px) {
  .site-header .header-language__toggle {
    gap: 5px;
    padding-inline: 8px;
  }
}

/* Extra-compact header for very narrow phones. */
@media (max-width: 350px) {
  .logo-image,
  .mobile-nav__logo .logo-image {
    width: 102px;
  }

  .menu-toggle {
    margin-right: -4px;
  }

  .header-add-icon,
  .header-auth-icon,
  .header-messages {
    margin-right: 4px;
  }
}

/* Drawer close button is only needed on very narrow phones; on wider tablet/mobile
   the shifted site header keeps its burger available for closing the drawer. */
@media (max-width: 340px) {
  .mobile-nav__close {
    display: inline-grid;
  }
}

/* End */


/* Start:/local/templates/mtemplate/assets/css/light-refresh.css?1788303530365907*/
:root {
  --bg: #f5f7fa;
  --bg-deep: #edf1f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eaf2fa;
  --surface-light: #ffffff;
  --text: #172233;
  --text-dark: #101927;
  --muted: #66758a;
  --muted-2: #8a97a8;
  --line: #dfe5ec;
  --line-strong: #cad4df;
  --primary: #1676bd;
  --primary-strong: #0c64a5;
  --primary-soft: rgba(22, 118, 189, .09);
  --shadow: 0 24px 65px rgba(19, 42, 66, .11);
}

[hidden] {
  display: none !important;
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus,
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

:where(input, select, textarea):focus,
:where(input, select, textarea):focus-visible {
  box-shadow: none !important;
}

.site-header {
  border-bottom-color: rgba(151, 178, 203, .18);
  background: rgba(9, 25, 43, .94);
  box-shadow: 0 8px 30px rgba(8, 24, 42, .08);
}

.header-language__toggle {
  border-color: rgba(181, 204, 224, .2);
  color: #e8f0f7;
}

.header-language__dropdown {
  border-color: rgba(181, 204, 224, .18);
  background: #10253b;
}

.mobile-nav {
  border-bottom-color: rgba(181, 204, 224, .18);
  background: rgba(9, 25, 43, .99);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(22, 118, 189, .16);
}

.btn-primary:hover {
  color: #fff;
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-secondary,
.btn-light {
  color: #26364a;
  background: #fff;
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-light:hover {
  color: var(--primary-strong);
  background: #f7fafc;
  border-color: rgba(22, 118, 189, .38);
}

.text-link {
  color: #43556b;
}

.text-link:hover {
  color: var(--primary-strong);
}

.home-section-link-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  fill: currentColor;
  vertical-align: middle;
}

.home-hero {
  padding: 92px 0 78px;
  border-bottom-color: var(--line);
  background:
    radial-gradient(circle at 88% 12%, rgba(22, 118, 189, .1), transparent 29%),
    radial-gradient(circle at 12% 90%, rgba(111, 174, 212, .08), transparent 31%),
    #fbfcfd;
}

.home-hero::after {
  border-color: rgba(22, 118, 189, .08);
}

.home-hero h1 {
  color: #132238;
  font-weight: 620;
}

.hero-summary {
  color: #5d6e82;
}

.product-badge {
  border-color: rgba(22, 118, 189, .22);
  color: var(--primary-strong);
  background: #eef6fb;
}

.product-badge span {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(22, 118, 189, .45);
}

.global-search {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 16px 42px rgba(30, 60, 90, .08);
}

.global-search input,
.directory-search--compact input,
.filter-panel select,
.filter-panel input,
.form-card input,
.form-card select,
.form-card textarea,
.auth-form input,
.answer-form textarea,
.forum-search input {
  color: var(--text);
}

.global-search input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #909dad;
}

.product-window {
  border-color: rgba(31, 76, 116, .18);
  background: linear-gradient(145deg, #153c5e, #0b263e);
  box-shadow: 0 28px 70px rgba(20, 55, 84, .22);
}

.product-window h2,
.product-window .window-actions span {
  color: #fff;
}

.product-window__bar {
  border-bottom-color: rgba(255, 255, 255, .1);
  color: #8fa8bd;
}

.window-actions a {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.window-actions a:hover {
  border-color: rgba(83, 187, 237, .42);
  background: rgba(83, 187, 237, .1);
}

.window-actions b {
  color: #70d5f5;
  background: rgba(72, 184, 232, .13);
}

.home-launcher {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.launcher-grid {
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(26, 52, 78, .04);
}

.launcher-card {
  border-color: var(--line);
  background: #fff;
}

.launcher-card:hover {
  background: #f2f7fb;
}

.launcher-code {
  color: #9aa7b6;
}

.content-section {
  background: #fff;
}

.content-section--dark,
.home-section--soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading h2 {
  color: #172437;
  font-weight: 620;
}

.section-heading > div > p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-heading > div > span,
.service-overview__copy > span {
  color: var(--primary);
}

.listing-card,
.pet-profile-card,
.clinic-result-card,
.provider-card,
.panel,
.form-card,
.auth-card,
.metric-card,
.search-group,
.breed-list-card,
.breed-info-card,
.breed-section-card,
.profile-cover,
.detail-gallery,
.breed-detail-media {
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 49, 76, .045);
}

.listing-card:hover,
.pet-profile-card:hover,
.breed-list-card:hover {
  box-shadow: 0 18px 42px rgba(23, 49, 76, .1);
}

.listing-card__media,
.breed-list-card__image {
  background: #e9eef3;
}

.listing-card__media img,
.pet-profile-card__photo img,
.breed-list-card__image img,
.detail-gallery > img,
.feed-post > img,
.breed-gallery-slide img {
  filter: saturate(.92) contrast(1.01);
}

.online-dot {
  border-color: #fff;
}

.launcher-card small,
.listing-card__body p,
.pet-profile-card p,
.profile-about > p,
.feed-post p,
.detail-copy > p,
.topic-message p,
.answer p,
.breed-intro,
.breed-section-card p,
.breed-section-card li {
  color: var(--muted);
}

.page-shell,
.social-profile,
.breed-detail-page,
.auth-page {
  background: var(--bg);
}

.page-head h1,
.dashboard-head h1,
.breeds-head h1,
.detail-title-row h1,
.business-hero h1,
.topic-page h1,
.breed-detail-copy h1,
.breed-section-card h1,
.breed-section-card h2 {
  color: #172437;
}

.breadcrumbs {
  color: #8593a4;
}

.breadcrumbs a {
  color: #64768a;
}

.filter-panel[data-auto-filter-form] {
  grid-template-columns: minmax(320px, 1fr) minmax(220px, .34fr);
}

.filter-panel--pets[data-auto-filter-form] {
  grid-template-columns: minmax(300px, 1fr) minmax(180px, .25fr) minmax(220px, .34fr);
}

.filter-panel,
.segmented,
.breed-tabs,
.breed-filter-tag,
.compact-tags span,
.service-categories a,
.facts-grid > div {
  background: #fff;
}

.filter-panel select,
.filter-panel input,
.form-card input,
.form-card select,
.form-card textarea,
.auth-form input,
.answer-form textarea,
.forum-search input,
.filter-search,
.choice-grid span {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}


.content-toolbar {
  color: #33465c;
}

.segmented button,
.segmented a,
.breed-tab,
.breed-filter-tag,
.compact-tags span {
  color: #65778b;
}

.segmented button.is-active,
.segmented a.is-active,
.breed-tab.is-active,
.breed-filter-tag:hover,
.breed-filter-tag.is-active,
.choice-grid input:checked + span {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.panel,
.form-card,
.auth-card,
.metric-card,
.search-group,
.breed-list-card,
.breed-info-card,
.breed-section-card {
  border-color: var(--line);
}

.business-hero,
.breed-detail-copy {
  border-color: var(--line);
  background: linear-gradient(140deg, #ffffff, #edf4f9);
  box-shadow: 0 14px 40px rgba(23, 49, 76, .05);
}

.price-list span,
.price-list b,
.form-card label,
.auth-form label,
.answer-form label,
.pet-profile-card p,
.feed-post p,
.mini-link,
.auth-feature-list span,
.rating-row span,
.rating-row b {
  color: #52657a;
}

.mini-map {
  background:
    linear-gradient(90deg, rgba(42, 76, 105, .06) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(rgba(42, 76, 105, .06) 1px, transparent 1px) 0 0/32px 32px,
    #eef3f6;
}

.choice-grid input:checked + span {
  border-color: rgba(22, 118, 189, .4);
}

.profile-cover__art {
  background:
    radial-gradient(circle at 75% 30%, rgba(22, 118, 189, .18), transparent 28%),
    linear-gradient(120deg, #e4edf5, #f7fafc);
}

.chip-row span {
  color: #66788b;
  background: #f8fafc;
}

.map-panel {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 49, 76, .05);
}

.map-grid {
  background:
    linear-gradient(90deg, rgba(58, 89, 117, .07) 1px, transparent 1px) 0 0/50px 50px,
    linear-gradient(rgba(58, 89, 117, .07) 1px, transparent 1px) 0 0/50px 50px,
    radial-gradient(circle at 30% 35%, rgba(22, 118, 189, .08), transparent 24%),
    #edf2f5;
}

.map-grid::before,
.map-grid::after {
  background: rgba(113, 139, 162, .13);
}

.map-marker {
  border-color: rgba(22, 118, 189, .35);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(24, 65, 99, .16);
}

.service-categories a:hover,
.provider-card:hover,
.clinic-result-card:hover {
  background: #f5f9fc;
}

.forum-sidebar a,
.dashboard-nav a {
  color: #637589;
}

.forum-sidebar a:hover,
.forum-sidebar a.is-active,
.dashboard-nav a.is-active,
.dashboard-nav a:hover {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.forum-search,
.topic-list,
.topic-row {
  border-color: var(--line);
  background: #fff;
}

.topic-row:hover {
  background: #f4f8fb;
}

.directory-search--compact,
.global-search--light {
  border-color: var(--line);
  background: #fff;
}

.rating-row i {
  background: #dce5ec;
}

.site-footer {
  border-top-color: rgba(151, 178, 203, .16);
  background: #09192b;
}

.site-footer .logo-text,
.site-footer .footer-nav-grid strong {
  color: #f2f6fa;
}

.footer-bottom {
  border-top-color: rgba(151, 178, 203, .14);
}

/* Complete home page */
.home-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

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

.home-breed-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 49, 76, .045);
  transition: .2s ease;
}

.home-breed-card:hover {
  border-color: rgba(22, 118, 189, .32);
  box-shadow: 0 18px 42px rgba(23, 49, 76, .1);
  transform: translateY(-2px);
}

.home-breed-card__image {
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background: #edf3f7;
}

.home-breed-card:nth-child(2) .home-breed-card__image {
  background: #f4f0eb;
}

.home-breed-card:nth-child(3) .home-breed-card__image {
  background: #eef0f6;
}

.home-breed-card__image img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.home-breed-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
}

.home-breed-card__body > span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-breed-card h3 {
  margin: 8px 0 10px;
  font-size: 21px;
}

.home-breed-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-breed-card__body > b {
  margin-top: 20px;
  color: var(--primary);
  font-size: 12px;
}

.home-clinics-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  gap: 20px;
  align-items: stretch;
}

.home-clinics-layout .clinic-results {
  align-content: stretch;
}

.home-clinics-layout .clinic-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-map-panel {
  position: relative;
  top: auto;
  display: block;
}

.home-map-panel .map-grid {
  min-height: 355px;
}

.home-services-layout {
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: stretch;
}

.home-service-categories {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.home-service-categories a {
  min-height: 112px;
  grid-template-columns: 34px 1fr auto;
  background: var(--surface-2);
}

.home-services-layout .provider-list {
  align-content: stretch;
}

.home-services-layout .provider-card {
  min-height: 100px;
}

.home-forum-layout {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap: 20px;
  align-items: stretch;
}

.home-forum-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 49, 76, .045);
}

.home-forum-intro > span {
  color: var(--primary);
  font-size: 48px;
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1;
}

.home-forum-intro h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.home-forum-intro p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-cta {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 88% 18%, rgba(62, 174, 225, .17), transparent 27%),
    #0c2a43;
}

.home-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.home-cta__inner > div {
  max-width: 760px;
}

.home-cta__inner > div > span {
  color: #68cbee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-cta h2 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: 42px;
  font-weight: 600;
}

.home-cta p {
  margin: 0;
  color: #a9bdcd;
  line-height: 1.7;
}

.home-cta .btn {
  min-width: 150px;
}

@media (max-width: 1180px) {
  .home-breed-grid {
    grid-template-columns: 1fr;
  }

  .home-breed-card {
    grid-template-columns: 230px 1fr;
  }
}

@media (max-width: 980px) {
  .home-clinics-layout,
  .home-services-layout,
  .home-forum-layout {
    grid-template-columns: 1fr;
  }

  .home-map-panel {
    position: static;
    display: block;
  }

  .home-service-categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding-top: 58px;
    padding-bottom: 46px;
  }

  .home-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .home-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading > div > p {
    font-size: 14px;
  }

  .home-breed-card {
    grid-template-columns: 1fr;
  }

  .home-breed-card__image {
    min-height: 210px;
  }

  .home-service-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-forum-intro {
    padding: 26px 22px;
  }

  .home-cta {
    padding: 56px 0;
  }

  .home-cta__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .home-cta h2 {
    font-size: 33px;
  }

  .home-cta .btn {
    width: 100%;
  }
}

/* Keep invisible radio controls inside their option cards. */
.choice-grid label {
  position: relative;
  min-width: 0;
}

.choice-grid input {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}


.page-shell,
.page-shell > .container,
.dashboard-grid,
.dashboard-content {
  min-width: 0;
  max-width: 100%;
}

.dashboard-content--form {
  width: 100%;
  max-width: 920px;
}

.dashboard-nav {
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

@media (max-width: 980px) {
  .dashboard-nav {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 440px) {
  .home-service-categories {
    grid-template-columns: 1fr;
  }

  .home-map-panel .map-grid {
    min-height: 300px;
  }
}

/* VOS-style notices and custom form validation */
@keyframes bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(.215, .61, .355, 1);
  }

  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0) scaleX(3);
  }

  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0) scaleX(1);
  }

  75% {
    transform: translate3d(-10px, 0, 0) scaleX(.98);
  }

  90% {
    transform: translate3d(5px, 0, 0) scaleX(.995);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.todo {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 99999;
  display: none;
  max-width: min(440px, calc(100vw - 30px));
  margin-right: 15px;
}

.todo.active {
  display: block;
  animation: bounceInLeft .8s 1;
}

.todo .info-todo,
.todo .success-todo,
.todo .error-todo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 280px;
  margin-top: 15px;
  padding: 14px 21px;
  border-radius: 10px;
  background: #c64747;
  box-shadow: 0 14px 32px rgba(15, 35, 51, .18);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.todo .success-todo {
  background: #3e6d4e;
}

.todo .info-todo {
  background: #303943;
}

.todo .text {
  overflow-wrap: anywhere;
}

.todo .text a {
  border-bottom: 1px dotted #fff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: .3s ease-out;
}

.todo .text a:hover {
  border-color: transparent;
  color: #e7e7e7;
}

.form-layout input.is-invalid:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-layout select.is-invalid,
.form-layout textarea.is-invalid,
.form-layout .city-picker__trigger.is-invalid,
.auth-form input.is-invalid:not([type="checkbox"]):not([type="radio"]) {
  border-color: #c64747;
  background-color: #fffafa;
  box-shadow: 0 0 0 3px rgba(198, 71, 71, .09);
}

label.field-has-error > span,
.auth-check.field-has-error > span {
  color: #a33f3f;
}

.auth-check.field-has-error input {
  outline: 2px solid rgba(198, 71, 71, .55);
  outline-offset: 2px;
}

.choice-grid label.field-has-error span {
  border-color: #c64747;
  background: #fff5f5;
  color: #a33f3f;
}

@media (max-width: 520px) {
  .todo {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    margin-right: 0;
  }

  .todo .info-todo,
  .todo .success-todo,
  .todo .error-todo {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .todo.active {
    animation: none;
  }
}

/* Account and authentication */
.auth-card {
  width: 100%;
}


.auth-social {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.auth-social-message {
  padding: 10px 11px;
  border: 1px solid rgba(190, 63, 63, .2);
  border-radius: 9px;
  background: #fff4f4;
  color: #9f2e2e;
  font-size: 12px;
  line-height: 1.55;
}

.auth-google-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d7e0e9;
  border-radius: 10px;
  background: #fff;
  color: #24364a;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 42, 61, .04);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-google-button:hover {
  border-color: #bccbd9;
  background: #f9fbfd;
  color: #17283b;
  box-shadow: 0 5px 16px rgba(24, 42, 61, .07);
}

.auth-google-button:active {
  transform: translateY(1px);
}

.auth-google-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.auth-social-note {
  margin: 0;
  color: #8695a5;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa8b6;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1 1 auto;
  background: #e2e8ef;
}

.auth-divider span {
  flex: 0 0 auto;
}

.auth-form .auth-message {
  padding: 10px 11px;
  border: 1px solid rgba(190, 63, 63, .2);
  border-radius: 9px;
  background: #fff4f4;
  color: #9f2e2e;
  font-size: 12px;
  line-height: 1.55;
}

.auth-form .auth-message[hidden] {
  display: none;
}

.auth-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-form label.auth-check {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.auth-form label.auth-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.auth-form label.auth-check span {
  color: #65778a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-check--consent {
  padding-top: 2px;
}

.auth-form.is-loading {
  opacity: .78;
}

.auth-form button:disabled {
  cursor: wait;
}

.account-panel {
  padding: 20px;
}

.account-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.account-details > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.account-details span {
  color: var(--muted);
  font-size: 11px;
}

.account-details strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34a36f;
  box-shadow: 0 0 0 5px rgba(52, 163, 111, .1);
}

.dashboard-empty {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px;
}

.dashboard-empty__code {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-empty h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.dashboard-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .auth-password-grid,
  .account-details {
    grid-template-columns: 1fr;
  }

  .mobile-nav__actions form,
  .mobile-nav__actions form .btn {
    width: 100%;
  }
}

/* Pet profiles and listing dependencies */
.choice-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.dashboard-alert {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-alert.is-success {
  border-color: rgba(52, 163, 111, .28);
  background: rgba(52, 163, 111, .08);
  color: #247a53;
}

.dashboard-alert.is-error {
  border-color: rgba(198, 72, 72, .3);
  background: rgba(198, 72, 72, .07);
  color: #a33f3f;
}

.dashboard-empty--action .btn {
  width: fit-content;
  margin-top: 18px;
}

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

.owner-pet-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.owner-pet-card__image {
  height: 210px;
  background: #eaf1f6;
}

.owner-pet-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-pet-card__body {
  padding: 18px;
}

.owner-pet-card__profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.owner-pet-card__profile-kicker:hover {
  color: var(--primary-strong);
}

.owner-pet-card h2 {
  margin: 6px 0 5px;
  font-size: 24px;
}

.owner-pet-card p,
.owner-pet-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.owner-pet-card small {
  margin-top: 6px;
}

.owner-pet-card small b {
  color: #43586d;
  font-weight: 700;
}

.owner-pet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pet-profile-photo-panel > img {
  width: 100%;
  max-height: 620px;
  display: block;
  border-radius: 13px;
  object-fit: cover;
}

.pet-profile-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pet-profile-summary > div:last-child {
  border-bottom: 0;
}

.pet-profile-summary > div span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pet-profile-summary > div b {
  color: var(--text);
  font-size: 13px;
}

.owner-listing-card {
  cursor: default;
}

.owner-listing-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: #52657a;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.owner-listing-card__event,
.owner-listing-card__status {
  margin-top: 8px !important;
  color: #40576d !important;
  font-size: 11px !important;
  font-weight: 650;
  line-height: 1.5;
}

.owner-listing-card__status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-strong) !important;
}

.listing-type-note {
  min-height: 43px;
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #f3f7fa;
  color: #52657a;
  font-size: 12px;
  line-height: 1.65;
}

.listing-profile-link {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.listing-profile-link > label {
  display: grid;
  gap: 7px;
}

.listing-profile-link__actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.listing-profile-link__actions a {
  color: var(--primary-strong);
  font-weight: 750;
}

.listing-manual-pet {
  margin-top: 16px;
}

.breed-picker-field,
.city-picker-field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.breed-picker,
.city-picker {
  position: relative;
  min-width: 0;
}

.breed-picker__trigger,
.city-picker__trigger {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.breed-picker__trigger:hover,
.breed-picker.is-open .breed-picker__trigger,
.city-picker__trigger:hover,
.city-picker.is-open .city-picker__trigger {
  border-color: #76b6e4;
  box-shadow: 0 0 0 3px rgba(22, 118, 189, .08);
}

.breed-picker__trigger:disabled,
.city-picker__trigger:disabled {
  cursor: default;
  opacity: .58;
}

.breed-picker__trigger span,
.city-picker__trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breed-picker__trigger i,
.city-picker__trigger i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.breed-picker.is-open .breed-picker__trigger i,
.city-picker.is-open .city-picker__trigger i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.breed-picker__dropdown,
.city-picker__dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 40;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #cbd9e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 35, 51, .16);
}

.breed-picker__search,
.city-picker__search {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center;
  gap: 7px !important;
  margin-bottom: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fb;
}

.breed-picker__search input,
.city-picker__search input {
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.breed-picker__options,
.city-picker__options {
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.breed-picker__options button,
.city-picker__options button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.breed-picker__options button:hover,
.breed-picker__options button[aria-selected="true"],
.city-picker__options button:hover,
.city-picker__options button[aria-selected="true"] {
  background: #edf6fc;
  color: var(--primary-strong);
}

.breed-picker__custom-option {
  margin-top: 5px;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 0 8px 8px !important;
  color: var(--primary-strong) !important;
  font-weight: 750 !important;
}

.breed-picker__empty,
.city-picker__empty {
  margin: 7px 4px 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.breed-picker__custom {
  margin-top: 9px;
}

.breed-picker__custom span {
  color: var(--muted);
  font-size: 11px;
}

.city-picker-field--filter {
  gap: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.filter-panel .city-picker {
  width: 100%;
}

.filter-panel .city-picker__trigger {
  height: 46px;
  font-size: 14px;
  font-weight: 500;
}

.pet-profile-summary a {
  color: var(--primary-strong);
  font-weight: 750;
}

.owner-listing-card__breed-link {
  color: var(--primary-strong);
  font-weight: 700;
}

.segmented a {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 7px;
  color: #65778b;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.listing-card__media {
  display: block;
}

.listing-card__body h3 a {
  color: inherit;
}

.listing-card__body .meta-row a,
.facts-grid a,
.detail-back-link {
  color: var(--primary-strong);
  font-weight: 750;
}

.owner-listing-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.owner-listing-card__actions .btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 11px;
}

.detail-gallery__main {
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eef2f5;
  cursor: zoom-in;
}

.detail-gallery__main img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.detail-gallery__thumbs {
  overflow-x: auto;
}

.detail-gallery__thumbs button {
  flex: 0 0 75px;
}

.facts-grid b {
  overflow-wrap: anywhere;
}

.avatar--image {
  overflow: hidden;
  background: #e9eef3;
}

.avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-features {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f9fb;
}

.listing-features span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.listing-features p {
  margin: 0;
  color: #40566d;
  font-size: 13px;
  line-height: 1.65;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 2px;
  font-size: 12px;
}

.detail-back-link__icon {
  width: 12px;
  height: 11px;
  flex: 0 0 auto;
  fill: currentColor;
}

.listings-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 30px;
}

.listings-empty h2,
.listings-empty p {
  margin: 0;
}

.listings-empty p {
  color: var(--muted);
  font-size: 13px;
}

.listing-requirement {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(22, 118, 189, .25);
  border-radius: 11px;
  background: rgba(22, 118, 189, .06);
}

.listing-requirement strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.listing-requirement p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pet-photo-field input[type="file"] {
  height: auto;
  padding: 12px;
}

.pet-photo-field small {
  color: var(--muted);
  font-size: 11px;
}

.form-card__intro {
  max-width: 720px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.image-uploader {
  min-width: 0;
}

.image-uploader__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.image-uploader__dropzone {
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1.5px dashed #b9cddd;
  border-radius: 13px;
  background: linear-gradient(145deg, #f9fbfd, #f2f7fa);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.image-uploader__dropzone:hover,
.image-uploader.is-dragover .image-uploader__dropzone {
  border-color: var(--primary);
  outline: none;
  background: #edf7fc;
}

.image-uploader.is-dragover .image-uploader__dropzone {
  transform: translateY(-2px);
}

.image-uploader__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border: 1px solid rgba(22, 118, 189, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.image-uploader__dropzone strong {
  font-size: 14px;
}

.image-uploader__dropzone small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.image-uploader__previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.image-uploader__previews:empty {
  display: none;
}

.image-uploader__preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf3f7;
  aspect-ratio: 4 / 3;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.image-uploader--multiple .image-uploader__preview {
  cursor: grab;
}

.image-uploader--multiple .image-uploader__preview:active {
  cursor: grabbing;
}

.image-uploader__preview.is-dragging {
  opacity: .45;
  transform: scale(.98);
}

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

.image-uploader__cover {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(10, 49, 79, .18);
}

.image-uploader__actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.image-uploader__action {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: rgba(8, 28, 46, .84);
  color: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.image-uploader__action:hover {
  background: #0a263e;
  outline: none;
}

.image-uploader__action--remove {
  background: rgba(132, 36, 43, .86);
}

.image-uploader__action--remove:hover {
  background: #8f2730;
}

.image-uploader--single.has-files {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(250px, 1.25fr);
  gap: 12px;
  align-items: stretch;
}

.image-uploader--single.has-files .image-uploader__previews {
  grid-row: 1;
  grid-column: 1;
  display: block;
  margin: 0;
}

.image-uploader--single.has-files .image-uploader__dropzone {
  grid-row: 1;
  grid-column: 2;
}

.image-uploader--single .image-uploader__preview {
  height: 100%;
  min-height: 180px;
  aspect-ratio: auto;
}

.pet-avatar-field {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}

.image-uploader--avatar,
.image-uploader--avatar.has-files {
  width: 176px;
  display: block;
}

.image-uploader--avatar .image-uploader__dropzone {
  width: 176px;
  min-height: 176px;
  padding: 18px 12px;
  border-radius: 18px;
  background: #fff;
}

.image-uploader--avatar.has-error .image-uploader__dropzone {
  border-color: #c64747;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(198, 71, 71, .08);
}

.image-uploader--avatar .image-uploader__dropzone strong {
  font-size: 13px;
}

.image-uploader--avatar .image-uploader__dropzone small {
  font-size: 10px;
}

.image-uploader--avatar.has-files .image-uploader__dropzone {
  display: none;
}

.image-uploader--avatar.has-files .image-uploader__previews,
.image-uploader--avatar .image-uploader__previews {
  width: 176px;
  display: block;
  grid-row: auto;
  grid-column: auto;
  margin: 0;
}

.image-uploader--avatar .image-uploader__previews:empty {
  display: none;
}

.image-uploader--avatar .image-uploader__preview {
  width: 176px;
  height: 176px;
  min-height: 176px;
  border-radius: 18px;
  aspect-ratio: 1;
}

.image-uploader--avatar .image-uploader__actions {
  justify-content: center;
}

.image-uploader--avatar .image-uploader__action {
  flex: 1 1 auto;
  max-width: 100%;
}

.pet-avatar-field__copy strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.pet-avatar-field__copy p {
  max-width: 510px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.pet-avatar-field__copy small {
  color: #7c8fa2;
  font-size: 10px;
  font-weight: 650;
}

.form-actions .btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .choice-grid--4,
  .choice-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .dashboard-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  .choice-grid--4,
  .choice-grid--5,
  .owner-pet-grid {
    grid-template-columns: 1fr;
  }

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

  .image-uploader--single.has-files {
    grid-template-columns: 1fr;
  }

  .image-uploader--single.has-files .image-uploader__previews,
  .image-uploader--single.has-files .image-uploader__dropzone {
    grid-row: auto;
    grid-column: auto;
  }

  .pet-avatar-field {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
  }

  .image-uploader--avatar,
  .image-uploader--avatar.has-files,
  .image-uploader--avatar .image-uploader__dropzone,
  .image-uploader--avatar.has-files .image-uploader__previews,
  .image-uploader--avatar .image-uploader__previews,
  .image-uploader--avatar .image-uploader__preview {
    width: 148px;
  }

  .image-uploader--avatar .image-uploader__dropzone,
  .image-uploader--avatar .image-uploader__preview {
    min-height: 148px;
    height: 148px;
  }

  .listing-profile-link__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .image-uploader__previews {
    grid-template-columns: 1fr;
  }

  .pet-avatar-field {
    grid-template-columns: 1fr;
  }

  .image-uploader--avatar,
  .image-uploader--avatar.has-files {
    justify-self: center;
  }

  .pet-avatar-field__copy {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .filter-panel[data-auto-filter-form] {
    grid-template-columns: 1fr;
  }
}


/* Unified native select appearance: visually matches searchable pickers while preserving native select behavior. */
.pb-site select:not([multiple]) {
  min-width: 0;
  height: 46px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' stroke='%23172233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pb-site select:not([multiple]):hover {
  border-color: #76b6e4;
}

.pb-site select:not([multiple]):disabled {
  cursor: default;
  opacity: .58;
}

.pb-site select:not([multiple])::-ms-expand {
  display: none;
}

/* Filter selects and searchable city/breed triggers now share exactly the same control metrics. */
.filter-panel select:not([multiple]),
.filter-panel .city-picker__trigger,
.filter-panel .breed-picker__trigger {
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 720px) {
  /* Interaction stays native on mobile; only the visual shell is normalized. */
  .pb-site select:not([multiple]) {
    height: 46px;
    padding-right: 40px;
    background-position: right 14px center;
  }
}

/* Pet public profile: content-first layout without decorative cover */
.pet-public-profile {
  padding-top: 36px;
}

.pet-profile-hero {
  display: grid;
  grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 49, 76, .07);
}

.pet-profile-hero__media {
  position: relative;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 14px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #f3f6f9;
  cursor: zoom-in;
}

.pet-profile-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .32s ease, filter .22s ease;
}

.pet-profile-hero__media:hover img {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.01);
}


.pet-profile-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 28px 18px;
}

.pet-profile-hero__heading h1 {
  margin: 0;
  color: #172437;
  font-size: clamp(34px, 2.8vw, 40px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.pet-profile-hero__title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pet-profile-hero__edit {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  text-decoration: none;
  transition: color .16s ease, opacity .16s ease;
}

.pet-profile-hero__edit:hover {
  color: var(--primary);
  opacity: .82;
}

.pet-profile-hero__edit svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.pet-profile-hero__heading p {
  margin: 7px 0 0;
  color: #64768a;
  font-size: 15px;
  line-height: 1.55;
}


.pet-profile-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.pet-profile-hero__facts > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #f8fafc;
}

.pet-profile-hero__facts span,
.pet-profile-hero__facts b {
  display: block;
}

.pet-profile-hero__facts span {
  margin-bottom: 4px;
  color: #8392a3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pet-profile-hero__facts b,
.pet-profile-hero__facts a {
  color: #172437;
  font-size: 13px;
  font-weight: 760;
}

.pet-profile-hero__facts a:hover {
  color: var(--primary-strong);
}

.pet-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 0;
  padding-top: 0;
}

.pet-profile-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 14px;
}

.pet-profile-qr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 8px 10px;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #172437;
  transition: border-color .16s ease, background-color .16s ease;
}

.pet-profile-qr:hover {
  border-color: #c8dceb;
  background: #f2f8fc;
}

.pet-profile-qr img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  border-radius: 8px;
  background: #fff;
}

.pet-profile-qr span {
  min-width: 0;
  display: block;
  margin: 0;
  color: #718296;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  text-transform: none;
}

.pet-profile-qr b,
.pet-profile-qr small {
  display: block;
}

.pet-profile-qr b {
  color: #1d5f96;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.pet-profile-qr small {
  margin-top: 3px;
  color: #718296;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.pet-profile-details {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pet-profile-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.pet-profile-section-head h2 {
  margin: 0;
  color: #172437;
  font-size: 24px;
  line-height: 1.15;
}

.pet-profile-section-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: #718296;
  font-size: 13px;
  line-height: 1.6;
}

.pet-profile-details__description {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  background: #fbfcfd;
  color: #42576c;
  font-size: 13px;
  line-height: 1.7;
}

.pet-profile-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.pet-profile-details__grid > div {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  background: #fbfcfd;
}

.pet-profile-details__grid span,
.pet-profile-details__grid b {
  display: block;
}

.pet-profile-details__grid span {
  margin-bottom: 6px;
  color: #8795a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pet-profile-details__grid b,
.pet-profile-details__grid a {
  color: #25384c;
  font-size: 13px;
  font-weight: 760;
}

.pet-profile-details__grid a:hover {
  color: var(--primary-strong);
}

.pet-profile-listings {
  margin-top: 38px;
}

.pet-profile-section-head--listings {
  margin-bottom: 18px;
}

.pet-profile-section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 760;
}

.pet-profile-section-link span {
  font-size: 16px;
  transition: transform .16s ease;
}

.pet-profile-section-link:hover span {
  transform: translateX(3px);
}

.pet-public-profile .pet-profile-listings__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pet-profile-listings__grid .listing-card {
  min-width: 0;
}

.pet-profile-empty-listings {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pet-profile-empty-listings h2 {
  margin: 0;
  color: #172437;
  font-size: 22px;
}

.pet-profile-empty-listings p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #718296;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .pet-profile-hero {
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
    min-height: 0;
  }

  .pet-profile-hero__media {
    height: auto;
    min-height: 0;
  }

  .pet-profile-hero__content {
    padding: 22px 24px;
  }

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

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

  .pet-public-profile .pet-profile-listings__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pet-public-profile {
    padding-top: 18px;
  }

  .pet-profile-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 15px;
  }

  .pet-profile-hero__media {
    width: auto;
    height: min(72vw, 300px);
    min-height: 0;
    margin: 12px 12px 0;
    border-radius: 12px;
  }



  .pet-profile-hero__content {
    padding: 21px 18px 19px;
  }

  .pet-profile-hero__heading h1 {
    font-size: clamp(32px, 9vw, 38px);
  }

  .pet-profile-hero__heading p {
    margin-top: 9px;
    font-size: 13px;
  }



  .pet-profile-hero__facts {
    gap: 8px;
    margin-top: 17px;
  }

  .pet-profile-hero__facts > div {
    padding: 12px;
  }

  .pet-profile-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .pet-profile-hero__actions .btn {
    width: 100%;
  }

  .pet-profile-hero__bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-top: 17px;
  }

  .pet-profile-qr {
    width: 100%;
    max-width: none;
  }

  .pet-profile-qr img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .pet-profile-details {
    margin-top: 12px;
    padding: 20px;
  }

  .pet-profile-section-head,
  .pet-profile-section-head--listings {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pet-profile-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
  }

  .pet-profile-details__grid > div {
    padding: 13px;
  }

  .pet-profile-listings {
    margin-top: 30px;
  }

  .pet-profile-empty-listings {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
    padding: 22px 20px;
  }

  .pet-profile-empty-listings .btn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .pet-profile-hero__facts,
  .pet-profile-details__grid {
    grid-template-columns: 1fr 1fr;
  }




}

@media (max-width: 720px) {
  .detail-gallery__main img {
    height: 360px;
  }
}

/* Pet subscriptions, owner card and public user profiles */
.pet-follow-count {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  color: #66788b;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.pet-follow-count strong {
  color: #1d5f96;
  font-size: 14px;
}

.pet-follow-count:hover,
.pet-follow-count:hover strong {
  color: var(--primary-strong);
}

.pet-follow-button.is-following {
  border-color: #cdd9e3;
  background: #f6f9fb;
  color: #31516d;
}

.pet-follow-button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.pet-profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.pet-profile-main-grid .pet-profile-details {
  margin-top: 0;
  padding: 22px;
}

.pet-profile-main-grid .pet-profile-details__description {
  margin-top: 14px;
  padding: 12px 14px;
}

.pet-profile-main-grid .pet-profile-details__grid {
  gap: 8px;
  margin-top: 14px;
}

.pet-profile-main-grid .pet-profile-details__grid > div {
  padding: 12px 13px;
}

.pet-profile-details__grid i {
  font-style: normal;
}

.pet-owner-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pet-owner-card__kicker,
.public-user-kicker,
.public-user-contact > span {
  display: block;
  color: #8291a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pet-owner-card__identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 13px;
  color: #172437;
}

.pet-owner-card__avatar,
.follower-card__avatar,
.public-user-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f2f8;
  color: #1d5f96;
  font-weight: 800;
}

.pet-owner-card__avatar {
  width: 52px;
  height: 52px;
}

.pet-owner-card__avatar img,
.follower-card__avatar img,
.public-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pet-owner-card__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pet-owner-card__name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pet-owner-card__name {
  min-width: 0;
  color: #172437;
  text-decoration: none;
}

.pet-owner-card__name strong,
.pet-owner-card__copy small {
  display: block;
}

.pet-owner-card__name strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-owner-card__name:hover strong {
  color: var(--primary-strong);
}

.pet-owner-card__copy small {
  color: #718296;
  font-size: 11px;
}

.pet-owner-card__message {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  text-decoration: none;
  transition: color .16s ease, opacity .16s ease;
}

.pet-owner-card__message:hover {
  color: var(--primary);
  opacity: .85;
}

.pet-owner-card__message svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.pet-owner-card__phone {
  margin-top: 17px;
  padding: 12px 13px;
  border: 1px solid #e3e9ef;
  border-radius: 11px;
  background: #fbfcfd;
}

.pet-owner-card__phone span,
.pet-owner-card__phone a,
.pet-owner-card__phone b {
  display: block;
}

.pet-owner-card__phone span {
  margin-bottom: 5px;
  color: #8795a5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.pet-owner-card__phone a,
.pet-owner-card__phone b {
  color: #25384c;
  font-size: 13px;
  font-weight: 760;
}

.public-user-profile,
.followers-page {
  padding: 36px 0 70px;
}

.public-user-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 49, 76, .07);
}

.public-user-avatar {
  width: 108px;
  height: 108px;
  font-size: 30px;
}

.public-user-hero__body h1 {
  margin: 5px 0 5px;
  color: #172437;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.public-user-hero__body > p {
  margin: 0;
  color: #718296;
  font-size: 13px;
}

.public-user-metrics {
  display: flex;
  gap: 22px;
  margin-top: 17px;
}

.public-user-metrics > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.public-user-metrics strong {
  color: #1d5f96;
  font-size: 22px;
}

.public-user-metrics span {
  color: #718296;
  font-size: 11px;
}

.public-user-contact {
  padding: 17px;
  border: 1px solid #e1e8ef;
  border-radius: 13px;
  background: #f8fafc;
}

.public-user-contact__row {
  margin-top: 12px;
}

.public-user-contact__row small,
.public-user-contact__row a,
.public-user-contact__row b {
  display: block;
}

.public-user-contact__row small {
  color: #8795a5;
  font-size: 10px;
}

.public-user-contact__row a,
.public-user-contact__row b {
  margin-top: 4px;
  color: #25384c;
  font-size: 13px;
  font-weight: 760;
}

.public-user-contact__message {
  width: 100%;
  margin-top: 14px;
}

.public-user-about,
.public-user-section {
  margin-top: 20px;
}

.public-user-about {
  padding: 22px;
}

.public-user-about h2 {
  margin: 0;
  font-size: 20px;
}

.public-user-about p {
  margin: 10px 0 0;
  color: #566b80;
  font-size: 13px;
  line-height: 1.7;
}

.public-user-pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.public-user-pet-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 150px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #172437;
}

.public-user-pet-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.public-user-pet-card > span {
  min-width: 0;
  padding: 12px 13px;
}

.public-user-pet-card b,
.public-user-pet-card small {
  display: block;
}

.public-user-pet-card b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-user-pet-card small {
  overflow: hidden;
  margin-top: 4px;
  color: #718296;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-user-empty {
  margin-top: 16px;
  padding: 20px;
  color: #718296;
  font-size: 13px;
}

.followers-page__head {
  margin-bottom: 18px;
}

.followers-page__head > a {
  color: #1d5f96;
  font-size: 12px;
  font-weight: 760;
}

.followers-page__head h1 {
  margin: 12px 0 5px;
  color: #172437;
  font-size: 34px;
}

.followers-page__head p {
  margin: 0;
  color: #718296;
  font-size: 13px;
}

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

.follower-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #172437;
}

.follower-card__avatar {
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.follower-card > span:nth-child(2),
.follower-card b,
.follower-card small {
  min-width: 0;
  display: block;
}

.follower-card b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follower-card small {
  margin-top: 3px;
  color: #718296;
  font-size: 10px;
}

.follower-card > i {
  color: #7c8c9b;
  font-style: normal;
}

@media (max-width: 1100px) {
  .pet-profile-main-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .public-user-hero {
    grid-template-columns: 92px minmax(0, 1fr) 280px;
  }

  .public-user-avatar {
    width: 92px;
    height: 92px;
  }

  .public-user-pet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pet-profile-main-grid,
  .public-user-hero {
    grid-template-columns: 1fr;
  }

  .pet-owner-card {
    order: 2;
  }

  .public-user-contact {
    width: 100%;
  }

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

@media (max-width: 720px) {
  .pet-profile-hero__actions {
    grid-template-columns: 1fr 1fr;
  }

  .pet-follow-count {
    min-height: 36px;
    justify-content: center;
    grid-column: 1 / -1;
  }

  .public-user-profile,
  .followers-page {
    padding-top: 18px;
  }

  .public-user-hero {
    gap: 16px;
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .pet-profile-hero__actions,
  .followers-grid,
  .public-user-pet-grid {
    grid-template-columns: 1fr;
  }

  .pet-profile-main-grid .pet-profile-details__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pet breed summary + editable owner profile */
.pet-profile-breed-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid #dfe7ee;
  border-radius: 13px;
  background: #f8fafc;
  color: #25384c;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pet-profile-breed-card:hover {
  border-color: #c8d9e7;
  background: #f3f8fb;
  transform: translateY(-1px);
}

.pet-profile-breed-card__media {
  overflow: hidden;
  min-height: 104px;
  border-radius: 10px;
  background: #e9eef3;
}

.pet-profile-breed-card__media img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  display: block;
  object-fit: cover;
}

.pet-profile-breed-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.pet-profile-breed-card__body small {
  color: #8291a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pet-profile-breed-card__body strong {
  margin-top: 3px;
  color: #172437;
  font-size: 16px;
}

.pet-profile-breed-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 8px;
  color: #687b8f;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pet-profile-breed-card__body b {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 760;
}

.pet-profile-breed-card__body i {
  font-style: normal;
}

.account-panel__title {
  align-items: center;
}

.account-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-panel__actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.profile-settings-form {
  margin-top: 4px;
}

.profile-privacy-toggle {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
}

.profile-privacy-toggle input {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.profile-privacy-toggle > span {
  display: grid;
  gap: 4px;
}

.profile-privacy-toggle strong {
  color: #25384c;
  font-size: 13px;
}

.profile-privacy-toggle small {
  color: #718296;
  font-size: 11px;
  line-height: 1.5;
}

.profile-photo-field {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-photo-field__copy strong {
  display: block;
  color: #25384c;
  font-size: 14px;
}

.profile-photo-field__copy p {
  max-width: 460px;
  margin: 6px 0 0;
  color: #718296;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .account-panel__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-panel__actions,
  .account-panel__actions .btn {
    width: 100%;
  }

  .profile-photo-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pet-profile-breed-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .pet-profile-breed-card__media,
  .pet-profile-breed-card__media img {
    min-height: 90px;
  }

  .pet-profile-breed-card__body p {
    -webkit-line-clamp: 3;
  }
}

/* Pet photo/video gallery */
.form-card__intro {
  max-width: 760px;
  margin: -2px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.pet-media-uploader {
  display: grid;
  gap: 14px;
}

.pet-media-uploader__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.pet-media-uploader__dropzone {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed #bdd2e2;
  border-radius: 14px;
  background: #f8fbfd;
  color: #25384c;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pet-media-uploader__dropzone:hover,
.pet-media-uploader.is-dragover .pet-media-uploader__dropzone {
  border-color: var(--primary);
  background: #f0f8fd;
}

.pet-media-uploader.is-dragover .pet-media-uploader__dropzone {
  transform: translateY(-1px);
}

.pet-media-uploader__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c9dce9;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-strong);
  font-size: 24px;
  line-height: 1;
}

.pet-media-uploader__dropzone > span:last-child {
  min-width: 0;
}

.pet-media-uploader__dropzone strong,
.pet-media-uploader__dropzone small {
  display: block;
}

.pet-media-uploader__dropzone strong {
  color: #25384c;
  font-size: 14px;
}

.pet-media-uploader__dropzone small {
  margin-top: 4px;
  color: #718296;
  font-size: 11px;
  line-height: 1.5;
}

.pet-media-uploader__previews {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pet-media-uploader__previews:empty {
  display: none;
}

.pet-media-uploader__preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf2f6;
  cursor: grab;
}

.pet-media-uploader__preview.is-dragging {
  opacity: .55;
}

.pet-media-uploader__preview-media,
.pet-media-uploader__preview-media img,
.pet-media-uploader__preview-media video {
  width: 100%;
  height: 100%;
}

.pet-media-uploader__preview-media {
  position: absolute;
  inset: 0;
}

.pet-media-uploader__preview-media img,
.pet-media-uploader__preview-media video {
  display: block;
  object-fit: cover;
}

.pet-media-uploader__video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #21384c, #0f2232);
  color: #fff;
  font-size: 24px;
}

.pet-media-uploader__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(8, 28, 46, .75);
  color: #fff;
  font-size: 13px;
  padding-left: 2px;
  backdrop-filter: blur(6px);
}

.pet-media-uploader__kind,
.pet-media-uploader__status {
  position: absolute;
  top: 8px;
  z-index: 2;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.pet-media-uploader__kind {
  left: 8px;
  background: rgba(255,255,255,.9);
  color: #25384c;
}

.pet-media-uploader__status {
  right: 8px;
  max-width: calc(100% - 66px);
  background: rgba(8,28,46,.84);
  color: #fff;
}

.pet-media-uploader__status.is-failed {
  background: rgba(143,39,48,.9);
}

.pet-media-uploader__remove {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 8px;
  background: rgba(132,36,43,.88);
  color: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 760;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.pet-media-form-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: #718296;
  font-size: 11px;
  line-height: 1.55;
}

.pet-media-form-note strong {
  color: #40566c;
  font-size: 11px;
}

.pet-profile-media-strip {
  margin-top: 18px;
  padding: 16px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.pet-profile-media-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.pet-profile-media-strip__head > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.pet-profile-media-strip__head h2 {
  margin: 0;
  color: #172437;
  font-size: 18px;
  line-height: 1.2;
}

.pet-profile-media-strip__head span {
  color: #8a99a8;
  font-size: 10px;
}

.pet-profile-media-strip__head > a {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 780;
}

.pet-profile-media-slider {
  position: relative;
}

.pet-profile-media-strip__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 3px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pet-profile-media-strip__track::-webkit-scrollbar {
  display: none;
}

.pet-profile-media-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  transform: translateY(-50%);
  border: 1px solid rgba(205, 219, 231, .95);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #17314a;
  box-shadow: 0 8px 24px rgba(12, 37, 59, .16);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pet-profile-media-slider__nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 28px rgba(12, 37, 59, .22);
}

.pet-profile-media-slider__nav:disabled {
  opacity: .28;
  cursor: default;
}

.pet-profile-media-slider__nav[hidden] {
  display: none !important;
}

.pet-profile-media-slider__nav--prev {
  left: -8px;
}

.pet-profile-media-slider__nav--next {
  right: -8px;
}

.pet-profile-media-slider__progress {
  width: 88px;
  height: 3px;
  overflow: hidden;
  margin: 9px auto 0;
  border-radius: 99px;
  background: #e5edf4;
}

.pet-profile-media-slider__progress[hidden] {
  display: none !important;
}

.pet-profile-media-slider__progress > span {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--primary-strong);
  transform: scaleX(.18);
  transform-origin: left center;
  transition: transform .12s linear;
}

.pet-profile-media-item {
  position: relative;
  width: 184px;
  height: 128px;
  flex: 0 0 184px;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #edf2f6;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.pet-profile-media-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease;
}

.pet-profile-media-item:hover img {
  transform: scale(1.025);
}

.pet-profile-media-item.is-video {
  cursor: pointer;
}

.pet-profile-media-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(8,28,46,.72);
  color: #fff;
  font-size: 14px;
  padding-left: 2px;
  backdrop-filter: blur(7px);
}

.pet-profile-media-item > small {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(8,28,46,.78);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.pet-profile-media-item__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #263f54, #102638);
  color: #fff;
  font-size: 26px;
}

.pet-profile-media-item.is-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  cursor: default;
  background: #f7f9fb;
}

.pet-profile-media-item.is-status .pet-profile-media-item__placeholder {
  position: absolute;
  inset: 0;
  opacity: .16;
}

.pet-profile-media-item.is-status b,
.pet-profile-media-item.is-status small {
  position: relative;
  z-index: 2;
}

.pet-profile-media-item.is-status b {
  color: #25384c;
  font-size: 11px;
}

.pet-profile-media-item.is-status small {
  margin-top: 4px;
  padding: 0;
  background: none;
  color: #718296;
  font-size: 9px;
  line-height: 1.4;
}

.pet-profile-media-empty {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  padding: 14px 16px;
  border: 1px dashed #c7d8e5;
  border-radius: 12px;
  background: #f8fbfd;
  color: #25384c;
}

.pet-profile-media-empty > span {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-strong);
  font-size: 22px;
  border: 1px solid #d7e4ed;
}

.pet-profile-media-empty strong {
  align-self: end;
  font-size: 13px;
}

.pet-profile-media-empty small {
  align-self: start;
  margin-top: 3px;
  color: #718296;
  font-size: 10px;
}

/* When gallery exists it occupies the formerly empty gap between hero and details. */
.pet-profile-media-strip + .pet-profile-main-grid {
  margin-top: 14px;
}

.pet-media-lightbox[hidden] {
  display: none !important;
}

.pet-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .16s ease;
}

.pet-media-lightbox.is-open {
  opacity: 1;
}

.pet-media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,15,24,.88);
  backdrop-filter: blur(8px);
}

.pet-media-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 94vw;
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: #07131d;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.pet-media-lightbox__topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  color: #fff;
}

.pet-media-lightbox__topbar > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pet-media-lightbox__topbar strong {
  overflow: hidden;
  max-width: 70vw;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-media-lightbox__topbar span {
  color: #91a5b6;
  font-size: 10px;
}

.pet-media-lightbox__close,
.pet-media-lightbox__nav {
  border: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.pet-media-lightbox__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.pet-media-lightbox__stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #02080d;
}

.pet-media-lightbox__content {
  width: 100%;
  min-width: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-media-lightbox__content img,
.pet-media-lightbox__content video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92vh - 78px);
  display: block;
  object-fit: contain;
  object-position: center center;
}

.pet-media-lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 58px;
  border-radius: 11px;
  font-size: 32px;
  transform: translateY(-50%);
}

.pet-media-lightbox__nav--prev {
  left: 10px;
}

.pet-media-lightbox__nav--next {
  right: 10px;
}

.pet-media-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .pet-media-uploader__previews {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .pet-media-uploader__previews {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .pet-profile-media-item {
    width: 164px;
    height: 116px;
    flex-basis: 164px;
  }
}

@media (max-width: 620px) {
  .pet-media-uploader__previews {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .pet-media-uploader__dropzone {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
  }

  .pet-profile-media-strip {
    margin-top: 12px;
    padding: 14px 12px 14px;
    border-radius: 14px;
  }

  .pet-profile-media-strip__track {
    margin-right: -12px;
    padding-right: 12px;
  }

  .pet-profile-media-item {
    width: 148px;
    height: 106px;
    flex-basis: 148px;
  }

  .pet-profile-media-slider__nav {
    display: none !important;
  }

  .pet-media-lightbox {
    padding: 0;
  }

  .pet-media-lightbox__dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .pet-media-lightbox__stage {
    min-height: calc(100vh - 56px);
  }

  .pet-media-lightbox__content {
    min-height: calc(100vh - 56px);
  }

  .pet-media-lightbox__content img,
  .pet-media-lightbox__content video {
    max-height: calc(100vh - 56px);
  }

  .pet-media-lightbox__nav {
    width: 34px;
    height: 50px;
    font-size: 28px;
  }

  .pet-media-lightbox__nav--prev {
    left: 6px;
  }

  .pet-media-lightbox__nav--next {
    right: 6px;
  }
}

@media (max-width: 430px) {
  .pet-media-uploader__previews {
    grid-template-columns: 1fr 1fr;
  }

  .pet-media-uploader__dropzone small {
    font-size: 10px;
  }
}


.pb-submit-loading {
  overflow: hidden;
}

.pb-submit-loader[hidden] {
  display: none !important;
}

.pb-submit-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}

.pb-submit-loader.is-visible {
  opacity: 1;
}

.pb-submit-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 43, .48);
  backdrop-filter: blur(4px);
}

.pb-submit-loader__card {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(214, 227, 238, .95);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(7, 25, 41, .24);
}

.pb-submit-loader__spinner {
  width: 48px;
  height: 48px;
  display: block;
  border: 4px solid #dceaf5;
  border-top-color: var(--primary-strong);
  border-radius: 50%;
  animation: pb-submit-spin .78s linear infinite;
}

.pb-submit-loader__copy {
  min-width: 0;
}

.pb-submit-loader__copy strong,
.pb-submit-loader__copy small {
  display: block;
}

.pb-submit-loader__copy strong {
  color: #172437;
  font-size: 16px;
  line-height: 1.25;
}

.pb-submit-loader__copy small {
  margin-top: 5px;
  color: #718296;
  font-size: 12px;
  line-height: 1.45;
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pb-submit-spin .72s linear infinite;
}

.btn.btn-secondary.is-loading::after {
  border-color: rgba(20, 64, 97, .22);
  border-top-color: #17496e;
}

@keyframes pb-submit-spin {
  to { transform: rotate(360deg); }
}

.pet-media-form-card {
  scroll-margin-top: 110px;
}

/* Active pet scope on the listings page. */
.active-pet-scope {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 10px 9px 13px;
  border: 1px solid #cfe3f3;
  border-radius: 12px;
  background: #eef7fd;
}

.active-pet-scope__copy {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #61758a;
  font-size: 12px;
}

.active-pet-scope__pet {
  overflow: hidden;
  max-width: 280px;
  color: #10243a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}

.active-pet-scope__pet:hover {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.active-pet-scope__reset {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 0;
  border-radius: 50%;
  background: #dceefa;
  transition: background .18s ease, transform .18s ease;
}

.active-pet-scope__reset::before,
.active-pet-scope__reset::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--primary-strong);
  transform-origin: center;
}

.active-pet-scope__reset::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.active-pet-scope__reset::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.active-pet-scope__reset:hover {
  background: #cce6f7;
  transform: scale(1.06);
}

@media (max-width: 720px) {
  .active-pet-scope {
    max-width: 100%;
    padding: 8px 9px 8px 11px;
  }

  .active-pet-scope__copy {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .active-pet-scope__pet {
    max-width: 190px;
  }
}

/* PetBook image action icons — additive overrides on top of the latest media UI. */
.image-uploader__actions {
  right: 9px;
  bottom: 9px;
  left: auto;
  width: auto;
  justify-content: flex-end;
  gap: 7px;
}

.image-uploader__action,
.pet-media-uploader__remove {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 118, 189, .25);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  color: var(--primary-strong);
  box-shadow: 0 5px 15px rgba(12, 45, 72, .13);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.image-uploader__action:hover {
  border-color: rgba(22, 118, 189, .4);
  background: #eef6fb;
  color: var(--primary);
  box-shadow: 0 7px 18px rgba(12, 45, 72, .16);
  transform: translateY(-1px);
}

.image-uploader__action--remove,
.pet-media-uploader__remove {
  border-color: rgba(181, 59, 67, .24);
  background: rgba(255, 250, 250, .97);
  color: #a9343c;
}

.image-uploader__action--remove:hover,
.pet-media-uploader__remove:hover {
  border-color: rgba(181, 59, 67, .4);
  background: #fff1f2;
  color: #942b33;
  box-shadow: 0 7px 18px rgba(112, 34, 40, .15);
  transform: translateY(-1px);
}

.image-uploader__action-icon,
.image-uploader__cover-icon,
.pet-media-uploader__action-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  color: inherit;
  pointer-events: none;
}

.image-uploader__cover {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(10, 49, 79, .2);
}

.image-uploader__cover-icon {
  width: 17px;
  height: 17px;
}

.image-uploader--avatar .image-uploader__actions {
  right: 9px;
  bottom: 9px;
  left: auto;
  justify-content: flex-end;
}

.image-uploader--avatar .image-uploader__action {
  flex: 0 0 30px;
  max-width: 30px;
}

/* Keep neighboring active/hover dropdown backgrounds visually separate. */
.main-nav__submenu,
.header-account__dropdown,
.header-language__dropdown {
  display: grid;
  gap: 4px;
}

.main-nav__submenu-link,
.header-account__item,
.header-language__item {
  margin: 0;
}

.header-account__divider {
  margin: 4px 5px;
}

/* Profile settings: keep the public-profile action compact and aligned. */
.profile-settings-head {
  align-items: flex-start;
}

.profile-settings-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-settings-head__profile-link {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  align-self: flex-start;
}

/* Listing type chooser: same compact control height as the rest of the form. */
.listing-type-choice-grid span {
  min-height: 46px;
  height: 46px;
  padding: 0 10px;
}

/* Rich pet profile picker used by listing forms. */
.pet-profile-picker-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.pet-profile-picker {
  position: relative;
  min-width: 0;
}

.pet-profile-picker__native {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pet-profile-picker__trigger {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.pet-profile-picker__trigger:hover {
  border-color: rgba(22, 118, 189, .38);
}

.pet-profile-picker__trigger.is-invalid,
.pet-profile-picker__trigger[aria-invalid="true"] {
  border-color: #c64848;
}

.pet-profile-picker__trigger:disabled,
.pet-profile-picker.is-disabled .pet-profile-picker__trigger {
  opacity: .62;
  cursor: default;
}

.pet-profile-picker__trigger-media,
.pet-profile-picker__option-media {
  width: 46px;
  height: 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef4f8;
}

.pet-profile-picker__trigger-media img,
.pet-profile-picker__option-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pet-profile-picker__trigger-media.is-empty,
.pet-profile-picker__option-media--empty {
  position: relative;
  background: var(--primary-soft);
}

.pet-profile-picker__trigger-media.is-empty::before,
.pet-profile-picker__option-media--empty::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 13px 0 -3px var(--primary);
  opacity: .8;
}

.pet-profile-picker__trigger-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pet-profile-picker__trigger-copy strong,
.pet-profile-picker__option strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-profile-picker__trigger-copy small,
.pet-profile-picker__option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-profile-picker__chevron {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-right: 1.5px solid #43586d;
  border-bottom: 1.5px solid #43586d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.pet-profile-picker.is-open .pet-profile-picker__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.pet-profile-picker__dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 49, 76, .12);
}

.pet-profile-picker__search-wrap {
  padding: 3px 3px 7px;
}

.pet-profile-picker__search {
  width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
}

.pet-profile-picker__options {
  max-height: 310px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pet-profile-picker__option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pet-profile-picker__option > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pet-profile-picker__option:hover,
.pet-profile-picker__option.is-selected {
  background: var(--primary-soft);
}

.pet-profile-picker__option.is-selected strong {
  color: var(--primary-strong);
}

@media (max-width: 720px) {
  .profile-settings-head {
    gap: 14px;
  }

  .profile-settings-head__profile-link {
    width: fit-content !important;
    min-height: 42px;
  }

  .listing-type-choice-grid span {
    min-height: 44px;
    height: 44px;
  }

  .pet-profile-picker__trigger {
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
  }

  .pet-profile-picker__trigger-media,
  .pet-profile-picker__option-media {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

/* Listing pet picker: use the PetBook paw icon for the unlinked state. */
.pet-profile-picker__trigger-media.is-empty::before,
.pet-profile-picker__option-media--empty::before {
  display: none !important;
  content: none !important;
}

.pet-profile-picker__empty-icon {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.pet-profile-picker__trigger-media.is-empty,
.pet-profile-picker__option-media--empty {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(22, 118, 189, .16);
}

/* Normalized multiple coat-colour picker for listing forms. */
.listing-color-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.listing-color-picker {
  position: relative;
  min-width: 0;
}

.listing-color-picker__native {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.listing-color-picker__trigger {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.listing-color-picker__trigger:hover {
  border-color: rgba(22, 118, 189, .38);
}

.listing-color-picker__trigger:disabled,
.listing-color-picker.is-disabled .listing-color-picker__trigger {
  opacity: .62;
  cursor: default;
}

.listing-color-picker__summary {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-color-picker__summary.is-placeholder {
  color: var(--muted);
  font-weight: 500;
}

.listing-color-picker__chevron {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-right: 1.5px solid #43586d;
  border-bottom: 1.5px solid #43586d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.listing-color-picker.is-open .listing-color-picker__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.listing-color-picker__dropdown {
  position: absolute;
  z-index: 85;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 300px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 49, 76, .12);
  overscroll-behavior: contain;
}

.listing-color-picker__dropdown[hidden] {
  display: none !important;
}

.listing-color-picker__option {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.listing-color-picker__option:hover,
.listing-color-picker__option.is-selected {
  background: var(--primary-soft);
}

.listing-color-picker__option.is-selected {
  color: var(--primary-strong);
}

.listing-color-picker__swatch {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 48, 73, .18);
  border-radius: 50%;
  background: var(--coat-swatch, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.listing-color-picker__swatch--other {
  background: #eef5fa;
  color: var(--primary-strong);
}

.listing-color-picker__other-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.listing-color-picker__check {
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  text-align: center;
}

.listing-color-picker__option.is-selected .listing-color-picker__check {
  opacity: 1;
}

.listing-color-other {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.listing-color-other[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .listing-color-picker__dropdown {
    grid-template-columns: 1fr;
  }
}

/* Coat-colour picker placement: listings keep it beside Sex; pet profiles can span the row. */
.listing-color-field--side .listing-color-picker__dropdown {
  left: auto;
  right: 0;
  width: min(560px, calc(100vw - 48px));
}

.listing-color-field--full .listing-color-picker__dropdown {
  left: 0;
  right: auto;
  width: min(560px, 100%);
}

@media (max-width: 720px) {
  .listing-color-field--side .listing-color-picker__dropdown,
  .listing-color-field--full .listing-color-picker__dropdown {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* Context-aware listing filters: sex for pair/sale/adoption, breed for pair/sale. */
.filter-panel.filter-panel--listing-sex[data-auto-filter-form] {
  grid-template-columns: minmax(280px, 1fr) minmax(210px, .34fr) minmax(160px, .24fr);
}

.filter-panel.filter-panel--listing-breed[data-auto-filter-form] {
  grid-template-columns: minmax(260px, 1fr) minmax(185px, .28fr) minmax(150px, .21fr) minmax(230px, .36fr);
}

.listing-filter-field {
  min-width: 0;
  display: block;
}

.listing-filter-field select {
  width: 100%;
}

.filter-panel .breed-picker-field--filter {
  min-width: 0;
  gap: 0;
}

.filter-panel .breed-picker-field--filter .breed-picker__dropdown {
  left: auto;
  right: 0;
  width: min(420px, calc(100vw - 48px));
}

@media (max-width: 1100px) and (min-width: 721px) {
  .filter-panel.filter-panel--listing-breed[data-auto-filter-form] {
    grid-template-columns: minmax(280px, 1fr) minmax(220px, .42fr);
  }

  .filter-panel.filter-panel--listing-breed .listing-filter-field--sex,
  .filter-panel.filter-panel--listing-breed .breed-picker-field--filter {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .filter-panel.filter-panel--listing-sex[data-auto-filter-form],
  .filter-panel.filter-panel--listing-breed[data-auto-filter-form] {
    grid-template-columns: 1fr;
  }

  .filter-panel .breed-picker-field--filter .breed-picker__dropdown {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* PetBook service provider editor / catalog */
.service-form-card { align-items: start; }
.service-form-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.service-form-section-head .btn { flex: 0 0 auto; }
.service-repeat-list { display: grid; gap: 14px; margin-top: 18px; }
.service-repeat-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft, #f8fafc); }
.service-repeat-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.service-repeat-card__head strong { color: var(--ink); font-size: 14px; }
.service-repeat-remove { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.service-repeat-remove:hover { color: var(--ink); border-color: var(--primary); }
.service-city-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; min-width: 0; }
.service-city-field .city-picker { width: 100%; }
.service-offer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(130px, .6fr) minmax(150px, .6fr) 40px; align-items: end; }
.service-offer-remove { display: flex; justify-content: flex-end; padding-bottom: 6px; }
.service-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.service-logo-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.service-logo-preview img { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.service-logo-delete { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 8px !important; }
.service-logo-delete input { width: 18px !important; height: 18px !important; }
.owner-service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.owner-service-card { display: grid; grid-template-columns: 188px minmax(0,1fr); align-items: start; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.owner-service-card__media { width: 170px; height: 170px; min-height: 0; align-self: start; margin: 18px 0 18px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft, #f6f8fb); }
.owner-service-card--specialist .owner-service-card__media { border-radius: 50%; }
.owner-service-card__media img { width: 170px; height: 170px; object-fit: cover; display: block; }
.owner-service-card__body { min-width: 0; padding: 18px; }
.owner-service-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.owner-service-card__top small { color: var(--muted); }
.owner-service-card h2 { margin: 12px 0 4px; font-size: 20px; }
.owner-service-card p { margin: 0; color: var(--muted); }
.owner-service-card__stats { display: flex; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.owner-service-card__stats b { color: var(--ink); }
.owner-service-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; background: #eef3f8; color: var(--muted); font-size: 11px; font-weight: 750; }
.service-status--published { background: #eaf8ef; color: #18743a; }
.service-status--moderation { background: #fff6dc; color: #8a6500; }
.service-status--rejected { background: #fff0f0; color: #a93636; }
.service-categories--dynamic { grid-template-columns: repeat(4, minmax(0,1fr)); }
.service-categories--dynamic a.is-active { border-color: var(--primary); background: #f4f8ff; }
.service-filter-panel { grid-template-columns: minmax(260px,1fr) minmax(220px,.45fr); }
.service-filter-city { min-width: 0; }
.service-filter-location { min-width: 0; }
.provider-avatar--image { overflow: hidden; padding: 0; }
.provider-avatar--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.provider-card--dynamic small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.service-location-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.service-location-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft, #f8fafc); }
.service-location-card h3, .service-location-card p { margin: 0; }
.service-location-card p, .service-location-card small { color: var(--muted); }
.service-location-card a { margin-top: 4px; font-weight: 700; }
.service-area-public-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-area-public-list span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 7px 11px;
  border: 1px solid #dce5ec; border-radius: 10px; background: #f8fafc;
  color: var(--ink); font-size: 13px; line-height: 1.35;
}
.contact-card__link { display: block; margin-top: 14px; font-weight: 700; }

@media (max-width: 980px) {
  .service-categories--dynamic { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-offer-grid { grid-template-columns: 1fr 1fr; }
  .service-offer-remove { justify-content: flex-start; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .service-form-section-head { display: grid; }
  .service-form-section-head .btn { width: 100%; }
  .service-form-actions { display: grid; }
  .service-form-actions .btn { width: 100%; }
  .owner-service-card { grid-template-columns: 1fr; }
  .owner-service-card__media { width: 170px; height: 170px; margin: 16px 16px 0; }
  .service-categories--dynamic { grid-template-columns: 1fr; }
  .service-filter-panel { grid-template-columns: 1fr; }
  .service-offer-grid { grid-template-columns: 1fr; }
  .service-location-list { grid-template-columns: 1fr; }
}
.clinic-results--catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.clinic-logo--image { overflow: hidden; padding: 0; }
.clinic-logo--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic-result-card__top small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .clinic-results--catalog { grid-template-columns: 1fr; } }
.home-clinic-cta { display: grid; align-content: center; gap: 10px; text-decoration: none; min-height: 100%; }
.home-clinic-cta > span { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.home-clinic-cta > strong { color: var(--ink); font-size: 22px; line-height: 1.2; }
.home-clinic-cta > p { margin: 0; color: var(--muted); }
.home-clinic-cta > b { color: var(--primary); }
.home-service-empty { display: grid; gap: 5px; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.home-service-empty strong { color: var(--ink); }
@media (min-width: 981px) { .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 641px) and (max-width: 980px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.service-logo-field { display: grid; gap: 7px; }
.service-logo-field > span:first-child { color: var(--muted); font-size: 12px; font-weight: 650; }


/* Service provider editor polish + separated service navigation */
.dashboard-nav-shell {
  min-width: 0;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.dashboard-nav-shell .dashboard-nav {
  position: static;
  top: auto;
}

.dashboard-nav__title {
  padding: 4px 12px 7px;
  color: #8a99aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-nav--grouped {
  border-color: rgba(22, 118, 189, .18);
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.dashboard-nav--pets,
.dashboard-nav--ads,
.dashboard-nav--services {
  overflow: hidden;
}

.service-editor-page .dashboard-content--form {
  max-width: none;
}

.service-provider-form {
  display: grid;
  gap: 16px;
}

.service-provider-form .service-form-card {
  padding: 20px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 49, 76, .035);
}

.service-provider-form .form-card__intro {
  max-width: none;
  margin: 0 0 14px;
}

.service-provider-form .form-card__intro h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.25;
}

.service-provider-form .form-card__intro p {
  margin: 0;
}

.service-provider-form .service-form-section-head {
  margin-bottom: 14px;
}

.service-provider-form .service-repeat-list {
  gap: 10px;
  margin-top: 0;
}

.service-provider-form .service-repeat-card {
  padding: 16px;
  border-color: #dfe7ee;
  border-radius: 12px;
  background: #f8fafc;
}

.service-provider-form .service-repeat-card__head {
  margin-bottom: 12px;
}

.service-provider-form .service-repeat-remove {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  padding: 0;
  border-radius: 9px;
}

.service-repeat-remove__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.service-provider-form .service-offer-grid {
  grid-template-columns: minmax(240px, 1fr) 140px 180px 46px;
  gap: 12px;
  align-items: end;
}

.service-provider-form .service-offer-grid > * {
  min-width: 0;
}

.service-provider-form .service-offer-grid select {
  width: 100%;
}

.service-provider-form .service-offer-remove {
  align-items: end;
  justify-content: flex-end;
  padding-bottom: 0;
}

.service-provider-form .service-offer-remove .service-repeat-remove {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 10px;
}

.service-provider-form .service-offer-description-field {
  grid-column: 1 / -1;
}

.service-provider-form .service-offer-description-field small {
  color: #8a9aab;
  font-size: 11px;
  font-weight: 500;
}

.service-provider-form .service-offer-description-field textarea {
  min-height: 82px;
  resize: vertical;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.45;
}

.service-provider-form .service-offer-description-field textarea::placeholder {
  font-size: 14px;
  font-weight: 400;
}

.service-provider-form .service-form-actions {
  margin-top: 0;
  padding-top: 2px;
}

.service-logo-field.pet-avatar-field {
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 22px;
  margin-top: 2px;
}

.service-logo-uploader .image-uploader__dropzone {
  background: #fff;
}

@media (max-width: 980px) {
  .dashboard-nav-shell {
    width: 100%;
    position: static;
  }

  .dashboard-nav-shell .dashboard-nav {
    width: 100%;
  }

  .dashboard-nav-shell .dashboard-nav--grouped {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-nav-shell .dashboard-nav__title {
    grid-column: 1 / -1;
  }

  .service-provider-form .service-offer-grid {
    grid-template-columns: minmax(0, 1fr) 140px 170px 46px;
  }
}

@media (max-width: 760px) {
  .service-provider-form .service-form-card {
    padding: 18px;
  }

  .service-provider-form .service-offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-provider-form .service-offer-remove {
    justify-content: flex-start;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-nav-shell {
    gap: 10px;
  }

  .dashboard-nav-shell .dashboard-nav--grouped {
    grid-template-columns: 1fr 1fr;
  }

  .service-provider-form {
    gap: 12px;
  }

  .service-provider-form .service-form-card {
    padding: 16px;
  }

  .service-provider-form .service-form-section-head {
    gap: 12px;
  }

  .service-provider-form .service-repeat-card {
    padding: 14px;
  }

  .service-provider-form .service-offer-grid {
    grid-template-columns: 1fr;
  }

  .service-logo-field.pet-avatar-field {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-nav-shell .dashboard-nav--grouped {
    display: grid;
  }
}

/* Service provider form: progressive type-first flow */
.service-provider-details {
  display: grid;
  gap: 16px;
}

.service-provider-details[hidden],
.service-provider-form [data-service-organization-only][hidden] {
  display: none !important;
}

.service-provider-form .service-kind-card .form-card__wide {
  max-width: 760px;
}

.service-provider-form .service-kind-select-wrap {
  display: grid;
  max-width: 520px;
}

.service-provider-form .service-kind-select-wrap select {
  width: 100%;
}

@media (max-width: 640px) {
  .service-provider-details {
    gap: 12px;
  }

  .service-provider-form .service-kind-select-wrap {
    max-width: none;
  }
}

/* Service provider delivery modes, service areas and location contacts */
.service-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-mode-option {
  position: relative;
  display: block;
  min-width: 0;
}

.service-mode-option[hidden],
.service-mode-panel[hidden],
.service-online-note[hidden],
.service-inherited-contact-preview[hidden],
.service-location-contact-fields[hidden] {
  display: none !important;
}

.service-mode-option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.service-mode-option > span {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.service-mode-option > span strong {
  color: var(--ink);
  font-size: 14px;
}

.service-mode-option > span small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.service-mode-option input:checked + span {
  border-color: rgba(22, 118, 189, .48);
  background: rgba(22, 118, 189, .07);
}

.service-mode-option.field-has-error > span,
.service-mode-option input.is-invalid + span {
  border-color: var(--danger, #d64545);
}

.service-mode-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-mode-panel .service-form-section-head {
  margin-bottom: 12px;
}

.service-mode-panel .service-form-section-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.service-mode-panel .service-form-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.service-online-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(22, 118, 189, .18);
  border-radius: 11px;
  background: rgba(22, 118, 189, .05);
}

.service-online-note strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
}

.service-online-note span {
  color: var(--muted);
  font-size: 13px;
}

.service-location-contacts {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dfe7ee;
}

.service-contact-inherit-toggle {
  display: inline-flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 9px !important;
  width: auto;
  cursor: pointer;
}

.service-contact-inherit-toggle input {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  margin: 0;
}

.service-contact-inherit-toggle span {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.service-inherited-contact-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.service-inherited-contact-preview span {
  color: var(--muted);
  font-size: 12px;
}

.service-inherited-contact-preview b {
  color: var(--ink);
  font-weight: 700;
}

.service-inherited-contact-preview i {
  font-style: normal;
}

.service-location-contact-fields {
  margin-top: 12px;
}

.service-area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: start;
  gap: 12px;
}

.service-area-row .service-location-geo {
  grid-column: 1;
}

.service-area-row > .service-repeat-remove {
  grid-column: 2;
  margin-top: 24px;
}

.service-area-row__city {
  min-width: 0;
}

.service-area-row__city > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.service-delivery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.service-delivery-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft, #f8fafc);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 760px) {
  .service-mode-grid {
    grid-template-columns: 1fr;
  }

  .service-mode-option > span {
    min-height: 0;
  }

  .service-online-note {
    display: grid;
  }
}

@media (max-width: 640px) {
  .service-area-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .service-inherited-contact-preview {
    display: grid;
  }
}

/* Service moderation workflow */
.owner-service-card__moderation {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(41, 128, 185, .18);
  border-radius: 10px;
  background: rgba(41, 128, 185, .06);
  color: #466176;
  font-size: 12px;
  line-height: 1.55;
}
.owner-service-card__moderation.is-rejected {
  border-color: rgba(198, 72, 72, .24);
  background: rgba(198, 72, 72, .06);
  color: #8f3838;
}
.owner-service-card__moderation strong,
.owner-service-card__moderation span { display: block; }
.owner-service-card__moderation strong { margin-bottom: 3px; }
.service-moderation-alert { display: grid; gap: 5px; margin-bottom: 14px; }
.service-moderation-alert strong { font-size: 13px; }
.service-moderation-alert span,
.service-moderation-alert small { line-height: 1.55; }

/* Public services catalog + detail refresh */
.services-catalog-page .container,
.service-public-page .container {
  max-width: 1280px;
}

.services-catalog-head {
  margin-bottom: 18px;
}

.services-catalog-head h1 {
  margin-bottom: 4px;
}

.services-catalog-head p {
  max-width: 760px;
}

.service-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.service-category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #53667a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.service-category-tabs a:hover {
  border-color: rgba(22, 118, 189, .28);
  color: var(--primary-strong);
  background: #f7faff;
}

.service-category-tabs a.is-active {
  border-color: rgba(22, 118, 189, .42);
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.services-catalog-page .service-filter-panel {
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 13px;
}

.provider-list--catalog {
  display: grid;
  gap: 10px;
}

.provider-card--dynamic {
  min-height: 99px;
  grid-template-columns: 75px minmax(0, 1fr) 24px;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
}

.provider-card--dynamic .provider-avatar {
  width: 75px;
  height: 75px;
  border-radius: 16px;
}

.provider-card--dynamic .provider-card__main {
  min-width: 0;
}

.provider-card__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.provider-card__title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.provider-card__subtitle {
  color: #718296;
  font-size: 12px;
  line-height: 1.45;
}

.provider-card__kind-label {
  color: var(--service-accent-strong, #607287);
  font-weight: 700;
}

.provider-card__city {
  color: #718296;
  font-weight: 500;
}

.provider-card__city {
  color: #718296;
}

.provider-card--dynamic .provider-meta {
  flex: 0 0 auto;
  text-align: right;
}

.provider-card--dynamic .provider-meta b {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.provider-card__arrow {
  color: var(--primary);
  font-size: 17px;
}

.service-delivery-badges--card {
  margin-top: 3px;
}

.service-delivery-badges--card span {
  min-height: 23px;
  padding: 3px 8px;
  font-size: 10px;
}

.service-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.service-load-more {
  min-width: 190px;
}

.service-load-more:disabled {
  opacity: .65;
  cursor: wait;
}

.service-business-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  justify-content: stretch;
  align-items: center;
  gap: 26px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 18px;
}

.provider-avatar--hero {
  width: 190px;
  height: 190px;
  border-radius: 22px;
}

.service-business-hero__content {
  min-width: 0;
}

.service-business-hero .badge {
  margin-bottom: 8px;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-title-row h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.service-message-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
}

.service-message-action svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.service-hero-cities {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #607287;
  font-size: 13px;
  font-weight: 650;
}

.service-hero-cities svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.service-hero-cities--link {
  max-width: 100%;
  color: #607287;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}

.service-hero-cities--link:hover,
.service-hero-cities--link:focus-visible {
  color: var(--primary-strong);
}

.service-hero-cities__primary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-hero-cities__more {
  flex: 0 0 auto;
  color: var(--primary-strong);
  font-weight: 800;
  white-space: nowrap;
}

#service-locations-map,
#service-areas {
  scroll-margin-top: 110px;
}

.service-delivery-badges--hero {
  margin-top: 10px;
}

.service-detail-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
}

.service-detail-main {
  display: grid;
  gap: 14px;
}

.service-detail-panel {
  margin: 0;
  padding: 22px 24px;
}

.service-detail-panel .panel-title {
  margin-bottom: 10px;
}

.service-detail-panel .panel-title h2 {
  margin: 0;
  font-size: 21px;
}

.service-price-list > div {
  padding: 12px 0;
}

.service-price-list span {
  color: #52657a;
}

.service-price-list b {
  color: var(--ink);
}

.service-price-list > .service-price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  row-gap: 5px;
  align-items: baseline;
}

.service-price-item__title {
  min-width: 0;
}

.service-price-item__price {
  white-space: nowrap;
}

.service-offer-description {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66798c;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.service-offer-description__preview {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  width: 100%;
  color: inherit;
  white-space: nowrap;
}

.service-offer-description__preview-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.service-offer-description__full {
  display: none;
  color: inherit;
}

.service-offer-description__full-text {
  display: block;
  color: inherit !important;
}

.service-offer-description.is-expanded .service-offer-description__preview {
  display: none;
}

.service-offer-description.is-expanded .service-offer-description__full {
  display: block;
}

.service-offer-description__toggle {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 0;
  color: var(--primary-strong) !important;
  font-size: 11.5px;
  font-weight: 400;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-offer-description__toggle--less {
  display: block;
  width: max-content;
  margin: 3px 0 0;
}

.service-offer-description:focus-visible {
  outline: 2px solid rgba(22, 118, 189, .25);
  outline-offset: 4px;
  border-radius: 4px;
}

.service-about-copy {
  margin: 0;
  color: #3f5267;
  line-height: 1.65;
}

.service-location-list--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.service-location-card--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px;
  border-radius: 11px;
  background: #f8fafc;
}

.service-location-card__copy {
  min-width: 0;
}

.service-location-card--compact h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.service-location-card--compact p {
  margin: 0;
  font-size: 12px;
}

.service-location-card--compact small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.service-location-card__contacts {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  font-size: 12px;
}

.service-location-card__contacts span {
  color: #718296;
}

.service-location-card__contacts a {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.service-contact-aside {
  position: sticky;
  top: 92px;
}

.service-detail-tail {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
  margin-top: 18px;
}

.service-contact-card {
  padding: 18px;
}

.service-contact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-contact-card__head .panel-label {
  min-width: 0;
  margin-bottom: 0;
}

.service-contact-card__message {
  width: 28px;
  height: 28px;
  margin: -4px -2px -4px 0;
}

.service-contact-card__message svg {
  width: 22px;
  height: 22px;
}

.service-contact-card > strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
}

.service-contact-phone {
  display: block;
  margin-top: 14px;
  color: var(--primary-strong);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  text-decoration: none;
}

.service-contact-phone--secondary {
  margin-top: 5px;
  color: #52657a;
  font-size: 14px;
}

.service-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.service-contact-links a {
  color: #52657a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.service-contact-links a:hover {
  color: var(--primary-strong);
}

.service-contact-message-fallback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  background: #f8fbfe;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.service-contact-message-fallback:hover,
.service-contact-message-fallback:focus-visible {
  border-color: rgba(22, 118, 189, .34);
  background: #f2f8fc;
  transform: translateY(-1px);
}
.service-contact-message-fallback__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(22, 118, 189, .12);
}
.service-contact-message-fallback__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.service-contact-message-fallback__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.service-contact-message-fallback__copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.service-contact-message-fallback__copy small,
.service-contact-empty-note {
  color: #607287;
  font-size: 12px;
  line-height: 1.5;
}
.service-contact-empty-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .service-detail-layout {
    grid-template-columns: 1fr;
  }
  .service-contact-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .services-catalog-head {
    gap: 14px;
  }
  .service-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .service-category-tabs::-webkit-scrollbar {
    display: none;
  }
  .service-category-tabs a {
    flex: 0 0 auto;
  }
  .provider-card--dynamic {
    grid-template-columns: 64px minmax(0, 1fr) 18px;
    gap: 11px;
    padding: 10px;
  }
  .provider-card--dynamic .provider-avatar {
    width: 64px;
    height: 64px;
  }
  .provider-card--dynamic .provider-card__main {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .provider-card--dynamic .provider-meta {
    text-align: left;
  }
  .service-business-hero {
    grid-template-columns: 101px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }
  .provider-avatar--hero {
    width: 101px;
    height: 101px;
    border-radius: 18px;
  }
  .service-title-row h1 {
    font-size: 30px;
  }
  .service-message-action svg {
    width: 24px;
    height: 24px;
  }
  .service-location-card--compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .service-location-card__contacts {
    justify-items: start;
  }
}

/* Service provider type hierarchy: organizations vs independent specialists */
.service-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 14px;
}
.service-kind-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #66798d;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none;
}
.service-kind-tabs a:hover,
.service-kind-tabs a.is-active {
  border-color: rgba(22, 118, 189, .34);
  background: #eef7ff;
  color: var(--primary-strong);
}

.provider-card--dynamic {
  position: relative;
  border-left-width: 3px;
}
.provider-card--organization {
  border-left-color: var(--service-accent, #2388cf);
  background: #fbfdff;
}
.provider-card--specialist {
  border-left-color: var(--service-accent, #8ea0b2);
}
.provider-card--organization .provider-avatar {
  border-radius: 14px;
  border-color: rgba(35, 136, 207, .22);
  background: #fff;
}
.provider-card--specialist .provider-avatar {
  border-radius: 50%;
}
.provider-card__eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.provider-card__eyebrow--organization {
  color: #146da9;
  background: #eaf5fd;
}
.provider-card__eyebrow--specialist {
  color: #617387;
  background: #f0f3f6;
}
.provider-card--organization .provider-card__title {
  font-size: 17px;
}

.service-business-hero--organization .provider-avatar--hero {
  border-radius: 20px;
  background: #fff;
}
.service-business-hero--specialist .provider-avatar--hero {
  border-radius: 50%;
}
.service-contact-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.service-contact-name-row > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.service-contact-name-row .service-message-action {
  flex: 0 0 auto;
}
.service-contact-name-row .service-message-action svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .service-kind-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .service-kind-tabs::-webkit-scrollbar { display: none; }
  .service-kind-tabs a { flex: 0 0 auto; }
  .provider-card__eyebrow { font-size: 8px; }
}


/* Service category palette: one restrained accent ties catalog cards and detail badges together. */
.service-category--veterinary {
  --service-accent: #2f80c9;
  --service-accent-strong: #21679f;
  --service-accent-soft: #eaf4fc;
  --service-accent-border: #b8d7ee;
}
.service-category--grooming {
  --service-accent: #8b6bb3;
  --service-accent-strong: #6f5196;
  --service-accent-soft: #f2edf8;
  --service-accent-border: #d6c6e8;
}
.service-category--training {
  --service-accent: #c58a3a;
  --service-accent-strong: #996726;
  --service-accent-soft: #fbf2e5;
  --service-accent-border: #ead2ad;
}
.service-category--walking {
  --service-accent: #4c9475;
  --service-accent-strong: #36745a;
  --service-accent-soft: #eaf5f0;
  --service-accent-border: #bddccc;
}
.service-category--care {
  --service-accent: #bf7189;
  --service-accent-strong: #97546a;
  --service-accent-soft: #faedf1;
  --service-accent-border: #e6c3ce;
}
.service-category--photo {
  --service-accent: #607f9f;
  --service-accent-strong: #496783;
  --service-accent-soft: #edf3f8;
  --service-accent-border: #c5d4e1;
}

.service-business-hero .service-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--service-accent-border, #c5d4e1);
  border-radius: 8px;
  color: var(--service-accent-strong, #496783);
  background: var(--service-accent-soft, #edf3f8);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

/* Home no longer exposes clinics as a standalone section. */
@media (min-width: 1201px) {
  .home-launcher .launcher-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Service provider portfolio: reuses the stable media pipeline, but keeps a business-oriented visual language. */
.service-media-form-card .form-card__intro {
  margin-bottom: 16px;
}
.service-media-uploader {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafe 100%);
}
.service-media-uploader .pet-media-uploader__dropzone {
  min-height: 92px;
  border-radius: 11px;
  background: #fff;
}
.service-media-uploader .pet-media-uploader__previews {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.service-media-uploader .pet-media-uploader__preview {
  min-height: 118px;
  border-radius: 11px;
  background: #fff;
}
.service-media-form-note {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  color: #718296;
  font-size: 12px;
  line-height: 1.45;
}
.service-media-form-note strong {
  color: #42566c;
}

.service-portfolio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.service-portfolio-heading > div {
  min-width: 0;
}
.service-portfolio-heading p {
  margin: 4px 0 0;
  color: #718296;
  font-size: 12px;
}
.service-portfolio-heading > span {
  flex: 0 0 auto;
  color: #718296;
  font-size: 11px;
  font-weight: 700;
}
.service-portfolio-grid {
  --service-portfolio-row: 1px;
  --service-portfolio-gap: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--service-portfolio-gap);
  row-gap: var(--service-portfolio-gap);
  align-items: start;
}
/*
 * The old multicolumn layout filled media vertically, so with only a few
 * portrait items the second card could appear below the first while the
 * right side stayed empty. JS adds row spans only after measuring natural
 * media heights; without JS this remains a normal, predictable CSS grid.
 */
.service-portfolio-grid.is-masonry-ready {
  grid-auto-rows: var(--service-portfolio-row);
  row-gap: 0;
}
.service-portfolio-item {
  position: relative;
  width: 100%;
  display: block;
  align-self: start;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  background: #edf2f7;
  box-shadow: 0 2px 8px rgba(17, 43, 68, .04);
  cursor: pointer;
}
.service-portfolio-item img,
.service-portfolio-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform .22s ease;
}
.service-portfolio-item:hover img {
  transform: scale(1.018);
}
.service-portfolio-item__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(9, 33, 55, .78);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(9, 33, 55, .16);
}
.service-portfolio-item__placeholder {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #718296;
  font-size: 22px;
}

@media (max-width: 980px) {
  .service-media-uploader .pet-media-uploader__previews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .service-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .service-media-uploader {
    padding: 10px;
  }
  .service-media-uploader .pet-media-uploader__previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-media-uploader .pet-media-uploader__dropzone {
    min-height: 84px;
  }
  .service-portfolio-heading {
    align-items: flex-start;
  }
  .service-portfolio-grid {
    --service-portfolio-gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .service-portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FINAL service catalog semantic colors.
   Category accent belongs to the left border + service kind label only.
   Provider type badges stay invariant: organization = blue, specialist = gray. */
.provider-card--dynamic .provider-card__kind-label {
  color: var(--service-accent-strong, #607287) !important;
  font-weight: 700;
}

.provider-card--dynamic .provider-card__eyebrow--organization {
  color: #146da9 !important;
  background: #eaf5fd !important;
}

.provider-card--dynamic .provider-card__eyebrow--specialist {
  color: #617387 !important;
  background: #f0f3f6 !important;
}

/* ServiceLocation address geocoding and the single shared provider map. */
.service-location-geo { display: grid; gap: 9px; min-width: 0; }
.service-location-address-field { min-width: 0; }
.service-location-address-input-wrap { position: relative; display: block; min-width: 0; }
.service-location-address-input-wrap > input { width: 100%; }
.service-address-suggestions {
  position: absolute; z-index: 80; top: calc(100% + 5px); left: 0; right: 0;
  max-height: 248px; overflow-y: auto; padding: 5px; border: 1px solid #d7e1e9;
  border-radius: 11px; background: #fff; box-shadow: 0 12px 28px rgba(18, 44, 69, .12);
}
.service-address-suggestions button {
  width: 100%; display: grid; gap: 2px; padding: 9px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.service-address-suggestions button:hover,
.service-address-suggestions button:focus-visible { outline: none; background: #eef6fc; }
.service-address-suggestions strong { font-size: 13px; line-height: 1.35; }
.service-address-suggestions small,
.service-address-suggestions__empty { color: #718296; font-size: 11px; line-height: 1.35; }
.service-address-suggestions__empty { display: block; padding: 9px 10px; }
.service-location-geo-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px;
  padding: 7px 8px 7px 11px; border: 1px solid #dfe7ee; border-radius: 10px;
  background: #fff; color: #718296; font-size: 11px; line-height: 1.35;
}
.service-location-geo-summary.has-point { border-color: #b9dbc9; background: #f4fbf7; color: #2f7650; }
.service-location-geo-summary.is-error { border-color: #e8c0bd; background: #fff7f6; color: #a0453d; }
.service-location-geo-summary.is-loading { color: #526b84; }
.service-map-toggle {
  flex: 0 0 auto; min-height: 28px; padding: 4px 8px; border: 1px solid #cbd9e5;
  border-radius: 8px; background: #fff; color: var(--primary-strong); font: inherit;
  font-weight: 750; cursor: pointer;
}
.service-map-toggle:hover { border-color: var(--primary); }
.service-location-map-editor {
  position: relative; z-index: 0; isolation: isolate; contain: paint; overflow: hidden;
  border: 1px solid #dbe5ed; border-radius: 12px; background: #fff;
}
.service-location-map-canvas { position: relative; z-index: 0; width: 100%; height: 390px; overflow: hidden; background: #eef3f6; }
.service-location-map-editor > p {
  margin: 0; padding: 8px 11px; border-top: 1px solid #e5ebf0;
  color: #718296; font-size: 11px; line-height: 1.4;
}
.listing-event-location-editor {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  align-items: end;
}
.listing-event-location-slot { grid-column: 1 / -1; min-width: 0; }
.listing-event-location-slot:empty { display: none; }
.listing-event-location-slot > .listing-event-location-editor { width: 100%; }
.listing-event-location-editor .service-location-map-editor { grid-column: 1 / -1; }
.listing-event-location-editor .service-location-map-canvas { height: 360px; }
.service-yandex-marker {
  position: relative; width: 28px; height: 34px; display: block; padding: 0;
  transform: translate(-50%, -100%); border: 0; border-radius: 0;
  background: transparent; color: #1676bd;
  filter: drop-shadow(0 5px 7px rgba(14, 48, 78, .28));
  font-size: 9px; line-height: 1; font-weight: 850; cursor: pointer;
}
.service-yandex-marker__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.service-yandex-marker__label {
  position: absolute; top: 13px; left: 50%; transform: translate(-50%, -50%);
  color: #0f5f99; font: inherit; pointer-events: none;
}
.service-yandex-marker--editor { width: 28px; height: 34px; }
.service-yandex-marker--public { appearance: none; }
.service-yandex-marker--public.is-active {
  color: #0c5790;
  filter: drop-shadow(0 0 5px rgba(22, 118, 189, .45)) drop-shadow(0 6px 8px rgba(14, 48, 78, .32));
}
.service-public-map-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(245px, .85fr);
  gap: 12px; align-items: stretch;
}
.service-locations-panel {
  grid-column: 1 / -1;
}
.service-public-map-layout--detail {
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
}
.service-public-map-layout--detail .service-location-list--compact {
  order: 1;
}
.service-public-map-layout--detail .service-public-map-frame {
  order: 2;
}
.service-public-map-layout--detail .service-public-map-canvas {
  height: 460px;
}
.service-public-map-frame {
  position: relative; z-index: 0; isolation: isolate; contain: paint;
  min-width: 0; overflow: hidden; border: 1px solid #dce5ec;
  border-radius: 12px; background: #eef3f6;
}
.service-public-map-canvas { position: relative; z-index: 0; width: 100%; height: 430px; overflow: hidden; }
.service-public-map-fallback {
  min-height: 150px; display: grid; place-items: center; margin: 0; padding: 18px;
  color: #718296; font-size: 12px; text-align: center;
}
.listing-detail-map { margin-top: 18px; }
.listing-detail-map .service-public-map-canvas { height: 360px; }
.service-public-map-layout .service-location-list--compact {
  max-height: 430px; align-content: start; overflow-y: auto; padding-right: 2px;
}
.service-public-map-layout--detail .service-location-list--compact {
  max-height: 460px;
}
.service-location-card--compact.has-map-point {
  position: relative; padding-left: 52px; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.service-location-card__map-index {
  position: absolute; top: 13px; left: 14px; width: 27px; height: 27px;
  display: grid; place-items: center; border-radius: 8px;
  background: #1676bd; color: #fff; font-size: 11px; line-height: 1; font-weight: 850;
}
.owner-service-card__locations {
  grid-column: 1 / -1; min-width: 0; padding: 14px;
  border-top: 1px solid #e5ebf0; background: #fbfcfd;
}
.service-public-map-layout--owner {
  display: grid; grid-template-columns: 1fr; gap: 9px;
}
.service-public-map-layout--owner .service-public-map-canvas { height: 230px; }
.service-public-map-layout--owner .service-location-list--compact {
  max-height: none; grid-template-columns: 1fr; overflow: visible; padding-right: 0;
}
.service-public-map-layout--owner .service-location-card--compact { background: #fff; }
.service-location-card--compact.has-map-point:hover,
.service-location-card--compact.has-map-point:focus-visible,
.service-location-card--compact.is-map-active {
  outline: none; border-color: rgba(22, 118, 189, .38); background: #eef7fd;
}
@media (max-width: 980px) {
  .service-public-map-layout { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); }
  .service-public-map-layout--detail { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 720px) {
  .service-location-geo-summary { align-items: flex-start; flex-direction: column; }
  .service-map-toggle { width: 100%; min-height: 40px; }
  .service-location-map-canvas { height: 330px; }
  .listing-event-location-editor { grid-template-columns: 1fr; align-items: stretch; }
  .listing-event-location-editor .service-location-map-editor { grid-column: auto; }
  .listing-event-location-editor .service-location-map-canvas { height: 310px; }
  .service-public-map-layout { grid-template-columns: 1fr; }
  .service-public-map-canvas { height: 350px; }
  .service-public-map-layout--detail { grid-template-columns: 1fr; }
  .service-public-map-layout--detail .service-public-map-canvas { height: 350px; }
  .service-public-map-layout .service-location-list--compact { max-height: none; overflow: visible; padding-right: 0; }
  .service-location-card--compact.has-map-point { min-height: 72px; }
  .service-public-map-layout--owner .service-public-map-canvas { height: 270px; }
  .listing-detail-map .service-public-map-canvas { height: 310px; }
}

/* Service provider reviews: one moderated rating per user and one provider reply. */
.service-hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  color: #5f7184;
  text-decoration: none;
}
.service-hero-rating:hover small,
.service-hero-rating:focus-visible small { color: #087cc1; }
.service-hero-rating b { color: #17283a; font-size: 15px; }
.service-hero-rating small { color: #66798c; font-size: 13px; transition: color .18s ease; }

.service-stars {
  --service-rating: 0;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: #d8e0e7;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}
.service-stars > span,
.service-stars > i { display: block; }
.service-stars > i {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((var(--service-rating) / 5) * 100%);
  overflow: hidden;
  color: #f5a623;
  font-style: normal;
  white-space: nowrap;
}
.service-stars--compact { font-size: 17px; letter-spacing: 1px; }

.provider-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: #66798c;
  font-size: 12px;
}
.provider-card__rating i { color: #f5a623; font-size: 15px; font-style: normal; }
.provider-card__rating b { color: #203449; font-size: 13px; }
.provider-card__rating small { font-size: 12px; }
.owner-service-card__rating b { color: #b36b00; }

.service-reviews-panel {
  grid-column: 1 / -1;
  scroll-margin-top: 118px;
  padding: 28px;
}
.public-user-reviews { margin-top: 24px; }
.listing-detail-reviews { margin-top: 24px; }
.service-reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce5ec;
}
.service-reviews-heading h2 { margin: 4px 0 0; }
.service-reviews-summary { display: flex; align-items: center; gap: 12px; }
.service-reviews-summary > b { color: #17283a; font-size: 36px; line-height: 1; }
.service-reviews-summary > div { display: grid; gap: 4px; }
.service-reviews-summary small { color: #697c8e; font-size: 12px; }

.service-reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 34px;
  padding-top: 26px;
}
.service-reviews-layout.is-feed-only { grid-template-columns: minmax(0, 1fr); }
.service-review-compose {
  align-self: start;
  padding: 20px;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  background: #f8fbfd;
}
.service-review-compose__note strong { display: block; color: #17283a; font-size: 17px; }
.service-review-compose__note p { margin: 8px 0 17px; color: #65788b; font-size: 13px; line-height: 1.55; }
.service-review-own-status,
.service-review-owner-state {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid #c8ddea;
  border-radius: 9px;
  background: #eff7fc;
  color: #27617f;
  font-size: 12px;
  line-height: 1.45;
}
.service-review-own-status--rejected,
.service-review-owner-state.is-rejected { border-color: #efc5bf; background: #fff5f3; color: #98372e; }
.service-review-own-status--deleted { border-color: #d8e3eb; background: #f5f7f9; color: #66798c; }
.service-review-own-delete { margin: -5px 0 15px; }
.service-review-form { display: grid; gap: 16px; }
.service-review-form > label { display: grid; gap: 7px; color: #3c5267; font-size: 13px; font-weight: 700; }
.service-review-form textarea,
.service-review-reply-editor textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #ccd9e3;
  border-radius: 10px;
  background: #fff;
  color: #17283a;
  font: inherit;
  font-weight: 500;
  line-height: 1.55;
}
.service-review-form textarea:focus,
.service-review-reply-editor textarea:focus { border-color: #1687ca; outline: 2px solid rgba(22, 135, 202, .12); }
.service-review-form__notice { color: #65798b; font-size: 12px; line-height: 1.45; }
.service-review-edit-locked {
  padding: 12px 14px;
  border: 1px solid #d8e3eb;
  border-radius: 9px;
  background: #fff;
  color: #65798b;
  font-size: 12px;
  line-height: 1.5;
}

.service-rating-input { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-rating-input legend { margin-bottom: 7px; color: #3c5267; font-size: 13px; font-weight: 700; }
.service-rating-input > div { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.service-rating-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.service-rating-input label {
  color: #ced8e0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 31px;
  line-height: 1;
  transition: color .14s ease, transform .14s ease;
}
.service-rating-input label:hover,
.service-rating-input label:hover ~ label,
.service-rating-input input:checked ~ label { color: #f5a623; }
.service-rating-input label:hover { transform: translateY(-1px); }
.service-rating-input input:focus-visible + label { border-radius: 4px; outline: 2px solid #1687ca; outline-offset: 2px; }

.service-review-feed { min-width: 0; }
.service-review-list { display: grid; }
.service-review-card { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid #dce5ec; }
.service-review-card:last-child { margin-bottom: 0; }
.service-review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.service-review-card__tools { display: flex; align-items: center; gap: 12px; }
.service-review-delete-form { margin: 0; }
.service-review-delete-button { padding: 0; border: 0; background: transparent; color: #a54840; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.service-review-delete-button:hover { color: #c23b31; text-decoration: underline; }
.service-review-delete-button:disabled { opacity: .55; cursor: default; text-decoration: none; }
.service-review-author { display: inline-flex; align-items: center; gap: 11px; color: #17283a; text-decoration: none; }
.service-review-author > span:last-child { display: grid; gap: 2px; }
.service-review-author strong { font-size: 14px; }
.service-review-author small { color: #7b8b99; font-size: 11px; }
.service-review-author__avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d5e0e8;
  border-radius: 50%;
  background: #eaf3f8;
  color: #167ebc;
}
.service-review-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.service-review-subject { margin: 12px 0 -3px 53px; font-size: 12px; line-height: 1.45; }
.service-review-subject a,
.service-review-subject > span {
  display: inline-flex;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid #d5e2eb;
  border-radius: 7px;
  background: #f6fafc;
  color: #27617f;
  text-decoration: none;
}
.service-review-subject a:hover { border-color: #9dc8df; color: #087cc1; }
.service-review-subject.is-deleted > span { color: #7b8b99; }
.service-review-card__text { margin: 15px 0 0; color: #30485e; font-size: 14px; line-height: 1.7; }
.service-review-reply {
  margin: 17px 0 0 53px;
  padding: 14px 16px;
  border-left: 3px solid #1687ca;
  border-radius: 0 9px 9px 0;
  background: #f3f8fb;
}
.service-review-reply > span { color: #167ebc; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.service-review-reply p { margin: 6px 0 0; color: #3b5368; font-size: 13px; line-height: 1.6; }
.service-review-reply-delete { margin-top: 9px; }
.service-review-owner-state .service-review-delete-form { margin-top: 4px; }
.service-review-owner-state { margin: 15px 0 0 53px; }
.service-review-reply-editor { margin: 15px 0 0 53px; }
.service-review-reply-editor summary { width: fit-content; color: #087cc1; cursor: pointer; font-size: 12px; font-weight: 800; }
.service-review-reply-editor form { display: grid; gap: 10px; margin-top: 11px; }
.service-review-reply-editor textarea { min-height: 92px; }
.service-review-reply-editor .btn { width: fit-content; }
.service-review-empty { padding: 30px; border: 1px dashed #cad9e3; border-radius: 11px; text-align: center; }
.service-review-empty strong { display: block; color: #24394d; }
.service-review-empty p { margin: 6px 0 0; color: #728497; font-size: 13px; }
.service-reviews-load-more { display: block; margin: 20px auto 0; }

/* Review delete confirmation modal. */
body.service-review-confirm-open { overflow: hidden; }
.service-review-confirm-modal[hidden] { display: none !important; }
.service-review-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 15030;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .17s ease;
}
.service-review-confirm-modal.is-open { opacity: 1; }
.service-review-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 47, .56);
  backdrop-filter: blur(3px);
}
.service-review-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid #d7e2eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(16, 35, 52, .24);
  color: var(--text);
  outline: none;
  transform: translateY(10px) scale(.985);
  transition: transform .17s ease;
}
.service-review-confirm-modal.is-open .service-review-confirm-modal__dialog {
  transform: translateY(0) scale(1);
}
.service-review-confirm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #718296;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.service-review-confirm-modal__close:hover {
  background: #f1f5f8;
  color: #2c4055;
}
.service-review-confirm-modal__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 0 16px;
  border-radius: 14px;
  background: #fff0f1;
  color: #c94d5c;
}
.service-review-confirm-modal__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.service-review-confirm-modal__dialog h3 {
  margin: 0 44px 9px 0;
  color: #172437;
  font-size: 24px;
  line-height: 1.2;
}
.service-review-confirm-modal__dialog p {
  margin: 0;
  color: #61758a;
  font-size: 14px;
  line-height: 1.55;
}
.service-review-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.service-review-confirm-modal__cancel,
.service-review-confirm-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.service-review-confirm-modal__cancel {
  border-color: #d5e0e8;
  background: #fff;
  color: #354c61;
}
.service-review-confirm-modal__cancel:hover {
  border-color: #c5d2dc;
  background: #f3f6f8;
}
.service-review-confirm-modal__submit {
  border-color: #c94d5c;
  background: #c94d5c;
  color: #fff;
}
.service-review-confirm-modal__submit:hover {
  border-color: #b84252;
  background: #b84252;
}
.service-review-confirm-modal__cancel:active,
.service-review-confirm-modal__submit:active { transform: translateY(1px); }
.service-review-confirm-modal__close:focus-visible,
.service-review-confirm-modal__cancel:focus-visible,
.service-review-confirm-modal__submit:focus-visible {
  outline: 2px solid rgba(22, 135, 202, .24);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .service-review-confirm-modal { align-items: end; padding: 12px; }
  .service-review-confirm-modal__dialog { width: 100%; padding: 24px 20px 20px; border-radius: 18px; }
  .service-review-confirm-modal__dialog h3 { font-size: 22px; }
  .service-review-confirm-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .service-review-confirm-modal__cancel,
  .service-review-confirm-modal__submit { width: 100%; min-width: 0; }

  .service-reviews-panel { padding: 20px 16px; scroll-margin-top: 86px; }
  .public-user-reviews { margin-top: 16px; }
  .listing-detail-reviews { margin-top: 16px; }
  .service-reviews-heading { align-items: flex-start; }
  .service-reviews-summary > b { font-size: 29px; }
  .service-reviews-layout { grid-template-columns: 1fr; gap: 25px; }
  .service-review-compose { padding: 16px; }
  .service-review-card__head { align-items: flex-start; }
  .service-review-card__tools { flex-wrap: wrap; justify-content: flex-end; }
  .service-review-reply,
  .service-review-owner-state,
  .service-review-reply-editor,
  .service-review-subject { margin-left: 0; }
}
@media (max-width: 480px) {
  .service-reviews-heading { display: grid; }
  .service-review-card__head { display: grid; }
  .service-stars--compact { margin-left: 53px; }
}

/* Listing detail: compact owner identity, profile link, message action and rating. */
.listing-owner-row {
  align-items: flex-start;
}

.listing-owner-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.listing-owner-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.listing-owner-name {
  min-width: 0;
  color: var(--ink);
  line-height: 1.3;
  text-decoration: none;
  transition: color .16s ease;
}

.listing-owner-name strong {
  display: block;
  overflow-wrap: anywhere;
}

.listing-owner-name:hover,
.listing-owner-name:focus-visible {
  color: var(--primary-strong);
}

.listing-owner-message {
  flex: 0 0 auto;
  text-decoration: none;
  transition: color .16s ease, opacity .16s ease;
}

.listing-owner-message:hover,
.listing-owner-message:focus-visible {
  color: var(--primary);
  opacity: .85;
}

.listing-owner-name-row .listing-owner-message svg {
  width: 22px;
  height: 22px;
}

.listing-owner-rating {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #66798c;
  font-size: 11px;
  line-height: 1.25;
  text-decoration: none;
  transition: color .16s ease;
}

.listing-owner-rating > span {
  color: #f5a623;
  font-size: 12px;
  line-height: 1;
}

.listing-owner-rating b {
  color: #354b61;
  font-size: 11px;
}

.listing-owner-rating small {
  color: inherit;
  font-size: 11px;
}

.listing-owner-rating:hover,
.listing-owner-rating:focus-visible {
  color: var(--primary-strong);
}

/* Services catalog: larger identity media, compact address and aligned rating. */
@media (min-width: 761px) {
  .provider-list--catalog .provider-card--dynamic {
    min-height: 160px;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 18px;
    padding: 12px 14px;
  }

  .provider-list--catalog .provider-card--dynamic .provider-avatar {
    width: 136px;
    height: 136px;
  }
}

.provider-list--catalog .provider-card--dynamic .provider-card__main {
  min-width: 0;
  width: 100%;
}

.provider-list--catalog .provider-card__subtitle {
  min-width: 0;
}

.provider-list--catalog .provider-card__city {
  min-width: 0;
}

.provider-list--catalog .provider-card__city-more {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.provider-list--catalog .provider-card__rating {
  align-items: center;
  line-height: 1.2;
}

.provider-list--catalog .provider-card__rating i,
.provider-list--catalog .provider-card__rating b,
.provider-list--catalog .provider-card__rating small {
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .provider-list--catalog .provider-card--dynamic {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* Public phone privacy: guest phone masks keep the same visual weight as phone links. */
.service-location-card__contacts .service-location-card__phone {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

/* Guest phone prompt: the real number is still never present in guest HTML. */
.public-phone-locked {
  cursor: pointer;
}

.public-phone-locked:not(.btn) {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.public-phone-auth-modal[hidden] {
  display: none !important;
}

.public-phone-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .16s ease;
}

.public-phone-auth-modal.is-open {
  opacity: 1;
}

.public-phone-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 52, .42);
  backdrop-filter: blur(2px);
}

.public-phone-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid #d7e2eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(24, 47, 68, .18);
  text-align: center;
  transform: translateY(8px) scale(.985);
  transition: transform .16s ease;
}

.public-phone-auth-modal.is-open .public-phone-auth-modal__dialog {
  transform: translateY(0) scale(1);
}

.public-phone-auth-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #708399;
  font: 400 26px/34px Arial, sans-serif;
  cursor: pointer;
}

.public-phone-auth-modal__close:hover {
  background: #f1f6fa;
  color: #17283a;
}

.public-phone-auth-modal__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf7ff;
  color: #1784cf;
}

.public-phone-auth-modal__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.public-phone-auth-modal__message {
  margin: 0 0 18px;
  color: #263b50;
  font-size: 15px;
  line-height: 1.5;
}

.public-phone-auth-modal__action {
  width: 100%;
  justify-content: center;
}

@media (max-width: 520px) {
  .public-phone-auth-modal {
    padding: 14px;
  }

  .public-phone-auth-modal__dialog {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }
}

/* Lost-pet safety acknowledgement: shown before the "Lost" listing type is activated. */
body.lost-pet-safety-open {
  overflow: hidden;
}

.lost-pet-safety-modal[hidden] {
  display: none !important;
}

.lost-pet-safety-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .17s ease;
}

.lost-pet-safety-modal.is-open {
  opacity: 1;
}

.lost-pet-safety-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 47, .56);
  backdrop-filter: blur(3px);
}

.lost-pet-safety-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(78vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 30px;
  border: 1px solid #d7e2eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(16, 35, 52, .24);
  color: var(--text);
  outline: none;
  transform: translateY(10px) scale(.985);
  transition: transform .17s ease;
}

.lost-pet-safety-modal.is-open .lost-pet-safety-modal__dialog {
  transform: translateY(0) scale(1);
}

.lost-pet-safety-modal__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  border-radius: 14px;
  background: #fff5df;
  color: #d88916;
}

.lost-pet-safety-modal__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.lost-pet-safety-modal__dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.12;
}

.lost-pet-safety-modal__lead {
  margin: 0 0 16px;
  color: #52657a;
  font-size: 15px;
  line-height: 1.55;
}

.lost-pet-safety-modal__notice {
  margin: 0 0 16px;
  padding: 15px 16px;
  border: 1px solid #ead8b6;
  border-radius: 14px;
  background: #fffaf0;
}

.lost-pet-safety-modal__notice strong {
  display: block;
  margin: 0 0 5px;
  color: #263b50;
  font-size: 14px;
  line-height: 1.35;
}

.lost-pet-safety-modal__notice p {
  margin: 0;
  color: #596b7d;
  font-size: 13px;
  line-height: 1.5;
}

.lost-pet-safety-modal__list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0 0 0 19px;
  color: #44596d;
  font-size: 13px;
  line-height: 1.5;
}

.lost-pet-safety-modal__action {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

@media (max-width: 560px) {
  .lost-pet-safety-modal {
    align-items: end;
    padding: 12px;
  }

  .lost-pet-safety-modal__dialog {
    width: 100%;
    max-height: 82vh;
    padding: 24px 20px 20px;
    border-radius: 18px;
  }
}

/* Authentication: password visibility toggle */
.auth-password-field {
  position: relative;
  display: block;
  width: 100%;
}

.auth-form .auth-password-field > input {
  width: 100%;
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7c8e;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .16s ease, background-color .16s ease;
}

.auth-password-toggle:hover {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgba(22, 118, 189, .28);
  outline-offset: 1px;
}

.auth-password-toggle__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

.auth-password-toggle__icon--hide {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--show {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--hide {
  display: block;
}

.auth-password-field input::-ms-reveal,
.auth-password-field input::-ms-clear {
  display: none;
}

/* Pet profile QR actions */
.pet-profile-qr[type="button"] {
  appearance: none;
  width: auto;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pet-profile-qr[type="button"]:focus-visible {
  outline: 2px solid rgba(20, 127, 195, .28);
  outline-offset: 2px;
}

.pet-qr-modal[hidden] {
  display: none !important;
}

body.pet-qr-modal-open {
  overflow: hidden;
}

.pet-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .15s ease;
}

.pet-qr-modal.is-open {
  opacity: 1;
}

.pet-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 49, .52);
}

.pet-qr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid #dce6ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 45, 68, .22);
  transform: translateY(8px) scale(.985);
  transition: transform .15s ease;
}

.pet-qr-modal.is-open .pet-qr-modal__dialog {
  transform: translateY(0) scale(1);
}

.pet-qr-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef4f8;
  color: #5f7288;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pet-qr-modal__close:hover {
  background: #e3edf4;
  color: #1d5f96;
}

.pet-qr-modal__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #147fc3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pet-qr-modal__dialog h2 {
  margin: 0;
  padding-right: 40px;
  color: #172437;
  font-size: 25px;
  line-height: 1.18;
}

.pet-qr-modal__dialog > p {
  margin: 9px 0 0;
  color: #64788c;
  font-size: 13px;
  line-height: 1.5;
}

.pet-qr-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pet-qr-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dce6ee;
  border-radius: 14px;
  background: #fff;
  color: #172437;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.pet-qr-action:hover {
  border-color: #bcd7e9;
  background: #f7fbfe;
  transform: translateY(-1px);
}

.pet-qr-action--print {
  border-color: #beddf0;
  background: #f2f9fd;
}

.pet-qr-action__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eaf5fb;
  color: #147fc3;
}

.pet-qr-action__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.pet-qr-action strong,
.pet-qr-action small {
  display: block;
}

.pet-qr-action strong {
  color: #172437;
  font-size: 14px;
  line-height: 1.25;
}

.pet-qr-action small {
  margin-top: 4px;
  color: #6d8194;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .pet-qr-modal {
    padding: 12px;
  }

  .pet-qr-modal__dialog {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .pet-qr-modal__dialog h2 {
    font-size: 21px;
  }

  .pet-qr-action {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .pet-qr-action__icon {
    width: 38px;
    height: 38px;
  }
}

/* QR modal: keep the latest modal layout; only center the close glyph. */
.pet-qr-modal__close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

/* Services catalog: one primary search + compact location filter. */
.services-catalog-page .service-filter-panel {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 8px;
}

.services-catalog-page .service-filter-query {
  min-width: 0;
}

.service-location-filter {
  position: relative;
  min-width: 158px;
  max-width: 280px;
}

.service-location-filter__trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #63768a;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.service-location-filter__trigger:hover,
.service-location-filter__trigger[aria-expanded="true"] {
  border-color: rgba(22, 118, 189, .42);
  color: var(--primary-strong);
  background: #f8fbfe;
}

.service-location-filter__trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.service-location-filter__trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-location-filter.is-active .service-location-filter__trigger {
  padding-right: 36px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(22, 118, 189, .34);
}

.service-location-filter__clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d8194;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.service-location-filter__clear:hover {
  background: rgba(22, 118, 189, .09);
  color: var(--primary-strong);
}

.service-location-filter__popover {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #d8e4ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(22, 42, 62, .16);
}

.service-location-filter__popover[hidden],
.service-location-filter__suggestions[hidden] {
  display: none !important;
}

.service-location-filter__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.service-location-filter__search .search-icon {
  margin-left: 12px;
  flex: 0 0 auto;
}

.service-location-filter__search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px 0 9px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.service-location-filter__hint {
  padding: 8px 4px 2px;
  color: #8190a0;
  font-size: 11px;
  line-height: 1.35;
}

.service-location-filter__hint.is-loading {
  color: var(--primary-strong);
}

.service-location-filter__hint.is-error {
  color: #aa3b3b;
}

.service-location-filter__suggestions {
  display: grid;
  gap: 3px;
  max-height: 270px;
  margin-top: 7px;
  overflow: auto;
}

.service-location-filter__suggestion {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.service-location-filter__suggestion:hover,
.service-location-filter__suggestion:focus-visible {
  background: #f0f6fb;
  outline: none;
}

.service-location-filter__suggestion strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

.service-location-filter__suggestion small {
  color: #78899a;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .services-catalog-page .service-filter-panel {
    grid-template-columns: 1fr !important;
  }

  .service-location-filter {
    width: 100%;
    max-width: none;
  }

  .service-location-filter__popover {
    right: auto;
    left: 0;
    width: 100%;
  }
}

/* Profile settings: one public name field and account security section. */
.profile-field-help {
  display: block;
  margin-top: -1px;
  color: #8292a4;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.profile-security-card__head {
  margin-bottom: 16px;
}

.profile-security-card__head h2 {
  margin-bottom: 6px;
}

.profile-security-card__head p {
  max-width: 720px;
  margin: 0;
  color: #718296;
  font-size: 12px;
  line-height: 1.55;
}

.profile-password-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-settings-password-field {
  position: relative;
  display: block;
  width: 100%;
}

.profile-settings-password-field > input {
  width: 100%;
  padding-right: 48px !important;
}

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

/* Profile settings: desktop layout cleanup. */
.profile-settings-basic-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.profile-settings-basic-grid > label:not(.profile-privacy-toggle) {
  grid-column: span 2;
  min-width: 0;
}

.profile-settings-basic-grid > .profile-privacy-toggle.form-grid__full {
  grid-column: span 3 !important;
  min-width: 0;
  min-height: 82px;
  box-sizing: border-box;
  align-self: stretch;
}

.profile-privacy-toggle strong {
  font-weight: 650;
}

.profile-privacy-toggle small {
  font-weight: 400;
}

.profile-password-grid {
  gap: 14px;
  align-items: start;
}

.profile-password-grid > label {
  min-width: 0;
}

.profile-settings-password-field,
.profile-settings-password-field > input {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .profile-settings-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-settings-basic-grid > label:not(.profile-privacy-toggle),
  .profile-settings-basic-grid > .profile-privacy-toggle.form-grid__full {
    grid-column: span 1 !important;
  }

  .profile-password-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-settings-basic-grid {
    grid-template-columns: 1fr;
  }

  .profile-settings-basic-grid > label:not(.profile-privacy-toggle),
  .profile-settings-basic-grid > .profile-privacy-toggle.form-grid__full {
    grid-column: 1 !important;
  }

  .profile-settings-basic-grid > .profile-privacy-toggle.form-grid__full {
    min-height: 0;
  }
}

/* Profile settings: force the personal-details grid on desktop.
   The generic .form-grid rule from styles.css may be loaded after this file,
   so this block intentionally uses a more specific selector + !important. */
@media (min-width: 901px) {
  .profile-settings-form .form-card .form-grid.profile-settings-basic-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start;
  }

  .profile-settings-form .form-card .form-grid.profile-settings-basic-grid > label:not(.profile-privacy-toggle) {
    grid-column: span 2 !important;
    min-width: 0;
  }

  .profile-settings-form .form-card .form-grid.profile-settings-basic-grid > .profile-privacy-toggle.form-grid__full {
    grid-column: span 3 !important;
    min-width: 0;
    min-height: 82px;
    box-sizing: border-box;
    align-self: stretch;
  }
}

/* forum question card */
.topic-page .topic-message{
  border-color:var(--primary);
  background:var(--primary);
  box-shadow:0 12px 28px rgba(22,118,189,.13);
}
.topic-page .topic-message p{color:#fff}
.topic-page .topic-message .forum-closed{border-top-color:rgba(255,255,255,.22);color:rgba(255,255,255,.84)}


/* Forum topic: compact chat-room layout */
.topic-page .forum-thread{
  height:min(72vh,760px);
  min-height:540px;
  display:flex;
  flex-direction:column;
  margin-top:24px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f4f8fb;
  box-shadow:0 16px 42px rgba(20,46,72,.08);
}
.topic-page .forum-thread .answers-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:52px;
  margin:0;
  padding:12px 18px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.topic-page .forum-thread .answers-head h2{
  margin:0;
  font-size:16px;
  font-weight:800;
}
.topic-page .forum-thread .answers-head>span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.topic-page .answer-list[data-forum-thread-scroll]{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  display:flex;
  flex-direction:column;
  gap:9px;
  overflow-y:auto;
  padding:14px 16px 18px;
  background:#f4f8fb;
  scroll-behavior:smooth;
  scrollbar-gutter:stable;
}
.topic-page .answer-list[data-forum-thread-scroll]::-webkit-scrollbar{width:7px}
.topic-page .answer-list[data-forum-thread-scroll]::-webkit-scrollbar-track{background:transparent}
.topic-page .answer-list[data-forum-thread-scroll]::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(91,116,141,.26)}
.topic-page .forum-post.panel{
  width:min(88%,760px);
  max-width:760px;
  align-self:flex-start;
  margin:0;
  padding:11px 13px 10px;
  border:1px solid #dfe8ef;
  border-radius:14px 14px 14px 5px;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,46,72,.055);
}
.topic-page .forum-post.panel.is-own{
  align-self:flex-end;
  border-color:#cfe4f4;
  border-radius:14px 14px 5px 14px;
  background:#eaf5fd;
}
.topic-page .forum-post.forum-depth-1:not(.is-own){margin-left:10px}
.topic-page .forum-post.forum-depth-2:not(.is-own){margin-left:20px}
.topic-page .forum-post.forum-depth-3:not(.is-own){margin-left:30px}
.topic-page .forum-post.forum-depth-4:not(.is-own){margin-left:40px}
.topic-page .forum-post.is-own.forum-depth-1{margin-right:6px}
.topic-page .forum-post.is-own.forum-depth-2{margin-right:12px}
.topic-page .forum-post.is-own.forum-depth-3{margin-right:18px}
.topic-page .forum-post.is-own.forum-depth-4{margin-right:24px}
.topic-page .forum-post.is-best{
  border-color:rgba(35,177,107,.42);
  box-shadow:inset 3px 0 0 rgba(35,177,107,.72),0 3px 12px rgba(20,46,72,.055);
}
.topic-page .forum-post .topic-author{
  gap:8px;
  margin-bottom:7px;
}
.topic-page .forum-post .forum-avatar{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:8px;
  font-size:10px;
}
.topic-page .forum-post .topic-author strong{
  font-size:12.5px;
  line-height:1.25;
}
.topic-page .forum-post .topic-author small{
  font-size:9.5px;
  line-height:1.3;
}
.topic-page .forum-post>p{
  margin:0;
  color:var(--text);
  font-size:13px;
  line-height:1.55;
}
.topic-page .forum-reply-context{
  margin:2px 0 8px;
  padding:6px 8px;
  border-left-width:2px;
  border-radius:0 7px 7px 0;
  font-size:10px;
  line-height:1.35;
}
.topic-page .forum-post-actions{
  gap:9px;
  margin-top:7px;
}
.topic-page .forum-post-actions .forum-link-btn{
  font-size:10.5px;
  font-weight:700;
}
.topic-page .forum-post .forum-attachments{
  gap:6px;
  margin:9px 0 3px;
}
.topic-page .forum-post .forum-attachment{
  padding:6px;
  border-radius:8px;
}
.topic-page .forum-post .forum-attachment-preview{
  width:62px;
  height:46px;
}
.topic-page .forum-post .forum-attachment--image{grid-template-columns:62px minmax(0,1fr)}
.topic-page .forum-post .forum-attachment-meta b{font-size:10px}
.topic-page .forum-post .forum-attachment-meta small{font-size:8.5px}
.topic-page .forum-pagination{
  flex:0 0 auto;
  margin:0;
  padding:8px 12px;
  border-top:1px solid var(--line);
  background:var(--surface);
}
.topic-page .forum-pagination a{
  min-width:30px;
  height:30px;
  border-radius:8px;
  font-size:10px;
}
.topic-page .forum-sticky-reply{
  position:relative;
  z-index:3;
  bottom:auto;
  flex:0 0 auto;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 10px;
  align-items:end;
  margin:0;
  padding:11px 14px 12px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:var(--surface);
  box-shadow:none;
}
.topic-page .forum-sticky-reply>.forum-answering,
.topic-page .forum-sticky-reply>label{
  grid-column:1/-1;
}
.topic-page .forum-sticky-reply>label{
  display:grid;
  gap:5px;
}
.topic-page .forum-sticky-reply>label>span{
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}
.topic-page .forum-sticky-reply textarea{
  min-height:56px;
  max-height:112px;
  resize:vertical;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  line-height:1.45;
}
.topic-page .forum-sticky-reply .forum-file-upload{
  grid-column:1;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin:0;
}
.topic-page .forum-sticky-reply .forum-file-picker{
  flex:0 0 auto;
  padding:6px 9px;
  border-style:solid;
  background:var(--primary-soft);
}
.topic-page .forum-sticky-reply .forum-file-upload>small{
  min-width:0;
  overflow:hidden;
  color:var(--muted);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topic-page .forum-sticky-reply .forum-selected-files{
  width:100%;
  flex-basis:100%;
}
.topic-page .forum-sticky-reply>.forum-submit-btn{
  grid-column:2;
  min-width:96px;
  margin:0;
}
.topic-page .forum-thread>.forum-login-note{
  flex:0 0 auto;
  margin:0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  box-shadow:none;
}
@media(max-width:720px){
  .topic-page .forum-thread{
    height:70dvh;
    min-height:470px;
    border-radius:14px;
  }
  .topic-page .forum-thread .answers-head{min-height:46px;padding:10px 12px}
  .topic-page .forum-thread .answers-head h2{font-size:14px}
  .topic-page .answer-list[data-forum-thread-scroll]{padding:10px 9px 12px;gap:8px}
  .topic-page .forum-post.panel{width:94%;padding:10px 11px}
  .topic-page .forum-post.forum-depth-1:not(.is-own){margin-left:5px}
  .topic-page .forum-post.forum-depth-2:not(.is-own){margin-left:10px}
  .topic-page .forum-post.forum-depth-3:not(.is-own){margin-left:15px}
  .topic-page .forum-post.forum-depth-4:not(.is-own){margin-left:20px}
  .topic-page .forum-post.is-own.forum-depth-1{margin-right:3px}
  .topic-page .forum-post.is-own.forum-depth-2{margin-right:6px}
  .topic-page .forum-post.is-own.forum-depth-3{margin-right:9px}
  .topic-page .forum-post.is-own.forum-depth-4{margin-right:12px}
  .topic-page .forum-sticky-reply{grid-template-columns:minmax(0,1fr) auto;padding:9px 10px 10px}
  .topic-page .forum-sticky-reply textarea{min-height:52px;max-height:96px}
  .topic-page .forum-sticky-reply .forum-file-upload>small{display:none}
  .topic-page .forum-sticky-reply>.forum-submit-btn{min-width:84px;padding-left:12px;padding-right:12px}
}

/* Forum: keep helpful-answer action aligned with the rest of the chat actions. */
.topic-page .forum-post-actions .forum-inline-form{
  display:inline-flex;
  align-items:center;
  margin:0;
  padding:0;
  line-height:1;
}
.topic-page .forum-post-actions .forum-inline-form .forum-link-btn{
  display:inline-flex;
  align-items:center;
  margin:0;
  padding:0;
  color:#239c63;
  line-height:1.2;
  white-space:nowrap;
}
.topic-page .forum-post-actions .forum-inline-form .forum-link-btn:hover{
  color:#18784b;
}

/* Forum chat: quieter helpful action, clickable reply preview and jump-to-latest control. */
.topic-page .forum-post-actions .forum-inline-form .forum-link-btn{
  color:#708a7d;
}
.topic-page .forum-post-actions .forum-inline-form .forum-link-btn:hover{
  color:#557364;
}
.topic-page .forum-reply-context--link{
  display:block;
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.topic-page .forum-reply-context--link span{
  font-weight:500;
}
.topic-page .forum-reply-context--link b{
  color:#496176;
  font-weight:750;
}
.topic-page .forum-reply-context--link:hover{
  border-left-color:#0f79bb;
  background:#dceef9;
}
.topic-page .forum-post.is-jump-target{
  animation:forum-post-jump-highlight 1.45s ease;
}
@keyframes forum-post-jump-highlight{
  0%,100%{box-shadow:0 3px 12px rgba(20,46,72,.055)}
  25%,70%{box-shadow:0 0 0 3px rgba(22,118,189,.16),0 7px 20px rgba(20,46,72,.10)}
}
.topic-page .forum-thread{
  position:relative;
}
.topic-page .forum-scroll-latest-btn{
  position:absolute;
  z-index:6;
  right:18px;
  bottom:132px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(92,111,128,.28);
  border-radius:50%;
  background:#596775;
  color:#fff;
  box-shadow:0 7px 20px rgba(15,35,53,.18);
  opacity:0;
  pointer-events:none;
  transform:translateY(7px);
  transition:opacity .16s ease,transform .16s ease,background-color .16s ease;
  cursor:pointer;
}
.topic-page .forum-scroll-latest-btn.is-visible{
  opacity:.92;
  pointer-events:auto;
  transform:translateY(0);
}
.topic-page .forum-scroll-latest-btn:hover{
  background:#465665;
  opacity:1;
}
.topic-page .forum-scroll-latest-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
}
@media(max-width:720px){
  .topic-page .forum-scroll-latest-btn{
    right:12px;
    width:36px;
    height:36px;
  }
}

/* Forum: make the login CTA visually obvious as a link. */
.topic-page .forum-login-note a{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
  transition:color .16s ease,text-decoration-color .16s ease;
}
.topic-page .forum-login-note a:hover{
  color:#0f6fae;
  text-decoration:underline;
  text-underline-offset:2px;
}

/* Home launcher variant A: compact 2x2 tiles on tablet/mobile, four sections only. */
.home-launcher--tiles {
  padding: 34px 0 30px;
}
.home-launcher--tiles .home-launcher__intro {
  max-width: 900px;
  margin: 0 0 24px;
}
.home-launcher--tiles .home-launcher__intro > span {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.home-launcher--tiles .home-launcher__intro h2 {
  max-width: 860px;
  margin: 0 0 9px;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.035em;
}
.home-launcher--tiles .home-launcher__intro p {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.home-launcher--tiles .launcher-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.home-launcher--tiles .launcher-card {
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 52, 78, .045);
}
.home-launcher--tiles .launcher-card:last-child {
  border-right: 1px solid var(--line);
}
.home-launcher--tiles .launcher-card:hover {
  border-color: rgba(22, 118, 189, .25);
  background: #f7fbfe;
  transform: translateY(-2px);
}
.home-launcher--tiles .launcher-code {
  width: 30px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin: 0 0 17px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(22, 118, 189, .08);
  font-size: 10px;
}
.home-launcher--tiles .launcher-card strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}
.home-launcher--tiles .launcher-card small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}
.home-launcher--tiles .launcher-card i {
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(22, 118, 189, .06);
  font-size: 12px;
}
@media (max-width: 980px) {
  .home-launcher--tiles {
    padding: 28px 0 24px;
  }
  .home-launcher--tiles .home-launcher__intro {
    margin-bottom: 20px;
  }
  .home-launcher--tiles .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .home-launcher--tiles .launcher-card {
    min-height: 112px;
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .home-launcher--tiles .launcher-code {
    margin-bottom: 14px;
  }
}
@media (max-width: 520px) {
  .home-launcher--tiles {
    padding-top: 24px;
  }
  .home-launcher--tiles .home-launcher__intro {
    margin-bottom: 18px;
  }
  .home-launcher--tiles .home-launcher__intro > span {
    margin-bottom: 6px;
    font-size: 10px;
  }
  .home-launcher--tiles .home-launcher__intro h2 {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.18;
  }
  .home-launcher--tiles .home-launcher__intro p {
    font-size: 13px;
    line-height: 1.5;
  }
  .home-launcher--tiles .launcher-grid {
    width: 100%;
  }
  .home-launcher--tiles .launcher-card {
    min-height: 106px;
    padding: 13px 12px;
    border-radius: 13px;
  }
  .home-launcher--tiles .launcher-code {
    width: 27px;
    height: 24px;
    margin-bottom: 12px;
    font-size: 9px;
  }
  .home-launcher--tiles .launcher-card strong {
    padding-right: 15px;
    font-size: 13px;
    line-height: 1.22;
  }
  .home-launcher--tiles .launcher-card small {
    font-size: 9.5px;
    line-height: 1.3;
  }
  .home-launcher--tiles .launcher-card i {
    top: 12px;
    right: 11px;
    width: 22px;
    height: 22px;
    background: transparent;
    font-size: 11px;
  }
}

/* Home listings: four real random listings per row on desktop. */
.home-section .listing-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .home-section .listing-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .home-section .listing-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Home listings: compact single-line titles with native full-title tooltip. */
.home-section .listing-grid--4 .listing-card__body h3 {
  min-width: 0;
  font-size: 17px;
  line-height: 1.3;
}
.home-section .listing-grid--4 .listing-card__body h3 a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Home pets: four real pet profiles per row on desktop. */
.home-section .home-pets-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .home-section .home-pets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .home-section .home-pets-grid {
    grid-template-columns: 1fr;
  }
}

/* Home services promo — isolated from the public services catalog. */
.home-services-promo {
  padding: 78px 0;
  background: #fff;
}

.home-services-promo__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 46px;
  border: 1px solid rgba(139, 186, 221, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 151, 224, .22), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(20, 119, 189, .16), transparent 34%),
    linear-gradient(135deg, #0a2238 0%, #0f304b 55%, #0a253c 100%);
  box-shadow: 0 28px 70px rgba(8, 31, 51, .18);
}

.home-services-promo__glow {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(129, 195, 238, .12);
  border-radius: 50%;
  pointer-events: none;
}

.home-services-promo__glow--one {
  width: 320px;
  height: 320px;
  top: -190px;
  right: -80px;
}

.home-services-promo__glow--two {
  width: 230px;
  height: 230px;
  left: 42%;
  bottom: -180px;
}

.home-services-promo__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.home-services-promo__copy {
  max-width: 760px;
}

.home-services-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #5fc1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.home-services-promo__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39aef5;
  box-shadow: 0 0 0 5px rgba(57, 174, 245, .1);
  content: "";
}

.home-services-promo__copy h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.home-services-promo__copy p {
  max-width: 690px;
  margin: 16px 0 0;
  color: #a9bfd1;
  font-size: 15px;
  line-height: 1.7;
}

.home-services-promo__all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(153, 202, 235, .2);
  border-radius: 13px;
  color: #eaf6ff;
  background: rgba(255, 255, 255, .055);
  font-size: 13px;
  font-weight: 750;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-services-promo__all b {
  color: #50b9fa;
  font-size: 17px;
  font-weight: 500;
}

.home-services-promo__all:hover {
  color: #fff;
  border-color: rgba(110, 196, 249, .38);
  background: rgba(255, 255, 255, .09);
  transform: translateY(-1px);
}

.home-services-promo__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-services-promo__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(155, 200, 230, .15);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-services-promo__card:hover {
  color: #fff;
  border-color: rgba(94, 190, 249, .38);
  background: linear-gradient(180deg, rgba(39, 143, 207, .18), rgba(255, 255, 255, .055));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(-4px);
}

.home-services-promo__index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(187, 214, 233, .62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-services-promo__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(88, 185, 245, .22);
  border-radius: 14px;
  color: #65c4ff;
  background: rgba(33, 132, 195, .13);
}

.home-services-promo__icon svg {
  width: 24px;
  height: 24px;
}

.home-services-promo__card-copy {
  margin-top: auto;
  padding-top: 28px;
  padding-right: 22px;
}

.home-services-promo__card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.home-services-promo__card p {
  margin: 8px 0 0;
  color: #9fb7ca;
  font-size: 12px;
  line-height: 1.55;
}

.home-services-promo__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #59bdff;
  font-size: 18px;
  font-style: normal;
  transition: transform .2s ease;
}

.home-services-promo__card:hover .home-services-promo__arrow {
  transform: translate(2px, -2px);
}

.home-services-promo__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(160, 201, 229, .12);
}

.home-services-promo__footer-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35aeef;
  box-shadow: 0 0 0 5px rgba(53, 174, 239, .09);
}

.home-services-promo__footer p {
  margin: 0;
  color: #89a6bb;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .home-services-promo {
    padding: 58px 0;
  }

  .home-services-promo__panel {
    padding: 34px;
    border-radius: 24px;
  }

  .home-services-promo__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

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

  .home-services-promo__card {
    min-height: 190px;
  }
}

@media (max-width: 720px) {
  .home-services-promo {
    padding: 46px 0;
  }

  .home-services-promo__panel {
    margin-inline: -2px;
    padding: 24px 16px 18px;
    border-radius: 20px;
  }

  .home-services-promo__head {
    gap: 18px;
    margin-bottom: 22px;
  }

  .home-services-promo__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .home-services-promo__copy h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .home-services-promo__copy p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .home-services-promo__all {
    width: 100%;
    min-height: 44px;
  }

  .home-services-promo__grid {
    gap: 9px;
  }

  .home-services-promo__card {
    min-height: 170px;
    padding: 14px;
    border-radius: 16px;
  }

  .home-services-promo__index {
    top: 14px;
    right: 14px;
    font-size: 9px;
  }

  .home-services-promo__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .home-services-promo__icon svg {
    width: 21px;
    height: 21px;
  }

  .home-services-promo__card-copy {
    padding-top: 20px;
    padding-right: 12px;
  }

  .home-services-promo__card h3 {
    font-size: 14px;
  }

  .home-services-promo__card p {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.45;
  }

  .home-services-promo__arrow {
    right: 14px;
    bottom: 13px;
    font-size: 16px;
  }

  .home-services-promo__footer {
    margin-top: 16px;
    padding: 16px 2px 0;
  }

  .home-services-promo__footer p {
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .home-services-promo__card p {
    display: none;
  }

  .home-services-promo__card {
    min-height: 142px;
  }

  .home-services-promo__card-copy {
    padding-top: 18px;
  }
}

/* Home services showcase — full-width interactive section */
.home-services-showcase {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(67, 181, 230, .16), transparent 27%),
    radial-gradient(circle at 12% 100%, rgba(29, 123, 173, .12), transparent 31%),
    #0b2942;
  color: #fff;
}

.home-services-showcase::before,
.home-services-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(123, 205, 238, .09);
  border-radius: 50%;
}

.home-services-showcase::before {
  top: -210px;
  right: -110px;
  width: 520px;
  height: 520px;
}

.home-services-showcase::after {
  left: 45%;
  bottom: -330px;
  width: 540px;
  height: 540px;
}

.home-services-showcase__inner {
  position: relative;
  z-index: 1;
  padding-top: 62px;
  padding-bottom: 62px;
}

.home-services-showcase__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.home-services-showcase__intro {
  max-width: 770px;
}

.home-services-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #63c9ef;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-services-showcase__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36baf0;
  box-shadow: 0 0 0 5px rgba(54, 186, 240, .09);
}

.home-services-showcase__intro h2 {
  max-width: 680px;
  margin: 12px 0 12px;
  color: #fff;
  font-size: clamp(34px, 3.3vw, 51px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.home-services-showcase__intro p {
  max-width: 720px;
  margin: 0;
  color: #a9c0d1;
  font-size: 14px;
  line-height: 1.7;
}

.home-services-showcase__all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(162, 215, 238, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-services-showcase__all:hover {
  border-color: rgba(99, 201, 239, .5);
  background: rgba(70, 183, 229, .12);
  transform: translateY(-1px);
}

.home-services-showcase__layout {
  display: grid;
  grid-template-columns: minmax(260px, .56fr) minmax(0, 1.44fr);
  gap: 22px;
  align-items: stretch;
}

.home-services-showcase__tabs {
  display: grid;
  gap: 10px;
}

.home-services-showcase__tab {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(168, 213, 234, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-services-showcase__tab:hover,
.home-services-showcase__tab.is-active {
  border-color: rgba(84, 194, 237, .5);
  background: linear-gradient(135deg, rgba(58, 178, 224, .16), rgba(255, 255, 255, .06));
  box-shadow: 0 14px 34px rgba(2, 21, 36, .16);
  transform: translateX(4px);
}

.home-services-showcase__tab:focus-visible {
  outline: 2px solid #63c9ef;
  outline-offset: 3px;
}

.home-services-showcase__tab-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(84, 194, 237, .28);
  border-radius: 13px;
  background: rgba(31, 151, 202, .09);
  color: #62c9ef;
}

.home-services-showcase__tab-icon svg {
  width: 22px;
  height: 22px;
}

.home-services-showcase__tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-services-showcase__tab-copy small {
  margin-bottom: 3px;
  color: #5ec7ee;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
}

.home-services-showcase__tab-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-services-showcase__tab-copy em {
  overflow: hidden;
  margin-top: 4px;
  color: #9eb8ca;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-services-showcase__tab > i {
  color: #5ec7ee;
  font-size: 16px;
  font-style: normal;
  transition: transform .2s ease;
}

.home-services-showcase__tab:hover > i,
.home-services-showcase__tab.is-active > i {
  transform: translateX(3px);
}

.home-services-showcase__stage {
  min-width: 0;
  border: 1px solid rgba(165, 213, 234, .14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(19, 66, 101, .76), rgba(9, 41, 66, .9)),
    rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 22px 45px rgba(2, 20, 34, .16);
}

.home-services-showcase__panel-view {
  min-height: 100%;
  padding: 26px;
  animation: homeServicesPanelIn .22s ease both;
}

.home-services-showcase__panel-view[hidden] {
  display: none !important;
}

@keyframes homeServicesPanelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-services-showcase__panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.home-services-showcase__panel-head > div {
  min-width: 0;
  max-width: 690px;
}

.home-services-showcase__panel-head > div > span {
  color: #63c9ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-services-showcase__panel-head h3 {
  margin: 7px 0 7px;
  color: #fff;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.14;
}

.home-services-showcase__panel-head p {
  margin: 0;
  color: #9fb9cb;
  font-size: 12px;
  line-height: 1.6;
}

.home-services-showcase__panel-head > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #7ad4f4;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.home-services-showcase__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-services-showcase__cards > a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 176px;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(167, 216, 237, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-services-showcase__cards > a::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(92, 201, 240, .13);
  border-radius: 50%;
}

.home-services-showcase__cards > a:hover {
  border-color: rgba(82, 195, 237, .42);
  background: rgba(53, 159, 204, .11);
  transform: translateY(-3px);
}

.home-services-showcase__cards small {
  color: #5ec7ee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-services-showcase__cards strong {
  margin-top: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.24;
}

.home-services-showcase__cards span {
  margin-top: 8px;
  color: #9fb8c9;
  font-size: 11px;
  line-height: 1.55;
}

.home-services-showcase__cards i {
  margin-top: auto;
  padding-top: 16px;
  color: #61cbf1;
  font-size: 17px;
  font-style: normal;
}

@media (max-width: 980px) {
  .home-services-showcase__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-services-showcase__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .home-services-showcase__layout {
    grid-template-columns: 1fr;
  }

  .home-services-showcase__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-services-showcase__tab {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 94px;
    padding: 12px;
  }

  .home-services-showcase__tab-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .home-services-showcase__tab > i,
  .home-services-showcase__tab-copy em {
    display: none;
  }

  .home-services-showcase__tab-copy strong {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .home-services-showcase__inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home-services-showcase__head {
    margin-bottom: 24px;
  }

  .home-services-showcase__intro h2 {
    margin-top: 10px;
    font-size: 31px;
    line-height: 1.08;
  }

  .home-services-showcase__intro p {
    font-size: 13px;
  }

  .home-services-showcase__all {
    width: 100%;
    justify-content: space-between;
  }

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

  .home-services-showcase__tab {
    min-height: 82px;
    transform: none !important;
  }

  .home-services-showcase__stage {
    border-radius: 18px;
  }

  .home-services-showcase__panel-view {
    padding: 20px;
  }

  .home-services-showcase__panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-services-showcase__panel-head h3 {
    font-size: 22px;
  }

  .home-services-showcase__cards {
    grid-template-columns: 1fr;
  }

  .home-services-showcase__cards > a {
    min-height: 142px;
  }
}

@media (max-width: 420px) {
  .home-services-showcase__tabs {
    gap: 8px;
  }

  .home-services-showcase__tab {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 76px;
    padding: 10px;
  }

  .home-services-showcase__tab-icon {
    width: 34px;
    height: 34px;
  }

  .home-services-showcase__tab-copy strong {
    font-size: 12px;
  }
}

/* Home: simple service category links */
.home-services-links {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(44, 198, 243, .10), transparent 27%),
    linear-gradient(135deg, #0b2b43 0%, #0d3654 55%, #0b2d47 100%);
  color: #fff;
}

.home-services-links::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -180px;
  top: -245px;
  border: 1px solid rgba(108, 209, 244, .13);
  border-radius: 50%;
  pointer-events: none;
}

.home-services-links__inner {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 76px;
}

.home-services-links__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.home-services-links__head > div {
  max-width: 760px;
}

.home-services-links__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #53c8f4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.home-services-links__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #36bff2;
  box-shadow: 0 0 0 5px rgba(54, 191, 242, .10);
}

.home-services-links__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3vw, 50px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.home-services-links__head p {
  max-width: 690px;
  margin: 14px 0 0;
  color: rgba(225, 240, 250, .72);
  font-size: 15px;
  line-height: 1.55;
}

.home-services-links__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 180px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(140, 211, 239, .23);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-services-links__all:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(102, 207, 246, .45);
  transform: translateY(-1px);
}

.home-services-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-services-links__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: 23px 22px 21px;
  overflow: hidden;
  border: 1px solid rgba(130, 207, 239, .20);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  color: #fff;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-services-links__card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -78px;
  top: -80px;
  border: 1px solid rgba(83, 200, 244, .10);
  border-radius: 50%;
  transition: transform .3s ease, border-color .3s ease;
}

.home-services-links__card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 202, 244, .48);
  background: linear-gradient(155deg, rgba(58, 182, 229, .13), rgba(255, 255, 255, .045));
  box-shadow: 0 18px 34px rgba(0, 15, 29, .16);
}

.home-services-links__card:hover::after {
  transform: scale(1.08);
  border-color: rgba(83, 200, 244, .22);
}

.home-services-links__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 23px;
  border: 1px solid rgba(78, 194, 238, .31);
  border-radius: 13px;
  background: rgba(21, 126, 173, .14);
  color: #54cffc;
}

.home-services-links__icon svg {
  width: 24px;
  height: 24px;
}

.home-services-links__number {
  position: absolute;
  top: 27px;
  right: 22px;
  color: rgba(112, 208, 244, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-services-links__card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -.018em;
}

.home-services-links__card p {
  margin: 0;
  color: rgba(222, 239, 249, .66);
  font-size: 13px;
  line-height: 1.5;
}

.home-services-links__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: #64d4fb;
  font-size: 12px;
  font-weight: 800;
}

.home-services-links__go b {
  font-size: 15px;
  transition: transform .2s ease;
}

.home-services-links__card:hover .home-services-links__go b {
  transform: translate(2px, -2px);
}

@media (max-width: 980px) {
  .home-services-links__inner {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .home-services-links__head {
    align-items: flex-start;
  }

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

  .home-services-links__card {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  .home-services-links__inner {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .home-services-links__head {
    display: block;
    margin-bottom: 24px;
  }

  .home-services-links__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .home-services-links__head h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  .home-services-links__head p {
    margin-top: 10px;
    font-size: 13px;
  }

  .home-services-links__all {
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
  }

  .home-services-links__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-services-links__card {
    min-height: 0;
    padding: 18px;
    border-radius: 15px;
  }

  .home-services-links__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 11px;
  }

  .home-services-links__icon svg {
    width: 21px;
    height: 21px;
  }

  .home-services-links__number {
    top: 20px;
    right: 18px;
  }

  .home-services-links__card h3 {
    font-size: 18px;
  }

  .home-services-links__card p {
    font-size: 12px;
  }

  .home-services-links__go {
    padding-top: 16px;
  }
}

/* Pets directory: 4 columns on desktop, 3 on tablet, 2 on mobile. */
.profile-grid--pets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-grid--pets .pet-profile-card__photo {
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 980px) {
  .profile-grid--pets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-grid--pets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-grid--pets .pet-profile-card > div:last-child {
    padding: 6px 12px 14px;
  }

  .profile-grid--pets .pet-state {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .profile-grid--pets .pet-profile-card h3 {
    margin: 6px 0 4px;
    font-size: 17px;
    line-height: 1.18;
  }

  .profile-grid--pets .pet-profile-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .profile-grid--pets .pet-profile-card small {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Home page: compact mobile layout below the hero. */
@media (max-width: 720px) {
  /* Keep the hero untouched; compact only the sections below it. */
  .home-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .home-section .section-heading > div {
    min-width: 0;
  }

  .home-section .section-heading > div > span {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: .055em;
  }

  .home-section .section-heading h2 {
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -.02em;
  }

  .home-section .section-heading > div > p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Section links become a compact arrow action instead of a full extra row. */
  .home-section .section-heading > .text-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    align-self: start;
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #5f6368;
    font-size: 0;
    line-height: 1;
  }

  .home-section .section-heading > .text-link .home-section-link-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin-left: 0;
    fill: currentColor;
  }

  /* Listings: always two compact cards on mobile. */
  .home-section .listing-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-section .listing-grid--4 .listing-card {
    border-radius: 14px;
  }

  .home-section .listing-grid--4 .listing-card__media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .home-section .listing-grid--4 .listing-card__media > .badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 6px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-section .listing-grid--4 .listing-card__body {
    padding: 10px 10px 11px;
  }

  .home-section .listing-grid--4 .listing-card__body h3 {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.25;
  }

  .home-section .listing-grid--4 .listing-card__body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .home-section .listing-grid--4 .meta-row {
    gap: 6px;
    margin-top: 9px;
    padding-top: 8px;
    font-size: 9.5px;
    line-height: 1.25;
  }

  .home-section .listing-grid--4 .meta-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Pet profiles: two square-photo cards, matching the pets directory mobile style. */
  .home-section .home-pets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-section .home-pets-grid .pet-profile-card__photo {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-section .home-pets-grid .pet-profile-card > div:last-child {
    padding: 6px 12px 14px;
  }

  .home-section .home-pets-grid .pet-state {
    font-size: 10px;
    line-height: normal;
    letter-spacing: .03em;
  }

  .home-section .home-pets-grid .pet-profile-card h3 {
    margin: 6px 0 4px;
    font-size: 17px;
    line-height: 1.18;
  }

  .home-section .home-pets-grid .pet-profile-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .home-section .home-pets-grid .pet-profile-card small {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  /* Breeds: keep two cards even on narrow phones. */
  .home-section .breed-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-section .breed-list-card {
    display: block;
    min-width: 0;
    border-radius: 14px;
  }

  .home-section .breed-list-card__image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .home-section .breed-list-card__body {
    padding: 10px;
  }

  .home-section .breed-list-card h3 {
    display: -webkit-box;
    min-height: 34px;
    margin-bottom: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.2;
  }

  .home-section .breed-list-card p {
    display: none;
  }

  .home-section .breed-list-card__body > span {
    margin-top: 5px;
    font-size: 8.5px;
    letter-spacing: .025em;
  }

  /* Services: compact heading action and a 2-column card grid. */
  .home-services-links__inner {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .home-services-links__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .home-services-links__head > div {
    min-width: 0;
  }

  .home-services-links__eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .home-services-links__head h2 {
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -.02em;
  }

  .home-services-links__head p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .home-services-links__all {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    align-self: start;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    gap: 0;
  }

  .home-services-links__all span {
    display: none;
  }

  .home-services-links__all .home-section-link-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin-left: 0;
    fill: currentColor;
  }

  .home-services-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home-services-links__card {
    min-height: 190px;
    padding: 13px 11px 12px;
    border-radius: 14px;
  }

  .home-services-links__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .home-services-links__icon svg {
    width: 19px;
    height: 19px;
  }

  .home-services-links__number {
    top: 15px;
    right: 11px;
    font-size: 8.5px;
  }

  .home-services-links__card h3 {
    margin-bottom: 7px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.18;
  }

  .home-services-links__card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .home-services-links__go {
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0;
  }

  .home-services-links__go b {
    font-size: 14px;
  }

  /* Forum topics behave like compact cards instead of long full-width rows. */
  .home-forum-layout {
    gap: 12px;
  }

  .home-forum-intro {
    padding: 22px 18px;
  }

  .home-forum-intro > span {
    font-size: 38px;
  }

  .home-forum-intro h3 {
    margin: 11px 0 7px;
    font-size: 19px;
    line-height: 1.2;
  }

  .home-forum-intro p {
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.5;
  }

  .home-forum-layout .topic-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-forum-layout .topic-row {
    min-width: 0;
    min-height: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 8px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(23, 49, 76, .04);
  }

  .home-forum-layout .topic-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .home-forum-layout .topic-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 9px;
  }

  .home-forum-layout .topic-content > span {
    display: block;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-forum-layout .topic-content h3 {
    display: -webkit-box;
    margin: 4px 0 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 12px;
    line-height: 1.25;
  }

  .home-forum-layout .topic-content small {
    font-size: 8.5px;
    line-height: 1.3;
  }

  .home-forum-layout .topic-row > b {
    display: none;
  }

  /* Closing CTA: smaller heading and a compact action. */
  .home-cta {
    padding: 44px 0;
  }

  .home-cta__inner {
    gap: 20px;
  }

  .home-cta h2 {
    margin-top: 8px;
    font-size: 27px;
    line-height: 1.1;
  }

  .home-cta p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .home-cta .btn {
    width: auto;
    min-width: 132px;
  }
}


/* Profile account status is kept only on mobile to preserve the 2x2 details grid. */
@media (min-width: 721px) {
  .profile-overview-page .account-detail--status {
    display: none;
  }
}

/* Profile overview: compact mobile layout. */
@media (max-width: 720px) {
  .profile-overview-page {
    padding: 20px 0 46px;
  }

  .profile-overview-page .dashboard-grid {
    gap: 18px;
  }

  .profile-overview-page .dashboard-nav-shell {
    display: flex;
    width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .profile-overview-page .dashboard-nav-shell::-webkit-scrollbar {
    display: none;
  }

  .profile-overview-page .dashboard-nav-shell .dashboard-nav,
  .profile-overview-page .dashboard-nav-shell .dashboard-nav--grouped {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-overview-page .dashboard-nav-shell .dashboard-nav__title {
    display: none;
  }

  .profile-overview-page .dashboard-nav-shell .dashboard-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #66788c;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
  }

  .profile-overview-page .dashboard-nav-shell .dashboard-nav a.is-active {
    border-color: rgba(22, 118, 189, .22);
    background: #eaf5fc;
    color: var(--primary);
  }

  .profile-overview-page .dashboard-head {
    display: grid;
    gap: 13px;
    margin-bottom: 0;
  }

  .profile-overview-page .dashboard-head > div > span {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .profile-overview-page .dashboard-head h1 {
    margin-top: 5px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .profile-overview-page .dashboard-head > .btn {
    width: auto;
    min-height: 42px;
    justify-self: start;
    padding: 0 16px;
    font-size: 13px;
  }

  .profile-overview-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-overview-page .metric-card {
    min-height: 92px;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .profile-overview-page .metric-card span {
    font-size: 11px;
    line-height: 1.35;
  }

  .profile-overview-page .metric-card strong {
    font-size: 28px;
    line-height: 1;
  }

  .profile-overview-page .dashboard-content > .account-panel {
    padding: 15px;
    border-radius: 14px;
  }

  .profile-overview-page .account-panel__title {
    gap: 12px;
    margin-bottom: 13px;
  }

  .profile-overview-page .account-panel__title h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .profile-overview-page .account-panel__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-overview-page .account-panel__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 9px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .profile-overview-page .account-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .profile-overview-page .account-details > div {
    min-height: 78px;
    align-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
  }

  .profile-overview-page .account-details span {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .profile-overview-page .account-details strong {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .profile-overview-page .dashboard-empty {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
    border-radius: 14px;
  }

  .profile-overview-page .dashboard-empty__code {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf5fc;
    font-size: 10px;
  }

  .profile-overview-page .dashboard-empty h2 {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
  }

  .profile-overview-page .dashboard-empty p {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* Profile area: unified compact mobile UI across overview, lists and editors. */
@media (max-width: 720px) {
  .dashboard-grid {
    gap: 16px;
  }

  .dashboard-grid > .dashboard-nav-shell {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    position: static;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .dashboard-grid > .dashboard-nav-shell::-webkit-scrollbar {
    display: none;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav,
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav--grouped {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav.is-active-group {
    order: -1;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav__title {
    display: none;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #66788c;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.is-active {
    border-color: rgba(22, 118, 189, .22);
    background: #eaf5fc;
    color: var(--primary);
  }

  .dashboard-content {
    gap: 12px;
  }

  .dashboard-content .page-head,
  .dashboard-content .page-head--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    margin-bottom: 2px;
  }

  .dashboard-content .page-head > div {
    display: contents;
  }

  .dashboard-content .page-head h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .dashboard-content .page-head p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .dashboard-content .page-head > .btn {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: 150px;
    min-height: 40px;
    padding: 8px 13px;
    align-self: start;
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .dashboard-content .dashboard-alert {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  .dashboard-content .dashboard-empty {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
    border-radius: 13px;
  }

  .dashboard-content .dashboard-empty__code {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eaf5fc;
    font-size: 10px;
  }

  .dashboard-content .dashboard-empty h2 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.25;
  }

  .dashboard-content .dashboard-empty p {
    font-size: 12px;
    line-height: 1.5;
  }

  .dashboard-content .dashboard-empty--action .btn {
    width: auto;
    min-height: 39px;
    margin-top: 12px;
    padding: 8px 13px;
    font-size: 11.5px;
  }

  /* Profile forms: keep step numbers visible but do not waste an entire row on them. */
  .dashboard-content .form-layout,
  .dashboard-content .service-provider-form {
    gap: 12px;
  }

  .dashboard-content .form-card,
  .service-editor-page .service-provider-form .service-form-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 13px;
  }

  .dashboard-content .form-step {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 9px;
  }

  .dashboard-content .form-card h2,
  .service-editor-page .service-provider-form .form-card__intro h2 {
    margin: 1px 0 12px;
    font-size: 18px;
    line-height: 1.25;
  }

  .dashboard-content .form-card__intro,
  .service-editor-page .service-provider-form .form-card__intro {
    margin: 0 0 12px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  .dashboard-content .form-grid {
    gap: 11px;
  }

  .dashboard-content .form-card label,
  .dashboard-content .breed-picker-field,
  .dashboard-content .coat-color-picker-field,
  .dashboard-content .pet-profile-picker-field,
  .dashboard-content .service-city-field {
    font-size: 11px;
  }

  .dashboard-content .form-card input,
  .dashboard-content .form-card select,
  .dashboard-content .city-picker__trigger,
  .dashboard-content .breed-picker__trigger {
    min-height: 43px;
    height: 43px;
  }

  /* Profile forms: keep native controls at 16px on mobile to prevent iOS Safari focus zoom.
     Custom picker triggers use the same typography so the form remains visually consistent. */
  .dashboard-content .form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  .dashboard-content .form-card select,
  .dashboard-content .form-card textarea,
  .dashboard-content .city-picker__trigger,
  .dashboard-content .breed-picker__trigger,
  .dashboard-content .listing-color-picker__trigger,
  .dashboard-content .pet-profile-picker__trigger,
  .dashboard-content .iti input.iti__tel-input,
  .dashboard-content .iti__selected-dial-code,
  .dashboard-content [data-service-address-input] {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .dashboard-content .listing-color-picker__summary,
  .dashboard-content .pet-profile-picker__trigger-copy strong {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  /* iOS Safari keeps an intrinsic width for native date inputs unless it is reset. */
  .dashboard-content .form-card input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
  }

  .dashboard-content .form-card input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  .dashboard-content .form-card textarea {
    min-height: 105px;
  }

  .dashboard-content .choice-grid,
  .dashboard-content .choice-grid--4,
  .dashboard-content .choice-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-content .choice-grid span {
    min-height: 43px;
    padding: 8px 9px;
    font-size: 11.5px;
  }

  .dashboard-content .form-actions,
  .dashboard-content .service-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 8px;
    margin-top: 0;
    padding-top: 2px;
  }

  .dashboard-content .form-actions .btn,
  .dashboard-content .service-form-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11.5px;
    line-height: 1.25;
    white-space: normal;
  }

  /* My pets: two compact management cards per row. */
  .dashboard-content .owner-pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-content .owner-pet-card {
    border-radius: 12px;
  }

  .dashboard-content .owner-pet-card__image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .dashboard-content .owner-pet-card__body {
    padding: 10px 10px 12px;
  }

  .dashboard-content .owner-pet-card .service-status {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .dashboard-content .owner-pet-card__profile-kicker {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: .025em;
  }

  .dashboard-content .owner-pet-card h2 {
    margin: 5px 0 4px;
    font-size: 17px;
    line-height: 1.18;
  }

  .dashboard-content .owner-pet-card p,
  .dashboard-content .owner-pet-card small {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .dashboard-content .owner-pet-card small {
    margin-top: 4px;
  }

  .dashboard-content .owner-pet-card .owner-service-card__moderation {
    margin-top: 7px;
    padding: 7px 8px;
    font-size: 9.5px;
    line-height: 1.4;
  }

  .dashboard-content .owner-pet-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .dashboard-content .owner-pet-card__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px 5px;
    font-size: 9.5px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  /* My listings: same two-column rhythm as the rest of PetBook mobile cards. */
  .dashboard-content .owner-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-content .owner-listing-card {
    border-radius: 12px;
  }

  .dashboard-content .owner-listing-card .listing-card__media {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .dashboard-content .owner-listing-card .listing-card__media > .badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 7px;
    font-size: 8.5px;
  }

  .dashboard-content .owner-listing-card .listing-card__body {
    padding: 10px;
  }

  .dashboard-content .owner-listing-card .service-status {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .dashboard-content .owner-listing-card .listing-card__body h3 {
    margin: 6px 0 4px;
    font-size: 15px;
    line-height: 1.2;
  }

  .dashboard-content .owner-listing-card .listing-card__body p,
  .dashboard-content .owner-listing-card__description,
  .dashboard-content .owner-listing-card .meta-row {
    font-size: 10px;
    line-height: 1.4;
  }

  .dashboard-content .owner-listing-card__description {
    margin-top: 6px;
    -webkit-line-clamp: 2;
  }

  .dashboard-content .owner-listing-card .meta-row {
    gap: 4px;
    margin-top: 8px;
  }

  .dashboard-content .owner-listing-card .owner-service-card__moderation {
    margin-top: 7px;
    padding: 7px 8px;
    font-size: 9.5px;
    line-height: 1.4;
  }

  .dashboard-content .owner-listing-card__actions {
    gap: 6px;
    margin-top: 9px;
  }

  .dashboard-content .owner-listing-card__actions .btn {
    min-height: 34px;
    padding: 6px 5px;
    font-size: 9.5px;
    line-height: 1.2;
    white-space: normal;
  }

  /* Services contain more management data, so keep one card per row but make it genuinely mobile. */
  .dashboard-content .owner-service-grid {
    gap: 10px;
  }

  .dashboard-content .owner-service-card {
    grid-template-columns: 96px minmax(0, 1fr);
    border-radius: 13px;
  }

  .dashboard-content .owner-service-card__media,
  .dashboard-content .owner-service-card__media img {
    width: 80px;
    height: 80px;
  }

  .dashboard-content .owner-service-card__media {
    margin: 12px 0 0 12px;
    border-radius: 12px;
  }

  .dashboard-content .owner-service-card__body {
    padding: 12px;
  }

  .dashboard-content .owner-service-card__top {
    gap: 5px;
  }

  .dashboard-content .owner-service-card .service-status {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .dashboard-content .owner-service-card h2 {
    margin: 7px 0 3px;
    font-size: 17px;
    line-height: 1.2;
  }

  .dashboard-content .owner-service-card p,
  .dashboard-content .owner-service-card__top small {
    font-size: 10.5px;
  }

  .dashboard-content .service-delivery-badges {
    gap: 4px;
    margin-top: 6px;
  }

  .dashboard-content .service-delivery-badges span {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .dashboard-content .owner-service-card__stats {
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 9px;
    font-size: 10px;
  }

  .dashboard-content .owner-service-card__moderation {
    margin-top: 9px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.45;
  }

  .dashboard-content .owner-service-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .dashboard-content .owner-service-card__actions form,
  .dashboard-content .owner-service-card__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .dashboard-content .owner-service-card__actions .btn {
    min-height: 34px;
    padding: 6px 6px;
    font-size: 9.5px;
    line-height: 1.2;
    white-space: normal;
  }

  .dashboard-content .owner-service-card__locations {
    padding: 10px;
  }

  .dashboard-content .service-public-map-layout--owner .service-public-map-canvas {
    height: 170px;
  }

  .dashboard-content .service-location-card--compact {
    padding: 10px;
    font-size: 10.5px;
  }

  .dashboard-content .service-location-card--compact.has-map-point {
    padding-left: 48px;
  }

  .dashboard-content .service-location-card--compact .service-location-card__map-index {
    top: 10px;
    left: 10px;
  }

  /* Settings: compact controls and photo block without giant full-width tiles. */
  .dashboard-content .profile-settings-head__profile-link {
    width: auto !important;
    max-width: 150px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 11px;
    white-space: normal;
  }

  .dashboard-content .profile-privacy-toggle {
    gap: 9px !important;
    padding: 10px 11px;
    border-radius: 10px;
  }

  .dashboard-content .profile-privacy-toggle strong {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .dashboard-content .profile-privacy-toggle small,
  .dashboard-content .profile-field-help {
    font-size: 9.5px;
    line-height: 1.45;
  }

  .dashboard-content .profile-photo-field {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .dashboard-content .profile-photo-field .image-uploader--avatar,
  .dashboard-content .profile-photo-field .image-uploader--avatar.has-files,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .profile-photo-field .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__preview {
    width: 112px;
  }

  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__preview {
    min-height: 112px;
    height: 112px;
  }

  .dashboard-content .profile-photo-field__copy strong {
    font-size: 12px;
  }

  .dashboard-content .profile-photo-field__copy p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  /* Pet and listing rich controls should feel proportionate to the compact form. */
  .dashboard-content .pet-avatar-field {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .dashboard-content .pet-avatar-field .image-uploader--avatar,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    width: 132px;
  }

  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    min-height: 132px;
    height: 132px;
  }

  .dashboard-content .pet-profile-picker__trigger {
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    gap: 9px;
    padding: 7px 10px;
  }

  .dashboard-content .pet-profile-picker__trigger-media,
  .dashboard-content .pet-profile-picker__option-media {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .dashboard-content .pet-profile-picker__trigger-copy strong,
  .dashboard-content .pet-profile-picker__option strong {
    font-size: 11.5px;
  }

  .dashboard-content .pet-profile-picker__trigger-copy small,
  .dashboard-content .pet-profile-picker__option small {
    font-size: 9.5px;
  }

  .service-editor-page .service-provider-form .service-repeat-card {
    padding: 11px;
    border-radius: 10px;
  }

  .service-editor-page .service-provider-form .service-form-section-head {
    display: grid;
    gap: 9px;
  }

  .service-editor-page .service-provider-form .service-form-section-head .btn {
    width: auto;
    justify-self: start;
    min-height: 38px;
    padding: 7px 11px;
    font-size: 11px;
  }
}

@media (max-width: 440px) {
  .dashboard-content .page-head,
  .dashboard-content .page-head--compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-content .page-head h1 {
    font-size: 24px;
  }

  .dashboard-content .page-head > .btn,
  .dashboard-content .profile-settings-head__profile-link {
    max-width: 128px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 10.5px;
  }

  .dashboard-content .owner-pet-grid,
  .dashboard-content .owner-listing-grid {
    gap: 8px;
  }

  .dashboard-content .owner-pet-card__body,
  .dashboard-content .owner-listing-card .listing-card__body {
    padding: 9px;
  }

  .dashboard-content .profile-photo-field {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .dashboard-content .pet-avatar-field {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-content .profile-photo-field .image-uploader--avatar,
  .dashboard-content .profile-photo-field .image-uploader--avatar.has-files,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .profile-photo-field .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__preview,
  .dashboard-content .pet-avatar-field .image-uploader--avatar,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    width: 96px;
  }

  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .profile-photo-field .image-uploader--avatar .image-uploader__preview,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    min-height: 96px;
    height: 96px;
  }

  .dashboard-content .pet-avatar-field .image-uploader--avatar,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    width: 128px;
  }

  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field .image-uploader--avatar .image-uploader__preview {
    min-height: 128px;
    height: 128px;
  }
}

@media (max-width: 360px) {
  .dashboard-content .pet-avatar-field {
    grid-template-columns: 1fr;
  }

  .dashboard-content .pet-avatar-field .image-uploader--avatar,
  .dashboard-content .pet-avatar-field .image-uploader--avatar.has-files {
    justify-self: center;
  }

  .dashboard-content .pet-avatar-field__copy {
    text-align: center;
  }
}

/* Profile services: keep logo uploader readable on narrow screens. */
@media (max-width: 720px) {
  .service-editor-page .service-provider-form .service-logo-field.pet-avatar-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .service-editor-page .service-provider-form .service-logo-field .pet-avatar-field__copy {
    order: 1;
    min-width: 0;
    text-align: left;
  }

  .service-editor-page .service-provider-form .service-logo-field .pet-avatar-field__copy strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .service-editor-page .service-provider-form .service-logo-field .pet-avatar-field__copy p {
    max-width: none;
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.5;
  }

  .service-editor-page .service-provider-form .service-logo-field .pet-avatar-field__copy small {
    display: block;
    font-size: 10px;
    line-height: 1.4;
  }

  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader,
  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader.has-files {
    order: 2;
    justify-self: center;
    width: 156px;
  }

  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader .image-uploader__dropzone,
  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader.has-files .image-uploader__previews,
  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader .image-uploader__previews,
  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader .image-uploader__preview {
    width: 156px;
  }

  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader .image-uploader__dropzone,
  .service-editor-page .service-provider-form .service-logo-field .service-logo-uploader .image-uploader__preview {
    min-height: 156px;
    height: 156px;
  }
}

/* Public internal pages: unified responsive pass. Keep header/footer and profile dashboard untouched. */
.ads-catalog-page .listing-grid--3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ads-catalog-page .listing-card__media {
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 980px) {
  .ads-catalog-page .listing-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) {
    padding-top: 24px;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    margin-bottom: 16px;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head > div {
    display: contents;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head > .btn {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: 148px;
    min-height: 40px;
    padding: 8px 12px;
    align-self: start;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  /* Catalog filters: compact without sacrificing tap targets. */
  .ads-catalog-page .filter-panel,
  .pets-catalog-page .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 12px;
  }

  .pets-catalog-page .filter-panel .filter-search {
    grid-column: 1 / -1;
  }

  .ads-catalog-page .filter-panel .filter-search {
    grid-column: auto;
  }

  .ads-catalog-page .filter-panel > *,
  .pets-catalog-page .filter-panel > * {
    min-width: 0;
  }

  .ads-catalog-page .filter-panel select,
  .ads-catalog-page .filter-panel input,
  .ads-catalog-page .city-picker__trigger,
  .ads-catalog-page .breed-picker__trigger,
  .pets-catalog-page .filter-panel select,
  .pets-catalog-page .filter-panel input,
  .pets-catalog-page .city-picker__trigger {
    min-height: 42px;
    height: 42px;
  }

  /* Public catalog mobile filters: one visual/typographic control system. */
  .ads-catalog-page .filter-panel .filter-search,
  .ads-catalog-page .filter-panel .city-picker-field--filter,
  .ads-catalog-page .filter-panel .listing-filter-field,
  .ads-catalog-page .filter-panel .breed-picker-field--filter {
    width: 100%;
    min-width: 0;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-search {
    min-height: 42px;
    height: 42px;
    border-radius: 10px;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-panel select,
  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-panel .filter-search input,
  :where(.ads-catalog-page, .pets-catalog-page) .filter-panel .city-picker__trigger,
  .ads-catalog-page .filter-panel .breed-picker__trigger,
  .services-catalog-page .service-location-filter__trigger,
  .services-catalog-page .service-location-filter__search input,
  .breeds-page .directory-search--compact input,
  .forum-catalog-page .forum-search input {
    width: 100%;
    min-width: 0;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25;
    letter-spacing: normal;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .filter-panel select,
  :where(.ads-catalog-page, .pets-catalog-page) .filter-panel .city-picker__trigger,
  .ads-catalog-page .filter-panel .breed-picker__trigger,
  .services-catalog-page .service-location-filter__trigger {
    min-height: 42px;
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 10px;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-panel input::placeholder,
  .services-catalog-page .service-location-filter__search input::placeholder,
  .breeds-page .directory-search--compact input::placeholder,
  .forum-catalog-page .forum-search input::placeholder {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
  }

  /* Keep nested search controls inside their bordered mobile wrappers.
     The wrapper height includes its border, so the child must fill the
     content box rather than repeat the wrapper's fixed 42px height. */
  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-panel .filter-search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page) .filter-panel .filter-search input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    border: 0 !important;
    border-radius: 0;
    box-sizing: border-box;
  }

  .services-catalog-page .service-location-filter__search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .services-catalog-page .service-location-filter__search input {
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  .ads-catalog-page .content-toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }

  .ads-catalog-page .segmented {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ads-catalog-page .segmented::-webkit-scrollbar {
    display: none;
  }

  .ads-catalog-page .segmented a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .ads-catalog-page .toolbar-count {
    flex: 0 0 auto;
    font-size: 10px;
    white-space: nowrap;
  }

  /* Listings: the same 4 / 3 / 2 grid principle as public pets. */
  .ads-catalog-page .listing-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ads-catalog-page .listing-card {
    border-radius: 12px;
  }

  .ads-catalog-page .listing-card__body {
    padding: 10px 10px 11px;
  }

  .ads-catalog-page .listing-card__body h3 {
    min-width: 0;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.2;
  }

  .ads-catalog-page .listing-card__body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ads-catalog-page .listing-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 10.5px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ads-catalog-page .listing-card .meta-row {
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 9.5px;
  }

  .ads-catalog-page .listing-card__media > .badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 6px;
    font-size: 8px;
    white-space: normal;
  }

  /* Services catalog: tabs swipe horizontally, cards stay readable one-per-row. */
  .services-catalog-page .service-category-tabs,
  .services-catalog-page .service-kind-tabs {
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 12px;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .services-catalog-page .service-category-tabs::-webkit-scrollbar,
  .services-catalog-page .service-kind-tabs::-webkit-scrollbar {
    display: none;
  }

  .services-catalog-page .service-category-tabs a,
  .services-catalog-page .service-kind-tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .services-catalog-page .service-filter-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 12px;
  }

  .services-catalog-page .provider-list--catalog {
    gap: 9px;
  }

  .services-catalog-page .provider-card--dynamic {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .services-catalog-page .provider-card--dynamic .provider-avatar {
    width: 58px;
    height: 58px;
  }

  .services-catalog-page .provider-card--dynamic .provider-card__main {
    min-width: 0;
    gap: 5px;
  }

  .services-catalog-page .provider-card__title {
    font-size: 14px;
    line-height: 1.25;
  }

  .services-catalog-page .provider-card__subtitle,
  .services-catalog-page .provider-card__rating,
  .services-catalog-page .service-delivery-badges--card {
    font-size: 10px;
    line-height: 1.35;
  }

  .services-catalog-page .provider-card__eyebrow {
    min-height: 18px;
    padding: 2px 6px;
    font-size: 8px;
  }

  .services-catalog-page .service-delivery-badges--card span {
    padding: 3px 6px;
    font-size: 8.5px;
  }

  /* Forum catalog: compact navigation strip and topic rows. */
  .forum-catalog-page .forum-layout {
    gap: 12px;
  }

  .forum-catalog-page .forum-sidebar {
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    border-radius: 11px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .forum-catalog-page .forum-sidebar::-webkit-scrollbar {
    display: none;
  }

  .forum-catalog-page .forum-sidebar a {
    flex: 0 0 auto;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .forum-catalog-page .forum-search {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 10px;
    padding: 6px 6px 6px 10px;
    border-radius: 11px;
  }

  .forum-catalog-page .forum-search .btn {
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .forum-catalog-page .topic-list {
    border-radius: 12px;
  }

  .forum-catalog-page .topic-row {
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    gap: 9px;
    min-height: 76px;
    padding: 11px 10px;
  }

  .forum-catalog-page .topic-icon {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .forum-catalog-page .topic-content h3 {
    margin: 2px 0 3px;
    font-size: 14px;
    line-height: 1.25;
  }

  .forum-catalog-page .topic-content small {
    display: block;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forum-catalog-page .topic-content > span {
    font-size: 8.5px;
  }

  /* Breeds list: keep two useful cards per row even on phones. */
  .breeds-page {
    padding-top: 24px;
  }

  .breeds-page .breeds-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .breeds-page .breeds-head h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .breeds-page .directory-search--compact {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 6px 6px 6px 10px;
  }

  .breeds-page .directory-search--compact .btn {
    grid-column: auto;
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .breeds-page .breed-tabs,
  .breeds-page .breed-tags-row {
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .breeds-page .breed-tabs::-webkit-scrollbar,
  .breeds-page .breed-tags-row::-webkit-scrollbar {
    display: none;
  }

  .breeds-page .breed-tab,
  .breeds-page .breed-filter-tag {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .breeds-page .breed-tags-row {
    margin-bottom: 14px;
  }

  .breeds-page .breed-filter-tag {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .breeds-page .breed-results__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    padding-top: 10px;
  }

  .breeds-page .breed-results__toolbar > span {
    max-width: 66%;
    font-size: 9.5px;
    line-height: 1.35;
    text-align: right;
  }

  .breeds-page .breed-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .breeds-page .breed-list-card {
    display: block;
    min-width: 0;
    border-radius: 12px;
  }

  .breeds-page .breed-list-card__image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .breeds-page .breed-list-card__body {
    padding: 10px;
  }

  .breeds-page .breed-list-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.22;
  }

  .breeds-page .breed-list-card p {
    display: none;
  }

  .breeds-page .breed-list-card__body > span {
    margin-top: 7px;
    font-size: 8.5px;
  }

  /* Public listing detail. */
  .ads-detail-page {
    padding-top: 18px;
  }

  .ads-detail-page .detail-layout {
    gap: 12px;
  }

  .ads-detail-page .detail-gallery__main img {
    height: min(74vw, 320px);
  }

  .ads-detail-page .detail-gallery__thumbs {
    gap: 6px;
    padding: 8px;
  }

  .ads-detail-page .detail-copy,
  .ads-detail-page .contact-card,
  .ads-detail-page .safety-card {
    padding: 15px;
    border-radius: 13px;
  }

  .ads-detail-page .detail-title-row h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  .ads-detail-page .detail-copy h2 {
    margin-top: 22px;
    font-size: 19px;
  }

  .ads-detail-page .detail-copy > p,
  .ads-detail-page .listing-features {
    font-size: 12px;
    line-height: 1.55;
  }

  .ads-detail-page .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Pet profile and public user profile: compact cards, two-column related content. */
  .pet-public-profile,
  .public-user-profile {
    padding-top: 18px;
  }

  .pet-public-profile .pet-profile-hero__content {
    padding: 16px 14px 15px;
  }

  .pet-public-profile .pet-profile-hero__heading h1 {
    font-size: 28px;
  }

  .pet-public-profile .pet-profile-hero__facts > div {
    padding: 10px;
  }

  .pet-public-profile .pet-profile-details,
  .pet-public-profile .pet-owner-card {
    padding: 15px;
    border-radius: 13px;
  }

  .pet-public-profile .pet-profile-section-head h2 {
    font-size: 20px;
  }

  .pet-public-profile .pet-profile-section-head,
  .pet-public-profile .pet-profile-section-head--listings {
    gap: 7px;
  }

  .pet-public-profile .pet-profile-listings__grid,
  .public-user-profile .pet-profile-listings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .pet-public-profile .pet-profile-listings__grid .listing-card__media,
  .public-user-profile .pet-profile-listings__grid .listing-card__media {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .pet-public-profile .pet-profile-listings__grid .listing-card__media > .badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 6px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pet-public-profile .pet-profile-listings__grid .listing-card__body,
  .public-user-profile .pet-profile-listings__grid .listing-card__body {
    padding: 9px;
  }

  .pet-public-profile .pet-profile-listings__grid .listing-card__body h3,
  .public-user-profile .pet-profile-listings__grid .listing-card__body h3 {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.2;
  }

  .pet-public-profile .pet-profile-listings__grid .listing-card__body p,
  .public-user-profile .pet-profile-listings__grid .listing-card__body p,
  .pet-public-profile .pet-profile-listings__grid .meta-row,
  .public-user-profile .pet-profile-listings__grid .meta-row {
    font-size: 9.5px;
    line-height: 1.35;
  }

  .public-user-profile .public-user-hero {
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
  }

  .public-user-profile .public-user-hero__body h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .public-user-profile .public-user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .public-user-profile .public-user-pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  /* Service detail: preserve information hierarchy without desktop-sized blocks. */
  .service-public-page {
    padding-top: 18px;
  }

  .service-public-page .service-business-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .service-public-page .provider-avatar--hero {
    width: 82px;
    height: 82px;
    border-radius: 14px;
  }

  .service-public-page .service-title-row h1 {
    font-size: 24px;
    line-height: 1.08;
  }

  .service-public-page .service-detail-layout {
    gap: 12px;
  }

  .service-public-page .service-detail-panel,
  .service-public-page .service-contact-card {
    padding: 15px;
    border-radius: 13px;
  }

  .service-public-page .panel-title h2,
  .service-public-page .service-detail-panel > h2 {
    font-size: 19px;
  }

  .service-public-page .service-portfolio-grid {
    gap: 7px;
  }

  .service-public-page .service-about-copy,
  .service-public-page .price-list,
  .service-public-page .service-location-card--compact {
    font-size: 12px;
  }

  /* Breed detail: collapse large desktop typography and panels. */
  .breed-detail-page {
    padding: 18px 0 52px;
  }

  .breed-detail-page .breed-detail-hero {
    gap: 12px;
    margin-bottom: 12px;
  }

  .breed-detail-page .breed-gallery__stage {
    height: min(72vw, 320px);
  }

  .breed-detail-page .breed-detail-copy {
    padding: 18px;
    border-radius: 14px;
  }

  .breed-detail-page .breed-detail-copy h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .breed-detail-page .breed-subtitle,
  .breed-detail-page .breed-intro {
    font-size: 12px;
    line-height: 1.55;
  }

  .breed-detail-page .breed-detail-actions {
    gap: 7px;
    margin-top: 16px;
  }

  .breed-detail-page .breed-detail-actions .btn {
    min-height: 39px;
    padding: 8px 11px;
    font-size: 10.5px;
  }

  .breed-detail-page .breed-detail-layout {
    gap: 12px;
  }

  .breed-detail-page .breed-detail-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .breed-detail-page .breed-info-card,
  .breed-detail-page .breed-section-card {
    padding: 14px;
    border-radius: 13px;
  }

  .breed-detail-page .breed-section-card h1,
  .breed-detail-page .breed-section-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .breed-detail-page .breed-section-card p,
  .breed-detail-page .breed-section-card li {
    font-size: 12px;
    line-height: 1.6;
  }

  .breed-detail-page .breed-rating-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Forum topic and new-topic form. */
  .forum-topic-page-shell,
  .forum-new-page {
    padding-top: 18px;
  }

  .forum-topic-page-shell .topic-page h1,
  .forum-new-page .page-head h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  .forum-topic-page-shell .topic-head-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .forum-topic-page-shell .forum-topic-actions {
    gap: 8px;
  }

  .forum-topic-page-shell .topic-message {
    padding: 15px;
    border-radius: 13px;
  }

  .forum-new-page .page-head {
    margin-bottom: 14px;
  }

  .forum-new-page .page-head p {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .forum-new-page .form-layout {
    gap: 12px;
  }

  .forum-new-page .form-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 13px;
  }

  .forum-new-page .form-step {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 9px;
  }

  .forum-new-page .form-card h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .forum-new-page .form-actions {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 8px;
  }

  .forum-new-page .form-actions .btn {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
  }
}

@media (max-width: 440px) {
  /* Explicitly keep compact public grids at two columns on narrow phones. */
  .ads-catalog-page .listing-grid--3,
  .breeds-page .breed-list-grid,
  .pet-public-profile .pet-profile-listings__grid,
  .public-user-profile .pet-profile-listings__grid,
  .public-user-profile .public-user-pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head h1 {
    font-size: 26px;
  }

  :where(.ads-catalog-page, .pets-catalog-page, .services-catalog-page, .forum-catalog-page) .page-head > .btn {
    max-width: 128px;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .service-public-page .service-business-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .service-public-page .provider-avatar--hero {
    width: 72px;
    height: 72px;
  }

  .service-public-page .service-title-row h1 {
    font-size: 22px;
  }

  .breed-detail-page .breed-detail-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Services mobile polish: compact location trigger, clearer catalog cards,
   dense two-column portfolio and review layout. Desktop remains unchanged. */
@media (max-width: 720px) {
  /* Catalog filter: search owns the row; location becomes a pin-only action. */
  .services-catalog-page .service-filter-panel {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: stretch;
    gap: 8px;
  }

  .services-catalog-page .service-filter-query {
    min-width: 0;
    width: 100%;
  }

  .services-catalog-page .service-location-filter {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .services-catalog-page .service-location-filter__trigger {
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 0 !important;
    border-radius: 10px;
  }

  .services-catalog-page .service-location-filter__trigger svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .services-catalog-page .service-location-filter__trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .services-catalog-page .service-location-filter__clear {
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    transform: none;
    border: 1px solid #fff;
    background: #eef6fb;
    color: #2878ad;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(23, 49, 76, .12);
  }

  .services-catalog-page .service-location-filter__popover {
    right: 0;
    left: auto;
    width: min(330px, calc(100vw - 32px));
  }

  /* Catalog cards: logo reads as a logo, specialist photo remains a portrait. */
  .services-catalog-page .provider-list--catalog {
    gap: 10px;
  }

  .services-catalog-page .provider-card--dynamic {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(23, 49, 76, .045);
  }

  .services-catalog-page .provider-card--dynamic .provider-avatar {
    width: 74px;
    height: 74px;
    align-self: center;
  }

  .services-catalog-page .provider-card--organization .provider-avatar {
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
  }

  .services-catalog-page .provider-card--organization .provider-avatar img {
    object-fit: contain;
  }

  .services-catalog-page .provider-card--specialist .provider-avatar img {
    object-fit: cover;
  }

  .services-catalog-page .provider-card--dynamic .provider-card__main {
    width: 100%;
    gap: 4px;
  }

  .services-catalog-page .provider-card__copy {
    gap: 3px;
  }

  .services-catalog-page .provider-card__title {
    font-size: 15px;
    line-height: 1.22;
  }

  .services-catalog-page .provider-card__subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .services-catalog-page .provider-card__city {
    display: inline;
  }

  .services-catalog-page .provider-card__eyebrow {
    min-height: 19px;
    padding: 2px 6px;
    font-size: 8.5px;
  }

  .services-catalog-page .service-delivery-badges--card {
    gap: 5px;
    margin-top: 2px;
  }

  .services-catalog-page .service-delivery-badges--card span {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 9px;
  }

  /* Organization logos on the detail hero should not be cropped either. */
  .service-public-page .service-business-hero--organization .provider-avatar--hero {
    padding: 7px;
    box-sizing: border-box;
    background: #fff;
  }

  .service-public-page .service-business-hero--organization .provider-avatar--hero img {
    object-fit: contain;
  }

  /* Detail page spacing: compact, card-based rhythm. */
  .service-public-page .service-detail-main,
  .service-public-page .service-detail-tail {
    gap: 10px;
  }

  .service-public-page .service-detail-tail {
    margin-top: 12px;
  }

  .service-public-page .service-detail-panel,
  .service-public-page .service-contact-card,
  .service-public-page .service-reviews-panel {
    padding: 14px;
    border-radius: 13px;
  }

  .service-public-page .service-detail-panel .panel-title {
    margin-bottom: 8px;
  }

  .service-public-page .service-detail-panel .panel-title h2,
  .service-public-page .service-reviews-heading h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  /* Portfolio: always two compact media cards per row on phones.
     Disable desktop masonry row spans so they cannot create huge blank gaps. */
  .service-public-page .service-portfolio-panel {
    overflow: hidden;
  }

  .service-public-page .service-portfolio-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .service-public-page .service-portfolio-heading p {
    font-size: 11px;
    line-height: 1.4;
  }

  .service-public-page .service-portfolio-heading > span {
    font-size: 10px;
  }

  .service-public-page .service-portfolio-grid,
  .service-public-page .service-portfolio-grid.is-masonry-ready {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    column-gap: 7px;
    row-gap: 7px !important;
  }

  .service-public-page .service-portfolio-item,
  .service-public-page .service-portfolio-grid.is-masonry-ready .service-portfolio-item {
    grid-row: auto !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .service-public-page .service-portfolio-item img,
  .service-public-page .service-portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-public-page .service-portfolio-item__placeholder {
    min-height: 0;
    height: 100%;
  }

  .service-public-page .service-portfolio-item__play {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  /* Reviews: remove desktop-like empty space and keep all states compact. */
  .service-public-page .service-reviews-panel {
    scroll-margin-top: 86px;
  }

  .service-public-page .service-reviews-heading {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }

  .service-public-page .service-reviews-summary {
    gap: 8px;
  }

  .service-public-page .service-reviews-summary > b {
    font-size: 27px;
  }

  .service-public-page .service-reviews-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
  }

  .service-public-page .service-review-compose {
    padding: 14px;
    border-radius: 11px;
  }

  .service-public-page .service-review-compose__note strong {
    font-size: 15px;
    line-height: 1.3;
  }

  .service-public-page .service-review-compose__note p {
    margin: 6px 0 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .service-public-page .service-review-compose .btn {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .service-public-page .service-review-empty {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .service-public-page .service-review-empty strong {
    font-size: 14px;
  }

  .service-public-page .service-review-empty p {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.45;
  }

  .service-public-page .service-review-card {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .service-public-page .service-review-card__head {
    gap: 10px;
  }

  .service-public-page .service-review-author__avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .service-public-page .service-review-author strong {
    font-size: 13px;
  }

  .service-public-page .service-review-card__text {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .service-public-page .service-review-reply {
    margin-top: 11px;
    padding: 11px 12px;
  }

  .service-public-page .service-review-reply p {
    font-size: 12px;
    line-height: 1.55;
  }

  /* Locations/map should not dominate the whole detail page on a phone. */
  .service-public-page .service-public-map-layout--detail .service-public-map-canvas {
    height: 290px;
  }

  .service-public-page .service-location-card--compact {
    gap: 7px;
    padding: 11px 12px;
  }

  .service-public-page .service-location-card--compact.has-map-point {
    min-height: 0;
    padding-left: 46px;
  }

  .service-public-page .service-location-card__map-index {
    top: 11px;
    left: 11px;
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 440px) {
  /* Keep service portfolio two-up even on narrow phones. */
  .service-public-page .service-portfolio-grid,
  .service-public-page .service-portfolio-grid.is-masonry-ready {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile service organization cards: treat the logo as a secondary brand mark,
   not as a tiny cropped thumbnail. Specialists keep the portrait layout. */
@media (max-width: 720px) {
  .services-catalog-page .provider-card--organization {
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas: "service-copy service-logo";
    align-items: start;
    gap: 12px;
    min-height: 116px;
    padding: 13px 12px 12px 14px;
    background: linear-gradient(145deg, #fff 0%, #f8fbfd 100%);
  }

  .services-catalog-page .provider-card--organization .provider-card__main {
    grid-area: service-copy;
    min-width: 0;
    align-self: stretch;
    justify-content: flex-start;
  }

  .services-catalog-page .provider-card--organization .provider-avatar {
    grid-area: service-logo;
    width: 72px;
    height: 72px;
    justify-self: end;
    align-self: start;
    padding: 8px;
    border: 1px solid #d8e8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 49, 76, .07);
  }

  .services-catalog-page .provider-card--organization .provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .services-catalog-page .provider-card--organization .provider-card__copy {
    align-items: flex-start;
    gap: 4px;
  }

  .services-catalog-page .provider-card--organization .provider-card__title {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.2;
  }

  .services-catalog-page .provider-card--organization .provider-card__subtitle {
    max-width: 100%;
    line-height: 1.4;
  }

  .services-catalog-page .provider-card--organization .provider-card__rating {
    margin-top: 3px;
  }

  /* Detail hero: information leads, logo becomes a clean brand tile on the right. */
  .service-public-page .service-business-hero--organization {
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-areas: "service-hero-copy service-hero-logo";
    align-items: start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #fff 0%, #f5faff 100%);
  }

  .service-public-page .service-business-hero--organization .service-business-hero__content {
    grid-area: service-hero-copy;
    min-width: 0;
  }

  .service-public-page .service-business-hero--organization .provider-avatar--hero {
    grid-area: service-hero-logo;
    width: 94px;
    height: 94px;
    justify-self: end;
    align-self: start;
    padding: 10px;
    border: 1px solid #d7e8f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 49, 76, .08);
  }

  .service-public-page .service-business-hero--organization .provider-avatar--hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .service-public-page .service-business-hero--organization .service-category-badge {
    margin-bottom: 7px;
  }

  .service-public-page .service-business-hero--organization .service-title-row h1 {
    font-size: 24px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .service-public-page .service-business-hero--organization .service-hero-cities {
    margin-top: 7px;
  }

  .service-public-page .service-business-hero--organization .service-delivery-badges--hero {
    margin-top: 9px;
  }

  .service-public-page .service-business-hero--organization .service-hero-rating {
    margin-top: 9px;
  }
}

@media (max-width: 440px) {
  .services-catalog-page .provider-card--organization {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
    min-height: 108px;
  }

  .services-catalog-page .provider-card--organization .provider-avatar {
    width: 64px;
    height: 64px;
    padding: 7px;
    border-radius: 14px;
  }

  .service-public-page .service-business-hero--organization {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 11px;
    padding: 14px;
  }

  .service-public-page .service-business-hero--organization .provider-avatar--hero {
    width: 78px;
    height: 78px;
    padding: 8px;
    border-radius: 15px;
  }

  .service-public-page .service-business-hero--organization .service-title-row h1 {
    font-size: 22px;
  }
}

/* Mobile specialist detail hero: keep the avatar at the top, while service modes
   and rating use the full card width below the compact identity block. */
@media (max-width: 720px) {
  .service-public-page .service-business-hero--specialist {
    grid-template-columns: 101px minmax(0, 1fr);
    grid-auto-rows: auto;
    column-gap: 15px;
    row-gap: 7px;
    align-items: start;
  }

  .service-public-page .service-business-hero--specialist .service-business-hero__content {
    display: contents;
  }

  .service-public-page .service-business-hero--specialist .provider-avatar--hero {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }

  .service-public-page .service-business-hero--specialist .service-category-badge,
  .service-public-page .service-business-hero--specialist .service-title-row,
  .service-public-page .service-business-hero--specialist .service-hero-cities {
    grid-column: 2;
    width: 100%;
  }

  .service-public-page .service-business-hero--specialist .service-category-badge {
    justify-self: start;
    width: fit-content;
    margin-bottom: 0;
  }

  .service-public-page .service-business-hero--specialist .service-hero-cities {
    margin-top: 0;
  }

  .service-public-page .service-business-hero--specialist .service-delivery-badges--hero,
  .service-public-page .service-business-hero--specialist .service-hero-rating {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1px;
  }
}

/* Mobile organization cards: the brand tile only occupies the header rows.
   Location, service modes and rating continue underneath at full card width. */
@media (max-width: 720px) {
  .services-catalog-page .provider-card--organization {
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas: none;
    grid-auto-rows: auto;
    column-gap: 12px;
    row-gap: 5px;
    align-items: start;
  }

  .services-catalog-page .provider-card--organization .provider-card__main,
  .services-catalog-page .provider-card--organization .provider-card__copy {
    display: contents;
  }

  .services-catalog-page .provider-card--organization .provider-avatar {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .services-catalog-page .provider-card--organization .provider-card__eyebrow {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
  }

  .services-catalog-page .provider-card--organization .provider-card__title {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .services-catalog-page .provider-card--organization .provider-card__subtitle {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 1px;
  }

  .services-catalog-page .provider-card--organization .service-delivery-badges--card {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    margin-top: 1px;
  }

  .services-catalog-page .provider-card--organization .provider-card__rating {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    margin-top: 1px;
  }

  .service-public-page .service-business-hero--organization {
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-areas: none;
    grid-auto-rows: auto;
    column-gap: 14px;
    row-gap: 7px;
    align-items: start;
  }

  .service-public-page .service-business-hero--organization .service-business-hero__content {
    display: contents;
  }

  .service-public-page .service-business-hero--organization .provider-avatar--hero {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .service-public-page .service-business-hero--organization .service-category-badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    margin-bottom: 0;
  }

  .service-public-page .service-business-hero--organization .service-title-row {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .service-public-page .service-business-hero--organization .service-hero-cities {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 1px;
  }

  .service-public-page .service-business-hero--organization .service-delivery-badges--hero {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    margin-top: 1px;
  }

  .service-public-page .service-business-hero--organization .service-hero-rating {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    margin-top: 1px;
  }
}

@media (max-width: 440px) {
  .services-catalog-page .provider-card--organization {
    grid-template-columns: minmax(0, 1fr) 64px;
    column-gap: 10px;
  }

  .service-public-page .service-business-hero--organization {
    grid-template-columns: minmax(0, 1fr) 78px;
    column-gap: 11px;
  }
}

/* Shared Yandex location filter for public pets/listings catalogs.
   Desktop keeps the full text trigger; mobile mirrors services with a pin-only action. */
:where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter {
  width: 100%;
  min-width: 0;
  max-width: none;
}

/* Ads catalog: keep the location control compact on desktop and match the search height. */
@media (min-width: 721px) {
  .ads-catalog-page .filter-panel[data-auto-filter-form]:not(.filter-panel--listing-sex):not(.filter-panel--listing-breed) {
    grid-template-columns: minmax(320px, 1fr) max-content;
  }

  .ads-catalog-page .filter-panel.filter-panel--listing-sex:not(.filter-panel--listing-breed)[data-auto-filter-form] {
    grid-template-columns: minmax(280px, 1fr) max-content minmax(160px, .24fr);
  }

  .ads-catalog-page .filter-panel .catalog-location-filter {
    width: fit-content;
    min-width: 0;
    max-width: 280px;
    justify-self: start;
  }

  .ads-catalog-page .filter-panel .catalog-location-filter .service-location-filter__trigger {
    width: fit-content;
    min-height: 44px;
    height: 44px;
    max-width: 280px;
  }

  /* Pets catalog: search takes the free space; species and location stay content-sized. */
  .pets-catalog-page .filter-panel--pets[data-auto-filter-form] {
    grid-template-columns: minmax(300px, 1fr) max-content max-content;
    align-items: center;
    gap: 8px;
  }

  .pets-catalog-page .filter-panel--pets > select[name="species"] {
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    justify-self: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .pets-catalog-page .filter-panel--pets .catalog-location-filter {
    width: fit-content;
    min-width: 0;
    max-width: 280px;
    justify-self: start;
  }

  .pets-catalog-page .filter-panel--pets .catalog-location-filter .service-location-filter__trigger {
    width: fit-content;
    min-width: 0;
    max-width: 280px;
    min-height: 44px;
    height: 44px;
    color: var(--text);
    font-weight: 500;
  }
}

@media (min-width: 1101px) {
  .ads-catalog-page .filter-panel.filter-panel--listing-breed[data-auto-filter-form] {
    grid-template-columns: minmax(260px, 1fr) max-content minmax(150px, .21fr) minmax(230px, .36fr);
  }
}

@media (max-width: 720px) {
  .ads-catalog-page .filter-panel {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  .ads-catalog-page .filter-panel .filter-search {
    grid-column: 1 / -1;
    width: calc(100% - 52px);
    justify-self: start;
  }

  .ads-catalog-page .filter-panel .catalog-location-filter {
    position: absolute;
    top: 8px;
    right: 8px;
    grid-column: auto;
  }

  .ads-catalog-page .filter-panel .listing-filter-field,
  .ads-catalog-page .filter-panel .breed-picker-field--filter {
    grid-column: span 1;
  }

  .ads-catalog-page .filter-panel.filter-panel--listing-sex:not(.filter-panel--listing-breed) .listing-filter-field--sex {
    grid-column: 1 / -1;
  }

  .pets-catalog-page .filter-panel--pets {
    position: relative;
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  /* Match listings on mobile: search + pin in one row with an 8px visual gap. */
  .pets-catalog-page .filter-panel--pets .filter-search {
    grid-column: 1 / -1;
    width: calc(100% - 52px);
    justify-self: start;
  }

  .pets-catalog-page .filter-panel--pets > select[name="species"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pets-catalog-page .filter-panel--pets .catalog-location-filter {
    position: absolute;
    top: 8px;
    right: 8px;
    grid-column: auto;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    justify-self: end;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__trigger {
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 0 !important;
    border-radius: 10px;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__trigger svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__clear {
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    transform: none;
    border: 1px solid #fff;
    background: #eef6fb;
    color: #2878ad;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(23, 49, 76, .12);
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__popover {
    right: 0;
    left: auto;
    width: min(330px, calc(100vw - 32px));
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__search input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25;
  }

  :where(.ads-catalog-page, .pets-catalog-page) .catalog-location-filter .service-location-filter__search input::placeholder {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
  }
}

/* Compact empty states across public sections on mobile. */
@media (max-width: 720px) {
  .ads-catalog-page .listings-empty {
    gap: 7px;
    padding: 18px 16px;
  }

  .ads-catalog-page .listings-empty h2 {
    font-size: 19px;
    line-height: 1.2;
  }

  .ads-catalog-page .listings-empty p {
    font-size: 12px;
    line-height: 1.5;
  }

  .ads-catalog-page .listings-empty .btn {
    width: auto;
    min-height: 40px;
    margin-top: 3px;
    padding: 9px 14px;
    font-size: 13px;
  }

  :where(.pets-catalog-page, .services-catalog-page) .dashboard-empty {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  :where(.pets-catalog-page, .services-catalog-page) .dashboard-empty__code {
    font-size: 9px;
    line-height: 1.2;
  }

  :where(.pets-catalog-page, .services-catalog-page) .dashboard-empty h2 {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
  }

  :where(.pets-catalog-page, .services-catalog-page) .dashboard-empty p {
    font-size: 12px;
    line-height: 1.5;
  }

  .forum-catalog-page .forum-empty,
  .forum-page .forum-empty {
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .breed-search-empty,
  .breed-empty-state {
    padding: 18px 16px;
  }

  .breed-search-empty h3,
  .breed-empty-state h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.25;
  }

  .breed-search-empty p,
  .breed-empty-state p {
    font-size: 12px;
    line-height: 1.5;
  }

  .public-user-empty {
    margin-top: 12px;
    padding: 15px 16px;
    font-size: 12px;
    line-height: 1.5;
  }

  .pet-profile-empty-listings {
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
  }

  .pet-profile-empty-listings h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .pet-profile-empty-listings p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .pet-profile-empty-listings .btn {
    width: auto;
    align-self: flex-start;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .service-review-empty {
    padding: 16px;
  }

  .service-review-empty strong {
    font-size: 15px;
    line-height: 1.3;
  }

  .service-review-empty p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
  }
}

/* Pet form avatar: keep the uploader readable on narrow phones.
   This intentionally comes after the generic profile compact rules. */
@media (max-width: 440px) {
  .dashboard-content .pet-avatar-field:not(.service-logo-field) {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar.has-files,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar.has-files .image-uploader__previews,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar .image-uploader__previews,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar .image-uploader__preview {
    width: 148px;
    max-width: 100%;
  }

  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar {
    justify-self: center;
  }

  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar .image-uploader__dropzone,
  .dashboard-content .pet-avatar-field:not(.service-logo-field) .image-uploader--avatar .image-uploader__preview {
    min-height: 148px;
    height: 148px;
  }

  .dashboard-content .pet-avatar-field:not(.service-logo-field) .pet-avatar-field__copy {
    min-width: 0;
    text-align: left;
  }

  .dashboard-content .pet-avatar-field:not(.service-logo-field) .pet-avatar-field__copy p {
    max-width: none;
  }
}

/* Pet public profile mobile hero: avatar + identity row, facts below. */
@media (max-width: 720px) {
  .pet-public-profile .pet-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 13px;
    row-gap: 13px;
    padding: 12px;
  }

  .pet-public-profile .pet-profile-hero__media {
    grid-column: 1;
    grid-row: 1;
    width: 96px;
    height: 96px;
    min-height: 96px;
    aspect-ratio: 1 / 1;
    align-self: start;
    margin: 0;
    border-radius: 50%;
  }

  .pet-public-profile .pet-profile-hero__media img {
    border-radius: inherit;
  }

  .pet-public-profile .pet-profile-hero__content {
    display: contents;
    padding: 0;
  }

  .pet-public-profile .pet-profile-hero__heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }

  .pet-public-profile .pet-profile-hero__heading h1 {
    font-size: 25px;
    line-height: 1.05;
  }

  .pet-public-profile .pet-profile-hero__heading p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .pet-public-profile .pet-profile-hero__edit {
    position: absolute;
    z-index: 2;
    top: 82px;
    left: 82px;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #d8e5ef;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 49, 76, .14);
  }

  .pet-public-profile .pet-profile-hero__edit svg {
    width: 17px;
    height: 17px;
  }

  .pet-public-profile .pet-profile-hero__facts {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .pet-public-profile .pet-profile-hero__bottom {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    padding-top: 0;
  }
}


/* Pet public profile: compact follow action + followers count on one row. */
.pet-public-profile .pet-profile-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.pet-public-profile .pet-profile-hero__actions > .btn {
  width: fit-content;
  max-width: 160px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.pet-public-profile .pet-profile-hero__actions .pet-follow-count {
  min-height: 30px;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  font-size: 10.5px;
  line-height: 1.2;
}

.pet-public-profile .pet-profile-hero__actions .pet-follow-count strong {
  font-size: 12px;
}

@media (max-width: 720px) {
  .pet-public-profile .pet-profile-hero__actions {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
  }

  .pet-public-profile .pet-profile-hero__actions > .btn {
    width: fit-content;
    max-width: 150px;
    min-height: 29px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 10.5px;
  }

  .pet-public-profile .pet-profile-hero__actions .pet-follow-count {
    grid-column: auto;
    min-height: 29px;
    justify-content: flex-start;
  }
}

/* Authentication: unified controls, mobile layout and recovery prototype. */
.auth-page .auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.auth-page .iti input.iti__tel-input,
.auth-page .iti__selected-dial-code {
  font-weight: 400;
}

.auth-page .auth-name-field {
  row-gap: 5px;
}

.auth-page .auth-name-field .auth-field-hint {
  display: block;
  margin: -1px 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.auth-login-options .auth-check {
  min-width: 0;
  margin: 0;
}

.auth-forgot-link,
.auth-recovery-back {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.auth-forgot-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.auth-forgot-link:hover,
.auth-recovery-back:hover {
  color: var(--primary);
}

.auth-grid--recovery {
  align-items: center;
}

.auth-card--recovery {
  padding: 22px;
}

.auth-recovery-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-recovery-back svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}

.auth-form--recovery {
  margin-top: 18px;
}

.auth-recovery-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 3px;
}

.auth-recovery-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.auth-recovery-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.auth-recovery-head h2 {
  margin: 0 0 6px;
}

.auth-recovery-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .auth-page {
    min-height: auto;
    align-items: start;
  }

  .auth-page .auth-grid {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .auth-page .auth-pitch {
    min-width: 0;
  }

  .auth-page .auth-pitch h1 {
    max-width: 430px;
    margin: 10px 0 0;
    font-size: 27px;
    font-weight: 560;
    line-height: 1.08;
    letter-spacing: -.03em;
  }

  .auth-page .product-badge {
    font-size: 11px;
  }

  .auth-page .auth-feature-list {
    display: flex;
    gap: 8px;
    max-width: none;
    margin-top: 16px;
    padding: 0 1px 2px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .auth-page .auth-feature-list::-webkit-scrollbar {
    display: none;
  }

  .auth-page .auth-feature-list > div {
    min-width: max-content;
    display: flex;
    grid-template-columns: none;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23, 49, 76, .035);
  }

  .auth-page .auth-feature-list > div:last-child {
    border-bottom: 1px solid var(--line);
  }

  .auth-page .auth-feature-list b {
    font-size: 9px;
  }

  .auth-page .auth-feature-list span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }

  .auth-page .auth-card {
    padding: 14px;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(23, 49, 76, .05);
  }

  .auth-page .segmented {
    padding: 3px;
    border-radius: 11px;
  }

  .auth-page .segmented button,
  .auth-page .segmented a {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .auth-page .auth-form {
    gap: 12px;
    margin-top: 16px;
  }

  .auth-page .auth-form h2 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
  }

  .auth-page .auth-form label:not(.auth-check) {
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
  }

  .auth-page .auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .auth-page .iti input.iti__tel-input {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
  }

  .auth-page .iti__selected-dial-code {
    font-size: 16px;
    font-weight: 400;
  }

  .auth-page .auth-password-field > input {
    padding-right: 46px;
  }

  .auth-page .auth-password-toggle {
    right: 7px;
    width: 32px;
    height: 32px;
  }

  .auth-page .auth-password-toggle__icon {
    width: 19px;
    height: 19px;
  }

  .auth-page .auth-contact-grid,
  .auth-page .auth-password-grid {
    gap: 12px;
  }

  .auth-page .auth-form label.auth-check {
    gap: 8px;
  }

  .auth-page .auth-form label.auth-check span {
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.45;
  }

  .auth-page .auth-form label.auth-check input {
    width: 18px;
    height: 18px;
  }

  .auth-page .auth-login-options {
    gap: 10px;
  }

  .auth-page .auth-forgot-link {
    font-size: 11.5px;
  }

  .auth-page .auth-form > .btn,
  .auth-page .auth-form--recovery > .btn {
    min-height: 46px;
    font-size: 14px;
  }

  .auth-page .auth-form .auth-message {
    padding: 9px 10px;
    font-size: 11.5px;
  }

  .auth-page .auth-card--recovery {
    padding: 15px;
  }

  .auth-page .auth-recovery-back {
    font-size: 11.5px;
  }

  .auth-page .auth-form--recovery {
    margin-top: 15px;
  }

  .auth-page .auth-recovery-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
  }

  .auth-page .auth-recovery-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .auth-page .auth-recovery-head h2 {
    font-size: 21px;
  }

  .auth-page .auth-recovery-head p {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .auth-page .auth-grid {
    padding-top: 18px;
  }

  .auth-page .auth-pitch h1 {
    font-size: 24px;
  }

  .auth-page .auth-card {
    padding: 12px;
  }

  .auth-page .auth-login-options {
    align-items: flex-start;
  }
}

/* Password recovery: result states and reset form. */
.auth-recovery-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 22px;
}

.auth-recovery-result .auth-recovery-icon {
  margin-bottom: 16px;
}

.auth-recovery-icon--success {
  background: #eaf8f1;
  color: #19875d;
}

.auth-recovery-result h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.auth-recovery-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-recovery-result .auth-recovery-note {
  margin-top: 9px;
  color: #7b8ba0;
  font-size: 12px;
}

.auth-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.auth-recovery-actions .btn {
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
}

.auth-reset-request-link {
  align-self: center;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.auth-reset-request-link:hover {
  color: var(--primary);
}

@media (max-width: 720px) {
  .auth-recovery-result {
    margin-top: 18px;
  }

  .auth-recovery-result .auth-recovery-icon {
    margin-bottom: 13px;
  }

  .auth-recovery-result h2 {
    font-size: 21px;
  }

  .auth-recovery-result p {
    font-size: 12px;
    line-height: 1.55;
  }

  .auth-recovery-actions {
    width: 100%;
    margin-top: 18px;
  }

  .auth-recovery-actions .btn {
    min-height: 44px;
    font-size: 13px;
  }

  .auth-reset-request-link {
    font-size: 11.5px;
  }
}

/* Pet profile: the media counter is not useful on narrow screens and can break the header layout. */
@media (max-width: 720px) {
  .pet-profile-media-strip__head span {
    display: none;
  }
}


/* Listing deletion on the owner edit page. */
.form-actions--with-delete {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions--with-delete .form-actions__spacer {
  flex: 1 1 auto;
}

.btn.btn-danger {
  border-color: #c94d5c;
  background: #c94d5c;
  color: #fff;
}

.btn.btn-danger:hover,
.btn.btn-danger:focus-visible {
  border-color: #b84252;
  background: #b84252;
  color: #fff;
}

.listing-delete-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.listing-delete-open {
  overflow: hidden;
}

.listing-delete-modal[hidden] {
  display: none !important;
}

.listing-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 15020;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .17s ease;
}

.listing-delete-modal.is-open {
  opacity: 1;
}

.listing-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 47, .56);
  backdrop-filter: blur(3px);
}

.listing-delete-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: 28px;
  border: 1px solid #d7e2eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(16, 35, 52, .24);
  color: var(--text);
  outline: none;
  transform: translateY(10px) scale(.985);
  transition: transform .17s ease;
}

.listing-delete-modal.is-open .listing-delete-modal__dialog {
  transform: translateY(0) scale(1);
}

.listing-delete-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #718296;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.listing-delete-modal__close:hover {
  background: #f1f5f8;
  color: #2c4055;
}

.listing-delete-modal__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  border-radius: 14px;
  background: #fff0f1;
  color: #c94d5c;
}

.listing-delete-modal__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.listing-delete-modal__dialog h2 {
  margin: 0 44px 9px 0;
  color: #172437;
  font-size: 24px;
  line-height: 1.2;
}

.listing-delete-modal__dialog p {
  margin: 0;
  color: #61758a;
  font-size: 14px;
  line-height: 1.55;
}

.listing-delete-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

@media (max-width: 560px) {
  .form-actions--with-delete {
    align-items: stretch;
  }

  .form-actions--with-delete .form-actions__spacer {
    display: none;
  }

  .form-actions--with-delete .listing-delete-trigger {
    width: 100%;
    order: 3;
    margin-top: 4px;
  }

  .form-actions--with-delete > .btn:not(.listing-delete-trigger) {
    flex: 1 1 0;
    justify-content: center;
  }

  .listing-delete-modal {
    align-items: end;
    padding: 12px;
  }

  .listing-delete-modal__dialog {
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 18px;
  }

  .listing-delete-modal__dialog h2 {
    font-size: 22px;
  }

  .listing-delete-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .listing-delete-modal__actions .btn {
    justify-content: center;
  }
}

/* Destructive actions live in a separate card below the normal form actions. */
.profile-delete-entity-card,
.profile-delete-account-card {
  margin-top: 36px;
  border-color: rgba(211, 47, 47, .18);
  opacity: .5;
  transition: opacity .18s ease;
}
.profile-delete-entity-card:hover,
.profile-delete-account-card:hover,
.profile-delete-entity-card:focus-within,
.profile-delete-account-card:focus-within {
  opacity: 1;
}
.profile-delete-entity-card > div,
.profile-delete-account-card > div {
  min-width: 0;
}
.profile-delete-entity-card h2,
.profile-delete-account-card h2 { margin-bottom: 8px; }
.profile-delete-entity-card p,
.profile-delete-account-card p { margin: 0 0 18px; max-width: 860px; }
.profile-delete-entity-card .listing-delete-trigger,
.profile-delete-account-card .listing-delete-trigger { width: fit-content; }
.account-delete-password { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.account-delete-password span { color: #405268; font-size: 12px; font-weight: 650; }
.account-delete-password input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.account-delete-password input:hover { border-color: #c8d5e0; }
.account-delete-password input:focus {
  border-color: rgba(20, 127, 195, .58);
  box-shadow: 0 0 0 3px rgba(20, 127, 195, .10);
}

/* Keep destructive entry points visually quiet until the user intentionally hovers them. */
.btn.btn-danger.listing-delete-trigger {
  border-color: #d8e0e7;
  background: #eef2f5;
  color: #748291;
  box-shadow: none;
}
.btn.btn-danger.listing-delete-trigger:hover,
.btn.btn-danger.listing-delete-trigger:focus-visible {
  border-color: #c94d5c;
  background: #c94d5c;
  color: #fff;
}
@media (max-width: 767px) {
  .profile-delete-entity-card,
  .profile-delete-account-card { margin-top: 28px; }

  .profile-delete-entity-card h2,
  .profile-delete-account-card h2 {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.25;
  }

  .profile-delete-entity-card p,
  .profile-delete-account-card p {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
  }

  .profile-delete-entity-card .listing-delete-trigger,
  .profile-delete-account-card .listing-delete-trigger {
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .account-delete-modal__dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
}

/* PetBook favorites -------------------------------------------------------- */
.pb-favorite-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: #718094;
  box-shadow: none;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.pb-favorite-button:hover,
.pb-favorite-button:focus-visible {
  color: var(--primary);
  border-color: rgba(22, 118, 189, .42);
  background: #f8fbfe;
}
.pb-favorite-button.is-saved {
  color: var(--primary);
  border-color: rgba(22, 118, 189, .34);
  background: var(--primary-soft);
}
.pb-favorite-button:active { transform: translateY(1px); }
.pb-favorite-button:disabled { opacity: .58; cursor: default; }
.pb-favorite-button svg { width: 24px; height: 24px; fill: currentColor; }
.pb-favorite-button::after {
  content: attr(data-favorite-tooltip);
  position: absolute;
  z-index: 70;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #10253b;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.pb-favorite-button:hover::after,
.pb-favorite-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.detail-title-actions,
.service-title-row,
.public-user-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.detail-title-actions { justify-content: flex-end; }
.service-title-row h1,
.public-user-title-row h1 { min-width: 0; margin: 0; }
.pet-profile-hero__title-row .pb-favorite-button { width: 38px; height: 38px; border-radius: 10px; }
.forum-topic-actions .forum-topic-favorite { width: 34px; height: 34px; border-radius: 9px; }
.forum-topic-actions .forum-topic-favorite svg { width: 20px; height: 20px; }
.breed-detail-actions .pb-favorite-button { align-self: stretch; min-height: 42px; }

/* Reusable confirmation popup for removing saved/subscribed state. */
body.pb-confirm-open { overflow: hidden; }
.pb-confirm-modal[hidden] { display: none !important; }
.pb-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .16s ease;
}
.pb-confirm-modal.is-open { opacity: 1; }
.pb-confirm-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 21, 36, .52); }
.pb-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(10, 29, 49, .22);
  transform: translateY(8px) scale(.985);
  transition: transform .16s ease;
}
.pb-confirm-modal.is-open .pb-confirm-modal__dialog { transform: translateY(0) scale(1); }
.pb-confirm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8290a0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pb-confirm-modal__close:hover { background: #f1f4f7; color: var(--text); }
.pb-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.pb-confirm-modal__icon svg { width: 24px; height: 24px; fill: currentColor; }
.pb-confirm-modal__dialog h2 { margin: 0 42px 8px 0; font-size: 22px; line-height: 1.25; }
.pb-confirm-modal__dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pb-confirm-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.pb-confirm-modal__actions .btn { min-width: 108px; justify-content: center; }

/* Profile overview: saved pages + subscriptions -------------------------- */
.profile-activity-panel { padding: 0; overflow: hidden; }
.profile-activity-head { padding: 26px 28px 18px; }
.profile-activity-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
}
.profile-activity-head h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.profile-activity-head p { margin: 7px 0 0; max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profile-activity-tabs {
  display: flex;
  gap: 8px;
  padding: 0 28px 18px;
  border-bottom: 1px solid var(--line);
}
.profile-activity-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #63758a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.profile-activity-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf2f6;
  color: #66798e;
  font-size: 11px;
}
.profile-activity-tab:hover { color: var(--primary); background: #f7fafc; }
.profile-activity-tab.is-active { color: var(--primary-strong); border-color: rgba(22, 118, 189, .16); background: var(--primary-soft); }
.profile-activity-tab.is-active b { background: #fff; color: var(--primary); }
.profile-activity-panel-body { padding: 22px 28px 28px; }
.profile-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-saved-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 100px;
  padding: 10px 52px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.profile-saved-card:hover { border-color: #cbd8e3; box-shadow: 0 10px 26px rgba(18, 44, 68, .07); transform: translateY(-1px); }
.profile-saved-card__main { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; color: inherit; text-decoration: none; }
.profile-saved-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 11px;
  background: #eef3f7;
  color: #8090a1;
}
.profile-saved-card__media img { width: 100%; height: 100%; object-fit: cover; }
.profile-saved-card__media svg { width: 28px; height: 28px; fill: currentColor; }
.profile-saved-card__copy { display: flex; flex-direction: column; min-width: 0; }
.profile-saved-card__copy small { margin-bottom: 3px; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.profile-saved-card__copy strong { overflow: hidden; color: var(--text-dark); font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.profile-saved-card__copy span { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-saved-card > .pb-favorite-button,
.profile-follow-card > .profile-follow-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-saved-card > .pb-favorite-button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; }
.profile-saved-card > .pb-favorite-button:hover { background: var(--primary-soft); }
.profile-saved-card > .pb-favorite-button svg { width: 20px; height: 20px; }
.profile-follow-card > .profile-follow-card__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  font-size: 0;
  line-height: 1;
  text-indent: -9999px;
  white-space: nowrap;
  box-shadow: none;
}
.profile-follow-card > .profile-follow-card__remove::before {
  content: '♥';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 16px;
  height: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 16px;
  text-indent: 0;
  text-align: center;
}
.profile-activity-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px;
  border: 1px dashed #d5dee7;
  border-radius: 14px;
  background: #fafcfd;
}
.profile-activity-empty > span { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #edf3f8; color: #8392a2; font-size: 22px; }
.profile-activity-empty > span svg { width: 22px; height: 22px; fill: currentColor; }
.profile-activity-empty strong { display: block; margin-bottom: 4px; font-size: 14px; }
.profile-activity-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 1100px) {
  .profile-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .pb-favorite-button { width: 38px; height: 38px; border-radius: 10px; }
  .pb-favorite-button svg { width: 22px; height: 22px; }
  .pb-favorite-button::after { display: none; }
  .detail-title-row { align-items: flex-start; }
  .detail-title-actions { gap: 7px; }
  .service-title-row,
  .public-user-title-row { align-items: flex-start; }
  .service-title-row h1,
  .public-user-title-row h1 { flex: 1 1 auto; }
  .breed-detail-actions .pb-favorite-button { align-self: auto; }

  .pb-confirm-modal { align-items: end; padding: 12px; }
  .pb-confirm-modal__dialog { width: 100%; padding: 23px 20px 20px; border-radius: 18px; }
  .pb-confirm-modal__dialog h2 { font-size: 19px; }
  .pb-confirm-modal__dialog p { font-size: 13px; }
  .pb-confirm-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pb-confirm-modal__actions .btn { min-width: 0; width: 100%; }

  .profile-activity-head { padding: 20px 18px 14px; }
  .profile-activity-head h2 { font-size: 19px; }
  .profile-activity-head p { font-size: 12px; }
  .profile-activity-tabs { padding: 0 18px 14px; overflow-x: auto; scrollbar-width: none; }
  .profile-activity-tabs::-webkit-scrollbar { display: none; }
  .profile-activity-tab { flex: 0 0 auto; min-height: 38px; padding: 0 12px; font-size: 12px; }
  .profile-activity-panel-body { padding: 16px 18px 20px; }
  .profile-activity-grid { grid-template-columns: 1fr; gap: 9px; }
  .profile-saved-card { min-height: 88px; padding: 9px 48px 9px 9px; border-radius: 12px; }
  .profile-saved-card__media { flex-basis: 62px; width: 62px; height: 62px; border-radius: 10px; }
  .profile-saved-card__copy strong { font-size: 13px; }
  .profile-saved-card__copy span { font-size: 10.5px; }
  .profile-activity-empty { min-height: 98px; padding: 17px; }
}

/* Favorites: compact icon-only action, aligned consistently on detail pages. */
.pb-favorite-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #718094;
  box-shadow: none;
  transition: color .16s ease, opacity .16s ease, transform .16s ease;
}
.pb-favorite-button:hover,
.pb-favorite-button:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}
.pb-favorite-button.is-saved {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}
.pb-favorite-button svg {
  width: 21px;
  height: 21px;
}

/* Tooltip opens below and grows to the left, so it stays visible near a card's
   upper-right corner even when the card clips overflowing content. */
.pb-favorite-button::after {
  top: calc(100% + 7px);
  right: 0;
  bottom: auto;
  left: auto;
  transform: translateY(-4px);
}
.pb-favorite-button:hover::after,
.pb-favorite-button:focus-visible::after {
  transform: translateY(0);
}

/* Pet / service / public user: keep edit/title actions where they are and push
   the bookmark to the right edge of the heading row. */
.pet-profile-hero__title-row .pb-favorite-button,
.service-title-row .pb-favorite-button,
.public-user-title-row .pb-favorite-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin-left: auto;
  border-radius: 0;
}
.pet-profile-hero__title-row .pb-favorite-button svg,
.service-title-row .pb-favorite-button svg,
.public-user-title-row .pb-favorite-button svg {
  width: 21px;
  height: 21px;
}

/* Breed: the bookmark is visually pinned to the upper-right corner of the
   information card instead of living beside the bottom CTA buttons. */
.breed-detail-copy {
  position: relative;
}
.breed-detail-copy > h1 {
  padding-right: 34px;
}
.breed-detail-actions .pb-favorite-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  align-self: auto;
  border-radius: 0;
}
.breed-detail-actions .pb-favorite-button svg {
  width: 21px;
  height: 21px;
}

/* Forum topic: same upper-right placement while report/edit controls remain in
   their existing action row. */
.topic-page > header {
  position: relative;
}
.topic-page > header > h1 {
  padding-right: 38px;
}
.forum-topic-actions .forum-topic-favorite {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  border-radius: 0;
}
.forum-topic-actions .forum-topic-favorite svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 700px) {
  .pb-favorite-button,
  .pet-profile-hero__title-row .pb-favorite-button,
  .service-title-row .pb-favorite-button,
  .public-user-title-row .pb-favorite-button,
  .breed-detail-actions .pb-favorite-button,
  .forum-topic-actions .forum-topic-favorite {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 0;
  }
  .pb-favorite-button svg,
  .pet-profile-hero__title-row .pb-favorite-button svg,
  .service-title-row .pb-favorite-button svg,
  .public-user-title-row .pb-favorite-button svg,
  .breed-detail-actions .pb-favorite-button svg,
  .forum-topic-actions .forum-topic-favorite svg {
    width: 20px;
    height: 20px;
  }
  .breed-detail-actions .pb-favorite-button {
    top: 14px;
    right: 14px;
  }
  .forum-topic-actions .forum-topic-favorite {
    top: 12px;
    right: 12px;
  }
}

/* Listing detail: pin the favorite action to the upper-right corner of the
   whole information panel, matching the placement used on other detail pages. */
.ads-detail-page .detail-copy {
  position: relative;
}
.ads-detail-page .detail-title-actions .pb-favorite-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  margin: 0;
}

@media (max-width: 700px) {
  .ads-detail-page .detail-title-actions .pb-favorite-button {
    top: 14px;
    right: 14px;
  }
}

/* Service detail: favorite belongs to the upper-right corner of the whole
   service hero card, not to the title row. */
.service-public-page .service-business-hero {
  position: relative;
}
.service-public-page .service-title-row .pb-favorite-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  margin: 0;
}

@media (max-width: 700px) {
  .service-public-page .service-title-row .pb-favorite-button {
    top: 14px;
    right: 14px;
  }
}

/* Pet detail: favorite belongs to the upper-right corner of the whole hero
   card, independently of the pet name/title row. */
.pet-public-profile .pet-profile-hero {
  position: relative;
}
.pet-public-profile .pet-profile-hero__title-row .pb-favorite-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  margin: 0;
}

@media (max-width: 700px) {
  .pet-public-profile .pet-profile-hero__title-row .pb-favorite-button {
    top: 14px;
    right: 14px;
  }
}

/* Forum topic: question + description live in one calm card below the author. */
.forum-topic-user-section {
  margin-bottom: 0;
}
.forum-topic-user-section .topic-head-meta {
  margin-top: 14px;
}
.topic-page .forum-topic-question-card {
  position: relative;
  overflow: visible;
  margin-top: 18px;
  padding: 26px 64px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 49, 76, .055);
}
.topic-page .forum-topic-question-card h1 {
  max-width: 980px;
  margin: 0;
  color: #172437;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.topic-page .forum-topic-question-card__description {
  max-width: 980px;
  margin-top: 14px;
}
.topic-page .forum-topic-question-card__description p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.topic-page .forum-topic-question-card .forum-closed {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #738296;
}
.topic-page .forum-topic-question-card .forum-topic-favorite {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
}

@media (max-width: 700px) {
  .forum-topic-user-section .topic-head-meta {
    margin-top: 10px;
  }
  .topic-page .forum-topic-question-card {
    margin-top: 14px;
    padding: 18px 48px 18px 18px;
    border-radius: 15px;
  }
  .forum-topic-page-shell .topic-page .forum-topic-question-card h1 {
    font-size: 24px;
    line-height: 1.16;
  }
  .topic-page .forum-topic-question-card__description {
    margin-top: 10px;
  }
  .topic-page .forum-topic-question-card__description p {
    font-size: 13.5px;
    line-height: 1.58;
  }
  .topic-page .forum-topic-question-card .forum-topic-favorite {
    top: 15px;
    right: 15px;
  }
}

/* Profile navigation: keep the desktop sidebar readable on tablet widths
   before the layout switches to the stacked/tablet navigation at 980px. */
@media (min-width: 981px) and (max-width: 1100px) {
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav,
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav--grouped {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }
}


/* PetBook articles */
.home-articles-shell {
  position: relative;
}

.home-articles-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 1px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.home-articles-track::-webkit-scrollbar { display: none; }

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 49, 76, .045);
  scroll-snap-align: start;
}

.article-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf3f7;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.article-card:hover .article-card__image img { transform: scale(1.025); }

.article-card__body {
  padding: 15px 15px 17px;
}

.article-card__body > span,
.article-detail-kicker,
.articles-page__head > span {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin: 8px 0 10px;
  color: #172437;
  font-size: 17px;
  line-height: 1.28;
}

.article-card h2 a,
.article-card h3 a { color: inherit; }

.article-card__body p {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card__body small {
  color: #8794a2;
  font-size: 10.5px;
}

.home-articles-nav {
  position: absolute;
  z-index: 2;
  top: 34%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 49, 76, .12);
  color: #31475b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.home-articles-nav--prev { left: -18px; }
.home-articles-nav--next { right: -18px; }
.home-articles-nav:disabled { opacity: .3; cursor: default; }
.home-articles-nav[hidden] { display: none; }

.articles-page,
.article-detail-page {
  padding: 34px 0 90px;
  background: #fff;
}

.articles-page__head {
  max-width: 820px;
  padding: 42px 0 34px;
}

.articles-page__head h1 {
  margin: 9px 0 13px;
  color: #172437;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.articles-page__head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.articles-category-toolbar {
  justify-content: flex-start;
  margin: 0 0 28px;
}

.articles-category-toolbar .segmented {
  max-width: 100%;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-empty {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.article-detail-container { max-width: 1120px; }

.article-detail-head {
  width: 100%;
  max-width: 1040px;
  margin: 38px 0 30px;
  text-align: left;
}

.article-detail-head h1 {
  margin: 10px 0 16px;
  color: #172437;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.article-detail-lead {
  max-width: 1040px;
  margin: 0;
  color: #5f7080;
  font-size: 17px;
  line-height: 1.65;
}

.article-detail-meta {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 18px;
  color: #8794a2;
  font-size: 12px;
}

.article-detail-meta span + span::before {
  content: '•';
  margin-right: 18px;
}

.article-detail-cover {
  max-width: 1040px;
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: 22px;
  background: #edf3f7;
}

.article-detail-cover img {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: cover;
}

.article-detail-body {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  color: #26394b;
  font-size: 17px;
  line-height: 1.82;
}

.article-detail-body h2 {
  margin: 52px 0 18px;
  color: #172437;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.article-detail-body h3 {
  margin: 32px 0 10px;
  color: #172437;
  font-size: 22px;
  line-height: 1.3;
}

.article-detail-body p { margin: 0 0 20px; }
.article-detail-body ul,
.article-detail-body ol { margin: 0 0 24px; padding-left: 25px; }
.article-detail-body li { margin-bottom: 8px; }
.article-detail-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.article-detail-body blockquote {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: #f2f7fb;
  color: #31475b;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.65;
}

.article-related {
  margin-top: 66px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-related__head {
  margin-bottom: 20px;
}

.article-related__head > span {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.article-related__head h2 {
  margin: 0;
  color: #172437;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.article-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23, 49, 76, .08);
}

.article-related-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf3f7;
}

.article-related-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-related-card__body {
  display: block;
  padding: 13px 14px 15px;
}

.article-related-card__body small {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.article-related-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #172437;
  font-size: 15px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-related-card__body > span {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-source-box {
  margin-top: 54px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7fafc;
}

.article-source-box strong { color: #172437; }
.article-source-box p { margin: 8px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-source-box a { font-size: 13px; font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) {
  .home-articles-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .home-articles-track { grid-auto-columns: 45%; gap: 10px; padding-bottom: 8px; }
  .home-articles-nav { display: none; }
  .article-card { border-radius: 14px; }
  .article-card__body { padding: 10px 10px 12px; }
  .article-card h2,
  .article-card h3 { margin: 6px 0 8px; font-size: 13px; line-height: 1.25; }
  .article-card__body > span { font-size: 8px; }
  .article-card__body small { font-size: 9px; }
  .articles-page,
  .article-detail-page { padding: 20px 0 58px; }
  .articles-page__head { padding: 28px 0 22px; }
  .articles-page__head h1 { font-size: 34px; }
  .articles-page__head p { font-size: 13px; line-height: 1.6; }
  .articles-category-toolbar { margin-bottom: 20px; }
  .articles-category-toolbar .segmented {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .articles-category-toolbar .segmented::-webkit-scrollbar { display: none; }
  .articles-category-toolbar .segmented a { flex: 0 0 auto; }
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .articles-grid .article-card__body p { display: none; }
  .article-detail-head { margin: 28px 0 24px; text-align: left; }
  .article-detail-head h1 { margin: 9px 0 13px; font-size: 32px; line-height: 1.1; }
  .article-detail-lead { font-size: 14px; line-height: 1.6; }
  .article-detail-meta { justify-content: flex-start; margin-top: 16px; }
  .article-detail-cover { margin-bottom: 30px; border-radius: 15px; }
  .article-detail-body { font-size: 15px; line-height: 1.75; }
  .article-detail-body h2 { margin-top: 38px; font-size: 25px; }
  .article-detail-body h3 { margin-top: 26px; font-size: 19px; }
  .article-detail-body blockquote { margin: 26px 0; padding: 19px 18px; font-size: 15px; }
  .article-related { margin-top: 46px; padding-top: 28px; }
  .article-related__head h2 { font-size: 23px; }
  .article-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .article-related-card__body { padding: 10px 10px 12px; }
  .article-related-card__body strong { font-size: 13px; }
  .article-related-card__body > span { font-size: 10px; }
  .article-source-box { margin-top: 38px; padding: 19px; }
}

/* PetBook Articles: editorial movie top list */
.article-movie-top {
  display: grid;
  gap: 16px;
  margin: 30px 0 48px;
}

.article-movie-top__item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(23, 49, 76, .05);
}

.article-movie-top__media {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  background: #edf3f7;
}

.article-movie-top__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-movie-top__rank {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 36, 55, .88);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}

.article-movie-top__content {
  min-width: 0;
  padding: 22px 24px 23px;
}

.article-movie-top__eyebrow {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.article-detail-body .article-movie-top__content h3 {
  margin: 0 0 10px;
  color: #172437;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -.018em;
}

.article-detail-body .article-movie-top__content > p {
  margin: 0 0 13px;
}

.article-detail-body .article-movie-top__content > p:last-child {
  margin-bottom: 0;
}

.article-movie-top__why {
  padding: 11px 13px;
  border-radius: 11px;
  background: #f3f8fb;
  color: #40566a;
  font-size: 14px;
  line-height: 1.6;
}

.article-movie-top__why strong {
  color: #26394b;
}

@media (max-width: 720px) {
  .article-movie-top {
    gap: 12px;
    margin: 24px 0 38px;
  }

  .article-movie-top__item {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 15px;
  }

  .article-movie-top__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-movie-top__rank {
    top: 11px;
    left: 11px;
    min-width: 39px;
    height: 39px;
    font-size: 12px;
  }

  .article-movie-top__content {
    padding: 16px 16px 17px;
  }

  .article-detail-body .article-movie-top__content h3 {
    font-size: 20px;
  }

  .article-movie-top__why {
    padding: 10px 11px;
    font-size: 13px;
  }
}

/* PetBook create launcher: bottom sheet on mobile, centered dialog on desktop. */
body.pb-create-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.pb-create-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pb-create-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(7, 17, 29, .54);
  opacity: 0;
  cursor: default;
  transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.pb-create-sheet__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(82dvh, 680px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(202, 212, 223, .92);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 54px rgba(15, 35, 56, .18);
  transform: translateY(calc(100% + 24px));
  transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}

.pb-create-sheet.is-open .pb-create-sheet__backdrop {
  opacity: 1;
}

.pb-create-sheet.is-open .pb-create-sheet__dialog {
  transform: translateY(0);
}

.pb-create-sheet__handle {
  width: 74px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: -4px auto 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pb-create-sheet__handle span {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #c7d1dc;
  transition: background-color .18s ease, transform .18s ease;
}

.pb-create-sheet__handle:hover span,
.pb-create-sheet__handle:focus-visible span {
  background: #9fb0c1;
}

.pb-create-sheet__handle:active span {
  transform: scaleX(.9);
}

.pb-create-sheet__handle:focus-visible {
  outline: 2px solid rgba(30, 136, 210, .28);
  outline-offset: -2px;
  border-radius: 999px;
}

.pb-create-sheet__head {
  display: block;
  padding: 0 2px 17px;
}

.pb-create-sheet__eyebrow {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.pb-create-sheet__head h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.pb-create-sheet__head p {
  max-width: 390px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pb-create-sheet__actions {
  display: grid;
  gap: 9px;
}

.pb-create-sheet__action {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.pb-create-sheet__action:hover,
.pb-create-sheet__action:focus-visible {
  border-color: rgba(22, 118, 189, .34);
  background: #f8fbfe;
}

.pb-create-sheet__action:active {
  transform: scale(.99);
}

.pb-create-sheet__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.pb-create-sheet__icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.pb-create-sheet__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pb-create-sheet__copy strong {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.pb-create-sheet__copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.42;
}

.pb-create-sheet__arrow {
  width: 19px;
  height: 19px;
  fill: #8ba0b4;
}

@media (min-width: 981px) {
  .pb-create-sheet {
    align-items: center;
    padding: 24px;
  }

  .pb-create-sheet__dialog {
    width: min(520px, calc(100% - 48px));
    max-height: min(82vh, 680px);
    padding: 24px;
    border: 1px solid rgba(202, 212, 223, .92);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 35, 56, .24);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: transform .22s cubic-bezier(.22, .61, .36, 1), opacity .18s ease;
  }

  .pb-create-sheet.is-open .pb-create-sheet__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .pb-create-sheet__handle {
    display: none;
  }

  .pb-create-sheet__head {
    padding: 0 2px 18px;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .pb-create-sheet__dialog {
    margin: 0 16px 16px;
    border-bottom: 1px solid rgba(202, 212, 223, .92);
    border-radius: 24px;
    padding-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .pb-create-sheet__dialog {
    padding-inline: 14px;
  }

  .pb-create-sheet__head {
    padding-bottom: 14px;
  }

  .pb-create-sheet__head h2 {
    font-size: 21px;
  }

  .pb-create-sheet__action {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 72px;
    padding: 11px;
  }

  .pb-create-sheet__icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-create-sheet__backdrop,
  .pb-create-sheet__dialog,
  .pb-create-sheet__action {
    transition: none;
  }
}

/* PetBook user presence: show only when the owner was active in the last ~3 minutes. */
.pet-profile-card__photo,
.listing-card__media,
.provider-avatar,
.pet-owner-card__avatar,
.avatar,
.public-user-avatar {
  position: relative;
}

.pb-online-indicator {
  position: absolute;
  z-index: 6;
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--success, #27ae60);
  box-shadow: 0 1px 4px rgba(23, 49, 76, .22);
  cursor: help;
}

.pb-online-indicator--media {
  right: 13px;
  bottom: 13px;
}

.provider-avatar .pb-online-indicator--media {
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border-width: 2px;
}

.provider-avatar--hero .pb-online-indicator--media {
  right: 9px;
  bottom: 9px;
  width: 16px;
  height: 16px;
  border-width: 3px;
}

.pb-online-indicator--avatar {
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.pb-online-indicator--profile {
  right: 3px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-width: 3px;
}

@media (max-width: 760px) {
  .pb-online-indicator--media {
    right: 10px;
    bottom: 10px;
  }

  .provider-avatar .pb-online-indicator--media {
    right: 4px;
    bottom: 4px;
  }

  .provider-avatar--hero .pb-online-indicator--media {
    right: 7px;
    bottom: 7px;
  }
}


/* PetBook user presence refinements: favorite-style tooltip + unclipped avatar dot. */
.pb-online-indicator::after {
  content: attr(data-online-tooltip);
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #10253b;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.pb-online-indicator:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Media indicators live close to the right edge. Keep the tooltip inside the
   card instead of centering it outside an overflow-hidden media frame. */
.pb-online-indicator--media::after {
  left: auto;
  right: -5px;
  transform: translateY(4px);
}

.pb-online-indicator--media:hover::after {
  transform: translateY(0);
}

/* The old avatar wrappers clipped the status circle because they used
   overflow:hidden. Clip only the image itself and let the indicator extend
   beyond the avatar edge. */
.pet-owner-card__avatar,
.public-user-avatar,
.listing-owner-row .avatar,
.provider-avatar--image {
  overflow: visible;
}

.pet-owner-card__avatar img,
.public-user-avatar img,
.listing-owner-row .avatar img,
.provider-avatar--image img {
  border-radius: inherit;
}

/* Listing author avatar is intentionally circular on the detail page. */
.listing-owner-row .avatar {
  border-radius: 50%;
}

.listing-owner-row .avatar--image {
  background: #e9eef3;
}

@media (hover: none), (pointer: coarse) {
  .pb-online-indicator::after {
    display: none;
  }
}

/* PetBook user presence: final optical positioning for public profile and ad owner avatar. */
.public-user-profile .public-user-avatar > .pb-online-indicator--profile {
  right: 11px;
  bottom: 4px;
}

.ads-detail-page .listing-owner-row .avatar > .pb-online-indicator--avatar {
  right: 0;
  bottom: 0;
}

@media (max-width: 760px) {
  .public-user-profile .public-user-avatar > .pb-online-indicator--profile {
    right: 6px;
    bottom: 4px;
  }
}

/* Fictional PetBook characters (specific pet IDs): small disclosure near pet names. */
.pet-fictional-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(44, 198, 243, .28);
  border-radius: 999px;
  background: rgba(44, 198, 243, .08);
  color: #247ba1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.pet-fictional-badge::before {
  content: '';
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.pet-fictional-badge--card { margin: 0 0 7px; }
.pet-fictional-badge--owner { margin: 0 0 9px; }
.pet-fictional-badge--compact { margin-top: 5px; padding: 3px 7px; font-size: 9px; }
.pet-fictional-badge--picker { margin-top: 3px; padding: 2px 6px; font-size: 9px; }
.pet-fictional-badge--inline { flex: 0 0 auto; padding: 3px 7px; font-size: 9px; }
.pet-fictional-badge--hero { margin-top: 6px; }
.pet-profile-hero__name-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pet-profile-hero__name-block h1 { min-width: 0; }
.public-user-pet-card .pet-fictional-badge,
.pb-search-card__body .pet-fictional-badge,
.profile-saved-card__copy .pet-fictional-badge,
.pet-profile-picker__option .pet-fictional-badge {
  align-self: flex-start;
}
.profile-saved-card__copy .pet-fictional-badge {
  display: inline-flex;
  margin-top: 5px;
  color: #247ba1;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.pet-fictional-badge[hidden] { display: none !important; }
.followers-page__pet-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.followers-page__pet-link-row > a {
  color: #1d5f96;
  font-size: 12px;
  font-weight: 760;
}
@media (max-width: 720px) {
  .pet-fictional-badge { font-size: 9px; }
  .pet-fictional-badge--hero { margin-top: 5px; }
  .pet-profile-hero__title-row { align-items: flex-start; }
}


/* Public user profile: denser related-content grids on desktop only. */
@media (min-width: 1101px) {
  .public-user-profile .public-user-pet-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .public-user-profile .pet-profile-listings__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
  }
}


/* Independent specialist detail hero on mobile: slightly larger circular avatar
   so personal profiles stay visually balanced next to the full-width tags/reviews block. */
@media (max-width: 720px) {
  .service-public-page .service-business-hero--specialist {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 15px;
  }

  .service-public-page .service-business-hero--specialist .provider-avatar--hero {
    width: 96px;
    height: 96px;
    border-radius: 50%;
  }
}

@media (max-width: 440px) {
  .service-public-page .service-business-hero--specialist {
    grid-template-columns: 102px minmax(0, 1fr);
    column-gap: 12px;
  }

  .service-public-page .service-business-hero--specialist .provider-avatar--hero {
    width: 88px;
    height: 88px;
    border-radius: 50%;
  }
}


/* Service offer description field: typed text stays identical to the other profile inputs.
   Only the helper placeholder is intentionally a little smaller. */
@media (max-width: 720px) {
  .dashboard-content .service-provider-form .service-offer-description-field textarea {
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4;
  }

  .dashboard-content .service-provider-form .service-offer-description-field textarea::placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
  }
}


/* PetBook Health profile navigation entry */
.dashboard-nav a.dashboard-nav__health {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a94b5b;
  background: #fff8f9;
  border: 1px solid rgba(222, 91, 113, .18);
}
.dashboard-nav a.dashboard-nav__health:hover,
.dashboard-nav a.dashboard-nav__health.is-active {
  color: #a6364b;
  background: #fff0f3;
  border-color: rgba(222, 91, 113, .3);
}
.dashboard-nav__health-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #d94f68;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 980px) {
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health {
    display: inline-flex;
    gap: 6px;
    color: #a94b5b;
    background: #fff8f9;
    border-color: rgba(222, 91, 113, .2);
  }
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health.is-active {
    color: #a6364b;
    background: #fff0f3;
    border-color: rgba(222, 91, 113, .32);
  }
}


/* PetBook Health nav icon refinement */
.dashboard-nav a.dashboard-nav__health {
  gap: 9px;
  color: #8d5862;
  background: #fff7f8;
  border: 1px solid #ead6da;
  border-radius: 11px;
}
.dashboard-nav a.dashboard-nav__health:hover,
.dashboard-nav a.dashboard-nav__health.is-active {
  color: #7e4a54;
  background: #fff1f3;
  border-color: #e5c2ca;
}
.dashboard-nav__health-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b86172;
}
.dashboard-nav__health-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
@media (max-width: 980px) {
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health {
    gap: 7px;
    color: #8d5862;
    background: #fff7f8;
    border-color: #ead6da;
  }
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health.is-active {
    color: #7e4a54;
    background: #fff1f3;
    border-color: #e5c2ca;
  }
}

/* PetBook Health profile navigation: use PetBook blue instead of red */
.dashboard-nav a.dashboard-nav__health{
  color:#4f7089!important;
  background:#f7fbfe!important;
  border-color:#d4e5f0!important;
}
.dashboard-nav a.dashboard-nav__health:hover,
.dashboard-nav a.dashboard-nav__health.is-active{
  color:#146da9!important;
  background:#eaf4fb!important;
  border-color:#bddbed!important;
}
.dashboard-nav__health-icon{
  color:#1676bd!important;
}
@media(max-width:980px){
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health{
    color:#4f7089!important;
    background:#f7fbfe!important;
    border-color:#d4e5f0!important;
  }
  .dashboard-grid > .dashboard-nav-shell .dashboard-nav a.dashboard-nav__health.is-active{
    color:#146da9!important;
    background:#eaf4fb!important;
    border-color:#bddbed!important;
  }
}

/* Service portfolio progressive reveal.
   The existing gallery/lightbox stays untouched: this wrapper only clips the
   initial view and keeps the expand/collapse control attached to its bottom. */
.service-public-page .service-portfolio-crop {
  position: relative;
  overflow: visible;
}

.service-public-page .service-portfolio-crop.is-collapsed {
  height: var(--service-portfolio-collapsed-height, auto);
  overflow: hidden;
}

.service-public-page .service-portfolio-more {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--service-portfolio-fade-height, 112px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.96) 76%, #fff 100%);
}

.service-public-page .service-portfolio-crop.is-expanded .service-portfolio-more {
  height: 44px;
  background: transparent;
}

.service-public-page .service-portfolio-more[hidden] {
  display: none !important;
}

.service-public-page .service-portfolio-more__button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px 14px 7px 16px;
  border: 1px solid rgba(23, 126, 196, .18);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #126fae;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.service-public-page .service-portfolio-more__button:hover {
  border-color: rgba(23, 126, 196, .3);
  background: #fff;
}

.service-public-page .service-portfolio-more__button:focus-visible {
  outline: 3px solid rgba(28, 137, 211, .2);
  outline-offset: 3px;
}

.service-public-page .service-portfolio-more__button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.service-public-page .service-portfolio-crop.is-expanded .service-portfolio-more__button svg {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .service-public-page .service-portfolio-more {
    height: var(--service-portfolio-fade-height, 92px);
    padding: 0 10px;
  }

  .service-public-page .service-portfolio-crop.is-expanded .service-portfolio-more {
    height: 40px;
  }

  .service-public-page .service-portfolio-more__button {
    min-height: 34px;
    padding: 6px 12px 6px 14px;
    border-radius: 13px 13px 0 0;
    font-size: 11px;
    box-shadow: none;
  }

  .service-public-page .service-portfolio-more__button svg {
    width: 14px;
    height: 14px;
  }
}

/* Shelter profile: reuse existing listing cards inside service pages. */
.shelter-animals-panel__title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.shelter-listing-section + .shelter-listing-section { margin-top: 26px; }
.shelter-listing-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.shelter-listing-section__head h3 { margin: 0; font-size: 17px; }
.shelter-listing-section__head span { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(42,168,230,.1); color: #1d79ad; font-size: 12px; font-weight: 700; }
.shelter-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shelter-listing-grid .listing-card__media { height: 190px; }
.shelter-listing-grid .listing-card__body { padding: 14px 15px 16px; }
.shelter-listing-grid .listing-card__body h3 { margin-bottom: 5px; font-size: 16px; }
.shelter-listing-grid .listing-card__body p { font-size: 12px; }
.shelter-listing-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.listing-owner-row--shelter .avatar { border-radius: 12px; overflow: hidden; }
@media (max-width: 700px) {
  .shelter-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelter-listing-grid .listing-card__media { height: 145px; }
  .shelter-listing-grid .listing-card__body { padding: 11px; }
  .shelter-listing-grid .listing-card__body h3 { font-size: 14px; }
}

/* Shelter attribution on public listing cards. */
.listing-card__shelter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 0 8px;
  color: #1d79ad;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.listing-card__shelter span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(29, 121, 173, .22);
  border-radius: 999px;
  background: rgba(29, 121, 173, .08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.listing-card__shelter:hover { text-decoration: underline; }


/* End */


/* Start:/local/templates/mtemplate/assets/css/typography.css?17868972764429*/
@font-face {
  font-family: "PetBook Armenian";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("https://cdn.jsdelivr.net/gh/vahanhovh/mardoto@master/fonts/woff/Mardoto-Regular.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
  font-family: "PetBook Armenian";
  font-style: normal;
  font-display: swap;
  font-weight: 500 600;
  src: url("https://cdn.jsdelivr.net/gh/vahanhovh/mardoto@master/fonts/woff/Mardoto-Medium.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
  font-family: "PetBook Armenian";
  font-style: normal;
  font-display: swap;
  font-weight: 700 900;
  src: url("https://cdn.jsdelivr.net/gh/vahanhovh/mardoto@master/fonts/woff/Mardoto-Bold.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

html[lang="hy"] body {
  font-family: "PetBook Armenian", Inter, system-ui, sans-serif;
  line-height: 1.58;
}

html[lang="hy"] h1,
html[lang="hy"] h2,
html[lang="hy"] h3 {
  letter-spacing: -.02em;
}

html[lang="hy"] .header-inner {
  gap: 21px;
}

html[lang="hy"] .main-nav {
  gap: 14px;
}

html[lang="hy"] .main-nav > .main-nav__link,
html[lang="hy"] .main-nav__item > .main-nav__link {
  align-self: stretch;
  padding-block: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

html[lang="hy"] .header-tools {
  gap: 8px;
}

html[lang="hy"] .header-login {
  padding-inline: 8px;
  font-size: 12.5px;
  white-space: nowrap;
}

html[lang="hy"] .header-add {
  padding-inline: 14px;
  font-size: 12.5px;
  line-height: 1.25;
  white-space: nowrap;
}

html[lang="hy"] .home-hero h1 {
  max-width: 780px;
  font-size: clamp(52px, 5vw, 62px);
  font-weight: 620;
  line-height: 1.065;
  letter-spacing: -.025em;
}

html[lang="hy"] .hero-summary {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.65;
}

html[lang="hy"] .product-badge {
  font-size: 11.5px;
  letter-spacing: .045em;
}

html[lang="hy"] .product-window h2 {
  font-size: 29px;
  line-height: 1.16;
  letter-spacing: -.015em;
}

html[lang="hy"] .window-actions span,
html[lang="hy"] .btn,
html[lang="hy"] .launcher-card strong {
  line-height: 1.35;
}

html[lang="hy"] .section-heading h2 {
  line-height: 1.13;
}

html[lang="hy"] .page-head h1,
html[lang="hy"] .dashboard-head h1,
html[lang="hy"] .breeds-head h1,
html[lang="hy"] .topic-page h1,
html[lang="hy"] .breed-detail-copy h1 {
  line-height: 1.1;
}

@media (max-width: 1180px) and (min-width: 981px) {
  html[lang="hy"] .main-nav {
    gap: 11px;
  }

  html[lang="hy"] .main-nav > .main-nav__link,
  html[lang="hy"] .main-nav__item > .main-nav__link {
    font-size: 12.5px;
  }
}

@media (max-width: 720px) {
  html[lang="hy"] body {
    line-height: 1.55;
  }

  html[lang="hy"] .home-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.08;
  }

  html[lang="hy"] .hero-summary {
    font-size: 15px;
  }

  html[lang="hy"] .product-window h2 {
    font-size: 25px;
  }

  html[lang="hy"] .mobile-nav a {
    font-size: 13px;
  }
}

/* Language flags: keep the original rectangular flag shape. */
.header-language__toggle img,
.header-language__item img {
  border-radius: 0;
}

/* Compact desktop/tablet language switcher: keep flag + caret below 1250px. */
@media (max-width: 1250px) {
  .header-language__toggle > span {
    display: none;
  }

  .header-language__toggle {
    gap: 6px;
    padding-inline: 10px;
  }
}

/* Keep the desktop header compact below 1220px. */
@media (max-width: 1219.98px) {
  .header-add {
    display: none;
  }
}


/* Tablet/mobile header: compact icon-only controls without changing desktop. */
@media (max-width: 980px) {
  .header-language__toggle {
    gap: 5px;
    padding-inline: 4px;
  }

  html[lang="hy"] .header-inner {
    gap: 10px;
  }

  html[lang="hy"] .header-tools {
    gap: 3px;
  }
}

@media (max-width: 720px) {
  html[lang="hy"] .header-tools {
    gap: 1px;
  }
}

/* Home hero tablet/mobile: final cascade values.
   Kept here because typography.css is loaded after styles.css and light-refresh.css. */
@media (max-width: 980px) {
  html[lang] .home-hero {
    padding-top: 25px;
  }

  html[lang] .home-hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  html[lang] .home-hero .product-badge {
    margin-bottom: 20px;
    font-size: 10px;
  }
}

/* End */


/* Start:/local/templates/mtemplate/assets/css/messages.css?178749772933635*/
/* PetBook personal messages */
.header-messages {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 204, 224, .2);
  border-radius: 11px;
  color: #d9e6f1;
  background: rgba(255,255,255,.035);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.header-messages:hover,
.header-messages.is-active {
  color: #fff;
  border-color: rgba(44,198,243,.38);
  background: rgba(44,198,243,.1);
}
.header-messages svg { width: 21px; height: 21px; fill: currentColor; }
.header-messages__count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0c2135;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.mobile-account__messages { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-account__messages-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 800;
}

.pb-messages-page { padding: 24px 0 0; }
body.pb-messages-screen,
body:has(.pb-messages-page) { overflow: hidden; }
body.pb-messages-screen .site-main,
body:has(.pb-messages-page) .site-main { min-height: 0; }
body.pb-messages-screen .site-footer,
body:has(.pb-messages-page) .site-footer { display: none; }
.pb-messages-layout {
  --pb-sidebar-width: 350px;
  position: relative;
  height: var(--pb-messages-viewport-height, calc(100dvh - 98px));
  min-height: 0;
  display: grid;
  grid-template-columns: var(--pb-sidebar-width) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(22, 48, 74, .08);
}
.pb-messages-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}
.pb-messages-sidebar__head {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.pb-messages-sidebar__head h1 { min-width: 0; flex: 1; margin: 0; color: #14243a; font-size: 22px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.pb-messages-sidebar__toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #60778c;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.pb-messages-sidebar__toggle:hover { color: var(--primary-strong); background: #eef5f9; }
.pb-messages-sidebar__toggle svg { width: 19px; height: 19px; transition: transform .2s ease; }
.pb-messages-resizer {
  position: absolute;
  z-index: 25;
  top: 0;
  bottom: 0;
  left: calc(var(--pb-sidebar-width) - 4px);
  width: 8px;
  cursor: col-resize;
  touch-action: none;
}
.pb-messages-resizer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  width: 2px;
  height: 42px;
  border-radius: 99px;
  background: #c7d3dd;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .16s ease, background .16s ease;
}
.pb-messages-resizer:hover::after,
.pb-messages-resizer:focus-visible::after,
.pb-messages-layout.is-sidebar-resizing .pb-messages-resizer::after { opacity: 1; background: #8eb4cd; }
.pb-messages-layout.is-sidebar-resizing { user-select: none; cursor: col-resize; }
.pb-conversation-list { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pb-conversation-item {
  width: 100%;
  display: flex;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.pb-conversation-item:hover { background: #f8fafc; }
.pb-conversation-item.is-active { background: #eef6fb; }
.pb-conversation-item.has-unread .pb-conversation-head strong { color: #10243a; font-weight: 800; }
.pb-conversation-avatar,
.pb-chat-user__avatar,
.pb-chat-user__avatar-inner {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #91a9bf;
  font-size: 13px;
  font-weight: 800;
}
.pb-conversation-avatar img,
.pb-chat-user__avatar img,
.pb-chat-user__avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.pb-conversation-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.pb-conversation-head,
.pb-conversation-bottom { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pb-conversation-head strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.pb-conversation-head time { flex: 0 0 auto; color: #8c9aab; font-size: 11px; }
.pb-conversation-preview { min-width: 0; flex: 1; display: flex; align-items: center; overflow: hidden; color: #748396; font-size: 12px; }
.pb-conversation-preview__attachment { display: inline-flex; width: 12px; height: 12px; margin: 0 4px 0 1px; vertical-align: -2px; color: #70869a; }
.pb-conversation-preview__attachment svg { display: block; width: 100%; height: 100%; }
.pb-conversation-preview__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-conversation-preview__you { flex: 0 0 auto; }
.pb-conversation-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.pb-conversation-unread--compact { display: none; }

@media (min-width: 761px) {
  .pb-messages-layout.is-sidebar-collapsed { --pb-sidebar-width: 84px; }
  .pb-messages-layout.is-sidebar-collapsed .pb-messages-sidebar__head { justify-content: center; padding: 0; }
  .pb-messages-layout.is-sidebar-collapsed .pb-messages-sidebar__head h1 { display: none; }
  .pb-messages-layout.is-sidebar-collapsed .pb-messages-sidebar__toggle svg { transform: rotate(180deg); }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-item {
    position: relative;
    min-height: 68px;
    justify-content: center;
    gap: 0;
    padding: 10px 8px;
    border-bottom-color: transparent;
  }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-item:hover,
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-item.is-active { background: #eef6fb; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-body { display: none; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-avatar { width: 48px; height: 48px; flex-basis: 48px; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-unread--compact {
    position: absolute;
    top: 7px;
    right: 8px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    border: 2px solid #fff;
    font-size: 8px;
  }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-list { scrollbar-width: none; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-list::-webkit-scrollbar { width: 0; }
}
.pb-conversation-empty {
  min-height: 150px;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7d8b9b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.pb-conversation-empty__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #8fa4b6;
  background: #eef4f8;
}
.pb-conversation-empty__icon svg { width: 19px; height: 19px; fill: currentColor; }
.pb-conversation-empty__text { display: block; max-width: 180px; }
@media (min-width: 761px) {
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-empty { min-height: 90px; padding: 18px 8px; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-empty__icon { width: 38px; height: 38px; }
  .pb-messages-layout.is-sidebar-collapsed .pb-conversation-empty__text { display: none; }
}

.pb-chat-room { min-width: 0; min-height: 0; position: relative; display: flex; background: #f4f7fa; }
.pb-chat-empty { margin: auto; max-width: 470px; padding: 30px; color: #718196; text-align: center; }
.pb-chat-empty__icon { width: 62px; height: 62px; margin: 0 auto 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); background: #e6f2f9; }
.pb-chat-empty__icon svg { width: 30px; fill: currentColor; }
.pb-chat-empty h2 { margin: 0 0 8px; color: #17283d; font-size: 20px; }
.pb-chat-empty p { margin: 0; font-size: 13px; line-height: 1.6; }
.pb-chat-active { min-width: 0; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.pb-chat-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.pb-chat-back { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; color: #38536d; background: transparent; font-size: 22px; cursor: pointer; }
.pb-chat-back:hover { background: #edf3f7; }
.pb-chat-user { min-width: 0; display: inline-flex; align-items: center; gap: 11px; }
.pb-chat-user__avatar { width: 46px; height: 46px; flex-basis: 46px; }
.pb-chat-user__avatar-inner { width: 100%; height: 100%; flex-basis: 100%; }
.pb-chat-user__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-chat-user__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #15273c; font-size: 14px; font-weight: 800; }
.pb-chat-user__copy small { min-height: 16px; color: #8190a2; font-size: 11px; }
.pb-chat-user__copy small.is-online,
.pb-chat-user__copy small.is-typing { color: var(--primary); }
.pb-chat-user__copy small.is-blocked { color: var(--danger); }

.pb-chat-scroll {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 22px 24px 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(22,118,189,.035), transparent 34%),
    #f4f7fa;
}
.pb-chat-messages { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.pb-message-row { display: flex; }
.pb-message-row.is-own { justify-content: flex-end; }
.pb-message-row.is-other { justify-content: flex-start; }
.pb-message-bubble {
  position: relative;
  width: fit-content;
  max-width: min(72%, 680px);
  padding: 10px 12px 7px;
  border: 1px solid #dce4eb;
  border-radius: 15px 15px 15px 5px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 47, 73, .035);
}
.pb-message-row.is-own .pb-message-bubble {
  border-color: #cfe3f0;
  border-radius: 15px 15px 5px 15px;
  background: #e8f3fa;
}
.pb-message-text { margin: 0; color: #233247; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-message-internal-link {
  color: var(--primary-strong, #087cc1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.pb-message-internal-link:hover { color: var(--primary, #1687ca); }
.pb-message-footer { min-height: 18px; margin-top: 4px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #8694a5; font-size: 10px; }
.pb-message-read { color: #8ba0b3; letter-spacing: -3px; padding-right: 3px; }
.pb-message-read.is-read { color: var(--primary); }
.pb-message-edited { font-style: italic; }
.pb-message-actions__toggle { display: none; }
.pb-message-actions__more-icon { display: block; width: 17px; height: 17px; }
.pb-message-actions__more-icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.pb-message-actions {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: calc(100% + 7px);
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21,43,65,.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(4px);
  transition: .15s ease;
}
.pb-message-row.is-other .pb-message-actions { right: auto; left: calc(100% + 7px); }
.pb-message-bubble:hover .pb-message-actions,
.pb-message-actions:focus-within { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.pb-message-actions button { padding: 5px 7px; border: 0; border-radius: 7px; color: #53677d; background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pb-message-actions button:hover { color: var(--primary-strong); background: var(--primary-soft); }
.pb-message-actions button.is-danger:hover { color: #d84d65; background: rgba(255,102,127,.08); }
.pb-message-context,
.pb-message-reply {
  width: 100%;
  margin: 0 0 7px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  color: #36516d;
  background: rgba(22,118,189,.06);
  text-align: left;
}
button.pb-message-reply { cursor: pointer; }
.pb-message-context small { color: #67849e; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pb-message-context strong,
.pb-message-reply strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pb-message-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #708195; font-size: 10px; }
.pb-message-reply__line { display: flex !important; align-items: center; gap: 4px; min-width: 0; }
.pb-message-reply__line > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-message-reply__attachment { display: inline-flex !important; flex: 0 0 12px; width: 12px; height: 12px; margin: 0 !important; color: #60768b; }
.pb-message-reply__attachment svg { display: block; width: 100%; height: 100%; }
.pb-unread-divider { margin: 9px 0; display: flex; align-items: center; gap: 10px; color: #6d8297; font-size: 10px; font-weight: 750; text-align: center; }
.pb-unread-divider::before,
.pb-unread-divider::after { content: ""; height: 1px; flex: 1; background: #d7e1ea; }
.pb-message-row.is-highlighted .pb-message-bubble { animation: pb-message-highlight 1.5s ease; }
@keyframes pb-message-highlight { 0%,100% { box-shadow: 0 4px 12px rgba(20,47,73,.035); } 35% { box-shadow: 0 0 0 4px rgba(22,118,189,.16); } }

.pb-chat-down {
  position: sticky;
  left: calc(100% - 46px);
  bottom: 4px;
  width: 38px;
  height: 38px;
  margin-top: -38px;
  border: 1px solid #d7e1ea;
  border-radius: 50%;
  color: #46627c;
  background: rgba(255,255,255,.95);
  box-shadow: 0 7px 20px rgba(21,43,65,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .16s ease;
  cursor: pointer;
}
.pb-chat-down.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.pb-chat-compose-meta {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}
.pb-chat-compose-meta > div { min-width: 0; flex: 1; padding-left: 9px; border-left: 3px solid var(--primary); }
.pb-chat-compose-meta strong,
.pb-chat-compose-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chat-compose-meta strong { color: #385b78; font-size: 10px; }
.pb-chat-compose-meta span { color: #718195; font-size: 11px; }
.pb-chat-compose-meta button { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #7c8999; background: transparent; font-size: 20px; cursor: pointer; }
.pb-chat-compose-meta button:hover { background: #edf2f6; }
.pb-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 11px 13px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.pb-chat-composer textarea {
  min-height: 42px;
  max-height: 132px;
  flex: 1;
  resize: none;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid #d8e1e9;
  border-radius: 12px;
  color: #203247;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
}
.pb-chat-composer textarea::placeholder { color: #9aa7b5; }
.pb-chat-send {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.pb-chat-send:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.pb-chat-send:disabled { opacity: .55; cursor: default; }
.pb-chat-blocked { padding: 12px 16px; border-top: 1px solid #f1d2d8; color: #b94459; background: #fff5f7; font-size: 12px; text-align: center; }

.pb-messages-loader { display: none; align-items: center; justify-content: center; gap: 8px; padding: 22px; color: #7a899b; font-size: 11px; }
.pb-messages-loader.is-visible { display: flex; }
.pb-messages-loader span { width: 15px; height: 15px; border: 2px solid #d5e0e8; border-top-color: var(--primary); border-radius: 50%; animation: pb-message-spin .7s linear infinite; }
.pb-messages-loader--history { position: absolute; z-index: 4; top: 8px; left: 50%; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.9); transform: translateX(-50%); box-shadow: 0 4px 14px rgba(22,48,74,.08); }
@keyframes pb-message-spin { to { transform: rotate(360deg); } }
.pb-messages-storage-error { padding: 24px; }
.pb-messages-toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 26px;
  max-width: min(440px, calc(100% - 30px));
  padding: 11px 15px;
  border-radius: 11px;
  color: #fff;
  background: #1c3147;
  box-shadow: 0 12px 34px rgba(11,31,50,.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: .18s ease;
}
.pb-messages-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


.pb-chat-user { flex: 1; }
.pb-chat-menu { position: relative; margin-left: auto; }
.pb-chat-menu__toggle {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; color: #587087; background: transparent;
  font-size: 25px; line-height: 1; cursor: pointer;
}
.pb-chat-menu__toggle:hover { background: #edf3f7; color: #244761; }
.pb-chat-menu__panel {
  position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; min-width: 180px;
  padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  box-shadow: 0 12px 32px rgba(19,42,63,.14);
}
.pb-chat-menu__panel button {
  width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  color: #b54459; background: transparent; font-size: 12px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.pb-chat-menu__panel button:hover { background: #fff1f4; }
.pb-chat-menu__panel button:disabled { opacity: .5; cursor: default; }

.pb-message-attachments { margin: 0 0 7px; display: grid; gap: 6px; }
.pb-message-image {
  display: block; overflow: hidden; max-width: 340px; border-radius: 10px;
  background: #e7edf2;
}
.pb-message-image img { display: block; width: 100%; max-height: 300px; object-fit: cover; }

.pb-message-image-open { overflow: hidden; }
.pb-message-image-open.pb-message-image-open--locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.pb-message-image-modal[hidden] { display: none; }
.pb-message-image-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.pb-message-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 31, .82);
}
.pb-message-image-modal__dialog {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(94vw, 1400px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.pb-message-image-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .34);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.pb-message-image-modal__close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #17283d;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .24);
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pb-message-image-modal__close svg {
  display: block;
  width: 18px;
  height: 18px;
}
.pb-message-image-modal__close:hover { background: #fff; }

@media (max-width: 767px) {
  .pb-message-image-modal {
    padding: 12px;
  }
  .pb-message-image-modal__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .pb-message-image-modal__image {
    max-height: calc(100dvh - 24px);
  }
  .pb-message-image-modal__close {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}
.pb-message-file {
  min-width: 220px; max-width: 360px; display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border: 1px solid rgba(82,112,139,.15); border-radius: 10px;
  color: #28455e; background: rgba(255,255,255,.58); text-decoration: none;
}
.pb-message-file:hover { border-color: rgba(22,118,189,.35); background: rgba(255,255,255,.8); }
.pb-message-file__icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; color: var(--primary-strong); background: #e9f4fb; font-size: 8px; font-weight: 900;
}
.pb-message-file__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-message-file__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pb-message-file__copy small { color: #8090a1; font-size: 9px; }

.pb-chat-files {
  display: flex; gap: 7px; flex-wrap: wrap; padding: 8px 13px 0;
  border-top: 1px solid var(--line); background: #fff;
}
.pb-chat-file-chip {
  min-width: 0; max-width: 280px; display: flex; align-items: center; gap: 7px;
  padding: 6px 7px 6px 9px; border: 1px solid #d9e4ec; border-radius: 9px; background: #f7fafc;
}
.pb-chat-file-chip__copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pb-chat-file-chip__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #30485f; font-size: 10px; }
.pb-chat-file-chip__copy small { color: #8795a5; font-size: 8px; }
.pb-chat-file-chip button {
  width: 24px; height: 24px; flex: 0 0 24px; border: 0; border-radius: 7px;
  color: #7e8b99; background: transparent; font-size: 17px; cursor: pointer;
}
.pb-chat-file-chip button:hover { color: #bd4258; background: #fff0f3; }

.pb-chat-attach {
  width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 11px; color: #59758d; background: #f2f6f9; cursor: pointer;
}
.pb-chat-attach:hover { color: var(--primary-strong); background: #e8f3fa; }
.pb-chat-attach:disabled { opacity: .45; cursor: default; }
.pb-chat-attach svg { width: 21px; height: 21px; }

.pb-chat-upload-progress { padding: 6px 13px 0; border-top: 1px solid var(--line); background: #fff; }
.pb-chat-upload-progress > div { height: 4px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.pb-chat-upload-progress > div span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--primary); transition: width .1s linear; }
.pb-chat-upload-progress small { display: block; margin-top: 4px; color: #78899a; font-size: 9px; }

.pb-message-report-modal[hidden] { display: none; }
.pb-modal-open { overflow: hidden; }
.pb-message-report-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.pb-message-report-modal__backdrop { position: absolute; inset: 0; background: rgba(11,26,40,.44); backdrop-filter: blur(2px); }
.pb-message-report-modal__dialog {
  position: relative; z-index: 1; width: min(440px, 100%); padding: 20px;
  border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(10,27,43,.25);
}
.pb-message-report-modal__close {
  position: absolute; top: 8px; right: 9px; width: 34px; height: 34px; border: 0; border-radius: 9px;
  color: #718195; background: transparent; font-size: 23px; cursor: pointer;
}
.pb-message-report-modal__close:hover { background: #f0f4f7; }
.pb-message-report-modal h2 { margin: 0 36px 16px 0; color: #17283d; font-size: 19px; }
.pb-message-report-modal label { display: grid; gap: 5px; margin-top: 12px; color: #576b7f; font-size: 11px; font-weight: 700; }
.pb-message-report-modal select,
.pb-message-report-modal textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #d7e1e9; border-radius: 10px;
  color: #24384b; background: #f9fbfc; font: inherit; font-weight: 400;
}
.pb-message-report-modal textarea { resize: vertical; min-height: 92px; }
.pb-message-report-modal__actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }

.pb-message-confirm-modal[hidden] { display: none; }
.pb-message-confirm-modal { position: fixed; z-index: 1010; inset: 0; display: grid; place-items: center; padding: 20px; }
.pb-message-confirm-modal__backdrop { position: absolute; inset: 0; background: rgba(11,26,40,.44); backdrop-filter: blur(2px); }
.pb-message-confirm-modal__dialog {
  position: relative; z-index: 1; width: min(430px, 100%); padding: 22px;
  border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(10,27,43,.25);
}
.pb-message-confirm-modal__close {
  position: absolute; top: 8px; right: 9px; width: 34px; height: 34px; border: 0; border-radius: 9px;
  color: #718195; background: transparent; font-size: 23px; cursor: pointer;
}
.pb-message-confirm-modal__close:hover { background: #f0f4f7; }
.pb-message-confirm-modal__icon {
  width: 44px; height: 44px; margin-bottom: 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; color: #b84b5e; background: #fff0f2;
}
.pb-message-confirm-modal__icon svg { width: 24px; height: 24px; fill: currentColor; }
.pb-message-confirm-modal h2 { margin: 0 38px 7px 0; color: #17283d; font-size: 19px; }
.pb-message-confirm-modal p { margin: 0; color: #617589; font-size: 12px; line-height: 1.55; }
.pb-message-confirm-modal__actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.pb-message-confirm-modal__submit.is-danger { background: #c84f62; border-color: #c84f62; }
.pb-message-confirm-modal__submit.is-danger:hover { background: #b94457; border-color: #b94457; }

@media (max-width: 980px) and (min-width: 761px) {
  .pb-messages-layout { --pb-sidebar-width: 310px; }
  .pb-message-bubble { max-width: 80%; }
}

@media (max-width: 760px) {
  .pb-messages-page { padding: 0; }
  .pb-messages-page > .container { width: 100%; }
  .pb-messages-layout {
    --pb-sidebar-width: 100%;
    height: var(--pb-messages-viewport-height, calc(100dvh - 64px));
    min-height: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .pb-messages-sidebar { border-right: 0; }
  .pb-messages-sidebar__toggle, .pb-messages-resizer { display: none; }
  .pb-messages-layout.is-room-open .pb-messages-sidebar { display: none; }
  .pb-chat-room { display: none; }
  .pb-messages-layout.is-room-open .pb-chat-room { display: flex; }
  .pb-chat-back { display: inline-flex; align-items: center; justify-content: center; }
  .pb-chat-header { min-height: 62px; padding: 7px 10px; }
  .pb-chat-user__avatar { width: 42px; height: 42px; flex-basis: 42px; }
  .pb-chat-scroll { padding: 15px 10px 14px; }
  .pb-chat-messages { gap: 6px; }
  .pb-message-bubble { max-width: 86%; padding: 9px 10px 6px; }
  .pb-message-footer { width: 100%; }
  .pb-message-actions__toggle {
    display: inline-flex;
    width: 26px;
    height: 22px;
    margin: -1px auto -1px -4px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #728398;
    background: transparent;
    cursor: pointer;
  }
  .pb-message-actions__toggle:hover,
  .pb-message-actions__toggle:focus-visible,
  .pb-message-actions__toggle.is-open { color: var(--primary-strong); background: rgba(22,118,189,.08); }
  .pb-message-actions {
    position: absolute;
    z-index: 12;
    top: auto;
    right: auto;
    bottom: 28px;
    left: 0;
    display: none;
    min-width: 142px;
    width: max-content;
    max-width: min(220px, calc(100vw - 28px));
    margin: 0;
    padding: 5px;
    gap: 1px;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20,42,64,.16);
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .pb-message-row.is-own .pb-message-actions { right: 0; left: auto; }
  .pb-message-row.is-other .pb-message-actions { right: auto; left: 0; }
  .pb-message-actions.is-open { display: grid; }
  .pb-message-bubble:hover .pb-message-actions:not(.is-open) { display: none; }
  .pb-message-actions button.pb-message-actions__item {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 11px;
    line-height: 1.25;
  }
  .pb-chat-compose-meta { padding: 6px 10px; }
  .pb-chat-composer { gap: 7px; padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); }
  .pb-chat-composer textarea {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 11px;
    /* iOS Safari zooms/pans focused form controls when their text is too small. */
    font-size: 16px;
  }
  .pb-chat-send { min-height: 40px; padding: 0 12px; }
  .pb-conversation-item { padding: 12px 14px; }
  .pb-conversation-avatar { width: 46px; height: 46px; flex-basis: 46px; }
}

@media (max-width: 430px) {
  .pb-chat-send { padding: 0 10px; font-size: 11px; }
  .pb-message-bubble { max-width: 90%; }
}

/* Reused entry points from profiles, forum and reviews. */
.pb-message-icon-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong, #087cc1);
  text-decoration: none;
  vertical-align: middle;
}
.pb-message-icon-link:hover { color: var(--primary, #1687ca); }
.pb-message-icon-link svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.forum-author-name-row { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
.forum-author-name-row > strong { min-width: 0; }
.forum-author-message svg { width: 18px; height: 18px; }
.service-review-author-wrap { display: inline-flex; min-width: 0; align-items: center; gap: 11px; }
.service-review-author__avatar-link { text-decoration: none; }
.service-review-author__meta { display: grid; min-width: 0; gap: 2px; }
.service-review-author__meta > small { color: #7b8b99; font-size: 11px; }
.service-review-author__name-row { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
.service-review-author__name { min-width: 0; color: #17283a; text-decoration: none; }
.service-review-author__name:hover { color: var(--primary-strong, #087cc1); }
.service-review-author__name strong { font-size: 14px; }
.service-review-message { flex: 0 0 auto; transform: translateY(1px); }
.service-review-message svg { width: 17px; height: 17px; }
@media (max-width: 480px) {
  .service-review-author-wrap { align-items: flex-start; }
}

@media (max-width: 760px) {
  .pb-chat-menu__panel { right: -2px; }
  .pb-message-image { max-width: 260px; }
  .pb-message-image-modal { padding: 12px; }
  .pb-message-image-modal__dialog { max-width: 100%; max-height: calc(100dvh - 24px); }
  .pb-message-image-modal__image { max-height: calc(100dvh - 24px); border-radius: 6px; }
  .pb-message-image-modal__close { top: 8px; right: 8px; }
  .pb-message-file { min-width: 190px; max-width: 270px; }
  .pb-chat-files { padding: 7px 9px 0; }
  .pb-chat-attach { width: 40px; height: 40px; flex-basis: 40px; }
  .pb-message-report-modal { padding: 12px; }
  .pb-message-report-modal__dialog { padding: 17px; border-radius: 14px; }
  .pb-message-confirm-modal { padding: 12px; }
  .pb-message-confirm-modal__dialog { padding: 18px; border-radius: 15px; }
}


/* Tablet/mobile header: match the guest user control exactly in geometry and spacing. */
@media (max-width: 980px) {
  .header-messages {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-left: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(22,118,189,.16);
  }

  .header-messages:hover,
  .header-messages.is-active {
    border-color: transparent;
    background: rgba(22,118,189,.26);
  }
}

@media (max-width: 720px) {
  .header-messages {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
}

/* End */
/* /local/templates/mtemplate/assets/css/styles.css?178730336784504 */
/* /local/templates/mtemplate/assets/css/light-refresh.css?1788303530365907 */
/* /local/templates/mtemplate/assets/css/typography.css?17868972764429 */
/* /local/templates/mtemplate/assets/css/messages.css?178749772933635 */
