/* Karevu 17.6.44 — mobile-only final layout ownership (<=650px). */
@media (max-width:650px) {
  .container { width:min(626px,calc(100% - 24px)); }
  .section { padding-block:42px; }

  .siteHeader { padding-top:6px; }
  .siteHeader .headerInner {
    position:relative;
    min-height:62px;
    height:auto;
    grid-template-columns:minmax(0,1fr) max-content max-content;
    grid-template-areas:"brand menu actions";
    gap:7px;
    padding:7px 9px;
  }
  .siteHeader .brand { min-width:0; max-width:100%; justify-self:start; direction:ltr; }
  .siteHeader .brandText small { display:none; }
  .siteHeader .brandText b { white-space:nowrap; font-size:10px; }
  .siteHeader .pawBrandMark { width:34px; height:34px; flex-basis:34px; }
  .siteHeader .menuButton {
    display:grid;
    place-content:center;
    width:48px;
    height:48px;
    min-height:48px;
    border-radius:12px;
  }
  .siteHeader .mainNav { display:none; }
  .siteHeader .mainNav.open {
    direction:ltr;
    position:absolute;
    z-index:60;
    top:calc(100% + 7px);
    right:0;
    left:0;
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 42px rgba(11,75,71,.16);
  }
  .siteHeader .mainNav.open a { display:flex; align-items:center; min-height:48px; padding:10px 13px; }
  .siteHeader .headerActions a,
  .siteHeader .headerActions button { min-height:44px; }
  .siteHeader .headerAuthButton { min-height:44px; }
  .siteHeader .headerActions {
    width:auto;
    min-width:0;
    justify-self:end;
  }
  .siteHeader .accountMenuRoot { min-width:0; }
  .siteHeader .accountButton {
    width:44px;
    max-width:44px;
    min-width:44px;
    height:44px;
    padding:0;
    gap:0;
    justify-content:center;
  }
  .siteHeader .accountButtonIdentity { display:none; max-width:72px; }
  .siteHeader .accountButtonIdentity small { font-size:8px; }
  .siteHeader .accountButtonIdentity b { font-size:9px; }
  .siteHeader .accountMenuChevron { display:none; width:12px; }
  .siteHeader .accountDropdown {
    width:min(210px,calc(100vw - 24px));
    inset-inline-end:0;
  }

  /* Authentication */
  .canadaAuthSection.authSection {
    box-sizing:border-box;
    width:auto;
    inline-size:auto;
    max-width:none;
    max-inline-size:none;
    margin-inline:0;
    padding:clamp(14px,4vw,22px) 12px clamp(30px,8vw,46px);
    overflow:visible;
    background:linear-gradient(180deg,#edf8f5 0%,#f8fcfb 52%,#fff 100%);
  }
  .canadaAuthSection.authSection::before,
  .canadaAuthSection.authSection::after,
  .canadaAuthSection.authSection .authBackdrop {
    display:none;
  }
  .canadaAuthSection .authGrid {
    box-sizing:border-box;
    width:100%;
    inline-size:100%;
    max-width:520px;
    max-inline-size:520px;
    min-height:0;
    margin-inline:auto;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"story" "card";
    gap:14px;
  }
  .authStory,
  .authCard {
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .authStory {
    padding:clamp(20px,6vw,30px) clamp(18px,5vw,26px);
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(145deg,#08766d,#0a9186);
    color:#fff;
  }
  .authStory h2 {
    max-width:100%;
    margin:clamp(16px,4vw,24px) 0 8px;
    color:#fff;
    font-size:clamp(23px,6.6vw,30px);
    line-height:1.18;
    letter-spacing:-.55px;
    overflow-wrap:anywhere;
  }
  .authStory > p,
  .authStoryPane > p {
    max-width:100%;
    margin:0;
    color:#d5eeea;
    font-size:clamp(11px,3vw,13px);
    line-height:1.75;
    overflow-wrap:anywhere;
  }
  .authStory .authEyebrow {
    margin:0;
    color:#bff0e9;
    font-size:10px;
  }
  .authStory .authBenefits {
    display:none;
  }
  .authCard {
    justify-self:stretch;
    padding:clamp(18px,5vw,24px) clamp(14px,4.6vw,22px) clamp(18px,5vw,22px);
    border-radius:20px;
    overflow:hidden;
  }
  .authCardHead,
  .authCardHead > div,
  .authForm,
  .authForm > label,
  .authInputShell,
  .formHint,
  .authSubmitButton,
  .canadaRegisterForm,
  .authGoogleOnly,
  .googleRoleGrid,
  .googleSignIn,
  .googleSignInSkeleton,
  .googleButtonMount,
  .googleConfigNotice,
  .providerKindChoice,
  .authSwitch {
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .authCardHead { align-items:flex-start; }
  .authCardHead h1 {
    max-width:100%;
    font-size:clamp(21px,6vw,26px);
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .authCardHead p,
  .authGoogleLead,
  .googleConsent,
  .authLegalNote,
  .authSwitch,
  .googleConfigNotice,
  .googleConfigNotice strong,
  .googleConfigNotice p,
  .googleConfigNotice small {
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .googleRoleGrid,
  .providerKindChoice > div {
    display:grid;
    grid-template-columns:minmax(0,1fr);
  }
  .googleRoleGrid button,
  .providerKindChoice button {
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .googleRoleGrid button {
    min-height:0;
    padding:14px 15px;
  }
  .googleConfigNotice { padding:14px; }
  .authInputShell input:not([type=checkbox]) {
    min-width:0;
    font-size:16px;
  }
  .passwordInput input {
    padding-left:86px!important;
  }
  .passwordToggle {
    min-width:70px;
    padding-inline:6px;
  }

  /* Home */
  .homeHero { padding:22px 0 24px; }
  .homeHeroInner {
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:"copy" "media" "search";
    gap:16px;
    min-height:0;
  }
  .homeHeroCopy { grid-area:copy; padding:0; }
  .homeHeroCopy h1 { margin:10px 0; font-size:clamp(29px,8.7vw,38px); line-height:1.45; }
  .homeHeroCopy p { font-size:13px; line-height:2; }
  .homeHeroMedia {
    grid-area:media;
    order:initial;
    width:100%;
    height:240px;
    min-height:240px;
    border-radius:24px;
  }
  .heroSearchWrap {
    position:static;
    grid-area:search;
    inset:auto;
    width:100%;
    margin:0;
    padding:12px;
    border-radius:16px;
  }
  .heroSearchForm { grid-template-columns:1fr; gap:9px; }
  .heroSearchField { min-height:54px; padding:7px 10px; }
  .heroSearchField select,
  .heroSearchField input { font-size:16px; }
  .fieldMeta { font-size:10px!important; }
  .heroSearchButton { width:100%; min-height:48px; justify-self:stretch; font-size:13px; }
  .heroSearchHint { font-size:9px; line-height:1.8; }
  .homeTrust { padding:12px 0 4px; overflow:hidden; }
  .homeTrustInner {
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:10px;
    padding:4px 2px 12px;
    border:0;
    box-shadow:none;
  }
  .homeTrustInner article {
    flex:0 0 min(82vw,320px);
    min-height:78px;
    border:1px solid var(--line);
    border-radius:15px;
    scroll-snap-align:center;
  }
  .homeTrustInner article:last-child { border-left:1px solid var(--line); }
  .homeTrustInner strong { font-size:12px; }
  .homeTrustInner p { font-size:10px; }
  .homeServices.section { padding-top:30px; }
  .serviceShowcase { grid-template-columns:1fr; gap:14px; }
  .serviceTile { grid-template-rows:88px 170px auto; min-height:304px; padding:15px; }
  .serviceTile h3 { font-size:17px; }
  .serviceTile p { font-size:11px; }
  .serviceTileCopy { min-height:88px; }
  .serviceTileMedia,
  .serviceTileMedia img { height:170px; }
  .serviceTile > a, .serviceTileAction { width:148px; min-width:148px; height:42px; min-height:42px; display:inline-flex; align-items:center; justify-content:center; justify-self:center; box-sizing:border-box; white-space:nowrap; }
  .dashboardPreviewShell {
    direction:rtl;
    grid-template-columns:1fr;
    grid-template-areas:"intro" "dashboard";
    gap:12px;
    min-height:0;
    padding:13px;
  }
  .previewProfile { display:none; }
  .previewPanelIntro { padding:6px; }
  .previewPanelIntro h2 { font-size:19px; }
  .previewPanelIntro p { font-size:10px; }
  .previewStats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .previewStats article { min-height:66px; }
  .previewActivities article { grid-template-columns:78px minmax(0,1fr); min-height:54px; }
  .previewActivities article > a { display:none; }
  .previewActivities article:nth-of-type(n+3) { display:none; }
  .homeCtaInner {
    grid-template-columns:1fr;
    grid-template-areas:"pets" "copy" "actions";
    gap:12px;
    padding:15px;
    text-align:center;
  }
  .homeCtaPets { display:block; width:100%; height:180px; border-radius:16px; }
  .homeCtaPets img { transform:none; object-fit:cover; }
  .homeCtaActions { flex-direction:column; align-items:stretch; }
  .homeCtaActions a { min-height:48px; justify-content:center; }

  /* Blog index */
  .magazineHero { padding-top:4px; }
  .magazineHeroInner { grid-template-columns:1fr; grid-template-areas:"copy" "media"; gap:10px; }
  .magazineHeroCopy { text-align:right; padding:18px 0 4px; }
  .magazineHeroCopy h1 { font-size:30px; line-height:1.5; }
  .magazineHeroCopy p { font-size:11px; line-height:1.9; }
  .magazineSearch { height:48px; }
  .magazineSearch input { font-size:16px; }
  .magazineHeroMedia { height:180px; justify-content:center; }
  .magazineHeroMedia > picture { display:block; width:100%; height:180px; }
  .magazineHeroMedia img { width:100%; height:180px; object-fit:cover; border-radius:20px; }
  .magazineHeroBlob { display:none; }
  .magazineCategories { padding-top:14px; }
  .categoryRail {
    display:flex;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    gap:8px;
    padding:8px 0 13px;
  }
  .magazineCategory { flex:0 0 auto; min-width:158px; min-height:48px; scroll-snap-align:start; }
  .magazineContent { grid-template-columns:1fr; grid-template-areas:"main" "sidebar"; gap:18px; }
  .featuredArticleCard { grid-template-columns:1fr; grid-template-areas:"image" "copy"; }
  .featuredArticleImage { width:100%; height:240px; padding:0; }
  .featuredArticleCopy { padding:15px; }
  .featuredArticleCopy h2 { font-size:20px; line-height:1.65; }
  .featuredArticleCopy p { font-size:11px; line-height:2; }
  .recentArticleGrid { grid-template-columns:1fr; gap:12px; }
  .magazineArticleCard {
    display:grid;
    grid-template-columns:132px minmax(0,1fr);
    direction:ltr;
    min-height:118px;
    overflow:hidden;
  }
  .magazineArticleImage { width:132px; height:118px; min-height:118px; padding:0; }
  .magazineArticleBody { direction:rtl; padding:11px; }
  .magazineArticleBody h3 { font-size:13px; line-height:1.75; }
  .magazineArticleBody > p { display:none; }
  .magazineSidebar { display:grid; grid-template-columns:1fr; gap:12px; }
  .newsletterCard { display:none; }
  .magazineCta {
    grid-template-columns:1fr;
    grid-template-areas:"pets" "copy" "actions";
    gap:10px;
    padding:14px;
    text-align:center;
  }
  .magazineCtaPets { display:block; width:100%; height:180px; }
  .magazineCtaPets img { width:100%; height:180px; object-fit:contain; }
  .magazineCtaActions > a:first-child { min-height:48px; }

  /* Blog article */
  .articleTopBreadcrumb { font-size:9px; overflow-x:auto; white-space:nowrap; }
  .magazineArticleLayout { grid-template-columns:1fr; grid-template-areas:"article" "sidebar"; gap:14px; }
  .articleMainCard { border-radius:18px; }
  .articleLeadGrid {
    grid-template-columns:1fr;
    grid-template-areas:"copy" "image";
    gap:10px;
    padding:12px;
  }
  .articleLeadCopy { grid-area:copy; padding:4px; }
  .articleLeadImage { grid-area:image; width:100%; height:250px; margin:0; }
  .articleLeadCopy h1 { font-size:24px; line-height:1.65; }
  .articleLeadCopy > p { font-size:11px; line-height:2; }
  .articlePublicationMeta { gap:8px 12px; flex-wrap:wrap; font-size:9px; }
  .articleTools { flex-wrap:wrap; gap:8px; }
  .articleTools button,
  .articleTools a { min-height:44px; }
  .articleReadingBody { padding:8px 17px 20px; font-size:14px; line-height:2.05; }
  .articleReadingBody p,
  .articleReadingBody li { font-size:14px; line-height:2.05; }
  .articleReadingBody h2 { font-size:19px; line-height:1.75; }
  .articleBottomGrid { grid-template-columns:1fr; }
  .articleSidebar { position:static; display:grid; grid-template-columns:1fr; gap:12px; }
  .articleToc,
  .relatedSideCard { grid-row:auto; }
  .articleSideCard h2 { font-size:15px; }
  .articleToc a,
  .relatedSideCard article a,
  .authorCard p { font-size:11px; line-height:1.9; }
}

@media (max-width:360px) {
  .siteHeader .headerInner {
    grid-template-columns:max-content 42px minmax(0,1fr);
    gap:4px;
    padding-inline:6px;
  }
  .siteHeader .menuButton {
    width:42px;
    height:42px;
    min-height:42px;
    padding:8px;
  }
  .siteHeader .brandText { display:none; }
  .siteHeader .headerAuthButton {
    min-height:42px;
    padding-inline:7px;
    font-size:7px;
  }
  .canadaAuthSection .authGrid { width:100%; inline-size:100%; }
  .authCard { padding-inline:13px; }
}

/* 0.7.2 — mobile ownership for location-first search. */
@media (max-width:650px) {
  .locationFirstSearchPanel,
  .heroLocationPrimary {
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    padding:12px;
  }
  .locationFirstSearchCopy strong { font-size:12px; }
  .locationFirstSearchCopy small { font-size:10px; line-height:1.8; }
  .nearbySearchControl.isPrimary {
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  .nearbySearchControl.isPrimary>select,
  .nearbySearchControl.isPrimary .nearbySearchButton {
    width:100%;
    min-width:0;
    min-height:44px;
    height:44px;
  }
  .manualLocationFilters>summary {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:4px 10px;
  }
  .manualLocationFilters>summary span { width:calc(100% - 28px); }
  .manualLocationFilters>summary small { display:none; }
  .manualLocationFields { grid-template-columns:1fr; gap:7px; }
  .manualLocationActions { padding:8px; }
  .manualLocationActions .locationFirstToolbar { gap:8px; }
  .manualLocationFilters:not(.isCompact) .manualLocationField select {
    min-height:44px;
    font-size:16px;
    border-radius:12px;
    background-position:left 13px center;
  }
  .directoryNonLocationFilters { margin-top:12px; }
  .locationFirstToolbar { gap:10px; }
  .manualSearchHint { font-size:10px; line-height:1.8; }

  .locationFirstHeroSearch {
    position:static;
    grid-area:search;
    width:100%;
    margin:0;
    padding:9px;
  }
  .locationFirstHeroSearch .heroSearchForm { grid-template-columns:1fr; gap:8px; }
  .locationFirstHeroSearch .heroSearchOptions { grid-template-columns:1fr; }
  .locationFirstHeroSearch .manualLocationFields { grid-template-columns:1fr; }
  .locationFirstHeroSearch .heroManualSearchButton {
    width:100%;
    min-height:44px;
    justify-self:stretch;
  }
  .locationFirstHeroSearch .heroSearchHint { font-size:8px; line-height:1.8; text-align:right; }
  .locationFirstHomeHero { padding-bottom:18px; }
  .locationFirstHomeHero + .homeTrust { padding-top:8px; }
}

/* 0.9.2 — screenshot-driven mobile CSS repair. */
@media (max-width:650px) {
  html, body { max-width:100%; overflow-x:clip; }

  /* KAREVU select stays physically attached to its own trigger on touch layouts. */
  .karevuSelectTrigger,
  .directoryFilterGrid .directoryFilterField .karevuSelectTrigger,
  .manualLocationFilters:not(.isCompact) .manualLocationField .karevuSelectTrigger {
    min-height:44px;
    height:44px;
    border-radius:12px;
    font-size:16px;
    padding-inline:12px;
  }
  .heroSearchField .karevuSelectTrigger {
    min-height:38px;
    height:38px;
    padding-inline:1px;
    font-size:16px;
  }
  .nearbyRadiusSelect {
    width:100%;
    min-width:0;
    flex:1 1 auto;
  }
  .nearbyRadiusSelect .karevuSelectTrigger {
    width:100%;
    height:44px;
    min-height:44px;
    font-size:16px;
  }
  .karevuSelectRoot.isOpen { z-index:1450; }
  .karevuSelectMenu {
    position:absolute;
    z-index:1451;
    top:calc(100% + 4px);
    right:0;
    left:0;
    bottom:auto;
    width:100%;
    max-width:none;
    max-height:min(320px,45dvh);
    margin:0;
    gap:3px;
    padding:7px;
    border-radius:12px;
    box-shadow:0 16px 36px rgba(8,50,46,.20);
  }
  .karevuSelectMenu button {
    min-height:44px;
    padding:9px 11px;
    border-radius:10px;
    font-size:14px;
    line-height:1.7;
  }
  .manualLocationFilters:has(.karevuSelectRoot.isOpen),
  .directoryFilterPanel:has(.karevuSelectRoot.isOpen),
  .locationFirstHeroSearch:has(.karevuSelectRoot.isOpen),
  .heroSearchWrap:has(.karevuSelectRoot.isOpen) { overflow:visible; }

  /* Directory filters: readable labels and full-width touch targets. */
  .directoryFilterPanel { padding:12px; }
  .directoryFilterGrid .directoryFilterField { gap:6px; font-size:12px; }
  .directoryFilterGrid .directoryFilterField>span,
  .veterinaryQuickFilters>span { min-height:18px; font-size:11.5px; }
  .veterinaryQuickFilters>div {
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    padding:0;
  }
  .veterinaryQuickFilters .providerSearchCheck {
    width:100%;
    min-height:44px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:9px 11px;
    border:1px solid #d7e5e2;
    border-radius:11px;
    background:#fff;
    font-size:12px;
  }
  .veterinaryQuickFilters .providerSearchCheck:hover { border-color:#b9d8d2; background:#f7fcfa; }
  .veterinaryQuickFilters .providerSearchCheck input { width:18px; height:18px; }
/* Blog rail deliberately scrolls instead of looking accidentally cut off. */
  .categoryRail {
    scrollbar-width:none;
    scroll-padding-inline:2px;
    padding-inline:2px;
  }
  .categoryRail::-webkit-scrollbar { display:none; }
  /* Veterinary/account workspace was technically responsive but too tiny to read. */
  .vetWorkspaceHeading p { font-size:11.5px; line-height:1.9; }
  .vetWorkspaceNavLabel { font-size:10.5px; }
  .vetWorkspaceNavLinks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .vetWorkspaceNavLinks a {
    width:100%;
    min-height:44px;
    padding:8px;
    font-size:10.5px;
  }
  .vetWorkspaceNavLinks a span { font-size:10.5px; }
  .vetWorkspacePage .dashboardHead p,
  .vetWorkspacePage .vetHubCardHead p { font-size:11.5px; }
  .vetWorkspacePage label>span { font-size:11.5px; }
  .vetWorkspacePage .primaryButton,
  .vetWorkspacePage .secondaryButton,
  .vetWorkspacePage .ghostButton,
  .vetWorkspacePage button[type="submit"] { min-height:44px; font-size:11.5px; }
}

/* 0.9.5 — phone final ownership for the complete frontend, not only Home/Blog.
   Every dense layout collapses inside its own page and long controls scroll locally. */
@media (max-width:650px) {
  html, body { width:100%; }
  main { min-width:0; overflow-x:clip; }

  .siteHeader .headerInner { width:calc(100% - 12px); max-width:none; }
  .siteHeader .headerActions { gap:4px; }
  .siteHeader .headerCartLink,
  .siteHeader .headerNotificationLink,
  .siteHeader .accountButton {
    width:42px; min-width:42px; max-width:42px; height:42px; min-height:42px; flex:0 0 42px;
    border-radius:12px;
  }
  .siteHeader .headerCartIcon .uiIcon,
  .siteHeader .headerNotificationIcon .uiIcon { width:19px; height:19px; }
  .siteHeader .mainNav.open {
    max-height:calc(100dvh - 86px); overflow-y:auto; overscroll-behavior:contain;
    scrollbar-width:thin;
  }

  .pageIntro { margin-bottom:20px; }
  .pageIntro h1 { font-size:clamp(26px,8vw,32px); line-height:1.5; letter-spacing:-.7px; }
  .pageIntro p { max-width:100%; font-size:12px; line-height:1.95; }
  .breadcrumbs, .locationLinks { max-width:100%; }
  .locationLinks { gap:6px; }
  .locationLinks a { min-height:40px; display:inline-flex; align-items:center; }

  .filterPanel, .directoryFilterPanel { width:100%; max-width:100%; padding:10px; overflow:visible; }
  .filterGrid, .directoryFilterGrid { grid-template-columns:minmax(0,1fr); gap:9px; }
  .filterGrid .wideField { grid-column:auto; }
  .directoryFilterField, .manualLocationField, .veterinaryQuickFilters { min-width:0; }
  .filterActions, .directoryFilterToolbar, .locationFirstToolbar,
  .manualLocationActions .locationFirstToolbar {
    width:100%; display:grid; grid-template-columns:minmax(0,1fr); gap:8px;
  }
  .filterActions > *, .directoryFilterToolbar > *, .locationFirstToolbar > * { width:100%; min-width:0; }
  .resultsSummary { align-items:flex-start; }
  .cardsGrid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .caregiverCard, .card { min-width:0; max-width:100%; }
  .cardTop, .cardBottom { min-width:0; flex-wrap:wrap; }
  .stats { min-width:0; }
  .stats>span { flex:1 1 82px; min-width:0; }

  .profileGrid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .profileMain, .bookingBox { min-width:0; width:100%; max-width:100%; }
  .bookingBox { position:static; top:auto; padding:16px; border-radius:18px; }
  .profileCover { height:112px; padding:14px 16px; }
  .profileHeader { margin-top:-30px; padding:0 16px 18px; gap:12px; }
  .profileIdentity { width:100%; min-width:0; padding-top:0; }
  .profileHeader h1 { font-size:23px; overflow-wrap:anywhere; }
  .profileQuickStats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:6px; }
  .profileQuickStats>span { min-width:0; padding:7px; border:1px solid var(--line); border-radius:10px; }
  .profileQuickStats>span:last-child { border-left:1px solid var(--line); }
  .profileSection { padding:18px 16px; }
  .featureList { grid-template-columns:minmax(0,1fr); }
  .bookingPrice { gap:12px; flex-wrap:wrap; }
  .bookingBox .dateTrigger, .bookingBox .primaryButton { min-height:46px; }

  .pricingGrid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .priceCard { min-width:0; padding:20px 17px; }
  .priceCard.featured { transform:none; }
  .billingToggle { width:100%; max-width:100%; justify-content:center; overflow-x:auto; }
  .billingToggle span { flex:0 0 auto; }
  .billingNote { padding:16px; gap:12px; }

  .accountSection { padding:14px 0 34px; }
  .accountLayout { grid-template-columns:minmax(0,1fr); grid-template-areas:"sidebar" "main"; gap:10px; padding:8px; }
  .accountSidebar { position:static; grid-area:sidebar; min-width:0; padding:10px; }
  .accountMain { grid-area:main; min-width:0; max-width:100%; overflow:visible; }
  .accountIdentity { padding-bottom:10px; }
  .accountNav {
    display:grid; grid-auto-flow:column; grid-auto-columns:minmax(142px,58vw);
    grid-template-columns:none; gap:6px; padding:9px 0 10px; overflow-x:auto;
    overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:none;
  }
  .accountNav::-webkit-scrollbar { display:none; }
  .accountNav a { min-height:44px; justify-content:flex-start; scroll-snap-align:start; white-space:normal; }
  .logoutButton { min-height:42px; padding:8px; border:1px solid #f0d7da; border-radius:10px; }
  .accountWelcome { align-items:flex-start; flex-direction:column; gap:10px; padding:13px; }
  .accountWelcome p { font-size:10.5px; }
  .verificationBadge { align-self:flex-start; }
  .actionNotice { display:grid; grid-template-columns:38px minmax(0,1fr); gap:9px; }
  .actionNotice > a, .actionNotice > button { grid-column:1/-1; width:100%; min-height:44px; }
  .accountStats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .accountStats article { min-width:0; gap:8px; padding:10px; }
  .accountStats small { white-space:normal; }
  .dashboardCard { min-width:0; max-width:100%; padding:12px; overflow:hidden; }
  .dashboardHead { align-items:flex-start; flex-direction:column; gap:6px; }
  .dashboardHead>a { min-height:38px; display:inline-flex; align-items:center; }
  .latestBookingSummary { grid-template-columns:minmax(0,1fr); gap:9px; }
  .latestBookingSummary>a { width:100%; min-height:44px; justify-content:center; }
  .onboardingSteps article { grid-template-columns:32px minmax(0,1fr); overflow:visible; }
  .onboardingSteps article>a, .onboardingSteps .stepStatus { grid-column:2; justify-self:start; white-space:normal; }

  .petFormGrid, .petTextGrid, .bookingDraftGrid, .bookingDatePair,
  .caregiverFormGrid, .caregiverTextGrid, .caregiverUploadGrid,
  .caregiverManagementGrid, .availabilityForm, .coverageForm,
  .providerKindChoiceGrid, .shopProfileGrid, .shopProductEditorGrid,
  .shopCheckoutGrid, .shopPaymentChoices, .shopDialogGrid,
  .shopAdvancedGrid, .shopProfitBreakdown { grid-template-columns:minmax(0,1fr); }
  :where(.petFormGrid,.petTextGrid,.caregiverFormGrid,.caregiverTextGrid,.caregiverUploadGrid,
    .availabilityForm,.coverageForm,.shopProfileGrid,.shopProductEditorGrid,.shopCheckoutGrid,.shopDialogGrid) > .wide {
    grid-column:auto;
  }
  .caregiverCheckRow { grid-template-columns:minmax(0,1fr); }
  .caregiverSubmitBar, .workspaceHeaderActionFeedback, .shopDashboardSectionHead,
  .shopProductsToolbar, .shopCatalogToolbar, .shopFlowHead { align-items:stretch; flex-direction:column; gap:9px; }
  .caregiverSubmitBar button, .workspaceHeaderActionFeedback>button,
  .shopProductsToolbar button, .shopCatalogToolbar button { width:100%; min-height:44px; }
  .shopFlowPage, .shopOrdersPage { padding:30px 0 50px; }
  .shopFlowHead { margin-bottom:18px; }
  .shopFlowHead h1 { font-size:26px; }
  .shopCartLayout, .shopCheckoutLayout, .shopSellerLayout,
  .shopProductDetailGrid, .shopConfirmationGrid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .shopOrderSummary, .shopSellerSidebar { position:static; top:auto; min-width:0; }
  .shopCheckoutSummary { width:100%; padding:17px 14px; overflow:hidden; }
  .shopCheckoutSummaryHead { margin-bottom:10px; }
  .checkoutMiniItem { padding:10px 0; }
  .checkoutMiniCopy b { font-size:10px; word-break:normal; overflow-wrap:break-word; }
  .checkoutMiniMeta { gap:8px; }
  .shopCartItems article { grid-template-columns:72px minmax(0,1fr); gap:10px; padding:11px; }
  .shopCartThumb { height:72px; }
  .shopCartItemActions { grid-column:1/-1; width:100%; flex-direction:row; align-items:center; gap:10px; }
  .shopCheckoutCard { padding:16px 13px; }
  .shopProductGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .shopProductBody { min-width:0; }
  .shopProductBody h3 { overflow-wrap:anywhere; }
  .shopSellerStats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shopManagedProducts>article { min-width:0; }
  .shopWorkspaceDialogBackdrop { padding:8px; align-items:flex-end; }
  .shopWorkspaceDialog { width:100%; max-width:100%; max-height:calc(100dvh - 16px); overflow:auto; }
  .shopEmptyCart { padding:42px 15px; }
  .shopEmptyCartIcon {
    width:58px; height:58px; margin-inline:auto; border-radius:18px;
    display:grid; place-items:center; background:var(--primary-soft); color:var(--primary);
  }
  .shopEmptyCartIcon .uiIcon { width:27px; height:27px; }

  .legalPage { padding:24px 0; }
  .legalCard { min-width:0; padding:20px 16px; border-radius:18px; }
  .legalCard h1 { font-size:25px; }
  .securityCallout, .notFoundCard { max-width:100%; padding:20px 16px; }

  .footer { padding:44px 0 18px; overflow:hidden; }
  .footerGrid { grid-template-columns:minmax(0,1fr); gap:22px; }
  .footerAbout p { max-width:100%; }
  .footerBadges { flex-wrap:wrap; }
  .copyright { align-items:flex-start; flex-direction:column; gap:7px; }

  .accountMain table, .vetWorkspacePage table, .shopSellerWorkspace table,
  .shopInvoiceSheet table { min-width:620px; }
  .accountMain, .vetWorkspacePage, .shopSellerWorkspace, .shopInvoiceSheet { max-width:100%; min-width:0; }
}


/* 0.9.8 — mobile glass menu + commerce-first storefront ownership. */
@media (max-width:650px) {
  .siteHeader .headerInner { background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(246,252,250,.66)); border-color:rgba(255,255,255,.72); -webkit-backdrop-filter:blur(22px) saturate(175%); backdrop-filter:blur(22px) saturate(175%); box-shadow:0 10px 34px rgba(19,73,67,.10),inset 0 1px 0 rgba(255,255,255,.86); }
  .siteHeader .mainNav.open { background:transparent; border:0; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .shopCommerceHero { padding:16px 0 18px; }
  .shopCommerceHeroGrid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .shopCommerceHeroCopy { padding:22px 16px; border-radius:20px; }
  .shopCommerceHeroCopy h1 { margin-top:5px; font-size:29px; line-height:1.55; letter-spacing:-.8px; }
  .shopCommerceHeroCopy>p { font-size:10px; line-height:1.9; }
  .shopCommerceSearch { min-height:56px; margin-top:17px; grid-template-columns:28px minmax(0,1fr) auto; border-radius:15px; }
  .shopCommerceSearch input { height:40px; font-size:11px; }
  .shopCommerceSearch button { min-width:76px; height:42px; padding-inline:12px; font-size:9px; }
  .shopHeroQuickLinks { gap:6px; }.shopHeroQuickLinks button,.shopHeroQuickLinks a{font-size:8px;min-height:32px;padding-inline:10px}
  .shopCommercePromo { padding:20px 16px; border-radius:20px; }.shopCommercePromo>strong{font-size:18px}.shopCommercePromo>p{font-size:9px}
  .shopPromoFacts { gap:6px; }.shopPromoFacts>div{padding:9px 7px}.shopPromoFacts b{font-size:8px}.shopPromoFacts small{font-size:6.5px}
  .shopTrustStrip>.container { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); padding:7px 12px; }
  .shopTrustStrip article { padding:10px 7px; border-inline-end:0; }.shopTrustStrip article>span{width:34px;height:34px;flex-basis:34px}.shopTrustStrip b{font-size:9px}.shopTrustStrip small{font-size:7px}
  .shopSection { padding:34px 0; }.shopSectionHead{align-items:flex-start;margin-bottom:15px}.shopSectionHead h2{font-size:21px}.shopSectionHead p{font-size:8px}
  .shopCategoryRail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(132px,40vw); grid-template-columns:none; gap:9px; overflow-x:auto; padding-bottom:7px; scroll-snap-type:x proximity; }
  .shopCategoryRail button { min-height:105px; padding:13px; scroll-snap-align:start; }.shopCategoryRail button>span{width:36px;height:36px;font-size:18px}.shopCategoryRail b{font-size:10px}.shopCategoryRail small{font-size:7px}
  .shopFeaturedGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .shopFeaturedGrid .shopProductVisual { height:auto; min-height:0; aspect-ratio:1/.88; }.shopFeaturedGrid .shopProductBody{padding:11px}.shopFeaturedGrid .shopProductBody h3{font-size:11px;min-height:40px}.shopFeaturedGrid .shopProductBody>p:not(.shopInlineFeedback){display:none}
  .shopBrandSection { padding-block:30px; }
  .shopCatalogSection { padding:36px 0 48px; }
  .shopCatalogToolbar { position:sticky; top:74px; z-index:25; padding:9px; gap:8px; align-items:stretch; flex-direction:column; }
  .shopAnimalFilter { width:100%; display:flex; gap:5px; overflow-x:auto; }.shopAnimalFilter button{flex:0 0 auto;width:auto;min-width:58px;height:36px;padding-inline:10px}
  .shopCatalogActions { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px; }.shopFilterToggle{display:inline-flex;align-items:center;justify-content:center;min-width:84px}.shopCatalogActions>label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px}.shopCatalogActions select{width:100%;min-width:0}
  .shopCatalogLayout { grid-template-columns:minmax(0,1fr); }.shopFilterSidebar{display:none}
  .shopCatalogLayout .shopProductGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.shopCatalogLayout .shopProductVisual{height:auto;min-height:0;aspect-ratio:1/.88}.shopCatalogLayout .shopProductBody{padding:11px}.shopCatalogLayout .shopProductBody h3{font-size:11px;min-height:40px}.shopCatalogLayout .shopProductBody>p:not(.shopInlineFeedback){display:none}.shopCatalogLayout .shopProductMeta{font-size:7px}.shopCatalogLayout .shopProductSeller{font-size:8px}.shopCatalogLayout .shopProductPurchase strong{font-size:9px}.shopCatalogLayout .shopProductPurchase button{width:34px;height:34px;border-radius:11px}
  .shopFilterDrawer { position:fixed; z-index:1700; inset:0; display:grid; grid-template-rows:minmax(0,1fr); pointer-events:none; opacity:0; transition:opacity .18s ease; }
  .shopFilterDrawer.open { pointer-events:auto; opacity:1; }
  .shopFilterBackdrop { grid-area:1/1; border:0; background:rgba(12,39,35,.40); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
  .shopFilterDrawer>aside { grid-area:1/1; z-index:1; align-self:end; width:100%; max-height:min(82dvh,720px); padding:16px; overflow:auto; border-radius:22px 22px 0 0; background:#fff; transform:translateY(28px); transition:transform .18s ease; box-shadow:0 -20px 50px rgba(10,50,45,.20); }
  .shopFilterDrawer.open>aside { transform:none; }
  .shopFilterDrawer header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid #e7efed; }.shopFilterDrawer header b,.shopFilterDrawer header small{display:block}.shopFilterDrawer header b{font-size:13px}.shopFilterDrawer header small{color:#839590;font-size:8px}.shopFilterDrawer header>button{width:40px;height:40px;border:1px solid #dce7e4;border-radius:11px;background:#f7faf9;font-size:22px}
  .shopFilterDrawer footer { position:sticky; bottom:-16px; margin:16px -16px -16px; padding:11px 16px; border-top:1px solid #e7efed; background:rgba(255,255,255,.95); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }.shopFilterDrawer footer button{width:100%;min-height:46px;border:0;border-radius:12px;background:#0b8b82;color:#fff;font-weight:800}
  .shopPriceFilter>div { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .shopCommerceHeroCopy h1 { font-size:26px; }
  .shopPromoFacts { grid-template-columns:minmax(0,1fr); }
  .shopFeaturedGrid,.shopCatalogLayout .shopProductGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shopCatalogLayout .shopProductVisual,.shopFeaturedGrid .shopProductVisual { height:auto; min-height:0; aspect-ratio:1/.88; }
}

/* 0.9.9 — mobile retail composition. */
@media (max-width:650px) {
  .shopStorefrontV099 .shopV099UtilityShell { position:relative; }
  .shopStorefrontV099 .shopV099UtilityBar { min-height:auto; padding-block:10px; grid-template-columns:44px minmax(0,1fr) 44px; gap:7px; }
  .shopStorefrontV099 .shopV099StoreBrand { width:44px; height:44px; justify-content:center; }
  .shopStorefrontV099 .shopV099StoreBrand .pawBrandMark { transform:scale(.72); }
  .shopStorefrontV099 .shopV099StoreBrand strong { display:none; }
  .shopStorefrontV099 .shopV099TopSearch { height:44px; min-width:0; padding-inline:8px; grid-template-columns:18px minmax(0,1fr); border-radius:13px; }
  .shopStorefrontV099 .shopV099TopSearch input { height:36px; font-size:9px; }
  .shopStorefrontV099 .shopV099TopSearch button { display:none; }
  .shopStorefrontV099 .shopV099UtilityActions>a:first-child { display:none; }
  .shopStorefrontV099 .shopV099UtilityActions>a { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; justify-content:center; }
  .shopStorefrontV099 .shopV099UtilityActions>a>span { display:none; }
  .shopStorefrontV099 .shopV099Subnav { min-height:39px; padding-bottom:3px; justify-content:flex-start; gap:2px; }
  .shopStorefrontV099 .shopV099Subnav a { min-height:30px; padding-inline:10px; font-size:8px; }
  .shopStorefrontV099 .shopV099Hero { padding-bottom:22px; }
  .shopStorefrontV099 .shopV099Hero>.container { width:100%; padding-top:8px; }
  .shopStorefrontV099 .shopV099HeroStage { height:auto; min-height:0; aspect-ratio:1/1; border-radius:0; box-shadow:none; }
  .shopStorefrontV099 .shopV099HeroImage { object-position:center; transform:none; }
  .shopStorefrontV099 .shopV099HeroShade { background:linear-gradient(180deg,rgba(7,27,24,.15) 10%,rgba(8,28,25,.30) 42%,rgba(8,25,23,.84) 100%); }
  .shopStorefrontV099 .shopV099HeroCopy { top:auto; right:20px; left:20px; bottom:92px; width:auto; transform:none; }
  .shopStorefrontV099 .shopV099HeroCopy .shopEyebrow { font-size:10px; }
  .shopStorefrontV099 .shopV099HeroCopy h1 { margin:5px 0 7px; font-size:32px; letter-spacing:-1px; }
  .shopStorefrontV099 .shopV099HeroCopy p { max-width:320px; font-size:9px; line-height:1.85; }
  .shopStorefrontV099 .shopV099HeroActions { margin-top:13px; gap:6px; }
  .shopStorefrontV099 .shopV099HeroActions>a,.shopStorefrontV099 .shopV099HeroActions button { height:44px; min-height:44px; padding-inline:12px; font-size:9px; }
  .shopStorefrontV099 .shopV099HeroBadge { top:16px; left:14px; right:auto; padding:8px 9px; }
  .shopStorefrontV099 .shopV099CategoryDock { width:calc(100% - 20px); min-height:98px; margin:-52px auto 0; padding:10px; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:82px; gap:4px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; border-radius:20px; }
  .shopStorefrontV099 .shopV099CategoryDock button,.shopStorefrontV099 .shopV099CategoryDock>a { scroll-snap-align:start; }
  .shopStorefrontV099 .shopV099CategoryIcon { width:43px; height:43px; font-size:20px; }
  .shopStorefrontV099 .shopV099CategoryDock b { font-size:7.5px; }
  .shopStorefrontV099 .shopV099Trust { padding:10px 0 18px; }
  .shopStorefrontV099 .shopV099Trust>.container { width:calc(100% - 20px); padding:7px; grid-template-columns:repeat(2,minmax(0,1fr)); border-radius:18px; }
  .shopStorefrontV099 .shopV099Trust article { padding:8px 6px; gap:7px; border-inline-end:0; }
  .shopStorefrontV099 .shopV099Trust article>span { width:34px; height:34px; flex-basis:34px; border-radius:11px; }
  .shopStorefrontV099 .shopV099Trust b { font-size:8px; }
  .shopStorefrontV099 .shopV099Trust small { font-size:6px; }
  .shopStorefrontV099 .shopV099FeatureSection { padding:28px 0; }
  .shopStorefrontV099 .shopV099FeatureLayout { grid-template-columns:minmax(0,1fr); gap:14px; }
  .shopStorefrontV099 .shopV099DealStack { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .shopStorefrontV099 .shopV099DealCard { min-height:160px; padding:15px 12px; border-radius:17px; }
  .shopStorefrontV099 .shopV099DealCard>div { width:62%; }
  .shopStorefrontV099 .shopV099DealCard span { font-size:10px; }
  .shopStorefrontV099 .shopV099DealCard b { font-size:8px; }
  .shopStorefrontV099 .shopV099DealCard em { margin-top:8px; padding:5px 8px; font-size:6.5px; }
  .shopStorefrontV099 .shopV099DealCard img,.shopStorefrontV099 .shopV099DealCard>strong { left:-12px; width:56%; font-size:48px; }
  .shopStorefrontV099 .shopV099SectionHead { align-items:flex-start; margin-bottom:12px; }
  .shopStorefrontV099 .shopV099SectionHead h2 { font-size:19px; }
  .shopStorefrontV099 .shopV099SectionHead p { display:none; }
  .shopStorefrontV099 .shopV099ProductShelf { display:grid; grid-auto-flow:row; grid-auto-columns:auto; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; overflow:visible; padding:2px 0; scroll-snap-type:none; }
  .shopStorefrontV099 .shopV099ProductShelf .shopStoreProductCard { width:100%; min-width:0; overflow:hidden; scroll-snap-align:none; }
  .shopStorefrontV099 .shopStoreProductVisual { height:auto; min-height:0; aspect-ratio:1/.88; }
  .shopStorefrontV099 .shopStoreProductVisual img { padding:54px 12px 12px; }
  .shopStorefrontV099 .shopStoreProductVisual > span { transform:translateY(14px); }
  .shopStorefrontV099 .shopStoreProductCard { display:grid; grid-template-rows:auto minmax(0,1fr); }
  .shopStorefrontV099 .shopStoreProductBody { padding:9px; }
  .shopStorefrontV099 .shopStoreProductBody { display:flex; min-width:0; flex-direction:column; }
  .shopStorefrontV099 .shopStoreProductBody h3 { min-height:42px; font-size:11px; }
  .shopStorefrontV099 .shopStoreProductBody>p:not(.shopInlineFeedback) { display:none; }
  .shopStorefrontV099 .shopStoreProductDetails { font-size:8px; line-height:1.8; }
  .shopStorefrontV099 .shopStoreProductPurchase { margin-top:auto; }
  .shopStorefrontV099 .shopStoreProductPurchase strong { font-size:11px; }
  .shopStorefrontV099 .shopV099BrandSection { padding:28px 0; }
  .shopStorefrontV099 .shopV099BrandRail { display:grid; grid-auto-flow:column; grid-auto-columns:88px; grid-template-columns:none; gap:7px; overflow-x:auto; padding-bottom:6px; }
  .shopStorefrontV099 .shopV099BrandRail button { min-height:76px; }
  .shopStorefrontV099 .shopV099CatalogSection { padding:30px 0 46px; }
  .shopStorefrontV099 .shopV099CatalogIntro { align-items:flex-start; flex-direction:column; gap:8px; margin-bottom:12px; }
  .shopStorefrontV099 .shopV099CatalogIntro h2 { font-size:22px; }
  .shopStorefrontV099 .shopV099CatalogMeta { width:100%; overflow-x:auto; flex-wrap:nowrap; }
  .shopStorefrontV099 .shopV099CatalogMeta span { flex:0 0 auto; }
  .shopStorefrontV099 .shopV099MiniCategoryRail { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:74px; gap:4px; overflow-x:auto; padding:9px; border-radius:16px; }
  .shopStorefrontV099 .shopV099MiniCategoryRail span { width:38px; height:38px; font-size:17px; }
  .shopStorefrontV099 .shopV099CatalogToolbar { top:73px; min-height:auto; padding:8px; align-items:stretch; flex-direction:row; }
  .shopStorefrontV099 .shopV099ResultSummary { min-width:72px; }
  .shopStorefrontV099 .shopCatalogActions { flex:1; min-width:0; grid-template-columns:auto minmax(0,1fr); }
  .shopStorefrontV099 .shopCatalogActions>label { min-width:0; }
  .shopStorefrontV099 .shopCatalogActions select { min-width:0; width:100%; }
  .shopStorefrontV099 .shopV099CatalogLayout { grid-template-columns:minmax(0,1fr); }
  .shopStorefrontV099 .shopV099FilterSidebar { display:none; }
  .shopStorefrontV099 .shopV099ProductGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .shopStorefrontV099 .shopV099ProductGrid .shopStoreProductVisual { height:auto; min-height:0; aspect-ratio:1/.88; }
  .shopStorefrontV099 .shopV099StoryStrip { padding:30px 0; }
  .shopStorefrontV099 .shopV099StoryStrip .shopStoryRail { display:grid; grid-auto-flow:column; grid-auto-columns:220px; grid-template-columns:none; gap:8px; overflow-x:auto; }
  .shopProductPageV099 .shopV099Breadcrumb { padding:14px 2px 9px; overflow-x:auto; white-space:nowrap; }
  .shopProductPageV099 .shopV099ProductDetailGrid { padding:8px; border-radius:18px; grid-template-columns:minmax(0,1fr); gap:10px; box-shadow:0 10px 28px rgba(21,64,58,.055); }
  .shopProductPageV099 .shopV099ProductGallery { display:flex; flex-direction:column; gap:8px; }
  .shopProductPageV099 .shopV099ProductThumbs { display:flex; max-height:none; overflow-x:auto; gap:6px; }
  .shopProductPageV099 .shopV099ProductThumbs button { width:60px; height:60px; flex:0 0 60px; }
  .shopProductPageV099 .shopV099ProductVisual { min-height:0; aspect-ratio:1/1; border-radius:15px; }
  .shopProductPageV099 .shopV099ProductVisual img { padding:24px; }
  .shopProductPageV099 .shopV099ProductInfo { padding:10px 7px 7px; }
  .shopProductPageV099 .shopV099ProductInfo h1 { font-size:21px; }
  .shopProductPageV099 .shopV099ProductFacts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shopProductPageV099 .shopV099BuyControls { grid-template-columns:104px minmax(0,1fr); }
  .shopProductPageV099 .shopV099ProductPrice strong { font-size:20px; }
  .shopProductPageV099 .shopV099SaveActions { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .shopProductPageV099 .shopV099SaveActions a { grid-column:1/-1; }
  .shopProductPageV099 .shopV099PurchaseTrust { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:390px) {
  .shopStorefrontV099 .shopV099HeroCopy h1 { font-size:29px; }
  .shopStorefrontV099 .shopV099HeroActions button:last-child { display:none; }
  .shopStorefrontV099 .shopV099DealStack { grid-template-columns:minmax(0,1fr); }
  .shopStorefrontV099 .shopV099DealCard { min-height:150px; }
  .shopStorefrontV099 .shopV099ProductGrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shopProductPageV099 .shopV099ProductVisual { min-height:0; }
}


/* 0.9.12 — mobile lower-storefront ownership. */
@media (max-width:650px) {
  .shopStorefrontV099 .shopV0912FeatureSection { padding:24px 0; }
  .shopStorefrontV099 .shopV0912FeatureHead { margin-bottom:11px; }
  .shopStorefrontV099 .shopV0912FeatureLayout { grid-template-columns:minmax(0,1fr); gap:10px; }
  .shopStorefrontV099 .shopV0912DealRail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,82vw); grid-template-columns:none; gap:8px; overflow-x:auto; padding:1px 1px 8px; scroll-snap-type:x proximity; }
  .shopStorefrontV099 .shopV0912DealRail .shopV099DealCard { min-height:154px; scroll-snap-align:start; }
  .shopStorefrontV099 .shopV0912ShelfPanel,.shopStorefrontV099 .shopV0912PopularBlock { min-width:0; padding:12px; overflow:hidden; border-radius:18px; }
  .shopStorefrontV099 .shopV0912ProductShelf { display:grid; grid-auto-flow:row; grid-auto-columns:auto; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:8px; padding:2px 0; scroll-snap-type:none; }
  .shopStorefrontV099 .shopV0912ProductShelf .shopStoreProductCard { width:100%; min-width:0; scroll-snap-align:none; }
  .shopStorefrontV099 .shopV0912BrandHeading { align-items:flex-start; flex-direction:column; gap:8px; }
  .shopStorefrontV099 .shopV0912BrandSummary { display:none; }
  .shopStorefrontV099 .shopV0912BrandRail { display:grid; grid-auto-flow:column; grid-auto-columns:148px; grid-template-columns:none; gap:7px; overflow-x:auto; padding-bottom:6px; }
  .shopStorefrontV099 .shopV0912BrandRail button { min-height:66px; padding:8px; flex-direction:row; }
  .shopStorefrontV099 .shopV099ProductGrid.sparse { grid-template-columns:repeat(2,minmax(0,1fr)); justify-content:stretch; }
  .shopStorefrontV099 .shopV0912StoryRail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(270px,86vw); grid-template-columns:none; gap:8px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x proximity; }
  .shopStorefrontV099 .shopV0912StoryCard { min-height:112px; grid-template-columns:88px minmax(0,1fr); gap:9px; scroll-snap-align:start; }
  .shopStorefrontV099 .shopV0912StoryVisual { width:88px; height:90px; }
  .shopStorefrontV099 .shopV099SellerCta { padding-top:38px; }
}

/* 0.9.14 — seller workspace mobile ownership */
@media (max-width:650px) {
  .shopSellerWorkspace { padding-top:22px; }
  .shopSellerWelcome { margin-bottom:16px; text-align:right; }
  .shopSellerWelcome h1 { font-size:27px; line-height:1.55; }
  .shopFirstRunRoadmap { grid-template-columns:minmax(0,1fr); }
  .shopProfileForm,.shopProductEditor { padding:17px 13px; border-radius:18px; }
  .shopProfileGroup>header { align-items:flex-start; }
  .shopProfileSubmitRow { align-items:stretch; flex-direction:column; }
  .shopProfileSubmitRow .shopDashboardPrimary { width:100%; }
  .shopSellerSidebar { display:block; border-radius:17px; }
  .shopSellerSetupMini { padding-inline:13px; }
  .shopSellerSidebar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; overflow:visible; border-top:1px solid #edf2f1; }
  .shopSellerNavGroup { padding:0; border:0!important; min-width:0; }
  .shopSellerNavGroup>small { padding-inline:5px; }
  .shopSellerSidebar nav button { min-width:0; min-height:42px; padding-inline:6px; white-space:normal; }
  .shopSellerSidebar nav button>em { font-size:8px; }
  .shopSellerSidebar>a { display:flex; }
  .shopSellerTop { align-items:stretch; flex-direction:column; gap:10px; }
  .shopSellerTop h1 { font-size:24px; }
  .shopSellerTopActions { display:grid; grid-template-columns:1fr 1fr; }
  .shopSellerTopActions>a,.shopSellerTopActions>button { justify-content:center; }
  .shopSetupCenter { padding:15px 12px; border-radius:17px; }
  .shopSetupCenter>header { gap:8px; }
  .shopSetupCenter>header h2 { font-size:16px; }
  .shopSetupProgressLabel strong { font-size:19px; }
  .shopSetupNext { grid-template-columns:auto minmax(0,1fr); }
  .shopSetupNext>button { grid-column:1/-1; width:100%; }
  .shopSetupSteps { grid-template-columns:minmax(0,1fr); }
  .shopSetupSteps article { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
  .shopSetupSteps p { min-height:0; }
  .shopSetupSteps button { grid-column:auto; min-width:70px; }
  .shopSellerHelpStrip { align-items:stretch; flex-direction:column; }
  .shopSellerHelpStrip>button { width:100%; }
  .shopSellerSubnav,.shopAdvancedSubnav { grid-template-columns:minmax(0,1fr); }
  .shopCommercePanelFocused { max-width:none; }
  .shopCommercePanel { padding:16px 12px; }
}

/* 0.9.15 — seller status and SKU controls on mobile. */
@media (max-width:620px) {
  .shopSellerLayout { width:100%; grid-template-columns:minmax(0,1fr); }
  .shopProfileGrid,.shopProductEditorGrid { grid-template-columns:minmax(0,1fr); }
  .shopSkuAuto { align-self:stretch; }
  .shopVerificationPanel { padding:16px 12px; border-radius:17px; }
  .shopVerificationPanel>header { align-items:stretch; flex-direction:column; }
  .shopVerificationPanel>header h2 { font-size:17px; }
  .shopVerificationChecklist article { grid-template-columns:auto minmax(0,1fr); }
  .shopVerificationChecklist article>button { grid-column:1/-1; width:100%; }
  .shopVerificationPanel>footer { align-items:stretch; flex-direction:column; }
  .shopVerificationPanel>footer button,.shopVerificationPanel>footer a { width:100%; }
}


/* 0.9.27 — mobile gallery keeps .shopV099ProductThumbs horizontal and scrollable under the main image. */

/* 0.10.7 - Canada Blog mobile ownership. */
@media (max-width:650px){.canadaMagazinePage .magazineHeroInner{grid-template-areas:"copy" "media"}.canadaMagazinePage .magazineHeroCopy{text-align:left}.canadaMagazinePage .magazineContent{grid-template-columns:1fr;grid-template-areas:"main" "sidebar"}.canadaMagazinePage .magazineArticleCard{direction:ltr}.canadaMagazinePage .magazineArticleBody{direction:ltr;text-align:left}.canadaMagazinePage .magazineCta{grid-template-columns:1fr;grid-template-areas:"pets" "copy" "actions"}.canadaMagazinePage .magazineCtaPets{justify-self:stretch}.canadaMagazineArticlePage .articleTopBreadcrumb,.canadaMagazineArticlePage .articleLeadCopy,.canadaMagazineArticlePage .articleReadingBody,.canadaMagazineArticlePage .articleSidebar{text-align:left;direction:ltr}}

/* Karevu Canada 0.10.25 — mobile touch/readability repair. */
@media (max-width:650px) {
  .bookingTimePair { grid-template-columns:minmax(0,1fr); }
  .bookingDatePair input[type="date"],
  .bookingTimePair input[type="time"],
  .dateNativeInput { min-height:46px; font-size:16px; }

  .canadaDirectory .locationRequiredState {
    margin-top:18px;
    padding:24px 16px;
    border-radius:18px;
  }
  .canadaDirectory .locationRequiredState h2 { font-size:17px; }
  .canadaDirectory .locationRequiredState p { font-size:11px; }

  .shopStorefrontV099 .shopStoreProductActions button,
  .shopStorefrontV099 .shopStoreProductPurchase button,
  .shopCatalogLayout .shopProductPurchase button,
  .shopProductPageV099 .shopV099VisualActions button {
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
  .shopStorefrontV099 .shopStoreProductActions { top:8px; left:8px; }
  .shopStorefrontV099 .shopStoreProductBadges {
    top:8px;
    right:8px;
    left:60px;
    max-width:none;
    display:flex;
    justify-content:flex-end;
    align-content:flex-start;
    gap:4px;
    flex-wrap:wrap;
  }
  .shopStorefrontV099 .shopStoreProductBadges b {
    padding:4px 6px;
    font-size:8px;
    line-height:1.2;
    white-space:nowrap;
  }
  .shopProductPageV099 .shopV099SaveActions button,
  .shopProductPageV099 .shopV099SaveActions a { min-height:44px; font-size:9px; }
  .shopProductPageV099 .shopV099BuyControls .shopQuantity,
  .shopProductPageV099 .shopV099BuyControls .shopAddPrimary { min-height:44px; }

  .shopStorefrontV099 .shopV099Subnav a { font-size:9px; }
  .shopStorefrontV099 .shopV099CategoryDock b { font-size:8.5px; }
  .shopStorefrontV099 .shopV099Trust small { font-size:8px; line-height:1.45; }
  .shopStorefrontV099 .shopV099DealCard em { font-size:8px; }
  .shopStorefrontV099 .shopStoreProductDetails { font-size:9px; }
  .shopCatalogLayout .shopProductMeta { font-size:8px; }
  .shopCatalogLayout .shopProductSeller { font-size:9px; }
  .shopCatalogLayout .shopProductPurchase strong { font-size:10px; }
}

@media (max-width:350px) {
  .shopStorefrontV099 .shopV0912ProductShelf,
  .shopStorefrontV099 .shopV099ProductShelf,
  .shopStorefrontV099 .shopFeaturedGrid,
  .shopStorefrontV099 .shopV099ProductGrid {
    grid-template-columns:minmax(0,1fr);
  }
}

/* Karevu Canada 0.10.28 — mobile visual-detail, one-column forms and 44px touch ownership. */
@media (max-width:650px) {
  html[dir="ltr"] .siteHeader .menuButton,
  html[dir="ltr"] .languageSwitcher,
  html[dir="ltr"] .canadaHeader .headerAuthButton,
  html[dir="ltr"] .canadaHeader .accountButton,
  html[dir="ltr"] .serviceTile>a,
  html[dir="ltr"] .serviceTileAction,
  html[dir="ltr"] .logoutButton,
  html[dir="ltr"] .dashboardHead>a,
  html[dir="ltr"] .subAccountActions>a,
  html[dir="ltr"] .subAccountActions>button,
  html[dir="ltr"] .petRecordHeroActions>a,
  html[dir="ltr"] .petRecordHeroActions>button,
  html[dir="ltr"] .petRecordTabs button,
  html[dir="ltr"] .shopSellerSidebar nav button,
  html[dir="ltr"] .shopSellerTopActions>a,
  html[dir="ltr"] .shopSellerTopActions>button,
  html[dir="ltr"] .shopSetupNext button,
  html[dir="ltr"] .shopSetupSteps button,
  html[dir="ltr"] .shopSellerHelpStrip>button,
  html[dir="ltr"] .shopVerificationChecklist button,
  html[dir="ltr"] .shopVerificationPanel>footer button,
  html[dir="ltr"] .shopVerificationPanel>footer a {
    min-height:44px;
  }
  html[dir="ltr"] .siteHeader .menuButton,
  html[dir="ltr"] .languageSwitcher,
  html[dir="ltr"] .canadaHeader .accountButton { width:44px; height:44px; min-width:44px; }
  html[dir="ltr"] .canadaHeader .headerAuthButton { min-height:44px!important; padding-inline:14px!important; }

  html[dir="ltr"] .subAccountHeader { align-items:stretch; padding:15px; }
  html[dir="ltr"] .subAccountActions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  html[dir="ltr"] .subAccountActions>* { min-width:0; white-space:normal; text-align:center; }
  html[dir="ltr"] .latestBookingSummary>div:nth-child(2),
  html[dir="ltr"] .interactionBookingSummary>div:last-child { text-align:left; }

  html[dir="ltr"] .petFormGrid,
  html[dir="ltr"] .petTextGrid,
  html[dir="ltr"] .bookingDatePair,
  html[dir="ltr"] .caregiverFormGrid,
  html[dir="ltr"] .caregiverTextGrid,
  html[dir="ltr"] .caregiverUploadGrid,
  html[dir="ltr"] .availabilityForm,
  html[dir="ltr"] .coverageForm,
  html[dir="ltr"] .shopProfileGrid,
  html[dir="ltr"] .shopProductEditorGrid,
  html[dir="ltr"] .shopCheckoutGrid,
  html[dir="ltr"] .shopDialogGrid,
  html[dir="ltr"] .providerKindChoiceGrid { grid-template-columns:minmax(0,1fr); }
  html[dir="ltr"] :where(.petFormGrid,.petTextGrid,.caregiverFormGrid,.caregiverTextGrid,.caregiverUploadGrid,.availabilityForm,.coverageForm,.shopProfileGrid,.shopProductEditorGrid,.shopCheckoutGrid,.shopDialogGrid)>.wide { grid-column:auto; }

  html[dir="ltr"] .petProfileCard { grid-template-columns:72px minmax(0,1fr); }
  html[dir="ltr"] .petCardPhoto { width:72px; height:72px; }
  html[dir="ltr"] .petRecordHeroActions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  html[dir="ltr"] .petRecordHeroActions>* { min-width:0; justify-content:center; text-align:center; }
  html[dir="ltr"] .petRecordTabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  html[dir="ltr"] .petRecordTabs button { line-height:1.35; }
  html[dir="ltr"] .notificationItem { grid-template-columns:9px minmax(0,1fr) 18px; padding:14px 12px; }

  html[dir="ltr"] .vetWorkspaceNavLinks { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[dir="ltr"] .vetWorkspaceNavLinks a { min-height:44px; font-size:10.5px; white-space:normal; text-align:center; }
  html[dir="ltr"] .vetWorkspaceActions .primaryButton,
  html[dir="ltr"] .vetWorkspaceActions .secondaryButton,
  html[dir="ltr"] .vetWorkspaceLogout { min-height:44px; }

  html[dir="ltr"] .shopSellerWelcome { text-align:left; }
  html[dir="ltr"] .shopSellerLayout { grid-template-columns:minmax(0,1fr); }
  html[dir="ltr"] .shopSellerSidebar nav { grid-template-columns:minmax(0,1fr); }
  html[dir="ltr"] .shopSellerSidebar nav button { padding-inline:10px; }
  html[dir="ltr"] .shopSellerTopActions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[dir="ltr"] .shopSetupCenter>header { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  html[dir="ltr"] .shopSetupProgressLabel { min-width:72px; }
  html[dir="ltr"] .shopSetupSteps { grid-template-columns:minmax(0,1fr); }
  html[dir="ltr"] .shopSellerSubnav,
  html[dir="ltr"] .shopAdvancedSubnav { grid-template-columns:minmax(0,1fr); }
  html[dir="ltr"] .shopStorefrontV099 .shopV099FilterChoices button,
  html[dir="ltr"] .shopStorefrontV099 .shopV099Segmented button { min-height:44px; }
  html[dir="ltr"] .shopStorefrontV099 .shopV099Subnav a { min-height:44px; font-size:10px; }
  html[dir="ltr"] .shopStorefrontV099 .shopV099CategoryDock b { font-size:9.5px; }
  html[dir="ltr"] .shopStorefrontV099 .shopV099Trust small,
  html[dir="ltr"] .shopStorefrontV099 .shopV099DealCard em,
  html[dir="ltr"] .shopStorefrontV099 .shopStoreProductDetails,
  html[dir="ltr"] .shopCatalogLayout .shopProductMeta,
  html[dir="ltr"] .shopCatalogLayout .shopProductSeller { font-size:9.5px; }
  html[dir="ltr"] .shopCatalogLayout .shopProductPurchase strong { font-size:10.5px; }
}

/* Karevu Canada 0.10.42 — rounded header stays glass; outer strip is gone; menu items are readable glass. */
@media (max-width:650px) {
  .siteHeader .headerInner {
    background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(246,252,250,.66));
    border-color:rgba(255,255,255,.72);
    -webkit-backdrop-filter:blur(22px) saturate(175%);
    backdrop-filter:blur(22px) saturate(175%);
    box-shadow:0 10px 34px rgba(19,73,67,.10),inset 0 1px 0 rgba(255,255,255,.86);
  }
  .siteHeader .mainNav.open {
    gap:7px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    box-shadow:none;
  }
  .siteHeader .mainNav.open a {
    border:1px solid rgba(255,255,255,.72);
    background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(244,251,249,.68));
    -webkit-backdrop-filter:blur(20px) saturate(170%);
    backdrop-filter:blur(20px) saturate(170%);
    box-shadow:0 8px 22px rgba(12,68,61,.09),inset 0 1px 0 rgba(255,255,255,.74);
    justify-content:center;
    text-align:center;
  }
  .siteHeader .mainNav.open a:hover {
    background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(229,247,243,.78));
  }
  .siteHeader .mainNav.open a.active {
    border-color:rgba(115,193,181,.40);
    background:linear-gradient(145deg,rgba(224,247,241,.88),rgba(255,255,255,.72));
    box-shadow:0 8px 22px rgba(12,68,61,.10),inset 0 0 0 1px rgba(88,172,162,.10);
  }
}
