/* Desktop uses the three unchanged Noveum.html stylesheets. Compact metrics come
   from mobile/src/shell/{shell-styles,launcher-styles}.ts, not a new UI design.
   1100px: existing launcher minimum; 700px: existing app two-column threshold. */
body.shared-shell { min-width: 0; overflow: hidden; }
body.shared-shell #shellCompact [hidden] { display: none !important; }
body.shared-shell #shellCompact .main { min-width: 0; }
body.shared-shell #shellCompact .sidebar-inner { width: 100%; min-width: 0; overflow-x: hidden; }
body.shared-shell #shellCompact .profile-card { width: 100%; text-align: left; }
/* These are disabled catalog labels, not productive launch controls or grants. */
body.shared-shell #shellCompact #shellSidebarModules .module-entry { display: flex !important; }
.shared-shell #shellCompact #shellSidebarModules { display: grid; gap: 4px; }
.shared-shell #shellCompact .profile-name, .shared-shell #shellCompact .profile-role { display: block; overflow-wrap: anywhere; }
body.shared-shell #shellCompact .shell-content { overflow: auto; min-height: 0; padding: 20px; }
.shared-shell #shellCompact #shellHome, .shared-shell #shellCompact .shell-account { flex-shrink: 0; }
.shared-shell #shellCompact .shell-notice { background: #fff8e6; border: 1px solid #eed399; border-radius: 8px; padding: 8px 12px; margin: 0 0 16px; font-size: 12px; line-height: 1.5; }
.shared-shell #shellCompact .shell-chip { display: inline-flex; align-items: center; border: 1px solid #cde1e4; border-radius: 99px; padding: 5px 10px; font-size: 11px; background: #eff8f7; color: #0f655f; white-space: nowrap; }
.shared-shell #shellCompact .shell-chip.is-danger { background: #fff2f5; color: #a61b38; border-color: #f0c5cc; }
.shared-shell #shellCompact .shell-mobile-brand, .shared-shell #shellCompact .shell-mobile-label, .shared-shell #shellCompact .shell-mobile-intro, .shared-shell #shellCompact .shell-tabs { display: none; }
.shared-shell #shellCompact .shell-tenant-badge { display: inline-block; margin-top: 14px; border-radius: 8px; background: #dfecef; padding: 6px 10px; color: #486672; font-size: 12px; overflow-wrap: anywhere; }
.shared-shell #shellCompact .shell-empty { margin: 16px 0; color: #647b87; font-size: 13px; line-height: 1.6; }
body.shared-shell #shellCompact .shell-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .88fr); }
body.shared-shell #shellCompact .shell-overview .launcher-overview-card { min-height: 260px; }
.shared-shell #shellCompact .shell-activity-lock { margin-left: auto; width: 18px; flex-shrink: 0; }
body.shared-shell #shellCompact .shell-workday .shell-activity { grid-template-columns: 40px minmax(0, 1fr) 16px; opacity: .8; }
body.shared-shell #shellCompact .shell-workday .shell-activity > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.shared-shell #shellCompact svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shared-shell #shellCompact .shell-activity-lock svg { width: 16px; height: 16px; }
.shared-shell #shellCompact .shell-module-dock { display: none; margin: 20px 0; background: linear-gradient(135deg, #061722, #092631 68%, #0a2a34); border: 1px solid #244650; border-radius: 16px; color: #dce9ed; }
.shared-shell #shellCompact .shell-module-dock.is-expanded { display: block; }
.shared-shell #shellCompact .shell-dock-inner { padding: 15px 22px 13px; }
.shared-shell #shellCompact .shell-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 7px 13px; border-bottom: 1px solid #17343e; }
.shared-shell #shellCompact .shell-dock-head h2 { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.shared-shell #shellCompact .shell-dock-head p { margin: 4px 0 0; font-size: 10px; color: #76939e; }
.shared-shell #shellCompact .shell-dock-head .shell-chip { border-color: #246b69; background: #103a40; color: #8ce7dd; font-size: 9px; }
.shared-shell #shellCompact .shell-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px 0 5px; }
.shared-shell #shellCompact .shell-module { display: flex; align-items: center; gap: 11px; position: relative; min-width: 0; min-height: 63px; padding: 7px 9px 7px 15px; border: 1px solid #294650; border-radius: 12px; background: #132f3a; }
.shared-shell #shellCompact .shell-module::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--module-color); }
.shared-shell #shellCompact .shell-module-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #163641; border: 1px solid var(--module-color); color: white; }
.shared-shell #shellCompact .shell-module-icon svg { width: 18px; height: 18px; }
.shared-shell #shellCompact .shell-module-copy { min-width: 0; flex: 1; }
.shared-shell #shellCompact .shell-module-name { display: block; color: #dce9ed; font-size: 13px; line-height: 17px; overflow-wrap: anywhere; }
.shared-shell #shellCompact .shell-module-detail { display: block; margin-top: 3px; font-size: 10px; line-height: 13px; color: #76939e; }
.shared-shell #shellCompact .shell-module-lock { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #404040; border-radius: 9px; background: #222; color: #a7a7a7; }
.shared-shell #shellCompact .shell-module-lock svg { width: 14px; height: 14px; }
.shared-shell #shellCompact .shell-module.is-locked { opacity: .68; border-color: transparent; background: transparent; }
.shared-shell #shellCompact .shell-module.is-locked::before { top: 19px; bottom: 19px; background: #7e7e7e; opacity: .32; }
.shared-shell #shellCompact .shell-module.is-locked .shell-module-icon { background: #202b32; border-color: #565b60; color: #a7a7a7; }
.shared-shell #shellCompact .shell-module.is-locked .shell-module-name { color: #a0a0a0; font-weight: 600; }
.shared-shell #shellCompact .shell-dock-foot { margin: 0; padding: 8px 7px 0; border-top: 1px solid #17343e; color: #698791; font-size: 10px; line-height: 1.5; }
.shared-shell #shellCompact .shell-account, .shared-shell #shellCompact .shell-agent { margin-top: 20px; padding: 16px; background: white; border: 1px solid #d7e5e9; border-radius: 12px; font-size: 13px; }
.shared-shell #shellCompact .shell-account summary { cursor: pointer; font-weight: 700; line-height: 2; }
.shared-shell #shellCompact .shell-profile-summary { display: flex; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.shared-shell #shellCompact .shell-context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.shared-shell #shellCompact dt { color: #647b87; font-size: 12px; }
.shared-shell #shellCompact dd { margin: 5px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.shared-shell #shellCompact .shell-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shared-shell #shellCompact .shell-agent > div { display: flex; align-items: center; gap: 12px; }
.shared-shell #shellCompact .shell-agent h2 { margin: 0; font-size: 16px; }
.shared-shell #shellCompact .shell-agent p { font-size: 12px; color: #647b87; }
.shared-shell #shellCompact .btn { min-height: 44px; padding: 9px 14px; border: 1px solid #c8dfe2; border-radius: 8px; background: white; color: #173c49; font: inherit; font-size: 13px; }
.shared-shell #shellCompact .btn.primary { color: white; background: #087f79; border-color: #087f79; }
.shared-shell #shellCompact button:disabled { cursor: not-allowed; }
.shared-shell #shellCompact .btn:disabled { opacity: .55; }
.shared-shell #shellCompact .topbar { gap: 12px; }
.shared-shell #shellCompact .topbar-actions { gap: 8px; }
@media (min-width: 1100px) and (max-width: 1380px) {
  body.shared-shell #shellCompact .shell-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.shared-shell #shellCompact .shell-workday { grid-column: 1 / -1; }
  body.shared-shell #shellCompact .shell-workday .shell-activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  body.shared-shell { min-width: 0; background: #eef5f6; }
  body.shared-shell #shellCompact { display: block; width: 100%; height: 100dvh; }
  body.shared-shell #shellCompact .sidebar, body.shared-shell #shellCompact .shell-desktop-only, .shared-shell #shellCompact .shell-desktop-label { display: none; }
  body.shared-shell #shellCompact .main { display: flex; height: 100%; flex-direction: column; min-height: 0; }
  body.shared-shell #shellCompact .topbar { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; flex: 0 0 auto; height: auto; min-height: 67px; padding: max(4px, env(safe-area-inset-top)) 20px 5px; border-bottom: 2px solid #39d6c4; background: linear-gradient(103deg, #061722 46%, #092831 46%, #123f49); box-shadow: none; }
  body.shared-shell #shellCompact .topbar::after, body.shared-shell #shellCompact .topbar-title { display: none; }
  body.shared-shell #shellCompact .topbar-actions { display: flex; min-width: 0; gap: 6px; }
  .shared-shell #shellCompact .shell-platform { display: none; }
  .shared-shell #shellCompact .shell-mobile-brand { display: flex; flex-shrink: 0; align-items: center; min-height: 48px; padding: 0; background: none; border: 0; cursor: pointer; }
  .shared-shell #shellCompact .shell-mobile-brand img { width: 158px; height: 37px; object-fit: contain; }
  body.shared-shell #shellCompact .topbar .shell-chip { padding: 4px 7px; background: #103a40; border-color: #246b69; color: #8ce7dd; font-size: 9px; }
  .shared-shell #shellCompact .topbar .btn { padding: 8px; font-size: 11px; }
  body.shared-shell #shellCompact .shell-content { flex: 1; padding: 0 0 30px; width: 100%; background: #eef5f6; }
  .shared-shell #shellCompact .shell-notice { margin: 12px 22px 0; font-size: 10px; padding: 6px 9px; }
  body.shared-shell #shellCompact .shell-welcome { width: 100%; max-width: 940px; padding: 0 22px; margin: 24px auto 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
  body.shared-shell #shellCompact .shell-welcome::before, body.shared-shell #shellCompact .shell-welcome .launcher-welcome-kicker::before { display: none; }
  body.shared-shell #shellCompact .shell-welcome .launcher-workspace-head { padding: 0; margin: 0; border: 0; }
  body.shared-shell #shellCompact .shell-welcome .launcher-welcome-kicker { color: #13877b; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; }
  body.shared-shell #shellCompact .shell-welcome h1 { margin: 8px 0 0; font-size: 30px; line-height: 34px; color: #102530; font-weight: 900; letter-spacing: -.8px; }
  body.shared-shell #shellCompact .shell-welcome .shell-mobile-intro { display: block; margin: 9px 0 0; color: #647b87; font-size: 13px; line-height: 19px; }
  body.shared-shell #shellCompact .shell-overview { display: block; max-width: 940px; padding: 0 22px; margin: 27px auto 0; }
  body.shared-shell #shellCompact .shell-workday { min-height: 0 !important; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
  body.shared-shell #shellCompact .shell-workday .launcher-overview-heading-icon { display: none !important; }
  body.shared-shell #shellCompact .shell-workday .launcher-overview-head { min-height: 0; margin: 0 0 11px; padding: 0; }
  .shared-shell #shellCompact .shell-mobile-label { display: inline; }
  body.shared-shell #shellCompact .shell-workday .launcher-overview-heading-copy .shell-desktop-label { display: none; }
  body.shared-shell #shellCompact .shell-workday h2 { color: #3f606b; font-size: 11px; letter-spacing: 1.5px; font-weight: 800; text-transform: uppercase; }
  body.shared-shell #shellCompact .shell-workday .shell-activity-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.shared-shell #shellCompact .shell-workday .shell-activity { display: flex; gap: 11px; min-height: 82px; padding: 13px; border-radius: 18px; border: 1px solid #dce7e9; background: #f2f6f7; text-align: left; opacity: 1; }
  body.shared-shell #shellCompact .shell-workday .shell-activity .launcher-workspace-action-icon { width: 45px; height: 45px; flex: 0 0 45px; border: 0; border-radius: 15px; background: #e1f2ee; color: #10766d; }
  body.shared-shell #shellCompact .shell-workday .shell-activity small { color: #17323f; font-size: 14px; font-weight: 800; text-transform: none; letter-spacing: 0; }
  body.shared-shell #shellCompact .shell-workday .shell-activity em { display: block; margin-top: 3px; color: #71858b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.shared-shell #shellCompact .shell-workday .shell-activity > span:nth-child(2) { min-width: 0; flex: 1; }
  body.shared-shell #shellCompact .shell-module-dock { display: block; margin: 27px 0 0; border-radius: 0; border-left: 0; border-right: 0; }
  .shared-shell #shellCompact .shell-dock-inner { max-width: 940px; margin: auto; }
  .shared-shell #shellCompact .shell-modules { grid-template-columns: 1fr; }
  .shared-shell #shellCompact .shell-module[data-compact="false"] { display: none; }
  .shared-shell #shellCompact .shell-agent, .shared-shell #shellCompact .shell-account { max-width: 896px; margin: 20px 22px 0; }
  .shared-shell #shellCompact .shell-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-shell #shellCompact .shell-tabs { display: block; flex-shrink: 0; padding: 0 max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left)); background: white; border-top: 1px solid #d7e5e9; }
  .shared-shell #shellCompact .shell-tab-bar { display: flex; align-items: center; justify-content: space-around; gap: 7px; min-height: 68px; max-width: 574px; margin: auto; padding: 7px 0 6px; }
  .shared-shell #shellCompact .shell-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 0; min-height: 54px; padding: 8px 0; border: 0; border-radius: 16px; background: none; color: #647b87; font: 600 10px 'Segoe UI', sans-serif; }
  .shared-shell #shellCompact .shell-tab.is-selected { background: #e5f3f0; color: #10756a; }
  .shared-shell #shellCompact .shell-tab svg { width: 19px; height: 19px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .shared-shell #shellCompact .shell-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-shell #shellCompact .shell-agent, .shared-shell #shellCompact .shell-account { margin-left: auto; margin-right: auto; width: calc(100% - 44px); }
}
@media (max-width: 359px) {
  .shared-shell #shellCompact .shell-mobile-brand img { width: 130px; height: 31px; }
  .shared-shell #shellCompact .topbar #shellVersion { display: none; }
}
