/* CIS palette is unchanged. Legacy business reports keep their compact layout. */
/* SAM header geometry, with CIS colors and controls unchanged. */
html .cis-app-shell .cis-topbar{box-sizing:border-box;top:12px;width:calc(100% - 36px);margin:12px 18px 0;display:flex;align-items:center;flex-wrap:nowrap;border-radius:20px;gap:14px;padding:0 clamp(20px,2.4vw,38px);height:68px;min-height:68px;background:var(--ds-surface)!important;box-shadow:var(--elev-3)!important;border-color:var(--line)!important}
html .cis-app-shell .cis-topbar:before,html .cis-app-shell .cis-topbar:after{display:none}
html .cis-app-shell .cis-top-brand{flex-shrink:0}
html .cis-app-shell .cis-top-logo{height:39px}
html .cis-app-shell .cis-top-nav{gap:6px;flex:none;min-width:0;margin-left:28px;align-items:center;align-self:auto;order:0}
html .cis-app-shell .cis-top-nav .cis-top-nav-item{box-sizing:border-box;height:38px;min-height:38px;padding:0 17px;font-size:14px;font-weight:600;white-space:nowrap;border-radius:11px}
html .cis-app-shell .cis-top-nav .cis-top-nav-item.router-link-active{color:var(--brand-text);background:var(--brand-bg);box-shadow:none;border-color:transparent}
html .cis-app-shell .cis-top-actions{gap:10px;flex-shrink:0;margin-left:auto;align-items:center}
html .cis-app-shell .cis-global-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ds-text-muted);border:1px solid var(--line);background:var(--ds-surface);border-radius:9px;width:36px;height:36px;text-decoration:none;flex-shrink:0}
html .cis-app-shell .cis-global-tool[hidden]{display:none!important}
html .cis-app-shell .cis-top-nav-item[hidden]{display:none!important}
html .cis-app-shell .cis-global-tool .ico{width:18px;height:18px}
html .cis-app-shell .cis-global-zai{width:auto;padding:0 10px;color:var(--brand-text);font-size:13px;font-weight:600}
html .cis-app-shell .cis-topbar .cis-top-ai-search-wrap{width:min(220px,18vw);height:38px;min-width:0;max-width:220px}
html .cis-app-shell .cis-topbar .cis-top-ai-search{position:static;width:100%;min-height:38px;height:38px;padding:0 10px;border-radius:9px;box-shadow:none;background:var(--ds-surface-muted)}
html .cis-app-shell .cis-topbar .cis-top-ai-search input{font-size:13px}
html .cis-app-shell .cis-topbar .cis-top-user{gap:7px}
html .cis-app-shell .cis-topbar .cis-top-user b{font-size:13px;max-width:112px;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}
html .cis-app-shell .cis-topbar .cis-top-user .avatar{width:32px;height:32px;font-size:11px;border-radius:9px;box-shadow:none}
html .cis-app-shell .cis-topbar .cis-logout,html .cis-app-shell .cis-topbar .cis-notification-toggle{width:36px;height:36px;min-width:36px;border-radius:9px}
html .cis-app-shell .cis-topbar .cis-locale-switch button{font-size:12px;padding:5px}
html .cis-app-shell .domain-workspace,html .cis-app-shell .domain-directory,html .cis-app-shell .domain-start{max-width:1400px;min-width:0;margin:0 auto;padding:16px 12px 52px;color:var(--zai-ink)}
html .cis-app-shell .domain-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0 22px}
html .cis-app-shell .domain-heading h1,html .cis-app-shell .domain-directory h1{font-size:26px;font-weight:650;letter-spacing:-.5px;line-height:1.35;margin:0 0 8px;color:var(--zai-ink)}
html .cis-app-shell .domain-heading p,html .cis-app-shell .domain-directory header p{font-size:14px;line-height:1.7;color:var(--ds-text-muted);margin:0}
html .cis-app-shell .domain-mobile-switch{display:none}
html .cis-app-shell .domain-tabs{display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);margin:0 0 24px;min-width:0}
html .cis-app-shell .domain-tabs a{position:relative;display:block;text-decoration:none;font-size:14px;font-weight:550;color:var(--ds-text-muted);padding:13px 2px 15px;white-space:nowrap}
html .cis-app-shell .domain-tabs a[aria-current]{color:var(--brand-text)}
html .cis-app-shell .domain-tabs a[aria-current]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#ad2b31;border-radius:2px}
html .cis-app-shell .domain-service-groups{display:grid;grid-template-columns:repeat(var(--domain-groups,3),minmax(0,1fr));gap:20px;align-items:start}
html .cis-app-shell .domain-service-group{border:1px solid var(--line);border-radius:12px;background:var(--ds-surface);min-width:0;overflow:hidden}
html .cis-app-shell .domain-service-group h2{font-size:14px;line-height:1.5;font-weight:650;color:var(--ds-text-secondary);margin:0;padding:18px 20px 10px}
html .cis-app-shell .domain-service-group h2 a{color:inherit;text-decoration:none}
html .cis-app-shell .domain-service{display:flex;align-items:center;gap:12px;padding:17px 20px;text-decoration:none!important;color:var(--zai-ink);min-height:82px;min-width:0;transition:background .15s}
html .cis-app-shell .domain-service:hover{background:var(--ds-surface)}
html .cis-app-shell .domain-service>i{width:36px;height:36px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:var(--ds-surface-muted);color:var(--ds-text-muted);font-style:normal}
html .cis-app-shell .domain-service>i .ico{width:19px;height:19px}
html .cis-app-shell .domain-service>span{flex:1;min-width:0}
html .cis-app-shell .domain-service b{display:block;font-size:15px;font-weight:600;line-height:1.5}
html .cis-app-shell .domain-service small{display:block;font-size:12px;line-height:1.65;color:var(--ds-text-muted);margin-top:3px;overflow-wrap:anywhere}
html .cis-app-shell .domain-service>.ico{width:16px;height:16px;color:var(--ds-text-muted);flex-shrink:0}
html .cis-app-shell .domain-service+.domain-service{border-top:1px solid var(--line)}
html .cis-app-shell .domain-unavailable{margin:0 20px 16px;padding:15px 0 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;font-size:13px;color:var(--ds-text-muted)}
html .cis-app-shell .domain-unavailable b{color:var(--ds-text-muted);font-weight:500}
html .cis-app-shell .domain-unavailable span{margin-left:auto;font-size:12px}
html .cis-app-shell .domain-recent{margin-top:28px;background:var(--ds-surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
html .cis-app-shell .domain-recent header{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
html .cis-app-shell .domain-recent h2{font-size:15px;font-weight:600;margin:0}
html .cis-app-shell .domain-recent header a{font-size:13px;color:var(--ds-text-muted);text-decoration:none;display:flex;gap:6px;align-items:center}
html .cis-app-shell .domain-recent header a .ico{width:14px;height:14px}
html .cis-app-shell .domain-recent-list>a{display:flex;align-items:center;gap:20px;padding:15px 20px;text-decoration:none;color:inherit;border-bottom:1px solid var(--line)}
html .cis-app-shell .domain-recent-list>a:hover{background:var(--ds-surface)}
html .cis-app-shell .domain-recent-list>a>span{min-width:0;flex:1}
html .cis-app-shell .domain-recent-list b{font-size:14px;line-height:1.5;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .cis-app-shell .domain-recent-list small{display:block;font-size:12px;line-height:1.5;color:var(--ds-text-muted);margin-top:3px}
html .cis-app-shell .domain-recent-list time{font-size:12px;color:var(--ds-text-muted)}
html .cis-app-shell .domain-recent-list em{font-size:12px;color:var(--ds-text-muted);font-style:normal;background:var(--ds-surface-muted);padding:4px 8px;border-radius:5px;max-width:160px;overflow-wrap:anywhere}
html .cis-app-shell .domain-recent-list .ico{width:15px;height:15px;color:var(--ds-text-muted)}
html .cis-app-shell .domain-empty{padding:32px 20px;margin:0;font-size:14px;line-height:1.8;color:var(--ds-text-muted)}
html .cis-app-shell .domain-scope{font-size:12px;line-height:1.6;color:var(--ds-text-muted);margin:0;padding:12px 20px}
html .cis-app-shell .domain-report-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:0 0 14px}
html .cis-app-shell .domain-report-toolbar label{display:flex;gap:12px;align-items:center;min-width:0;font-size:13px;color:var(--ink-3)}
html .cis-app-shell .domain-report-toolbar select{font:inherit;font-size:14px;color:var(--zai-ink-2);background:var(--ds-surface);border:1px solid var(--line);border-radius:8px;padding:10px 34px 10px 12px;min-width:260px;max-width:min(550px,60vw);height:42px}
html .cis-app-shell .domain-report-toolbar .btn{font-size:13px;white-space:nowrap;min-height:40px}
html .cis-app-shell .domain-reports{min-width:0}
html .cis-app-shell .domain-workspace .saile-report-output{min-width:0}
html .cis-app-shell .domain-materials.workbench-personal-expenses{background:var(--ds-surface);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:none;margin:0}
html .cis-app-shell .domain-materials>header{display:block;margin:0 0 20px}
html .cis-app-shell .domain-materials>header h3{font-size:16px;margin:0 0 6px}
html .cis-app-shell .domain-materials>header p{font-size:13px;color:var(--ds-text-muted)}
html .cis-app-shell .domain-materials .workbench-personal-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html .cis-app-shell .domain-materials .workbench-personal-expense-source{min-height:104px;padding:18px;border-radius:10px;box-shadow:none}
html .cis-app-shell .domain-materials .workbench-personal-expense-source b{font-size:15px}
html .cis-app-shell .domain-materials .workbench-personal-expense-source small,html .cis-app-shell .domain-materials .workbench-personal-expense-source em{font-size:12px}
html .cis-app-shell .domain-other-sources{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
html .cis-app-shell .domain-other-sources summary{font-size:13px;color:var(--ds-text-muted);cursor:pointer}
html .cis-app-shell .domain-other-sources[open] summary{margin-bottom:16px}
html .cis-app-shell .domain-other-sources .workbench-personal-expense-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html .cis-app-shell .domain-start>.domain-service-group{margin-bottom:18px}
html .cis-app-shell .domain-start-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
html .cis-app-shell .domain-start-services .domain-service{border:0;min-height:68px}
html .cis-app-shell .domain-directory>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
html .cis-app-shell .domain-directory>div>a{display:flex;align-items:center;gap:16px;border:1px solid var(--line);background:white;border-radius:12px;padding:22px;color:var(--zai-ink);text-decoration:none}
html .cis-app-shell .domain-directory i{color:var(--brand-text)}
html .cis-app-shell .domain-directory span{flex:1;min-width:0}
html .cis-app-shell .domain-directory b{font-size:17px;display:block}
html .cis-app-shell .domain-directory small{font-size:13px;color:var(--ds-text-muted);display:block;margin-top:8px;line-height:1.7}
html .cis-app-shell .domain-directory a>.ico{width:16px;color:var(--ds-text-muted)}
html .cis-app-shell [data-dashboard]{height:auto;min-height:0;align-content:start;grid-auto-rows:max-content}
html .cis-app-shell .cis-workbench-overview{display:block!important;height:auto!important;min-height:0!important}
html .cis-app-shell .cis-workbench-hero{min-height:0;height:auto;margin-top:22px}
html .cis-app-shell .cis-workbench-quickbar{height:auto;min-height:64px}
html .cis-app-shell .cis-workbench-prefill{width:min(380px,48%);flex:none;min-width:0}
html .cis-app-shell .cis-workbench-prefill>span{display:grid;gap:3px;min-width:0}
html .cis-app-shell .cis-workbench-prefill b,html .cis-app-shell .cis-workbench-prefill small{display:block;overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis}
html .cis-app-shell .domain-workspace a:focus-visible,html .cis-app-shell .domain-start a:focus-visible,html .cis-app-shell .domain-directory a:focus-visible,html .cis-app-shell .domain-workspace select:focus-visible,html .cis-app-shell .cis-topbar a:focus-visible{outline:2px solid #ad2b31;outline-offset:3px}
@media(max-width:1180px){
  html .cis-app-shell .cis-topbar{width:calc(100% - 24px);margin-inline:12px}
  html .cis-app-shell .cis-top-nav{margin-left:14px}
  html .cis-app-shell .cis-top-nav .cis-top-nav-item{padding-inline:12px}
  html .cis-app-shell .cis-topbar .cis-top-ai-search-wrap{width:min(156px,15vw)}
}
@media(min-width:768px) and (max-width:1100px){
  html .cis-app-shell .cis-topbar{top:8px;margin-top:8px;gap:8px;padding-inline:14px}
  html .cis-app-shell .cis-top-nav{margin-left:6px;gap:3px}
  html .cis-app-shell .cis-top-nav .cis-top-nav-item{padding-inline:9px}
  html .cis-app-shell .cis-topbar .cis-top-actions{gap:6px}
  html .cis-app-shell .cis-topbar .cis-top-user{min-width:32px;width:32px}
  html .cis-app-shell .cis-topbar .cis-top-user>span:last-child{display:none}
  html .cis-app-shell .cis-topbar .cis-top-ai-search-wrap{width:112px}
  html .cis-app-shell .cis-topbar .cis-top-ai-search::after{display:none}
}
@media(min-width:768px) and (max-width:820px){
  html .cis-app-shell .cis-topbar .cis-top-ai-search-wrap{width:96px}
  html .cis-app-shell .cis-top-nav-zai kbd{display:none}
  html .cis-app-shell .cis-topbar .cis-top-user{display:none}
}
@media(max-width:1000px){
  html .cis-app-shell .domain-service-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  html .cis-app-shell .domain-start-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  html .cis-app-shell .domain-other-sources .workbench-personal-expense-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
  html .cis-app-shell .cis-topbar{top:6px;width:calc(100% - 12px);margin:6px 6px 0;padding:0 14px;gap:8px;height:58px;min-height:58px;border-radius:16px}
  html .cis-app-shell .cis-topbar>.cis-top-nav{display:none}
  html .cis-app-shell .cis-topbar .cis-top-actions{gap:7px;margin-left:auto}
  html .cis-app-shell .cis-topbar .cis-top-user,html .cis-app-shell .cis-topbar .cis-top-ai-search-wrap{display:none}
  html .cis-app-shell .cis-topbar .cis-global-zai{display:none}
  html .cis-app-shell .cis-topbar .cis-top-logo{max-width:50px}
  html .cis-app-shell .domain-workspace,html .cis-app-shell .domain-directory,html .cis-app-shell .domain-start{padding:8px 0 30px}
  html .cis-app-shell .domain-heading{display:block;padding:8px 2px 12px}
  html .cis-app-shell .domain-heading h1,html .cis-app-shell .domain-directory h1{font-size:23px}
  html .cis-app-shell .domain-heading p{font-size:13px}
  html .cis-app-shell .domain-mobile-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--ds-text-muted);margin-top:18px}
  html .cis-app-shell .domain-mobile-switch select{font:inherit;font-size:13px;border:1px solid var(--line);background:white;border-radius:7px;padding:8px;color:var(--ds-text-muted);max-width:68%}
  html .cis-app-shell .domain-tabs{gap:24px;margin-bottom:18px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  html .cis-app-shell .domain-tabs a{font-size:13px;flex-shrink:0;padding:13px 0}
  html .cis-app-shell .domain-service-groups,html .cis-app-shell .domain-start-services,html .cis-app-shell .domain-directory>div{grid-template-columns:1fr;gap:14px}
  html .cis-app-shell .domain-service{padding:15px 16px}
  html .cis-app-shell .domain-service-group h2{padding:15px 16px 6px}
  html .cis-app-shell .domain-recent{margin-top:20px}
  html .cis-app-shell .domain-recent header{padding:16px}
  html .cis-app-shell .domain-recent header a{font-size:12px}
  html .cis-app-shell .domain-recent-list>a{padding:14px 16px;gap:10px}
  html .cis-app-shell .domain-recent-list time{display:none}
  html .cis-app-shell .domain-recent-list em{max-width:85px}
  html .cis-app-shell .domain-recent-list>a>.ico{display:none}
  html .cis-app-shell .domain-empty{font-size:13px;padding:24px 16px}
  html .cis-app-shell .domain-report-toolbar{flex-wrap:wrap;gap:10px}
  html .cis-app-shell .domain-report-toolbar label{flex:1;min-width:180px}
  html .cis-app-shell .domain-report-toolbar label>span{display:none}
  html .cis-app-shell .domain-report-toolbar select{min-width:0;max-width:100%;width:100%;font-size:13px}
  html .cis-app-shell .domain-report-toolbar .btn{padding:9px 12px;font-size:12px}
  html .cis-app-shell .domain-materials.workbench-personal-expenses{padding:18px}
  html .cis-app-shell .domain-materials .workbench-personal-expense-grid{grid-template-columns:1fr}
}
html .cis-app-shell>.page>.domain-workspace,html .cis-app-shell>.page>.domain-directory,html .cis-app-shell>.page>.domain-start{max-width:1400px!important;margin-inline:auto!important}
html .cis-app-shell>.page:has(>.domain-workspace),html .cis-app-shell>.page:has(>.domain-directory),html .cis-app-shell>.page:has(>.domain-start){padding-top:16px!important}

/* SAM-style workbench structure, using only the existing CIS red/teal palette. */
html .cis-app-shell [data-dashboard]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
html .cis-app-shell .cis-workbench-overview{padding:20px!important;border-radius:18px!important}
html .cis-app-shell .cis-workbench-hero{margin:0 0 14px;padding-bottom:14px;align-items:center}
html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links{display:flex;gap:8px}
html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links>a{display:flex;align-items:center;gap:14px;min-height:42px;padding:8px 12px;border-radius:10px}
html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links span{font-size:12px}
html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links strong{font-size:19px}
html .cis-app-shell .cis-workbench-hero h1{font-size:25px}
html .cis-app-shell .cis-workbench-hero p{display:none}
html .cis-app-shell .workbench-primary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html .cis-app-shell .workbench-primary-card{grid-template-columns:56px minmax(0,1fr) auto 30px;gap:18px;min-height:152px;padding:24px;border-radius:16px}
html .cis-app-shell .workbench-primary-card>i{width:56px;height:56px;border-radius:16px}
html .cis-app-shell .workbench-primary-card>i .ico{width:24px;height:24px}
html .cis-app-shell .workbench-primary-card>span>b{font-size:20px}
html .cis-app-shell .workbench-primary-card>span>small{display:none}
html .cis-app-shell .workbench-primary-card>span>em{font-size:12px;margin-top:7px}
html .cis-app-shell .cis-workbench-card-metric>strong{font-size:48px;font-weight:700;letter-spacing:-1.5px}
html .cis-app-shell .cis-service-catalog{min-width:0;margin:0;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--ds-surface);box-shadow:var(--elev-3)}
html .cis-app-shell .cis-service-catalog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px}
html .cis-app-shell .cis-service-catalog>header span{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--brand-text)}
html .cis-app-shell .cis-service-catalog h2{font-size:23px;line-height:1.4;color:var(--text-neutral-strong3);font-weight:650;margin:5px 0 0}
html .cis-app-shell .cis-service-search{display:flex;align-items:center;gap:10px;flex:none;width:270px;max-width:100%;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:var(--ds-surface)}
html .cis-app-shell .cis-service-search>.ico{width:17px;height:17px;color:var(--ds-text-muted);flex:none}
html .cis-app-shell .cis-service-search input{width:100%;min-width:0;height:42px;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:var(--text-neutral-strong3);font:inherit;font-size:14px;box-shadow:none}
html .cis-app-shell .cis-service-search:focus-within{border-color:#008881;box-shadow:0 0 0 3px rgba(0, 143, 138, 0.08)}
html .cis-app-shell [data-service-grid]{display:grid;gap:12px}
html .cis-app-shell .cis-service-group{min-width:0;border:1px solid var(--line);border-radius:14px;padding:16px;background:linear-gradient(135deg,#ffffff,#ffffff)}
html .cis-app-shell .cis-service-group>header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
html .cis-app-shell .cis-service-number{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;flex:none;color:var(--brand-text);background:var(--brand-bg);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
html .cis-app-shell .cis-service-group>header>div{flex:1;min-width:0}
html .cis-app-shell .cis-service-group h3{font-size:17px;line-height:1.5;color:var(--text-neutral-strong3);margin:0;font-weight:650}
html .cis-app-shell .cis-service-group p{font-size:12px;line-height:1.6;color:var(--ds-text-muted);margin:3px 0 0}
html .cis-app-shell .cis-service-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html .cis-app-shell .cis-service-card{position:relative;min-width:0;min-height:88px;display:grid;grid-template-columns:30px minmax(0,1fr) 16px;grid-template-areas:"icon title arrow" "icon detail arrow";align-content:center;align-items:center;gap:3px 10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--ds-surface);color:var(--text-neutral-strong3);text-decoration:none;box-shadow:0 2px 6px rgba(21, 59, 67, 0.012);transition:border-color .15s,box-shadow .15s}
html .cis-app-shell .cis-service-card>i{grid-area:icon;display:grid;place-items:center;width:30px;height:30px;margin:0;border-radius:9px;background:var(--ds-surface-muted);color:var(--ds-accent);font-style:normal}
html .cis-app-shell .cis-service-card>i .ico{width:16px;height:16px}
html .cis-app-shell .cis-service-card>b{grid-area:title;font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
html .cis-app-shell .cis-service-card>span{grid-area:detail;font-size:12px;line-height:1.5;color:var(--ds-text-muted);margin:0;overflow-wrap:anywhere}
html .cis-app-shell .cis-service-card>em{grid-area:arrow;display:grid;place-items:center;width:16px;height:20px;color:var(--ds-text-muted)}
html .cis-app-shell .cis-service-card>em .ico{width:13px;height:13px}
html .cis-app-shell .cis-service-cards:has(>.cis-service-card:only-child){grid-template-columns:minmax(0,1fr)}
html .cis-app-shell .cis-service-card:only-child{min-height:76px}
html .cis-app-shell .cis-service-card:hover{border-color:#accdca;box-shadow:var(--elev-3)}
html .cis-app-shell .cis-service-card:focus-visible,html .cis-app-shell .cis-service-group a:focus-visible{outline:2px solid #008881;outline-offset:3px}
html .cis-app-shell .cis-service-group>footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
html .cis-app-shell .cis-service-group>footer>a{display:inline-flex;align-items:center;gap:6px;color:var(--text-teal-strong2);text-decoration:none;font-size:12px}
html .cis-app-shell .cis-service-group>footer .ico{width:14px;height:14px}
html .cis-app-shell .cis-service-group>footer>span{font-size:12px;color:var(--ds-text-muted)}
html .cis-app-shell .cis-service-empty{font-size:14px;padding:30px;text-align:center;color:var(--ds-text-muted)}
@media(min-width:1700px){html .cis-app-shell .cis-service-cards{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(min-width:768px){html .cis-app-shell .cis-service-cards:has(>.cis-service-card:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1179px){html .cis-app-shell .cis-service-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){
 html .cis-app-shell [data-dashboard]{gap:14px!important}
 html .cis-app-shell .cis-workbench-overview{padding:16px!important}
 html .cis-app-shell .cis-workbench-hero{margin:0 0 12px;gap:12px;align-items:stretch}
 html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links{width:100%;gap:6px}
 html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links>a{flex:1;min-width:0;justify-content:space-between;gap:8px;padding:8px;min-height:38px}
 html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links span{font-size:11px}
 html .cis-app-shell .cis-workbench-hero .cis-workbench-summary-links strong{font-size:17px}
 html .cis-app-shell .cis-workbench-hero h1{font-size:21px}
 html .cis-app-shell .workbench-primary-cards{grid-template-columns:1fr;gap:10px}
 html .cis-app-shell .workbench-primary-card{grid-template-columns:46px minmax(0,1fr) auto;gap:13px;min-height:106px;padding:18px 16px}
 html .cis-app-shell .workbench-primary-card>i{width:46px;height:46px;border-radius:13px}
 html .cis-app-shell .workbench-primary-card>span>b{font-size:18px}
 html .cis-app-shell .cis-workbench-card-metric>strong{font-size:38px}
 html .cis-app-shell .workbench-primary-card>strong{display:none!important}
 html .cis-app-shell .cis-service-catalog{padding:16px;border-radius:16px}
 html .cis-app-shell .cis-service-catalog>header{flex-direction:column;align-items:stretch;gap:14px;padding-bottom:16px}
 html .cis-app-shell .cis-service-catalog h2{font-size:20px}
 html .cis-app-shell .cis-service-search{width:100%;box-sizing:border-box}
 html .cis-app-shell .cis-service-group{padding:14px;border-radius:12px}
 html .cis-app-shell .cis-service-group>header{align-items:flex-start;gap:9px}
 html .cis-app-shell .cis-service-group h3{font-size:16px}
 html .cis-app-shell .cis-service-group p{font-size:12px}
 html .cis-app-shell .cis-service-number{display:none}
 html .cis-app-shell .cis-service-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 html .cis-app-shell .cis-service-card{min-height:92px;padding:10px;grid-template-columns:24px minmax(0,1fr);grid-template-areas:"icon title" "detail detail";gap:7px}
 html .cis-app-shell .cis-service-card>i{width:24px;height:24px;border-radius:7px}
 html .cis-app-shell .cis-service-card>em{display:none}
 html .cis-app-shell .cis-service-card>b{font-size:13px}
 html .cis-app-shell .cis-service-card>span{font-size:11px}
 html .cis-app-shell .cis-service-group>footer{gap:12px}
}
@media(prefers-reduced-motion:reduce){html .cis-app-shell .cis-service-card{transition:none}}

/* Read-only preparation stays compact and uses the existing CIS form palette. */
.formx .cis-expense-prefill{margin:0 0 16px;padding:20px;background:var(--ds-surface);border:1px solid var(--line,#e1e7ea);border-radius:16px;min-width:0}
.formx .cis-expense-prefill h2{margin:0 0 6px;font-size:18px;line-height:1.4}
.formx .cis-expense-prefill p{margin:0 0 14px;font-size:13px;line-height:1.7;color:var(--muted,#63767d)}
.formx .cis-prefill-table{max-height:300px;overflow:auto;border:1px solid var(--line,#e1e7ea);border-radius:10px}
.formx .cis-prefill-table table{width:100%;min-width:620px;border-collapse:collapse;text-align:left;font-size:13px}
.formx .cis-prefill-table th{position:sticky;top:0;background:var(--ds-surface-muted);font-size:12px;color:var(--ds-text-secondary);z-index:1}
.formx .cis-prefill-table td,.formx .cis-prefill-table th{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.formx .cis-prefill-table td:last-child{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.formx .cis-prefill-table small{display:block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ds-text-muted);margin-top:3px}
.formx .cis-prefill-table input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--brand,#b91f2b)}
.formx .cis-expense-prefill footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.formx .cis-expense-prefill footer>span{flex:1;font-size:13px;color:var(--ds-text-muted)}
.formx .cis-expense-prefill button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.formx .cis-expense-prefill>details{margin-top:12px;font-size:12px;line-height:1.8;color:var(--ds-text-muted)}
.formx .cis-expense-prefill>details>summary{cursor:pointer}
.formx .cis-claim-first-look{margin:16px 0;border:1px solid rgba(45,86,190,.24);border-radius:16px;background:linear-gradient(125deg,rgba(241,246,255,.86),rgba(255,255,255,.97));overflow:hidden}.formx .cis-claim-first-look.err{border-color:rgba(195,47,58,.35);background:var(--err-bg,#fff2f3)}.formx .cis-claim-first-look>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(45,86,190,.14)}.formx .cis-claim-first-look>header>div:first-child{display:flex;align-items:center;gap:10px}.formx .cis-claim-first-look>header>div:first-child>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--brand,#2353b8);color:#fff;font-size:10px;font-weight:850}.formx .cis-claim-first-look h2{margin:0;color:var(--ds-text,#193447);font-size:14px}.formx .cis-claim-first-look header p{margin:2px 0 0;color:var(--ds-text-muted,#63767d);font-size:11px}.formx .cis-claim-first-look-body{display:grid;gap:9px;padding:13px 16px}.formx .cis-claim-first-look-body>p{margin:0;color:var(--ds-text-muted,#63767d);font-size:12px;line-height:1.65}.formx .cis-claim-first-look article{padding:10px;border:1px solid rgba(210,220,237,.92);border-radius:10px;background:rgba(255,255,255,.8)}.formx .cis-claim-first-look article>header{padding:0 0 7px;border:0}.formx .cis-claim-first-look article>header b{font-size:12px}.formx .cis-claim-first-look article>header em{padding:3px 7px;border-radius:999px;font-size:10px;font-style:normal}.formx .cis-claim-first-look article>header em.ok{background:#e6f6ed;color:#16754a}.formx .cis-claim-first-look article>header em.warn{background:#fff2da;color:#9a5b00}.formx .cis-claim-first-look article>p{margin:0 0 7px;font-size:12px;line-height:1.55}.formx .cis-claim-first-look ul{display:grid;gap:5px;margin:0;padding:0;list-style:none}.formx .cis-claim-first-look li{display:grid;grid-template-columns:58px minmax(0,1fr);gap:7px;padding:6px 7px;border-radius:7px;background:rgba(248,250,254,.9);font-size:11px}.formx .cis-claim-first-look li.high b{color:#b4232c}.formx .cis-claim-first-look li.medium b{color:#a56500}.formx .cis-claim-first-look li.low b{color:#2353b8}.formx .cis-claim-first-look li small{grid-column:2;color:var(--ds-text-muted,#63767d);overflow-wrap:anywhere}.formx .cis-claim-first-look>footer{padding:9px 16px;border-top:1px solid rgba(45,86,190,.12);color:var(--ds-text-muted,#63767d);font-size:11px;line-height:1.5}
@media(max-width:640px){.formx .cis-expense-prefill{padding:14px}.formx .cis-expense-prefill footer>.btn-pri{width:100%}}
.formx .cis-claim-first-look .cis-claim-sources{margin:0 0 8px;color:var(--ds-text-muted,#63767d);font-size:11px;line-height:1.6}
.formx .cis-claim-first-look .cis-claim-review-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px dashed rgba(45,86,190,.18)}.formx .cis-claim-first-look .cis-claim-review-actions span{margin-right:auto;color:var(--ds-text-muted,#63767d);font-size:11px}.formx .cis-claim-first-look .cis-claim-review-actions .btn{padding:5px 8px;font-size:11px}
.formx .applause-spirit-recommendation{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;margin:10px 0 0;padding:10px 12px;border:1px solid rgba(45,86,190,.2);border-radius:10px;background:#f6f8ff}.formx .applause-spirit-recommendation.warn{border-color:rgba(181,112,0,.3);background:#fff9ed}.formx .applause-spirit-recommendation b{font-size:11px;color:var(--ds-text-muted,#63767d)}.formx .applause-spirit-recommendation span{font-size:12px;font-weight:750;color:var(--ds-text,#193447)}.formx .applause-spirit-recommendation p,.formx .applause-spirit-recommendation small{grid-column:1/-1;margin:0;color:var(--ds-text-muted,#63767d);font-size:11px;line-height:1.55}
.formx .applause-spirit-recommendation .applause-spirit-decision{color:#127451;font-weight:700}.formx .applause-spirit-override{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;margin-top:4px;padding-top:9px;border-top:1px dashed rgba(45,86,190,.2)}.formx .applause-spirit-override label{grid-column:1/-1;color:var(--ds-text,#193447);font-size:11px;font-weight:700}.formx .applause-spirit-override label em{color:#b42318;font-style:normal}.formx .applause-spirit-override textarea{min-height:58px;padding:8px 9px;border:1px solid rgba(45,86,190,.22);border-radius:8px;background:#fff;color:var(--ds-text,#193447);font:inherit;line-height:1.5;resize:vertical}.formx .applause-spirit-override textarea:focus{border-color:#2d56be;outline:0;box-shadow:0 0 0 3px rgba(45,86,190,.1)}.formx .applause-spirit-override .btn{align-self:end;padding:7px 9px;font-size:11px}
