/* Scoped presentation changes. No selectors target the forecast area. */
#aem-overview .wl-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:18px 0 12px}
#aem-overview .wl-section-heading h3{margin:0;font-size:17px}#aem-overview .wl-section-heading small,#aem-overview .wl-footnote{font-size:12px;line-height:1.6}
#aem-overview .wl-personnel-table,#aem-overview .wl-project-table{width:100%!important;table-layout:fixed!important}
#aem-overview .wl-personnel-table th,#aem-overview .wl-personnel-table td,#aem-overview .wl-project-table th,#aem-overview .wl-project-table td{white-space:normal!important;vertical-align:middle;padding:12px 10px!important;overflow-wrap:anywhere}
#aem-overview .wl-personnel-table th:first-child{width:21%}#aem-overview .wl-personnel-table th:nth-child(2){width:19%}#aem-overview .wl-project-table th:first-child{width:25%}
#aem-overview .wl-personnel-table td small,#aem-overview .wl-project-table td small,#aem-overview .wl-project-table th small{display:block;margin-top:5px;font-size:11px!important}
#aem-overview .wl-person{display:flex;align-items:center;gap:9px;background:none!important;border:0!important;text-align:left;padding:3px 0!important;color:var(--ao-ink)!important}
#aem-overview .wl-person strong{font-size:17px!important}#aem-overview .wl-load-label{display:block;font-size:11px!important;margin:6px 0 0}
#aem-overview .wl-personnel-table tr[data-layout-load=over] .wl-load-label{color:light-dark(#a6223b,#ff98a7)!important}#aem-overview .wl-personnel-table tr[data-layout-load=free] .wl-load-label{color:light-dark(#176947,#86e6b4)!important}
#aem-overview .wl-count,#aem-overview .wl-number{display:inline-flex;gap:4px;align-items:center;padding:3px 5px!important;margin:3px 3px 0 0;border:0!important;border-radius:5px;font-size:11px!important;white-space:nowrap}
#aem-overview .wl-kind-main{background:light-dark(#dceaff,#1f385a)!important;color:light-dark(#1d4b85,#aad1ff)!important}#aem-overview .wl-kind-prepare{background:light-dark(#f8e2d1,#523c2c)!important;color:light-dark(#854112,#ffd2aa)!important}#aem-overview .wl-kind-camera{background:light-dark(#fff0b3,#4e451d)!important;color:light-dark(#6f5200,#ffe27a)!important}
#aem-overview .wl-number.wl-attention{background:light-dark(#fce8e9,#44242f);color:light-dark(#a52137,#ffadb7)!important}#aem-overview .wl-number.wl-normal{background:var(--ao-soft);color:var(--ao-ink)}
#aem-overview .wl-project-name{background:transparent!important;border:0!important;color:var(--ao-ink)!important;padding:0!important;text-align:left;font-size:16px!important;font-weight:800!important;line-height:1.5}
#aem-overview .wl-unassigned{margin-top:16px;width:100%;padding:13px;text-align:left;border:1px dashed var(--ao-line);background:var(--ao-card)}
#aem-overview .wl-leader-row{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(95px,1fr));align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--ao-line)}
#aem-overview .wl-switch{display:flex;flex-wrap:wrap;gap:5px}#aem-overview .wl-switch button{padding:7px 12px!important;background:var(--ao-card);border:1px solid var(--ao-line);font-size:12px!important}#aem-overview .wl-switch button[aria-pressed=true]{background:var(--ao-soft)!important;border-color:var(--ao-green)!important;box-shadow:inset 0 -2px var(--ao-green)}
#aem-overview .wl-pm-team{margin:14px 0}#aem-overview .wl-empty{padding:20px;border:1px dashed var(--ao-line);border-radius:8px}
#aem-overview[data-layout-pm] #am-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#aem-overview[data-layout-pm] #am-summary>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:13px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:9px}#aem-overview[data-layout-pm] #am-summary strong{font-size:25px;margin-top:7px}
#aem-overview[data-layout-allocation] #at-content tbody tr:hover,#aem-overview[data-layout-pl] #at-content tbody tr:hover,#aem-overview[data-layout-pm] #am-projects tbody tr:hover{background:light-dark(#f1f4ee,#2a332d)!important;box-shadow:inset 3px 0 var(--ao-green)}
/* Task: one scrollable workspace and a quiet secondary column. */
#aem-overview[data-layout-task] .aem-task-layout{grid-template-columns:minmax(0,1fr) 245px!important;background:var(--ao-card)}
#aem-overview[data-layout-task] .aem-task-primary{padding:16px!important}#aem-overview[data-layout-task] .aem-task-secondary{padding:14px!important}
#aem-overview[data-layout-task] .aem-task-context{border:1px solid var(--ao-line);border-radius:9px;padding:12px!important;background:var(--ao-soft)}
#aem-overview[data-layout-task] .aem-task-control-row{display:flex!important;align-items:center;gap:12px!important;flex-wrap:wrap}#aem-overview[data-layout-task] .aem-task-control-row label{flex:1 1 110px;min-width:0}#aem-overview[data-layout-task] .aem-context-kpi{flex:0 0 auto!important}
#aem-overview[data-layout-task] .aem-model-time{padding:9px 0 0!important;border:0!important;margin-top:9px;border-top:1px solid var(--ao-line)!important}#aem-overview[data-layout-task] .aem-model-time h3{font-size:11px!important}
#aem-overview[data-layout-task] .aem-task-quick-flags{padding:10px 0!important}#aem-overview[data-layout-task] .aem-collaboration{padding:0!important;border:0!important}#aem-overview[data-layout-task] .aem-extension-panel{margin-bottom:10px}
#aem-overview[data-layout-task] .wl-task-tabs{display:flex;gap:5px;border-bottom:1px solid var(--ao-line);padding:0 0 7px;margin:12px 0}
#aem-overview[data-layout-task] .wl-task-tabs button{padding:9px 18px!important;border:0!important;background:transparent!important;border-radius:6px 6px 0 0!important;color:var(--ao-ink)!important}
#aem-overview[data-layout-task] .wl-task-tabs button[aria-selected=true]{box-shadow:inset 0 -3px var(--ao-green);background:var(--ao-soft)!important;font-weight:800}
#aem-overview[data-layout-task] .ao-detailgrid{display:block!important}#aem-overview[data-layout-task] [data-wl-task-pane]{padding:14px!important;background:var(--ao-card);border:1px solid var(--ao-line)!important;border-radius:8px;min-height:160px}
#aem-overview[data-layout-task] [data-wl-task-pane=description]>h3,#aem-overview[data-layout-task] [data-wl-task-pane=result]>h3{display:none}
#aem-overview[data-layout-task] .wl-edit-content{float:right;margin:0 0 8px 12px!important;font-size:12px!important}#aem-overview[data-layout-task] .wl-content-preview{clear:both;white-space:pre-wrap;line-height:1.7;padding:8px 0;font-size:14px;min-height:70px}
#aem-overview[data-layout-task] .wl-reading textarea,#aem-overview[data-layout-task] .wl-reading input[type=file],#aem-overview[data-layout-task] .wl-reading .aem-result-uploader{display:none!important}
#aem-overview[data-layout-task] .wl-progress{padding:8px 0;font-size:12px}#aem-overview[data-layout-task] .wl-progress summary{cursor:pointer}#aem-overview[data-layout-task] .aem-progress-compact{margin-top:8px}
#aem-overview[data-layout-task] .aem-task-comments{border:0!important;border-top:1px solid var(--ao-line)!important;margin-top:16px;padding:12px 0!important}#aem-overview[data-layout-task] .aem-task-comments h3{font-size:12px!important}
#aem-overview[data-layout-task] .wl-follower-preview{display:flex;gap:3px;align-items:center;margin:8px 0}#aem-overview[data-layout-task] .wl-follower-preview .aem-person-avatar{width:25px;height:25px}
/* Statistics and reports share readable table density and a single selected view. */
#aem-overview[data-layout-statistics] .wl-stat-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:16px;padding:12px;border:1px solid var(--ao-line);border-radius:10px;background:var(--ao-card)}
#aem-overview[data-layout-statistics] .wl-stat-toolbar .ao-tools{margin:0!important;padding:0!important}#aem-overview[data-layout-statistics] #aem-kpi-report-tabs{margin:0!important}
#aem-overview[data-layout-statistics] .wl-stat-pane{padding:14px;border:1px solid var(--ao-line);border-radius:10px;background:var(--ao-card)}#aem-overview[data-layout-statistics] .wl-stat-pane>h3{font-size:16px!important;margin:0 0 12px}
#aem-overview[data-layout-statistics] .wl-stat-method{padding:9px 0;font-size:12px}#aem-overview[data-layout-statistics] .wl-dod-caption{margin:8px 0;font-size:12px}
#aem-overview[data-layout-statistics] #ak-members th,#aem-overview[data-layout-statistics] #ak-members td{padding:11px 8px!important}#aem-overview[data-layout-statistics] #ak-members td:first-child{font-size:16px!important}
#aem-overview[data-layout-reports] #wl-report-measure{margin:8px 0 14px}#aem-overview[data-layout-reports] .wl-current-period{font-size:11px;padding:4px 7px;border-radius:4px;background:light-dark(#fff0c2,#493d16);color:light-dark(#795508,#ffe092)!important}
#aem-overview[data-layout-reports] .aem-comparison-matrix td small{display:none!important}#aem-overview[data-layout-reports] #aem-reports-panel[data-wl-measure=share] .wl-measure-value,#aem-overview[data-layout-reports] #aem-reports-panel[data-wl-measure=growth] .wl-measure-value{display:none!important}
#aem-overview[data-layout-reports] #aem-reports-panel[data-wl-measure=share] .wl-measure-share,#aem-overview[data-layout-reports] #aem-reports-panel[data-wl-measure=growth] .wl-measure-growth,#aem-overview[data-layout-reports] #aem-reports-panel .wl-show-all .wl-measure-value,#aem-overview[data-layout-reports] #aem-reports-panel .wl-show-all small{display:block!important}
#aem-overview[data-layout-reports] .aem-comparison-matrix td small.wl-measure-share,#aem-overview[data-layout-reports] .aem-comparison-matrix td small.wl-measure-growth{font-size:13px!important;font-weight:700}
#aem-overview[data-layout-reports] .wl-trend-charts{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:20px}#aem-overview[data-layout-reports] .wl-trend-charts>section{flex:1;min-width:250px}
#aem-overview[data-layout-reports] .wl-spark-bars{display:flex;gap:7px;align-items:end;min-height:110px;padding:10px;border-bottom:1px solid var(--ao-line);overflow:auto}#aem-overview[data-layout-reports] .wl-spark-bars>div{display:flex;flex:1;min-width:54px;flex-direction:column;align-items:center;gap:6px;font-size:11px}#aem-overview[data-layout-reports] .wl-spark-bars i{width:65%;background:light-dark(#638cc5,#7eaae4);border-radius:3px 3px 0 0}#aem-overview[data-layout-reports] .wl-spark-bars small{font-size:10px!important;white-space:nowrap}
/* Settings navigation grows vertically rather than adding more horizontal tabs. */
#aem-overview[data-layout-settings] .wl-settings-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;align-items:start}
#aem-overview[data-layout-settings] .aem-settings-tabs{display:flex!important;flex-direction:column;gap:3px!important;position:sticky;top:12px;overflow:visible!important;padding:10px!important;background:var(--ao-soft);border-radius:10px}
#aem-overview[data-layout-settings] .aem-settings-tabs button{text-align:left;white-space:normal!important;padding:10px 12px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;font-size:13px!important}
#aem-overview[data-layout-settings] .aem-settings-tabs button[aria-pressed=true]{background:var(--ao-card)!important;border-color:var(--ao-line)!important;box-shadow:inset 3px 0 var(--ao-green)!important;font-weight:800}
#aem-overview[data-layout-settings] .wl-settings-group{font-size:10px;font-weight:800;letter-spacing:.4px;padding:15px 12px 4px;color:var(--ao-muted)}
#aem-overview[data-layout-settings] #aem-settings-content{min-width:0}#aem-overview[data-layout-settings] .wl-settings-section-heading h3{margin:0 0 6px;font-size:19px}#aem-overview[data-layout-settings] .wl-settings-section-heading{margin-bottom:16px}#aem-overview[data-layout-settings] .wl-settings-section-heading small{font-size:11px!important}
#aem-overview .wl-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}#aem-overview .wl-layout-options label{display:flex;flex-direction:column;gap:6px}
#aem-overview[data-layout-settings] .aem-settings-card{padding:16px!important;border:1px solid var(--ao-line)!important;border-radius:9px!important;margin-bottom:14px!important}
#aem-overview[data-layout-settings] .wl-settings-save{padding:10px 18px!important;font-weight:750!important}#aem-overview[data-layout-settings] .aem-user-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#aem-overview .wl-switch button:focus-visible,#aem-overview .wl-person:focus-visible,#aem-overview .wl-project-name:focus-visible,#aem-overview [data-wl-metric-cell]:focus-visible{outline:2px solid var(--ao-green)!important;outline-offset:3px}
/* Follow-up: short overview counters form a single scan line. */
#aem-overview.aem-shell #wc-overview-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin:12px 0;align-items:stretch}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard,#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard,#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards{display:contents!important}
#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard>header{display:none!important}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard>section{margin:0!important;padding:9px!important;min-width:0;border-radius:7px!important}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard button{display:flex!important;align-items:center;justify-content:space-between;gap:5px;min-height:26px}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard button>small:first-child{font-size:11px!important;white-space:normal!important;line-height:1.3}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard button>small:not(:first-child){display:none!important}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard strong,#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards strong{font-size:19px!important;line-height:1.2;margin:0!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button{display:flex!important;gap:6px;align-items:center;justify-content:space-between;text-align:left;padding:9px!important;min-width:0;border-radius:7px!important;margin:0!important;font-size:11px!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button small{display:none!important}
/* Compact forecast tiles retain their two-by-two arrangement without large interior gaps. */
#aem-overview.aem-shell #af-all-teams .af-stats>div{aspect-ratio:auto!important;min-height:125px!important;padding:12px!important;justify-content:flex-start!important;gap:5px!important}
#aem-overview.aem-shell #af-all-teams .af-stats strong{font-size:26px!important;margin:3px 0!important}
#aem-overview.aem-shell #af-all-teams .af-stats span{margin-top:0!important}
/* Dates fit their controls and remain equal in size. */
#aem-overview.aem-shell #ao-sidebar .aem-task-context .aem-task-control-row{display:grid!important;grid-template-columns:minmax(130px,1.15fr) minmax(132px,1.1fr) minmax(132px,1.1fr) minmax(125px,1fr) minmax(75px,.65fr)!important;gap:8px!important;align-items:end!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row>label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;min-width:0!important;margin:0!important;font-size:11px!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row .aem-start-plan,#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-editdeadline],#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-editdeadline] *{font-size:12px!important;line-height:1.4!important;font-weight:750!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row .aem-start-plan,#aem-overview.aem-shell #ao-sidebar .aem-task-control-row.aem-task-control-row [data-editdeadline]{padding:7px 6px!important;min-height:36px!important;width:100%;box-sizing:border-box}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row select[data-status]{min-width:0!important;max-width:100%;width:100%;font-size:12px!important}
/* Description above; result and DOD share the next row, preserving their original form controls. */
#aem-overview.aem-shell #ao-sidebar .wc-task-content{display:flex;flex-direction:column;gap:12px}
#aem-overview.aem-shell #ao-sidebar .wc-task-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
#aem-overview.aem-shell #ao-sidebar .wc-task-content [data-wc-task-pane]{min-width:0!important;min-height:0!important;margin:0!important;padding:12px!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-content [data-wc-task-pane]>h3{display:block!important;font-size:13px!important;margin:0 0 10px!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-content .wl-content-preview{min-height:32px!important;padding:4px 0;font-size:13px}
#aem-overview.aem-shell #ao-sidebar .wc-task-content .wl-reading label:has(input[type=file]){display:none!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-content textarea{width:100%!important;min-height:70px;box-sizing:border-box}
#aem-overview.aem-shell #ao-sidebar .wc-task-content .wl-edit-content{font-size:11px!important;padding:6px 8px!important}
/* Center each date heading directly over its workload count. */
#aem-overview.aem-shell .ao-table .aem-week-table{table-layout:fixed!important;width:100%!important}
#aem-overview.aem-shell .ao-table .aem-week-table th,#aem-overview.aem-shell .ao-table .aem-week-table td{min-width:0!important;box-sizing:border-box}
#aem-overview.aem-shell .ao-table .aem-week-table th:first-child{width:18%!important;text-align:left!important}
#aem-overview.aem-shell .ao-table .aem-week-table th:not(:first-child){width:10.25%!important;text-align:center!important}
#aem-overview.aem-shell .ao-table .aem-week-table td:not(:first-child){text-align:center!important}
#aem-overview.aem-shell .aem-week-counts{justify-content:center!important;width:100%}
/* Proposal belongs beside view choices, without an automatic right margin. */
#aem-overview.aem-shell #at-views,#aem-overview.aem-shell #at-pl-team-picker,#aem-overview.aem-shell #at-myviews{justify-content:flex-start!important;gap:8px!important}
#aem-overview.aem-shell #aem-dispatch-actions.wc-inline-proposal{margin:0 0 0 4px!important;margin-left:4px!important;flex:0 0 auto!important;width:auto!important;padding:0!important}
#aem-overview.aem-shell #aem-dispatch-actions.wc-inline-proposal>button{margin:0!important;font-size:12px!important;padding:9px 12px!important}
/* Value and growth stay on the same line. Ratios are no longer a separate report mode. */
#aem-overview.aem-shell #aem-reports-panel .wc-value-growth{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
#aem-overview.aem-shell #aem-reports-panel .wc-growth,#aem-overview.aem-shell #aem-reports-panel .aem-comparison-matrix td small.wc-growth{display:inline!important;font-size:11px!important;font-weight:750!important;white-space:nowrap;line-height:1.4}
#aem-overview.aem-shell #aem-reports-panel .aem-comparison-matrix td b{font-size:16px!important}
#aem-overview.aem-shell #aem-reports-panel .aem-report-cards strong .wc-growth{margin-left:8px}
#aem-overview.aem-shell #ak-members .aem-kpi-gap{white-space:nowrap!important}

#aem-overview.aem-shell #ao-sidebar .ao-detailgrid.wc-task-grid{display:block!important}

#aem-overview.aem-shell #ao-sidebar .aem-task-control-row .aem-context-kpi strong{font-size:14px!important;white-space:nowrap}
/* Aligned field captions and values use the same two rows. */
#aem-overview.aem-shell #ao-sidebar .aem-task-context .aem-task-control-row{align-items:start!important}
#aem-overview.aem-shell #ao-sidebar .aem-task-control-row>label{display:grid!important;grid-template-rows:16px 40px!important;align-content:start!important;gap:4px!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-field-name{display:block!important;height:16px;line-height:16px!important;font-size:11px!important;white-space:nowrap;text-align:left!important;margin:0!important;padding:0!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-field-value{display:flex!important;align-items:center!important;min-width:0;height:40px;min-height:40px;line-height:1.4}
#aem-overview.aem-shell #ao-sidebar .wc-task-field-value>[data-status],#aem-overview.aem-shell #ao-sidebar .wc-task-field-value>.aem-person-control{width:100%}
/* DOD is a native collapsible panel next to the result. */
#aem-overview.aem-shell #ao-sidebar .wc-dod-fold{min-width:0;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card);overflow:hidden}
#aem-overview.aem-shell #ao-sidebar .wc-dod-fold>summary{padding:12px;cursor:pointer;font-size:13px;font-weight:800;line-height:1.5;list-style-position:inside}
#aem-overview.aem-shell #ao-sidebar .wc-dod-fold>summary span{margin-left:8px;font-size:11px;font-weight:750}
#aem-overview.aem-shell #ao-sidebar .wc-dod-fold>[data-wc-task-pane=dod]{border:0!important;border-top:1px solid var(--ao-line)!important;border-radius:0!important}
#aem-overview.aem-shell #ak-members .wc-kpi-gap-detail{display:block;font-size:11px;font-weight:700;margin-top:4px;line-height:1.4;white-space:nowrap}
/* DOD grade colors match the overview; zero counts stay gray. */
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade="Tốt"]:not(.is-zero),#aem-overview.aem-shell #ao-sidebar .wc-dod-fold summary [data-grade="Tốt"]{color:var(--ad-green)!important}
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade="Đạt"]:not(.is-zero),#aem-overview.aem-shell #ao-sidebar .wc-dod-fold summary [data-grade="Đạt"]{color:var(--ad-blue)!important}
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade="Không đạt"]:not(.is-zero),#aem-overview.aem-shell #ao-sidebar .wc-dod-fold summary [data-grade="Không đạt"]{color:var(--ad-red)!important}
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade="Waiting"]:not(.is-zero),#aem-overview.aem-shell #ao-sidebar .wc-dod-fold summary [data-grade="Waiting"]{color:var(--ad-yellow)!important}
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade].is-zero{color:var(--ao-muted)!important}

#aem-overview.aem-shell #ak-members .wc-kpi-gap-detail[data-gap-tone=surplus]{color:var(--ad-green)!important}
#aem-overview.aem-shell #ak-members .wc-kpi-gap-detail[data-gap-tone=short]{color:var(--ad-red)!important}
/* The marked position is below Results; open DOD only when it is needed. */
#aem-overview.aem-shell #ao-sidebar .wc-task-bottom{display:flex!important;flex-direction:column;align-items:stretch!important}
#aem-overview.aem-shell #ao-sidebar .wc-task-bottom>section,#aem-overview.aem-shell #ao-sidebar .wc-task-bottom>.wc-dod-fold{width:100%;box-sizing:border-box}
#aem-overview.aem-shell #aem-management-dod-statistics [data-grade] b{color:inherit!important}
/* Support cards match the white cards with a colored top edge in the overview strip. */
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button{background:var(--ao-card)!important;border-width:1px!important;border-top-width:3px!important;border-color:var(--ao-line)!important;color:var(--ao-ink)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button.blocked:not(.is-zero){border-top-color:var(--ad-yellow)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button.risk:not(.is-zero){border-top-color:var(--ad-orange)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button.incident:not(.is-zero){border-top-color:var(--ad-red)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button.is-zero{background:var(--ao-card)!important;color:var(--ao-muted)!important;border-top-color:var(--ao-line)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button>span,#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button>strong{color:inherit!important}
/* Zero DOD counts keep quiet text without shading the table cells. */
#aem-overview.aem-shell #ad-panel table td.is-zero{background:transparent!important;border-color:var(--ao-line)!important;box-shadow:none!important;color:var(--ao-muted)!important}
#aem-overview.aem-shell #ak-plcards [data-pl-project-note-cell]{white-space:normal!important;min-width:180px}
#aem-overview.aem-shell #ak-plcards [data-pl-project-note-heading]{width:26%;min-width:180px}
#aem-overview.aem-shell #ak-plcards .aem-kpi-project-notes{display:flex;gap:4px;flex-wrap:wrap}
#aem-overview.aem-shell #ak-plcards .aem-kpi-project-notes button{font-size:11px!important;padding:4px 6px!important;white-space:nowrap}

/* Shared white/card surface, top accent and positive metric colour on every tab. */
#aem-overview.aem-shell [data-wc-metric]{--wc-accent:var(--ad-blue);background:var(--ao-card)!important;border:1px solid var(--ao-line)!important;border-top:3px solid var(--wc-accent)!important;border-radius:7px!important;box-shadow:none!important;color:var(--ao-ink)!important}
#aem-overview.aem-shell [data-wc-metric=red]{--wc-accent:var(--ad-red)}
#aem-overview.aem-shell [data-wc-metric=orange]{--wc-accent:var(--ad-orange)}
#aem-overview.aem-shell [data-wc-metric=yellow]{--wc-accent:var(--ad-yellow)}
#aem-overview.aem-shell [data-wc-metric=green]{--wc-accent:var(--ad-green)}
#aem-overview.aem-shell [data-wc-metric=purple]{--wc-accent:light-dark(#7548a7,#ccaff4)}
#aem-overview.aem-shell [data-wc-metric][data-wc-positive=true] strong{color:var(--wc-accent)!important}
#aem-overview.aem-shell [data-wc-metric][data-wc-positive=false]{border-top-color:var(--ao-line)!important;background:var(--ao-card)!important;color:var(--ao-muted)!important}
#aem-overview.aem-shell [data-wc-metric][data-wc-positive=false] strong{color:var(--ao-muted)!important}
/* Issue counters are the explicit exception: restore their coloured surface. */
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button[data-wc-positive=true]{background:color-mix(in srgb,var(--wc-accent) 15%,var(--ao-card))!important;border-top-color:var(--wc-accent)!important;color:var(--wc-accent)!important}
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button[data-wc-positive=true]>span,#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button[data-wc-positive=true]>strong{color:var(--wc-accent)!important}
/* Exactly the same heading typography for results and the DOD disclosure. */
#aem-overview.aem-shell #ao-sidebar .wc-task-content [data-wc-task-pane=result]>h3,#aem-overview.aem-shell #ao-sidebar .wc-task-content .wc-dod-fold>summary{font-size:14px!important;font-weight:800!important;line-height:1.5!important}
#aem-overview.aem-shell #aem-model-kpi-time{margin-top:12px;padding:14px;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card)}
#aem-overview.aem-shell #aem-model-kpi-time header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#aem-overview.aem-shell #aem-model-kpi-time header h3{margin:0;font-size:15px}
#aem-overview.aem-shell #aem-model-kpi-time>label{display:flex;align-items:center;gap:8px;margin-top:12px}
#aem-overview.aem-shell #aem-model-kpi-time>label select{max-width:380px}
#aem-overview.aem-shell #aem-model-kpi-time :is(p,small){font-size:12px;line-height:1.5}
/* DOD cards match overview edges; zero values have no fill and recede into grey. */
#aem-overview.aem-shell #ad-panel #ad-summary>[data-wc-metric]{background:var(--ao-card)!important;border:1px solid var(--ao-line)!important;border-top:3px solid var(--wc-accent)!important;color:var(--ao-ink)!important}
#aem-overview.aem-shell #ad-panel #ad-summary>[data-wc-positive=false]{border-top-color:var(--ao-line)!important}
#aem-overview.aem-shell #ad-panel #ad-summary>[data-wc-positive=true] strong{color:var(--wc-accent)!important}
#aem-overview.aem-shell #ad-panel #ad-summary>[data-wc-positive=false] strong,#aem-overview.aem-shell #ad-panel table tbody td[data-wc-zero=true],#aem-overview.aem-shell #ad-panel table tbody td[data-wc-zero=true] :is(b,strong,span){color:light-dark(#98a1ad,#8994a3)!important;font-weight:500!important;background:transparent!important;box-shadow:none!important}
/* Explicit child colours beat light/dark text rules and the older inherit override. */
#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard .aem-issue-cards>button:not(.is-zero)>span,#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard .aem-issue-cards>button:not(.is-zero)>strong{color:var(--wc-accent)!important}
#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard .aem-issue-cards>button.is-zero>span,#aem-overview.aem-shell #wc-overview-strip #aem-issues-dashboard .aem-issue-cards>button.is-zero>strong{color:light-dark(#98a1ad,#8994a3)!important}
/* PM / PL stay inline with the row, without raised white fields. */
#aem-overview.aem-shell select.aem-role-control[data-owner-role]{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;appearance:none;padding:2px 0!important;min-height:22px!important;cursor:pointer}
#aem-overview.aem-shell select.aem-role-control[data-owner-role]:hover:not(:disabled){color:var(--ad-blue)!important;text-decoration:underline;text-underline-offset:3px}
#aem-overview.aem-shell select.aem-role-control[data-owner-role]:focus-visible{outline:2px solid var(--ad-blue)!important;outline-offset:3px}
#aem-overview.aem-shell select.aem-role-control[data-owner-role]:disabled{cursor:default;opacity:1}
/* Personnel names use one size in PL cards, PL tables and personnel allocation. */
#aem-overview.aem-shell .wl-person strong,#aem-overview.aem-shell .aem-pl-workload-card>.aem-pl-name{font-size:17px!important;font-weight:750!important;line-height:1.4}
#aem-overview.aem-shell #at-content .wc-pl-views{display:flex;gap:6px;margin:0 0 12px}
#aem-overview.aem-shell #at-content .wc-pl-views button{padding:7px 13px;background:var(--ao-card);border:1px solid var(--ao-line);border-radius:7px;font-size:12px}
#aem-overview.aem-shell #at-content .wc-pl-views button[aria-pressed=true]{background:var(--ao-soft)!important;color:var(--ao-green)!important;border-color:var(--ao-green)!important}
#aem-overview.aem-shell .wc-pl-table{width:100%;table-layout:fixed}
#aem-overview.aem-shell .wc-pl-table th:first-child{width:23%;text-align:left}
#aem-overview.aem-shell .wc-pl-table :is(td,th){white-space:normal;overflow-wrap:anywhere;text-align:center;vertical-align:middle}
#aem-overview.aem-shell .wc-pl-table tbody th{background:var(--ao-soft)}
#aem-overview.aem-shell .wc-pl-table .wl-person{padding:0;text-align:left;justify-content:flex-start}
#aem-overview.aem-shell .wc-pl-table :is(.wc-pl-row-state,.wc-pl-completion){display:block;margin-top:5px;font-size:11px}
#aem-overview.aem-shell .wc-pl-table .wc-pl-row-state{color:var(--ao-muted)!important;text-align:left}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number{border:0!important;background:transparent!important;box-shadow:none!important;padding:3px 5px;font-weight:750}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number.has-value{color:var(--ad-blue)!important}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number[data-tone=red].has-value{color:var(--ad-red)!important}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number[data-tone=yellow].has-value{color:var(--ad-yellow)!important}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number[data-tone=green].has-value{color:var(--ad-green)!important}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number[data-tone=purple].has-value{color:light-dark(#7548a7,#ccaff4)!important}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number.is-zero{color:light-dark(#98a1ad,#8994a3)!important;opacity:1}
#aem-overview.aem-shell .wc-pl-table .wc-pl-number.has-value:hover{text-decoration:underline;text-underline-offset:3px}
#aem-overview.aem-shell .wc-pl-table tbody tr:hover{background:var(--ao-soft)}
/* Keep PL identity stable when workload requests appear. */
#aem-overview.aem-shell .aem-pl-workload-card{display:flex!important;flex-direction:column;gap:10px}
#aem-overview.aem-shell .aem-pl-workload-card .wc-pl-cardhead{display:flex;align-items:flex-start;gap:9px;width:100%;min-width:0}
#aem-overview.aem-shell .wc-pl-card-identity{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1}
#aem-overview.aem-shell .aem-pl-workload-card .aem-pl-name{display:block;font-size:17px!important;line-height:1.4;font-weight:750!important;overflow-wrap:anywhere}
#aem-overview.aem-shell .wc-pl-card-identity .at-count{font-size:11px;line-height:1.4}
#aem-overview.aem-shell .wc-pl-cardhead .at-avatar{flex-shrink:0}
#aem-overview.aem-shell .wc-pl-cardhead .aem-pl-kpi{flex-shrink:0;margin-left:auto}
#aem-overview.aem-shell .aem-pl-workload-card>.aem-pl-state{align-self:flex-start}
#aem-overview.aem-shell .aem-pl-workload-card .at-minilist{flex:1;min-height:80px}
#aem-overview.aem-shell .wc-workload-notices{display:flex;flex-wrap:wrap;gap:4px;align-items:flex-start;width:100%;margin-top:5px}
#aem-overview.aem-shell .wc-workload-notices .aem-request-badge{display:inline-block;margin:0;padding:4px 6px;font-size:10px;line-height:1.4;white-space:normal}
#aem-overview.aem-shell .wc-pl-table .wl-person{width:100%;min-width:0;justify-content:flex-start}
/* One spacing and typography scale for the main Work tabs. */
#aem-overview.aem-shell #aem-main>:is(#ao-overview-panel,#ao-forecast,#at-panel,#am-panel,#ak-panel,#ad-panel,#al-panel,#aem-reports-panel,#aem-settings-panel,#aem-reminders-panel){margin:0!important;padding:16px!important;font-size:13px;line-height:1.5;min-width:0;box-sizing:border-box}
#aem-overview.aem-shell #aem-main>:is(#am-panel,#ak-panel,#ad-panel,#al-panel,#aem-reminders-panel)>h2,#aem-overview.aem-shell #aem-main>:is(#aem-reports-panel,#aem-settings-panel)>header h2{font-size:20px!important;line-height:1.35!important;margin:0 0 12px!important}
#aem-overview.aem-shell #aem-main>:is(#am-panel,#ak-panel,#ad-panel,#al-panel)>.ao-tools{gap:8px!important;margin:12px 0!important;align-items:center}
/* Unselected choices are grey-filled; the selected choice carries the colour. */
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views){display:flex;align-items:center;flex-wrap:wrap;gap:6px!important;margin:0 0 12px!important;padding:0!important;float:none!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button{background:light-dark(#e8ecf1,#1d2735)!important;color:light-dark(#4b5563,#bdc7d6)!important;border:1px solid transparent!important;border-radius:7px!important;box-shadow:none!important;padding:7px 12px!important;min-height:34px!important;font-size:12px!important;font-weight:650!important;line-height:1.4!important;margin:0!important;white-space:normal}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button[aria-pressed=true]{background:light-dark(#d5e9df,#1a3f34)!important;color:light-dark(#145c43,#a7e8cc)!important;border-color:light-dark(#3c8970,#679f88)!important;box-shadow:inset 0 -2px light-dark(#3c8970,#679f88)!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button :is(b,strong,span){color:inherit!important}
#aem-overview.aem-shell #aem-main .wc-pl-views #aem-dispatch-actions.wc-pl-proposal{margin:0 0 0 6px!important;float:none!important;display:inline-flex!important;align-items:center}
#aem-overview.aem-shell #aem-main .wc-pl-views #aem-dispatch-actions.wc-pl-proposal>button{padding:7px 12px!important;min-height:34px;font-size:12px!important;margin:0!important}
/* PM project actions align at the right; headers remain the individual expand controls. */
#aem-overview.aem-shell #am-projects .ac-heading{display:flex;align-items:center;gap:12px;cursor:pointer;min-width:0}
#aem-overview.aem-shell #am-projects .ac-heading h3{flex:1;min-width:0;margin:0!important;font-size:14px;overflow-wrap:anywhere}
#aem-overview.aem-shell #am-projects .ac-heading>[data-pmproject]{margin-left:auto!important;flex-shrink:0}
#aem-overview.aem-shell #am-projects .ac-heading>[data-collapse-project]{display:none!important}
#aem-overview.aem-shell #wc-pm-project-tools{display:flex;justify-content:flex-end;gap:6px;margin:12px 0 8px}
#aem-overview.aem-shell #wc-pm-project-tools button{padding:6px 10px;font-size:12px;min-height:32px}
#aem-overview.aem-shell #am-summary>button{display:block;text-align:left;padding:12px 14px;cursor:pointer}
#aem-overview.aem-shell #am-summary>button small,#aem-overview.aem-shell #am-summary>button strong{display:block}
#aem-overview.aem-shell #am-summary>button:disabled{cursor:default;opacity:1}
#aem-overview.aem-shell #am-projects .ac-heading:focus-visible{outline:2px solid var(--ad-blue);outline-offset:3px}
/* Reserve room for complete status labels instead of cutting the selected text. */
#aem-overview.aem-shell.aem-shell .aem-task-table select[data-status]{width:100%!important;min-width:0!important;max-width:none!important;appearance:none!important;background-image:none!important;padding:6px 4px!important;font-size:11px!important;line-height:1.4;letter-spacing:0;text-overflow:clip}
/* Operational notes use the same right drawer, title bar, padding and controls. */
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer{position:fixed!important;inset:16px 16px 16px auto!important;transform:none!important;width:min(1000px,calc(100vw - 40px))!important;padding:16px!important;border-radius:10px!important;box-sizing:border-box}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer:not(.aem-drawer-minimized){height:auto!important;max-height:calc(100dvh - 32px)!important}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer>.aem-drawer-tools{padding:10px 12px!important;margin:0 0 12px!important;align-items:center!important;background:light-dark(#d7e8ff,#233e60)!important;border-radius:7px 7px 0 0}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer>.aem-drawer-tools>span strong{font-size:15px!important;line-height:1.4!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)[hidden]{display:none!important}
/* Compact notes fit their content, with a shared drawer title bar. */
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer:not(.aem-drawer-minimized){inset:16px 16px auto auto!important;width:min(880px,calc(100vw - 40px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;padding:12px!important}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer textarea{min-height:52px!important;height:60px!important;font-size:12px!important;padding:8px!important}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer>.aem-drawer-tools{padding:8px 10px!important;margin-bottom:10px!important}
#aem-overview.aem-shell>.ao-notegrid.aem-standard-drawer>.aem-drawer-tools>span strong{font-size:14px!important}
/* Page headings start at the same inset, immediately below the top rule. */
#aem-overview.aem-shell #aem-main>:is(#at-panel,#ad-panel,#ak-panel,#am-panel,#al-panel,#aem-reminders-panel){padding-top:8px!important}
#aem-overview.aem-shell #aem-main .wc-page-title,#aem-overview.aem-shell #aem-main>:is(#aem-reports-panel,#aem-settings-panel)>header h2{font-size:20px!important;line-height:1.35!important;margin:0 0 12px!important;padding:0!important}
#aem-overview.aem-shell #aem-main>.aem-topbar{margin-bottom:8px!important;padding-bottom:10px!important}
/* Quiet grey choices retain dark, readable labels. */
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button:not([aria-pressed=true]){color:light-dark(#111111,#edf2f8)!important;font-weight:700!important}
/* Restore the distinct view colours and icons beneath the team selectors. */
#aem-overview.aem-shell #aem-main :is(#at-views,.wc-pl-views)>button{--wc-view-bg:light-dark(#eaf5ef,#2b3e32);--wc-view-color:var(--ad-green);background:var(--wc-view-bg)!important;color:var(--wc-view-color)!important}
#aem-overview.aem-shell #aem-main :is(#at-views,.wc-pl-views)>button:is([data-view=tree],[data-pl-display=table]){--wc-view-bg:light-dark(#edf2fb,#2c374a);--wc-view-color:var(--ad-blue)}
#aem-overview.aem-shell #aem-main #at-views>button[data-view=week]{--wc-view-bg:light-dark(#f2ecfa,#383047);--wc-view-color:light-dark(#7041a0,#d0aff1)}
#aem-overview.aem-shell #aem-main #at-views>button[data-view=advisor]{--wc-view-bg:light-dark(#fff3e3,#433626);--wc-view-color:var(--ad-orange)}
#aem-overview.aem-shell #aem-main #at-views>button[data-view=modelqueue]{--wc-view-bg:light-dark(#e8f4f5,#293e42);--wc-view-color:light-dark(#126a73,#94dce1)}
#aem-overview.aem-shell #aem-main :is(#at-views,.wc-pl-views)>button[aria-pressed=true]{border-color:var(--wc-view-color)!important;box-shadow:inset 0 -2px var(--wc-view-color)!important}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request]{background:var(--ao-card)!important;border-color:var(--ao-line)!important;color:light-dark(#111,#edf2f8)!important;box-shadow:none!important;font-size:12px!important;padding:7px 10px!important;min-height:34px!important}
/* Statistics use the same avatar, name size and font in every personnel view. */
#aem-overview.aem-shell #aem-main .wc-stat-person{vertical-align:middle!important;font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.4!important;white-space:normal;text-align:left}
#aem-overview.aem-shell #aem-main .wc-stat-person> :is(strong,[data-user-text]){font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.4!important;vertical-align:middle}
#aem-overview.aem-shell #aem-main button.wc-stat-person{display:inline-flex;align-items:center;gap:8px}
#aem-overview.aem-shell #aem-main .wc-stat-avatar{display:inline-flex;vertical-align:middle;margin-right:8px;align-items:center}
#aem-overview.aem-shell #aem-main button.wc-stat-person>.wc-stat-avatar{margin-right:0}
#aem-overview.aem-shell #aem-main .wc-stat-avatar .aem-person-avatar{width:30px!important;height:30px!important;font-size:11px!important;object-fit:cover;border-radius:50%;flex-shrink:0}
#aem-overview.aem-shell #aem-main :is(#at-views,.wc-pl-views)>button[aria-pressed=true]{background:var(--wc-view-bg)!important;color:var(--wc-view-color)!important}
#aem-overview.aem-shell #aem-main>:is(#ao-overview-panel,#ao-forecast,#aem-reports-panel,#aem-settings-panel){padding-top:8px!important}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel)>.aem-export-bar{margin:0 0 8px!important}
/* Desktop density, tuned for a 1920×1080 display without shrinking data to tiny text. */
#aem-overview.aem-shell #aem-main :is(#at-panel,#am-panel,#ak-panel,#ad-panel,#aem-reports-panel){position:relative}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel)>.aem-export-bar{position:absolute!important;top:8px;right:16px;margin:0!important;min-height:0}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel)>.wc-page-title{padding-right:180px!important}
#aem-overview.aem-shell #aem-main .wc-page-title{font-size:18px!important;font-weight:600!important;line-height:1.4!important;margin-bottom:10px!important}
#aem-overview.aem-shell #aem-main .wl-stat-toolbar{padding:8px 10px!important;margin:0 0 8px!important;gap:8px!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important}
#aem-overview.aem-shell #aem-main .wl-stat-toolbar :is(.ao-tools,#aem-kpi-report-tabs){margin:0!important;gap:6px!important}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel)>.ao-tools{margin:6px 0 8px!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views){margin-bottom:8px!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button{display:inline-flex;align-items:center;gap:6px;font-weight:500!important;padding:6px 10px!important;min-height:32px!important}
#aem-overview.aem-shell #aem-main :is(#at-teamcards,#at-pl-teamcards,#am-pickers,#at-views,#at-myviews,#aem-dod-views,#ak-teamcards,#aem-kpi-report-tabs,#aem-report-focus,#af-teamcards,.wc-pl-views)>button:not([aria-pressed=true]){font-weight:500!important}
#aem-overview.aem-shell .wc-nav-icon{width:16px;height:16px;flex:0 0 16px;vertical-align:middle;pointer-events:none}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions{display:flex;gap:8px}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request]{display:inline-flex;align-items:center;gap:7px;font-weight:500!important;padding:7px 11px!important;border-width:1px!important;border-left-width:3px!important}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request=more]{border-color:light-dark(#72a99b,#619e8f)!important;background:light-dark(#f0f8f5,#18342c)!important}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request=rebalance]{border-color:light-dark(#cf9c50,#c59c56)!important;background:light-dark(#fffaef,#352b1b)!important}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request=more]>.wc-nav-icon{color:var(--ad-green)!important}
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-request-actions>button[data-load-request=rebalance]>.wc-nav-icon{color:var(--ad-orange)!important}
/* Smaller personnel cards keep one nearest task; opening a card retains the complete task list. */
#aem-overview.aem-shell #at-content .at-cards{gap:10px;align-items:stretch}
#aem-overview.aem-shell #at-content .at-cards>.at-card{gap:6px!important;padding:10px!important;align-self:stretch}
#aem-overview.aem-shell #at-content .at-cardhead{gap:8px;margin-bottom:2px}
#aem-overview.aem-shell #at-content .at-cardhead>strong,#aem-overview.aem-shell #at-content .aem-pl-name{font-size:15px!important;font-weight:600!important;line-height:1.4}
#aem-overview.aem-shell #at-content .at-avatar{width:30px;height:30px;font-size:11px;border-radius:7px}
#aem-overview.aem-shell #at-content .at-numbers{gap:5px;margin:2px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
#aem-overview.aem-shell #at-content .at-numbers [data-allocation-kind]{padding:6px!important;font-size:12px!important}
#aem-overview.aem-shell #at-content .at-numbers b{font-size:17px!important;line-height:1.3;margin-top:2px}
#aem-overview.aem-shell #at-content :is(.aem-preview-caption,.at-loadsummary small){font-size:11px;line-height:1.4;margin:0}
#aem-overview.aem-shell #at-content .at-minilist>div{padding:6px 8px!important;margin:2px 0!important}
#aem-overview.aem-shell #at-content .at-minilist :is(strong,small){font-size:12px!important;line-height:1.4}
#aem-overview.aem-shell #at-content .at-minilist .aem-preview-project{font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aem-overview.aem-shell #at-content .at-minilist .ao-stage{padding:2px 5px;font-size:11px!important}
#aem-overview.aem-shell #at-content .at-loadsummary{margin-top:3px;padding-top:6px}
#aem-overview.aem-shell #at-content .at-loadsummary strong{font-size:12px!important;line-height:1.4}
#aem-overview.aem-shell #at-content .aem-pl-workload-card{gap:7px!important;padding:10px!important}
#aem-overview.aem-shell #at-content .aem-pl-workload-card .at-minilist{min-height:0;display:block}
#aem-overview.aem-shell #at-content .wc-pl-table :is(td,th){font-size:13px!important;line-height:1.4;padding:7px 9px!important;vertical-align:middle}
#aem-overview.aem-shell #at-content .wc-pl-table .wl-person strong{font-size:15px!important;font-weight:600!important}
#aem-overview.aem-shell #at-content .wc-pl-table .wc-pl-number{font-size:15px!important;line-height:1.3;font-weight:600!important;padding:3px 6px!important}
#aem-overview.aem-shell #at-content .wc-pl-table :is(.wc-pl-row-state,.wc-pl-completion){font-size:11px!important;margin-top:3px}
@media(min-width:1440px){#aem-overview.aem-shell #at-content .at-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Form drawers fit content. Data-rich drawers remain wider and scroll when necessary. */
#aem-overview.aem-shell .aem-standard-drawer:not(.aem-drawer-minimized):is(#aem-dispatch-proposal,#aem-load-request,#aem-load-request-detail,#aem-admin-team-dod,#aem-management-dod-editor){inset:16px 16px auto auto!important;transform:none!important;width:min(640px,calc(100vw - 40px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;padding:12px!important;overflow:auto!important;box-sizing:border-box}
#aem-overview.aem-shell .aem-standard-drawer:is(#aem-dispatch-proposal,#aem-load-request,#aem-load-request-detail,#aem-follow-panel,#aem-admin-team-dod,#aem-management-dod-editor) :is(h3,h4){font-size:14px!important;margin:8px 0!important;line-height:1.4}
#aem-overview.aem-shell .aem-standard-drawer:is(#aem-dispatch-proposal,#aem-load-request,#aem-load-request-detail,#aem-follow-panel,#aem-admin-team-dod,#aem-management-dod-editor) :is(label,p,li){font-size:13px!important;line-height:1.45}
#aem-overview.aem-shell #aem-dispatch-proposal form{display:grid;gap:10px}
#aem-overview.aem-shell #aem-dispatch-proposal form :is(label,p){margin:0!important}
#aem-overview.aem-shell #aem-dispatch-proposal .aem-proposal-candidates ol{margin:6px 0 0;padding-left:22px}
#aem-overview.aem-shell #aem-dispatch-proposal form>button{justify-self:start}
/* Statistics summaries and tables use a single readable size scale. */
#aem-overview.aem-shell #aem-kpi-personnel-overview{margin:4px 0 8px!important}
#aem-overview.aem-shell #aem-kpi-personnel-overview>header{margin-bottom:5px;gap:8px}
#aem-overview.aem-shell #aem-kpi-personnel-overview>div{gap:8px!important}
#aem-overview.aem-shell #aem-kpi-personnel-overview :is(button,#ak-summary,[data-kpi-period-summary]){padding:8px 10px!important;gap:3px!important;min-height:70px!important}
#aem-overview.aem-shell #aem-kpi-personnel-overview :is(button,#ak-summary,[data-kpi-period-summary])>strong,#aem-overview.aem-shell #aem-kpi-personnel-overview #ak-summary h3{font-size:21px!important;line-height:1.3!important;margin:0!important}
#aem-overview.aem-shell #aem-kpi-personnel-overview :is(small,span){font-size:11px!important;line-height:1.4}
#aem-overview.aem-shell :is(#ad-summary,#am-summary)>:is(button,section){padding:9px 11px!important}
#aem-overview.aem-shell :is(#ad-summary,#am-summary) strong{font-size:21px!important;line-height:1.3}
#aem-overview.aem-shell #ad-panel .wl-dod-caption{margin:3px 0 6px!important;font-size:12px}
#aem-overview.aem-shell #ad-panel .aem-dod-search{margin:0 0 8px!important}
#aem-overview.aem-shell #ad-panel .aem-dod-search input{width:min(380px,100%)}
#aem-overview.aem-shell :is(#ak-panel,#ad-panel) :is(.wl-stat-pane,.aem-dod-table-pane){padding:10px!important;margin:0!important}
#aem-overview.aem-shell :is(#ak-panel,#ad-panel) :is(h3,h4){font-size:14px!important;margin:6px 0 8px!important;line-height:1.4}
#aem-overview.aem-shell #ad-panel .aem-dod-coverage-top>div{padding:8px 10px!important;gap:3px}
#aem-overview.aem-shell #ad-panel .aem-dod-coverage-top strong{font-size:21px!important}
#aem-overview.aem-shell #ad-panel .aem-dod-status-strip{margin:7px 0;gap:6px}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel,#aem-reports-panel) table :is(th,td){font-size:13px!important;padding:7px 8px!important;line-height:1.4;vertical-align:middle}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel,#aem-reports-panel) .wc-stat-person> :is(strong,[data-user-text]){font-size:14px!important;font-weight:600!important}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel,#aem-reports-panel) .wc-stat-avatar .aem-person-avatar{width:27px!important;height:27px!important}
#aem-overview.aem-shell #ak-members .aem-kpi-project-notes{max-height:none;overflow:visible;gap:2px 5px}
#aem-overview.aem-shell #ak-members .aem-kpi-project-notes button{font-size:12px}
#aem-overview.aem-shell #aem-main :is(#ak-panel,#ad-panel) :is(.wl-stat-method,.aem-dod-method){padding:5px 0;margin-top:6px;font-size:12px}
#aem-overview.aem-shell #aem-reports-panel>header{margin:0 0 8px!important;padding:0!important}
#aem-overview.aem-shell #aem-reports-panel .aem-report-filters{padding:8px 10px;margin:0 0 8px;gap:8px}
#aem-overview.aem-shell #aem-report-caption{margin:0 0 7px;font-size:12px}
#aem-overview.aem-shell #aem-reports-panel .aem-report-cards{margin:8px 0;gap:8px}
#aem-overview.aem-shell #aem-reports-panel .aem-report-cards>section{padding:9px 11px;gap:4px}
#aem-overview.aem-shell #aem-reports-panel .aem-report-cards>section>strong{font-size:22px!important;line-height:1.3}
#aem-overview.aem-shell #aem-reports-panel .aem-report-section{padding:10px!important;margin:8px 0!important}
#aem-overview.aem-shell #aem-reports-panel .aem-report-section h3{font-size:14px!important;margin:0 0 8px!important}
#aem-overview.aem-shell #aem-reports-panel #aem-personnel-comparison>header{margin-bottom:8px}
#aem-overview.aem-shell .aem-standard-drawer:not(.aem-drawer-minimized){bottom:auto!important;min-height:0!important}
/* Natural-height statistics: the page handles long content, without nested vertical scrollbars. */
#aem-overview.aem-shell #aem-main>:is(#ak-panel,#ad-panel,#aem-reports-panel){height:auto!important;max-height:none!important;overflow:visible!important}
#aem-overview.aem-shell #aem-main #aem-reports-panel>#aem-report-content{height:auto!important;max-height:none!important;overflow:visible!important}
/* Weekly names share the same restrained scale as the PL and statistics tables. */
#aem-overview.aem-shell #at-content .aem-week-table tbody td:first-child strong{font-size:14px!important;font-weight:600!important;line-height:1.4}
#aem-overview.aem-shell #at-content .aem-week-table tbody td:first-child .aem-person-avatar{width:27px!important;height:27px!important;font-size:11px!important;vertical-align:middle;margin-right:8px}
/* Names remain clickable without a separate white button around the identity. */
#aem-overview.aem-shell #aem-main #aem-management-dod-statistics button[data-dod-stat-person]{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-height:30px!important;max-width:100%;color:light-dark(#111,#edf2f8)!important}
#aem-overview.aem-shell #aem-main #aem-management-dod-statistics button[data-dod-stat-person]:hover{color:var(--ad-blue)!important}
#aem-overview.aem-shell #aem-main #aem-management-dod-statistics button[data-dod-stat-person]:focus-visible{outline:2px solid var(--ad-blue)!important;outline-offset:3px}
/* Consistent semantic colours for icons and labels, with quiet grey inactive surfaces. */
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=green]{--wc-nav-accent:light-dark(#17734f,#97dfb8);--wc-nav-fill:light-dark(#e2f1e9,#1a3f34)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=purple]{--wc-nav-accent:light-dark(#7545a0,#d2b3ef);--wc-nav-fill:light-dark(#efe5f8,#3b2d4d)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=teal]{--wc-nav-accent:light-dark(#126c77,#95dce2);--wc-nav-fill:light-dark(#dff1f3,#1c3b41)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=orange]{--wc-nav-accent:light-dark(#985609,#ffd090);--wc-nav-fill:light-dark(#fff0da,#45351e)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=blue]{--wc-nav-accent:var(--ad-blue);--wc-nav-fill:light-dark(#e3eefb,#233e60)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=indigo]{--wc-nav-accent:light-dark(#4d51a3,#b6bbff);--wc-nav-fill:light-dark(#e9eafa,#303152)}
#aem-overview.aem-shell #aem-main [data-wc-nav-tone=red]{--wc-nav-accent:var(--ad-red);--wc-nav-fill:light-dark(#fbe5e9,#492a34)}
#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone]{color:var(--wc-nav-accent)!important}
#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone][aria-pressed=true]{background:var(--wc-nav-fill)!important;border-color:var(--wc-nav-accent)!important;box-shadow:inset 0 -2px var(--wc-nav-accent)!important}
#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone] :is(.wc-nav-icon,span,strong){color:inherit!important}
#aem-overview.aem-shell #aem-main #aem-dod-views>button[data-wc-nav-tone] b.is-zero{color:light-dark(#8b95a3,#8e9bab)!important}
#aem-overview.aem-shell #at-content summary.wc-person-summary{font-size:14px!important;font-weight:600!important;line-height:1.4!important;padding:7px 10px!important;margin-top:6px!important;cursor:pointer}
#aem-overview.aem-shell #at-content summary.wc-person-summary>.wc-person-group{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;font-size:14px!important;font-weight:600!important}
#aem-overview.aem-shell #at-content summary.wc-person-summary [data-user-text]{font-size:14px!important;font-weight:600!important}
#aem-overview.aem-shell #at-content summary.wc-person-summary small{font-size:12px!important;font-weight:400!important;color:var(--ao-muted)!important}
#aem-overview.aem-shell #at-content summary.wc-person-summary :is(.aem-person-avatar,.wc-unassigned-icon){display:inline-flex;align-items:center;justify-content:center;width:26px!important;height:26px!important;flex:0 0 26px;font-size:10px!important;border-radius:50%;object-fit:cover}
#aem-overview.aem-shell #at-content summary.wc-person-summary .wc-unassigned-icon{background:var(--ao-soft);color:var(--ad-blue)}
/* Bring settings closer to the report links without changing the navigation order. */
#aem-overview.aem-shell #aem-sidebar #aem-settings-navigation{margin-top:4px!important;padding-top:0!important;gap:3px!important}
#aem-overview.aem-shell #aem-sidebar #aem-settings-navigation>.aem-nav-group{padding-top:4px!important;padding-bottom:2px!important}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#aem-overview.aem-shell #aem-team-toolbar #wc-allocation-person{flex:0 1 180px;min-width:145px;max-width:210px;width:auto!important;font-size:12px;min-height:34px}
#aem-overview.aem-shell #aem-team-toolbar .aem-filter-search .aem-search-control{flex:1 1 220px!important;min-width:190px;max-width:360px!important}
#aem-overview.aem-shell #aem-team-toolbar #at-search{min-width:0!important;width:100%!important}
/* DOD colours follow semantic column names, including after a column is removed. */
#aem-overview.aem-shell{--wc-waiting:light-dark(#c99500,#ffe15a)}
#aem-overview.aem-shell #ad-panel [data-metric-tone=waiting]:not([data-wc-zero=true]),#aem-overview.aem-shell #aem-main [data-grade="Waiting"]:not(.is-zero){color:var(--wc-waiting)!important}
#aem-overview.aem-shell #ad-panel [data-metric-tone=late-done]:not([data-wc-zero=true]){color:var(--ad-orange)!important}
#aem-overview.aem-shell #ad-summary [data-opsmetric="4"]{--wc-accent:var(--wc-waiting)!important}
#aem-overview.aem-shell #ad-summary [data-opsmetric="1"]{--wc-accent:var(--ad-orange)!important}
#aem-overview.aem-shell #ad-panel td[data-wc-zero=true]{color:light-dark(#98a1ad,#8994a3)!important}
/* Keep the overview's team counts, KPI and completion ratios small and regular. */
#aem-overview.aem-shell #ao-rows>tr>:is(td:nth-child(7),td:nth-child(8)),#aem-overview.aem-shell #ao-rows>tr>:is(td:nth-child(7),td:nth-child(8)) :is(strong,b,small,span){font-size:12px!important;font-weight:400!important;line-height:1.4!important}
#aem-overview.aem-shell #at-content details.at-projectcard>summary{font-size:13px!important;font-weight:400!important;line-height:1.4!important;padding:7px 9px!important;margin:0!important}
/* Progress is always visible beneath the result heading, without opt-in or disclosure controls. */
#aem-overview.aem-shell #ao-sidebar [data-wc-task-pane=result]>.aem-progress-compact{display:block!important;margin:6px 0 10px!important;padding:7px 9px!important;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-bg)}
#aem-overview.aem-shell #ao-sidebar [data-wc-task-pane=result]>.aem-progress-compact>label{display:flex!important;align-items:center!important;gap:8px!important;flex-direction:row!important;margin:0!important;font-size:12px!important;font-weight:400!important}
#aem-overview.aem-shell #ao-sidebar [data-wc-task-pane=result]>.aem-progress-compact output{font-size:12px!important;font-weight:500!important;min-width:32px;white-space:nowrap}
#aem-overview.aem-shell #ao-sidebar [data-wc-task-pane=result]>.aem-progress-compact input[type=range]{flex:1;min-width:90px!important;max-width:none!important;width:auto!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important}
#aem-overview.aem-shell .aem-task-table .aem-task-project>.aem-task-client{font-size:12px!important;font-weight:400!important;color:var(--ao-muted)!important;align-self:center}
/* PL card metrics use coloured numbers rather than filled tiles. */
#aem-overview.aem-shell #at-content .wc-pl-card-identity .at-count{display:flex;align-items:baseline;gap:5px;font-size:12px!important;line-height:1.4}
#aem-overview.aem-shell #at-content .wc-pl-card-identity .wc-pl-project-count{font-size:21px!important;font-weight:600!important;line-height:1.2;background:transparent!important;border:0!important;padding:0!important}
#aem-overview.aem-shell #at-content .wc-pl-card-identity .wc-pl-project-count.has-value{color:var(--ad-blue)!important}
#aem-overview.aem-shell #at-content .wc-pl-card-identity .wc-pl-project-count.is-zero{color:light-dark(#98a1ad,#8994a3)!important}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span{--wc-pl-metric-color:var(--ad-blue);background:transparent!important;border:0!important;box-shadow:none!important;padding:5px 0!important;font-size:12px!important;color:light-dark(#111,#edf2f8)!important}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-direct{--wc-pl-metric-color:light-dark(#7548a7,#ccaff4)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-pending{--wc-pl-metric-color:var(--ad-yellow)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-deadline{--wc-pl-metric-color:var(--ad-red)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span>b{font-size:16px!important;line-height:1.3;font-weight:600!important;color:var(--wc-pl-metric-color)!important}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.is-zero>b{color:light-dark(#98a1ad,#8994a3)!important}
#aem-overview.aem-shell #at-content .aem-pl-kpi{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#aem-overview.aem-shell #at-content .aem-pl-kpi>b{color:var(--ad-blue)!important}
#aem-overview.aem-shell #at-content .aem-pl-kpi[data-pl-kpi="0"]>b{color:light-dark(#98a1ad,#8994a3)!important}
#aem-overview.aem-shell #at-content .aem-pl-kpi>b>small{color:var(--ao-muted)!important}

/* Compact PL metrics: semantic fills for activity, neutral fills at zero. */
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span{--wc-pl-fill:light-dark(#e6effc,#20334b);background:var(--wc-pl-fill)!important;border:1px solid color-mix(in srgb,var(--wc-pl-metric-color) 22%,transparent)!important;border-radius:6px;padding:6px 8px!important;gap:6px}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-direct{--wc-pl-fill:light-dark(#efe8fa,#352946)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-pending{--wc-pl-fill:light-dark(#fff1cc,#40351e)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.pl-deadline{--wc-pl-fill:light-dark(#fce4e8,#462832)}
#aem-overview.aem-shell #at-content .aem-pl-workload-stats>span.is-zero{background:light-dark(#eef0f3,#252b33)!important;border-color:light-dark(#e0e4e9,#353d48)!important}
#aem-overview.aem-shell .aem-pl-card-foot:empty{display:none!important}
/* Pasted results remain visible after closing the text editor. */
#aem-overview.aem-shell #ao-sidebar .aem-result-content{outline:none;min-height:12px}
#aem-overview.aem-shell #ao-sidebar .aem-result-content:focus-visible{outline:2px solid var(--ad-blue);outline-offset:3px}
#aem-overview.aem-shell #ao-sidebar .aem-result-images figure{margin:10px 0;border:0;border-radius:4px;background:transparent}
#aem-overview.aem-shell #ao-sidebar .aem-result-images img{width:auto!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain;background:transparent}
#aem-overview.aem-shell #ao-sidebar .wl-reading .aem-result-images figcaption{display:none!important}
#aem-overview.aem-shell #ao-sidebar .wl-reading .aem-result-content{padding:0;border:0;background:transparent}

/* Project count and KPI share one concise line beneath the PL name. */
#aem-overview.aem-shell #at-content .wc-pl-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px;min-width:0;line-height:1.3}
#aem-overview.aem-shell #at-content .wc-pl-summary>i{font-size:12px;font-style:normal;color:var(--ao-line)}
#aem-overview.aem-shell #at-content .wc-pl-summary .at-count{gap:4px;font-size:11px!important;white-space:nowrap}
#aem-overview.aem-shell #at-content .wc-pl-summary .wc-pl-project-count{font-size:13px!important;font-weight:500!important}
#aem-overview.aem-shell #at-content .wc-pl-summary .aem-pl-kpi{display:inline-flex!important;flex-direction:row!important;align-items:baseline;gap:4px;margin:0!important;text-align:left!important;white-space:nowrap}
#aem-overview.aem-shell #at-content .wc-pl-summary .aem-pl-kpi>small{font-size:11px!important;font-weight:400!important;line-height:1.3;color:var(--ao-ink)}
#aem-overview.aem-shell #at-content .wc-pl-summary .aem-pl-kpi>b{display:inline!important;font-size:13px!important;font-weight:500!important;line-height:1.3}
#aem-overview.aem-shell #at-content .wc-pl-summary .aem-pl-kpi>b>small{font-size:11px!important;font-weight:400!important}

/* Charcoal / muted forest dark surfaces with clear white content. */
#aem-overview.aem-shell.aem-readable-dark{--ao-text:#edf5f1;--ao-ink:#edf5f1;--ao-muted:#b0c6be;--ao-bg:#101415;--ao-card:#1b2325;--ao-soft:#212d2b;--ao-line:#323e3d;color:#edf5f1!important}
#aem-overview.aem-shell.aem-readable-dark #aem-sidebar{background:#161d1f!important;border-color:#323e3d!important}
#aem-overview.aem-shell.aem-readable-dark #aem-main{background:#101415!important}
#aem-overview.aem-shell.aem-readable-dark :is(#at-panel,#ak-panel,#ad-panel,#am-panel,#aem-reports-panel,#aem-settings-panel){background:var(--ao-bg)!important;color:var(--ao-ink)}
#aem-overview.aem-shell.aem-readable-dark #ao-overview-panel .ao-table thead th{background:#212b2d!important;border-bottom-color:#3a4944!important;color:#edf5f1!important}
#aem-overview.aem-shell.aem-readable-dark .ao-dategroup td{background:#090e0f!important}
#aem-overview.aem-shell.aem-readable-dark .ao-project td{background:#1b2325!important;color:#edf5f1!important}
#aem-overview.aem-shell.aem-readable-dark :is(.ao-project,.ao-team,.ao-leaf):hover>td{background:#263830!important}
#aem-overview.aem-shell.aem-readable-dark #at-content .at-minilist>div{background:#141c1d!important}
#aem-overview.aem-shell.aem-readable-dark :is(.ao-taskname,.ao-title,.aem-task-title,.aem-pl-name,.aem-title-copy>strong,.wc-page-title,.wl-content-preview,.wc-stat-person,.wc-stat-person>strong,.wc-person-group>[data-user-text]){color:#edf5f1!important}
#aem-overview.aem-shell.aem-readable-dark :is(.aem-task-project,.aem-preview-project,.aem-title-copy>small){color:#b0c6be!important}
#aem-overview.aem-shell.aem-readable-dark :is(.aem-standard-drawer,.aem-task-layout,.wc-task-content,[data-wc-task-pane],.aem-settings-card){background:var(--ao-card)!important;color:var(--ao-ink);border-color:var(--ao-line)!important}
#aem-overview.aem-shell.aem-readable-dark #aem-create-demo{--ap-ink:#edf5f1;--ap-muted:#b0c6be}
/* Filtered cards must stay hidden even when their layout uses display:flex!important. */
#aem-overview.aem-shell #at-content [hidden]{display:none!important}

/* Reference dark typography: soft white content, sage secondary text, mint dates. */
#aem-overview.aem-shell.aem-readable-dark{--ao-ink:#e4eeeb;--ao-text:#e4eeeb;--ao-muted:#b0c6be;color:#e4eeeb!important}
#aem-overview.aem-shell.aem-readable-dark #aem-sidebar .ao-tabs button:not([aria-pressed=true]){color:#b8cac3!important}
#aem-overview.aem-shell.aem-readable-dark #aem-sidebar .ao-tabs button:not([aria-pressed=true]) :is(span,small){color:#b8cac3!important}
#aem-overview.aem-shell.aem-readable-dark .ao-dategroup .ao-toggle{color:#a5e6ca!important}
#aem-overview.aem-shell.aem-readable-dark .ao-dategroup small{color:#91b4a8!important}
#aem-overview.aem-shell.aem-readable-dark :is(.ao-deadline-chip,.aem-time-text).ao-early{color:#ff887a!important;background:transparent!important}
#aem-overview.aem-shell.aem-readable-dark :is(.ao-deadline-chip,.aem-time-text).ao-office{color:#ffbd59!important;background:transparent!important}
#aem-overview.aem-shell.aem-readable-dark :is(.ao-deadline-chip,.aem-time-text).ao-evening{color:#9be2c4!important;background:transparent!important}
#aem-overview.aem-shell.aem-readable-dark .ao-progress i{background:#8bc8a6!important}
/* PM / PL editors follow the reference typography instead of legacy bold table labels. */
#aem-overview.aem-shell.aem-readable-dark #ao-rows>tr>td:nth-child(5),
#aem-overview.aem-shell.aem-readable-dark #ao-rows>tr>td:nth-child(5) :is(small,span,strong,b),
#aem-overview.aem-shell.aem-readable-dark #ao-rows .aem-role-control{color:#e4eeeb!important;font-size:13px!important;font-weight:400!important;line-height:1.5!important;opacity:1!important}
#aem-overview.aem-shell.aem-readable-dark #ao-rows .aem-role-control{background:transparent!important;border-color:transparent!important;padding:4px 5px!important;max-width:100%;text-overflow:ellipsis}
#aem-overview.aem-shell.aem-readable-dark #ao-rows .aem-role-control:hover,
#aem-overview.aem-shell.aem-readable-dark #ao-rows .aem-role-control:focus-visible{background:#263830!important;border-color:#527665!important}
#aem-overview.aem-shell.aem-readable-dark #ao-rows .aem-role-control option{background:#1b2325!important;color:#e4eeeb!important;font-weight:400!important}
/* Operational note text uses a regular weight in both themes. */
#aem-overview.aem-shell #aem-main :is(.ao-notepreview,.ao-notelink),
#aem-overview.aem-shell #aem-main :is(.ao-notepreview,.ao-notelink) *{font-weight:400!important}
/* One soft backing surface groups the overview filters and tree controls. */
#aem-overview.aem-shell{--wc-filter-fill:light-dark(#eef2e9,#232a25);--wc-filter-border:light-dark(#dde5df,#3a453e)}
#aem-overview.aem-shell #ao-overview-panel>.ao-tools{background:var(--wc-filter-fill)!important;border:1px solid var(--wc-filter-border)!important;border-radius:8px;box-shadow:none!important;padding:10px!important;gap:7px;margin:10px 0!important}
#aem-overview.aem-shell #ao-overview-panel>.ao-tools .aem-mobile-filter-body{background:transparent!important;border:0;box-shadow:none}

/* The same single filter surface across allocation, PL, My Work, PM and statistics. */
#aem-overview.aem-shell #aem-main :is(#aem-team-toolbar,#am-panel>.ao-tools,#ak-panel>.ao-tools,#ad-panel>.ao-tools,#ak-panel>.wl-stat-toolbar,#aem-reports-panel>.aem-report-filters){background:var(--wc-filter-fill)!important;border:1px solid var(--wc-filter-border)!important;border-radius:8px!important;box-shadow:none!important;padding:10px!important;margin:10px 0!important;gap:7px!important}
#aem-overview.aem-shell #aem-main #ak-panel>.wl-stat-toolbar .ao-tools,
#aem-overview.aem-shell #aem-main #aem-team-toolbar :is(#at-smartfilters,.aem-filter-search,.aem-dispatch-filters,.as-filtergroup){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#aem-overview.aem-shell #aem-main #ak-panel>.wl-stat-toolbar .ao-tools{padding:0!important;margin:0!important}
#aem-overview.aem-shell #aem-main #aem-team-toolbar #at-smartfilters{padding:0!important;margin:0!important}
/* Quick notes use an icon alone, without a count badge, in both themes. */
#aem-overview.aem-shell #aem-quick-notes-button [data-note-count]{display:none!important}
/* Awaiting workload requests use a neutral, non-alert treatment. */
#aem-overview.aem-shell #aem-main #aem-dispatch-actions .aem-pending-request{background:light-dark(#eef0f3,#252b30)!important;border-color:light-dark(#d8dde3,#3c454b)!important;color:light-dark(#58636f,#bac3ce)!important;box-shadow:none!important}

#aem-overview.aem-shell #ao-forecast .af-status-button{display:block;width:100%;text-align:left;margin:9px 0;padding:8px 9px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--ao-ink);font:inherit;box-shadow:none}
#aem-overview.aem-shell #ao-forecast .af-status-button>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#aem-overview.aem-shell #ao-forecast .af-status-button strong{font-size:12px;font-weight:500}
#aem-overview.aem-shell #ao-forecast .af-status-button>small{display:block;text-align:right;font-size:11px;margin:2px 0 0;color:var(--ao-muted)}
#aem-overview.aem-shell #ao-forecast .af-status-button:not(:disabled):hover{background:var(--ao-soft);border-color:var(--ao-line);cursor:pointer}
#aem-overview.aem-shell #ao-forecast .af-status-button:disabled{opacity:1;cursor:default}
#aem-overview.aem-shell #ao-forecast .af-status-button.is-zero strong{color:var(--ao-muted)}
/* Project conversations: compact desktop workspace with one feed per team topic. */
#aem-overview.aem-shell.aem-messages-mode{grid-template-columns:minmax(0,1fr)!important}
#aem-overview.aem-shell.aem-messages-mode #aem-sidebar{display:none!important}
#aem-overview.aem-shell #aem-messages-panel{--acm-line:var(--ao-line);color:var(--ao-ink);min-width:0}
#aem-overview.aem-shell #aem-messages-panel[hidden]{display:none!important}
#aem-overview.aem-shell .acm-page-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}
#aem-overview.aem-shell .acm-page-head h2{font-size:18px;margin:0}
#aem-overview.aem-shell .acm-workspace{display:grid;grid-template-columns:245px minmax(360px,1fr) 225px;height:calc(100dvh - 205px);min-height:460px;max-height:900px;border:1px solid var(--ao-line);border-radius:9px;overflow:hidden;background:var(--ao-card)}
#aem-overview.aem-shell .acm-projects{overflow:auto;background:var(--ao-bg);border-right:1px solid var(--ao-line);padding:12px}
#aem-overview.aem-shell .acm-projects>label{display:grid;gap:5px;font-size:12px;margin-bottom:12px}
#aem-overview.aem-shell .acm-projects input{width:100%;font-size:12px!important;min-width:0}
#aem-overview.aem-shell .acm-projects nav{display:grid;gap:5px}
#aem-overview.aem-shell .acm-projects nav>button{display:grid;gap:2px;text-align:left;padding:9px!important;min-height:0;border:1px solid transparent;background:transparent;font-size:12px}
#aem-overview.aem-shell .acm-projects nav>button[aria-pressed=true]{border-color:var(--ao-green);background:var(--ao-soft)}
#aem-overview.aem-shell .acm-projects nav>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
#aem-overview.aem-shell .acm-projects nav>button>small{font-size:10px}
#aem-overview.aem-shell .acm-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}
#aem-overview.aem-shell .acm-conversation>header{padding:12px 15px;border-bottom:1px solid var(--ao-line);min-height:58px}
#aem-overview.aem-shell .acm-conversation h3{font-size:15px;margin:0}
#aem-overview.aem-shell .acm-topics{display:flex;gap:6px;padding:8px 12px;border-bottom:1px solid var(--ao-line);flex-wrap:wrap}
#aem-overview.aem-shell .acm-topics>button{font-size:12px;padding:5px 10px!important;min-height:30px;background:var(--ao-bg)}
#aem-overview.aem-shell .acm-topics>button[aria-pressed=true]{background:var(--ui-blue-bg);border-color:var(--ui-blue);color:var(--ui-blue)}
#aem-overview.aem-shell .acm-feed{overflow:auto;flex:1;min-height:0;padding:16px;background:var(--ao-bg);display:flex;flex-direction:column;gap:14px}
#aem-overview.aem-shell .acm-message{max-width:90%;padding:11px 13px;border:1px solid var(--ao-line);border-radius:9px;background:var(--ao-card);align-self:flex-start;overflow-wrap:anywhere}
#aem-overview.aem-shell .acm-message.is-mine{align-self:flex-end;background:var(--ao-soft)}
#aem-overview.aem-shell .acm-message>header{display:flex;gap:7px;justify-content:flex-start;margin-bottom:6px}
#aem-overview.aem-shell .acm-message>header strong{font-size:12px;font-weight:600}
#aem-overview.aem-shell .acm-message time{font-size:10px;color:var(--ao-muted)}
#aem-overview.aem-shell .acm-message .aem-avatar{width:25px;height:25px}
#aem-overview.aem-shell .acm-message-text{font-size:13px;line-height:1.6;white-space:pre-wrap}
#aem-overview.aem-shell .acm-tag-list{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;color:var(--ui-blue);font-size:12px}
#aem-overview.aem-shell :is(.acm-message,.acm-attachments) figure{margin:9px 0 0}
#aem-overview.aem-shell :is(.acm-message,.acm-attachments) img{display:block;width:auto;max-width:100%;max-height:380px;object-fit:contain;border-radius:5px}
#aem-overview.aem-shell :is(.acm-message,.acm-attachments) figcaption{font-size:10px;color:var(--ao-muted)}
#aem-overview.aem-shell .acm-message .acm-task-link{margin-top:8px;padding:5px 8px!important;font-size:11px;text-align:left;min-height:28px;background:transparent;color:var(--ui-blue)}
#aem-overview.aem-shell #acm-compose{padding:10px 12px;border-top:1px solid var(--ao-line);background:var(--ao-card)}
#aem-overview.aem-shell .acm-compose-label{display:grid;gap:4px;font-size:11px}
#aem-overview.aem-shell #acm-text{min-height:55px;height:60px;max-height:150px;font-size:13px!important}
#aem-overview.aem-shell .acm-compose-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:7px}
#aem-overview.aem-shell .acm-compose-tools button{font-size:12px;padding:6px 9px!important;min-height:30px}
#aem-overview.aem-shell .acm-compose-tools>.acm-send{margin-left:auto}
#aem-overview.aem-shell .acm-send{background:var(--ui-blue-bg)!important;border-color:var(--ui-blue)!important;color:var(--ao-ink)!important}
#aem-overview.aem-shell .acm-attach-button{font-size:12px;cursor:pointer;padding:5px;border:1px solid var(--ao-line);border-radius:5px}
#aem-overview.aem-shell .acm-attach-button input{max-width:150px;font-size:10px!important}
#aem-overview.aem-shell .acm-details{padding:15px;border-left:1px solid var(--ao-line);overflow:auto;background:var(--ao-bg);font-size:12px}
#aem-overview.aem-shell .acm-details h3{font-size:14px;margin:0 0 12px}
#aem-overview.aem-shell .acm-details section{margin:15px 0;border-bottom:1px solid var(--ao-line);padding-bottom:8px}
#aem-overview.aem-shell .acm-details h4{margin:0 0 5px;font-size:11px;color:var(--ui-blue)}
#aem-overview.aem-shell .acm-details p{font-size:12px;margin:4px 0;color:var(--ao-ink)}
#aem-overview.aem-shell .acm-demo-note{display:block;margin-top:20px;line-height:1.6}
#aem-overview.aem-shell .acm-empty{margin:auto;padding:24px;text-align:center;color:var(--ao-muted);font-size:13px}
#aem-overview.aem-shell .acm-mentions{font-size:12px;position:relative;min-width:140px}
#aem-overview.aem-shell .acm-mentions>summary{cursor:pointer;padding:5px}
#aem-overview.aem-shell .acm-mentions[open]{padding:6px;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-card)}
#aem-overview.aem-shell .acm-mentions>input{width:100%;min-width:0;font-size:12px!important}
#aem-overview.aem-shell .acm-mentions>div{max-height:130px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:6px}
#aem-overview.aem-shell .acm-mentions label{display:flex;gap:5px;align-items:center;font-size:12px!important}
#aem-overview.aem-shell .acm-mentions label[hidden]{display:none!important}
#aem-overview.aem-shell .acm-mentions input[type=checkbox]{width:15px!important;min-height:15px!important;padding:0}
#aem-overview.aem-shell .acm-error{color:var(--ui-red);font-size:12px;white-space:pre-wrap;margin-top:5px}
#aem-overview.aem-shell .acm-task-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--ao-line)}
#aem-overview.aem-shell .acm-task-actions button{font-size:12px!important;padding:6px 8px!important;min-height:30px}
#aem-overview.aem-shell .acm-task-actions>small{display:block;flex-basis:100%;font-size:10px}
#aem-overview.aem-shell #aem-chat-share{position:fixed;top:85px;right:18px;width:min(580px,calc(100vw - 36px));max-height:calc(100dvh - 110px);height:auto;bottom:auto;overflow:auto;padding:14px;background:var(--ao-card);color:var(--ao-ink);border:1px solid var(--ao-line);border-radius:9px;z-index:1500;box-shadow:0 12px 45px #0004}
#aem-overview.aem-shell #aem-chat-share[hidden]{display:none!important}
#aem-overview.aem-shell #aem-chat-share>header{align-items:flex-start;border-bottom:1px solid var(--ao-line);padding-bottom:10px;margin-bottom:10px}
#aem-overview.aem-shell #aem-chat-share h3{font-size:16px;margin:0}
#aem-overview.aem-shell #aem-chat-share form>label{display:grid;gap:5px;font-size:12px}
#aem-overview.aem-shell #aem-chat-share textarea{font-size:13px!important;min-height:80px}
#aem-overview.aem-shell .acm-share-fields{display:flex;gap:15px;align-items:center;margin:10px 0;font-size:12px}
#aem-overview.aem-shell .acm-share-fields input[type=number]{width:70px;font-size:13px!important}
#aem-overview.aem-shell .acm-complete{display:flex;align-items:center;gap:7px}
#aem-overview.aem-shell .acm-complete input{width:16px}
#aem-overview.aem-shell #aem-chat-share footer{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}
#aem-overview.aem-shell #aem-chat-share .acm-attachments{max-height:210px;overflow:auto;margin:10px 0}
#aem-overview.aem-shell .acm-create-chat{display:flex;align-items:center;gap:9px;margin:18px 0 0;font-size:13px}
#aem-overview.aem-shell .acm-create-chat input{width:17px}
@media(max-width:1150px){#aem-overview.aem-shell .acm-workspace{grid-template-columns:210px minmax(300px,1fr)}#aem-overview.aem-shell .acm-details{display:none}}
@media(max-width:700px){#aem-overview.aem-shell .acm-workspace{grid-template-columns:140px minmax(0,1fr);min-height:480px;height:calc(100dvh - 200px)}#aem-overview.aem-shell .acm-message{max-width:100%}#aem-overview.aem-shell .acm-projects{padding:7px}}
#aem-overview.aem-shell.aem-messages-mode #aem-main{grid-column:1!important;min-width:0}

#aem-overview.aem-shell #aem-chat-share.aem-drawer-minimized>form{display:none!important}

/* The send sheet must sit above the task modal and its shade. */
#aem-overview.aem-shell #aem-chat-share.aem-standard-drawer{z-index:11050!important;width:min(580px,calc(100vw - 36px))!important;inset:85px 18px auto auto!important;max-height:calc(100dvh - 110px)!important;background:var(--ao-card)!important;opacity:1!important;filter:none!important}

/* Match the deadline date to the compact start date in task details. */
#aem-overview.aem-shell #ao-sidebar .aem-task-context .aem-task-control-row.aem-task-control-row :is(.aem-start-plan,[data-editdeadline]),
#aem-overview.aem-shell #ao-sidebar .aem-task-context .aem-task-control-row.aem-task-control-row :is(.aem-start-plan,[data-editdeadline]) *{font-size:12px!important;font-weight:750!important;line-height:1.4!important}

/* Clear primary action, with the send sheet beside the task on desktop. */
#aem-overview.aem-shell .acm-task-actions button[data-chat-share]{font-size:14px!important;font-weight:750!important;min-height:40px!important;padding:10px 16px!important;background:light-dark(#276952,#28785e)!important;color:#fff!important;border:1px solid light-dark(#1c533f,#54a68a)!important;box-shadow:0 2px 5px #0002}
#aem-overview.aem-shell .acm-task-actions button[data-chat-share]:hover{filter:brightness(1.12);box-shadow:0 3px 10px #27695244}
#aem-overview.aem-shell .acm-destination{margin:12px 0;padding:10px;background:var(--ao-soft);border:1px solid var(--ao-line);border-radius:7px;font-size:12px}
#aem-overview.aem-shell .acm-primary-target{display:block;margin:5px 0;font-weight:650}
#aem-overview.aem-shell .acm-destination summary{cursor:pointer;padding:5px 0;color:var(--ao-ink)}
#aem-overview.aem-shell .acm-target-list{max-height:180px;overflow:auto;display:grid;gap:6px;margin-top:6px}
#aem-overview.aem-shell .acm-target-list fieldset{padding:6px 8px;border:1px solid var(--ao-line);border-radius:5px;display:flex;gap:8px;flex-wrap:wrap}
#aem-overview.aem-shell .acm-target-list label{display:flex;gap:4px;align-items:center;font-size:11px}
#aem-overview.aem-shell .acm-target-list input{width:15px;min-height:15px}
#aem-overview.aem-shell #aem-chat-share.aem-standard-drawer{width:min(500px,calc(100vw - 36px))!important;inset:85px 18px auto auto!important;max-height:calc(100dvh - 105px)!important}
#aem-overview.aem-shell #aem-chat-share footer{position:sticky;bottom:-16px;background:var(--ao-card);padding:10px 0 5px;border-top:1px solid var(--ao-line)}
#aem-overview.aem-shell #aem-chat-share .acm-send{background:light-dark(#276952,#28785e)!important;color:#fff!important;padding:9px 14px!important;font-weight:700!important}

/* Compact popover above the task; preserve the task's normal width. */
#aem-overview.aem-shell #aem-chat-share.aem-standard-drawer{inset:var(--acm-share-top,100px) auto auto var(--acm-share-left,50%)!important;transform:translateX(-50%)!important;width:min(520px,calc(100vw - 36px))!important;max-height:calc(100dvh - 135px)!important;padding:12px!important;border-radius:10px!important;box-shadow:0 12px 42px #0005!important}
#aem-overview.aem-shell #aem-chat-share>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin:-12px -12px 10px!important;padding:10px 12px!important}
#aem-overview.aem-shell #aem-chat-share>header>div:first-child{flex:1;min-width:0}
#aem-overview.aem-shell #aem-chat-share>header>div:last-child{display:flex;gap:5px;flex:none}
#aem-overview.aem-shell #aem-chat-share h3{font-size:14px!important;line-height:1.4!important}
#aem-overview.aem-shell #aem-chat-share header small{display:block;font-size:10px!important;margin-top:3px}
#aem-overview.aem-shell #aem-chat-share textarea{min-height:65px!important;max-height:140px}
#aem-overview.aem-shell #aem-chat-share .acm-destination{padding:8px;margin:8px 0}

/* Keep the task geometry unchanged; the send popover only summarizes attachments. */
#aem-overview.aem-shell #aem-chat-share.aem-standard-drawer{width:min(480px,calc(100vw - 36px))!important;padding:12px!important;max-height:calc(100dvh - 130px)!important}
#aem-overview.aem-shell #aem-chat-share .acm-attachments{display:none!important}
#aem-overview.aem-shell #aem-chat-share .acm-image-count{display:block;font-size:11px!important;color:var(--ao-muted);margin:7px 0}
#aem-overview.aem-shell #aem-chat-share textarea{height:65px!important;min-height:65px!important;resize:vertical}
#aem-overview.aem-shell #aem-chat-share .acm-share-fields{gap:10px;margin:8px 0;flex-wrap:wrap}
#aem-overview.aem-shell #aem-chat-share .acm-share-fields input[type=number]{width:60px;min-height:32px;padding:5px!important}
#aem-overview.aem-shell #aem-chat-share footer{margin-top:8px;padding-top:8px;gap:7px}


#aem-overview.aem-shell .acm-task-name-line{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;vertical-align:middle}
#aem-overview.aem-shell .acm-task-name-line>[data-tasklabel]{min-width:0;flex:1}
#aem-overview.aem-shell button.acm-completion-circle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;flex:0 0 21px!important;border-radius:50%!important;border:1px solid light-dark(#8caaa0,#8aa99d)!important;background:transparent!important;color:#fff!important;padding:0!important;margin:0!important;font-size:14px!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
#aem-overview.aem-shell button.acm-completion-circle[aria-checked=true]{background:#32865f!important;border-color:#32865f!important;opacity:1!important;cursor:default}
#aem-overview.aem-shell button.acm-completion-circle:not(:disabled):hover{background:light-dark(#e0f1e8,#23483a)!important;border-color:#32865f!important}

#aem-overview.aem-shell #ao-sidebar .acm-status-completion-line{display:flex!important;width:100%;gap:7px;align-items:center}
#aem-overview.aem-shell #ao-sidebar .acm-status-completion-line select[data-status]{flex:1;min-width:0!important;width:0!important}

/* Compact planning surfaces follow the active theme. */
#aem-overview .ap-card{border:1px solid light-dark(#cdd8d3,#405149);border-radius:9px;padding:12px;margin:10px 0;background:light-dark(#f6f8f7,#19231f);font-size:13px}
#aem-overview .ap-card header,#aem-overview .ap-card form{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0}
#aem-overview .ap-card h3{font-size:15px;margin:0 10px 0 0}#aem-overview .ap-card input,#aem-overview .ap-card select,#aem-overview .ap-card button{font-size:13px;padding:6px 8px;max-width:100%}
#aem-overview .ap-daily-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid light-dark(#dce3df,#34443c)}#aem-overview .ap-daily-row strong{font-size:13px;flex:1}#aem-overview .ap-daily-row>span:last-of-type{flex:1}#aem-overview .ap-done strong{text-decoration:line-through;opacity:.6}
#aem-overview .ap-board table{width:100%;table-layout:fixed;border-collapse:collapse}#aem-overview .ap-board th,#aem-overview .ap-board td{border:1px solid light-dark(#d8dfdb,#35463c);padding:6px;vertical-align:top;font-size:12px;overflow-wrap:anywhere}#aem-overview .ap-board th:first-child{width:115px}#aem-overview .ap-board td{height:58px}#aem-overview .ap-board td>button{display:block;width:100%;margin:4px 0;text-align:left;cursor:grab}#aem-overview .ap-board small{display:block;font-size:11px}#aem-overview .ap-draft{border:1px dashed light-dark(#51635a,#b2c1b8)}#aem-overview .ap-off{color:light-dark(#a82828,#ff9696);background:light-dark(#fbe7e7,#412626)}#aem-overview .ap-card table{width:100%}#aem-overview .ap-card td{padding:5px}

#aem-overview .ap-over{box-shadow:inset 0 3px #d35e31;background:light-dark(#fff0e6,#3d2c22)}

#aem-overview .ap-draft-tray>div{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}#aem-overview .ap-draft-tray button{max-width:240px}#aem-overview [data-draft-task]{display:flex!important;align-items:center;gap:6px;text-align:left;user-select:none;-webkit-user-drag:element}#aem-overview [data-draft-grip]{display:inline-flex;align-items:center;align-self:stretch;min-width:24px;min-height:28px;cursor:grab;touch-action:none;font-size:20px;color:light-dark(#305d49,#abd6bf)}#aem-overview .ap-drop-hover{outline:2px solid #359967;outline-offset:-2px;background:light-dark(#dff4e8,#244e38)!important}#aem-overview .ap-dragging{opacity:.5}#aem-overview [data-draft-feedback]{padding:7px 0;color:light-dark(#306b4b,#a4d5ba)}#aem-overview .ap-calendar-draft-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;font-size:13px}

/* Only stage badges use the shared overview palette. */
#aem-overview .ap-stage-card{background:transparent;color:light-dark(#18221c,#eff5f1);border:1px solid light-dark(#bfcdc5,#53665a)}
#aem-overview .ap-stage-card.ap-draft{border:2px dashed light-dark(#929a96,#8d9992)}#aem-overview .ap-draft-label{display:inline-block;padding:1px 5px;border:1px dashed currentColor;border-radius:4px;font-size:10px;font-weight:500;background:transparent;color:light-dark(#34463a,#dce8df)}#aem-overview .ap-stage-card .ao-stage{font-size:11px;padding:1px 5px;border:0}#aem-overview .ap-stage-card small{margin-top:3px}

#aem-overview .ap-model-hours{display:inline-block;font-size:11px;color:light-dark(#3d5144,#c2d5c9);margin-left:3px}#aem-overview .ap-stage-card.ap-draft .ap-draft-label{color:light-dark(#68736d,#b7c2bc)}

#aem-overview .ap-model-start-list{display:flex;flex-direction:column;gap:4px;min-height:60px}#aem-overview .ap-model-start-list button{position:static;width:100%;font-size:12px;padding:5px}#aem-overview .ap-model-start-list small{display:block}

/* Allocation planning: compact command bar, task inbox, and day grid. */
#aem-overview .ap-planner{--ap-line:light-dark(#dce4df,#3b4a41);--ap-muted:light-dark(#66766c,#b1c0b6);padding:14px;background:light-dark(#fafcfb,#18211c);border-radius:12px}
#aem-overview .ap-planner .ap-planner-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}
#aem-overview .ap-planner-head h3{font-size:16px;line-height:1.5;margin:0}#aem-overview .ap-planner-head small{color:var(--ap-muted);font-size:12px}
#aem-overview .ap-planner-actions{display:flex;gap:8px;align-items:center}#aem-overview .ap-planner .ap-apply{background:light-dark(#28674c,#398561);color:#fff;border-color:transparent;padding:8px 12px}#aem-overview .ap-apply b{display:inline-flex;align-items:center;justify-content:center;background:#ffffff26;border-radius:4px;min-width:20px;margin-left:6px}
#aem-overview .ap-plan-summary{display:flex;align-items:center;gap:22px;border-top:1px solid var(--ap-line);border-bottom:1px solid var(--ap-line);padding:10px 0;margin-bottom:12px;font-size:12px}#aem-overview .ap-plan-summary b{font-size:16px;margin-left:7px}#aem-overview .ap-plan-summary small{margin-left:auto;color:var(--ap-muted);font-size:11px}
#aem-overview .ap-plan-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}#aem-overview .ap-plan-period,#aem-overview .ap-plan-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap}#aem-overview .ap-plan-period strong{font-size:13px;padding:0 5px;white-space:nowrap}#aem-overview .ap-plan-period input{max-width:135px}#aem-overview .ap-plan-filters input{width:210px}#aem-overview .ap-plan-filters select{max-width:160px}
#aem-overview .ap-planner .ap-draft-tray{border:1px solid var(--ap-line);border-radius:8px;padding:9px;background:light-dark(#f1f5f2,#202c24);margin-bottom:10px}#aem-overview .ap-draft-tray header{justify-content:space-between;margin:0 0 8px}#aem-overview .ap-draft-tray header>small{color:var(--ap-muted);font-size:11px}#aem-overview .ap-draft-tray .ap-tray-tabs{display:flex;gap:4px;max-height:none;overflow:visible}#aem-overview .ap-tray-tabs button{background:transparent;border-color:transparent;font-size:12px;padding:5px 7px}#aem-overview .ap-tray-tabs button[aria-pressed=true]{background:light-dark(#fff,#2f4035);border-color:var(--ap-line)}#aem-overview .ap-tray-tabs b{font-size:11px;color:var(--ap-muted);margin-left:4px}
#aem-overview .ap-draft-tray .ap-tray-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:7px}#aem-overview .ap-tray-cards>.ap-stage-card{width:100%;max-width:none}#aem-overview .ap-empty-tray{grid-column:1/-1;color:var(--ap-muted);font-size:12px;padding:10px}#aem-overview .ap-tray-more{margin-top:7px;background:transparent;font-size:11px}
#aem-overview .ap-planner .ap-stage-card{padding:6px!important;gap:3px;border-radius:6px;background:light-dark(#fff,#25322a);min-width:0;box-shadow:none}#aem-overview .ap-planner .ap-stage-card[aria-pressed=true]{outline:2px solid light-dark(#397b59,#7abd91);outline-offset:1px}#aem-overview .ap-planner .ap-stage-card.ap-draft{border:1.5px dashed light-dark(#8a9690,#a6b4ab)}
#aem-overview .ap-task-copy{display:block;min-width:0;flex:1}#aem-overview .ap-task-project{display:block;font-size:12px;font-weight:700;line-height:1.2}#aem-overview .ap-task-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.35;font-weight:400;margin:3px 0;overflow-wrap:anywhere}#aem-overview .ap-task-copy small{display:flex!important;align-items:center;gap:3px;flex-wrap:wrap}#aem-overview .ap-planner .ap-stage-card .ao-stage{font-size:10px;line-height:1.25;padding:2px 4px;white-space:normal}#aem-overview .ap-planner [data-draft-grip]{min-width:17px;font-size:18px;color:var(--ap-muted)}#aem-overview .ap-draft-label{font-size:9px;padding:1px 3px}
#aem-overview .ap-board-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--ap-muted);margin:3px 0 7px}#aem-overview .ap-board-caption [data-draft-feedback]{font-size:11px;padding:0}#aem-overview .ap-board-caption>span{white-space:nowrap}#aem-overview .ap-legend-draft,#aem-overview .ap-legend-off{display:inline-block;width:12px;height:8px;margin:0 3px 0 8px;border:1px dashed #8d9992}#aem-overview .ap-legend-off{border:0;background:light-dark(#f8d9d9,#5b3333)}
#aem-overview .ap-planner .ap-board{border:1px solid var(--ap-line);border-radius:8px;overflow:clip}#aem-overview .ap-planner .ap-board table{margin:0;border:0;width:100%;table-layout:fixed}#aem-overview .ap-planner .ap-board th:first-child{width:135px}#aem-overview .ap-planner .ap-board th,#aem-overview .ap-planner .ap-board td{border-color:var(--ap-line);padding:6px}#aem-overview .ap-planner .ap-board thead th{background:light-dark(#eef3ef,#29382e);text-align:center;height:45px;vertical-align:middle}#aem-overview .ap-board thead th>span{font-size:10px;font-weight:400;color:var(--ap-muted)}#aem-overview .ap-board thead th>strong{display:block;font-size:13px}#aem-overview .ap-board thead th:first-child{text-align:left;font-size:12px}#aem-overview .ap-board thead th>small{font-size:9px;font-weight:400}#aem-overview .ap-planner .ap-board th.ap-is-today{box-shadow:inset 0 3px #448963}
#aem-overview .ap-planner .ap-board td{height:76px;background:light-dark(#fff,#1c2820)}#aem-overview .ap-board td.ap-off{background:light-dark(#fff1f1,#3a2929)}#aem-overview .ap-board td.ap-over{background:light-dark(#fff3eb,#382f25)}#aem-overview .ap-board tbody th{background:light-dark(#f6f8f6,#243128);vertical-align:middle;text-align:left}
#aem-overview .ap-person{display:flex;gap:6px;align-items:center;min-width:0}#aem-overview .ap-person>span:last-child{min-width:0}#aem-overview .ap-person strong{font-size:12px;line-height:1.3;font-weight:600}#aem-overview .ap-person small{font-size:10px;color:var(--ap-muted);margin-top:4px}#aem-overview .ap-person :is(img,.aem-avatar,.at-avatar,.aem-person-avatar){width:26px!important;height:26px!important;min-width:26px!important;font-size:11px!important}#aem-overview .ap-person-empty{font-size:20px;color:var(--ap-muted)}#aem-overview .ap-cell-count{font-size:9px;color:var(--ap-muted);text-align:right;margin-bottom:3px}#aem-overview .ap-cell-empty{display:block;text-align:center;color:light-dark(#c9d4cc,#516459);font-size:18px;line-height:60px}#aem-overview .ap-off-label{display:block;font-size:10px;color:light-dark(#a33737,#f1a5a5)}
#aem-overview .ap-review:empty{display:none}#aem-overview .ap-review{background:light-dark(#edf4ef,#293b2e);border:1px solid var(--ap-line);padding:10px;border-radius:8px;margin-bottom:12px}#aem-overview .ap-review p{font-size:12px;margin:6px 0}#aem-overview .ap-review h4{margin:0 0 8px}#aem-overview .ap-review button{margin-right:6px}#aem-overview .ap-manual{margin-top:10px;font-size:12px}#aem-overview .ap-manual form>span{flex:1;min-width:180px}
@media(min-width:1600px){#aem-overview .ap-draft-tray .ap-tray-cards{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Minimal planner cards: project code and stage only. */
#aem-overview .ap-planner{padding:10px}#aem-overview .ap-planner .ap-planner-head{margin-bottom:8px}#aem-overview .ap-planner-head h3{font-size:14px}#aem-overview .ap-planner-head small{font-size:11px}#aem-overview .ap-plan-tools{margin-bottom:8px;gap:6px}#aem-overview .ap-planner input,#aem-overview .ap-planner select,#aem-overview .ap-planner button{font-size:12px;padding:5px 7px}#aem-overview .ap-planner .ap-plan-filters input{width:180px}#aem-overview .ap-planner .ap-plan-filters select{max-width:140px}
#aem-overview .ap-draft-tray .ap-tray-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#aem-overview .ap-planner .ap-draft-tray{padding:6px;margin-bottom:7px}#aem-overview .ap-draft-tray header{margin-bottom:5px}#aem-overview .ap-planner .ap-stage-card{padding:4px!important;min-height:32px;gap:2px}#aem-overview .ap-task-copy{display:flex;align-items:center;gap:5px;flex-wrap:wrap}#aem-overview .ap-task-project{font-size:12px;line-height:1.2}#aem-overview .ap-task-copy small{display:flex!important;margin:0!important;gap:3px}#aem-overview .ap-planner .ap-stage-card .ao-stage{font-size:10px;padding:2px 4px}#aem-overview .ap-planner [data-draft-grip]{min-height:22px;min-width:14px;font-size:16px}
#aem-overview .ap-planner .ap-board th:first-child{width:120px}#aem-overview .ap-planner .ap-board td{height:55px;padding:4px}#aem-overview .ap-planner .ap-board thead th{height:34px;padding:4px}#aem-overview .ap-cell-empty{line-height:40px;font-size:15px}#aem-overview .ap-person small{font-size:9px;margin-top:2px}#aem-overview .ap-board-caption{margin-bottom:5px}#aem-overview .ap-cell-count{display:none!important}
@media(min-width:1600px){#aem-overview .ap-draft-tray .ap-tray-cards{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Gray draft fill is distinct from confirmed assignments in both themes. */
#aem-overview .ap-planner .ap-stage-card.ap-draft{background:light-dark(#e9ecea,#354039);border:1.5px dashed light-dark(#8c9690,#9daa9f)}#aem-overview .ap-planner .ap-stage-card:not(.ap-draft){background:light-dark(#fff,#25322a);border:1px solid light-dark(#b7c8bd,#607a68)}#aem-overview .ap-assigned-mark{font-size:11px;color:light-dark(#326b49,#9bd1ac);font-weight:600}

#aem-overview .ap-detail-draft-context{font-size:12px;line-height:1.5;margin:8px 0;padding:8px 10px;background:light-dark(#e9ecea,#354039);border:1px dashed #929c95;border-radius:6px}#aem-overview .ap-task-copy{cursor:pointer}

#aem-overview .ap-planner [data-draft-task][data-multi-selected=true]{outline:2px solid light-dark(#347955,#81c49a);outline-offset:1px;box-shadow:0 0 0 3px light-dark(#34795516,#81c49a16)}#aem-overview #ap-multi-selection{display:flex;align-items:center;gap:12px;padding:7px 10px;margin:7px 0;border-radius:6px;background:light-dark(#e6f1e9,#2a4030);font-size:12px}#aem-overview #ap-multi-selection span{font-size:11px;flex:1}#aem-overview #ap-multi-drag{position:fixed;z-index:30000;pointer-events:none;background:#2d6849;color:#fff;padding:7px 12px;border-radius:7px;box-shadow:0 3px 12px #0003;font-size:13px;font-weight:600}

#aem-overview .ap-unassign-drop{padding:9px 12px;margin-bottom:7px;border:1px dashed light-dark(#98a59c,#8c9f92);border-radius:6px;background:light-dark(#e8eeea,#303e34);color:light-dark(#3f5747,#d5e3d9);font-size:12px;text-align:center;cursor:pointer}

#aem-overview .ap-review .ap-review-title{margin:0 0 12px}#aem-overview .ap-review-title h4{font-size:14px;margin:0 0 4px}#aem-overview .ap-review-title small{font-size:11px;color:light-dark(#5b6b60,#b6c7bb)}#aem-overview .ap-review-person{margin:10px 0 14px}#aem-overview .ap-review-person h5{font-size:13px;margin:0;padding:7px 9px;background:light-dark(#dfe9e2,#354d3c);border-radius:5px 5px 0 0}#aem-overview .ap-review-person h5 small{font-size:11px;font-weight:400;margin-left:8px}#aem-overview .ap-review-person table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}#aem-overview .ap-review-person th,#aem-overview .ap-review-person td{text-align:left;padding:7px 8px;border:1px solid light-dark(#cddbd1,#4a6252);vertical-align:top;overflow-wrap:anywhere}#aem-overview .ap-review-person th{font-size:11px;background:light-dark(#f3f7f4,#293b2e);font-weight:500}#aem-overview .ap-review-person th:nth-child(1){width:9%}#aem-overview .ap-review-person th:nth-child(2){width:25%}#aem-overview .ap-review-person th:nth-child(3){width:12%}#aem-overview .ap-review-person th:nth-child(4){width:16%}#aem-overview .ap-review-person th:nth-child(5),#aem-overview .ap-review-person th:nth-child(6){width:19%}#aem-overview .ap-review-person td small{display:block;font-size:10px;margin-top:4px}#aem-overview .ap-review footer{display:flex;gap:6px;margin-top:10px}


#aem-overview .ap-review-lines p{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;padding:4px 0;margin:0;border-bottom:1px solid light-dark(#d3dfd6,#455c4c);font-size:12px}#aem-overview .ap-review-lines p>span+span{margin-left:auto}#aem-overview .ap-review-lines time{font-size:11px;white-space:nowrap}#aem-overview .ap-review-lines p>span:first-of-type{flex:1;min-width:150px}#aem-overview .ap-model-gantt-note{font-size:11px;padding:7px 9px;color:light-dark(#506958,#bed0c3);background:light-dark(#f2f6f3,#26362c)}#aem-overview .ap-planner .ap-model-gantt td{padding:0!important;vertical-align:top}#aem-overview .ap-gantt-day{position:relative;min-height:44px;background:linear-gradient(to right,transparent 43.6%,light-dark(#dce5df,#455a4b) 43.75%,transparent 44%)}#aem-overview .ap-planner .ap-model-gantt .ap-gantt-bar{position:absolute!important;box-sizing:border-box;height:32px!important;min-height:32px;margin:0!important;overflow:hidden;z-index:2}#aem-overview .ap-gantt-bar.ap-gantt-continued{border-left:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}#aem-overview .ap-gantt-bar.ap-gantt-next{border-right:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}#aem-overview .ap-gantt-bar.ap-gantt-short .ap-task-copy{display:none}#aem-overview .ap-gantt-hours{font-size:10px;white-space:nowrap;color:inherit}#aem-overview .ap-gantt-warning{font-weight:700;color:light-dark(#b02d26,#ffac9e)}#aem-overview .ap-planner .ap-gantt-bar.ap-gantt-late{box-shadow:inset 0 -2px light-dark(#ca6d4a,#db9c7d)}#aem-overview .ap-gantt-off{position:absolute;top:0;bottom:0;background:light-dark(#fce8e8,#4b3030);color:light-dark(#a63b3b,#e7a9a9);font-size:10px;text-align:center;padding-top:2px;box-sizing:border-box}#aem-overview .ap-gantt-am{left:0;width:43.75%}#aem-overview .ap-gantt-pm{left:43.75%;width:56.25%}

#aem-overview #ap-return-floating{position:fixed;top:76px;right:24px;z-index:30002;padding:13px 18px;border:2px dashed light-dark(#7d9986,#a7c2b0);border-radius:9px;background:light-dark(#e9f0eb,#304637);color:light-dark(#254d34,#e3f1e7);box-shadow:0 5px 18px #0002;font-size:13px;font-weight:600}

/* PL task list uses filled numeric badges; zero remains neutral. */
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;padding:4px 9px!important;border-radius:6px;border:0!important;font-size:13px!important;line-height:1.2;font-weight:600!important;box-shadow:none!important;text-decoration:none!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value{background:light-dark(#dceaff,#294969)!important;color:light-dark(#254d81,#dceaff)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value[data-tone=purple]{background:light-dark(#ece1f8,#4a365e)!important;color:light-dark(#694092,#ecdcff)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value[data-tone=yellow]{background:light-dark(#fff0bf,#58491f)!important;color:light-dark(#795912,#ffecac)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value[data-tone=red]{background:light-dark(#fce0df,#5d3433)!important;color:light-dark(#b12b2b,#ffc9c5)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value[data-tone=green]{background:light-dark(#daf0e2,#2e503b)!important;color:light-dark(#2c6944,#c5efd3)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.is-zero{background:light-dark(#edf0ee,#354039)!important;color:light-dark(#8b9690,#9ca9a0)!important;opacity:1}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value:hover{filter:brightness(.96);outline:1px solid currentColor;outline-offset:1px;text-decoration:none!important}

/* Keep confirmation context beside its task; repeat only hours on Gantt continuation. */
#aem-overview .ap-review-lines p>span:first-of-type{flex:0 1 auto;min-width:0}
#aem-overview .ap-review-lines p>span+span{margin-left:8px}
#aem-overview .ap-gantt-bar.ap-gantt-short .ap-task-copy.ap-gantt-continuation{display:block}

/* PL counters: strong neutral text, preserve semantic fills. */
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-number.has-value[data-tone]{color:light-dark(#111111,#f5f7f6)!important;font-weight:750!important}

/* MODEL timeline scrolls through the end of tasks instead of clipping at a week. */
#aem-overview .ap-planner .ap-board.ap-model-gantt{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:auto}
#aem-overview .ap-planner .ap-model-gantt th:first-child{position:sticky;left:0;z-index:5;box-sizing:border-box;min-width:128px;width:128px;box-shadow:2px 0 3px #0001}
#aem-overview .ap-planner .ap-model-gantt thead th:first-child{z-index:6}
#aem-overview .ap-gantt-bar.ap-gantt-short .ap-task-copy{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* A visible horizontal rail above the timeline, synchronized with the lower rail. */
#aem-overview .ap-gantt-scrollbar{display:block;overflow-x:scroll;overflow-y:hidden;width:100%;max-width:100%;height:20px;margin:4px 0 6px;background:light-dark(#e4ebe6,#25372c);border:1px solid var(--ap-line);border-radius:5px;scrollbar-width:auto;scrollbar-color:#71897b light-dark(#e4ebe6,#25372c)}
#aem-overview .ap-gantt-scrollbar>div{height:1px}
#aem-overview .ap-gantt-scrollbar::-webkit-scrollbar{height:14px}
#aem-overview .ap-gantt-scrollbar::-webkit-scrollbar-thumb{background:#71897b;border:3px solid light-dark(#e4ebe6,#25372c);border-radius:8px}
#aem-overview .ap-gantt-scrollbar::-webkit-scrollbar-track{background:light-dark(#e4ebe6,#25372c)}

/* Consistent grouping surfaces and a compact PL identity column. */
#aem-overview.aem-shell{--aem-group-surface:light-dark(#eef3f4,#28372f)}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table th:first-child{width:190px!important;min-width:0;box-sizing:border-box}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table tbody th,
#aem-overview.aem-shell .ap-planner .ap-draft-tray,
#aem-overview.aem-shell .ap-planner .ap-board tbody th{background:var(--aem-group-surface)!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table :is(td,th){padding:6px 8px!important}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table .wc-pl-row-state{margin-top:3px;font-size:10px}

#aem-overview .ap-work-calendar label{display:inline-flex;align-items:center;gap:5px;margin-right:16px;font-size:12px}
#aem-overview .ap-work-calendar input[type=checkbox]{width:15px;height:15px}
#aem-overview .ap-work-calendar small{display:block;margin:6px 0;font-size:11px}
#aem-overview .ap-weekend-badge{font-size:9px;white-space:nowrap;color:light-dark(#555f68,#c6d3cb)}

#aem-overview .ap-planner .ap-model-gantt .ap-gantt-with-total{padding-right:60px!important}
#aem-overview .ap-gantt-total{position:absolute;right:3px;top:5px;display:inline-flex;align-items:center;justify-content:center;height:20px;padding:0 5px;border-radius:4px;border:1px solid light-dark(#b7c9bd,#607968);background:light-dark(#e1eee6,#364f40);color:light-dark(#111,#f5f7f6);font-size:10px;font-weight:700;white-space:nowrap;z-index:3}

#aem-overview .ap-model-gantt .ap-gantt-weekday{display:block;font-size:10px;font-weight:500;line-height:1.2;margin-bottom:2px}

/* Planner navigation follows weekly schedule; every team can scroll horizontally. */
#aem-overview .ap-plan-tools .ap-plan-filters{order:0}
#aem-overview .ap-plan-tools .ap-plan-period{order:1;margin-left:auto;justify-content:flex-end}
#aem-overview .ap-planner .ap-board{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:auto;scrollbar-color:#71897b light-dark(#e4ebe6,#25372c)}
#aem-overview .ap-planner .ap-board:not(.ap-model-gantt) table{min-width:1668px}
#aem-overview .ap-planner .ap-board:not(.ap-model-gantt) th:first-child{position:sticky;left:0;z-index:5;width:128px;min-width:128px;box-sizing:border-box;box-shadow:2px 0 3px #0001}
#aem-overview .ap-planner .ap-board::-webkit-scrollbar{height:14px}
#aem-overview .ap-planner .ap-board::-webkit-scrollbar-thumb{background:#71897b;border:3px solid light-dark(#e4ebe6,#25372c);border-radius:8px}
#aem-overview .ap-planner .ap-board::-webkit-scrollbar-track{background:light-dark(#e4ebe6,#25372c)}

/* MODEL scheduling is available through Điều phối công việc. */
#aem-overview.aem-shell #at-modelqueue{display:none!important}

/* Daily Plan: compact header, readable agenda rows, contextual form. */
#aem-overview #aem-daily-plan{padding:12px;background:light-dark(#f7faf8,#202e26)}
#aem-overview #aem-daily-plan .ap-daily-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
#aem-overview #aem-daily-plan :is(.ap-daily-heading,.ap-daily-actions){display:flex;align-items:center;gap:8px}
#aem-overview #aem-daily-plan h3{font-size:14px;margin:0 8px 0 0}
#aem-overview #aem-daily-plan button{font-size:12px;min-height:29px;padding:4px 8px}
#aem-overview #aem-daily-plan .ap-daily-add{background:light-dark(#dcefe5,#325441);border-color:#61947c;color:light-dark(#173d2b,#ecf8f0)}
#aem-overview #aem-daily-plan .ap-daily-summary{display:flex;align-items:center;gap:10px;font-size:11px;margin:0 0 9px;color:light-dark(#495c50,#c4d0c8)}
#aem-overview #aem-daily-plan progress{height:6px;width:130px;accent-color:#438569;border:0;border-radius:4px}
#aem-overview #aem-daily-plan .ap-daily-hours{margin-left:12px}
#aem-overview #aem-daily-plan form:not([hidden]){display:grid;grid-template-columns:minmax(240px,2fr) 145px 125px 120px 140px;gap:8px;padding:10px;margin:8px 0;background:var(--aem-group-surface);border:1px solid var(--ap-line);border-radius:7px;align-items:end}
#aem-overview #aem-daily-plan form label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:400;min-width:0}
#aem-overview #aem-daily-plan form label[hidden]{display:none}
#aem-overview #aem-daily-plan form :is(input,select){width:100%;min-width:0;box-sizing:border-box;font-size:12px;height:32px}
#aem-overview #aem-daily-plan .ap-daily-task-field{grid-column:1/4}
#aem-overview #aem-daily-plan .ap-daily-note-field{grid-column:1/4}
#aem-overview #aem-daily-plan .ap-daily-form-actions{grid-column:4/6;display:flex;justify-content:flex-end;gap:6px}
#aem-overview #aem-daily-plan .ap-daily-row{display:grid;grid-template-columns:20px 65px minmax(180px,1fr) minmax(115px,auto) auto;gap:10px;min-height:42px;padding:6px 8px;border-left:3px solid light-dark(#6f9a80,#7eaa90);background:light-dark(#fff,#25372b);border-radius:5px;margin:4px 0}
#aem-overview #aem-daily-plan .ap-daily-row[data-kind=meeting]{border-left-color:#8a72b0}
#aem-overview #aem-daily-plan .ap-daily-row[data-kind=task]{border-left-color:#5b88bd}
#aem-overview #aem-daily-plan .ap-daily-row time{font-size:11px;font-variant-numeric:tabular-nums;color:light-dark(#344c3e,#ccd9d0)}
#aem-overview #aem-daily-plan .ap-daily-content strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
#aem-overview #aem-daily-plan .ap-daily-content p{font-size:11px;margin:3px 0 0;color:light-dark(#56675c,#b8c9be);overflow-wrap:anywhere}
#aem-overview #aem-daily-plan :is(.ap-daily-meta,.ap-daily-row-actions){display:flex;align-items:center;gap:6px;font-size:11px}
#aem-overview #aem-daily-plan .ap-daily-kind{color:light-dark(#2c6746,#aad9bb)}
#aem-overview #aem-daily-plan [data-kind=meeting] .ap-daily-kind{color:light-dark(#705392,#d7b8f3)}
#aem-overview #aem-daily-plan [data-kind=task] .ap-daily-kind{color:light-dark(#345f94,#b4d4ff)}
#aem-overview #aem-daily-plan .ap-daily-priority{color:light-dark(#a45d16,#ffd299)}
#aem-overview #aem-daily-plan .ap-daily-row-actions button{min-width:26px;padding:3px 6px}
#aem-overview #aem-daily-plan .ap-daily-empty{font-size:12px;margin:10px 0;color:light-dark(#56675c,#b8c9be)}

/* Short task title, explicit deliverable and consistent priority colors. */
#aem-overview #aem-daily-plan form:not([hidden]){grid-template-columns:minmax(220px,380px) minmax(220px,1fr) 145px 125px 120px 140px}
#aem-overview #aem-daily-plan .ap-daily-title-field{max-width:380px}
#aem-overview #aem-daily-plan .ap-daily-note-field,#aem-overview #aem-daily-plan .ap-daily-task-field{grid-column:1/5}
#aem-overview #aem-daily-plan .ap-daily-form-actions{grid-column:5/7}
#aem-overview #aem-daily-plan .ap-daily-output{color:light-dark(#286344,#b7dfc6);font-size:11px}
#aem-overview #aem-daily-plan .ap-daily-output>span{font-weight:600}
#aem-overview #aem-daily-plan [data-priority="Bình thường"],#aem-overview #aem-daily-plan [data-daily-priority] option:nth-child(1){color:light-dark(#606a64,#c3cdc6)!important}
#aem-overview #aem-daily-plan [data-priority="Ưu tiên"],#aem-overview #aem-daily-plan [data-daily-priority] option:nth-child(2){color:light-dark(#986000,#ffd27b)!important}
#aem-overview #aem-daily-plan [data-priority="Quan trọng"],#aem-overview #aem-daily-plan [data-daily-priority] option:nth-child(3){color:light-dark(#b42d35,#ffa6ad)!important}

#aem-overview #aem-daily-plan form[data-kind=task] .ap-daily-output-field{grid-column:1/3}

/* Choose work type first; task/title follows immediately. */
#aem-overview #aem-daily-plan form:not([hidden]){grid-template-columns:145px minmax(220px,380px) minmax(220px,1fr) 125px 120px 140px}
#aem-overview #aem-daily-plan .ap-daily-task-field{grid-column:auto}
#aem-overview #aem-daily-plan form[data-kind=task] .ap-daily-output-field{grid-column:auto}

/* Daily deliverables in a separate readable column. */
#aem-overview #aem-daily-plan .ap-daily-row{grid-template-columns:20px 65px minmax(200px,1fr) minmax(220px,1fr) minmax(115px,auto) auto}
#aem-overview #aem-daily-plan .ap-daily-output-cell{min-width:0;padding:0 12px;border-left:1px solid var(--ap-line)}
#aem-overview #aem-daily-plan .ap-daily-output-cell:empty{border-left:0}
#aem-overview #aem-daily-plan .ap-daily-output-label{font-size:10px;color:light-dark(#607368,#a8bfb0)}
#aem-overview #aem-daily-plan .ap-daily-output-cell p{font-size:12px;margin:3px 0;color:light-dark(#286344,#b7dfc6);overflow-wrap:anywhere;white-space:pre-wrap}

#aem-overview #aem-daily-plan .ap-daily-row{grid-template-columns:18px 20px 65px minmax(200px,1fr) minmax(220px,1fr) minmax(115px,auto) auto}
#aem-overview #aem-daily-plan [data-daily-grip]{cursor:grab;border:0;background:transparent;padding:0;width:18px;min-height:24px;font-size:18px;color:light-dark(#63766b,#b9cbbf)}
#aem-overview #aem-daily-plan [data-daily-grip]:active{cursor:grabbing}
#aem-overview #aem-daily-plan .ap-daily-dragging{opacity:.55}
#aem-overview #aem-daily-plan .ap-daily-drop{outline:2px solid #57977a;outline-offset:-2px}

#aem-overview #aem-daily-plan .ap-daily-head{cursor:pointer}
#aem-overview #aem-daily-plan [data-daily-toggle]{border:0;background:transparent;color:inherit;font:inherit;padding:0;min-height:29px;cursor:pointer}
#aem-overview #aem-daily-plan #ap-daily-body[hidden]{display:none!important}

/* One typography and control layout for both allocation calendars. */
#aem-overview.aem-shell .aem-week-navigation{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto;font-family:inherit;font-size:12px;line-height:18px}
#aem-overview.aem-shell .aem-week-navigation>button{box-sizing:border-box;min-height:34px;height:34px;padding:7px 11px;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-card);color:var(--ao-ink);font-family:inherit;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
#aem-overview.aem-shell .aem-week-navigation>strong{padding:0 3px;font-family:inherit;font-size:13px;font-weight:700;line-height:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
#aem-overview.aem-shell .aem-week-date{position:relative;display:inline-flex;align-items:center;gap:10px;height:34px;box-sizing:border-box;padding:7px 10px;border:1px solid var(--ao-line);border-radius:6px;background:var(--ao-card);color:var(--ao-ink);font-family:inherit;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
#aem-overview.aem-shell .aem-week-date>input{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer;padding:0;border:0;margin:0}
#aem-overview.aem-shell .aem-week-date>span,#aem-overview.aem-shell .aem-week-date>svg{pointer-events:none}
#aem-overview.aem-shell .aem-week-date:focus-within{outline:2px solid var(--ao-green);outline-offset:2px}
#aem-overview.aem-shell .aem-week-toolbar>h3,#aem-overview.aem-shell .ap-planner-head h3{font-size:14px;font-weight:700;line-height:1.4}

/* Shared calendar frame, headings and personnel column for week, draft and MODEL. */
#aem-overview.aem-shell #at-content .aem-allocation-calendar-panel{box-sizing:border-box;min-width:0;margin:0;padding:12px;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card);color:var(--ao-ink)}
#aem-overview.aem-shell .aem-calendar-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:10px 16px;margin:0 0 12px}
#aem-overview.aem-shell .aem-calendar-title h3{margin:0;font-family:inherit;font-size:14px;font-weight:700;line-height:20px}
#aem-overview.aem-shell .aem-calendar-title>small{display:block;margin-top:3px;font-size:11px;line-height:16px;color:var(--ao-muted)}
#aem-overview.aem-shell .aem-calendar-controls{grid-column:1/-1;display:flex;justify-content:flex-end;min-width:0}
#aem-overview.aem-shell .aem-calendar-toolbar .ap-planner-actions{justify-content:flex-end;gap:8px}
#aem-overview.aem-shell .aem-calendar-toolbar .ap-planner-actions>button{box-sizing:border-box;min-height:34px;padding:7px 11px;font-family:inherit;font-size:12px;font-weight:600;line-height:18px;border-radius:6px}
#aem-overview.aem-shell #at-content .aem-allocation-calendar-panel :is(.ao-table,.ap-board){max-width:100%;margin:0;border:1px solid var(--ao-line);border-radius:8px;overflow-x:auto;overflow-y:hidden}
#aem-overview.aem-shell #at-content .aem-allocation-calendar{width:100%;margin:0;border:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-family:inherit;font-size:12px}
#aem-overview.aem-shell #at-content .aem-week-table.aem-allocation-calendar{min-width:1112px}
#aem-overview.aem-shell #at-content .aem-allocation-calendar :is(th,td){box-sizing:border-box;border:0;border-right:1px solid var(--ao-line);border-bottom:1px solid var(--ao-line)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar tr>:last-child{border-right:0}
#aem-overview.aem-shell #at-content .aem-allocation-calendar tbody tr:last-child>:is(th,td){border-bottom:0}
#aem-overview.aem-shell #at-content .aem-allocation-calendar thead th{height:64px;padding:8px 12px!important;vertical-align:middle;text-align:center!important;background:light-dark(#edf3f8,#293946);color:var(--ao-ink);font-size:12px!important;font-weight:600!important;line-height:16px;box-shadow:none}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .aem-calendar-person,#aem-overview.aem-shell #at-content .aem-allocation-calendar tbody tr>:first-child{position:sticky;left:0;z-index:3;width:160px!important;min-width:160px!important;text-align:left!important;box-shadow:1px 0 var(--ao-line)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .aem-calendar-person{z-index:5}
#aem-overview.aem-shell #at-content .aem-allocation-calendar th.aem-calendar-day{width:auto!important}
#aem-overview.aem-shell #at-content .aem-allocation-calendar th.aem-calendar-remaining{width:112px!important;min-width:112px!important}
#aem-overview.aem-shell #at-content .aem-calendar-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:47px;font-variant-numeric:tabular-nums}
#aem-overview.aem-shell #at-content .aem-calendar-person .aem-calendar-heading{align-items:flex-start}
#aem-overview.aem-shell #at-content .aem-calendar-heading>.aem-calendar-weekday{font-size:11px!important;font-weight:600!important;line-height:15px;color:var(--ao-muted)}
#aem-overview.aem-shell #at-content .aem-calendar-heading>strong{display:block;font-size:13px!important;font-weight:700!important;line-height:18px;color:var(--ao-ink)}
#aem-overview.aem-shell #at-content .aem-calendar-heading>small{display:block;margin:0;font-size:10px!important;font-weight:400!important;line-height:14px;white-space:nowrap;color:var(--ao-muted)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar thead th.ap-is-today{background:light-dark(#e2efe8,#294b3a);box-shadow:inset 0 3px light-dark(#438569,#82b99a)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar tbody tr>:first-child{padding:8px 10px;background:var(--ao-card)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .ap-person{display:flex;align-items:center;gap:8px}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .ap-person strong{font-size:13px!important;font-weight:600!important;line-height:18px}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .ap-person small{font-size:10px;line-height:14px;color:var(--ao-muted)}
#aem-overview.aem-shell #at-content .aem-allocation-calendar .ap-person .aem-person-avatar{width:26px!important;height:26px!important;font-size:11px!important;margin:0}

/* Keep the primary assignment action legible despite generic button text rules. */
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply{background:#25664b!important;border-color:#25664b!important;color:#fff!important;font-weight:700}
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply b{background:#ffffff2e!important;color:#fff!important;font-weight:700}
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply:not(:disabled):hover{background:#1b513a!important;border-color:#1b513a!important}
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply:focus-visible{outline:2px solid var(--ao-ink);outline-offset:3px}
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply:disabled{background:light-dark(#e5eae7,#35463c)!important;border-color:light-dark(#cbd5cf,#51665a)!important;color:light-dark(#59675f,#bccdc2)!important;opacity:1}
#aem-overview.aem-shell .ap-planner .ap-planner-actions .ap-apply:disabled b{background:light-dark(#d6dfd9,#465d4e)!important;color:inherit!important}

/* MODEL options stay below task content, closed until needed. */
#aem-overview.aem-shell #ao-sidebar .ap-model-task-extras{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:0;border:0}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting{margin:0;padding:0;border:1px solid var(--ao-line);border-radius:7px;background:var(--ao-card);min-width:0}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting>summary{box-sizing:border-box;min-height:44px;padding:11px 12px;cursor:pointer;font-size:14px;line-height:20px;list-style-position:inside}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting>summary strong{font-size:14px!important;font-weight:700!important}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting>summary>span{float:right;margin-left:12px;font-size:13px;line-height:20px;font-weight:600;color:var(--ao-ink)}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting-body{padding:0 12px 12px;font-size:13px}
#aem-overview.aem-shell #ao-sidebar .ap-model-setting-body>small{display:block;margin:6px 0;font-size:12px;color:var(--ao-muted)}
#aem-overview.aem-shell #ao-sidebar .ap-work-calendar label{display:inline-flex;align-items:center;gap:6px;margin-right:16px;font-size:12px}
#aem-overview.aem-shell #ao-sidebar [data-rework-form]{display:grid;grid-template-columns:100px minmax(160px,1fr) auto;gap:8px;align-items:end}
#aem-overview.aem-shell #ao-sidebar [data-rework-form]>label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px}
#aem-overview.aem-shell #ao-sidebar [data-rework-form] input{width:100%;box-sizing:border-box;height:32px;min-width:0;font-size:12px}
#aem-overview.aem-shell #ao-sidebar [data-rework-form]>button{height:32px;padding:5px 12px;font-size:12px}
#aem-overview.aem-shell #ao-sidebar [data-rework-form]>[role=alert]{grid-column:1/-1;font-size:11px}
#aem-overview.aem-shell #ao-sidebar [data-rework-form]>[role=alert]:empty{display:none}
#aem-overview.aem-shell #ao-sidebar [data-rework-history]{font-size:11px;max-height:220px;overflow:auto}
#aem-overview.aem-shell #ao-sidebar [data-rework-history] p{padding:6px 0;margin:0;border-bottom:1px solid var(--ao-line);overflow-wrap:anywhere}

/* A bounded, searchable rework report; lengthy reasons open individually. */
#aem-overview.aem-shell .ap-rework-report{margin:10px 0;border:1px solid var(--ao-line);border-radius:8px;background:var(--ao-card);font-size:12px}
#aem-overview.aem-shell .ap-rework-report>summary{padding:12px;cursor:pointer;line-height:20px;list-style-position:inside}
#aem-overview.aem-shell .ap-rework-report>summary>strong{font-size:13px!important;margin-right:16px}
#aem-overview.aem-shell .ap-rework-report>summary>span{font-size:12px;color:var(--ao-muted)}
#aem-overview.aem-shell .ap-rework-report>summary>small{float:right;color:var(--ao-green);font-size:11px}
#aem-overview.aem-shell .ap-rework-report-body{padding:0 12px 12px}
#aem-overview.aem-shell .ap-rework-search{display:flex;align-items:center;gap:10px;font-size:11px;margin:4px 0 10px}
#aem-overview.aem-shell .ap-rework-search>input{width:min(420px,100%);height:34px;box-sizing:border-box;font-size:12px}
#aem-overview.aem-shell .ap-rework-list-meta{display:flex;justify-content:space-between;margin:8px 0;color:var(--ao-muted);font-size:11px}
#aem-overview.aem-shell .ap-rework-report table{width:100%;table-layout:fixed}
#aem-overview.aem-shell .ap-rework-report :is(th,td){padding:8px!important;font-size:12px!important;vertical-align:top;overflow-wrap:anywhere}
#aem-overview.aem-shell .ap-rework-report th:nth-child(1){width:15%}
#aem-overview.aem-shell .ap-rework-report th:nth-child(2){width:16%}
#aem-overview.aem-shell .ap-rework-report th:nth-child(3){width:28%}
#aem-overview.aem-shell .ap-rework-report th:nth-child(4){width:10%}
#aem-overview.aem-shell .ap-rework-report td small{display:block;margin-top:3px;font-size:11px;color:var(--ao-muted)}
#aem-overview.aem-shell .ap-rework-report td button{font-size:12px;text-align:left;max-width:100%}
#aem-overview.aem-shell .ap-rework-note>summary{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-size:12px;color:var(--ao-ink)}
#aem-overview.aem-shell .ap-rework-note>summary:before{content:'▸ ';color:var(--ao-muted)}
#aem-overview.aem-shell .ap-rework-note[open]>summary:before{content:'▾ '}
#aem-overview.aem-shell .ap-rework-note>p{margin:8px 0 0;padding:8px;border-radius:5px;background:var(--ao-soft);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
#aem-overview.aem-shell .ap-rework-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;font-size:11px}
#aem-overview.aem-shell .ap-rework-pagination button{font-size:12px;min-height:30px}
#aem-overview.aem-shell .ap-rework-footnote{display:block;margin-top:10px;color:var(--ao-muted);font-size:11px}

/* Priority is the strongest signal in a Daily Plan row. */
#aem-overview.aem-shell #aem-daily-plan .ap-daily-meta{gap:8px;font-size:12px;flex-wrap:wrap;justify-content:flex-end}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-kind{font-size:12px;font-weight:600;white-space:nowrap}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-priority{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:30px;padding:4px 10px;border:1px solid transparent;border-radius:6px;font-size:14px!important;font-weight:750!important;line-height:20px;white-space:nowrap}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-priority[data-priority="Ưu tiên"]{background:light-dark(#fff0bd,#4b371a)!important;border-color:light-dark(#dfbd69,#a0804c)!important;color:light-dark(#794600,#ffdc94)!important}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-priority[data-priority="Ưu tiên"]:before{content:'↑';font-size:16px;font-weight:800}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-priority[data-priority="Quan trọng"]{background:light-dark(#ffe2e6,#512b33)!important;border-color:light-dark(#e3a0ac,#a86876)!important;color:light-dark(#9d2338,#ffc0c9)!important}
#aem-overview.aem-shell #aem-daily-plan .ap-daily-priority[data-priority="Quan trọng"]:before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;font-size:12px;font-weight:800;line-height:1}

/* MODEL time uses the full status-panel width, with metadata at the far edge. */
#aem-overview.aem-shell #ao-sidebar .aem-task-context>.aem-model-time{flex:0 0 100%;width:100%;min-width:0;max-width:none;box-sizing:border-box;align-items:flex-start;gap:10px 16px}
#aem-overview.aem-shell #ao-sidebar .aem-task-context>.aem-model-time>h3{flex:0 0 160px;box-sizing:border-box;margin:0;padding-top:5px;font-size:13px!important;line-height:20px}
#aem-overview.aem-shell #ao-sidebar .aem-task-context .aem-model-time>.aem-timer-layout{flex:1 1 360px;width:auto;max-width:none;min-width:0}
#aem-overview.aem-shell #ao-sidebar .aem-timer-main>[data-clock]{font-size:20px!important;line-height:26px;font-weight:750!important;font-variant-numeric:tabular-nums}
#aem-overview.aem-shell #ao-sidebar .aem-timer-meta{font-size:12px;line-height:18px}
#aem-overview.aem-shell #ao-sidebar .aem-timer-meta small{font-size:11px;line-height:16px}
/* Person/day overtime stays below the unchanged regular-hours lane. */
#aem-overview .ap-add-ot{display:block;margin:3px 6px 5px;padding:3px 7px;border:1px dashed light-dark(#b8accd,#85719f);border-radius:5px;background:transparent;color:light-dark(#634685,#d1b9ee);font-size:11px;line-height:18px;cursor:pointer}
#aem-overview .ap-add-ot:hover,#aem-overview .ap-add-ot:focus-visible{background:light-dark(#eee7f7,#40324f);border-style:solid}
#aem-overview .ap-gantt-ot{border-top:1px solid light-dark(#d8c8eb,#705585);background:light-dark(#f3edf9,#30263d);padding:3px 0;color:light-dark(#583873,#dfc7f3)}
#aem-overview .ap-gantt-ot>button{display:block;border:0;background:transparent;color:inherit;padding:4px 7px;font-size:11px;font-weight:700;text-align:left;cursor:pointer;white-space:nowrap}
#aem-overview .ap-gantt-ot>button:hover,#aem-overview .ap-gantt-ot>button:focus-visible{text-decoration:underline}
#aem-overview .ap-gantt-ot-lanes{position:relative;min-height:44px}
#aem-overview .ap-planner .ap-model-gantt .ap-gantt-ot-bar{border-color:light-dark(#9973bf,#aa86cf)!important;background:light-dark(#e6d7f4,#534067)!important;color:light-dark(#382046,#f7efff)!important}
#aem-overview .ap-ot-blocked{opacity:.65}
#aem-overview #ap-model-ot-dialog{width:min(410px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:1px solid light-dark(#d5d0dc,#665b73);border-radius:12px;background:light-dark(#fff,#25212b);color:light-dark(#25202d,#f3edf8);box-shadow:0 20px 70px #0004;max-height:90vh;overflow:auto}
#aem-overview #ap-model-ot-dialog::backdrop{background:#14101b66}
#aem-overview #ap-model-ot-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
#aem-overview #ap-model-ot-dialog h3{font-size:18px;margin:0}
#aem-overview #ap-model-ot-dialog header button{font-size:22px;border:0;background:transparent;color:inherit;cursor:pointer}
#aem-overview #ap-model-ot-dialog p{font-size:13px;line-height:1.5}
#aem-overview .ap-ot-fields{display:flex;gap:16px}
#aem-overview .ap-ot-fields label{flex:1;display:grid;gap:6px;font-size:13px;font-weight:600}
#aem-overview .ap-ot-fields input{box-sizing:border-box;width:100%;min-height:40px;border:1px solid light-dark(#c4bdce,#796b86);border-radius:6px;padding:7px;background:light-dark(#fff,#302938);color:inherit;font:inherit}
#aem-overview #ap-model-ot-dialog .ap-ot-note{color:light-dark(#655b70,#c6b9d3);font-size:12px}
#aem-overview #ap-model-ot-dialog [role=alert]{color:light-dark(#b02d26,#ffb4ad);min-height:18px}
#aem-overview #ap-model-ot-dialog footer{display:flex;justify-content:flex-end;gap:8px}
#aem-overview #ap-model-ot-dialog footer button{border:1px solid light-dark(#c7c0cf,#82708f);border-radius:6px;background:transparent;color:inherit;padding:8px 12px;cursor:pointer;font-size:13px}
#aem-overview #ap-model-ot-dialog footer .ap-ot-save{background:light-dark(#654184,#8660a5);color:#fff;border-color:transparent;font-weight:700}
#aem-overview #ap-model-ot-dialog [data-ot-remove]{margin-right:auto;color:light-dark(#b02d26,#ffb4ad)}

/* OT controls do not reserve a line in every calendar cell. */
#aem-overview .ap-planner .ap-model-gantt td[data-draft-drop]{position:relative}
#aem-overview .ap-planner .ap-model-gantt td>.ap-add-ot{position:absolute;right:4px;bottom:3px;z-index:4;display:block;width:auto;min-height:0;height:22px;line-height:18px;margin:0;padding:1px 6px;border:1px solid light-dark(#c8b6dc,#9277ab);border-radius:4px;background:light-dark(#faf7ff,#34283f);font-size:11px;opacity:0;pointer-events:none;transition:opacity .12s}
#aem-overview .ap-model-gantt td:hover>.ap-add-ot,#aem-overview .ap-model-gantt td:focus-within>.ap-add-ot,#aem-overview .ap-model-gantt td>.ap-add-ot:focus-visible{opacity:1;pointer-events:auto}
#aem-overview .ap-gantt-ot{padding:0;border:0;background:transparent}
#aem-overview .ap-gantt-ot>button{display:inline-flex;width:auto;min-height:0;height:22px;align-items:center;line-height:16px;margin:2px 5px;padding:2px 7px;border:1px solid light-dark(#d8c8eb,#705585);border-radius:4px;background:light-dark(#f3edf9,#30263d)}
#aem-overview .ap-gantt-ot-lanes{min-height:0;background:light-dark(#f6f1fb,#30263d)}
@media (hover:none){#aem-overview .ap-planner .ap-model-gantt td>.ap-add-ot{opacity:1;pointer-events:auto}}
/* Keep MODEL timer actions before the clock on one compact line. */
#aem-overview.aem-shell #ao-sidebar .aem-timer-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap;align-content:flex-start}
#aem-overview.aem-shell #ao-sidebar .aem-timer-main>.aem-timer-buttons{order:-1;align-items:center;margin:0;flex:0 0 auto}
#aem-overview.aem-shell #ao-sidebar .aem-timer-main>[data-clock]{margin:0;flex:0 0 auto}
/* Conflicts are reviewed per field without discarding independent edits. */
#aem-overview #aem-sync-conflict{position:fixed;bottom:16px;left:max(16px,calc((100vw - 920px)/2));width:min(920px,calc(100vw - 32px));max-height:75vh;overflow:auto;z-index:100050;box-sizing:border-box;background:var(--ao-card);color:var(--ao-text);border:1px solid light-dark(#cfa353,#aa8441);border-radius:10px;padding:14px;box-shadow:0 12px 48px #0004}
#aem-overview #aem-sync-conflict header,#aem-overview #aem-sync-conflict footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
#aem-overview #aem-sync-conflict button{padding:7px 10px;border:1px solid var(--ao-line);border-radius:5px;background:var(--ao-card);color:inherit;cursor:pointer;white-space:nowrap}
#aem-overview #aem-sync-conflict button:disabled{opacity:.5;cursor:default}
#aem-overview .aem-conflict-list{margin:12px 0;display:grid;gap:10px}
#aem-overview .aem-conflict-list fieldset{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid var(--ao-line);border-radius:6px;padding:10px;min-width:0}
#aem-overview .aem-conflict-list legend{font-size:13px;padding:0 5px}
#aem-overview .aem-conflict-list label{display:block;padding:8px;border:1px solid var(--ao-line);border-radius:5px;min-width:0;cursor:pointer;font-size:13px}
#aem-overview .aem-conflict-list label:has(input:checked){border-color:#648673;background:light-dark(#edf5ef,#263b2d)}
#aem-overview .aem-conflict-list label>div{margin-top:7px;max-height:150px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}
#aem-overview .aem-conflict-list pre{margin:0;white-space:pre-wrap;font-size:12px}
#aem-overview .aem-conflict-list input{margin-right:7px}
@media(max-width:600px){#aem-overview .aem-conflict-list fieldset{grid-template-columns:1fr}#aem-overview #aem-sync-conflict footer{align-items:flex-start;flex-direction:column}}
#aem-overview .ap-model-overlaps{margin:6px 0;padding:8px 10px;border:1px solid light-dark(#dcaa69,#9c7847);border-radius:6px;background:light-dark(#fff4e2,#3e3022);color:light-dark(#6e3b09,#ffe0ad);font-size:12px}
#aem-overview .ap-model-overlaps summary{font-weight:700;cursor:pointer}
#aem-overview .ap-model-overlaps p{margin:8px 0;border-top:1px solid light-dark(#ead1ac,#6c5539);padding-top:7px}
#aem-overview .ap-model-overlaps p>span{display:block;margin-top:4px}
#aem-overview .ap-model-overlaps button{font:inherit;color:inherit;text-decoration:underline;background:none;border:0;cursor:pointer;padding:2px}
#aem-overview .ap-planner .ap-gantt-bar.ap-gantt-overlap{outline:2px solid light-dark(#bf5626,#f2a371);outline-offset:-2px}
#aem-overview .aem-timer-blocker{font-size:11px!important;font-weight:600;color:light-dark(#85520b,#f2c47f);align-self:center}
#aem-overview .aem-timer-buttons button:disabled{opacity:.5;cursor:not-allowed}
#aem-overview .ap-virtual-calendar{table-layout:fixed;border-collapse:separate;border-spacing:0}
#aem-overview .ap-planner .ap-virtual-calendar .ap-virtual-spacer{padding:0!important;border:0!important;min-width:0!important;background:transparent!important;position:static!important}
#aem-overview .ap-planner .ap-virtual-calendar [data-calendar-day],#aem-overview .ap-planner .ap-virtual-calendar td[data-day]{box-sizing:border-box;width:220px;min-width:220px;max-width:220px}
#aem-overview .ap-board.ap-model-gantt{overflow-anchor:none}
#aem-overview .ap-review-table{max-height:320px;overflow:auto;margin:8px 0}
#aem-overview .ap-review-table table{width:100%;border-collapse:collapse;font-size:12px;min-width:650px}
#aem-overview .ap-review-table th,#aem-overview .ap-review-table td{text-align:left;vertical-align:top;padding:9px;border:1px solid var(--ao-line)}
#aem-overview .ap-review-table thead th{position:sticky;top:0;background:var(--ao-card);z-index:1}
#aem-overview .ap-review-table small{display:block;margin-top:5px;font-weight:400;line-height:1.5}
#aem-overview .ap-review-table td:last-child{background:light-dark(#edf5ef,#263b2d)}
#aem-overview .ap-review-warning{padding:7px;background:light-dark(#fff1dc,#443321);color:light-dark(#79480b,#f4cc8d);font-size:12px;font-weight:600}
#aem-overview .ap-ot-time-select{display:flex;align-items:center;gap:5px;width:100%;min-width:0}
#aem-overview #ap-model-ot-dialog .ap-ot-time-select select{flex:1 1 0;min-width:0;box-sizing:border-box;height:40px;padding:7px 5px;border:1px solid light-dark(#c4bdce,#796b86);border-radius:6px;background:light-dark(#fff,#302938);color:inherit;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer}
#aem-overview .ap-ot-time-select select:focus-visible{outline:2px solid light-dark(#9065b0,#c69be6);outline-offset:1px}

/* Match Project Leader column dividers to the personnel calendar. */
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table :is(th,td){border-right:1px solid var(--ao-line)}
#aem-overview.aem-shell #aem-main #at-content .wc-pl-table tr>:last-child{border-right:0}
/* Consistent, optional explanations: compact until explicitly opened. */
#aem-overview.aem-shell #aem-main .aem-method-note{margin:6px 0 10px;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.5}
#aem-overview.aem-shell #aem-main .aem-method-note>summary{cursor:pointer;font-size:12px!important;font-weight:600!important;line-height:1.5!important;padding:0!important;margin:0!important;min-height:0!important;background:transparent!important}
#aem-overview.aem-shell #aem-main .aem-method-note>p{margin:8px 0 0;font-size:12px;line-height:1.5}
#aem-overview.aem-shell #aem-main .wc-page-title,#aem-overview.aem-shell #aem-main>:is(#am-panel,#ak-panel,#ad-panel,#al-panel,#aem-reminders-panel)>h2,#aem-overview.aem-shell #aem-main>:is(#aem-reports-panel,#aem-settings-panel)>header h2{font-size:18px!important;line-height:1.4!important;margin:0 0 12px!important}

/* ===== Tin nhắn v2: 3 cột như web chính ===== */
html body #aem-overview#aem-overview.aem-shell.aem-messages-mode :is(.aem-topbar,#aem-sync-status){display:none!important}
html body #aem-overview#aem-overview.aem-shell.aem-messages-mode #aem-messages-panel{position:fixed;top:64px;left:0;right:0;bottom:0;z-index:900;padding:0;margin:0;background:var(--m-bg)}
#aem-messages-panel{--m-bg:#f6f8f6;--m-side:#eef2ee;--m-pane:#fff;--m-line:#dde5df;--m-ink:#1f2d27;--m-mute:#6a7c71;--m-bubble:#edf2ee;--m-hover:#e3ebe5;--m-accent:#2f6fd0;--m-on:#e3eefc}
html[data-aem-theme=dark] #aem-messages-panel{--m-bg:#202326;--m-side:#1b1e21;--m-pane:#202326;--m-line:#33383c;--m-ink:#e7eaec;--m-mute:#9aa3a9;--m-bubble:#2c3135;--m-hover:#2a2f33;--m-accent:#3b82f6;--m-on:#2f6fd0}
#aem-messages-panel .acm-app{display:grid;grid-template-columns:300px minmax(0,1fr) 300px 44px;height:100%;color:var(--m-ink);font-size:14px}
#aem-messages-panel .acm-app svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#aem-messages-panel .acm-app button,#aem-messages-panel .acm-app input,#aem-messages-panel .acm-app textarea{font:inherit;color:inherit}
#aem-messages-panel .acm-left{background:var(--m-side);border-right:1px solid var(--m-line);display:flex;flex-direction:column;min-height:0;padding:14px 12px}
#aem-messages-panel .acm-left>header{display:flex;align-items:center;gap:6px;margin-bottom:14px}
#aem-messages-panel .acm-left h2{flex:1;margin:0 0 0 4px;font-size:18px;font-weight:700}
#aem-messages-panel .acm-ib{width:34px;height:34px;display:grid;place-items:center;border:0!important;background:transparent!important;color:var(--m-mute);border-radius:8px;cursor:pointer;padding:0!important;min-height:0!important}
#aem-messages-panel .acm-ib:hover{background:var(--m-hover)!important;color:var(--m-ink)}
#aem-messages-panel .acm-search{display:flex;align-items:center;gap:8px;background:var(--m-pane);border:1px solid var(--m-line);border-radius:8px;padding:0 10px;margin-bottom:10px;color:var(--m-mute)}
#aem-messages-panel .acm-search input{flex:1;border:0;background:transparent;height:38px;outline:0;min-width:0;font-size:13px}
#aem-messages-panel .acm-left nav{flex:1;overflow:auto;min-height:0}
#aem-messages-panel .acm-group>summary{list-style:none;cursor:pointer;font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--m-mute);padding:14px 6px 6px}
#aem-messages-panel .acm-group>summary::before{content:'▾ ';font-size:9px}
#aem-messages-panel .acm-group:not([open])>summary::before{content:'▸ '}
#aem-messages-panel .acm-ch{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent!important;border:0!important;padding:7px 8px!important;border-radius:8px;cursor:pointer;min-height:0!important;font-size:14px}
#aem-messages-panel .acm-ch span:not(.acm-av){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aem-messages-panel .acm-ch:hover{background:var(--m-hover)!important}
#aem-messages-panel .acm-ch[aria-pressed=true]{background:var(--m-hover)!important;font-weight:700}
#aem-messages-panel :is(.acm-ch,.acm-topic)>b{background:#c9423f;color:#fff;border-radius:99px;font-size:11px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px}
#aem-messages-panel .acm-av{--s:30px;width:var(--s);height:var(--s);flex:none;border-radius:50%;display:grid;place-items:center;font-size:calc(var(--s) * .38);font-weight:700;color:#fff;background:hsl(var(--h) 45% 42%)}
#aem-messages-panel .acm-av.lg{--s:42px}#aem-messages-panel .acm-av.xl{--s:54px}
#aem-messages-panel .acm-center{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--m-pane)}
#aem-messages-panel .acm-head{display:flex;align-items:center;gap:14px;padding:12px 18px;border-bottom:1px solid var(--m-line)}
#aem-messages-panel .acm-head h3{margin:0;font-size:18px;font-weight:700}
#aem-messages-panel .acm-head p{margin:2px 0 0;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--m-mute);flex-wrap:wrap}
#aem-messages-panel .acm-head p svg{width:14px;height:14px}
#aem-messages-panel .acm-head p i{width:1px;height:14px;background:var(--m-line)}
#aem-messages-panel .acm-tab{background:transparent!important;border:0!important;padding:2px 0!important;min-height:0!important;color:var(--m-mute);display:inline-flex;gap:5px;align-items:center;font-size:12px}
#aem-messages-panel .acm-tab.on{color:var(--m-accent);border-bottom:2px solid var(--m-accent)!important}
#aem-messages-panel .acm-dot{width:8px;height:8px;border-radius:50%;background:#35b653}
#aem-messages-panel .acm-tools{margin-left:auto;display:flex}
#aem-messages-panel .acm-feed{flex:1;overflow:auto;padding:16px 22px;min-height:0;height:auto!important;max-height:none!important;background:transparent!important;border:0!important}
#aem-messages-panel .acm-day{text-align:center;margin:6px 0 14px}
#aem-messages-panel .acm-day span{background:var(--m-bubble);color:var(--m-mute);border-radius:99px;padding:3px 12px;font-size:12px}
#aem-messages-panel .acm-msg{display:flex;gap:12px;margin-bottom:18px;max-width:900px;border:0!important;background:transparent!important;padding:0!important}
#aem-messages-panel .acm-body{min-width:0}
#aem-messages-panel .acm-body>header{display:flex;gap:8px;align-items:baseline;padding:0!important;border:0!important;background:none!important}
#aem-messages-panel .acm-body>header strong{font-size:13px}
#aem-messages-panel .acm-body>header span{font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-replied{display:block;font-size:11px;color:var(--m-mute);margin:2px 0}
#aem-messages-panel .acm-quote{background:var(--m-bubble);opacity:.8;border-radius:12px;padding:6px 12px;font-size:12px;color:var(--m-mute);margin-bottom:3px;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aem-messages-panel .acm-bubble{background:var(--m-bubble);border-radius:14px;padding:8px 14px;display:inline-block;line-height:1.5;margin-top:3px}
#aem-messages-panel .acm-mention{color:var(--m-accent)}
#aem-messages-panel .acm-react{display:flex;gap:6px;margin-top:4px}
#aem-messages-panel .acm-react span{background:var(--m-bubble);border-radius:99px;padding:1px 8px;font-size:12px}
#aem-messages-panel .acm-imgs{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
#aem-messages-panel .acm-imgs img{max-width:340px;border-radius:12px}
#aem-messages-panel .acm-empty{display:grid;place-items:center;gap:12px;height:100%;color:var(--m-mute);text-align:center}
#aem-messages-panel #acm-compose{padding:0 22px 16px;border-top:0;background:transparent}
#aem-messages-panel .acm-bar{display:flex;align-items:center;gap:6px;border-top:1px solid var(--m-line);padding-top:12px}
#aem-messages-panel .acm-bar textarea{flex:1;border:0;background:transparent;outline:0;resize:none;min-height:36px;max-height:140px;padding:8px 6px;font-size:14px}
#aem-messages-panel .acm-plus input{display:none}
#aem-messages-panel .acm-bar-tools{display:flex;align-items:center;gap:2px}
#aem-messages-panel .acm-send{color:var(--m-mute)}
#aem-messages-panel .acm-send:hover:not(:disabled){color:var(--m-accent)}
#aem-messages-panel .acm-mentions{position:relative}
#aem-messages-panel .acm-mentions summary{font-size:12px;color:var(--m-mute);cursor:pointer;padding:6px 8px}
#aem-messages-panel .acm-mentions[open]>div{position:absolute;bottom:40px;right:0;width:240px;max-height:260px;overflow:auto;background:var(--m-pane);border:1px solid var(--m-line);border-radius:10px;padding:8px;box-shadow:0 8px 28px #0004;z-index:5}
#aem-messages-panel .acm-mentions label{display:flex;gap:8px;padding:3px 4px;font-size:13px}
#aem-messages-panel .acm-attachments img{max-height:70px;border-radius:8px}
#aem-messages-panel .acm-error{font-size:12px;color:#d05050;min-height:0}
#aem-messages-panel .acm-right{background:var(--m-side);border-left:1px solid var(--m-line);overflow:auto;padding:16px 18px}
#aem-messages-panel .acm-right section{padding:14px 0;border-bottom:1px solid var(--m-line)}
#aem-messages-panel .acm-right h4{margin:0 0 10px;font-size:14px;font-weight:700}
#aem-messages-panel .acm-row{display:flex;justify-content:space-between;align-items:center}
#aem-messages-panel .acm-row h4{margin:0}
#aem-messages-panel .acm-switch{width:36px;height:20px;border-radius:99px;background:#7b868d;position:relative}
#aem-messages-panel .acm-switch.on{background:var(--m-accent)}
#aem-messages-panel .acm-switch::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}
#aem-messages-panel .acm-switch.on::after{left:18px}
#aem-messages-panel .acm-info{display:flex;gap:12px;align-items:center}
#aem-messages-panel .acm-info strong{display:block;font-size:16px;margin-bottom:4px}
#aem-messages-panel .acm-info small{display:block;color:var(--m-mute);font-size:12px;line-height:1.5}
#aem-messages-panel .acm-topic{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent!important;border:0!important;border-radius:6px;padding:9px 10px!important;min-height:0!important;color:var(--m-mute);cursor:pointer}
#aem-messages-panel .acm-topic span{flex:1}
#aem-messages-panel .acm-topic[aria-pressed=true]{background:var(--m-on)!important;color:#fff;font-weight:700}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-topic[aria-pressed=true]{color:#16407f}
#aem-messages-panel .acm-member{display:flex;gap:12px;align-items:center;padding:7px 0}
#aem-messages-panel .acm-member strong{font-size:13px;display:block}
#aem-messages-panel .acm-member em{font-style:normal;font-size:10px;font-weight:700;background:var(--m-accent);color:#fff;border-radius:99px;padding:1px 7px;margin-left:4px;vertical-align:1px}
#aem-messages-panel .acm-member small{color:var(--m-mute);font-size:12px}
#aem-messages-panel .acm-demo-note{display:block;color:var(--m-mute);font-size:11px;padding-top:12px}
@media(max-width:1100px){#aem-messages-panel .acm-app{grid-template-columns:240px minmax(0,1fr) 44px}#aem-messages-panel .acm-right{display:none}}
@media(max-width:700px){#aem-messages-panel .acm-app{grid-template-columns:1fr}#aem-messages-panel .acm-left{display:none}}

#aem-messages-panel .acm-search input{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;-webkit-appearance:none}#aem-messages-panel .acm-search input::-webkit-search-cancel-button{display:none}

html body #aem-messages-panel .acm-search input#acm-search{background:none!important;background-image:none!important;padding:0!important;border:0!important}
html body #aem-messages-panel .acm-bar textarea#acm-text{background:transparent!important;border:0!important;box-shadow:none!important}
html body #aem-messages-panel .acm-body>header{justify-content:flex-start!important}
html body #aem-messages-panel .acm-bubble .acm-mention{color:var(--m-accent)!important}

/* ===== Tin nhắn v2 · menu, hộp thoại, emoji, reaction ===== */
#acm-pop{--m-pane:#fff;--m-line:#dde5df;--m-ink:#1f2d27;--m-mute:#6a7c71;--m-hover:#e9efea;--m-accent:#2f6fd0;--m-bubble:#edf2ee;position:fixed;z-index:3000;color:var(--m-ink);font:14px/1.4 'Helvetica Neue',Helvetica,Arial,sans-serif}
html[data-aem-theme=dark] #acm-pop{--m-pane:#15181a;--m-line:#33383c;--m-ink:#e7eaec;--m-mute:#9aa3a9;--m-hover:#262b2f;--m-accent:#3b82f6;--m-bubble:#2c3135}
#acm-pop[hidden]{display:none}
#acm-pop .menu,#acm-pop .emoji,#acm-pop .reactions{background:var(--m-pane);border:1px solid var(--m-line);border-radius:12px;box-shadow:0 12px 34px #0005;padding:8px}
#acm-pop .menu{min-width:250px}
#acm-pop .menu button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:inherit;font:inherit;padding:9px 10px;border-radius:7px;cursor:pointer}
#acm-pop .menu button:hover{background:var(--m-hover)}
#acm-pop .menu button.on{font-weight:700}
#acm-pop .menu i{font-style:normal;width:20px;text-align:center;color:var(--m-mute);font-size:15px}
#acm-pop .menu button>span{flex:1}
#acm-pop .menu b{background:#c9423f;color:#fff;border-radius:99px;font-size:11px;min-width:20px;height:20px;display:grid;place-items:center}
#acm-pop .menu hr{border:0;border-top:1px solid var(--m-line);margin:6px 4px}
#acm-pop .menu .tg{justify-content:space-between}
#acm-pop .acm-switch{width:38px;height:22px;border-radius:99px;background:#6f7a81;position:relative;flex:none}
#acm-pop .acm-switch.on{background:var(--m-accent)}
#acm-pop .acm-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}
#acm-pop .acm-switch.on::after{left:19px}
#acm-pop .emoji{width:420px}
#acm-pop .emoji input{width:100%;box-sizing:border-box;height:38px;border-radius:8px;border:1px solid var(--m-line);background:transparent;color:inherit;padding:0 12px}
#acm-pop .emoji h5{margin:12px 4px 6px;font-size:13px}
#acm-pop .emoji .grid{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;max-height:240px;overflow:auto}
#acm-pop .emoji .grid button{background:transparent;border:0;font-size:22px;padding:5px;border-radius:6px;cursor:pointer}
#acm-pop .emoji .grid button:hover{background:var(--m-hover)}
#acm-pop .reactions{display:flex;gap:4px;border-radius:99px;padding:6px 10px}
#acm-pop .reactions button{background:transparent;border:0;font-size:26px;cursor:pointer;transition:transform .1s;padding:0 3px}
#acm-pop .reactions button:hover{transform:scale(1.25)}
#acm-pop.modal{inset:0;left:0!important;top:0!important}
#acm-pop .acm-modal-back{position:fixed;inset:0;background:#0008}
#acm-pop .acm-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(640px,94vw);max-height:92vh;overflow:auto;background:var(--m-pane);border-radius:8px;padding:0 0 24px;box-shadow:0 20px 60px #000a}
#acm-pop .acm-modal>header{display:flex;justify-content:space-between;align-items:center;background:var(--m-bubble);padding:16px 22px;border-radius:8px 8px 0 0}
#acm-pop .acm-modal h3{margin:0;font-size:14px;letter-spacing:.02em}
#acm-pop .acm-modal>header button{background:none;border:0;color:var(--m-mute);cursor:pointer;font-size:16px}
#acm-pop .acm-modal>label{display:block;padding:18px 22px 0;font-size:13px}
#acm-pop .acm-modal input[type=text],#acm-pop .acm-modal input:not([type]),#acm-pop .acm-modal input[name=title]{display:block;width:100%;box-sizing:border-box;margin-top:8px;height:44px;border:1px solid var(--m-line);border-radius:4px;background:transparent;color:inherit;padding:0 12px;font-size:15px}
#acm-pop .acm-modal input[name=title]:focus{border-color:var(--m-accent);outline:0}
#acm-pop .acm-opts{display:flex;align-items:center;margin-top:8px;border:1px solid var(--m-line);border-radius:4px}
#acm-pop .acm-opts span{width:44px;text-align:center;color:var(--m-accent);font-size:20px;border-right:1px solid var(--m-line)}
#acm-pop .acm-opts input{margin:0!important;border:0!important;flex:1}
#acm-pop .acm-optlist{list-style:none;margin:8px 22px 0;padding:0;display:grid;gap:6px}
#acm-pop .acm-optlist li{display:flex;justify-content:space-between;background:var(--m-bubble);border-radius:6px;padding:7px 12px}
#acm-pop .acm-optlist button{background:none;border:0;color:var(--m-mute);cursor:pointer}
#acm-pop .acm-sub{margin:20px 22px 4px;font-size:11px;color:var(--m-mute);border-bottom:1px solid var(--m-line);padding-bottom:6px}
#acm-pop .acm-chk{display:flex;gap:12px;align-items:center;padding:9px 22px;font-size:14px}
#acm-pop .acm-adv{margin:12px 22px 0;border:1px solid var(--m-line);border-radius:4px;background:var(--m-bubble)}
#acm-pop .acm-adv summary{padding:12px 16px;color:#35a853;font-size:12px;font-weight:700;cursor:pointer}
#acm-pop .acm-adv .acm-chk{padding:9px 16px}
#acm-pop .acm-modal footer{display:flex;gap:16px;padding:22px 22px 0}
#acm-pop .acm-modal footer button{flex:1;height:44px;border:0;border-radius:6px;cursor:pointer;font-weight:700;font-size:14px;background:var(--m-bubble);color:var(--m-mute)}
#acm-pop .acm-modal footer .ok{background:#44b02a;color:#fff}
#acm-pop .acm-error{color:#d05050;font-size:12px;padding:6px 22px 0}
#aem-messages-panel .acm-msg{position:relative}
#aem-messages-panel .acm-actions{display:none;gap:2px;align-self:center;margin-left:6px}
#aem-messages-panel .acm-msg:hover .acm-actions{display:flex}
#aem-messages-panel .acm-actions button{width:28px;height:28px;border:0!important;background:transparent!important;color:var(--m-mute);border-radius:50%;cursor:pointer;padding:0!important;min-height:0!important;display:grid;place-items:center}
#aem-messages-panel .acm-actions button:hover{background:var(--m-hover)!important}
#aem-messages-panel .acm-actions svg{width:17px;height:17px}
#aem-messages-panel .acm-react button{background:var(--m-bubble)!important;border:1px solid transparent!important;border-radius:99px;padding:1px 9px!important;font-size:12px;cursor:pointer;min-height:0!important}
#aem-messages-panel .acm-react button.mine{border-color:var(--m-accent)!important}
#aem-messages-panel .acm-flag{font-size:11px;color:#d49a1a}
#aem-messages-panel .acm-replybar{display:flex;justify-content:space-between;align-items:center;background:var(--m-bubble);border-radius:8px 8px 0 0;padding:6px 12px;font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-replybar button{background:none;border:0;color:inherit;cursor:pointer}
#aem-messages-panel .acm-poll{background:var(--m-bubble);border-radius:12px;padding:12px 14px;margin-top:4px;min-width:320px;display:grid;gap:6px}
#aem-messages-panel .acm-poll small{color:var(--m-mute)}
#aem-messages-panel .acm-poll button{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;background:transparent!important;border:1px solid var(--m-line)!important;border-radius:8px;padding:8px 12px!important;cursor:pointer;overflow:hidden;min-height:0!important;text-align:left}
#aem-messages-panel .acm-poll button span{position:absolute;left:0;top:0;bottom:0;background:var(--m-accent);opacity:.22}
#aem-messages-panel .acm-poll button.mine{border-color:var(--m-accent)!important}
#aem-messages-panel .acm-poll b,#aem-messages-panel .acm-poll em{position:relative;font-style:normal;font-weight:600}
#aem-messages-panel .acm-app.compact .acm-ch{padding:3px 8px!important;font-size:13px}
#aem-messages-panel .acm-app.compact .acm-av.sq{--s:22px}
#acm-pop svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ===== Tin nhắn v2 · luồng tin giống web chính ===== */
html[data-aem-theme=dark] #aem-messages-panel{--m-bubble:#3a3d41}
html body #aem-messages-panel .acm-day{display:flex;align-items:center;gap:14px;margin:4px 0 18px;text-align:center}
html body #aem-messages-panel .acm-day::before,html body #aem-messages-panel .acm-day::after{content:'';flex:1;height:1px;background:var(--m-line)}
html body #aem-messages-panel .acm-day span{background:none;padding:0;font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-feed{padding:10px 26px 16px}
#aem-messages-panel .acm-msg{max-width:none;margin-bottom:16px;align-items:flex-start}
#aem-messages-panel .acm-msg.grouped{margin-top:-12px}
#aem-messages-panel .acm-av-gap{width:30px;flex:none}
#aem-messages-panel .acm-bubble{border-radius:18px;padding:7px 14px;margin-top:2px;max-width:min(720px,100%)}
#aem-messages-panel .acm-body>header{margin-bottom:3px}
#aem-messages-panel .acm-body>header strong{font-size:12px}
#aem-messages-panel .acm-body>header span{font-size:12px}
/* tin của mình: bên phải, nền xanh */
#aem-messages-panel .acm-msg.is-mine{flex-direction:row-reverse}
#aem-messages-panel .acm-msg.is-mine .acm-body{display:flex;flex-direction:column;align-items:flex-end;max-width:min(720px,80%)}
#aem-messages-panel .acm-msg.is-mine .acm-bubble{background:#2f7fe4;color:#fff}
#aem-messages-panel .acm-msg.is-mine .acm-bubble .acm-mention{color:#cfe4ff!important}
#aem-messages-panel .acm-msg.is-mine .acm-quote{align-self:flex-end}
#aem-messages-panel .acm-msg.is-mine .mine-head span{font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-msg.is-mine .acm-actions{margin:0 6px 0 0}
#aem-messages-panel .acm-msg.is-mine .acm-react{justify-content:flex-end}
#aem-messages-panel .acm-msg.is-mine .acm-av{display:none}
/* thẻ xem trước liên kết */
#aem-messages-panel .acm-link{background:var(--m-bubble);border-radius:16px;overflow:hidden;max-width:520px;margin-top:2px}
#aem-messages-panel .acm-link>a{display:block;padding:8px 12px;color:var(--m-accent);text-decoration:none;font-size:14px;background:rgba(0,0,0,.12);word-break:break-all}
#aem-messages-panel .acm-link-body{display:flex;gap:16px;padding:12px}
#aem-messages-panel .acm-thumb{width:166px;height:110px;flex:none;border-radius:6px;background:linear-gradient(135deg,hsl(var(--h) 28% 38%),hsl(calc(var(--h) + 20) 24% 52%))}
#aem-messages-panel .acm-link strong{font-size:13px}
#aem-messages-panel .acm-link p{margin:8px 0 0;font-size:13px;line-height:1.45;color:var(--m-mute)}
#aem-messages-panel .acm-msg{margin-bottom:12px}#aem-messages-panel .acm-msg.grouped{margin-top:-8px}

/* Tin nhắn: chữ thường (không đậm) + tông sage sáng giống ảnh tham chiếu */
html body #aem-messages-panel :is(*,*::before,*::after),html body #acm-pop :is(*,*::before,*::after){font-weight:400!important}
html body #aem-messages-panel .acm-member em,html body #aem-messages-panel :is(.acm-ch,.acm-topic)>b,html body #acm-pop .menu b{font-weight:500!important}
html:not([data-aem-theme=dark]) #aem-messages-panel{--m-bg:#f6f6f3;--m-pane:#f6f6f3;--m-side:#ebefe7;--m-line:#d9dfd3;--m-hover:#dbe5d3;--m-bubble:#e8ece4;--m-on:#d5e2cf}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-topic[aria-pressed=true]{color:#1f2d27}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-search{background:transparent}

html body #acm-pop .reactions{background:#3b3c3e;border:0;border-radius:99px;padding:8px 10px;gap:6px;box-shadow:0 6px 20px #0006}
html body #acm-pop .reactions button.rx{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:32px;line-height:1;padding:0;background:transparent}
html body #acm-pop .reactions .rx-like{background:#3b82f6}html body #acm-pop .reactions .rx-love{background:#f0436a}
html body #acm-pop .reactions .rx svg{width:20px;height:20px}
.rx-dot{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;vertical-align:-3px}
.rx-dot.rx-like{background:#3b82f6}.rx-dot.rx-love{background:#f0436a}.rx-dot svg{width:10px;height:10px}
html body #acm-pop .reactions button.rx.rx-like{background:#3b82f6}html body #acm-pop .reactions button.rx.rx-love{background:#f0436a}

#aem-messages-panel .acm-bigemoji{font-size:52px;line-height:1.1;padding:2px 4px}
#acm-pop.mention-pop .mention-list{background:var(--m-pane);border:1px solid var(--m-line);border-radius:10px;box-shadow:0 10px 30px #0005;overflow:hidden;max-height:340px;overflow-y:auto}
#acm-pop.mention-pop button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:inherit;font:inherit;padding:7px 12px;cursor:pointer}
#acm-pop.mention-pop button.on,#acm-pop.mention-pop button:hover{background:var(--m-hover)}
#acm-pop.mention-pop span:not(.acm-av){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--m-mute)}
#acm-pop.mention-pop span b{color:var(--m-ink)}
#acm-pop .acm-av{--s:30px;width:var(--s);height:var(--s);flex:none;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#fff;background:hsl(var(--h) 45% 42%)}
html body #acm-pop :is(*,*::before,*::after){font-weight:400!important}

#aem-messages-panel .acm-right h4{display:flex;align-items:center;justify-content:space-between;gap:6px}
#aem-messages-panel .acm-right h4 .acm-count{flex:1;color:var(--m-mute)}
#aem-messages-panel .acm-right h4 .acm-ib{width:28px;height:28px}
#aem-messages-panel .acm-avwrap{position:relative;flex:none;display:block}
#aem-messages-panel .acm-avwrap .acm-av{--s:38px}
#aem-messages-panel .acm-online{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#3fbf55;border:2px solid var(--m-side)}
#aem-messages-panel .acm-addmember{display:flex;align-items:center;gap:14px;width:100%;background:transparent!important;border:0!important;padding:10px 0!important;color:var(--m-ink);cursor:pointer;text-align:left}
#aem-messages-panel .acm-addmember span{width:36px;height:36px;border:1px dashed var(--m-mute);border-radius:50%;display:grid;place-items:center;color:var(--m-mute)}
#aem-messages-panel .acm-addmember:hover{opacity:.8}

#aem-messages-panel .acm-group>summary{display:flex;align-items:center;justify-content:space-between}
#aem-messages-panel .acm-gedit{width:26px;height:26px;opacity:0}
#aem-messages-panel .acm-gedit svg{width:15px;height:15px}
#aem-messages-panel .acm-group>summary:hover .acm-gedit,#aem-messages-panel .acm-gedit:focus-visible{opacity:1}
#acm-pop .menu button i:empty{display:none}
#aem-messages-panel .acm-group>summary::before{flex:none}#aem-messages-panel .acm-group>summary>span{flex:1;text-align:left;margin-left:4px}

html body #acm-pop .reactions button.rx svg.face{width:34px;height:34px}
.rx-dot.rx-face{background:none;width:18px;height:18px}.rx-dot.rx-face svg{width:18px;height:18px}
html body #acm-pop svg.face,html body #aem-messages-panel svg.face{stroke:none;stroke-width:0;fill:none}html body #acm-pop svg.face *,html body #aem-messages-panel svg.face *{vector-effect:none}

/* Tin nhắn: chữ dịu, không đen đậm */
html:not([data-aem-theme=dark]) #aem-messages-panel,html:not([data-aem-theme=dark]) #acm-pop{--m-ink:#4a5851;--m-mute:#85938a}
html[data-aem-theme=dark] #aem-messages-panel,html[data-aem-theme=dark] #acm-pop{--m-ink:#cdd2d6;--m-mute:#8f989e}
html body #aem-messages-panel .acm-app,html body #aem-messages-panel .acm-app :is(h2,h3,h4,strong,b,summary,button,span,small,p,textarea,input){color:var(--m-ink);-webkit-font-smoothing:antialiased;text-shadow:none}
html body #aem-messages-panel .acm-app :is(small,.acm-day span,.acm-body>header span,.acm-search input,.acm-group>summary,.acm-replied,.acm-quote,.acm-topic,.acm-demo-note,.acm-head p,.acm-head p *){color:var(--m-mute)}
html body #aem-messages-panel .acm-head h3,html body #aem-messages-panel .acm-left h2{font-size:17px}
html body #aem-messages-panel .acm-msg.is-mine .acm-bubble,html body #aem-messages-panel .acm-msg.is-mine .acm-bubble *{color:#fff}
html body #aem-messages-panel .acm-app .acm-mention,html body #aem-messages-panel .acm-app .acm-tab.on{color:var(--m-accent)}
html body #aem-messages-panel .acm-app .acm-topic[aria-pressed=true]{color:var(--m-ink)}
html[data-aem-theme=dark] body #aem-messages-panel .acm-app .acm-topic[aria-pressed=true],html[data-aem-theme=dark] #aem-messages-panel .acm-app .acm-topic[aria-pressed=true]{color:#fff}
html body #aem-messages-panel .acm-member em,html body #aem-messages-panel .acm-member em *{color:#fff}
html body #aem-messages-panel .acm-app :is(.acm-ch,.acm-topic)>b{color:#fff}

/* Tin nhắn: nền trung tính (không xanh) */
html:not([data-aem-theme=dark]) body #aem-messages-panel,html:not([data-aem-theme=dark]) #acm-pop{--m-bg:#fff;--m-pane:#fff;--m-side:#f5f5f5;--m-line:#e3e3e3;--m-hover:#ebebeb;--m-bubble:#f0f0f0;--m-on:#e6e6e6;--m-ink:#4a4f54;--m-mute:#8a9096}
html body #aem-overview#aem-overview.aem-shell.aem-messages-mode #aem-messages-panel{background:var(--m-bg)}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-ch[aria-pressed=true]{background:#e6e6e6!important}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-topic[aria-pressed=true]{background:#e6e6e6!important}
html:not([data-aem-theme=dark]) #aem-messages-panel .acm-search{background:#fff}
html[data-aem-theme=dark] body #aem-messages-panel,html[data-aem-theme=dark] #acm-pop{--m-bg:#252729;--m-pane:#252729;--m-side:#1f2123;--m-line:#35383b;--m-hover:#2e3134;--m-bubble:#3a3d41;--m-on:#3b82f6}
html body #aem-messages-panel .acm-online{border-color:var(--m-side)}

/* Tin nhắn: thắng quy tắc aem-bold-light (chữ đen đậm 600) của Work */
html body #aem-overview#aem-overview #aem-messages-panel :is(*,*::before,*::after){font-weight:400!important}
html body #aem-overview#aem-overview #aem-messages-panel :is(.acm-member em,.acm-ch>b,.acm-topic>b){font-weight:500!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app :is(h2,h3,h4,strong,b,summary,button,span,small,p,textarea,input,div,a,label,time){color:var(--m-ink)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app :is(small,.acm-day span,.acm-body>header span,.acm-search input,.acm-group>summary,.acm-group>summary span,.acm-replied,.acm-quote,.acm-topic,.acm-topic span,.acm-demo-note,.acm-head p,.acm-head p *,.acm-right h4 .acm-count,.acm-link p){color:var(--m-mute)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-topic[aria-pressed=true],html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-topic[aria-pressed=true] span{color:var(--m-ink)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app :is(.acm-msg.is-mine .acm-bubble,.acm-msg.is-mine .acm-bubble *,.acm-member em,.acm-ch>b,.acm-topic>b,.acm-av){color:#fff!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app :is(.acm-mention,.acm-tab.on,.acm-tab.on *,.acm-link>a){color:var(--m-accent)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-send{color:var(--m-mute)!important}
/* mục đang chọn: xám trung tính, không fill xanh */
html[data-aem-theme=dark] body #aem-messages-panel{--m-on:#3a3d41}
html[data-aem-theme=dark] #aem-messages-panel .acm-topic[aria-pressed=true],html[data-aem-theme=dark] #aem-messages-panel .acm-ch[aria-pressed=true]{background:#33363a!important;color:var(--m-ink)}
html body #aem-messages-panel .acm-send:not(:disabled):hover{background:var(--m-hover)!important}

html body #aem-overview#aem-overview #aem-messages-panel .acm-bar textarea::placeholder{color:var(--m-mute)!important;font-weight:400!important;opacity:1}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-ib.on{background:var(--m-hover)!important}
#aem-messages-panel .acm-star svg{width:14px;height:14px}
#aem-messages-panel .acm-star.on svg{fill:#e0a800;stroke:#e0a800}
#acm-pop .menu.wide{min-width:300px}
#acm-pop .menu button.danger,#acm-pop .menu button.danger *{color:#e05252!important}
#aem-messages-panel .acm-msgsearch{padding:14px 16px}
#aem-messages-panel .acm-msgsearch-bar{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--m-line);padding-bottom:12px}
#aem-messages-panel .acm-msgsearch-bar label{flex:1;display:flex;align-items:center;gap:8px;background:var(--m-pane);border:1px solid var(--m-line);border-radius:8px;padding:0 10px}
#aem-messages-panel .acm-msgsearch-bar input{flex:1;height:38px;border:0!important;background:none!important;outline:0;box-shadow:none!important;padding:0!important}
#aem-messages-panel .acm-hint{color:var(--m-mute);font-size:13px;padding:14px 4px}
#aem-messages-panel .acm-hit{display:flex;gap:10px;padding:10px 4px;border-bottom:1px solid var(--m-line)}
#aem-messages-panel .acm-hit p{margin:2px 0 0;font-size:13px}
#aem-messages-panel .acm-hit small{margin-left:8px}

#aem-messages-panel .acm-topicbar{display:flex;align-items:center;gap:10px;padding:12px 24px;background:var(--m-side);border-bottom:1px solid var(--m-line)}
#aem-messages-panel .acm-topicbar h3{flex:1;margin:0;font-size:16px}
#aem-messages-panel .acm-pill{background:var(--m-hover)!important;border:0!important;border-radius:6px;padding:9px 14px!important;cursor:pointer;min-height:0!important;font-size:13px}
#aem-messages-panel .acm-pill.primary{background:#2f7fe4!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-pill.primary{color:#fff!important}
#aem-messages-panel .acm-tsearch{display:flex;align-items:center;background:var(--m-hover);border-radius:6px;padding:0 10px}
#aem-messages-panel .acm-tsearch input{width:150px;height:36px;border:0!important;background:none!important;outline:0;box-shadow:none!important;padding:0!important}
#aem-messages-panel .acm-tsearch svg{width:16px;height:16px}
#aem-messages-panel .acm-topiclist{padding:18px 24px;overflow:auto;display:grid;gap:14px;align-content:start}
#aem-messages-panel .acm-topiccard{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--m-line);border-radius:6px;padding:14px 16px}
#aem-messages-panel .acm-tcbody{flex:1;min-width:0}
#aem-messages-panel .acm-tctitle{background:none!important;border:0!important;padding:0!important;font-size:16px;cursor:pointer;min-height:0!important}
#aem-messages-panel .acm-tcdesc{margin:8px 0;font-size:13px}
#aem-messages-panel .acm-tcmeta{margin:0;font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-tcmeta em{font-style:normal;background:#9be7a8;color:#1d5d2a;border-radius:4px;padding:1px 8px;margin-right:6px;font-size:11px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-tcmeta em{color:#1d5d2a!important}
#aem-messages-panel .acm-follow{background:#2f7fe4!important;border:0!important;border-radius:99px;padding:8px 18px!important;cursor:pointer;min-height:0!important;font-size:12px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-follow{color:#fff!important}
#aem-messages-panel .acm-follow.on{background:var(--m-hover)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-follow.on{color:var(--m-ink)!important}
#aem-messages-panel .acm-tcmore{background:var(--m-hover)!important;border-radius:6px}

html body #aem-messages-panel .acm-tsearch input#acm-topicsearch{background:none!important;background-image:none!important}
html body #aem-messages-panel .acm-member em{font-size:9px!important;line-height:1.5;padding:0 6px!important;letter-spacing:.02em;margin-left:6px;vertical-align:1px}

#aem-messages-panel button.acm-switch{border:0!important;padding:0!important;min-height:0!important;cursor:pointer;display:block}

html body #aem-overview#aem-overview #aem-messages-panel .acm-rail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0;border-left:1px solid var(--m-line);background:var(--m-side)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-rail .acm-ib{width:32px;height:32px;border-radius:7px;color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-rail .acm-ib svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html body #aem-overview#aem-overview #aem-messages-panel .acm-rail .acm-ib:hover,html body #aem-overview#aem-overview #aem-messages-panel .acm-rail .acm-ib.on{background:var(--m-hover);color:var(--m-ink)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-gal{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-gal img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;display:block}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem{display:flex;gap:9px;align-items:center;padding:7px 0;text-decoration:none;color:var(--m-ink)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem img{width:36px;height:36px;object-fit:cover;border-radius:5px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem i{width:36px;height:36px;display:grid;place-items:center;background:var(--m-hover);border-radius:5px;font-style:normal}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem i svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem b{font-weight:400!important;font-size:13px;display:block;word-break:break-all}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fileitem small{color:var(--m-mute);font-size:12px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-bubble:empty{display:none!important}

html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2{background:var(--m-bubble);border-radius:12px;padding:14px 16px;margin-top:4px;min-width:340px;max-width:460px;display:grid;gap:9px;color:var(--m-ink)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2>strong{font-weight:600!important;font-size:15px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .pm{display:flex;gap:14px;align-items:center;font-size:13px;color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .pm svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6;vertical-align:-2px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .dot{display:inline-block;width:11px;height:11px;border:1.5px solid var(--m-mute);border-radius:50%;margin-right:5px;vertical-align:-1px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .dot.on{background:#2f7be5;border-color:#2f7be5}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;background:transparent!important;border:1px dashed #6aa5ee!important;border-radius:8px;color:var(--m-ink);font:inherit;font-size:14px;text-align:left;cursor:pointer}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt:disabled{cursor:default}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt b{font-weight:400!important;flex:1;color:var(--m-ink)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt em{font-style:normal;font-size:13px;color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt i{width:20px;height:20px;border:1.5px solid #8bb7f0;border-radius:50%;background:#fff;flex:none;display:grid;place-items:center}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt i.ck{border-radius:5px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt.sel i{background:#2f7be5;border-color:#2f7be5;box-shadow:inset 0 0 0 4px #fff}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .opt.sel i.ck{box-shadow:none}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .pf{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .go{background:#2f7be5!important;color:#fff!important;border:0!important;border-radius:5px;padding:9px 18px;font:inherit;font-size:14px;font-weight:500!important;cursor:pointer}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .go:disabled{opacity:.45;cursor:default}
html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .pf small,html body #aem-overview#aem-overview #aem-messages-panel .acm-poll2 .pt{font-size:13px;color:var(--m-mute)}

html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-info strong{font-weight:700!important}html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-topic,html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-topic span{font-weight:600!important}html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-topic[aria-pressed=true],html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-topic[aria-pressed=true] span{font-weight:700!important}html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-right .acm-topic.acm-topic :is(span,svg){color:var(--m-ink,#1f2328)!important}

html body #aem-overview#aem-overview #aem-messages-panel .acm-search{position:relative;margin:4px 14px 6px;border-bottom:1px solid var(--m-line);border-radius:0;background:transparent!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-search input{border:0!important;background:transparent!important;padding-left:30px;font-size:14px;width:100%;box-shadow:none!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-search::before{content:"";position:absolute;left:4px;top:50%;width:15px;height:15px;transform:translateY(-50%);background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9096' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-messages-panel .acm-mentionme{display:flex;align-items:center;gap:8px;width:calc(100% - 28px);margin:4px 14px 8px;padding:7px 6px;background:transparent!important;border:0!important;border-radius:6px;font:inherit;font-size:14px;font-weight:400!important;color:var(--m-ink);cursor:pointer;text-align:left}
html body #aem-overview#aem-overview #aem-messages-panel .acm-mentionme span{width:18px;text-align:center;color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-mentionme:hover,html body #aem-overview#aem-overview #aem-messages-panel .acm-mentionme.on{background:var(--m-hover)!important}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-search{border:0!important;border-bottom:1px solid var(--m-line)!important;border-radius:0!important;padding:0!important;height:36px;display:block}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-search input{font-weight:400!important;color:var(--m-ink)!important;height:34px;padding:0 0 0 28px!important;border:0!important;outline:0}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-search input::placeholder{color:var(--m-mute);font-weight:400}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-mentionme,html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-mentionme:hover{color:var(--m-ink)!important;font-weight:400!important}

#aem-overview .acm-newgroup,.acm-newgroup{max-height:340px;overflow:auto;min-width:260px}
#aem-overview .acm-newgroup>.acm-newgroup-title,.acm-newgroup>.acm-newgroup-title{display:block;padding:8px 10px 6px;font-size:12px;font-weight:800;color:var(--m-mute,#5c6673);border-bottom:1px solid var(--m-line,#e3e6ea);margin-bottom:4px;background:none}
.acm-newgroup>button{width:100%;text-align:left}
html body #aem-overview#aem-overview #aem-messages-panel .acm-right .acm-member strong em{display:inline-block!important;font-size:10px!important;line-height:1.25!important;padding:3px 7px 2px!important;vertical-align:2px!important;white-space:nowrap!important;overflow:visible!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app.rail-hidden{grid-template-columns:300px minmax(0,1fr) 44px!important}@media(max-width:1100px){html body #aem-overview#aem-overview #aem-messages-panel .acm-app.rail-hidden{grid-template-columns:240px minmax(0,1fr) 44px!important}}@media(max-width:700px){html body #aem-overview#aem-overview #aem-messages-panel .acm-app.rail-hidden{grid-template-columns:1fr!important}}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg:not(.is-mine) .acm-body{flex:0 1 auto!important;width:auto!important;max-width:min(720px,calc(100% - 150px))}

html body #aem-overview#aem-overview #aem-messages-panel .acm-addfolder{display:flex;align-items:center;gap:8px;width:calc(100% - 20px);margin:10px 10px;padding:8px 8px;background:transparent!important;border:0!important;border-radius:6px;font:inherit;font-size:14px;font-weight:400!important;color:var(--m-mute)!important;cursor:pointer;text-align:left}
html body #aem-overview#aem-overview #aem-messages-panel .acm-addfolder span{width:18px;text-align:center}
html body #aem-overview#aem-overview #aem-messages-panel .acm-addfolder:hover{background:var(--m-hover)!important;color:var(--m-ink)!important}
#acm-pop .acm-folder-list{max-height:220px;overflow:auto;display:grid;gap:2px;padding:4px 0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-folder>.acm-hint{padding:4px 14px;font-size:13px}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-send,html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-send:hover,html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-send:disabled{background:transparent!important;box-shadow:none!important;border:0!important;color:var(--m-mute)!important}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-send:hover{color:var(--m-ink)!important}

html body #aem-overview#aem-overview #aem-messages-panel .rx,#acm-pop .rx,#acm-pop .reactions button{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#acm-pop .reactions button.rx img.rimg{width:34px;height:34px;display:block;transition:transform .12s}
#acm-pop .reactions button.rx:hover img.rimg{transform:scale(1.18)}
#aem-messages-panel img.rimg{width:20px;height:20px;display:block;border-radius:50%}
html body #acm-pop .reactions button.rx.rx-like,html body #acm-pop .reactions button.rx.rx-love,html body #acm-pop .reactions .rx-like,html body #acm-pop .reactions .rx-love{background:transparent!important}
html body .rx-dot.rx-like,html body .rx-dot.rx-love,html body .rx-dot.rx-face{background:none!important;width:18px;height:18px}
html body .rx-dot img.rimg{width:18px;height:18px}
html:not([data-aem-theme=dark]) body #acm-pop .reactions{background:#fff!important;border:0!important;box-shadow:0 2px 14px #0003!important;padding:7px 10px!important;gap:7px!important}
html body #acm-pop .reactions button.rx{width:36px!important;height:36px!important}

html body #aem-overview#aem-overview #aem-messages-panel .acm-editform{display:grid;gap:6px;min-width:min(520px,70vw)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-editform textarea{width:100%;box-sizing:border-box;padding:9px 12px;border:1px solid var(--m-line)!important;border-radius:10px;background:var(--m-bg)!important;color:var(--m-ink)!important;font:inherit;font-size:14px;font-weight:400!important;resize:vertical;outline:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-editform div{display:flex;align-items:center;gap:8px;justify-content:flex-end}
html body #aem-overview#aem-overview #aem-messages-panel .acm-editform span{margin-right:auto;font-size:12px;color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-editform button{padding:6px 14px;border-radius:6px;border:1px solid var(--m-line)!important;background:transparent!important;color:var(--m-ink)!important;font:inherit;font-size:13px;font-weight:400!important;cursor:pointer}
html body #aem-overview#aem-overview #aem-messages-panel .acm-editform button.ok{background:#2f7be5!important;border-color:#2f7be5!important;color:#fff!important}

#acm-pop .menu button i svg.mi,#acm-pop .menu button svg.mi{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--m-mute)}
#acm-pop .menu button i{display:grid;place-items:center;width:22px}

html body #aem-overview#aem-overview #aem-messages-panel .acm-app.composing{grid-template-columns:300px minmax(0,1fr)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to{display:flex;align-items:flex-start;gap:10px;padding:14px 18px;border-bottom:2px solid #5b9be8}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to .to{padding:3px 8px;border-radius:4px;background:#eaf2fd;color:#3a78c9;font-size:12px;margin-top:5px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to .chips{flex:1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to .chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border-radius:99px;background:var(--m-hover);font-size:13px;color:var(--m-ink)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to .chip button{border:0!important;background:transparent!important;color:var(--m-mute);cursor:pointer;padding:0 2px;font-size:11px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to input{flex:1;min-width:200px;border:0!important;outline:0;background:transparent!important;font:inherit;font-size:18px;color:var(--m-ink)!important;font-weight:400!important;padding:3px 0;box-shadow:none!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-toclose{width:40px;height:40px;border-radius:50%;border:0!important;background:#fde8ea!important;color:#e5484d!important;cursor:pointer;font-size:16px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tolist{padding:8px 18px;overflow:auto;flex:1}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tosug{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:0!important;background:transparent!important;border-radius:8px;font:inherit;font-size:14px;color:var(--m-ink)!important;cursor:pointer;text-align:left}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tosug:hover{background:var(--m-hover)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tosug b{font-weight:400!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-newchat{display:flex;flex-direction:column;height:100%}
html body #aem-overview#aem-overview #aem-messages-panel .acm-newform{display:flex;gap:8px;align-items:flex-end;padding:12px 18px;border-top:1px solid var(--m-line)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-newform textarea{flex:1;border:0!important;outline:0;background:transparent!important;font:inherit;font-size:14px;resize:none;color:var(--m-ink)!important;font-weight:400!important}
#acm-pop.mention-pop button.team .teamav{background:#8a9096;font-size:15px}

#acm-pop .acm-chan .acm-chan-body{padding:6px 22px 0;display:grid;gap:14px}
#acm-pop .acm-chan label{display:grid;gap:6px;font-size:13px;color:var(--m-ink)}
#acm-pop .acm-chan label.acm-chk{display:flex}
#acm-pop .acm-chan input[type=text],#acm-pop .acm-chan input:not([type]),#acm-pop .acm-chan select,#acm-pop .acm-chan textarea{border:1px solid var(--m-line);border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;background:var(--m-pane);color:var(--m-ink);outline:0}
#acm-pop .acm-members-box{border:1px solid var(--m-line);border-radius:5px;padding:6px 8px;min-height:58px;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}
#acm-pop .acm-members-box input{border:0!important;padding:4px!important;flex:1;min-width:140px}
#acm-pop .acm-members-box .chips{display:contents}
#acm-pop .acm-members-box .chip{display:inline-flex;align-items:center;gap:6px;padding:3px 6px 3px 10px;border-radius:99px;background:var(--m-hover);font-size:13px}
#acm-pop .acm-members-box .chip button{border:0;background:transparent;cursor:pointer;color:var(--m-mute)}
#acm-pop .acm-chan-sug{border:1px solid var(--m-line);border-radius:6px;margin-top:-8px;max-height:190px;overflow:auto}
#acm-pop .acm-chan-sug button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:0;background:transparent;font:inherit;font-size:14px;color:var(--m-ink);cursor:pointer;text-align:left}
#acm-pop .acm-chan-sug button:hover{background:var(--m-hover)}
#acm-pop .acm-quick{border:0;background:transparent;color:#3a78c9;font:inherit;font-size:13px;text-align:left;cursor:pointer;padding:0}
#acm-pop .acm-quicklist{display:flex;gap:8px;flex-wrap:wrap}
#acm-pop .acm-quicklist button{border:1px solid var(--m-line);background:transparent;border-radius:99px;padding:4px 12px;font:inherit;font-size:13px;color:var(--m-ink);cursor:pointer}
#acm-pop .acm-frow{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--m-line)}
#acm-pop .acm-frow span{flex:1}
#acm-pop .acm-frow button{border:1px solid var(--m-line);background:transparent;border-radius:5px;padding:4px 12px;cursor:pointer;font:inherit;font-size:13px;color:var(--m-ink)}

#acm-pop .acm-modal.acm-small{width:min(490px,94vw)}
#acm-pop .acm-modal.acm-manage{width:min(600px,94vw);padding-bottom:0}
#acm-pop .acm-modal.acm-manage header{background:transparent;border-bottom:1px solid var(--m-line)}
#acm-pop .acm-fo-list{padding:8px 22px;max-height:60vh;overflow:auto}
#acm-pop .acm-frow{display:flex;align-items:center;gap:14px;padding:11px 0;cursor:grab;border-bottom:0}
#acm-pop .acm-frow>i{display:grid;place-items:center;width:22px;color:var(--m-mute)}
#acm-pop .acm-frow>i svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5}
#acm-pop .acm-frow>div{flex:1}
#acm-pop .acm-frow b{display:block;font-weight:400!important;font-size:15px;color:var(--m-ink)}
#acm-pop .acm-frow small{color:var(--m-mute);font-size:12px}
#acm-pop .acm-fo-more{border:0!important;background:transparent!important;color:var(--m-mute);cursor:pointer;font-size:18px;letter-spacing:1px}
#acm-pop .acm-fo-menu{display:flex;gap:6px}
#acm-pop .acm-fo-menu[hidden]{display:none}
#acm-pop .acm-fo-foot{display:flex!important;justify-content:space-between;align-items:center;padding:14px 22px 16px!important;border-top:1px solid var(--m-line);margin-top:6px}
#acm-pop .acm-fo-foot button{flex:none!important;width:auto!important;height:auto!important;background:transparent!important;color:var(--m-ink)!important;padding:4px 0!important;font-weight:400!important;font-size:14px}
#acm-pop .acm-fo-foot small{color:var(--m-mute);font-size:12px}

#acm-pop .acm-topicform{width:min(520px,94vw)}
#acm-pop .acm-topicform .lbl,#acm-pop .acm-chan .lbl{font-size:13px;color:var(--m-ink);display:block;margin-bottom:6px}
#acm-pop .acm-rt-box{border:1px solid var(--m-line);border-radius:5px;background:var(--m-pane)}
#acm-pop .acm-rt-bar{display:flex;flex-wrap:wrap;gap:2px;align-items:center;padding:8px;border-bottom:1px solid var(--m-line)}
#acm-pop .acm-rt-bar button,#acm-pop .acm-rt-bar .clr{width:28px;height:28px;border:0;background:transparent;border-radius:4px;color:var(--m-ink);cursor:pointer;font:inherit;font-size:13px;display:inline-grid;place-items:center;position:relative;padding:0}
#acm-pop .acm-rt-bar button:hover,#acm-pop .acm-rt-bar .clr:hover{background:var(--m-hover)}
#acm-pop .acm-rt-bar .sep{width:12px}
#acm-pop .acm-rt-bar .clr input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
#acm-pop .acm-rt-link{display:flex;gap:4px;width:100%;margin-top:6px}
#acm-pop .acm-rt-link[hidden]{display:none}
#acm-pop .acm-rt-link input{flex:1;border:1px solid var(--m-line);border-radius:4px;padding:5px 8px;font:inherit;font-size:13px;background:var(--m-pane);color:var(--m-ink)}
#acm-pop .acm-rt-link button{width:auto;padding:0 10px}
#acm-pop .acm-rte{min-height:170px;max-height:300px;overflow:auto;padding:10px 12px;font-size:14px;color:var(--m-ink);outline:0}
#acm-pop .acm-rte:empty::before{content:attr(data-placeholder);color:var(--m-mute)}
#acm-pop .acm-rte img{max-width:100%}
#acm-pop .acm-rte blockquote{margin:6px 0;padding-left:10px;border-left:3px solid var(--m-line);color:var(--m-mute)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-topic{position:relative}
html body #aem-overview#aem-overview #aem-messages-panel .acm-topic .acm-topic-edit{display:none;margin-left:auto;width:22px;height:22px;place-items:center;border-radius:5px;color:var(--m-mute);font-style:normal}
html body #aem-overview#aem-overview #aem-messages-panel .acm-topic:hover .acm-topic-edit{display:grid}
html body #aem-overview#aem-overview #aem-messages-panel .acm-topic .acm-topic-edit svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6}
html body #aem-overview#aem-overview #aem-messages-panel .acm-topic .acm-topic-edit:hover{background:var(--m-hover)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-foll-btns{display:flex;gap:10px;margin-top:10px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-foll-btns button{flex:1;border:1px solid var(--m-line)!important;background:transparent!important;border-radius:99px;padding:7px 8px;font:inherit;font-size:12px;font-weight:400!important;color:var(--m-ink)!important;cursor:pointer;letter-spacing:.3px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-foll-btns button.on{background:var(--m-hover)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-priv{font-style:normal;font-size:12px;color:var(--m-mute)}

#aem-messages-panel img.rimg[src^='data:image/svg'],#acm-pop img.rimg[src^='data:image/svg']{border-radius:0!important;object-fit:contain}

html body #aem-overview#aem-overview #aem-messages-panel .acm-fochip{display:inline-flex;align-items:center;gap:5px;border:0!important;background:transparent!important;padding:2px 4px;border-radius:5px;font:inherit;font-size:inherit;font-weight:400!important;color:var(--m-mute)!important;cursor:pointer}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fochip:hover{background:var(--m-hover)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-fochip svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6}
#acm-pop .fomenu{min-width:200px;max-height:380px;overflow:auto}
#acm-pop .fomenu button i{display:none}
#acm-pop .fomenu .cur{font-weight:700!important}
html body #acm-pop .fomenu .cur{font-weight:700!important}

#acm-pop .acm-dt{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#acm-pop .acm-dt input,#acm-pop .acm-chan input[type=date],#acm-pop .acm-chan input[type=time]{border:1px solid var(--m-line);border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;background:var(--m-pane);color:var(--m-ink)}
#acm-pop .acm-small .acm-chan-body{padding:6px 22px 0;display:grid;gap:14px}
#acm-pop .acm-small label{display:grid;gap:6px;font-size:13px;color:var(--m-ink)}
#acm-pop .acm-small label.acm-chk{display:flex;gap:8px;align-items:center;font-size:14px}
#acm-pop .acm-small input[type=text],#acm-pop .acm-small input:not([type]){border:1px solid var(--m-line);border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;background:var(--m-pane);color:var(--m-ink);outline:0}
#acm-pop .acm-rd{display:grid;gap:10px}

.acm-topic b.unr{min-width:18px;height:18px;border-radius:9px;padding:0 5px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.acm-topic b.unr.hot{background:#e5484d}.acm-topic b.unr.soft{background:#9aa0a6}
.acm-udot{font-style:normal;min-width:16px;height:16px;border-radius:8px;background:#e5484d;color:#fff;font-size:10px;line-height:16px;text-align:center;padding:0 4px;margin-left:auto;order:9}
.acm-tchip{font-style:normal;margin-left:6px;padding:0 6px;border-radius:8px;background:#eceff3;color:#5f6368;font-size:11px}

#acm-pop .acm-closed,.acm-closed{padding:12px 16px;text-align:center;color:#5f6368;background:#f4f5f7;border-top:1px solid #e3e5e8;font-size:13px}.acm-closed button{margin-left:8px;border:0;background:none;color:#1a73e8;cursor:pointer;font:inherit}
.acm-place{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid #dfe3e8;border-radius:10px;background:#fff;color:inherit;text-decoration:none;max-width:320px}.acm-place b{display:block;font-weight:500}.acm-place small{color:#1a73e8}
.acm-video{max-width:340px;width:100%;border-radius:10px}
.acm-richmsg h1,.acm-richmsg h2{margin:2px 0}.acm-richmsg img{max-width:100%}
.acm-threadlink{border:0;background:none;color:#1a73e8;cursor:pointer;font-size:12px;padding:2px 0}
.acm-bgs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.acm-bgsw{height:48px;border:1px solid #cfd3d8;border-radius:8px;cursor:pointer;font-size:11px;color:#555;display:flex;align-items:flex-end;justify-content:center}.acm-bgsw.on{outline:2px solid #1a73e8}.acm-bgsw span{background:rgba(255,255,255,.8);padding:0 4px;border-radius:4px}
.acm-calpop{display:flex;flex-direction:column;gap:8px;padding:12px;min-width:200px}.acm-calpop small{color:#80868b}
.acm-flash{animation:acmflash 1.8s}@keyframes acmflash{0%,60%{background:#fff7d6}100%{background:transparent}}
.acm-thr{margin-bottom:8px}.acm-thr p{margin:2px 0 0}.acm-thr.orig{padding:8px;background:#f4f5f7;border-radius:8px}.acm-thrlist{max-height:240px;overflow:auto;margin:8px 0}
.acm-sugs button{display:flex;gap:8px;text-align:left}
.acm-hint{color:#80868b;font-size:13px}

.acm-fcard{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #dfe3e8;border-radius:10px;background:#fff;color:inherit;text-decoration:none;max-width:320px;margin-top:4px}.acm-fcard .ic{font-size:22px}.acm-fcard .nm{display:flex;flex-direction:column;min-width:0}.acm-fcard b{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acm-fcard small{color:#80868b}.acm-fcard .dl{margin-left:auto;color:#5f6368}
.acm-dfiles{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}.acm-dfile{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;font-size:13px}.acm-dfile b{font-weight:400;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acm-dfile small{color:#80868b}.acm-dfile button{border:0;background:none;cursor:pointer;color:#80868b}

.acm-pinbar{display:flex;align-items:center;gap:8px;padding:6px 14px;background:#f4f5f7;border-bottom:1px solid #e3e5e8}
.acm-pinmsg{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:none;text-align:left;cursor:pointer;font:inherit;color:#3c4043}.acm-pinmsg .pi{font-size:14px}.acm-pinmsg .pt{display:flex;flex-direction:column;min-width:0;overflow:hidden}.acm-pinmsg .pt b{font-weight:500}.acm-pinmsg small{color:#80868b}.acm-pinmsg .acm-av{flex:none}
.acm-pinnext,.acm-unpin{border:0;background:none;color:#1a73e8;cursor:pointer;font:inherit;font-size:13px;white-space:nowrap}

.acm-tstrip{display:flex;gap:6px;padding:6px 14px;overflow-x:auto;border-bottom:1px solid #e3e5e8;background:#fff;scrollbar-width:thin}
.acm-tchipbtn{flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border:1px solid #dfe3e8;border-radius:14px;background:#f4f5f7;color:#3c4043;font:inherit;font-size:13px;font-weight:400;cursor:pointer}
.acm-tchipbtn.on{background:#e8eef9;border-color:#b9c9ea;color:#1a4fa0}
.acm-tchipbtn b.unr{min-width:16px;height:16px;border-radius:8px;padding:0 4px;font-size:10px;font-weight:600;line-height:16px;text-align:center;color:#fff}
.acm-tchipbtn b.unr.hot{background:#e5484d}.acm-tchipbtn b.unr.soft{background:#9aa0a6}

.acm-frow{display:flex;align-items:center;gap:12px;margin-top:6px}
.acm-fdl{flex:none;width:38px;height:38px;border-radius:50%;background:#eceff3;display:inline-flex;align-items:center;justify-content:center;color:#5f6368}.acm-fdl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acm-fcard{display:flex;align-items:center;gap:12px;padding:12px 16px;border:0;border-radius:12px;background:#eef0f3;max-width:360px;min-width:0}
.acm-fcard .ic{flex:none;position:relative;width:30px;height:38px;border-radius:4px;background:#fff;border:2px solid var(--c);display:inline-flex;align-items:flex-end;justify-content:center}
.acm-fcard .ic i{font-style:normal;font-size:8px;font-weight:700;color:#fff;background:var(--c);padding:1px 3px;border-radius:2px;margin-bottom:6px;line-height:1.2}
.acm-fcard .nm b{white-space:normal;overflow:visible;font-weight:500;word-break:break-word}
.acm-fcard .nm small{text-transform:none;color:#6b7076}
.acm-fcard .dl,.acm-fcard-wrap .acm-fdl{display:none}
html body #aem-overview#aem-overview #aem-messages-panel .acm-head{flex-wrap:nowrap;align-items:center;gap:12px;padding:10px 18px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-head>div{flex:1 1 auto;min-width:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-head>.acm-av,html body #aem-overview#aem-overview #aem-messages-panel .acm-head>span.acm-av{flex:none;width:40px;height:40px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-head h3{font-weight:500;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #aem-overview#aem-overview #aem-messages-panel .acm-head .acm-tools{flex:none;display:inline-flex;gap:2px;margin-left:auto}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tstrip{padding:8px 18px;gap:8px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn{height:30px;padding:0 14px;border:1px solid transparent;border-radius:15px;background:#f1f3f5;color:#444b52;font-weight:400}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn:hover{background:#e6e9ed}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.on{background:#e3ebf8;border-color:#b6c8ea;color:#1f4f9e;font-weight:500}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn:focus-visible{outline:2px solid #8fb0e8;outline-offset:1px}

html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.add{padding:0 11px;font-size:16px;color:#5f6368}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn .acm-topic-edit{display:inline-flex;width:16px;height:16px;opacity:.7;margin-left:2px}.acm-tchipbtn .acm-topic-edit svg{width:14px;height:14px}

/* unread redesign */
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.has-unr{background:#fff;border-color:#e5484d;color:#1b1f23;font-weight:500}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.has-unr.soft{border-color:#c4c8ce}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn b.unr{min-width:20px;height:20px;border-radius:10px;font-size:12px;line-height:20px;padding:0 6px;font-weight:600}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.on.has-unr{background:#e3ebf8}
html body #aem-overview#aem-overview #aem-messages-panel .acm-ch.has-unr>span:not(.acm-av){color:#1b1f23;font-weight:500}
html body #aem-overview#aem-overview #aem-messages-panel .acm-udot{min-width:20px;height:20px;border-radius:10px;font-size:12px;line-height:20px;font-weight:600;background:#e5484d;color:#fff;padding:0 6px;margin-left:auto}
.acm-newdiv{display:flex;align-items:center;gap:10px;margin:10px 0;color:#e5484d;font-size:12px}
.acm-newdiv::before,.acm-newdiv::after{content:"";flex:1;height:1px;background:#f3b4b6}
.acm-newdiv span{background:#fdecec;color:#c8383d;border-radius:10px;padding:1px 10px;font-weight:500}

/* ---- audit fixes ---- */
html body #aem-overview#aem-overview #aem-messages-panel .acm-left h2{white-space:nowrap}
html body #aem-overview#aem-overview #aem-messages-panel .acm-left>header{gap:6px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-left .acm-search input{text-overflow:ellipsis}
#aem-messages-panel .acm-back{display:none}
@media(max-width:1100px){html body #aem-overview#aem-overview #aem-messages-panel .acm-app{grid-template-columns:260px minmax(0,1fr) 44px}html body #aem-overview#aem-overview #aem-messages-panel .acm-left h2{font-size:16px}}
@media(max-width:700px){
 html body #aem-overview#aem-overview #aem-messages-panel .acm-app{grid-template-columns:1fr}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-rail,html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-right{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-app.m-list .acm-center{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-app.m-list .acm-left{display:flex;flex-direction:column;width:100%}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-app.m-chat .acm-left{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-back{display:inline-flex;flex:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head{padding:8px 10px;gap:8px}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head p{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head>.acm-av{width:34px;height:34px}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-tstrip{padding:6px 10px}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-pinbar{padding:6px 10px}
 .acm-fcard{max-width:100%}
}
/* dark mode for new parts */
[data-aem-theme=dark] #aem-messages-panel .acm-tstrip{background:#1f2124;border-color:#34373b}
[data-aem-theme=dark] html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn,html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn{background:#2b2e32;color:#d7dae0;border-color:transparent}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn:hover{background:#34383d}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.on{background:#27384f;border-color:#3f5f8f;color:#a9c7f5}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.has-unr{background:#1f2124;color:#f0f2f5}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.has-unr.on{background:#27384f}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn.add{color:#c4c8ce}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-tstrip{background:#1f2124;border-color:#34373b}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel .acm-pinbar{background:#26292d;border-color:#34373b}
html[data-aem-theme=dark] .acm-pinmsg{color:#d7dae0}
html[data-aem-theme=dark] .acm-pinnext,html[data-aem-theme=dark] .acm-unpin,html[data-aem-theme=dark] .acm-threadlink{color:#8ab4f8}
html[data-aem-theme=dark] .acm-fcard{background:#2b2e32}html[data-aem-theme=dark] .acm-fcard .ic{background:#1f2124}html[data-aem-theme=dark] .acm-fdl{background:#2b2e32;color:#c4c8ce}
html[data-aem-theme=dark] .acm-fcard .nm small{color:#9aa0a6}
html[data-aem-theme=dark] .acm-place{background:#2b2e32;border-color:#3a3e44}
html[data-aem-theme=dark] .acm-closed{background:#26292d;border-color:#34373b;color:#aab0b7}
html[data-aem-theme=dark] .acm-dfile{background:#2b2e32;border-color:#3a3e44;color:#d7dae0}
html[data-aem-theme=dark] .acm-tchip{background:#34383d;color:#b9bec5}
html[data-aem-theme=dark] .acm-newdiv span{background:#3a2326;color:#f19aa0}html[data-aem-theme=dark] .acm-newdiv::before,html[data-aem-theme=dark] .acm-newdiv::after{background:#5a2f33}
html[data-aem-theme=dark] .acm-thr.orig{background:#2b2e32}
html[data-aem-theme=dark] .acm-bgsw span{background:rgba(0,0,0,.55);color:#ddd}
html[data-aem-theme=dark] .acm-fdl svg{stroke:#c4c8ce}

#acm-pop .acm-topicform .acm-chan-body{padding:14px 20px}
#acm-pop .acm-topicform .acm-chan-body>label,#acm-pop .acm-topicform .acm-rt{display:block;margin-bottom:12px}
#acm-pop .acm-rt-bar{flex-wrap:wrap;gap:2px}
#acm-pop .acm-rt-bar button{min-width:28px}
#acm-pop .acm-chk{display:flex;align-items:center;gap:8px;padding-left:0}
#acm-pop input[type=file]::file-selector-button{font:inherit;font-size:13px;padding:5px 12px;margin-right:10px;border:1px solid #cfd3d8;border-radius:6px;background:#f1f3f5;color:#333;cursor:pointer}
html[data-aem-theme=dark] #acm-pop input[type=file]::file-selector-button{background:#34383d;border-color:#4a4f55;color:#e6e8eb}

/* phone overflow + touch actions */
html body #aem-overview#aem-overview #aem-messages-panel .acm-app>*{min-width:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-center{min-width:0;max-width:100%;overflow-x:hidden}
@media(max-width:700px){html body #aem-overview#aem-overview #aem-messages-panel .acm-app{grid-template-columns:minmax(0,1fr)}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-tstrip{max-width:100vw}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-bubble,html body #aem-overview#aem-overview #aem-messages-panel .acm-body{max-width:100%;overflow-wrap:anywhere}}
@media(hover:none){#aem-messages-panel .acm-msg:hover .acm-actions{display:none}#aem-messages-panel .acm-msg.show-act .acm-actions{display:flex}}

/* suite bar on phones */
html body #aem-overview#aem-overview.aem-shell.aem-messages-mode #aem-messages-panel{top:var(--suite-bar-h,64px)}
@media(max-width:750px){
 html body #aem-suite-bar{flex-wrap:nowrap;height:56px;min-height:56px;gap:8px;padding:0 10px}
 html body #aem-suite-bar .suite-demo{display:none}
 html body #aem-suite-bar .suite-logo{flex:none}
 html body #aem-suite-bar nav{order:0;width:auto;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 html body #aem-suite-bar nav::-webkit-scrollbar{display:none}
 html body #aem-suite-bar nav a{flex:none;white-space:nowrap;padding:8px 10px}
}

/* day pill like main web */
html body #aem-overview#aem-overview #aem-messages-panel .acm-day{display:flex;align-items:center;gap:12px;margin:16px 18px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-day::before,html body #aem-overview#aem-overview #aem-messages-panel .acm-day::after{content:"";flex:1;height:1px;background:var(--m-line)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-day span{background:var(--m-bubble);color:var(--m-mute);border-radius:12px;padding:2px 14px;font-size:12px;letter-spacing:.3px;font-weight:500}
.acm-phonesub{display:none}
/* phone chat like main web */
@media(max-width:700px){
 html.acm-phone-chat body #aem-suite-bar{display:none}
 html body #aem-overview#aem-overview.aem-shell.aem-messages-mode #aem-messages-panel{top:var(--suite-bar-h,0)}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head{padding:10px 12px;gap:10px;border-bottom:1px solid var(--m-line)}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head h3{font-size:17px;font-weight:600}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-phonesub{display:block;color:var(--m-mute);font-size:13px;margin-top:1px}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head [data-acm-headsearch]{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-head .acm-tools svg{width:24px;height:24px}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-bubble{font-size:16px;line-height:1.35}
 html body #aem-overview#aem-overview #aem-messages-panel .acm-msg header strong,html body #aem-overview#aem-overview #aem-messages-panel .acm-msg header span{font-size:13px}
 html body #aem-overview#aem-overview #aem-messages-panel #acm-compose{margin:8px 10px 10px;border:1px solid var(--m-line);border-radius:22px;padding:6px 8px;background:var(--m-side)}
 html body #aem-overview#aem-overview #aem-messages-panel #acm-compose [data-acm-quicklike],html body #aem-overview#aem-overview #aem-messages-panel #acm-compose [data-acm-bulb],html body #aem-overview#aem-overview #aem-messages-panel #acm-compose [data-acm-quickpoll]{display:none}
 html body #aem-overview#aem-overview #aem-messages-panel #acm-text{font-size:16px;background:var(--m-pane);border-radius:18px;padding:8px 12px}
}

.acm-ltabs,.acm-left .acm-pv,.acm-left .acm-tm{display:none}
@media (max-width:700px){
#aem-messages-panel .acm-left header h2{font-size:26px;font-weight:700}
#aem-messages-panel .acm-left header{padding-top:14px}
#aem-messages-panel .acm-ltabs{display:flex;border-bottom:1px solid var(--line,#e2e2e2);margin:4px 0 6px}
#aem-messages-panel .acm-ltabs button{flex:1;background:none;border:0;border-bottom:3px solid transparent;padding:12px 0;font:inherit;font-size:16px;color:#777;cursor:pointer}
#aem-messages-panel .acm-ltabs button.on{color:#111;font-weight:600;border-bottom-color:#2b6de0}
#aem-messages-panel .acm-left .acm-mentionme{display:none}
#aem-messages-panel .acm-left.lt-all .acm-group>summary,#aem-messages-panel .acm-left.lt-all .acm-folder{display:none}
#aem-messages-panel .acm-left.lt-all .acm-group:not(.acm-folder) .acm-gedit{display:none}
#aem-messages-panel .acm-left.lt-folders .acm-group:not(.acm-folder){display:none}
#aem-messages-panel .acm-left .acm-ch{display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"av nm tm" "av pv bd";column-gap:12px;align-items:center;padding:10px 14px;min-height:68px;position:relative}
#aem-messages-panel .acm-left .acm-ch>.acm-av,#aem-messages-panel .acm-left .acm-ch>[class*=acm-av]{grid-area:av;width:52px;height:52px;font-size:16px!important;border-radius:50%}
#aem-messages-panel .acm-left .acm-ch .acm-nm{grid-area:nm;font-size:17px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aem-messages-panel .acm-left .acm-ch .acm-pv{display:block;grid-area:pv;font-style:normal;font-size:15px;color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aem-messages-panel .acm-left .acm-ch .acm-tm{display:block;grid-area:tm;font-size:13px;color:#888;justify-self:end}
#aem-messages-panel .acm-left .acm-ch .acm-udot{position:static;grid-area:bd;justify-self:end;grid-row:2}
html[data-aem-theme=dark] #aem-messages-panel .acm-ltabs button.on{color:#fff}
html[data-aem-theme=dark] #aem-messages-panel .acm-left .acm-ch .acm-pv,html[data-aem-theme=dark] #aem-messages-panel .acm-left .acm-ch .acm-tm{color:#9a9aa2}
}
@media (max-width:700px){
html body #aem-overview#aem-overview #aem-messages-panel .acm-left .acm-mentionme{display:none!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-left header h2{font-size:26px!important;font-weight:700!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-left .acm-ch{row-gap:3px;align-content:center;min-height:72px}
}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-imgs{display:flex;flex-wrap:wrap;gap:6px;max-width:min(300px,100%);min-width:0;margin-top:6px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg.is-mine .acm-imgs{justify-content:flex-end;margin-left:auto}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-imgs figure,html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-imgs a{margin:0;max-width:100%;min-width:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-imgs img{display:block;width:auto;height:auto;max-width:100%;max-height:300px;object-fit:cover;border-radius:12px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-imgs figcaption{font-size:12px;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
html:has(#aem-messages-panel:not([hidden])),html:has(#aem-messages-panel:not([hidden])) body{overflow:hidden!important}
@media (max-width:700px){
html body #aem-overview#aem-overview #aem-messages-panel input,html body #aem-overview#aem-overview #aem-messages-panel textarea,html body #aem-overview#aem-overview #aem-messages-panel select{font-size:16px!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-ib{min-width:44px;min-height:44px;touch-action:manipulation}
html body #aem-overview#aem-overview #aem-messages-panel button,html body #aem-overview#aem-overview #aem-messages-panel a{touch-action:manipulation}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn,html body #aem-overview#aem-overview #aem-messages-panel .acm-tab{min-height:36px}
}
@media (max-width:700px){
html body #aem-overview#aem-overview #aem-messages-panel .acm-ib{height:44px!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-link{max-width:100%;min-width:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-link-body{display:flex;flex-direction:column;gap:8px;align-items:stretch}
html body #aem-overview#aem-overview #aem-messages-panel .acm-link-body .acm-thumb{width:100%;height:130px;flex:none}
html body #aem-overview#aem-overview #aem-messages-panel .acm-link-body>div{min-width:0}
}
/* v165 UX: Work header, stat strip, filters, table, nav fade */
#aem-more-filters{display:none}
@media (min-width:701px){
#aem-more-filters{display:inline-flex;align-items:center;height:38px;padding:0 12px;border:1px solid var(--line,#cfd6cc);border-radius:8px;background:#fff;font:inherit;font-size:14px;cursor:pointer}
html:not(.aem-x) .ao-tools:not(.show-more) :is(#ao-clientfilter,#ao-issuefilter,#ao-monthpick,#ao-yearpick,#ao-depth){display:none!important}
html body .ao-table th{white-space:nowrap}
}
@media (max-width:700px){
html body header.aem-topbar{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:10px 16px;height:auto;align-items:center;scrollbar-width:none}
html body header.aem-topbar::-webkit-scrollbar{display:none}
html body header.aem-topbar>*{flex:none}
html body header.aem-topbar :is(#aem-sync-status,.aem-mobile-title,#aem-online,.aem-follow-actor){display:none!important}
html body header.aem-topbar #ao-tab-reminders{font-size:0;width:44px;padding:0;justify-content:center}
html body header.aem-topbar #ao-tab-reminders svg{width:20px;height:20px}
html body header.aem-topbar #ao-create{margin-left:auto}
html body #aem-main [data-wc-metric]>button{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;justify-content:flex-start}
html body #aem-main [data-wc-metric]>button small{font-size:12px!important;line-height:1.25;white-space:normal}
html body #aem-main [data-wc-metric]>button strong{font-size:22px!important;line-height:1.1}
html body header.aem-topbar #ao-tab-reminders>:not(svg){display:none!important}
html body #aem-suite-bar nav{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:28px}
}
/* v166 design: type hierarchy, one accent, single primary action, SVG icons */
.aem-ic-wrap{display:inline-flex;vertical-align:-3px;margin-right:4px}
#ao-tab-notifications .aem-ic-wrap{margin:0}
#ao-tab-notifications .aem-ic{width:18px;height:18px}
html body #aem-overview#aem-overview .ao-table tbody td{font-weight:500}
html body #aem-overview#aem-overview .ao-table .ao-projectlabel{font-weight:700;letter-spacing:-.005em}
html body #aem-overview#aem-overview .ao-table tbody td>span:first-child:not(.aem-sum){font-size:16px}
html body #aem-overview#aem-overview .ao-table th{font-weight:600;color:var(--ao-muted,#5d6a60)}
html body #aem-overview#aem-overview [data-wc-metric]:not([data-wc-metric=red]){--wc-accent:#5b7a63}
html body #aem-overview#aem-overview #ao-workload{background:var(--ao-card,#fff)!important;color:inherit!important;border:1px solid #9bb09f!important;box-shadow:inset 0 -3px 0 #5b7a63!important}
.aem-sum{font-size:12px;font-weight:500;color:var(--ao-muted,#5d6a60);white-space:nowrap}
html body #aem-overview#aem-overview .ao-table .aem-sum{font-size:12px;font-weight:500}
/* v168 drawer: sage palette + consistent corners */
html body #ao-sidebar{border-radius:14px}
html body #ao-sidebar :is(button,input,select,textarea,section,details,.aem-task-primary>div,.aem-task-secondary>div){border-radius:8px}
html body #ao-sidebar :is(input[type=range],progress){accent-color:#276952}
html body #ao-sidebar input[type=range]{accent-color:#276952}
html:not([data-aem-theme=dark]) body #ao-sidebar{--drawer-sage:#e3eadb;--drawer-sage-2:#f1f4ee}
html:not([data-aem-theme=dark]) body #ao-sidebar>.aem-drawer-tools{background:var(--drawer-sage)!important;border-bottom:1px solid #c9d5bf}
html:not([data-aem-theme=dark]) body #ao-sidebar :is([style*="215, 232, 255"],[style*="#d7e8ff"]){background:var(--drawer-sage)!important}
html:not([data-aem-theme=dark]) body #ao-sidebar :is(.aem-task-context,.aem-extension-panel,.aem-progress-compact,.aem-task-secondary){background:var(--drawer-sage-2)!important}
html:not([data-aem-theme=dark]) body #ao-sidebar .aem-task-context{border-color:#d3dccb!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview #ao-sidebar .aem-drawer-tools{background:#e3eadb!important;border-bottom:1px solid #c9d5bf!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview .ao-table tr.selected>td,html:not([data-aem-theme=dark]) body #aem-overview#aem-overview .ao-table tr[aria-selected=true]>td{background:#eef2e9!important}
/* v168: thanh điều hướng không in đậm */
html body #aem-suite-bar :is(nav a,nav button,.suite-link,a[data-suite-route]){font-weight:400!important}
html body #aem-suite-bar [aria-current=page],html body #aem-suite-bar [aria-current=true]{font-weight:500!important}
/* v169 sidebar: một màu icon, chữ thường */
html body #aem-overview#aem-overview button[id^="ao-tab-"][data-tooltip]:not(#ao-tab-reminders):not(#ao-tab-notifications){font-weight:400!important}
html body #aem-overview#aem-overview button[id^="ao-tab-"][data-tooltip][aria-pressed=true]{font-weight:500!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview button[id^="ao-tab-"][data-tooltip]:not(#ao-tab-reminders):not(#ao-tab-notifications)>svg{color:#5b7a63!important;stroke:#5b7a63!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview button[id^="ao-tab-"][data-tooltip][aria-pressed=true]>svg{color:#276952!important;stroke:#276952!important}
html body #aem-overview#aem-overview button[id^="ao-tab-"][data-tooltip]:not(#ao-tab-reminders):not(#ao-tab-notifications)>span{font-weight:inherit!important}
/* v170 Work: bớt chữ đậm, gom màu về họ sage (giữ đỏ/cam/vàng cho trạng thái) */
html body #aem-overview#aem-overview{--ad-blue:light-dark(#3f6a52,#a9d3bb)}
html body #aem-overview#aem-overview #aem-main *{font-weight:500!important}
html body #aem-overview#aem-overview #aem-main :is(h1,h2,h3,.ao-projectlabel,[data-wc-metric] strong,.ao-table .ao-project>td:first-child>span:first-child){font-weight:600!important}
html body #aem-overview#aem-overview #aem-main :is(input,select,textarea){font-weight:400!important}
html body #aem-overview#aem-overview .aem-sidebar-dummy{}
/* v170: các tab "tone" cùng một họ sage, không nhiều màu */
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview #aem-main button[data-wc-nav-tone]{background:#eef2e9!important;color:#34503f!important;border:1px solid #d3dccb!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview #aem-main button[data-wc-nav-tone][aria-pressed=true]{background:#e0e9d8!important;color:#1f4a38!important;border-color:#5b7a63!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview #aem-main button[data-wc-nav-tone] :is(svg,.wc-nav-icon){color:inherit!important;stroke:currentColor!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone]{background:#eef2e9!important;color:#34503f!important;border:1px solid #d3dccb!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone][aria-pressed=true]{background:#e0e9d8!important;color:#1f4a38!important;border-color:#5b7a63!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview.aem-shell #aem-main :is(#aem-kpi-report-tabs,#aem-report-focus,#aem-dod-views,#at-myviews)>button[data-wc-nav-tone] :is(.wc-nav-icon,span,strong,svg){color:inherit!important}
/* v170: nền thanh công cụ cùng họ sage */
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview :is(.ao-tools,#aem-team-toolbar,.wl-stat-toolbar,.aem-report-filters){background:#eef2e9!important;border-color:#d3dccb!important}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview :is(#at-panel,.at-hero,#ak-summary){background:#f4f6f1!important}

/* v173: view pills neutral, no per-view hue; metric cards without coloured top rule */
html body #aem-overview#aem-overview #aem-main :is(#at-views,.wc-pl-views,#aem-dod-views,#at-myviews,#aem-kpi-report-tabs,#aem-report-focus)>button,
html body #aem-overview#aem-overview #aem-main #aem-dispatch-actions button{--wc-view-bg:light-dark(#f4f6f1,#2a312c);--wc-view-color:light-dark(#1f2d27,#e4ece6);background:var(--wc-view-bg)!important;color:var(--wc-view-color)!important;border:1px solid light-dark(#dde5df,#3a453e)!important;box-shadow:none!important;border-radius:8px!important}
html body #aem-overview#aem-overview #aem-main :is(#at-views,.wc-pl-views,#aem-dod-views,#at-myviews,#aem-kpi-report-tabs,#aem-report-focus)>button[aria-pressed=true]{--wc-view-bg:light-dark(#e3eadb,#33443a);--wc-view-color:light-dark(#276952,#a9d3bb);border-color:light-dark(#276952,#a9d3bb)!important;box-shadow:none!important}
html body #aem-overview#aem-overview [data-wc-metric]{border-top:1px solid var(--ao-line)!important}
html body #aem-overview#aem-overview [data-wc-metric][data-wc-tone=red],html body #aem-overview#aem-overview [data-wc-metric].is-red{border-top:1px solid var(--ao-line)!important}

/* v173: Settings neutral sage instead of blue tint */
html body #aem-overview#aem-overview .aem-settings-tabs{background:light-dark(#f1f4ee,#232a25)!important;border-color:light-dark(#dde5df,#3a453e)!important;border-radius:8px!important}
html body #aem-overview#aem-overview .aem-settings-tabs>button[aria-selected=true],html body #aem-overview#aem-overview .aem-settings-tabs>button[aria-pressed=true],html body #aem-overview#aem-overview .aem-settings-tabs>button.active{border-left-color:#276952!important}
html body #aem-overview#aem-overview .aem-settings-card,html body #aem-overview#aem-overview .aem-settings-card :is(textarea,input,select){border-color:light-dark(#dde5df,#3a453e)!important}

/* v173: SVG icons on view pills (replace text glyphs) */
html body #aem-overview#aem-overview #aem-main :is(#at-views,.wc-pl-views)>button,html body #aem-overview#aem-overview #aem-main :is(#aem-dispatch-actions button,[data-planning-draft],#at-modelqueue){display:inline-flex!important;align-items:center;gap:6px}
html body #aem-overview#aem-overview #aem-main :is(#at-views>button,.wc-pl-views>button,#aem-dispatch-actions button,[data-planning-draft],#at-modelqueue)::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:var(--pi) center/contain no-repeat;mask:var(--pi) center/contain no-repeat}
html body #aem-overview#aem-overview #aem-main #at-views>[data-view=load],html body #aem-overview#aem-overview #aem-main .wc-pl-views>[data-pl-display=cards]{--pi:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%223%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%223%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3Crect x=%2214%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221.5%22/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-main #at-views>[data-view=tree],html body #aem-overview#aem-overview #aem-main .wc-pl-views>[data-pl-display=table]{--pi:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6h13M8 12h13M8 18h13%22/%3E%3Ccircle cx=%223.5%22 cy=%226%22 r=%221%22/%3E%3Ccircle cx=%223.5%22 cy=%2212%22 r=%221%22/%3E%3Ccircle cx=%223.5%22 cy=%2218%22 r=%221%22/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-main #at-views>[data-view=week],html body #aem-overview#aem-overview #aem-main #at-modelqueue{--pi:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M16 3v4M8 3v4M3 10h18%22/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-main #at-views>[data-view=advisor],html body #aem-overview#aem-overview #aem-main #aem-dispatch-actions button{--pi:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z%22/%3E%3Cpath d=%22M19 17v4M17 19h4%22/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-main [data-planning-draft]{--pi:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7h10M4 17h10M14 7l3-3M14 7l3 3M14 17l3-3M14 17l3 3%22/%3E%3Cpath d=%22M20 4v16%22/%3E%3C/svg%3E")}
html body #aem-overview#aem-overview #aem-main :is(#at-views,.wc-pl-views)>button[hidden],html body #aem-overview#aem-overview #aem-main :is(#aem-dispatch-actions button,[data-planning-draft],#at-modelqueue)[hidden]{display:none!important}

/* v175: glyph -> SVG, sizing */
.aem-ic-wrap .aem-ic{width:14px;height:14px}
header.aem-topbar .aem-ic-wrap .aem-ic{width:16px;height:16px}
.at-loadbadge .aem-ic{width:8px;height:8px}
.ao-toggle .aem-ic-wrap{margin-right:2px}
button>.aem-ic-wrap:only-child{margin:0}

/* v175: hover highlight sage instead of blue ring + blue fill */
html body #aem-overview#aem-overview.aem-shell :is(.at-projectcard,.at-personcard,.aem-task-facts,.aem-task-comments article,.aem-extension-pending,.aem-model-block):hover{box-shadow:0 0 0 1px light-dark(#8fb39e,#4f7a62)!important;background-color:light-dark(#f1f4ee,#2a332d)!important;transition:background-color .15s,box-shadow .15s}
@media (prefers-reduced-motion:reduce){html body #aem-overview#aem-overview.aem-shell :is(.at-projectcard,.at-personcard,.aem-task-facts,.aem-model-block):hover{transition:none}}
.aem-ic-wrap{margin-right:6px}
.aem-ic-wrap:not(:first-child){margin-left:6px;margin-right:0}
button>.aem-ic-wrap:only-child{margin:0}
.ao-toggle .aem-ic-wrap{margin-right:4px}

/* v176: Work top-bar theme + bell icons identical to the suite bar (same size, stroke, ink colour) */
html body #aem-overview#aem-overview #ao-theme.aem-theme-icons :is([data-theme-sun],[data-theme-moon]){color:inherit!important;width:20px;height:20px}
html body #aem-overview#aem-overview #ao-tab-notifications .aem-ic{width:20px;height:20px;stroke-width:1.7}
html:not([data-aem-theme=dark]) body #aem-overview#aem-overview :is(#ao-theme,#ao-tab-notifications){color:#1f2a22!important}

/* v177: one highlight system, sage instead of blue.
   hover = neutral sage wash, selected = sage fill + green ink, focus = 2px green ring. */
html body #aem-overview#aem-overview{--hl-hover:light-dark(#f1f4ee,#2a332d);--hl-sel-bg:light-dark(#e3eadb,#33443a);--hl-sel-ink:light-dark(#276952,#a9d3bb);--hl-line:light-dark(#8fb39e,#4f7a62)}
html body #aem-overview#aem-overview .ao-table tbody tr:is(:hover,:focus-within)>td{background-color:var(--hl-hover)!important;border-color:light-dark(#dde5df,#3a453e)!important}
html body #aem-overview#aem-overview :is(.aem-start-plan,.aem-date-button,#aem-team-load-summary button,#ak-members .aem-kpi-project-notes button,#aem-sidebar .ao-tabs button,.check-calendar-day):is(:hover,:focus-visible){background:var(--hl-hover)!important;border-color:var(--hl-line)!important;color:inherit!important}
html body #aem-overview#aem-overview :is(#at-myviews [data-myview=mine],#aem-dod-views button,.aem-member-list [data-member],#ao-workload,#aem-main #at-myviews button,.aem-calendar button,.aem-topbar #ao-tab-reminders)[aria-pressed=true]{background:var(--hl-sel-bg)!important;color:var(--hl-sel-ink)!important;border-color:var(--hl-line)!important;box-shadow:none!important}
html body #aem-overview#aem-overview #aem-messages-panel :is(.acm-topic[aria-pressed=true],.acm-tchipbtn.on,.acm-tchipbtn.on.has-unr,.acm-ltabs button.on){background:var(--hl-sel-bg)!important;color:var(--hl-sel-ink)!important;border-color:var(--hl-line)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tchipbtn:focus-visible{outline:2px solid var(--hl-sel-ink)!important;outline-offset:2px}
html body #aem-overview#aem-overview #aem-messages-panel :is(.acm-bgsw.on,.acm-poll2 .dot.on){background:light-dark(#276952,#6fb08a)!important;border-color:light-dark(#276952,#6fb08a)!important}
html body #aem-overview#aem-overview input[type=checkbox],html body #aem-overview#aem-overview input[type=radio]{accent-color:#276952}
html body #aem-overview#aem-overview input.aem-bulk-check:checked{accent-color:#276952}
html body #aem-overview#aem-overview :is(button,a,select,input,textarea,summary,[tabindex]):focus-visible{outline:2px solid light-dark(#276952,#a9d3bb);outline-offset:2px}
::selection{background:light-dark(#d5e3d0,#3d5a47)}

/* v177: no logo tile in the Work sidebar, content moves up */
html body #aem-overview#aem-overview #aem-sidebar #ao-company-home{display:none!important}
html body #aem-overview#aem-overview #aem-sidebar .aem-brand{min-height:0!important;height:auto!important;padding:14px 16px 4px!important;margin:0!important;gap:0!important}
html body #aem-overview#aem-overview .ao-table tbody tr:is(:hover,:focus-within)>td{box-shadow:inset 0 1px 0 var(--hl-line)!important}

/* v178: drawers/popups – sage headers, no bold */
html body #aem-overview#aem-overview :is(#ao-sidebar,#ao-quick,#an-popup) *{font-weight:500!important}
html body #aem-overview#aem-overview :is(#ao-sidebar,#ao-quick,#an-popup) :is(h1,h2,h3,h4,strong,.ao-sidehead *,.aem-drawer-tools *){font-weight:600!important}
html body #aem-overview#aem-overview :is(#ao-sidebar,#ao-quick) .ao-sidehead{background:light-dark(#e3eadb,#33443a)!important;border-color:light-dark(#8fb39e,#4f7a62)!important;color:light-dark(#1f4a38,#a9d3bb)!important}
html body #aem-overview#aem-overview .aem-ic-wrap .aem-ic{flex:none}
html body #aem-overview#aem-overview button>.aem-ic-wrap:first-child:not(:only-child){margin-right:6px!important}
html body #aem-overview#aem-overview button>.aem-ic-wrap:last-child:not(:only-child){margin-left:6px!important;margin-right:0!important}

/* v179: PL load cards – neutral tiles; colour only where attention is needed (late), zeros muted */
html body #aem-overview#aem-overview #at-content .aem-pl-workload-stats>span{background:light-dark(#f4f6f1,#2a312c)!important;border:1px solid light-dark(#dde5df,#3a453e)!important;--wc-pl-metric-color:light-dark(#1f2d27,#e4ece6)!important}
html body #aem-overview#aem-overview #at-content .aem-pl-workload-stats>span.is-zero>b{color:light-dark(#8a978f,#7d8b83)!important;font-weight:400!important}
html body #aem-overview#aem-overview #at-content .aem-pl-workload-stats>span.pl-deadline:not(.is-zero){background:light-dark(#fbeaed,#43262c)!important;border-color:light-dark(#e3b3bc,#7a3b46)!important;--wc-pl-metric-color:light-dark(#b4283c,#ff9aa8)!important}
html body #aem-overview#aem-overview #at-content .aem-pl-workload-stats>span.pl-deadline:not(.is-zero)>b{color:light-dark(#b4283c,#ff9aa8)!important;font-weight:600!important}
html body #aem-overview#aem-overview .aem-pl-workload-card:not([data-pl-state=late]){border-top-color:light-dark(#dfe6dc,#3a453e)!important}
html body #aem-overview#aem-overview .aem-pl-workload-card .aem-pl-name{font-weight:600!important}
html body #aem-overview#aem-overview .aem-pl-state{background:light-dark(#fbeaed,#43262c)!important;color:light-dark(#b4283c,#ff9aa8)!important;border:1px solid light-dark(#e3b3bc,#7a3b46)!important}
html body #aem-overview#aem-overview .aem-pl-workload-card:not([data-pl-state=late]) .aem-pl-state{background:light-dark(#f4f6f1,#2a312c)!important;color:light-dark(#4d5f55,#b8c6bd)!important;border-color:light-dark(#dde5df,#3a453e)!important}
html body #aem-overview#aem-overview :is(#aem-team-toolbar,.ao-tools,.wl-stat-toolbar,.aem-report-filters){background:light-dark(#eef2e9,#232a25)!important;border-color:light-dark(#dde5df,#3a453e)!important}
html body #aem-overview#aem-overview .aem-report-table th,html body #aem-overview#aem-overview #aem-reports-panel th{background:light-dark(#eef2e9,#2a312c)!important}
html body .aem-status-menu *{font-weight:500!important}
html body .aem-status-menu .aem-sm-group{font-weight:600!important}

/* v180 Messages: one sage accent (no blue), dark composer, weights */
html body #aem-messages-panel,html body #acm-pop{--m-accent:#276952}
html[data-aem-theme=dark] body #aem-messages-panel,html[data-aem-theme=dark] body #acm-pop{--m-accent:#7fc4a2}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel #acm-compose{background:transparent!important}
html body #aem-messages-panel#aem-messages-panel .acm-msg.is-mine .acm-bubble{background:light-dark(#276952,#2f7a5e);color:#fff}
html body #aem-messages-panel#aem-messages-panel .acm-msg.is-mine .acm-bubble .acm-mention,html body #aem-messages-panel#aem-messages-panel .acm-msg.is-mine .acm-bubble a{color:#fff!important;text-decoration:underline}
html body #aem-messages-panel#aem-messages-panel .acm-bubble a{color:var(--m-accent)}
html body #aem-messages-panel#aem-messages-panel .acm-member em{background:light-dark(#e3eadb,#33443a);color:light-dark(#276952,#a9d3bb);font-weight:600}
html body #aem-messages-panel#aem-messages-panel .acm-pill.primary,html body #aem-messages-panel#aem-messages-panel .acm-follow{background:light-dark(#276952,#2f7a5e)!important;color:#fff!important;font-weight:500}
html body #aem-messages-panel#aem-messages-panel .acm-switch.on,html body #acm-pop#acm-pop .acm-switch.on{background:light-dark(#276952,#4f9a79)}
html body #aem-messages-panel#aem-messages-panel .acm-topic[aria-pressed=true]{font-weight:500;color:light-dark(#276952,#fff)!important}
html body #acm-pop .reactions .rx-like,html body #acm-pop .reactions button.rx.rx-like,.rx-dot.rx-like{background:light-dark(#276952,#2f7a5e)}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-app .acm-member em{background:#e3eadb!important;color:#276952!important;font-weight:500!important}
html[data-aem-theme=dark] body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel .acm-app .acm-member em{background:#33443a!important;color:#a9d3bb!important}
html body #aem-overview#aem-overview #aem-messages-panel#aem-messages-panel #acm-compose{border-top-color:var(--m-line)!important}
html body #acm-pop#acm-pop .reactions{width:max-content!important;max-width:calc(100vw - 24px);box-sizing:border-box}
html body #acm-pop#acm-pop{width:max-content!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box}
html body #acm-pop#acm-pop .menu{width:max-content!important;min-width:232px!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box}
html body #acm-pop#acm-pop .menu button{white-space:nowrap}
@media(max-width:960px){html body #aem-suite-bar{flex-wrap:nowrap}html body #aem-suite-bar nav{min-width:0;flex:1 1 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none}html body #aem-suite-bar nav::-webkit-scrollbar{display:none}html body #aem-suite-bar nav a{flex:none;white-space:nowrap}html body #aem-suite-bar .suite-demo{display:none}html body #aem-suite-bar .suite-tools{flex:none}}
@media(max-width:520px){html body .aem-time-off-fields{grid-template-columns:minmax(0,1fr)!important}html body .aem-time-off-fields :is(input,select){min-width:0;width:100%;box-sizing:border-box}}

/* v183 guidelines: focus ring on bare inputs, 24px targets, reduced motion */
html body #aem-messages-panel :is(input,textarea,select):focus-visible,html body #acm-pop :is(input,textarea,select):focus-visible,html body #aem-overview :is(input,textarea,select):focus-visible{outline:2px solid light-dark(#276952,#a9d3bb)!important;outline-offset:-2px;border-radius:6px}
html body #aem-messages-panel .acm-switch,html body #acm-pop .acm-switch{position:relative}
html body #aem-messages-panel .acm-switch::before,html body #acm-pop .acm-switch::before{content:'';position:absolute;inset:-6px -4px}
html body #aem-messages-panel :is(.acm-tab,.acm-fochip){min-height:24px;min-width:24px}
html body #aem-overview :is(.ao-toggle,.aem-role-control){min-height:24px;min-width:24px}
html[data-aem-theme=dark]{color-scheme:dark}
html:not([data-aem-theme=dark]){color-scheme:light}
@media (prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html[data-aem-theme=dark][data-aem-theme=dark]{color-scheme:dark!important}
html:not([data-aem-theme=dark]):not([data-x]){color-scheme:light!important}
html body :is(#aem-messages-panel .acm-tab,#aem-messages-panel .acm-fochip,#aem-overview .ao-toggle,#aem-overview .aem-role-control,.ao-toggle){min-height:24px!important}
html body #aem-overview#aem-overview .aem-role-control{height:24px!important;box-sizing:border-box}

/* v184 status menu: SVG icons */
html body .aem-status-menu .aem-sm-icon{width:16px!important;height:16px!important;border:0!important;background:none!important;border-radius:0!important;color:var(--c);display:inline-grid;place-items:center;flex:none}
html body .aem-status-menu .aem-sm-icon svg{width:16px;height:16px;display:block}
#aem-overview #ao-sync-status[hidden],#aem-overview [data-sync-status][hidden]{display:none!important}
#aem-sync-status[hidden]{display:none!important}

/* v185 notes popover: contrast, weights, calmer note tints */
html body #aem-overview#aem-overview.aem-shell #aem-quick-notes-popover [data-quick-note-save]{color:#fff!important;font-weight:500!important}
html body #aem-overview#aem-overview.aem-shell #aem-quick-notes-popover #aem-quick-note-title{font-weight:600!important}
html body #aem-overview#aem-overview.aem-shell [data-note-color=yellow]{--note-bg:light-dark(#fbf7e6,#34312a)}
html body #aem-overview#aem-overview.aem-shell [data-note-color=pink]{--note-bg:light-dark(#f8eff2,#382d32)}
html body #aem-overview#aem-overview.aem-shell [data-note-color=blue]{--note-bg:light-dark(#eef3f9,#26313d)}
html body #aem-overview#aem-overview.aem-shell [data-note-color=green]{--note-bg:light-dark(#eef4ec,#27332b)}
html body #aem-overview#aem-overview #aem-quick-notes-popover,html body #aem-overview#aem-overview #aem-assignment-popover{z-index:2100!important}

/* v187 image attachments: composer thumbs, zoom button, lightbox */
html body #aem-messages-panel#aem-messages-panel .acm-attachments{display:block;max-height:none;overflow:visible}
html body #aem-messages-panel .acm-dthumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 4px 6px;scrollbar-width:thin}
html body #aem-messages-panel .acm-dthumb{position:relative;flex:none;width:72px;height:72px}
html body #aem-messages-panel .acm-dthumb img{width:72px!important;height:72px!important;max-height:none!important;object-fit:cover!important;border-radius:10px;display:block;border:1px solid var(--m-line)}
html body #aem-messages-panel .acm-dthumb button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;min-height:0;padding:0;border-radius:50%;border:1px solid var(--m-line);background:var(--m-pane);color:var(--m-ink);display:grid;place-items:center;cursor:pointer}
html body #aem-messages-panel .acm-dthumb button:hover{background:var(--m-hover)}
html body #aem-messages-panel .acm-imgbtn{border:0;background:none;padding:0;margin:0;cursor:zoom-in;display:block;max-width:100%;border-radius:12px;font:inherit;color:inherit}
html body #aem-messages-panel .acm-imgbtn:focus-visible{outline:2px solid light-dark(#276952,#a9d3bb);outline-offset:2px}
html body #aem-messages-panel .acm-imgbtn:hover img{filter:brightness(.96)}
html.acm-lb-open body{overflow:hidden}
#acm-lightbox{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;background:rgba(12,17,14,.88);color:#fff}
#acm-lightbox[hidden]{display:none!important}
#acm-lightbox figure{margin:0;display:grid;gap:10px;justify-items:center;max-width:min(92vw,1400px)}
#acm-lightbox img{max-width:92vw;max-height:calc(100dvh - 120px);object-fit:contain;border-radius:8px;display:block;background:#1b211d}
#acm-lightbox figcaption{font-size:13px;color:#d6ddd8;max-width:80vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#acm-lightbox button{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer;position:absolute;padding:0}
#acm-lightbox button:hover{background:rgba(255,255,255,.22)}
#acm-lightbox button:focus-visible{outline:2px solid #a9d3bb;outline-offset:2px}
#acm-lightbox .lb-close{top:16px;right:16px}
#acm-lightbox .lb-prev{left:16px;top:50%;transform:translateY(-50%)}
#acm-lightbox .lb-next{right:16px;top:50%;transform:translateY(-50%)}
#acm-lightbox [hidden]{display:none!important}

/* v188 video message + dialog */
html body #acm-pop#acm-pop .acm-modal footer .ok{background:light-dark(#276952,#2f7a5e)!important;color:#fff!important;font-weight:500!important}
html body #acm-pop#acm-pop .acm-modal footer .ok:hover{background:light-dark(#1f5743,#38876a)!important}
html body #acm-pop .acm-modal input[type=file]::file-selector-button{font:inherit;font-size:13px;padding:6px 12px;margin-right:10px;border:1px solid var(--m-line);border-radius:8px;background:var(--m-bubble);color:var(--m-ink);cursor:pointer}
html body #acm-pop .acm-modal input[type=file]::file-selector-button:hover{background:var(--m-hover)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg .acm-vid{margin:6px 0 0;max-width:min(320px,100%);min-width:0;display:grid;gap:4px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-msg.is-mine .acm-vid{margin-left:auto}
html body #aem-messages-panel .acm-video{display:block;width:100%;max-width:100%;max-height:360px;aspect-ratio:16/9;object-fit:contain;background:#0f1612;border-radius:12px}
html body #aem-messages-panel .acm-vid figcaption{font-size:12px;color:var(--m-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #aem-messages-panel .acm-video:focus-visible{outline:2px solid light-dark(#276952,#a9d3bb);outline-offset:2px}

/* v189 Messages: no horizontal scrollbars in side panels / feed */
html body #aem-messages-panel#aem-messages-panel :is(.acm-right,.acm-left,.acm-feed,.acm-center,.acm-chlist){overflow-x:hidden!important}
html body #aem-messages-panel .acm-right :is(.acm-member,section,h4,small,strong){min-width:0;overflow-wrap:anywhere}

/* Trạng thái gửi tin (chế độ máy chủ): đang gửi / chưa gửi được + nút gửi lại */
.acm-sending{opacity:.7}
.acm-failed{color:var(--m-mute)}
.acm-resend{appearance:none;border:0;background:none;color:var(--m-accent);font:inherit;font-weight:500;cursor:pointer;padding:0 4px;min-height:24px}
.acm-resend:hover{text-decoration:underline}
.acm-older{display:block;margin:6px auto 10px;appearance:none;border:0;background:none;color:var(--m-mute);font:inherit;font-size:12px;cursor:pointer;padding:4px 10px;min-height:24px}
.acm-older:hover{color:var(--m-ink)}
/* v190: thẻ số liệu không xuống dòng giữa chữ, cột Tiến độ không bẻ dòng */
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard button>small:first-child,
#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button>span{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0}
@media(max-width:1400px){#aem-overview.aem-shell #wc-overview-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:560px){#aem-overview.aem-shell #wc-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#aem-overview.aem-shell #wc-overview-strip #ao-dashboard button>small:first-child,#aem-overview.aem-shell #wc-overview-strip .aem-issue-cards>button>span{white-space:normal!important;overflow:visible}}
html body #aem-overview#aem-overview .ao-table thead th{white-space:nowrap!important}
html body #aem-overview#aem-overview .ao-table colgroup col:nth-child(1){width:20%!important}
html body #aem-overview#aem-overview .ao-table colgroup col:nth-child(8){width:7%!important}

/* v191: màn tạo chat mới theo bảng màu sage; nút Đang theo dõi đọc được */
html body #aem-overview#aem-overview #aem-messages-panel .acm-to{border-bottom:1px solid var(--m-line);align-items:center}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to:focus-within{border-bottom:2px solid var(--m-accent)}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to .to{background:light-dark(#e3eadb,#33443a);color:light-dark(#276952,#a9d3bb);margin-top:0}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to input,html body #aem-overview#aem-overview #aem-messages-panel .acm-to input:focus-visible{outline:0!important;box-shadow:none!important;font-size:16px}
html body #aem-overview#aem-overview #aem-messages-panel .acm-toclose{background:var(--m-hover)!important;color:var(--m-mute)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-toclose:hover{color:var(--m-ink)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-tolist{max-width:720px}
html body #aem-messages-panel#aem-messages-panel .acm-follow.on{background:var(--m-hover)!important;color:var(--m-ink)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-follow.on{color:var(--m-ink)!important}
html body #aem-overview#aem-overview #aem-messages-panel .acm-to input::placeholder{color:var(--m-mute)!important;opacity:1}

/* v192: gửi địa điểm — nút vị trí hiện tại */
#acm-pop .acm-geo{display:inline-flex;align-items:center;gap:8px;justify-self:start;margin:12px 0 0;padding:8px 12px;border:1px solid var(--m-line);border-radius:8px;background:transparent;color:var(--m-ink);font:inherit;font-size:13px;cursor:pointer;min-height:32px}
#acm-pop .acm-geo:hover{background:var(--m-hover)}
#acm-pop .acm-geo:disabled{opacity:.6;cursor:progress}

/* v193: thanh cuộn mảnh, không mũi tên trong Tin nhắn và sidebar */
html body #aem-messages-panel,html body #aem-messages-panel *,html body #aem-sidebar,html body #aem-sidebar *,html body #acm-pop,html body #acm-pop *{scrollbar-width:thin;scrollbar-color:light-dark(#c3cbc5,#4a554e) transparent}
html body #aem-messages-panel ::-webkit-scrollbar,html body #aem-sidebar::-webkit-scrollbar,html body #acm-pop ::-webkit-scrollbar{width:8px;height:8px}
html body #aem-messages-panel ::-webkit-scrollbar-thumb,html body #aem-sidebar::-webkit-scrollbar-thumb,html body #acm-pop ::-webkit-scrollbar-thumb{background:light-dark(#c3cbc5,#4a554e);border-radius:8px}
html body #aem-messages-panel ::-webkit-scrollbar-button,html body #aem-sidebar::-webkit-scrollbar-button{display:none}
html body #aem-messages-panel ::-webkit-scrollbar-track{background:transparent}

/* v194: số chưa đọc cạnh chủ đề */
html body #aem-messages-panel .acm-tchipbtn b.unr{background:#c9423f;color:#fff;font-weight:500}
html body #aem-messages-panel .acm-tchipbtn b.unr.soft{background:light-dark(#8a948d,#6b766e)}
html body #aem-messages-panel .acm-tchipbtn.on b.unr{background:light-dark(#276952,#2f7a5e)}
html body #aem-messages-panel .acm-tab b.unr,html body #aem-messages-panel .acm-tcunr{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#c9423f;color:#fff;font-size:11px;font-weight:500;line-height:1;vertical-align:middle}
html body #aem-messages-panel .acm-tcunr{margin:0 0 0 8px}
html body #aem-messages-panel .acm-tctitle{display:inline-block}
html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-tchipbtn b.unr,html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-tab b.unr,html body #aem-overview#aem-overview #aem-messages-panel .acm-app .acm-tcunr{color:#fff!important}

/* Chuyển nhanh (Ctrl+K), bản nháp & hẹn giờ */
html body #aem-overview#aem-overview #aem-messages-panel .acm-pen,html body #aem-overview#acm-pop .acm-pen{font-style:normal;font-size:12px;color:var(--m-mute);margin-left:4px;font-weight:400}
html body #aem-overview#aem-overview #aem-messages-panel .acm-mentionme .acm-cnt{margin-left:auto;font-style:normal;font-size:12px;color:var(--m-mute)}
#acm-pop .acm-qs{width:min(520px,calc(100vw - 32px));padding:8px;display:flex;flex-direction:column;gap:6px}
#acm-pop .acm-qs input{width:100%;box-sizing:border-box;padding:10px 12px;font:inherit;font-size:15px;border:1px solid var(--m-line,#d9dcd6);border-radius:8px;background:transparent;color:inherit}
#acm-pop .acm-qs-list{max-height:min(50vh,360px);overflow:auto;display:flex;flex-direction:column}
#acm-pop .acm-qs-it{display:flex;align-items:center;gap:8px;padding:9px 10px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:14px;font-weight:400;color:inherit;text-align:left;cursor:pointer}
#acm-pop .acm-qs-it .acm-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#acm-pop .acm-qs-it small{color:var(--m-mute);font-size:12px}
#acm-pop .acm-qs-it:hover,#acm-pop .acm-qs-it[aria-selected="true"]{background:var(--m-hover,rgba(0,0,0,.06))}
#acm-pop .acm-drafts h4{margin:12px 0 4px;font-size:12px;font-weight:500;color:var(--m-mute);letter-spacing:.04em;text-transform:uppercase}
#acm-pop .acm-qrow{display:flex;align-items:center;gap:4px}
#acm-pop .acm-qrow>button:first-child{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:14px;font-weight:400;color:inherit;text-align:left;cursor:pointer}
#acm-pop .acm-qrow>button:first-child b{font-weight:500}
#acm-pop .acm-qrow>button:first-child span,#acm-pop .acm-qrow>button:first-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--m-mute);font-size:13px}
#acm-pop .acm-qrow>button:first-child:hover{background:var(--m-hover,rgba(0,0,0,.06))}
#acm-pop .acm-qs-it,#acm-pop .acm-qrow>button{box-shadow:none;min-height:0;width:auto}
#acm-pop .acm-qs-it{width:100%;box-sizing:border-box}
#acm-pop .acm-qs-it .acm-udot{position:static;margin:0}
#acm-pop .acm-qs input{outline:none}
#acm-pop .acm-qs input:focus{border-color:var(--m-accent)}
#acm-pop .acm-drafts .acm-chan-body{padding:6px 22px 0;display:block}
#acm-pop .acm-drafts .acm-hint{margin:4px 0;color:var(--m-mute);font-size:13px}
#acm-pop .acm-qrow>.acm-ib{flex:none;width:28px;height:28px;border:0;background:transparent;color:var(--m-mute);cursor:pointer}

/* Xem trước liên kết thật */
#aem-messages-panel .acm-link>a.acm-link-body{display:flex;gap:16px;padding:12px;color:inherit;background:transparent;text-decoration:none;word-break:normal}
#aem-messages-panel .acm-link-body>div{min-width:0}
#aem-messages-panel .acm-link-body small{display:block;margin-top:2px;font-size:12px;color:var(--m-mute)}
#aem-messages-panel .acm-link strong{font-weight:500}
#aem-messages-panel .acm-thumb-img{object-fit:cover;background:var(--m-hover)}
@media(max-width:700px){#aem-messages-panel .acm-thumb{width:96px;height:72px}}

/* Thẻ xem trước gọn: không khối ảnh giả; ảnh thật nhỏ; mô tả tối đa 2 dòng */
#aem-messages-panel .acm-link{max-width:380px;margin-top:4px;border-radius:10px}
#aem-messages-panel .acm-link>a.acm-link-body{gap:10px;padding:8px 10px;align-items:center}
#aem-messages-panel .acm-link .acm-thumb,#aem-messages-panel .acm-link .acm-thumb-img{width:64px;height:64px;border-radius:6px}
#aem-messages-panel .acm-link strong{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#aem-messages-panel .acm-link p{margin:2px 0 0;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#aem-messages-panel .acm-link-body small{margin-top:0}
#acm-pop .acm-as{width:min(560px,calc(100vw - 32px));padding:0;display:flex;flex-direction:column;height:min(640px,86vh)}
#acm-pop .acm-as header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--m-line,#d9dcd6);font-weight:600}
#acm-pop .acm-as header b{font-weight:600}
#acm-pop .acm-as-log{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
#acm-pop .acm-as-m{max-width:88%;padding:8px 10px;border-radius:8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-weight:400}
#acm-pop .acm-as-u{align-self:flex-end;background:var(--m-sel,#e9ece6)}
#acm-pop .acm-as-a{align-self:flex-start;border:1px solid var(--m-line,#d9dcd6)}
#acm-pop .acm-as-e{align-self:flex-start;color:#a33}
#acm-pop .acm-as-wait{opacity:.6}
#acm-pop .acm-as-cite{display:inline;padding:0 6px;border:1px solid var(--m-line,#d9dcd6);border-radius:10px;background:transparent;font:inherit;font-size:12px;font-weight:400;color:inherit;cursor:pointer}
#acm-pop .acm-as-form{display:flex;gap:6px;padding:8px;border-top:1px solid var(--m-line,#d9dcd6)}
#acm-pop .acm-as-form input{flex:1;min-width:0;box-sizing:border-box;padding:10px 12px;font:inherit;font-size:15px;border:1px solid var(--m-line,#d9dcd6);border-radius:8px;background:transparent;color:inherit}
#acm-pop .acm-as-form button{padding:0 14px;border:0;border-radius:8px;font:inherit;font-weight:500;background:var(--m-accent,#5f7a62);color:#fff;cursor:pointer}
.acm-ib-ai{font-size:16px;line-height:1}

/* Bản production: thanh trạng thái lưu của hệ thống không che ô nhập tin nhắn */
body:has(#aem-overview.aem-messages-mode) #aem-save-status{top:calc(var(--suite-bar-h,64px) + 8px)!important;bottom:auto!important;left:auto!important;right:16px!important;max-width:min(420px,calc(100vw - 32px))}
