@media(max-width:700px){
 body{font-size:14px!important;line-height:1.4!important}
 main,.main{padding:10px!important}
 .panel,.card,.dashPanel,.chartHero,.forestHero{padding:12px!important;margin-bottom:10px!important;border-radius:12px!important}
 .item,.forestCard{padding:10px!important;margin-bottom:8px!important}
 .grid,.recordgrid,.dashColumns,.forestGrid{gap:10px!important}
 .dashHero{padding:12px!important;margin-bottom:10px!important}
 .dashHero h2{font-size:25px!important;line-height:1.1!important;margin:5px 0!important}
 .dashHero br{display:none}
 .dashHero p{margin:5px 0!important;font-size:13px!important}
 .view h2,#dogName,#clientRecordName{font-size:21px!important;line-height:1.2!important;margin:6px 0!important}
 .view h3{font-size:16px!important;line-height:1.25!important;margin:6px 0!important}
 .view h4{font-size:14px!important;margin:6px 0!important}
 .view p,.view .chartText{font-size:14px!important;line-height:1.45!important;margin:6px 0!important}
 .eyebrow,.recordmeta,.tag{font-size:11px!important}
 .btn,.tab,.nav{min-height:42px;padding:8px 10px!important;font-size:13px!important}
 .tabs,.row,.top{gap:6px!important}
 .tabs{overflow-x:auto}
 input,textarea,select{font-size:16px!important}
 .phoneExcerpt{margin:6px 0!important;padding:0!important;border:0!important;background:transparent!important}
 .phoneExcerpt summary{cursor:pointer;min-height:42px;padding:5px 0;line-height:1.45;font-size:14px;overflow-wrap:anywhere}
 .phoneReadHint{display:inline-block;margin-left:6px;font-size:12px;text-decoration:underline;opacity:.8}
 .phoneExcerpt[open]>.phoneOriginal{padding:4px 0 6px}
 .phoneExcerpt[open]>summary .phoneReadHint{display:none}
 .phoneExcerpt[open]>summary::after{content:' Close';font-size:12px;text-decoration:underline}
}
@media print{.phoneExcerpt>summary{display:none}.phoneExcerpt>.phoneOriginal{display:block}}
@media(max-width:700px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .side{padding:8px 12px!important;position:relative!important}
 .side .brand{font-size:18px!important;line-height:1.3!important;margin:0!important;padding:4px 75px 4px 0}
 .side .brand small{display:none!important}
 .phoneMenu>summary{position:absolute;right:10px;top:4px;padding:10px!important;font:600 13px/1.4 sans-serif;color:white;cursor:pointer}
 .phoneMenu[open]{padding-top:8px}
 .phoneMenu .nav,.phoneMenu .btn{display:inline-block!important;width:auto!important;font-size:13px!important;margin:2px!important;padding:8px!important}
 .main>.top{margin:0 0 8px!important;min-height:38px;align-items:center!important}
 .main>.top .eyebrow,#who{display:none!important}
 #title{font-size:20px!important;margin:0!important;line-height:1.2!important}
 #signOut{font-size:11px!important;padding:6px!important;min-height:34px!important}
 #dashboard{padding:0!important;background:transparent!important}
 #dashboard .dashHero{display:none!important}
 #dashboard .dashPanel{padding:10px 12px!important;border-top-width:3px!important;border-radius:10px!important;margin-bottom:8px!important}
 #dashboard .dashPanel>h2{font-size:17px!important;margin:0 0 5px!important}
 #dashboard .dashPanel>p{display:none!important}
 #dashboard .dashEntry{padding:8px 0!important;margin:0!important;line-height:1.35!important}
 #dashboard .dashEntry>button{font-size:14px!important;font-weight:650!important;line-height:1.35!important;padding:4px 0!important;min-height:30px!important;max-width:100%;text-decoration:none}
 #dashboard .dashEntry>strong{font-size:14px!important;font-weight:600!important;margin:0!important;line-height:1.35!important}
 #dashboard .dashEntry p,#dashboard .dashEntry summary{font-size:13px!important;line-height:1.4!important;font-weight:400!important;margin:3px 0!important}
 #dashboard .dashEntry summary{padding:5px 0!important;min-height:28px!important}
 #dashboard .dashChip{font-size:11px!important;padding:3px 7px!important;margin:4px 0!important}
 #dashboard .dashEmpty{font-size:13px!important;padding:4px 0!important;margin:0!important}
 .phoneRowDetails:not([open])>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:#52626b}
 .phoneRowDetails[open]{padding-bottom:5px}
 .phoneExcerpt:not([open])>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .phoneExcerpt summary{font-weight:400!important}
}
@media(max-width:700px){
 .shell{grid-template-columns:minmax(0,1fr)!important;width:100%;max-width:100%}
 .shell>.side,.shell>.main{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box}
 .main>.top,.main>.top>div,.view,.dashColumns,.dashPanel,.dashEntry,.phoneRowDetails,.phoneExcerpt{min-width:0!important;max-width:100%;box-sizing:border-box}
 .dashColumns{grid-template-columns:minmax(0,1fr)!important}
 .dashEntry>button,.dashEntry>strong{overflow-wrap:anywhere}
 .phoneRowDetails>summary,.phoneExcerpt>summary{width:100%;box-sizing:border-box}
 .side .phoneMenu{position:static!important}
 .side .phoneMenu>summary{width:auto!important;max-width:74px;right:8px;top:3px;z-index:3}
 .main>.top{flex-wrap:wrap;gap:6px!important}
 .main>.top .row{flex-wrap:wrap;min-width:0}
}
/* Constrain chart grids and native disclosure markers on narrow screens. */
@media(max-width:700px){
 .recordgrid,.formgrid,.chartHero,.chartSuggest,.recordgrid>*,.doghead,.doghead>*{min-width:0!important;max-width:100%;box-sizing:border-box}
 .recordgrid{grid-template-columns:minmax(0,1fr)!important}
 .phoneExcerpt:not([open])>summary,.phoneRowDetails:not([open])>summary{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:hidden;max-height:3em}
 .phoneExcerpt:not([open])>summary::before,.phoneRowDetails:not([open])>summary::before{content:'▸ ';}
 .phoneExcerpt>summary,.phoneRowDetails>summary{min-width:0;max-width:100%;width:100%;overflow-wrap:anywhere}
 .phoneOriginal,.phoneOriginal>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
 #clientrecord .doghead,#dogrecord .doghead{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:flex-start!important}
 #clientrecord .doghead>div:first-child,#dogrecord .doghead>div:first-child{flex:1 0 100%!important;width:100%!important}
 #clientrecord .doghead>.btn,#dogrecord .doghead>.btn{flex:0 1 auto!important;white-space:normal!important;max-width:100%}
 .rosterManage{flex:0 1 auto!important;min-width:0!important;color:inherit}
 .rosterManage>summary{white-space:nowrap!important;max-height:none!important}
 .rosterManage[open]{flex:1 0 100%!important}
 .view .panel,.view .chartHero{min-width:0!important;max-width:100%!important;box-sizing:border-box}
}
#dogrecord .tabs{flex-wrap:wrap}
#dogrecord .tabs>.trainingPrimary{flex:1 0 100%;font-size:17px!important;font-weight:750;padding:12px 16px!important;min-height:48px;background:var(--deep,#172936);color:white;border:2px solid currentColor;box-sizing:border-box}
#dogrecord .tabs>.trainingPrimary.active{outline:2px solid var(--wine,#682b3a);outline-offset:1px}
#clientrecord .tabs>.trainingPrimary{flex:1 0 100%;font-size:17px!important;font-weight:750;padding:12px 16px!important;min-height:48px;background:var(--deep,#172936);color:white;border:2px solid currentColor;box-sizing:border-box}
#clientrecord .tabs>.trainingPrimary.active{outline:2px solid var(--wine,#682b3a);outline-offset:1px}
/* Cassie's private broad project overview. */
#projects .panel{max-width:880px;margin:0 auto}
#refreshProjects{float:right;margin-left:12px}
.projectGroup{margin-top:24px}
.projectGroup>h3,.projectGroup>summary{font-size:19px;color:#263846;margin-bottom:10px}
.projectGroup>summary{cursor:pointer;padding:10px 0}
.projectCard{background:#f7f9fa;border:1px solid #d9e2e8;border-radius:14px;padding:14px 16px;margin:10px 0}
.projectLine{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:17px}
.projectLine span{font-weight:800;color:#401923;white-space:nowrap}
.projectBar{height:8px;background:#dce5ea;border-radius:99px;overflow:hidden;margin:9px 0}
.projectBar i{display:block;height:100%;background:linear-gradient(90deg,#233e50,#682b3a);border-radius:inherit}
.projectCard p{margin:0;color:#465b68;line-height:1.4}
.timeChooser{background:#eef3f6;border:1px solid #d3dfe6;border-radius:16px;padding:16px;margin:22px 0}
.timeButtons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.timeButtons button,.projectActions button{border:1px solid #aebfc9;background:#fff;color:#263846;border-radius:999px;padding:9px 13px;font:inherit;font-weight:700;cursor:pointer;min-height:40px}
.timeButtons,.timeButtons button,#refreshProjects{position:relative;z-index:4;pointer-events:auto!important;touch-action:manipulation}
.timeButtons button.active{background:#401923;color:#fff;border-color:#401923}
.todayQueue{background:linear-gradient(135deg,#263846,#365a78);color:#fff;border-radius:18px;padding:18px;margin:18px 0 28px}
.todayQueue .eyebrow{color:#dbe6ee}.todayTask{display:grid;gap:4px;padding:13px 0;border-top:1px solid #ffffff35}.todayTask:first-of-type{border-top:0}.todayTask span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#d9e6ed}.todayTask b{font-size:17px}.todayTask small{color:#d9e6ed}
.todayTier{margin-top:16px}.todayTier>b{display:block;color:#f0dfab;font-size:13px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.todayTier:first-child{margin-top:12px}
.projectActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.projectActions button{min-height:36px;padding:7px 10px;font-size:12px}.projectActions button[data-project-action="finish"]{background:#e7f1eb;border-color:#a9c8b5}.projectCard.waiting{border-left:5px solid #a18136}.projectCard.low{opacity:.86}.projectCard.finished{opacity:.68}
@media(max-width:760px){#projects .panel{padding:16px}.projectCard{padding:12px 13px}.projectLine{font-size:16px}}
