/* Shared density, followed by deliberately composed dashboard screens. */
.owner-workspace .top{padding:12px 24px;align-items:center;min-height:64px}
.owner-workspace .top h1{font-size:22px}
.owner-workspace .wrap,.owner-workspace .wrap.ns-page,.owner-workspace .wrap.pr-cal-page{padding:18px 24px 36px}
.owner-workspace .ow-page,.owner-workspace .ow-production-summary{gap:14px}
.owner-workspace .ow-intro{margin:0}
.owner-workspace .ow-intro .ow-eyebrow{margin-bottom:4px}
.owner-workspace .ow-intro h2{margin-bottom:4px}
.owner-workspace .ow-stats,.owner-workspace .ow-two-col{gap:12px}
.owner-workspace .ow-stat,.owner-workspace .ow-rel-stats .ow-stat,.owner-workspace .ow-geo-stats .ow-stat,.owner-workspace .ow-production-stats .ow-stat{padding:13px 16px}
.owner-workspace .ow-stat>strong{margin:5px 0}
.owner-workspace .ow-card{padding:16px}
.owner-workspace .ow-card-head{margin-bottom:12px}
.owner-workspace .ow-empty{padding:10px 0 12px}
.owner-workspace .ow-empty p{margin-top:5px}
.owner-workspace .ow-info{padding:10px 14px}
.owner-workspace .ow-info p{margin:0}
.owner-workspace .ow-table-note{margin:0 0 10px}
.owner-workspace .ow-est-intro{margin-bottom:14px}
.owner-workspace .ow-est-stats{margin-bottom:14px}
.owner-workspace .ow-rel-directory{gap:12px;margin-bottom:12px}
.owner-workspace .ow-perf-filters{padding:10px 12px;gap:10px}
.owner-workspace .ow-perf-filter{gap:4px}
.owner-workspace .ow-perf-filters select{min-height:34px;padding-top:6px;padding-bottom:6px}
.owner-workspace .ow-data-table th,.owner-workspace .ow-data-table td{padding:10px}

@media(min-width:1000px){
  .owner-workspace .top>div:first-child>div{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
  .owner-workspace .top .sub{margin:0;max-width:none}
  .owner-workspace .side{padding-top:16px}
  .owner-workspace .brand{padding-bottom:8px}
  .owner-workspace .brand .bdrop{width:72px;height:72px}
  .owner-workspace .bhead{gap:7px}
  .owner-workspace .btrex{margin-top:4px}
  .owner-workspace .grp{padding-top:10px;padding-bottom:5px}
  .owner-workspace .nav a{min-height:34px;padding-top:7px;padding-bottom:7px}
  .owner-workspace .side-foot{padding-top:12px}
  .owner-workspace .ow-theme{margin-bottom:8px}
  .owner-workspace .ow-review-intro,.owner-workspace .ow-est-intro,.owner-workspace .ow-geo-intro{flex-direction:row;align-items:center;gap:16px}
  .owner-workspace .ow-review-week{align-self:center}
  .owner-workspace .ow-review-week label{gap:4px}
  .owner-workspace .ow-review-week input{padding:7px 10px;min-height:35px}
  .owner-workspace .ow-review-week .btn{min-height:35px;padding-top:7px;padding-bottom:7px}

  /* The complete weekly summary and commitments form the first screen. */
  .owner-workspace #weekly .ow-review-page{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
  .owner-workspace #weekly .ow-review-page>*{grid-column:1/-1}
  .owner-workspace #weekly #ow-weekly-capacity{grid-column:1}
  .owner-workspace #weekly #ow-weekly-capacity+.ow-stats{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .owner-workspace #weekly .ow-cap-overview{height:100%;box-sizing:border-box}
  .owner-workspace #weekly .ow-stat{padding:10px 14px}
  .owner-workspace #weekly .ow-cap-overview-values{gap:12px}
  .owner-workspace #weekly .ow-cap-overview-values strong{margin-top:3px}
  .owner-workspace #weekly .ow-cap-overview>.ow-muted{margin:8px 0 0}
  .owner-workspace #weekly .ow-weekly-focus{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .owner-workspace #weekly .ow-two-col>.ow-card:only-child{grid-column:1/-1}
  .owner-workspace .ow-review-actions-top{gap:10px}
  .owner-workspace #weekly .ow-empty{padding:8px 0}
  .owner-workspace #weekly .ow-empty p{max-width:none}
  .owner-workspace .ow-action-refresh{margin-top:6px;min-height:28px;padding:5px 8px}
  .owner-workspace .ow-action-row{padding:11px 0}
  .owner-workspace .ow-review-attention button{padding:8px 0}
  .owner-workspace .ow-review-details summary{padding:10px 0}

  .owner-workspace .ow-cap-weeks{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .owner-workspace .ow-cap-week{padding:12px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:10px;align-content:start}
  .owner-workspace .ow-cap-week>*{grid-column:1/-1}
  .owner-workspace .ow-cap-week .ow-cap-gap{grid-column:1}
  .owner-workspace .ow-cap-week .ow-cap-mini{grid-column:2;align-self:center}
  .owner-workspace .ow-cap-mini>span{flex-direction:column;gap:2px}
  .owner-workspace .ow-cap-mini b{text-align:left}
  .owner-workspace .ow-cap-gap{margin:8px 0;min-height:0}
  .owner-workspace .ow-cap-track{margin-top:10px}
  .owner-workspace .ow-cap-week>.ow-muted{margin:6px 0 8px}
  .owner-workspace .ow-cap-week>.btn{justify-self:start;min-height:30px;padding:6px 9px}
  .owner-workspace .ow-cap-roster-summary{margin-bottom:10px}
  .owner-workspace .ow-cap-assumptions>div{padding:5px 0}
  .owner-workspace .ow-cap-assumptions+.ow-muted{margin:8px 0 0}
  .owner-workspace .ow-cap-page .ow-two-col>.ow-card{padding:14px}
  .owner-workspace .ow-cap-page .ow-card>.ow-empty{padding:6px 0}

  /* Long data sets scroll within a complete, labelled working panel. */
  .owner-workspace .ow-performance>.ow-card>.scroll{max-height:clamp(140px,calc(100dvh - 555px),420px);overflow:auto;scrollbar-gutter:stable}
  .owner-workspace .ow-performance>.ow-card>.scroll thead{position:sticky;top:0;z-index:1;background:var(--surface2)}
  .owner-workspace .ow-performance .ow-card>.ow-footnote{margin-top:10px}
  .owner-workspace .ow-perf-story{padding:12px 16px;gap:16px}
  .owner-workspace .ow-perf-story h3{font-size:15px;margin:5px 0}
  .owner-workspace #acquisition .ow-performance>.ow-card>.scroll{max-height:clamp(110px,calc(100dvh - 665px),360px)}
  .owner-workspace :is(#eleads,#epeople) .escroll{max-height:clamp(180px,calc(100dvh - 430px),700px)}
  .owner-workspace #eleads .kbody{max-height:clamp(160px,calc(100dvh - 485px),650px)}
  .owner-workspace #datareview .ow-card>.scroll{max-height:clamp(140px,calc(100dvh - 600px),500px);overflow:auto;scrollbar-gutter:stable}
  .owner-workspace #datareview .ow-card>.scroll thead{position:sticky;top:0;z-index:1;background:var(--surface2)}

  .owner-workspace .ow-geo-map-head{padding:12px 16px}
  .owner-workspace .ow-geo-canvas{height:clamp(260px,calc(100dvh - 430px),550px)}
  .owner-workspace .ow-geo-detail{padding:16px;max-height:clamp(318px,calc(100dvh - 372px),608px);overflow-y:auto;scrollbar-gutter:stable}
  .owner-workspace .ow-geo-city-stats{margin:14px 0 10px;gap:14px 12px}
  .owner-workspace .ow-geo-sample{padding-bottom:10px;margin-bottom:12px}
  .owner-workspace .ow-geo-services{margin-bottom:12px}
  .owner-workspace .ow-geo-services h3{margin-bottom:10px}
  .owner-workspace .ow-geo-services>div{margin-bottom:8px}
  .owner-workspace .ow-geo-legend{padding:9px 14px 5px}
  .owner-workspace .ow-geo-coverage{padding:0 14px 9px}
  .owner-workspace .ow-hero{padding:18px 22px}
  .owner-workspace .ow-hero-value{margin:10px 0 6px}
  .owner-workspace .ow-line-chart{max-height:140px;margin-top:12px}
  .owner-workspace .ow-month-chart{height:160px}
  .owner-workspace .ow-calendar-heading{padding:16px 20px}
}

@media(min-width:1000px) and (max-width:1199px){
  .owner-workspace .ow-cap-weeks{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:639px){
  .owner-workspace .top{padding:12px 16px}
  .owner-workspace .wrap,.owner-workspace .wrap.ns-page,.owner-workspace .wrap.pr-cal-page{padding:16px 16px 32px}
  .owner-workspace .ow-review-intro,.owner-workspace .ow-perf-intro{gap:12px}
  .owner-workspace .ow-card{padding:16px}
}

/* One title row; account actions live with workspace identity in the sidebar. */
.owner-workspace .top{min-height:62px;padding:10px 24px;flex-wrap:nowrap}
.owner-workspace .top .sub,.owner-workspace .top .uchip{display:none}
.owner-workspace .top>div:last-child{justify-content:flex-end}
.owner-workspace .ow-account{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.owner-workspace .ow-account>span{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--muted)}
.owner-workspace .ow-account .ow-signout{margin:0;white-space:nowrap}
.owner-workspace .ow-section-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;flex-shrink:0;border-bottom:1px solid var(--border);padding-bottom:12px}
.owner-workspace .ow-section-tabs{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.owner-workspace .ow-section-tabs button{border:1px solid transparent;background:transparent;color:var(--muted);padding:9px 13px;border-radius:7px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.owner-workspace .ow-section-tabs button[aria-selected=true]{color:var(--accent);background:var(--surface);border-color:var(--border);box-shadow:0 1px 2px #00000005}
.owner-workspace .ow-section-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.owner-workspace .ow-layout,.owner-workspace #weekly .ow-review-page.ow-layout{display:flex;flex-direction:column;gap:14px;min-width:0}
.owner-workspace .ow-screen{display:flex;flex-direction:column;gap:14px;min-width:0}
.owner-workspace .ow-screen[hidden],.owner-workspace .ow-layout [hidden]{display:none!important}
.owner-workspace .ow-layout-context{font-size:11px;color:var(--muted);margin:0}
.owner-workspace .ow-layout-notes{font-size:10px;color:var(--muted);position:relative;flex-shrink:0}
.owner-workspace .ow-layout-notes>summary{cursor:pointer;width:fit-content;padding:3px 0}
.owner-workspace .ow-layout-notes>.ow-footnote{margin:8px 0 0;font-size:11px}
.owner-workspace .ow-show-records>.ow-screen,.owner-workspace .ow-show-records>.ow-perf-filters,.owner-workspace .ow-show-records>.ow-stats{display:none!important}
.owner-workspace .ow-est-intro .ow-intro,.owner-workspace .ow-rel-intro .ow-intro{display:none}
.owner-workspace .ow-est-intro{justify-content:flex-end}
.owner-workspace .ow-production .ow-calendar-toolbar{justify-content:space-between;gap:12px;flex-wrap:wrap}
.owner-workspace .ow-production .ow-calendar-actions{margin-left:auto}

@media(min-width:1000px) and (min-height:700px), (min-width:640px) and (max-width:999px) and (min-height:850px){
  .owner-workspace .app{height:100dvh}
  .owner-workspace .wrap{min-height:0;padding:16px 24px 20px}
  .owner-workspace .view.ow-composed-view{height:100%;max-width:none}
  .owner-workspace .ow-layout,.owner-workspace #weekly .ow-review-page.ow-layout{height:100%;min-height:0}
  .owner-workspace .ow-layout>.ow-stats,.owner-workspace .ow-layout>.ow-perf-filters,.owner-workspace .ow-layout>.ow-cap-toolbar{flex-shrink:0}
  .owner-workspace .ow-screen{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}
  .owner-workspace .ow-screen>.ow-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
  .owner-workspace .ow-screen>.ow-card>.scroll,.owner-workspace .ow-screen .ow-geo-table-wrap{flex:1;min-height:0;max-height:none;overflow:auto;scrollbar-gutter:stable}
  .owner-workspace .ow-screen .scroll thead,.owner-workspace .ow-screen .ow-geo-table-wrap thead{position:sticky;top:0;z-index:1;background:var(--surface)}
  .owner-workspace .ow-screen>.ow-card>:not(.scroll){flex-shrink:0}
  .owner-workspace .ow-layout>.ow-layout-notes[open]>.ow-footnote{position:absolute;bottom:28px;left:0;z-index:5;max-width:760px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 30px #0002}
  .owner-workspace .ow-screen>.ow-two-col{min-height:0;flex:1;align-items:stretch}
  .owner-workspace .ow-screen>.ow-two-col>.ow-card{min-height:0;overflow:auto;scrollbar-gutter:stable}
  .owner-workspace #pulse .ow-screen-snapshot{display:grid;grid-template-rows:minmax(245px,1.2fr) minmax(220px,1fr);overflow:visible}
  .owner-workspace #pulse .ow-overview-grid{min-height:0;gap:14px;grid-template-columns:minmax(0,2.2fr) minmax(220px,1fr)}
  .owner-workspace #pulse .ow-hero{min-height:0;display:flex;flex-direction:column;justify-content:center;padding:18px 24px}
  .owner-workspace #pulse .ow-line-chart{min-height:0;flex:1;width:100%;max-height:none;margin-top:12px}
  .owner-workspace #pulse .ow-hero-value{font-size:42px;margin:8px 0 4px}
  .owner-workspace #pulse .ow-side-stats{min-height:0;gap:10px}
  .owner-workspace #pulse .ow-side-stats .ow-stat{padding:10px 16px;display:flex;flex-direction:column;justify-content:center}
  .owner-workspace #pulse .ow-side-stats .ow-stat>strong{font-size:28px;margin:3px 0}
  .owner-workspace #pulse .ow-attention{padding:8px 0}
  .owner-workspace #pulse .ow-attention p{margin:4px 0 6px}
  .owner-workspace #pulse .ow-attention .btn{padding:5px 0;min-height:0;border:0;background:transparent;color:var(--accent)}
  .owner-workspace #pulse .ow-screen-planning{justify-content:flex-start}
  .owner-workspace #weekly .ow-screen-week{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:auto minmax(0,1fr);overflow:visible}
  .owner-workspace #weekly .ow-screen-week>#ow-weekly-capacity{grid-column:1;min-height:0}
  .owner-workspace #weekly .ow-screen-week>.ow-stats{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}
  .owner-workspace #weekly .ow-screen-week>.ow-weekly-focus{grid-column:1/-1;min-height:0}
  .owner-workspace #weekly .ow-weekly-focus>.ow-card{overflow:auto;min-height:0}
  .owner-workspace #weekly .ow-section-bar{min-height:49px}
  .owner-workspace #weekly .ow-review-week label{flex-direction:row;align-items:center;gap:8px}
  .owner-workspace #weekly .ow-review-week input{width:142px}
  .owner-workspace .ow-screen-edit>.ow-cap-editor{flex:1;min-height:0;overflow:auto}
  .owner-workspace #capacity .ow-cap-weeks{flex:1;min-height:0}
  .owner-workspace #capacity .ow-cap-week{align-content:center;overflow:auto}
  .owner-workspace #capacity .ow-cap-toolbar p{margin:4px 0 0}
  .owner-workspace .ow-show-records>.ow-perf-detail{flex:1;min-height:0;display:flex;flex-direction:column;margin:0}
  .owner-workspace .ow-perf-detail>.scroll{flex:1;min-height:0;overflow:auto;max-height:none}
  .owner-workspace #map .ow-screen-map{overflow:visible}
  .owner-workspace #map .ow-geo-card{flex:1;min-height:0;display:flex;flex-direction:column}
  .owner-workspace #map .ow-geo-explorer{flex:1;min-height:0}
  .owner-workspace #map .ow-geo-map-column{display:flex;flex-direction:column;min-height:0}
  .owner-workspace #map .ow-geo-canvas{flex:1;min-height:180px;height:auto}
  .owner-workspace #map .ow-geo-detail{max-height:none;min-height:0;overflow:auto}
  .owner-workspace #map .ow-geo-filters{gap:10px}
  .owner-workspace #map .ow-geo-filters label{display:flex;align-items:center;gap:8px}
  .owner-workspace #map .ow-geo-filters select{margin:0;padding-top:7px;padding-bottom:7px}
  .owner-workspace #prod .ow-production-summary{flex:1;min-height:0;display:grid;grid-template-rows:minmax(230px,1fr) minmax(225px,.9fr)}
  .owner-workspace #prod .ow-production-top{min-height:0}
  .owner-workspace #prod .ow-production-hero{display:flex;flex-direction:column;justify-content:center}
  .owner-workspace #prod .ow-production-summary>.ow-card{min-height:0;display:flex;flex-direction:column}
  .owner-workspace #prod .ow-month-chart{flex:1;min-height:155px;height:auto}
  .owner-workspace #prod .ow-screen-calendar{overflow:visible}
  .owner-workspace #prod .ow-calendar{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 310px;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
  .owner-workspace #prod .ow-calendar-toolbar{grid-column:1/-1;padding:12px 16px}
  .owner-workspace #prod .ow-calendar-grid{grid-column:1;grid-row:2;min-height:0;grid-template-rows:auto repeat(var(--calendar-weeks),minmax(0,1fr))}
  .owner-workspace #prod .ow-calendar-legend{grid-column:1;grid-row:3;padding:10px 14px}
  .owner-workspace #prod :is(.ow-day,.ow-adjacent){min-height:0;padding:8px;overflow:hidden}
  .owner-workspace #prod .ow-day>strong{font-size:13px}
  .owner-workspace #prod .ow-day-rate{font-size:9px;margin-top:auto}
  .owner-workspace #prod .ow-weekday{padding:8px}
  .owner-workspace #prod :is(.ow-day-editor,.ow-editor-placeholder){grid-column:2;grid-row:2/4;margin:0;border:0;border-left:1px solid var(--border);border-radius:0;padding:18px;min-height:0;overflow:auto}
  .owner-workspace #prod .ow-editor-placeholder{flex-direction:column;align-items:flex-start;justify-content:center}
  .owner-workspace #prod .ow-entry-fields{grid-template-columns:1fr 1fr;gap:12px}
  .owner-workspace #prod .ow-live-rate{grid-column:1/-1;border:0;padding:8px 0}
  .owner-workspace #prod .ow-note-label{margin-top:12px}
  .owner-workspace #prod .ow-note-label textarea{min-height:60px}
  .owner-workspace #prod .ow-entry-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  .owner-workspace #prod .ow-entry-footer>div{flex-wrap:wrap;gap:6px}
  .owner-workspace #prod .ow-calendar>.ow-save-message{grid-column:1/-1;grid-row:4;margin:0}
}
@media(max-width:999px){
  .owner-workspace .ow-section-bar{flex-wrap:wrap}
  .owner-workspace .ow-layout>.ow-screen{padding-bottom:12px}
  .owner-workspace .ow-layout .ow-screen>.ow-card>.scroll{max-height:55dvh;overflow:auto}
  .owner-workspace .ow-layout .ow-screen-map .ow-geo-canvas{height:380px}
}
@media(max-width:639px){
  .owner-workspace .top{padding:10px 16px;display:block}
  .owner-workspace .top>div:last-child:has(.toolbar:empty){display:none}
  .owner-workspace .ow-section-tabs{gap:2px}
  .owner-workspace .ow-section-tabs button{padding:8px 10px;font-size:11px}
  .owner-workspace .ow-section-bar>.btn{font-size:10px}
}

.owner-workspace .ow-rel-intro>div{display:none}
.owner-workspace .ow-rel-intro{justify-content:flex-end}
@media(min-width:1000px) and (min-height:700px), (min-width:640px) and (max-width:999px) and (min-height:850px){
  .owner-workspace :is(#epeople,#eleads).on{height:100%;display:flex;flex-direction:column;min-height:0;max-width:none}
  .owner-workspace :is(#epeople,#eleads)>.tbl{flex:1;min-height:0;display:flex;flex-direction:column}
  .owner-workspace :is(#epeople,#eleads) .escroll{flex:1;min-height:0;max-height:none}
  .owner-workspace :is(#epeople,#eleads)>.hint{flex-shrink:0;margin-bottom:0}
  .owner-workspace #eleads>.board{flex:1;min-height:0;align-items:stretch}
  .owner-workspace #eleads .kcol{display:flex;flex-direction:column;min-height:0}
  .owner-workspace #eleads .kbody{flex:1;min-height:0;max-height:none}
}
.owner-workspace .top :is(.ow-review-week,.ow-cap-date-nav){display:flex;align-items:center;gap:7px}
.owner-workspace .top :is(.ow-review-week,.ow-cap-date-nav) label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}
.owner-workspace .top :is(.ow-review-week,.ow-cap-date-nav) input{width:142px;min-height:35px;padding:7px 10px}
.owner-workspace .top :is(.ow-review-week,.ow-cap-date-nav) .btn{min-height:35px;padding:7px 11px}
@media(max-width:639px){.owner-workspace .top :is(.ow-review-week,.ow-cap-date-nav) label>span{display:none}}
@media(min-width:1000px) and (min-height:700px), (min-width:640px) and (max-width:999px) and (min-height:850px){
  .owner-workspace #prod .ow-live-rate{grid-column:2;align-self:center;padding:0;gap:3px}
  .owner-workspace #prod .ow-live-rate>small{font-size:9px}
  .owner-workspace #prod .ow-entry-footer{margin-top:12px;gap:8px}
  .owner-workspace #prod .ow-entry-footer>div{display:grid;grid-template-columns:1fr 1fr}
  .owner-workspace #prod .ow-entry-footer .btn.pri{grid-column:1/-1}
}
.owner-workspace .ow-geo-services>summary{font-size:11px;font-weight:500;color:var(--text);cursor:pointer;padding:4px 0}
.owner-workspace .ow-geo-services[open]>summary{margin-bottom:10px}
@media(min-width:1000px) and (min-height:700px), (min-width:640px) and (max-width:999px) and (min-height:850px){
  .owner-workspace .ow-perf-filters{padding:10px 12px}
  .owner-workspace .ow-perf-filter{flex-direction:row;align-items:center;gap:8px}
  .owner-workspace .ow-perf-filter select{max-width:230px}
}

@media(min-width:640px) and (max-width:999px) and (min-height:850px){
  .owner-workspace .top{flex-wrap:wrap;gap:8px}
  .owner-workspace #pulse .ow-screen-snapshot{grid-template-rows:minmax(300px,1.1fr) minmax(300px,1fr)}
  .owner-workspace #pulse .ow-overview-grid{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto;gap:10px}
  .owner-workspace #pulse .ow-side-stats{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto}
  .owner-workspace #pulse .ow-side-stats .ow-stat{padding:10px}
  .owner-workspace #pulse .ow-side-stats .ow-stat>strong{font-size:24px}
  .owner-workspace #pulse .ow-side-stats .ow-stat small{font-size:9px}
  .owner-workspace #pulse .ow-two-col{grid-template-columns:1fr 1fr}
  .owner-workspace #pulse .ow-card-head{flex-wrap:wrap;gap:6px}
  .owner-workspace #weekly .ow-screen-week{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}
  .owner-workspace #weekly .ow-screen-week>#ow-weekly-capacity,.owner-workspace #weekly .ow-screen-week>.ow-stats{grid-column:1}
  .owner-workspace #weekly .ow-screen-week>.ow-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .owner-workspace #weekly .ow-weekly-focus{grid-template-columns:1fr 1fr}
  .owner-workspace #weekly .ow-weekly-focus .ow-card-head{flex-wrap:wrap}
  .owner-workspace #map .ow-geo-explorer{grid-template-columns:minmax(0,1fr) 220px}
  .owner-workspace #map .ow-geo-filters{flex-wrap:wrap}
  .owner-workspace #map .ow-layout .ow-screen-map .ow-geo-canvas{height:auto}
  .owner-workspace #prod .ow-calendar{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(360px,1fr) auto auto;overflow:auto}
  .owner-workspace #prod :is(.ow-day-editor,.ow-editor-placeholder){grid-column:1;grid-row:4;border-left:0;border-top:1px solid var(--border)}
}

/* Leads is a working directory: its views carry the counts above the table. */
.owner-workspace #epeople .ow-rel-directory{gap:8px;margin-bottom:10px;flex-shrink:0}
.owner-workspace #epeople .ow-rel-views{align-items:center;gap:10px;flex-wrap:wrap}
.owner-workspace #epeople .ow-rel-views>.ow-tabs{gap:3px;width:auto}
.owner-workspace #epeople .ow-rel-views>.ow-tabs button{padding:8px 10px;min-height:34px}
.owner-workspace #epeople .ow-rel-table-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.owner-workspace #epeople .ow-rel-table-actions>.fbar{margin:0;gap:6px}
.owner-workspace #epeople .ow-rel-table-actions .fsp{display:none}
.owner-workspace #epeople .ow-rel-table-actions>.btn{padding:7px 10px;min-height:32px;font-size:11px}
.owner-workspace #epeople .ow-rel-applied{padding:8px 12px}
@media(max-width:639px){
  .owner-workspace #epeople .ow-rel-table-actions{margin-left:0;width:100%;justify-content:space-between}
  .owner-workspace #epeople .ow-rel-views>.ow-tabs{width:100%}
}

/* Routine entry stays with the number or record being edited. */
.owner-workspace .ow-cap-target-guide{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.owner-workspace .ow-cap-target-guide strong{font-size:12px;font-weight:500}
.owner-workspace .ow-cap-target-guide p{font-size:11px;color:var(--muted);line-height:1.5;margin:4px 0 0}
.owner-workspace .ow-cap-target-guide .btn{flex-shrink:0}
.owner-workspace #capacity .ow-cap-week{display:flex;flex-direction:column;align-content:start}
.owner-workspace #capacity .ow-cap-week>*{flex-shrink:0}
.owner-workspace #capacity .ow-cap-week-editing .ow-cap-gap{margin:6px 0}
.owner-workspace #capacity .ow-cap-week-editing .ow-cap-gap small,.owner-workspace #capacity .ow-cap-week-editing>.ow-cap-track,.owner-workspace #capacity .ow-cap-week-editing>.ow-muted{display:none}
.owner-workspace #capacity .ow-cap-week-editing .ow-cap-mini{margin-bottom:10px}
.owner-workspace #capacity .ow-cap-week .ow-cap-gap,.owner-workspace #capacity .ow-cap-week .ow-cap-mini{grid-column:1/-1}
.owner-workspace #capacity .ow-cap-mini{align-self:stretch}
.owner-workspace #capacity .ow-cap-mini>span{flex-direction:row;align-items:baseline}
.owner-workspace #capacity .ow-cap-mini b{text-align:right}
.owner-workspace #capacity .ow-cap-gap{margin:18px 0 14px}
.owner-workspace #capacity .ow-cap-week>.ow-muted{flex:0}
.owner-workspace .ow-cap-editor{padding:0;margin:12px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
.owner-workspace .ow-cap-editor>.ow-card-head{margin:16px 0}
.owner-workspace .ow-cap-editor-week{padding-top:12px;margin-top:0}
.owner-workspace .ow-cap-editor-week .ow-cap-input-help{font-size:10px;margin:6px 0 8px;line-height:1.5}
.owner-workspace .ow-cap-option{margin-top:6px}
.owner-workspace .ow-cap-option summary{font-size:11px;padding:5px 0;cursor:pointer;color:var(--muted)}
.owner-workspace .ow-cap-option[open] summary{margin-bottom:6px}
.owner-workspace .ow-cap-editor-week .ow-cap-form-actions{gap:6px;margin-top:12px;justify-content:flex-start}
.owner-workspace .ow-cap-editor-week .ow-cap-form-actions>.ow-muted{width:100%;font-size:10px}
.owner-workspace .ow-cap-editor-week .ow-cap-form-actions .btn{padding:6px 10px;min-height:32px;font-size:11px}
.owner-workspace .ow-cap-editor-week .ow-cap-days{gap:4px}
.owner-workspace .ow-cap-editor-week .ow-cap-days label{min-width:23px;flex:1}
.owner-workspace .ow-cap-editor-week .ow-cap-days span{padding:6px 2px;font-size:9px}
.owner-workspace .ow-cap-week-first .ow-cap-editor{border-color:#ffffff30}
.owner-workspace .ow-cap-week-first .ow-cap-field>span,.owner-workspace .ow-cap-week-first .ow-cap-option summary,.owner-workspace .ow-cap-week-first .ow-cap-check{color:var(--hero-muted)}
.owner-workspace .ow-cap-week-first .ow-cap-error{color:#ffbea3}
.owner-workspace .ow-cap-week-first .ow-cap-form-actions .pri{background:var(--hero-text);color:var(--hero);border-color:var(--hero-text)}
.owner-workspace [data-cap-settings-card]:has([data-cap-editor])>.ow-card-head,.owner-workspace [data-cap-settings-card]:has([data-cap-editor])>.ow-cap-assumptions,.owner-workspace [data-cap-settings-card]:has([data-cap-editor])>.ow-muted{display:none}
.owner-workspace [data-cap-settings-card] .ow-cap-editor{margin:0;border:0}
.owner-workspace [data-cap-settings-card] .ow-cap-month-inputs{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.owner-workspace [data-cap-settings-card] .ow-cap-editor fieldset{margin-bottom:16px}
.owner-workspace [data-cap-settings-card] .ow-cap-editor .ow-cap-editor-fields{margin-bottom:0}
.owner-workspace .ow-goal-form{margin:14px 0 0;min-width:0}
.owner-workspace .ow-goal-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.owner-workspace .ow-goal-label>label{font-size:11px;color:var(--hero-muted)}
.owner-workspace .ow-goal-label>span{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.owner-workspace .ow-goal-label input{width:76px;min-width:0;border:1px solid #ffffff40;border-radius:6px;padding:6px 8px;background:#ffffff10;color:inherit;font:inherit}
.owner-workspace .ow-goal-actions{display:flex;gap:9px}
.owner-workspace .ow-goal-actions .ow-link{font-size:11px;color:var(--hero-text)}
.owner-workspace .ow-goal-actions button:disabled{opacity:.4;cursor:default}
.owner-workspace .ow-goal-help{font-size:10px;color:var(--hero-muted);line-height:1.5;margin:6px 0 0}
.owner-workspace .ow-goal-status{font-size:10px;margin-top:5px;color:var(--hero-muted)}
.owner-workspace .ow-goal-form .ow-error{color:#ffbea3}
.owner-workspace .ow-goal-status:empty,.owner-workspace .ow-goal-form .ow-error:empty{display:none}
.owner-workspace .etable.fixed .cell.ow-inline-edit,.owner-workspace .cell.ow-inline-edit{display:grid;white-space:normal;overflow:visible;gap:5px;cursor:default;min-width:0}
.owner-workspace .ow-inline-edit .cellinput{max-width:100%;box-sizing:border-box}
.owner-workspace .ow-inline-edit [role=alert]{font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:var(--red)}
.owner-workspace .ow-inline-edit .ow-link{color:var(--accent);justify-self:start;text-align:left;min-height:24px;padding:3px 0;font-size:11px}
.owner-workspace .ow-inline-edit .btn{padding:4px 7px;min-height:26px;font-size:10px}
@media(max-width:650px){
  .owner-workspace .ow-cap-target-guide{align-items:flex-start;flex-direction:column;gap:10px}
  .owner-workspace .ow-cap-editor-week{padding:12px 0 0}
  .owner-workspace [data-cap-settings-card] .ow-cap-month-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .owner-workspace #capacity .ow-cap-week{display:flex}
}
