/* Reference: DingTalk administration overview, observed 2026-10-25.
   Layout and visual tokens only. Existing workflow state colors retain their meanings. */
:root{--ink:#171a1d;--muted:#74777c;--line:#e5e6e8;--paper:#fff;--canvas:#f2f3f8;--accent:#0066ff;--accent-dark:#0052cc;--sage:#0066ff;--gold:#0066ff;--gold-soft:#edf4ff;--shell-line:#e5e6e8;--shell-muted:#74777c}
body{background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.sidebar{width:260px;padding:20px 14px 0;background:#f2f3f8;border:0;box-shadow:none;overflow:hidden}
.sidebar .brand{height:42px;padding:0 5px;gap:8px;border:0;flex-direction:row;align-items:center}
.sidebar .brand>img{width:32px;height:32px;object-fit:cover;border-radius:7px;flex-shrink:0}
.sidebar .brand>strong{font-size:21px;font-weight:700;white-space:nowrap;letter-spacing:1px}
.sidebar .brand>small{padding:1px 5px;border:1px solid #c9cbd1;border-radius:5px;font-size:10px;color:#777b82;white-space:nowrap;line-height:1.5;margin:0}
#sidebarFeatureFinder{padding:6px;margin-left:auto;border:0;background:transparent;display:grid;place-items:center;border-radius:5px}
.sidebar .sidebar-navigation{display:block;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:18px 0 14px;margin-top:0;scrollbar-width:thin;scrollbar-color:#c9ccd3 transparent}
.sidebar-section-label,.sidebar .nav-group-heading{display:block;margin:0 9px 12px;color:#96999f;font-size:11px;line-height:18px;letter-spacing:0;font-weight:400}
.sidebar .management-overview-nav{margin:0 0 22px;padding:0;border:0;display:block}
.sidebar .management-overview-nav>a{display:flex;align-items:center;gap:12px;padding:9px 12px;min-height:38px;color:#171a1d;font-size:14px;font-weight:500;border-radius:7px;background:transparent;box-shadow:none}
.sidebar .management-overview-nav>a.active{background:#fff;color:#171a1d;font-weight:650;box-shadow:none}
.sidebar .workspace-nav-group,.sidebar .business-workspaces{display:block;min-height:0;margin:0;padding:0}
.sidebar .workspace-nav-family{display:block;margin:3px 0}
.sidebar .workspace-nav-parent{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:40px;padding:10px 12px;width:100%;border:0;border-radius:7px;background:transparent;color:#171a1d;font-size:14px;font-weight:500;text-align:left;white-space:nowrap;box-shadow:none}
.sidebar .workspace-nav-icon{width:18px;height:18px;flex-shrink:0;opacity:.85}
.sidebar .workspace-nav-parent.active{background:transparent;color:#171a1d;font-weight:600;border:0;box-shadow:none}
.sidebar .workspace-nav-parent:hover,.sidebar .workspace-nav-parent[aria-expanded=true]{background:#e9ebf0}
.sidebar .workspace-nav-chevron{display:block;margin-left:auto;width:12px;height:12px;opacity:.5;transition:transform .15s}
.sidebar .workspace-nav-parent[aria-expanded=true] .workspace-nav-chevron{transform:rotate(90deg)}
.sidebar .workspace-subnav{display:flex;flex-direction:column;gap:0;order:initial;grid-column:auto;height:auto;max-height:none;min-height:0;margin:5px 0 5px 19px;padding:0 0 0 9px;overflow:visible;border:0;border-left:1px solid #dcdfe5;scrollbar-width:auto}
.sidebar .workspace-subnav>a,.sidebar .workspace-subnav>.workspace-primary-link{display:flex;align-items:center;justify-content:flex-start;min-height:36px;padding:8px 9px;font-size:13px;line-height:20px;font-weight:400;border:0;border-radius:6px;box-shadow:none;text-align:left;color:#303339;background:transparent!important}
.sidebar .workspace-subnav>a:hover{background:#e9ebf0!important;color:#171a1d}
.sidebar .workspace-subnav>a[aria-current=page]{background:#fff!important;color:#0066ff;font-weight:600;box-shadow:none}
.sidebar .workspace-subnav>a:focus-visible,.sidebar .workspace-nav-parent:focus-visible,.sidebar button:focus-visible,.sidebar a:focus-visible{outline:2px solid #0066ff;outline-offset:-2px}
.sidebar .account-wrap{border-top:1px solid #dfe1e7;margin:0 -14px;padding:10px 14px;flex:0 0 auto;background:#f2f3f8}
.sidebar .account{padding:5px 3px;gap:10px;border-radius:7px}
.sidebar .account>span{background:#e2eeff;color:#0066ff;border-radius:8px;width:34px;height:34px}
.sidebar .account div{display:block;min-width:0}.sidebar .account strong{display:block;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .account #accountName{display:block;font-size:11px;color:#777b82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.sidebar .account #accountRole{display:none}.sidebar .account b{color:#787c84}.sidebar .account-menu{left:14px;bottom:66px;max-width:calc(100vw - 30px)}
.sidebar .employee-account-links{font-size:11px;background:#f2f3f8}.sidebar .employee-account-links a{color:#0066ff}
main{margin:8px 8px 8px 260px;padding:0 24px 36px;min-height:calc(100dvh - 16px);border:1px solid #dfe1e7;border-radius:16px;background:#fff;min-width:0}
.workspace-topbar{background:transparent;min-height:56px;margin:0 0 24px;padding:10px 0;border-bottom:1px solid #eef0f2;gap:12px}
.workspace-topbar>span{color:#767a81;font-size:12px}.workspace-tools button,#workspaceMenuToggle{border:1px solid #e5e6e8;background:#fff;color:#4b5057;border-radius:6px;font-size:12px;min-height:32px;padding:6px 10px}.workspace-tools button:first-child{background:#f7f8fa;min-width:160px}.workspace-tools kbd{margin-left:14px}.workspace-tools button:hover{background:#f2f6ff}
body:has([data-view-panel=management].active:not(.management-team)) .workspace-topbar{margin-bottom:12px;border-bottom:0}
[data-view-panel=management]:not(.management-team)>header,[data-view-panel=management]:not(.management-team)>.sop-page-tabs{display:none}
main .view>header h1,#role-workbench .role-intro h1,#role-workbench .rw-heading h1,#after-sales-workbench h1{font-size:24px!important;line-height:1.4;font-weight:600;color:#171a1d!important;letter-spacing:0}
main .view>header span,.rw-heading p,.as-header p{color:#74777c}
body .primary,#role-workbench .primary,#attendance-workbench .primary,#after-sales-workbench .as-primary{background:#0066ff;border-color:#0066ff;color:#fff;border-radius:6px;box-shadow:none}
body .primary:hover,#role-workbench .primary:hover,#attendance-workbench .primary:hover,#after-sales-workbench .as-primary:hover{background:#0055d9}
body .secondary{background:#fff;border-color:#dfe1e6;color:#373b41;border-radius:6px;box-shadow:none}
body .plain,.case-action{color:#0066ff}.secondary:hover{border-color:#8dbbff;background:#f5f9ff}
body :is(input,select,textarea){accent-color:#0066ff}body :is(input,select,textarea):focus-visible{outline-color:#0066ff}
body :is(.content-panel,.summary article,.summary-action,.rw-queue-filters,.rw-queue-empty,.culture-settings){border-color:#e5e6e8;border-radius:10px;box-shadow:none}
body .summary-action.selected{border-color:#0066ff;background:#f5f9ff;box-shadow:none}
body .table-head,body .toolbar{background:#f8f9fb;border-color:#e5e6e8;color:#72767d}
#role-workbench{--rw-green:#0066ff;--rw-line:#e5e6e8;color:#30343b}
#role-workbench :is(h1,h2,h3,strong),#attendance-workbench :is(h1,h2,h3){color:#171a1d}
#role-workbench :is(.rw-kicker,.daily-eyebrow,.rw-scope,.rw-note,.rw-heading p,.rw-queue-intro p),#attendance-workbench .att-eyebrow{color:#858990}
#role-workbench :is(.rw-input,.rw-file,.rw-queue-filters,.rw-metrics,.rw-report-bar select,.rw-result-card,.rw-queue-empty){border-color:#e2e5ea;background:#fff}
#role-workbench :is(.rw-empty,.daily-next){background:#f7f9fc;border-color:#e2e7f0;color:#30343b}
#role-workbench .rw-empty h2,#role-workbench .daily-next h2{color:#171a1d!important}
#role-workbench :is(.rw-empty p,.daily-next p,.daily-counts dt){color:#767a82}
#role-workbench :is(.rw-work-views button[aria-pressed=true],.rw-table-bar nav button.active){color:#0066ff;border-color:#0066ff;background:transparent}
#role-workbench .rw-queue-filters button[aria-pressed=true]{background:#eaf2ff;color:#0066ff;border-color:#c9ddff}
#role-workbench .rw-file{background:#f8f9fb;border-color:#cbd0d8}
#role-workbench :is(input,textarea,select){border-color:#dfe2e7;color:#30343b}
#role-workbench :is(label,.daily-section-label){color:#4d535c}
#attendance-workbench{--att-ink:#171a1d;--att-muted:#74777c;--att-border:#e5e6e8;color:#30343b}
#attendance-workbench .att-path{background:#f5f8fd;border-color:#e5ebf5;color:#727a89}
#attendance-workbench .att-path b{color:#0066ff}
#attendance-workbench .att-file{background:#f8f9fb;border-color:#cbd1dc}
#attendance-workbench .att-file input::file-selector-button{background:#e9f1ff;color:#0066ff}
#attendance-workbench :is(input,select,textarea){border-color:#dfe2e7;color:#30343b}
#attendance-workbench :is(.att-upload label,.att-reports-bar label){color:#4b515b}
#attendance-workbench .att-table-bar nav button.active{color:#0066ff;border-color:#0066ff}
#after-sales-workbench :is(.as-card,.as-search-panel,.as-searchbox,.as-detail,.as-category,.as-empty){border-color:#e2e5ea}
#after-sales-workbench :is(.as-search,.as-searchform,.as-categories){border-color:#e5e6e8}
#after-sales-workbench :is(.as-chip,.as-category){color:#50555f;background:#f8f9fb}
#after-sales-workbench :is(button[aria-pressed=true],.as-category.active,.as-mode-nav button.active){background:#eaf2ff;color:#0066ff;border-color:#b9d3ff}
#after-sales-workbench :is(h1,h2,h3){color:#171a1d}
.feature-dialog{border-color:#dfe1e7;color:#171a1d}.feature-dialog h2{color:#171a1d}.feature-result{color:#171a1d}.feature-result:hover{background:#f4f7ff}.feature-steps li::before{background:#eaf2ff;color:#0066ff}
/* Institution overview follows the reference's profile, metrics, shortcuts and side panels. */
.institution-profile{display:flex;align-items:center;gap:16px;margin:6px 0 28px;min-width:0}
.institution-avatar{width:60px;height:60px;flex:0 0 60px;border-radius:14px;background:#65b4ff;display:grid;place-items:center}
.institution-avatar img{filter:invert(1)}.institution-profile-copy{flex:1;min-width:0}.institution-profile h1{font-size:21px;font-weight:600;line-height:1.5;margin:0 0 7px;color:#171a1d}
.institution-brief{display:flex;align-items:center;gap:14px;background:#f4f7ff;border:1px solid #edf2ff;border-radius:8px;padding:7px 12px;min-height:34px}
.institution-brief>span{font-size:12px;font-weight:600;color:#0066ff;white-space:nowrap}.institution-brief p{font-size:12px;color:#838892;line-height:1.6;margin:0}.institution-brief small{margin-left:auto;color:#969ca6;font-size:10px;white-space:nowrap}
.institution-dashboard{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:18px;align-items:start}
.institution-main,.institution-aside{display:flex;flex-direction:column;gap:18px;min-width:0}
.institution-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.institution-metrics article{padding:18px;border:1px solid #e2e4e8;border-radius:12px;min-width:0;display:flex;flex-direction:column;min-height:132px}
.institution-metrics span{font-size:12px;color:#8a8e95}.institution-metrics strong{font-size:28px;line-height:1.3;font-weight:600;color:#171a1d;margin:9px 0 18px;font-variant-numeric:tabular-nums}.institution-metrics small{font-size:10px;color:#8a8e95;margin-top:auto}
.institution-card{border:1px solid #e2e4e8;border-radius:12px;background:#fff;padding:20px;min-width:0}.institution-card h2{font-size:16px;font-weight:600;color:#171a1d;margin:0 0 18px;line-height:1.5}
.institution-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:8px -10px 0}
.institution-shortcuts>a{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 2px 6px;text-decoration:none;border-radius:8px;text-align:center;color:#747980;min-width:0}
.institution-shortcuts>a:hover{background:#f5f8ff;color:#0066ff}.institution-shortcuts>a>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf2ff}
.institution-shortcuts img{filter:invert(30%) sepia(96%) saturate(4100%) hue-rotate(212deg) brightness(98%) contrast(110%)}
.institution-shortcuts strong{font-weight:400;font-size:12px;white-space:nowrap}.institution-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.institution-card-heading>span{font-size:11px;color:#969ba3}
#sopOverview .institution-playbooks .sop-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;background:none;border:0;margin:0 -20px}
#sopOverview .institution-playbooks .sop-role-card{padding:18px 20px;gap:8px;border:0;border-top:1px solid #edf0f3;border-radius:0;background:#fff;box-shadow:none}
#sopOverview .institution-playbooks .sop-role-card:nth-child(odd){border-right:1px solid #edf0f3}
#sopOverview .sop-role-number{display:none}#sopOverview .sop-role-card h3{font-size:15px;font-weight:600;color:#30343b;margin:0}
#sopOverview .sop-role-identity p{font-size:11px;color:#92969e;margin:4px 0 0}
#sopOverview .sop-role-topics{min-height:0;margin:0;gap:4px}#sopOverview .sop-role-topics span{font-size:10px;background:#f6f7f9;color:#757b85;padding:3px 5px}
#sopOverview .sop-role-counts{font-size:11px;color:#8a9099;line-height:1.7;margin:6px 0 0}#sopOverview .sop-role-counts b{color:#4a5059}
#sopOverview .sop-role-footer{gap:8px;border-color:#edf0f3;padding-top:9px}#sopOverview .sop-role-footer a{font-size:11px;color:#0066ff;padding:0}#sopOverview .sop-role-footer .rw-role-pending{font-size:11px;line-height:1.5;font-weight:400}
#sopOverview .sop-role-message{font-size:11px;color:#969ba3;line-height:1.6;margin:0}
.institution-data-note{font-size:10px;color:#9299a3;line-height:1.8;margin:14px 0 0}
.institution-empty{display:flex;align-items:center;flex-direction:column;padding:12px 0 18px;text-align:center;gap:10px}.institution-empty img{filter:invert(55%) sepia(97%) saturate(1600%) hue-rotate(105deg) brightness(90%) contrast(101%)}.institution-empty strong{font-size:14px;font-weight:600}.institution-empty p{font-size:11px;color:#9da2aa;margin:0;line-height:1.6}
.institution-task-list{display:flex;flex-direction:column}.institution-task-list>a,.institution-gaps>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #eef0f3;color:#505761;text-decoration:none;font-size:12px}
.institution-task-list strong,.institution-gaps strong{font-size:11px;font-weight:400;color:#878e99;white-space:nowrap}.institution-task-list a:hover,.institution-gaps a:hover{color:#0066ff}.institution-load-note{font-size:12px;color:#8a9099;line-height:1.7}
@media(max-width:1150px){.institution-dashboard{grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr)}.institution-metrics article{padding:14px 12px}.institution-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.institution-brief small{display:none}}
@media(max-width:960px){
 .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:280px;max-height:100dvh;height:100dvh;padding:18px 14px 0;z-index:1000;display:none;background:#f2f3f8;box-shadow:12px 0 40px #1c263b25}
 .workspace-menu-open .sidebar{display:flex}.sidebar .brand{display:flex;flex-shrink:0}.sidebar #workspaceMenuClose{margin:0 0 12px;min-height:36px;border-color:#dfe1e7;color:#50555f}
 .sidebar .sidebar-navigation{overflow:auto;flex:1;min-height:0;padding:16px 0}.sidebar .workspace-nav-parent{min-height:44px}.sidebar .workspace-subnav>a{min-height:44px;padding:12px 9px}.sidebar .workspace-subnav{margin:5px 0 5px 19px;padding:0 0 0 9px;overflow:visible;height:auto;max-height:none}.sidebar .nav-group-heading{display:block}
 .sidebar .account-wrap{flex:0 0 auto;margin:0 -14px;padding:10px 14px}.sidebar .account div{display:block}
 main{margin:8px;padding:0 18px 28px;border-radius:12px}.workspace-topbar{margin:0 0 20px;padding:12px 0;flex-wrap:wrap}.workspace-tools{margin-left:auto}.workspace-tools button:first-child{min-width:0}.workspace-topbar>span{order:3;flex-basis:100%}
 .institution-dashboard{grid-template-columns:1fr}.institution-aside{display:grid;grid-template-columns:1fr 1fr}.institution-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:600px){.institution-profile{align-items:flex-start;gap:12px;margin-bottom:20px}.institution-avatar{width:42px;height:42px;flex-basis:42px;border-radius:10px}.institution-avatar img{width:28px;height:28px}.institution-profile h1{font-size:18px;margin:0 0 8px}.institution-brief{flex-wrap:wrap;gap:4px;padding:8px 10px}.institution-brief p{font-size:11px}.institution-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.institution-metrics article{min-height:115px}.institution-metrics strong{margin:6px 0 10px;font-size:26px}.institution-card{padding:16px}.institution-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 -6px}.institution-aside{display:flex}.institution-card-heading{display:block}.institution-card-heading>span{display:block;margin-top:-10px;margin-bottom:16px}#sopOverview .institution-playbooks .sop-role-grid{grid-template-columns:1fr;margin:0 -16px}#sopOverview .institution-playbooks .sop-role-card{padding:16px;border-right:0}main .view>header h1,#role-workbench .role-intro h1,#after-sales-workbench h1{font-size:21px!important}}
@media(prefers-reduced-motion:reduce){.sidebar .workspace-nav-chevron{transition:none}}

#openInstitutionDemo{background:#0066ff;border-color:#0066ff;color:#fff}body .summary strong{font-family:inherit;font-weight:600}body .summary>div{border:1px solid #e5e6e8;border-radius:10px;padding:20px;background:#fff}

#after-sales-workbench{--ink:#171a1d;--muted:#74777c;--line:#e5e6e8;--canvas:#f7f9fc;--green:#0066ff}
#after-sales-workbench #as-searchform{border-color:#dfe3ea}#after-sales-workbench #as-searchform:focus-within{border-color:#0066ff;box-shadow:0 0 0 3px #e9f2ff}
#role-workbench .rw-queue-filters button[aria-pressed=true] b{color:#0066ff}
.institution-card-heading>a{font-size:11px;text-decoration:none;color:#7e8692;white-space:nowrap}.institution-card-heading>a:hover{color:#0066ff}
@media(min-width:961px){body:has([data-view-panel=management].active:not(.management-team)) .workspace-topbar{position:absolute;top:18px;right:32px;min-height:30px;padding:0;margin:0;border:0}body:has([data-view-panel=management].active:not(.management-team)) .workspace-topbar>span{display:none}.institution-profile{margin-top:42px}}

.institution-title{display:flex;align-items:baseline;gap:14px}.institution-title h1{flex:1}.institution-title button{border:0;background:transparent;color:#8a919c;font-size:11px;padding:4px 0;white-space:nowrap}.institution-title button:hover{color:#0066ff}
/* Override the previous primary-link treatment at the same specificity. */
.sidebar#workspaceNavigation .workspace-subnav>a[aria-current=page],.sidebar#workspaceNavigation .workspace-subnav>a[aria-current=page]:hover{background:#fff!important;color:#0066ff;border:0;box-shadow:none;font-weight:600}
#role-workbench .role-intro-compact .rw-heading-actions button{background:#0066ff;border-color:#0066ff;box-shadow:none;border-radius:6px}#role-workbench .role-intro-compact .rw-heading-actions button:hover{background:#0055d9;border-color:#0055d9}
