.dash-home{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.dash-home:has(.dash-numbers){grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.dash-empty-focus{padding:24px;border-radius:20px;height:100%;box-sizing:border-box}
.dash-empty-focus h2{font-size:var(--type-section);line-height:1.22;letter-spacing:-.025em;overflow-wrap:anywhere}
.dash-empty-focus p{margin:4px 0 16px;font-size:var(--type-body);line-height:1.5}
.dash-home .btn{border-radius:12px;min-height:48px;padding:10px 16px;font-size:var(--type-ui);line-height:1.5}
.dash-home .btn:focus-visible{outline-offset:3px}
.dash-empty-focus{background:var(--mint);display:flex;align-items:center;justify-content:space-between;gap:16px}
.dash-empty-focus img{width:clamp(60px,20%,102px);flex:none}
.dash-summary{background:white;border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:100%;overflow:hidden}
.dash-metric{display:flex;flex-direction:column;justify-content:center;gap:4px;text-decoration:none;color:var(--ink);padding:16px 20px;min-width:0}
.dash-metric:nth-child(odd){border-right:1px solid var(--line)}
.dash-metric:nth-child(-n+2){border-bottom:1px solid var(--line)}
.dash-metric>span{display:flex;align-items:center;gap:8px;font-size:var(--type-meta);line-height:1.25rem;color:var(--muted);font-weight:600}
.dash-metric .ico{width:20px;height:20px}
.dash-metric strong{font-size:var(--type-metric);line-height:1.25;letter-spacing:-.03em;overflow-wrap:anywhere}
.dash-columns{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1.6fr) minmax(225px,.85fr);gap:24px;align-items:start}
.dash-home .panel{border-radius:20px;padding:24px}
.dash-section-head,.dash-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dash-section-head h2,.dash-links h2{font-size:var(--type-section);line-height:1.75rem;letter-spacing:-.025em;font-weight:600}
.dash-section-head a,.dash-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--ink);font-size:var(--type-ui);font-weight:600;text-underline-offset:3px}
.dash-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
.dash-filters label{display:flex;align-items:center;gap:8px;font-size:var(--type-meta);line-height:1.25rem;font-weight:600;color:var(--muted)}
.dash-filters select{font-size:var(--type-body);min-height:44px;padding:5px 8px;max-width:100%}
.dash-filters .dash-day-select{display:none}
.dash-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 0}
.dash-week button{color:var(--ink);display:grid;min-height:52px;align-content:center;justify-items:center;gap:2px;padding:4px;border-radius:8px}
.dash-week span{font-size:var(--type-meta)}.dash-week strong{font-size:var(--type-card)}
.dash-week button[aria-pressed=true]{background:var(--mint);color:var(--ink);box-shadow:inset 0 -3px var(--ink)}
.home-visit{border-top:1px solid var(--line);padding:12px 0;display:grid;grid-template-columns:48px minmax(0,1fr) auto;text-decoration:none;color:var(--ink);align-items:center;gap:12px}
.visit-clock,.visit-info{display:grid;gap:2px}
.visit-clock time,.visit-info strong{font-size:var(--type-card);line-height:1.5;font-weight:600}
.visit-info strong,.visit-info small{overflow-wrap:anywhere}
.visit-clock small,.visit-info small,.dash-shortcut small{font-size:var(--type-meta);line-height:1.25rem;color:var(--muted)}
.visit-label{font-size:var(--type-meta);line-height:1.25rem;color:var(--muted);font-weight:600}
.dash-empty-day{padding:16px 0;color:var(--muted)}
.dash-all{margin-top:4px}
.dash-shortcut{justify-content:flex-start;text-decoration:none;color:var(--ink);padding:14px 0;min-height:48px}
.dash-shortcut+.dash-shortcut{border-top:1px solid var(--line)}
.dash-shortcut strong,.dash-shortcut small{display:block}
.dash-shortcut strong{font-weight:600}
.dash-shortcut b{margin-left:auto}
.dash-metric:hover,.dash-week button:hover,.home-visit:hover,.dash-shortcut:hover{background:var(--chalk)}
.dash-week button[aria-pressed=true]:hover{background:var(--mint)}
.dash-metric:focus-visible{outline-offset:-3px}
@media(max-width:790px){
 .dash-home,.dash-home:has(.dash-numbers){grid-template-columns:minmax(0,1fr);gap:16px}
 .dash-columns{grid-template-columns:minmax(0,1fr);gap:16px}
 .dash-empty-focus,.dash-home .panel{padding:20px}
 .dash-metric{padding:12px 16px}
 .dash-book{min-height:44px}
 .dash-links .dash-shortcut:last-child{padding-bottom:4px}
}
@media(max-width:600px){
 .dash-home .panel{padding:16px}
 .dash-week{display:none}.dash-filters .dash-day-select{display:flex}
 .dash-filters{margin:6px 0 12px}
 .dash-filters label{flex:1;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
 .dash-filters select{width:100%}
 .home-visit{grid-template-columns:44px minmax(0,1fr);gap:2px 12px}
 .visit-clock{align-self:start;grid-row:1/3}
 .visit-label{grid-column:2;justify-self:start}
}
@media(max-width:355px){
 .dash-empty-focus{padding:16px}
 .dash-empty-focus img{display:none}
 .dash-metric{padding:12px}
}

.dash-agenda-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px}
.dash-agenda-actions .btn{font-size:var(--type-ui)}
#page-actions .dash-book{white-space:nowrap}
@media(max-width:550px){
 #app[data-page=today] .page-title{align-items:flex-start;flex-wrap:wrap;gap:8px 16px}
 #app[data-page=today] .page-title>div:first-child{min-width:0}
 #app[data-page=today] .page-title #page-actions:empty{display:none}
 #app[data-page=today] .page-title #page-actions{align-self:flex-end}
 #app[data-page=today] #page-actions .dash-book{max-width:100%;white-space:normal}
}
.dash-section-head{flex-wrap:wrap}
.dash-metric>span,.dash-section-head h2,.dash-section-head a{overflow-wrap:anywhere}
.dash-section-head h2,.dash-section-head a{min-width:0}
@media(max-width:600px){
 .home-visit{grid-template-columns:max-content minmax(0,1fr)}
 .visit-label{max-width:100%;overflow-wrap:anywhere;white-space:normal}
}

/* The owner’s route, recent records and schedule each have a different reading order. */
.owner-home{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:start}
.pet-hero{background:#e5f7eb;border:1px solid #c9e3d4;border-radius:24px;padding:clamp(20px,3vw,34px);overflow:hidden}
.pet-hero-head{display:flex;align-items:center;gap:16px}
.pet-portrait{display:grid;place-items:center;width:68px;height:68px;flex:none;border-radius:50%;object-fit:cover;background:#bde6d2}
.pet-initial{font-size:1.7rem;font-weight:700;color:#204e43}
.pet-hero h2{font-size:var(--type-section);line-height:1.14;letter-spacing:-.045em;overflow-wrap:anywhere}
.pet-state{display:flex;align-items:center;gap:7px;margin-bottom:4px;font-size:var(--type-meta);font-weight:700;line-height:1.4;color:#365c4e}
.pet-state i{background:#197b58;width:8px;height:8px;border-radius:50%;flex:none}
.pet-visit-info{font-size:var(--type-body);line-height:1.5;margin:14px 0 0}
.pet-when{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--muted);font-size:var(--type-meta);font-weight:600}
.pet-when .ico{width:18px;height:18px}
.pet-hero-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-top:20px}
.pet-hero-foot .btn{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px}
.pet-state-live{color:#196649}
.pet-route{width:100%;min-width:0;overflow:hidden;background:#e7eee8;border-radius:16px}
.pet-fix-time{font-size:var(--type-meta);line-height:1.35;color:var(--muted)}
.dash-home .dash-section-head h2,.dash-home .dash-links h2{font-size:var(--type-section);line-height:1.35;font-weight:700;letter-spacing:-.04em}
.dash-recent .dash-section-head{border-bottom:1px solid var(--line);gap:4px 12px}
.dash-recent .dash-section-head a,.dash-section-head a,.dash-all{text-decoration-thickness:1px;text-underline-offset:4px}
.recent-entry{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.recent-entry:hover,.dash-shortcut:hover,.home-visit:hover{background:#edf4ec}
.recent-entry strong,.recent-entry small,.recent-entry time{display:block;overflow-wrap:anywhere}
.recent-entry strong{font-size:var(--type-card);font-weight:700;line-height:1.4;margin:2px 0}
.recent-entry time,.recent-entry small{font-size:var(--type-meta);line-height:1.4;color:var(--muted)}
.recent-entry small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recent-glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--mint)}
.recent-glyph .ico{width:21px;height:21px}
.recent-arrow{font-size:1.4rem;line-height:1;color:var(--muted)}
.dash-home .dash-agenda,.dash-home .dash-links{background:transparent;border:0;box-shadow:none;padding:0}
.dash-columns{padding-top:8px;gap:clamp(24px,4vw,56px)}
.dash-links h2{padding:8px 0}
.dash-week{background:white;border:1px solid var(--line);border-radius:14px;padding:4px}
.dash-week button[aria-pressed=true]{background:var(--ink);color:white;box-shadow:none}
.dash-week button[aria-pressed=true]:hover{background:#20474d}
.dash-summary{border:0;background:#e7f4e9;border-radius:20px}
.dash-metric:nth-child(odd){border-right-color:#c2dace}
.dash-metric:nth-child(-n+2){border-bottom-color:#c2dace}
.dash-metric>span{color:#37594d}
.home-visit .visit-clock time{font-variant-numeric:tabular-nums;font-weight:700}
@media(max-width:790px){
 .owner-home{grid-template-columns:minmax(0,1fr);gap:24px}
 .dash-home .dash-columns{gap:24px}
 .pet-hero{border-radius:20px;padding:18px}
 .pet-portrait{width:56px;height:56px}
 .pet-hero-head{gap:12px}
 .dash-recent .recent-entry:nth-of-type(n+4){display:none}
}
@media(max-width:430px){
 .pet-hero-foot .btn{flex:1 0 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:355px){
 .pet-hero-head{flex-wrap:wrap}
 .pet-hero{padding:16px}
 .recent-entry{grid-template-columns:34px minmax(0,1fr) auto;gap:8px}
 .recent-glyph{width:34px;height:34px}
}
.staff-pet-photo{width:64px;height:64px;object-fit:cover;border-radius:50%;flex:none}
.pet-hero-live{padding:0;border:0;background:white;box-shadow:0 0 0 1px #dce6dc}
.pet-hero-live .pet-hero-head{padding:16px 18px;gap:13px}
.pet-hero-live .pet-hero-head h2{font-size:var(--type-section)}
.pet-hero-live .pet-visit-info{margin:3px 0 0;font-size:var(--type-ui);line-height:1.4;color:var(--muted)}
.pet-hero-live .pet-state{margin:0 0 2px}
.pet-hero-live .pet-route,.pet-hero-live .pet-route moochle-walk-map[compact] .wm-stage{border:0;border-radius:0}
.pet-hero-live .pet-route moochle-walk-map[compact] .wm-stage{height:clamp(200px,28vw,268px)}
.pet-hero-live .pet-hero-foot{display:flex;align-items:center;gap:8px 14px;justify-content:space-between;padding:10px 14px 10px 18px;margin:0}
.pet-hero-live .pet-fix-time{width:auto;text-align:start;line-height:1.35}
.pet-hero-live .pet-fix-time span,.pet-hero-live .pet-fix-time time{display:block}
.pet-hero-live .pet-fix-time time{font-weight:600;color:var(--ink)}
.pet-hero-live .pet-hero-foot .btn{flex:0 1 auto;margin:0}
@media(max-width:790px){
 .owner-home{row-gap:12px}
 .pet-hero-live .pet-portrait{width:50px;height:50px}
 .pet-hero-live .pet-hero-head{padding:12px 14px}
 .pet-hero-live .pet-hero-foot{padding:8px 12px;gap:6px 8px}
 .pet-hero-live .pet-hero-foot .btn{padding:9px 12px;gap:7px}
}
.walker-flow{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:20px}
.flow-plan-head,.flow-main-title,.day-next-visit{display:flex;align-items:center;justify-content:space-between;gap:12px}
.flow-plan-head{padding:1px 16px;background:var(--mint)}
.flow-plan-head h2{font-size:var(--type-card);font-weight:700;line-height:1.35;letter-spacing:-.03em}
.flow-current{padding:16px 20px;background:var(--ink);color:var(--chalk)}
.flow-current h3,.flow-current p,.flow-current small,.day-next-visit strong,.day-next-visit small,.day-next-visit span,.flow-blocks strong{overflow-wrap:anywhere}
.flow-now{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:var(--mint);font-size:var(--type-meta);line-height:1.45;font-weight:600}
.flow-now i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--jade)}
.flow-current h3{font-size:var(--type-section);line-height:1.25;letter-spacing:-.035em;font-weight:700}
.flow-current p{font-size:var(--type-ui);line-height:1.45;color:var(--mint);margin-top:3px}
.flow-current .btn{margin-top:12px;white-space:normal;text-align:start}
.flow-current .btn:focus-visible{outline-color:white}
.flow-main-title>div{min-width:0}
.flow-main-title .staff-pet-photo{width:50px;height:50px}
.flow-group a{color:inherit;text-underline-offset:3px}
.flow-current .flow-review{color:#ffe2bd}
.flow-blocks{list-style:none;margin:0;padding:4px 16px;background:#eff5ef}
.flow-blocks li{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;padding:6px 0;font-size:var(--type-meta);line-height:1.4;color:var(--muted)}
.flow-blocks li+li{border-top:1px solid #dce5dc}
.flow-blocks strong{font-weight:600;color:var(--ink)}
.day-next-visit,.flow-last{display:flex;align-items:center;gap:8px 14px;padding:11px 16px;color:var(--ink);font-size:var(--type-ui);line-height:1.4;text-decoration:none}
.day-next-visit small,.day-next-visit strong,.day-next-visit span>span{display:block}
.day-next-visit small{color:var(--muted);font-size:var(--type-meta)}
.day-next-visit strong{font-weight:700;font-size:var(--type-card)}
.day-next-visit span>span{color:var(--muted)}
.day-next-visit b{font-size:1.25rem}
.day-next-visit:hover{background:#edf4ec}
.flow-last{flex-wrap:wrap;color:var(--muted);min-height:48px}
.flow-last strong{color:var(--ink)}
.agenda-interval{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px;padding:10px 9px;background:#edf3eb;border-top:1px solid var(--line);font-size:var(--type-meta);line-height:1.4;color:var(--muted)}
.agenda-interval strong{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.agenda-interval small{font-size:inherit;margin-left:auto}

.dash-stays { display:grid;gap:0;min-width:0;margin:.6rem 0 .8rem;padding:0 .95rem;border-radius:14px;background:var(--mint,#d9f7e9);color:var(--ink,#102f36) }
.dash-stays h3 { margin:0;padding:.65rem 0 .35rem;font-size:var(--type-section);line-height:1.4 }
.dash-stay { min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.3rem .8rem;padding:.3rem 0 .65rem;border-top:1px solid #bcd8c9 }
.dash-stay-info { min-width:0;overflow-wrap:anywhere }
.dash-stay-info h4,.dash-stay-info p,.dash-stay-info dl,.dash-stay-info dd {margin:0}
.dash-stay-info h4 { font-size:var(--type-card);line-height:1.5 }
.dash-stay-info h4 span { display:inline-block;margin-left:.3rem;color:#37574e;font-size:var(--type-meta);font-weight:500 }
.dash-stay-info p,.dash-stay-info dl {font-size:var(--type-meta);line-height:1.5}
.dash-stay-info dl {display:grid;gap:.08rem;margin-top:.3rem}
.dash-stay-info dl div {display:flex;flex-wrap:wrap;gap:.1rem .55rem}
.dash-stay-info dt {font-weight:600}
.dash-stay-link {min-height:44px;display:inline-flex;align-items:center;gap:.35rem;color:inherit;font-weight:650;text-underline-offset:3px}
.dash-lead>.dash-stays {margin:0}

.owner-home .owner-appointment{padding:0;overflow:hidden;background:#e2f5e9;color:#102f36;border:1px solid #c4ddd0;border-radius:26px}
.owner-appointment-feature{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);min-height:208px}
.owner-appointment-body{align-self:center;padding:clamp(20px,3vw,36px);min-width:0}
.owner-appointment .pet-state{display:block;margin:0 0 14px;color:#125b47;font-size:var(--type-meta);font-weight:700}
.owner-appointment h2{margin:0;color:inherit;font-size:var(--type-section);line-height:1.05;text-wrap:balance;letter-spacing:-.045em}
.owner-appointment .pet-visit-info{margin-top:10px;color:#34565a;line-height:1.45}
.owner-appointment-picture{position:relative;min-width:0;overflow:hidden;background:#c0e7d1;border-bottom-left-radius:48% 32%}
.owner-appointment-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.owner-appointment-picture.is-art img{object-fit:contain;padding:8%}
.owner-appointment-foot,.owner-date{display:flex;align-items:center;gap:10px}
.owner-appointment-foot{justify-content:space-between;flex-wrap:wrap;padding:14px clamp(16px,3vw,32px);background:#fffdf6;color:#102f36}
.owner-date{font-size:var(--type-meta);font-weight:650;font-variant-numeric:tabular-nums}
.owner-date-block{display:grid;place-items:center;min-width:42px;padding:4px;background:#fff0c7;border-radius:9px;line-height:1.1}
.owner-date-block b{font-size:var(--type-metric)}
.owner-date-block small{font-size:var(--type-meta)}
.owner-home .dash-recent{padding:clamp(16px,2vw,24px);border:1px solid #e4d7bb;border-radius:24px;background:#fff8e8}
.owner-home .dash-recent .dash-section-head{border-color:#e4d7bb}
.owner-home .dash-recent .recent-entry{position:relative;border-bottom:0}
.owner-home .recent-entry:has(+.recent-entry)::after{content:"";position:absolute;top:calc(50% + 20px);bottom:calc(-50% + 20px);left:19px;width:2px;background:#e1d5b9;pointer-events:none}
.owner-home .recent-glyph{position:relative;z-index:1;background:#fffdf6}
.owner-home .dash-week{background:#f5f3e9;padding:4px;border-radius:14px}
.owner-home .dash-empty-focus,.owner-home .dash-lead>.dash-stays{background:#e2f5e9;border:1px solid #c4ddd0;border-radius:24px;padding:20px}
.owner-home .pet-hero-live .pet-hero-head{background:#e2f5e9}
.owner-home .pet-hero-live .pet-hero-foot{background:#fffdf6}
@media(max-width:600px){
 .owner-home .dash-week{display:grid;gap:1px}
 .owner-home .dash-week button{min-width:0;min-height:48px;padding:3px 0}
 .owner-home .dash-filters{display:none}
 .owner-appointment-feature{grid-template-columns:minmax(0,1.4fr) minmax(0,.9fr);min-height:158px}
 .owner-appointment-body{padding:17px 12px 18px 16px}
 .owner-appointment .pet-state{margin-bottom:8px}
 .owner-appointment .pet-visit-info{font-size:var(--type-ui)}
 .owner-appointment-foot{padding:11px 12px}
 .owner-appointment-foot .btn{padding:8px 12px}
}
/* Staff dashboard: the day card and agenda are read before the business rail. */
.business-home.dash-home,.business-home.dash-home:has(.dash-numbers){display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,.85fr);align-items:start;gap:18px;background:#f8f9f3}
.business-home .dash-lead,.business-home .dash-agenda{grid-column:1;min-width:0}
.business-home .business-rail{grid-column:2;grid-row:1/3;display:grid;gap:16px;min-width:0}
.business-home .walker-flow{overflow:hidden;background:#fff;border:1px solid #bbd2c7;border-radius:18px}
.business-home .flow-plan-head{background:#fff;padding:9px 18px;border-bottom:1px solid #c6dcd0;color:#102f36}
.business-home .flow-day-heading{display:flex;align-items:center;gap:10px;min-width:0}
.business-home .flow-day-heading time{display:grid;place-content:center;text-align:center;min-width:37px;line-height:1.06}
.business-home .flow-day-heading time span{font-size:var(--type-meta);font-weight:700;color:#125b47}
.business-home .flow-day-heading time b{font-size:var(--type-meta)}
.business-home .flow-plan-head h2{border-left:1px solid #b6cac0;padding-left:12px;font-size:var(--type-card);letter-spacing:-.025em;overflow-wrap:anywhere}
.business-home .flow-current{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,32%);align-items:stretch;padding:0;min-height:150px;background:#d9f7e9;color:#102f36}
.business-home .flow-operation{padding:18px 0 20px 20px;align-self:center;min-width:0}
.business-home .flow-now{color:#125b47;margin:0 0 7px;font-weight:700}
.business-home .flow-now i{background:#125b47;box-shadow:0 0 0 3px #b5e9ce;margin:0 3px}
.business-home .flow-current h3{font-size:var(--type-section);line-height:1.2}
.business-home .flow-current p,.business-home .flow-current .flow-review{color:#294c44}
.business-home .flow-current .flow-review{color:#754600}
.business-home .flow-art{position:relative;display:grid;align-items:end;justify-items:center;overflow:hidden;isolation:isolate}
.business-home .flow-art::before{content:'';position:absolute;z-index:-1;inset:10% -16% -38% 0;border-radius:55% 0 0 0;background:#28dcaf;transform:rotate(-8deg)}
.business-home .flow-brand-art{width:88%;height:85%;max-height:155px;object-fit:contain;align-self:end}
.business-home .flow-pet-photo{width:100%;height:100%;min-height:150px;max-height:230px;object-fit:cover;clip-path:ellipse(95% 100% at 95% 80%)}
.business-home .flow-context,.business-home .day-next-visit,.business-home .flow-last{background:white;color:#46636a;padding:12px 20px;font-size:var(--type-ui);border-top:1px solid #d3e3d9}
.business-home .flow-context strong{margin-right:8px;color:#102f36}
.business-home .flow-blocks{background:#f8f9f3}
.business-home .dash-agenda,.business-home .dash-links,.business-home .dash-numbers{background:white;border:1px solid #d4dfd9;border-radius:18px;min-width:0}
.business-home .dash-agenda,.business-home .dash-links{padding:18px}
.business-home .dash-numbers{padding:16px}
.business-home .dash-numbers h2,.business-home .dash-section-head h2,.business-home .dash-links h2{margin:0;font-size:var(--type-section);line-height:1.4;letter-spacing:-.02em}
.business-home .dash-summary{grid-template-columns:1fr;border:0;background:transparent;border-radius:0;height:auto;margin-top:8px}
.business-home .dash-metric{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border:0;border-top:1px solid #dce5df;background:white}
.business-home .dash-metric>span{font-size:var(--type-meta);color:#46636a;line-height:1.3}
.business-home .dash-metric .ico{width:27px;height:27px;padding:5px;border-radius:8px;background:#d9f7e9}
.business-home .dash-metric strong{font-size:var(--type-metric);line-height:1.2;text-align:right;font-variant-numeric:tabular-nums}
.business-home .dash-metric:hover,.business-home .dash-shortcut:hover{background:#f8f9f3}
.business-home .dash-week{display:grid;padding:4px;border-radius:12px;background:#f2f4ec;gap:2px}
.business-home .dash-week button{min-width:0;min-height:45px;padding:3px 1px}
.business-home .dash-week button[aria-pressed=true]{color:white;background:#102f36;box-shadow:inset 0 -3px #28dcaf}
.business-home .dash-filters .dash-day-select{display:none}
.business-home .dash-filters .dash-scope{flex:initial;flex-direction:row;align-items:center}
.business-home .dash-rows{margin:8px 0}
.business-home .home-visit,.business-home .agenda-interval{position:relative;border-top:0;border-left:2px solid #bee5d3;padding-left:15px;margin-left:4px}
.business-home .home-visit::before,.business-home .agenda-interval::before{content:'';position:absolute;left:-5px;top:19px;width:8px;height:8px;box-sizing:border-box;border-radius:50%;background:#125b47;border:2px solid #d9f7e9}
.business-home .agenda-interval{background:transparent}
.business-home .agenda-interval::before{background:#fff;border:2px solid #749386;top:15px}
.business-home .dash-agenda-actions{border-top:1px solid #d4dfd9;padding-top:8px}
@media(max-width:790px){
 .business-home.dash-home,.business-home.dash-home:has(.dash-numbers){grid-template-columns:minmax(0,1fr);gap:14px}
 .business-home .business-rail{grid-column:1;grid-row:auto}
 .business-home .dash-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 .business-home .dash-metric{flex-direction:column;align-items:start;gap:4px}
 .business-home .dash-agenda,.business-home .dash-links{padding:15px}
}
@media(max-width:420px){
 .business-home .flow-operation{padding:14px 0 14px 14px}
 .business-home .flow-current{grid-template-columns:minmax(0,1fr) 27%;min-height:132px}
 .business-home .flow-brand-art{width:100%;height:88%;justify-self:center}
 .business-home .flow-plan-head,.business-home .flow-context,.business-home .flow-last{padding-inline:12px}
 .business-home .dash-metric>span{align-items:center}
}

.business-home .business-setup{grid-column:1/-1;background:var(--mint)}
.business-setup p{margin:8px 0 12px}

.dash-week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block:4px;font-size:var(--type-ui);font-weight:600}
.dash-week-nav button{display:grid;place-items:center;width:44px;min-height:44px;border-radius:9px;font-size:1.4rem;color:var(--ink)}
.dash-week-nav button:hover{background:var(--mint)}
.dash-week-nav [data-home-today]{width:auto;padding-inline:8px;font-size:var(--type-ui)}
.dash-week-nav [hidden]{display:none}

.business-home .flow-plan-head {flex-wrap:wrap;gap:3px 10px}
.flow-outstanding {
  display:block;padding:.65rem 1rem;background:#fff0c7;color:#684200;
  font-size:var(--type-ui);font-weight:650;text-underline-offset:3px;overflow-wrap:anywhere;
}

/* Keep the visit and schedule adjacent in reading and keyboard order. */
.dash-week-nav .dash-day-select {display:none}
.home-attention {display:flex;gap:6px;flex-wrap:wrap;grid-column:1;min-width:0}
.home-attention[hidden],.dash-recent[hidden] {display:none}
.home-attention .dash-shortcut {display:flex;min-height:44px;gap:8px;padding:6px 12px;background:#fff4d8;border:1px solid #e5d2a5;border-radius:12px;color:#46351b}
.home-attention .dash-shortcut>span {display:flex;align-items:center;gap:8px}
.home-attention .dash-shortcut small {color:inherit;font-weight:700}
#app .dash-home .home-history>summary {min-height:44px;cursor:pointer;padding:10px 0;font-size:var(--type-card);font-weight:700}
#app .owner-home .dash-recent {padding:5px 16px;background:var(--work-paper);border:1px solid var(--work-line);border-radius:16px}
#app .owner-home .dash-agenda {background:white;border:1px solid #d4dfd9;border-radius:18px;padding:16px}
#app .dash-home .dash-filters:not(:has(label)) {display:none}
@media(min-width:1051px){
 #app .owner-home .dash-lead {grid-column:1;grid-row:1}
 #app .owner-home .dash-agenda {grid-column:2;grid-row:1/span 3}
 #app .owner-home .client-home-actions {grid-column:1;grid-row:2}
 #app .owner-home .dash-recent {grid-column:1;grid-row:3}
 #app .owner-home .client-tracking {grid-template-columns:1fr}
 #app .owner-home .client-tracking .pet-route,
 #app .owner-home .client-tracking .wm-stage {min-height:160px;height:160px}
}
@media(max-width:1050px){
 #app .dash-home.owner-home {grid-template-columns:minmax(0,1fr)}
 #app .dash-home.owner-home :is(.dash-lead,.dash-agenda,.dash-recent,.client-home-actions) {grid-column:1;grid-row:auto}
}
@media(max-width:740px){
 #app .dash-home .dash-week,#app .dash-home [data-home-range] {display:none}
 #app .dash-home .dash-week-nav .dash-day-select {display:block;flex:1;min-width:0}
 #app .dash-home .dash-day-select select {width:100%;min-width:0;min-height:44px;border-radius:9px;padding-inline:7px;font-size:1rem;background:white;color:var(--ink);border:1px solid #b4ccbe}
 #app .dash-home .dash-week-nav {gap:3px}
 #app .dash-home .dash-week-nav button {flex-shrink:0}
 #app .dash-home .home-attention .dash-shortcut {flex:1 1 auto;justify-content:center}
 #app .dash-home .home-attention .dash-shortcut b {display:none}
 #app .owner-home .client-tracking .pet-route,
 #app .owner-home .client-tracking .wm-stage {min-height:108px;height:108px}
}
#app .dash-home .agenda-more>summary {min-height:44px;padding:12px 4px;color:#164e40;font-weight:650;cursor:pointer}
@media(min-width:1051px){
 #app .owner-home .home-attention {grid-column:1;grid-row:2}
 #app .owner-home .client-home-actions {grid-row:3}
 #app .owner-home .dash-recent {grid-row:4}
 #app .owner-home .dash-agenda {grid-row:1/span 4}
}

/* The visit card presents one task. The agenda owns the tools for changing a day. */
#app .business-home .walker-flow .flow-plan-head {padding:8px 16px 0;align-items:center}
#app .business-home .walker-flow .flow-current {min-height:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 16px 16px;gap:10px}
#app .business-home .flow-current .flow-operation {padding:0}
#app .business-home .flow-current .flow-art {align-self:center;width:clamp(76px,8vw,110px);aspect-ratio:1;overflow:hidden;border:3px solid #a1dfbc;border-radius:50%;background:#28594c}
#app .business-home .flow-current .flow-art::before {display:none}
#app .business-home .flow-current .flow-pet-photo,#app .business-home .flow-current .flow-brand-art {width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:50% 35%;clip-path:none}
#app .business-home .flow-current .flow-brand-art {object-fit:contain}
#app .business-home .walker-flow .day-next-visit {min-height:52px;padding:8px 16px}
#app .dash-home [data-agenda-timing] .flow-more {margin:6px 0;border:1px solid #d3dfd5;border-radius:10px;overflow:hidden}
#app .dash-home .dash-week-nav [data-shift] {width:auto;min-width:52px;display:inline-flex;align-items:center;justify-content:center;gap:3px}
#app .dash-home .dash-week-nav [data-shift] small {font-size:var(--type-meta);font-weight:600}
#app .owner-home .client-tracking .client-tracking-overview {padding:16px;display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;gap:12px}
#app .owner-home .client-tracking .client-track-identity {flex:1 0 100%;gap:12px}
#app .owner-home .client-track-identity .client-track-service {margin:2px 0 0;font-size:var(--type-ui)}
#app .owner-home .client-track-identity .pet-portrait {width:56px;height:56px}
#app .owner-home .client-tracking .client-track-measures {flex:1 1 10rem;min-width:0;margin:0;padding:0;border:0;gap:10px}
#app .owner-home .client-tracking-overview>.btn {align-self:center;margin:0;min-height:44px;gap:8px}
#app .owner-home .client-tracking .pet-route,
#app .owner-home .client-tracking .pet-route moochle-walk-map[compact] .wm-stage {height:144px;min-height:144px}
@media(min-width:1051px){
 #app .owner-home.dash-home {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px}
 #app .owner-home .client-tracking .client-tracking-overview {padding:20px;gap:16px}
 #app .owner-home .client-track-identity .pet-portrait {width:64px;height:64px}
 #app .owner-home .client-tracking .pet-route,
 #app .owner-home .client-tracking .pet-route moochle-walk-map[compact] .wm-stage {height:194px;min-height:194px}
}
@media(max-width:740px){
 #app .dash-home .dash-week-nav [data-shift] {border-radius:8px;background:#eff4ec}
 #app .business-home .walker-flow .flow-plan-head {padding-inline:12px}
 #app .business-home .walker-flow .flow-current {padding-inline:12px}
}
#app .dash-home .dash-agenda {container-type:inline-size}
#app .dash-home .walker-flow {container-type:inline-size}
@container (max-width:15rem){
 #app .dash-agenda .dash-week-nav {display:grid;grid-template-columns:1fr auto 1fr}
 #app .dash-agenda .dash-week-nav .dash-day-select {grid-column:1/-1;grid-row:1}
 #app .dash-agenda .dash-week-nav button[data-shift="-7"] {grid-column:1;justify-self:start}
 #app .dash-agenda .dash-week-nav button[data-shift="7"] {grid-column:3;justify-self:end}
 #app .walker-flow .flow-current {position:relative}
 #app .business-home .walker-flow .flow-current {display:block}
 #app .walker-flow .flow-current .flow-art {position:absolute;right:12px;top:12px;width:42px;height:42px;border-width:2px}
 #app .walker-flow .flow-now {padding-right:48px}
}
@container (min-width:19rem){
 #app .dash-agenda .home-visit {grid-template-columns:max-content minmax(0,1fr) auto;gap:2px 10px;align-items:baseline;min-height:54px;padding-block:9px}
 #app .dash-agenda .home-visit .visit-clock {grid-column:1;grid-row:1/span 2;align-self:start}
 #app .dash-agenda .home-visit .visit-info {display:contents}
 #app .dash-agenda .home-visit .visit-info strong {grid-column:2;grid-row:1}
 #app .dash-agenda .home-visit .visit-info small {grid-column:2/-1;grid-row:2}
 #app .dash-agenda .home-visit .visit-label {grid-column:3;grid-row:1;justify-self:end}
}

#app .business-home .dash-lead:empty {display:none}
.business-home .dash-scope {max-width:100%}
.business-home .dash-scope select {min-width:0}

.visit-state {display:inline-block;max-width:100%;width:fit-content;white-space:normal;overflow-wrap:anywhere;color:var(--muted);font-size:var(--type-meta);font-weight:650;line-height:1.35}
.visit-state.needs-attention,.visit-state.underway {padding:2px 7px;border-radius:6px;border:1px solid}
.visit-state.needs-attention {background:#fff3d6;color:#6b3f00;border-color:#b57d22}
.visit-state.underway {background:var(--mint);color:#125343;border-color:#98cbb6}

#app .business-home .business-rail>.dash-lead {grid-column:auto}
#app .dash-home.business-home .day-focus:has(.dash-next[hidden]):has(.dash-lead:empty) {display:none}

#app .business-home .business-rail .walker-flow {border:1px solid var(--line);border-radius:14px;box-shadow:none;background:white}
#app .business-home .business-rail .flow-plan-head {background:white;color:var(--ink);padding-block:8px}
#app .business-home .business-rail .flow-day-heading time {background:var(--mint);color:var(--ink)}
#app .business-home .business-rail .day-next-visit {background:white;border-top:1px solid var(--line)}
#app .business-home .business-rail .setup-progress {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 16px;background:white}
#app .business-home .setup-progress h2 {font-size:var(--type-card);margin:0}
