/* Mobile is a dedicated app layout, not a scaled desktop dashboard. */
.app-tools>summary{display:none}
.app-tools{display:block;padding:0;border:0}
.app-tools-panel{display:flex;align-items:center;gap:8px}
.toolbar-account{order:2}
.top-actions .language-picker{order:1}
.app-tools-panel>[data-ai-open]{order:3}
.app-tools-panel>[data-action="settings"]{order:4}
.app-tools-panel>[data-action="settings"]>span{display:none}
.toolbar-visitor,.knowledge-title-mobile,.mobile-page-title{display:none}
.pet-switcher{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:26px}
.pet-switcher>.pet-tabs{min-width:0;margin:0}
.pet-switcher>.pet-add{flex-shrink:0}
.album-pet-strip>.pet-switcher{margin:0}
.care-action-short{display:none}
@media(max-width:650px){
  body.app-mode{--app-nav-height:68px}
  body.app-mode .topbar{position:relative;min-height:60px;height:60px;flex-wrap:nowrap;padding:0 16px;gap:10px}
  body.app-mode .topbar::before{content:none}
  body.app-mode .topbar .studio-brand{display:flex;align-items:center;gap:7px;min-width:0;font-family:'Manrope','DM Sans',sans-serif;font-size:14px;font-weight:800;letter-spacing:-.4px;white-space:nowrap}
  body.app-mode .studio-brand img{width:26px;height:28px;flex-shrink:0}
  body.app-mode .top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:auto;min-width:0;flex-shrink:0;margin-left:auto}
  body.app-mode .toolbar-account{order:0;min-width:0}
  body.app-mode .toolbar-account .account-top-link{display:block;min-height:36px;height:36px;max-width:96px;padding:8px 10px;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:9px}
  body.app-mode .app-tools{display:block;padding:0;border:0;order:1}
  body.app-mode .app-tools>summary{display:grid;place-items:center;list-style:none;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}
  .app-tools>summary::-webkit-details-marker{display:none}
  .app-tools>summary:focus-visible{outline:3px solid #d49b36;outline-offset:3px}
  body.app-mode .app-tools-panel{position:absolute;right:12px;top:calc(100% - 3px);z-index:50;display:grid;gap:10px;width:min(300px,calc(100% - 24px));max-height:calc(100dvh - 150px);overflow-y:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 12px 35px #173f351c}
  body.app-mode .app-tools:not([open])>.app-tools-panel{display:none}
  body.app-mode .app-tools-panel .language-picker{order:0;width:100%;height:44px;max-width:none}
  body.app-mode .app-tools-panel .language-picker select{width:100%;max-width:none;min-width:0;font-size:14px}
  body.app-mode .app-tools-panel>[data-ai-open],body.app-mode .app-tools-panel>[data-action="settings"]{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;height:auto;padding:10px 12px;border-radius:9px;font-size:14px;gap:10px;order:0}
  body.app-mode .app-tools-panel>[data-action="settings"]>span{display:inline}
  body.app-mode .app-tools-panel .toolbar-visitor{display:block;order:1;border-top:1px solid var(--line);padding-top:10px}
  .toolbar-visitor:empty{display:none!important}
  .toolbar-visitor .visitor-details>summary{min-height:40px;font-size:12px}
  .toolbar-visitor .visitor-notice{padding:12px;font-size:12px}
  body.app-mode main{padding:20px 16px 28px}
  body.app-mode .workspace{padding-bottom:calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px))}
  body.app-mode .sidebar{height:calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px));padding:0 4px env(safe-area-inset-bottom,0px)}
  body.app-mode .sidebar .nav-link{height:60px;padding:7px 1px;gap:4px;border-radius:9px;font-size:10px;line-height:1.2}
  body.app-mode .sidebar .nav-link svg{width:20px;height:20px}
  body.app-mode .journal-context{margin-bottom:16px;padding-bottom:12px;gap:8px}
  body.app-mode .journal-context>.visitor-details{display:none}
  body.app-mode .journal-context:not(:has(.demo-banner,.local-label)){display:none}
  body.app-mode .journal-context .local-label{font-size:11px}
  body.app-mode .page-heading{gap:14px;margin-bottom:20px;align-items:flex-start}
  body.app-mode .page-heading h1{font-size:26px;line-height:1.25;letter-spacing:-.6px}
  body.app-mode .page-heading .eyebrow{font-size:10px;margin-bottom:8px}
  body.app-mode .page-heading:has(.mobile-page-title) .eyebrow,body.app-mode .desktop-page-title{display:none}
  body.app-mode .mobile-page-title{display:inline}
  body.app-mode .page-heading .muted{font-size:13px;line-height:1.65;max-width:100%;margin-top:8px}
  body.app-mode .pet-switcher{gap:8px;margin-bottom:18px}
  body.app-mode .pet-switcher>.pet-tabs{flex:1;min-width:0;margin:0}
  body.app-mode .pet-tabs{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:3px;scrollbar-width:none}
  body.app-mode .pet-tabs::-webkit-scrollbar{display:none}
  body.app-mode .pet-switcher .pet-tab{flex:0 0 calc((100% - 8px)/2);min-width:104px;max-width:170px;min-height:60px;padding:10px 8px;gap:8px;font-size:13px;border-radius:12px}
  body.app-mode .pet-switcher .pet-tab.selected{border-color:#97b39b;background:#f2f6ef;box-shadow:none}
  body.app-mode .pet-switcher .avatar{width:30px;height:30px;flex-shrink:0}
  body.app-mode .pet-switcher .pet-tab>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.app-mode .pet-switcher .pet-tab>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:4px}
  body.app-mode .pet-switcher>.pet-add{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--green)}
  body.app-mode .album-pet-strip>.pet-switcher{flex:1;margin:0}
  body.app-mode .card{border-radius:14px;padding:18px}
  body.app-mode .care-reminder-strip{display:grid;grid-template-columns:1fr;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:16px}
  body.app-mode .care-reminder-strip>div:first-child>p{display:none}
  body.app-mode .care-reminder-strip h2{font-size:15px;line-height:1.4;margin:0}
  body.app-mode .care-reminder-strip h2 .icon{width:18px;height:18px}
  body.app-mode .care-reminder-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}
  body.app-mode .care-reminder-counts button{padding:12px 4px;min-width:0;min-height:72px;background:#f4f7f1;border-radius:10px;gap:6px}
  body.app-mode .care-reminder-counts strong{font-size:24px;line-height:1.15}
  body.app-mode .care-reminder-counts span{font-size:11px;line-height:1.4}
  body.app-mode .care-reminder-counts .has-overdue{color:#9b4534;background:#fcf0e8}
  body.app-mode .care-reminder-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
  body.app-mode .care-reminder-actions .button{font-size:12px;min-height:44px;width:auto;padding:8px;line-height:1.4;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);gap:6px}
  body.app-mode .care-reminder-actions .button .icon{width:16px;height:16px;flex-shrink:0}
  body.app-mode .care-reminder-actions .button:hover{background:#f4f7f1}
  body.app-mode .care-reminder-actions .care-action-full{display:none}
  body.app-mode .care-reminder-actions .care-action-short{display:inline}
  /* Today: a compact daily dashboard with a separate, framed pet photo. */
  body.app-mode .today-page>.page-heading{gap:12px;align-items:center;margin-bottom:16px}
  body.app-mode .today-page>.page-heading>div{min-width:0}
  body.app-mode .today-page>.page-heading .eyebrow{font-size:11px;line-height:1.5;margin-bottom:6px;letter-spacing:0}
  body.app-mode .today-page>.page-heading h1{font-size:clamp(22px,6vw,26px);line-height:1.35;letter-spacing:-.5px;text-wrap:balance}
  body.app-mode .today-page>.page-heading .muted{display:none}
  body.app-mode .today-page>.page-heading>.button{flex-shrink:0;align-self:flex-end;min-width:0;min-height:42px;padding:9px 10px;gap:5px;font-size:12px;line-height:1.4;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green);margin-bottom:1px;white-space:nowrap}
  body.app-mode .today-page>.page-heading>.button .icon{width:16px;height:16px}
  body.app-mode .today-page>.dashboard-grid{gap:16px;margin-bottom:16px}
  body.app-mode .today-page .pet-feature{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;align-items:center;min-height:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
  body.app-mode .today-page .pet-feature-copy{width:auto;padding:0;background:none;min-width:0}
  body.app-mode .today-page .pet-feature-copy .eyebrow{display:block;font-size:10px;line-height:1.5;letter-spacing:.6px;overflow-wrap:anywhere}
  body.app-mode .today-page .pet-feature h2{font-size:24px;line-height:1.3;letter-spacing:-.5px;margin:9px 0 0;text-wrap:initial}
  body.app-mode .today-page .pet-feature-tagline,body.app-mode .today-page .pet-feature h2>br,body.app-mode .today-page .pet-feature-copy>p,body.app-mode .today-page .pet-feature .photo-caption{display:none}
  body.app-mode .today-page .pet-feature .button{margin:12px 0 0;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;gap:6px;max-width:100%;overflow-wrap:anywhere}
  body.app-mode .today-page .pet-feature-photo{position:static;inset:auto;width:112px;height:132px;object-fit:cover;object-position:60% 50%;border-radius:10px}
  body.app-mode .today-page .pet-feature-photo.no-photo{display:grid;place-items:center;background:#f1f5ec;color:#8da17d}
  body.app-mode .today-page .checkin-card .section-label{font-size:11px}
  body.app-mode .today-page .checkin-card h2{font-size:20px;line-height:1.4;margin-top:12px}
  body.app-mode .today-page .checkin-card>.muted{font-size:13px;line-height:1.6;margin-top:6px}
  body.app-mode .today-page .mood-options{gap:8px;margin:16px 0 12px}
  body.app-mode .today-page .mood-options button{min-height:76px;padding:10px 4px;border-radius:10px}
  body.app-mode .today-page .mood-options button span{font-size:12px;line-height:1.4}
  /* Studio: short introduction, one clear result, then the action and price. */
  body.app-mode.studio-mode .photo-studio .studio-heading{padding-bottom:16px;gap:14px}
  body.app-mode.studio-mode .photo-studio .studio-heading h1{font-size:26px;line-height:1.25}
  body.app-mode .photo-studio .studio-home-nav{gap:0;justify-content:flex-start;width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  body.app-mode .photo-studio .studio-home-nav a{font-size:12px;min-height:36px;display:inline-flex;align-items:center;padding:0 12px;white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:#fff;margin-right:8px}
  body.app-mode .photo-studio .studio-home-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:'lead' 'pictures' 'action' 'price';gap:14px;padding:18px 0 26px;align-items:start}
  body.app-mode .photo-studio .studio-home-copy{display:contents}
  body.app-mode .photo-studio .studio-home-copy>.eyebrow,body.app-mode .photo-studio .studio-home-caption,body.app-mode .photo-studio .studio-home-copy>.studio-home-link{display:none}
  body.app-mode .photo-studio .studio-home-copy>h2{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;margin:0;padding:0}
  body.app-mode .photo-studio .studio-home-lead{grid-area:lead;font-size:14px;line-height:1.7;margin:0;max-width:none}
  body.app-mode .photo-studio .studio-home-copy>.button{grid-area:action;width:100%;min-height:46px;font-size:14px}
  body.app-mode .photo-studio .studio-price{grid-area:price;font-size:12px;line-height:1.65;margin:0;font-weight:500}
  body.app-mode .photo-studio .studio-home-pictures{grid-area:pictures;display:block;width:100%;max-width:none;margin:0;padding:0}
  body.app-mode .studio-home-pictures .studio-mini-samples,body.app-mode .studio-main-sample>.eyebrow{display:none}
  body.app-mode .studio-home-pictures .sample-main{transform:none;padding:0;border:0;border-radius:14px;overflow:hidden;box-shadow:none;background:#fff}
  body.app-mode .studio-home-pictures .sample-main::before{display:none}
  body.app-mode .studio-home-pictures .sample-main img{aspect-ratio:4/3;width:100%;object-fit:cover;object-position:50% 30%}
  body.app-mode .studio-home-pictures .sample-main figcaption{font:12px/1.4 'DM Sans',sans-serif;padding:9px 12px;margin:0;color:var(--muted)}
  body.app-mode .studio-sample-note{font-size:10px;line-height:1.5;margin:7px 0 0}
  body.app-mode .studio-home-gallery .story-discovery-heading .eyebrow{display:none}
  body.app-mode.studio-mode .story-mobile-actions:not([hidden]){bottom:calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px))}
  /* Knowledge: page title and usable controls, without a second hero panel. */
  body.app-mode .knowledge-hero{background:none;border:0;border-radius:0;padding:0;margin:0 0 16px;min-height:0}
  body.app-mode .knowledge-hero .eyebrow{display:none}
  body.app-mode .knowledge-hero h1{font-family:'Manrope','DM Sans',sans-serif;font-size:26px;line-height:1.25;letter-spacing:-.6px;margin:0 0 8px}
  body.app-mode .knowledge-hero p:last-child{font-size:13px;line-height:1.65;margin:0}
  body.app-mode .knowledge-title-full{display:none}
  body.app-mode .knowledge-title-mobile{display:inline}
  body.app-mode .knowledge-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0;margin:0 0 16px;align-items:stretch}
  body.app-mode .knowledge-section-tabs>a{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;font-size:12px;line-height:1.35;padding:8px 0;white-space:normal;text-align:center}
  body.app-mode .knowledge-section-tabs>a .icon{width:16px;height:16px;flex-shrink:0}
  body.app-mode .knowledge-browser{padding:12px;border-radius:14px;margin:0 0 16px}
  body.app-mode .knowledge-tools-public{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;gap:8px}
  body.app-mode .knowledge-tools-public .knowledge-search{grid-column:1/-1;min-height:44px;height:44px;padding:0 12px}
  body.app-mode .knowledge-tools-public .knowledge-search input{height:42px;font-size:14px;padding:0;min-width:0}
  body.app-mode .knowledge-tools-public>select,body.app-mode .knowledge-tools-public>#knowledge-filter-toggle{width:auto;min-width:0;min-height:40px;height:40px;font-size:12px;padding:8px 10px}
  body.app-mode .knowledge-tools-public>[data-ai-open]{grid-column:auto;justify-self:stretch;display:grid;place-items:center;min-width:40px;height:40px;min-height:40px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:0;background:var(--paper)}
  body.app-mode .knowledge-tools-public>[data-ai-open] .icon{display:block;width:20px;height:20px}
  body.app-mode .knowledge-topic-row{margin-top:10px;padding-top:10px;gap:4px}
  body.app-mode .knowledge-browser .knowledge-topics{padding-bottom:2px;gap:6px}
  body.app-mode .knowledge-browser .knowledge-topics button{font-size:12px;min-height:34px;padding:7px 10px}
  body.app-mode .knowledge-card{border-radius:14px;padding:18px;margin:0}
  body.app-mode .knowledge-card h3{font-family:'Manrope','DM Sans',sans-serif;font-size:18px;line-height:1.5}
}
@media(max-width:360px){body.app-mode #knowledge-filter-toggle .icon{display:none}body.app-mode .knowledge-tools-public{grid-template-columns:minmax(0,1fr) auto 38px}body.app-mode #knowledge-filter-toggle{font-size:11px}}
@media(prefers-reduced-motion:reduce){.app-tools *{scroll-behavior:auto}}
