/* Manager home: one action area, an inline preview and a compact team summary. */
.mf-workspace .mh-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:20px;align-items:start;margin-block:24px;min-width:0}
.mh-workspace .panel{padding:0;margin:0;min-width:0;overflow:hidden}
.mh-actions{container:manager-actions / inline-size}
.mh-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--line)}
.mh-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.035em;color:var(--muted);margin-bottom:4px}
.mf-workspace .mh-section-head h2{font-size:18px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.mh-section-head>.text-link{flex:none;display:flex;gap:8px;align-items:center;font-size:12px}
.mh-tabs{display:flex;gap:8px;padding:16px 20px 0;min-width:0}
.mh-tab{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 8px;flex:1;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.mh-tab>b,.mh-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:2px 7px;border-radius:7px;background:var(--bg);font-size:11px;line-height:1.5;color:var(--muted);font-weight:700}
.mh-tab.active{background:var(--action-primary);border-color:var(--action-primary);color:#fff}
.mh-tab.active>b{background:#ffffff24;color:#fff}
.mh-tab>small{font-size:11px;font-weight:600;background:var(--action-soft);color:var(--action-ink);border-radius:5px;padding:2px 6px}
.mh-toolbar{display:flex;align-items:center;gap:10px;padding:14px 20px;border-bottom:1px solid var(--line)}
.mh-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--bg);padding-inline:10px}
.mh-search>.icon{width:17px;height:17px;flex:none;color:var(--muted)}
.mh-search input{width:100%;min-width:0;border:0;background:transparent;padding:9px 0;font:inherit;font-size:12px;min-height:40px;color:var(--ink);outline:none}
.mh-search:focus-within{outline:2px solid var(--action-border);outline-offset:2px}
.mh-sort{min-width:0;flex:0 1 150px}
.mh-sort select{width:100%;min-width:0;min-height:40px;padding:8px 10px;border-radius:9px;font-size:12px;background:var(--surface);color:var(--ink)}
.mh-body,.mh-results{min-width:0}
.mh-result-count{padding:12px 20px 4px;font-size:11px;color:var(--muted)}
.mh-list{padding:0 20px}
.mh-row{display:flex;align-items:flex-start;gap:12px;position:relative;width:100%;padding:17px 0;margin:0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:start;color:var(--ink);font:inherit;cursor:pointer;min-width:0}
.mh-row:last-child{border-bottom:0}
.mh-row-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border-radius:9px;margin-top:3px;background:var(--tint);color:var(--brand)}
.mh-row-icon.amber{background:color-mix(in srgb,var(--gold) 15%,var(--surface));color:var(--gold)}
.mh-row-icon .icon{width:18px;height:18px}
.mh-row-copy{display:grid;gap:5px;min-width:0;flex:1}
.mh-meta{font-size:10px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.mh-row-copy>strong{font-size:15px;line-height:1.65;overflow-wrap:anywhere;color:var(--heading-ink,var(--ink))}
.mh-sub{font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.mh-row-footer{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:10px;color:var(--muted);padding-top:3px}
.mh-row-footer .badge{font-size:10px;padding:3px 7px;max-width:100%;white-space:normal}
.mh-urgent{color:var(--danger,#b44857);font-weight:700}
.mh-chevron{width:16px;height:16px;flex:none;align-self:center;color:var(--muted)}
.mh-row.is-selected{background:var(--action-soft);border-radius:10px;padding-inline:10px;border-bottom-color:transparent;box-shadow:inset 0 0 0 1px var(--action-border)}
.mh-row.is-selected .mh-chevron{color:var(--action-ink)}
.mh-more{padding:12px 20px 18px;display:flex;justify-content:center}
.mh-more .btn{min-height:40px;padding:8px 18px;font-size:12px}
.mh-preview{min-width:0;border-top:1px solid var(--line);background:var(--bg)}
.mh-preview-empty{display:flex;align-items:center;gap:14px;padding:20px;color:var(--muted)}
.mh-preview-empty .icon-tile{flex:none;width:36px;height:36px}
.mh-preview-empty strong{font-size:13px;color:var(--ink)}
.mh-preview-empty p{font-size:12px;margin:4px 0 0;line-height:1.8}
.mh-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);font-size:12px;font-weight:700;color:var(--muted)}
.mh-preview-head .icon-btn{flex:none;min-height:36px;min-width:36px;width:36px;height:36px;background:var(--action-soft);color:var(--action-ink);border:1px solid var(--action-border);border-radius:9px;padding:8px;cursor:pointer}
.mh-preview-content{padding:18px;min-width:0}
.mf-workspace .mh-preview h3{margin:6px 0 10px;font-size:18px;line-height:1.7;overflow-wrap:anywhere;color:var(--heading-ink,var(--ink))}
.mh-preview h3:focus{outline:none}
.mh-preview h3:focus-visible{outline:2px solid var(--action-border);outline-offset:4px;border-radius:3px}
.mh-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.mh-facts>div{min-width:0}
.mh-facts dt{font-size:10px;color:var(--muted);margin-bottom:3px}
.mh-facts dd{font-size:12px;font-weight:600;line-height:1.8;overflow-wrap:anywhere;margin:0}
.mh-description,.mh-next,.mh-events{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;min-width:0}
.mh-preview h4,.mh-next>strong{font-size:12px;font-weight:700;margin:0 0 7px;color:var(--heading-ink,var(--ink))}
.mh-description p,.mh-next p{font-size:12px;line-height:1.9;margin:0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.mh-event{padding:12px;margin-top:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}
.mh-event>strong,.mh-event>small{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.mh-event>small{font-size:10px;color:var(--muted);margin-top:4px}
.mh-event>p{font-size:12px;overflow-wrap:anywhere}
.mh-event .btn{font-size:12px;min-height:40px;padding:8px 12px;margin-top:10px;white-space:normal}
.mh-preview-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.mh-preview-actions .btn{font-size:12px;min-height:40px;padding:8px 12px;white-space:normal}
.mh-departments .mh-section-head{padding:18px;align-items:start}
.mf-workspace .mh-departments h2{font-size:16px}
.mh-dept-list{padding:0 18px}
.mh-dept-row{display:grid;gap:7px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0;text-decoration:none;color:var(--ink)}
.mh-dept-row:last-child{border:0}
.mh-dept-name{display:flex;align-items:center;gap:10px;min-width:0}
.mh-dept-name>strong{flex:1;min-width:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.mh-dept-name>.icon{width:15px;height:15px;color:var(--muted);flex:none}
.mh-dept-name .icon-tile{width:28px;height:28px;border-radius:8px;flex:none}
.mh-dept-name .icon-tile .icon{width:16px;height:16px}
.mh-dept-numbers{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;font-size:10px;color:var(--muted)}
.mh-dept-numbers b{color:var(--ink);font-size:14px}
.mh-dept-unassigned{font-size:10px;color:var(--action-ink);font-weight:600}
.mh-departments>footer{display:grid;gap:8px;padding:15px 18px;border-top:1px solid var(--line);font-size:12px}
.mh-empty-note{padding:18px;color:var(--muted)}
.mh-workspace :is(button,a,select):focus-visible{outline:3px solid var(--action-border);outline-offset:3px}
@media(hover:hover){.mh-row:hover:not(.is-selected){background:var(--bg)}.mh-dept-row:hover strong{color:var(--brand)}.mh-tab:hover:not(.active){border-color:var(--action-border);color:var(--action-ink)}}
@container manager-actions (min-width:620px){.mh-body.has-preview{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);align-items:start}.mh-body.has-preview .mh-preview{border-top:0;border-inline-start:1px solid var(--line);align-self:stretch}.mh-body.has-preview .mh-list{padding-inline:14px}.mh-body.has-preview .mh-row{gap:8px}.mh-body.has-preview .mh-row-icon{flex-basis:26px;height:26px}.mh-body.has-preview .mh-row-copy>strong{font-size:14px}.mh-body.has-preview .mh-row-footer{gap:5px}.mh-body.has-preview .mh-preview-content{max-height:650px;overflow:auto;overscroll-behavior:contain}}
@media(max-width:1100px){.mf-workspace .mh-workspace{grid-template-columns:minmax(0,1fr)}.mh-dept-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}}
@media(max-width:700px){.mf-workspace .mh-workspace{gap:16px}.mh-section-head{padding:16px;gap:10px}.mf-workspace .mh-section-head h2{font-size:17px}.mh-tabs{padding:14px 14px 0;gap:6px}.mh-tab{padding:9px 7px;font-size:12px}.mh-tab>small{font-size:10px}.mh-toolbar{flex-wrap:wrap;padding:12px 14px}.mh-search{flex-basis:100%}.mh-sort{flex-basis:100%}.mh-sort select{min-height:40px}.mh-list{padding:0 14px}.mh-result-count{padding-inline:14px}.mh-row{gap:10px}.mh-row-copy>strong{font-size:14px}.mh-dept-list{display:block}.mh-preview{scroll-margin-top:20px}.mh-preview-content{padding:16px}.mh-facts{gap:12px 10px}.mh-preview-empty{align-items:start;padding:16px}.mh-preview-actions .btn{flex:1 1 auto}.mh-preview-actions a{flex-basis:100%}}
html[data-text-size=large] .mh-row-copy>strong,html[data-text-size=large] .mh-dept-name>strong{font-size:17px}
html[data-text-size=large] :is(.mh-sub,.mh-facts dd,.mh-description p,.mh-next p,.mh-event>strong){font-size:14px}
