.ws-nav-group{margin:6px 10px;border:1px solid #293445;border-radius:10px;overflow:hidden}.ws-nav-group>summary{padding:12px;color:#cbd5e1;font-weight:600;font-size:13px;cursor:pointer}.ws-nav-group[open]>summary{color:#fff}.ws-nav-group .nav{width:calc(100% - 8px);margin:2px 4px;text-align:left;border:0;background:transparent;color:inherit;white-space:normal}.ws-nav-group .nav.active{background:#253349;color:#fff}.ws-nav-group>summary:focus-visible,.ws-nav-group .nav:focus-visible{outline:2px solid #60a5fa;outline-offset:-3px}.ws-nav-group[data-ws-group=admin]{margin-top:20px}.head-title{position:relative}.head-title h1{display:inline}.ws-help{display:inline-block;position:relative;margin-left:10px;vertical-align:middle}.ws-help-button{border:0;background:transparent;padding:2px 5px;color:#64748b;font-size:20px;cursor:pointer}.ws-help-panel{position:absolute;top:30px;left:-10px;z-index:35;width:min(380px,calc(100vw - 48px));padding:16px;border:1px solid #dbe3ef;border-radius:10px;box-shadow:0 8px 30px #16233b26;background:#fff;color:#334155;font-size:13px;line-height:1.6;font-weight:400}.ws-help-panel[hidden]{display:none}.ws-help-panel{max-height:70vh;overflow-y:auto;overflow-wrap:anywhere}.ws-help-panel ul{margin:8px 0 0;padding-left:18px}.ws-help-panel li{margin:6px 0}.ws-help-panel li:last-child{margin-bottom:0}.ws-help-panel li>b{font-weight:600;color:#172033}.ws-home{display:grid;gap:16px;margin-bottom:16px;min-width:0}.ws-home .card{margin:0}.ws-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ws-heading h3{margin:0}.ws-shortcut-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.ws-shortcut-links button{background:#f1f6ff;color:#174ba3;border:1px solid #dbe8ff}.ws-favorites{position:relative;font-size:13px}.ws-favorites>summary{cursor:pointer;color:#64748b}.ws-favorites>div{position:absolute;right:0;top:26px;z-index:25;background:#fff;border:1px solid #dbe3ef;box-shadow:0 8px 30px #16233b26;padding:14px;border-radius:10px;width:230px;max-height:45vh;overflow:auto}.ws-favorites label{display:flex;gap:8px;align-items:center;margin:6px 0}.ws-favorites input{width:auto}.ws-favorites small{display:block;color:#64748b;margin-top:10px}.ws-ranking{border-top:3px solid #2563eb}.ws-rank-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:16px}.ws-rank-filters label{min-width:140px;flex:1;max-width:260px;font-size:12px;color:#64748b}.ws-rank-filters select{width:100%;min-height:40px;margin-top:4px}.ws-rank-note{color:#64748b;font-size:12px;line-height:1.7}.ws-ranking-table{overflow:auto;max-width:100%}.ws-ranking-table table{width:100%;min-width:0}.ws-ranking-table th,.ws-ranking-table td{white-space:normal}.ws-ranking-table .ws-rank-self{background:#eff6ff;font-weight:600}.ws-rank-scope{color:#64748b;font-size:11px;font-weight:400}
@media(max-width:640px){.ws-help{position:static}.ws-help-panel{left:0;top:42px;width:min(340px,calc(100vw - 48px))}.ws-rank-filters{gap:8px}.ws-rank-filters label{min-width:120px;max-width:none}.ws-heading>button{font-size:12px}.ws-shortcut-links button{flex:1 1 calc(50% - 8px);min-height:42px}.ws-ranking-table td,.ws-ranking-table th{font-size:12px;padding:8px}.ws-favorites>div{max-width:calc(100vw - 56px)}}
/* Only the navigation viewport may shrink. Details must keep their natural
   height, or flex shrink plus overflow:hidden clips both links and summaries. */
#sidebar > .side-brand,
#sidebar > .profile {
  flex: 0 0 auto;
}
#sidebar > #nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  color-scheme: dark;
}
#nav > .ws-nav-group {
  flex: 0 0 auto;
}
/* Keep the retained target switch readable and easy to tap on narrow screens. */
#leafletGoalVisibilityForm > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
#leafletGoalVisibilityForm input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.dhead > .business-return {
  flex: 0 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border: 0;
  background: #eef5ff;
  color: #1758ac;
  white-space: nowrap;
}
.dhead > .business-return + h3 { flex: 1 1 auto; }
.page-back {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 11px;
  border-color: #d5e3f8;
  background: #eef5ff;
  color: #1758ac;
  white-space: nowrap;
}
@media(max-width:640px) {
  .dhead > .business-return { flex-basis: auto; min-width: 44px; min-height: 44px; font-size: 12px; }
  .page-back { grid-column: 2; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  header .head-title { grid-column: 1/-1; }
}

/* Homepage: one compact action strip followed by a dense, readable ranking. */
.ws-home{gap:8px;margin-bottom:10px}
.ws-home .card{padding:11px 14px}
.ws-shortcuts{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.ws-shortcuts .ws-heading{display:contents}
.ws-shortcuts .ws-heading h3{grid-column:1}
.ws-shortcuts .ws-favorites{grid-column:3;grid-row:1}
.ws-shortcut-links{grid-column:2;grid-row:1;margin:0;gap:6px}
.ws-shortcut-links button{min-height:36px;padding:7px 12px}
.ws-rank-filters{gap:8px;margin-top:8px}
.ws-rank-filters label{display:flex;align-items:center;gap:6px;min-width:180px;max-width:290px;font-size:12px}
.ws-rank-filters select{min-height:36px;margin:0}
.ws-rank-filters>button{min-height:36px;padding:7px 12px}
.ws-ranking-table th,.ws-ranking-table td{padding:7px 9px}
@media(max-width:640px){
 .ws-home{gap:7px;margin-bottom:8px}
 .ws-home .card{padding:10px 11px}
 .ws-shortcuts{grid-template-columns:minmax(0,1fr) auto}
 .ws-shortcuts .ws-heading h3{grid-column:1}
 .ws-shortcuts .ws-favorites{grid-column:2}
 .ws-shortcut-links{grid-column:1/-1;grid-row:2}
 .ws-shortcut-links button{min-height:44px}
 .ws-rank-filters{margin-top:7px}
 .ws-rank-filters label{min-width:calc(50% - 4px);max-width:none;flex:1 1 calc(50% - 4px);align-items:stretch;flex-direction:column;gap:2px}
 .ws-rank-filters select,.ws-rank-filters>button{min-height:44px}
}

.ws-ranking-table{max-height:min(520px,65vh);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.ws-ranking-table thead{position:sticky;top:0;z-index:1;background:#f8fafc}.process-secondary{display:flex;gap:6px;flex-basis:100%;padding-top:6px;border-top:1px solid #e5eaf0}.process-secondary button{font-size:12px}.mg-ranking{max-height:70vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

/* One work-entry row owns the dashboard's local view selection. */
/* Phone rankings use document scrolling: a 70vh inner list can end below
   the visible viewport, and scroll containment then traps the last row. */
@media(max-width:760px){
 .mg-ranking{max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}

.ws-shortcut-links button.active,.ws-shortcut-links button[aria-pressed=true]{background:#176b61;color:#fff;border-color:#176b61}
.ws-shortcuts .ws-home-overview{border:1px solid transparent;border-radius:7px;background:transparent;color:#31556d;font:inherit;font-weight:700;min-height:36px;padding:6px 8px;cursor:pointer}.ws-shortcuts .ws-home-overview:hover{background:#e9f2f8}.ws-shortcuts .ws-home-overview[aria-pressed=true]{background:#176b61;color:#fff;border-color:#176b61}.ws-shortcuts .ws-home-overview:focus-visible{outline:2px solid #357ce6;outline-offset:2px}@media(max-width:760px){.ws-shortcuts .ws-home-overview{min-height:44px}}
/* A compact current-month strip; the six metrics do not form separate cards. */
.home-period{margin:0}.home-period .compact-note{margin:7px 0 10px}.home-period-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;background:#f4f8fa;border-radius:8px;padding:12px}
.home-period-metrics>div{min-width:0}.home-period-metrics span{display:block;font-size:12px;color:#526476}.home-period-metrics strong{display:inline-block;margin-top:5px;font-size:21px;color:#176b61}.home-period-metrics small{margin-left:5px;color:#64748b}
.home-period-note{margin-top:8px;font-size:12px;color:#64748b}.home-period-note p{margin:5px 0}
.home-goals h3{margin:0}.home-goals .compact-note{margin:8px 0}.home-target-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0}.home-target-metrics span{display:block;color:#64748b;font-size:12px}.home-target-metrics strong{display:block;white-space:pre-line;color:#176b61;font-size:14px;line-height:1.7}
@media(max-width:760px){.home-period-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;padding:10px}.home-period-metrics strong{font-size:19px}.home-target-metrics{grid-template-columns:minmax(0,1fr);gap:10px}}
/* Native hidden controls stay hidden despite shared label layout rules. */
.dimension-controls [hidden]{display:none!important}

/* Compact operating-view controls, with explanations available by keyboard. */
.dimension-controls{padding:10px 12px}.dimension-controls>.filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dimension-controls .dimension-control{margin:0;flex:0 1 auto;min-width:0}.dimension-controls .dimension-control input,.dimension-controls .dimension-control select{margin:0;min-height:36px}.dimension-controls .dimension-selection{flex:0 1 290px}.dimension-controls [data-dim-month]{width:150px}.dimension-controls [data-dim-selection]{width:100%;max-width:100%}.dimension-view-tabs{display:flex;gap:4px;flex-wrap:wrap}.dimension-controls button{min-height:36px;padding:6px 10px}.dimension-comparison{padding:9px 12px;font-size:12px}.dimension-comparison>summary{cursor:pointer;color:#31556d}.dimension-comparison[open]>div{margin-top:10px}
.operating-info{position:relative;flex:none;font-size:12px;color:#52677e;margin-left:auto}.operating-info>summary{display:flex;align-items:center;justify-content:center;width:36px;min-height:36px;border-radius:7px;cursor:pointer;list-style:none;font-size:19px;color:#58718e}.operating-info>summary::-webkit-details-marker{display:none}.operating-info>summary:hover{background:#edf4fa}.operating-info>summary:focus-visible{outline:2px solid #357ce6;outline-offset:1px}.operating-info>.operating-info-body{position:absolute;right:0;top:100%;z-index:20;width:min(420px,calc(100vw - 48px));box-sizing:border-box;margin:3px 0 0;padding:12px 14px;border:1px solid #d6e1ec;border-radius:8px;background:#fff;box-shadow:0 7px 22px #203d5c26;line-height:1.65;color:#52677e}.operating-info-body p{margin:0 0 7px}.operating-info-body ul{margin:0;padding-left:18px}.management-compact-controls{padding:9px 12px}.management-compact-controls .mg-toolbar{justify-content:flex-start;align-items:center;gap:8px}.management-compact-controls .mg-periods{margin:0}.responsibility-compact .responsibility-heading{float:right;height:0;position:relative;z-index:2}.responsibility-compact .responsibility-heading .operating-info{position:relative;top:5px}.responsibility-compact .responsibility-metrics{margin:0 0 10px;padding-right:44px}.responsibility-compact .responsibility-path{margin-bottom:7px}.responsibility-compact .responsibility-guide p{margin:3px 0 0}
@media(max-width:760px){.dimension-controls{padding:8px 10px}.dimension-controls>.filter-row{gap:6px}.dimension-controls .dimension-control input,.dimension-controls .dimension-control select,.dimension-controls button,.operating-info>summary{min-height:44px}.operating-info>summary{width:44px}.dimension-controls .dimension-view-tabs{flex-basis:100%;gap:4px}.dimension-controls .dimension-view-tabs button{flex:1;padding:6px 8px}.dimension-controls .dimension-selection{flex:1 1 170px}.dimension-controls [data-dim-month]{width:142px}.responsibility-compact .responsibility-heading .operating-info{top:0}.responsibility-compact .responsibility-metrics{padding-right:46px}.management-compact-controls .mg-toolbar{gap:5px}}

#dimensionNative .filter-row>label[hidden],#dimensionNative .filter-row>button[hidden]{display:none!important}

/* Native prediction filters are replaced by the shared month/period controls. */
#dimensionNative .forecast-filters[hidden]{display:none!important}
#dimensionNative #forecastBody>.cards,#dimensionNative #reportBody>.cards,#businessDimensions .dashboard-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:12px 14px;margin:10px 0;background:#fff;border:1px solid #dce5ef;border-radius:10px}
#dimensionNative #reportBody>.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
#dimensionNative #forecastBody>.cards>.card,#dimensionNative #reportBody>.cards>.card,#businessDimensions .dashboard-stats>.card{min-width:0;border:0;box-shadow:none;background:transparent;border-radius:0;padding:0;margin:0}
#dimensionNative #forecastBody>.cards strong,#dimensionNative #reportBody>.cards strong,#businessDimensions .dashboard-stats strong{display:block;margin:5px 0 0;font-size:21px;line-height:1.4;color:#176b61}
#businessDimensions .dashboard-stats span{display:block;font-size:12px;color:#63748a}
@media(max-width:760px){#dimensionNative #forecastBody>.cards,#businessDimensions .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}#dimensionNative #reportBody>.cards{gap:8px}#dimensionNative #forecastBody>.cards strong,#dimensionNative #reportBody>.cards strong,#businessDimensions .dashboard-stats strong{font-size:18px}}

/* Sales supervision: summary, filters and the directory share one compact panel. */
.supervision-page .responsibility-heading{float:none;height:auto;justify-content:flex-start;margin:0 0 4px}
.supervision-page .responsibility-heading .operating-info{top:0;margin-left:0}
.supervision-page .operating-info>summary{width:auto;gap:6px;min-height:30px;padding:0 4px}
.supervision-page .operating-info>.operating-info-body{left:0;right:auto}
.supervision-page .responsibility-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 12px;margin:0 0 10px}
.supervision-page .responsibility-metrics>div{min-width:0}
.supervision-page .supervision-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.supervision-page .supervision-filters label{margin:0;font-size:12px;color:#64748b}
.supervision-page .supervision-filters select{width:180px;max-width:100%;min-height:36px;margin:0}
.supervision-page .supervision-filters button{min-height:36px;padding:6px 12px}
@media(max-width:760px){
 .supervision-page .operating-info>summary{min-height:44px}
 .supervision-page .responsibility-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:10px}
 .supervision-page .supervision-filters{gap:6px}
 .supervision-page .supervision-filters select{width:145px;min-height:44px}
 .supervision-page .supervision-filters button{min-height:44px;padding:6px 9px}
}

/* Sales follow-up: one compact summary and one directory frame. */
#touchOverview.touch-overview{display:block;padding:10px 12px;margin-bottom:12px}
.touch-overview-totals{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px 12px}
.touch-stat{min-width:0}
.touch-stat-label{display:flex;align-items:center;gap:3px;min-height:28px;font-size:12px;color:#657990;white-space:nowrap}
.touch-stat strong{display:block;font-size:21px;line-height:1.25;color:#126f65;font-variant-numeric:tabular-nums}
.touch-stat strong em{font-size:11px;font-weight:400;font-style:normal;color:#6e8095}
.touch-stat-info{margin-left:0;font-size:12px}
.touch-stat-info>summary{width:24px;min-height:28px;font-size:16px}
.touch-stat-info>.operating-info-body{left:-70px;right:auto;width:min(380px,calc(100vw - 48px));white-space:normal;font-weight:400}
.touch-overview-conversions{display:flex;flex-wrap:wrap;gap:6px 30px;border-top:1px solid #e7edf3;margin-top:9px;padding-top:5px}
.touch-conversion{display:flex;align-items:center;gap:7px}
.touch-conversion strong{font-size:18px}
.touch-directory-section{margin:0 0 12px}
.touch-directory-section>h3{font-size:14px;margin:0 0 8px}
#touchPeople .responsibility-panel,#activityResult .responsibility-panel{margin:0;padding:10px 12px}
#touchPeople .responsibility-metrics,#activityResult .responsibility-metrics{margin-bottom:8px}
.touch-product-fold{padding:9px 12px;margin-bottom:12px}
.touch-product-fold>summary{font-size:13px}
.leaflet-product-content{padding:10px 0 0}
.leaflet-product-content form{margin-bottom:8px}
.leaflet-product-content .filter-row{gap:7px;align-items:end}
.leaflet-product-content label{font-size:12px;gap:3px;min-width:0}
.leaflet-product-content input,.leaflet-product-content select,.leaflet-product-content button,.sales-follow-filters input,.sales-follow-filters select{min-height:34px;padding-top:5px;padding-bottom:5px}
.sales-follow-filters{padding:8px 12px;gap:8px;margin-bottom:10px}
@media(max-width:760px){
 #touchOverview.touch-overview{padding:8px 10px}
 .touch-overview-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px}
 .touch-stat-label{font-size:11px;min-height:28px;gap:1px}
 .touch-stat strong{font-size:19px}
 .touch-stat-info>summary{width:28px;min-height:28px;font-size:15px}
 .touch-stat-info>.operating-info-body{position:fixed;top:auto;left:18px;right:18px;width:auto;margin-top:4px}
 .touch-overview-conversions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 6px}
 .touch-conversion{display:block}
 .touch-conversion .touch-stat-label{white-space:normal;font-size:10px}
 .touch-conversion strong{font-size:18px}
 #touchPeople .responsibility-panel,#activityResult .responsibility-panel{padding:8px 10px}
 .leaflet-product-content .filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .leaflet-product-content .inline-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}
 .leaflet-product-content .inline-actions.hidden{display:none}
 .leaflet-product-content input,.leaflet-product-content select,.leaflet-product-content button,.sales-follow-filters input,.sales-follow-filters select{min-height:40px}
}
.home-tree-title{font-size:14px;margin:0 0 8px}.home-period .ws-heading,.home-goals .ws-heading{gap:8px}.home-period .ws-heading .operating-info,.home-goals .ws-heading .operating-info{margin-left:0}.home-period .ws-heading h3,.home-goals .ws-heading h3{margin-right:auto}.home-period .home-period-note{margin-top:0}
.workbench-today{padding:8px 12px;margin-bottom:10px}
.workbench-today .ws-heading{margin-bottom:0;gap:6px}
.workbench-today-title{display:flex;align-items:center;gap:5px;margin-right:auto;min-width:0}
.workbench-today .workbench-today-title h3{margin:0;font-size:14px}
.workbench-today .compact-note{margin:2px 0 5px;font-size:11px}
.workbench-today .home-period-metrics{margin:0;gap:6px 12px}
.workbench-today .home-period-metrics>div{padding:4px 0}
.workbench-today .home-period-metrics strong{font-size:18px;margin-top:2px;line-height:1.3}
.workbench-today .home-period-metrics span{font-size:11px;line-height:1.35}
.workbench-today .operating-info{position:relative;margin:0}
.workbench-today .operating-info-body{left:0;right:auto;width:min(380px,calc(100vw - 48px));max-height:50vh;overflow:auto}
@media(max-width:600px){
 .workbench-today{padding:6px 10px}
 .workbench-today .home-period-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px}
 .workbench-today .operating-info-body{position:fixed;left:18px;right:18px;width:auto;top:auto}
}
@media(max-width:760px){
 .sales-follow-filters>label{display:flex;flex-direction:row;align-items:center;gap:8px;width:100%}
 .sales-follow-filters>label select{flex:1;min-width:0}
 .sales-follow-filters #activityCustom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .sales-follow-filters #activityCustom.hidden{display:none}
 .sales-follow-filters #activityCustom label{min-width:0}
 .sales-follow-filters #activityCustom input{width:100%;min-width:0}
 #touchPeople .responsibility-metrics,#activityResult .responsibility-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-right:35px}
 #touchPeople .responsibility-metrics small,#activityResult .responsibility-metrics small{white-space:nowrap;font-size:10px}
 #touchPeople .responsibility-metrics strong,#activityResult .responsibility-metrics strong{font-size:19px}
 #touchPeople .responsibility-heading .operating-info>summary,#activityResult .responsibility-heading .operating-info>summary{width:32px;min-height:32px}
}
@media(max-width:760px){.leaflet-product-content .filter-row>.actions{grid-column:1/-1;display:flex;flex-direction:row;gap:8px;margin:0}.leaflet-product-content .filter-row>.actions button{flex:1}}

/* Channel hierarchy uses the shared page return; filters remain compact. */
.channel-management-title{position:relative;display:flex;align-items:center;gap:8px;min-width:0}.channel-management-title h3{margin:0;overflow-wrap:anywhere}.channel-management-title .operating-info{margin-left:0;position:static}.channel-management-info>.operating-info-body{left:0;right:auto}.channel-management-month{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.channel-management-month input{width:145px;min-width:0;margin:0}.channel-management-card .responsibility-heading{gap:8px;margin-bottom:8px}.channel-management-card .toolbar input[type=search]{min-width:0}
@media(max-width:760px){.channel-management-card .responsibility-heading{align-items:flex-start}.channel-management-card .inline-actions{width:100%;justify-content:flex-start;gap:8px}.channel-management-info>.operating-info-body{position:fixed;left:18px;right:18px;top:auto;width:auto}.channel-management-card .toolbar{display:flex;flex-wrap:wrap}.channel-management-card .toolbar input[type=search]{flex:1 1 140px;width:140px}.channel-management-card .toolbar select{max-width:100%}}

/* Monthly meeting and learning explanations use local, accessible disclosures. */
.meeting-compact>section.card{padding:12px 14px;margin-bottom:10px}
.meeting-compact .meeting-info{float:right;margin:0 0 4px 8px}
.meeting-compact .meeting-controls .filter-row{gap:8px;align-items:end;margin:0}
.meeting-compact .meeting-controls .meeting-info{margin-left:auto;align-self:end}
.meeting-compact .meeting-controls label{font-size:12px;gap:3px}
.meeting-compact .meeting-report-period{font-size:12px;color:#65758a;margin:8px 0 0}
.meeting-compact .meeting-period-section{margin:10px 0}
.meeting-compact .meeting-period-section .meeting-kpis article{padding:9px 12px;gap:5px}
.meeting-compact .meeting-period-section .meeting-kpis strong{font-size:23px}
.meeting-compact .meeting-report-sections{padding-bottom:8px;gap:6px}
.meeting-compact .meeting-system-tabs,.meeting-compact .meeting-period-switch{margin-top:8px;gap:6px}
.meeting-compact .meeting-note-preparation{gap:8px;margin:8px 0}
.meeting-compact [data-meeting-notes] label{margin:10px 0}
.meeting-compact [data-meeting-notes] textarea{min-height:85px;margin-top:5px}
.meeting-compact .meeting-note-state{margin:4px 0 8px;font-size:12px;color:#65758a}
.meeting-compact .meeting-note-section{padding:7px 0}
.meeting-compact .meeting-note-section p{margin:5px 0}
.learning-library{padding:10px 12px}
.learning-library .learning-library-heading{margin-bottom:5px;gap:8px;align-items:center}
.learning-library .learning-library-heading strong{font-size:13px;color:#52677e}
.learning-library .filter-row{gap:8px;align-items:end}
.learning-library .filter-row label{font-size:12px;gap:3px}
.learning-library .filter-row input,.learning-library .filter-row select{min-height:36px}
.learning-field{min-width:0}
.learning-field>input,.learning-field>select{width:100%;min-width:0}
.learning-field-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:28px}
.learning-field-heading label{margin:0}
.learning-field-heading .learning-info{margin-left:0}
.learning-field-heading .learning-info>summary{min-height:28px;width:28px;font-size:16px}
.learning-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.learning-preview-toolbar .learning-info{margin-left:0}
@media(max-width:760px){
 .meeting-compact>section.card{padding:9px 10px}
 .meeting-compact .meeting-controls .filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .meeting-compact .meeting-controls label{min-width:0}
 .meeting-compact .meeting-controls input,.meeting-compact .meeting-controls select{width:100%;min-width:0;min-height:40px}
 .meeting-compact .meeting-controls label:has([name=root]){grid-column:1/-1}
 .meeting-compact .meeting-controls label[hidden]{display:none}
 .meeting-compact .meeting-controls .meeting-info{justify-self:end;margin:0}
 .meeting-compact .meeting-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .meeting-compact .meeting-period-section .meeting-kpis article{padding:7px 8px}
 .meeting-compact .meeting-kpis article span{font-size:11px}
 .meeting-compact .meeting-period-section .meeting-kpis strong{font-size:20px}
 .meeting-compact .meeting-kpis button{padding:5px 7px;min-height:36px}
 .meeting-compact .meeting-report-sections>[data-report-section]{padding:6px 9px;min-height:40px}
 .meeting-compact .meeting-note-preparation{display:flex;align-items:end;flex-wrap:wrap}
 .meeting-compact [data-meeting-notes] textarea{min-height:90px}
 .learning-library .filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .learning-library .filter-row .grow{grid-column:1/-1}
 .learning-library .filter-row label{min-width:0}
 .learning-library .filter-row input,.learning-library .filter-row select{width:100%;min-width:0;min-height:40px}
 .learning-field-heading .learning-info>summary{width:32px;min-height:32px}
}

/* Administrative rule explanations are secondary; operational warnings stay visible. */
.admin-info-row{display:flex;align-items:center;gap:8px;margin:8px 0;min-width:0}.admin-info-row h3,.admin-info-row h4{margin:0}.admin-info-row .operating-info{margin-left:0}.admin-info{display:inline-block;vertical-align:middle;margin-left:0}.admin-info>.operating-info-body,.dimension-config .operating-info>.operating-info-body{position:fixed;left:50%;right:auto;transform:translateX(-50%);top:auto;width:min(520px,calc(100vw - 48px));max-height:55vh;overflow:auto}.duty-toolbar .admin-info{margin-left:auto}#dutyBatchForm .duty-choice{overflow:visible}#dutyBatchForm .duty-choice-heading{border-radius:8px}
@media(max-width:760px){.admin-info>.operating-info-body,#dimensionConfig [data-config-info]>.operating-info-body,#dimensionForm .operating-info>.operating-info-body{position:fixed;left:18px;right:18px;transform:none;top:auto;width:auto;max-height:55vh;overflow:auto}}
.meeting-compact [data-meeting-notes] textarea{height:105px}.meeting-compact p.error:empty{display:none}

/* Detail and form explanations stay adjacent to their business controls. */
.business-info-row{display:flex;align-items:center;gap:6px;min-width:0}.business-info-row>span{min-width:0}.business-info-row>label{margin:0}.business-form-info{display:inline-block;margin-left:0;vertical-align:middle}.business-form-info>.operating-info-body{left:0;right:auto;font-weight:400}.business-info-row.notice{justify-content:space-between}.business-info-row.notice .business-form-info>.operating-info-body{left:auto;right:0}
@media(max-width:760px){.business-form-info>.operating-info-body,.business-info-row.notice .business-form-info>.operating-info-body{position:fixed;left:18px;right:18px;top:auto;width:auto;max-height:55vh;overflow:auto}}

/* Personal goals are actions; financial/work details are persistent selections. */
.home-goal-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;background:#eef5ff;border:1px solid #ccdef8;border-radius:9px;margin:4px 0 12px}
.home-goal-actions button{min-height:38px;padding:8px 15px;font-weight:650;border-radius:7px}
.home-goal-actions .home-goal-primary{background:#1764d5;border:1px solid #1764d5;color:#fff}
.home-goal-actions .home-goal-primary:hover{background:#1152b4}
.home-goal-actions .home-goal-secondary{background:#fff;border:1px solid #90b5e9;color:#1753a6}
.home-goal-actions .home-goal-secondary:hover{background:#deecff}
.home-detail-actions{gap:8px;padding:0 0 11px;margin-bottom:10px;border-bottom:1px solid #dce5ef}
.home-detail-actions button{background:#f3f7fc;color:#254565;border:1px solid #c6d7e8;border-radius:7px;min-height:38px;padding:8px 14px;font-weight:600}
.home-detail-actions button:hover{background:#e8f0f8}
.home-detail-actions button[aria-pressed=true]{background:#14776d;border-color:#14776d;color:#fff;box-shadow:0 1px 3px #155a5026}
.home-goal-actions button:focus-visible,.home-detail-actions button:focus-visible{outline:3px solid #7aa9ee;outline-offset:2px}
@media(max-width:640px){.home-goal-actions button{min-height:44px;flex:1 1 150px;padding:9px 10px}.home-detail-actions button{min-height:44px;flex:1 1 100px;padding:9px 10px}.home-goal-actions{padding:8px}.home-detail-actions{gap:7px}}

/* Quotation mode fields explicitly hidden by the form stay out of layout. */
#quoteForm [hidden]{display:none!important}

/* Footer help opens into the form so the scrollable dialog does not clip it. */
#serviceCreate .actions .operating-info>.operating-info-body{top:auto;bottom:calc(100% + 4px);margin:0}

/* Customer identity remains visible beside business names on every viewport. */
.business-customer{display:block;font-size:12px;font-weight:normal;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
/* Mobile dialog headers: return and close first, full title below. Long return
   labels must wrap inside their column rather than paint over the title. */
@media(max-width:760px){
 .dialog>.dhead{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px 10px;align-items:center}
 .dialog>.dhead>h3{grid-column:1;grid-row:1;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .dialog>.dhead>button:not(.business-return){grid-column:2;grid-row:1;width:44px;min-width:44px;min-height:44px}
 .dialog>.dhead>.business-return{grid-column:1;grid-row:1;justify-self:start;min-width:44px;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:left}
 .dialog>.dhead>.business-return+h3{grid-column:1/-1;grid-row:2;margin:0}
}
