.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:1.75rem;line-height:1.22;letter-spacing:-.025em;overflow-wrap:anywhere}
.dash-empty-focus p{margin:4px 0 16px;font-size:1rem;line-height:1.5}
.dash-home .btn{border-radius:12px;min-height:48px;padding:10px 16px;font-size:1rem;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:.8125rem;line-height:1.25rem;color:var(--muted);font-weight:600}
.dash-metric .ico{width:20px;height:20px}
.dash-metric strong{font-size:1.6rem;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:1.25rem;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:.875rem;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:.8125rem;line-height:1.25rem;font-weight:600;color:var(--muted)}
.dash-filters select{font-size:.875rem;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:.8125rem}.dash-week strong{font-size:1rem}
.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:1rem;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:.8125rem;line-height:1.25rem;color:var(--muted)}
.visit-label{font-size:.8125rem;line-height:1.25rem;color:var(--muted);font-weight:600}
.visit-label.pending,.visit-label.current{background:#fff0c7;color:#754600;padding:3px 8px;border-radius:999px}
.visit-label.current{background:var(--mint);color:#125b47}
.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}
.bell-button{display:flex;align-items:center;gap:4px;color:var(--ink);text-decoration:none;min-height:44px;padding:4px}
.bell-count{background:var(--ink);color:white;font-weight:700;font-size:12px;padding:2px 5px;border-radius:20px}
@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%;font-size:1rem}
 .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}
 .dash-metric strong{font-size:1.375rem}
}
@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:.875rem}
#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:clamp(1.7rem,2.8vw,2.6rem);line-height:1.14;letter-spacing:-.045em;overflow-wrap:anywhere}
.pet-state{display:flex;align-items:center;gap:7px;margin-bottom:4px;font-size:.8125rem;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:1rem;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:.875rem;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:.8125rem;line-height:1.35;color:var(--muted)}
.dash-home .dash-section-head h2,.dash-home .dash-links h2{font-size:1.4rem;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:1rem;font-weight:700;line-height:1.4;margin:2px 0}
.recent-entry time,.recent-entry small{font-size:.8125rem;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}
.dash-metric strong{font-size:clamp(1.5rem,2vw,2rem)}
.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}
 .pet-hero h2{font-size:1.75rem}
 .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:clamp(1.5rem,2.5vw,2.1rem)}
.pet-hero-live .pet-visit-info{margin:3px 0 0;font-size:.875rem;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:1.15rem;font-weight:700;line-height:1.35;letter-spacing:-.03em}
.flow-adjust{min-height:48px;padding:6px 0;font-size:.875rem;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.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:.8125rem;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:1.65rem;line-height:1.25;letter-spacing:-.035em;font-weight:700}
.flow-current p{font-size:.9rem;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:.8125rem;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:.875rem;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:.8125rem}
.day-next-visit strong{font-weight:700;font-size:1.04rem}
.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:.8125rem;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:1rem;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:1.05rem;line-height:1.5 }
.dash-stay-info h4 span { display:inline-block;margin-left:.3rem;color:#37574e;font-size:.8rem;font-weight:500 }
.dash-stay-info p,.dash-stay-info dl {font-size:.86rem;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}
