/* Compact workspace; the public header and login retain their shared layout. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body:has(#dashboard:not([hidden])) main{padding-top:16px}
#dashboard .tabs{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:12px;padding:8px 0 20px;margin-bottom:12px}
#dashboard .tabs button{grid-column:auto;justify-self:stretch;align-self:stretch;min-height:62px;padding:15px 18px;border:1.5px solid #cfc9be;border-radius:13px;background:#fffdf8;color:#242725;font-size:19px;font-weight:750;gap:10px;box-shadow:none}
#dashboard .tabs button:hover{border-color:#b34333}
#dashboard .tabs button.selected{background:#ff5145;border-color:#ff5145;color:#242725;box-shadow:0 3px 0 #b6392f}
#dashboard .tabs .tab-icon{width:23px;height:23px}
#dashboard .week-toolbar{display:flex;flex-wrap:wrap;gap:12px 20px;margin:0 0 18px;align-items:center}
#dashboard .week-navigation{display:flex;align-items:center;gap:12px;min-width:0}
#dashboard .week-navigation h2,#dashboard .week-navigation h3{font-size:20px;line-height:1.3;min-width:0;text-align:center}
#dashboard .week-navigation button{width:44px;min-width:44px;height:44px;flex-shrink:0;font-size:26px;padding:5px}
#dashboard .planning-controls,#dashboard .insights-controls{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
#dashboard .planning-controls>.quiet,#dashboard .insights-controls>.quiet{min-height:44px;padding:10px 12px;font-size:14px}
#dashboard .view-switch{display:flex;gap:3px;padding:3px;border:1px solid #cfc9be;border-radius:11px;background:#eae4da}
#dashboard .view-switch button{min-height:38px;padding:8px 15px;border:0;background:transparent;font-size:14px;border-radius:7px}
#dashboard .view-switch .selected{background:#242725;color:#fffdf8}
#dashboard .planning-meta{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-bottom:14px}
#dashboard .calendar-legend{margin:0;gap:10px 18px;font-size:13px}
#dashboard #sync-status{min-height:0;margin:0;font-size:12px}
#dashboard #sync-status:empty{display:none}
#dashboard .day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:12px}
#dashboard .day-tabs button{padding:10px 4px;min-height:56px;font-size:12px}
#dashboard .day-tabs button strong{display:block;font-size:19px;margin-top:5px}
#dashboard .day-tabs .selected{background:#242725;color:#fffdf8;border-color:#242725}
#dashboard .week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border-radius:15px}
#dashboard .day-column{display:block;min-height:300px}
#dashboard .day-head{padding:14px 10px;font-size:13px;gap:5px}
#dashboard .day-head strong{font-size:23px}
#dashboard .day-events{padding:8px;gap:8px}
#dashboard .event{padding:11px 9px;line-height:1.45}
#dashboard .event-time{font-size:12px;margin:0}
#dashboard .site-event strong{font-size:15px;margin:5px 0;line-height:1.3}
#dashboard .event-type{font-size:11px;font-weight:700;padding:2px 6px}
#dashboard .event-detail{font-size:12px;margin-top:5px}
#dashboard .day-empty{padding:22px 6px;font-size:13px}
#dashboard .rest .day-empty strong{font-size:16px;margin:0}
#dashboard .calendar-note{font-size:12px;margin-top:12px}
#dashboard [data-calendar-view="day"] .week-grid{grid-template-columns:minmax(0,1fr)}
#dashboard [data-calendar-view="day"] .day-column{display:none;border:0;min-height:230px}
#dashboard [data-calendar-view="day"] .day-column.active-day{display:block}
#dashboard [data-calendar-view="day"] .day-events{padding:16px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));align-items:start}
#dashboard [data-calendar-view="day"] .site-event strong{font-size:17px}
#dashboard [data-calendar-view="day"] .event{padding:16px}
#dashboard [data-calendar-view="day"] .event-time{font-size:14px}
#dashboard .list-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
#dashboard .client-search{flex:1;min-width:180px;max-width:520px}
#dashboard .client-search input{margin:0;max-width:none}
#dashboard .list-toolbar>.primary{min-height:48px;white-space:nowrap;font-size:14px}
#dashboard .list-toolbar>.check{margin:0 0 0 auto;font-size:13px;white-space:normal}
#dashboard .client-card{padding:19px 22px;gap:20px}
#dashboard .client-card>span:first-child{min-width:0}
#dashboard .client-card strong{overflow-wrap:anywhere}
#dashboard .client-card small{font-size:13px;line-height:1.5}
#dashboard .balance{flex-shrink:0}
#dashboard .insights-period{border:0;padding:0}
#dashboard #insights-status{min-height:0;margin:0 0 14px}
#dashboard #insights-status:empty{display:none}
#dashboard .insights-summary{font-size:17px;line-height:1.6;padding:2px 0 22px}
#dashboard .followup-context{font-size:13px;margin-bottom:14px}
#dashboard .followup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#dashboard .insights-panel{padding:24px;margin-bottom:20px;border-radius:16px}
#dashboard .followup-grid h3,#dashboard .followup-grid h4{font-size:19px;line-height:1.35;margin:0}
#dashboard .followup-list{max-height:none;overflow:visible;margin-top:18px;gap:8px}
#dashboard .followup-client{min-height:76px;padding:14px 12px;gap:12px}
#dashboard .followup-client strong{overflow-wrap:anywhere;font-size:16px}
#dashboard .followup-client small{font-size:12px}
#dashboard .insights-empty{padding:18px 0 0;line-height:1.5}
#dashboard .insights-activity{padding:0;background:transparent}
#dashboard .insights-activity>summary{padding:20px 24px;cursor:pointer;font-size:16px;font-weight:700;min-height:60px}
#dashboard .insights-activity>summary:focus-visible{outline:3px solid #b34333;outline-offset:3px;border-radius:16px}
#dashboard .insights-activity-content{padding:0 24px 24px}
#dashboard .insights-coverage{font-size:13px}
#dashboard .activity-chart{gap:12px}
#dashboard .activity-week{padding:0 4px}
#dashboard .activity-data summary{min-height:44px}
@media(max-width:1100px){
 #dashboard .week-grid{grid-template-columns:1fr}
 #dashboard [data-calendar-view="week"] .day-column{display:grid;grid-template-columns:116px minmax(0,1fr);min-height:0;border:0;border-bottom:1px solid #ded8ce}
 #dashboard [data-calendar-view="week"] .day-column:last-child{border-bottom:0}
 #dashboard [data-calendar-view="week"] .day-head{align-items:flex-start;flex-direction:column;justify-content:flex-start;gap:6px;border-bottom:0;border-right:1px solid #ded8ce;padding:16px 12px}
 #dashboard [data-calendar-view="week"] .day-events{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-items:start;padding:12px}
 #dashboard .day-empty{padding:14px 6px;text-align:left}
 #dashboard .site-event strong{font-size:16px}
 #dashboard .event-time{font-size:13px}
}
@media(max-width:760px){
 body:has(#dashboard:not([hidden])) main{padding-top:10px}
 #dashboard .tabs{gap:7px;padding:8px 0 16px;margin-bottom:10px}
 #dashboard .tabs button{min-height:56px;padding:12px 5px;font-size:14px;gap:6px;border-radius:10px}
 #dashboard .tabs .tab-icon{width:19px;height:19px}
 #dashboard .week-toolbar{display:flex;gap:12px;margin-bottom:14px}
 #dashboard .week-navigation{width:100%;justify-content:space-between;gap:8px}
 #dashboard .week-navigation h2,#dashboard .week-navigation h3{font-size:17px}
 #dashboard .planning-controls,#dashboard .insights-controls{width:100%;justify-content:space-between;gap:4px}
 #dashboard .planning-controls>.quiet,#dashboard .insights-controls>.quiet{font-size:13px;padding:10px 5px}
 #dashboard .view-switch button{padding:8px 10px;font-size:13px}
 #dashboard .calendar-legend{font-size:12px;gap:10px 15px}
 #dashboard .planning-meta{margin-bottom:12px}
 #dashboard [data-calendar-view="week"] .day-column{display:block;min-height:0}
 #dashboard [data-calendar-view="week"] .day-head{flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid #ded8ce;padding:11px 14px;font-size:14px}
 #dashboard [data-calendar-view="week"] .day-events{grid-template-columns:minmax(0,1fr);padding:10px 12px;gap:8px}
 #dashboard .day-head strong{font-size:20px}
 #dashboard .day-empty{padding:4px 1px;min-height:30px;display:flex;align-items:center;font-size:13px}
 #dashboard .event{padding:12px 14px}
 #dashboard .event-time{font-size:13px}
 #dashboard .event-type{font-size:12px}
 #dashboard .rest .day-empty strong{font-size:14px}
 #dashboard [data-calendar-view="day"] .day-events{grid-template-columns:minmax(0,1fr);padding:12px}
 #dashboard .list-toolbar{gap:12px 8px}
 #dashboard .client-search{flex-basis:100%;max-width:none}
 #dashboard .list-toolbar>.primary{font-size:13px;padding:11px 13px}
 #dashboard .list-toolbar>.check{font-size:12px;gap:6px}
 #dashboard .client-card{padding:16px 13px;gap:12px}
 #dashboard .client-card strong{font-size:16px}
 #dashboard .client-card small{font-size:12px}
 #dashboard .balance{gap:5px}
 #dashboard .balance b{font-size:26px}
 #dashboard .balance span{font-size:11px}
 #dashboard .insights-summary{font-size:15px;padding-bottom:18px}
 #dashboard .followup-grid{grid-template-columns:minmax(0,1fr);gap:0}
 #dashboard .insights-panel{padding:20px 16px;margin-bottom:16px}
 #dashboard .followup-grid h3,#dashboard .followup-grid h4{font-size:18px}
 #dashboard .insights-activity{padding:0}
 #dashboard .insights-activity>summary{padding:18px 16px}
 #dashboard .insights-activity-content{padding:0 12px 18px}
 #dashboard .activity-chart{gap:3px}
 #dashboard .activity-week{padding:0 1px}
 #dashboard .activity-date{font-size:12px}
 #dashboard .activity-date>span{font-size:11px}
 #dashboard .activity-total{font-size:15px}
 #dashboard .activity-track{height:125px}
}
@media(max-width:350px){#dashboard .tabs button{font-size:13px;gap:4px}#dashboard .tabs .tab-icon{width:17px;height:17px}#dashboard .view-switch button{padding-inline:8px}#dashboard .list-toolbar>.check{margin-left:0}}

#dashboard .week-grid>.empty{grid-column:1/-1;border:0}
#dashboard .event-open{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#645f57}

@media(max-width:350px){#dashboard .planning-controls>.quiet{font-size:12px;padding-inline:2px}#dashboard .view-switch button{font-size:12px;padding-inline:7px}}
