/* Shared install controls are separate from business forms and never printed. */
body .jusha-app-ui, body .app-install-entry { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; box-sizing: border-box; }
body .jusha-app-ui [hidden], body .jusha-app-ui[hidden], body [data-app-install][hidden] { display: none !important; }
body .app-install-entry { min-height: 44px; padding: 10px 14px; border: 1px solid #d7e0f4; border-radius: 10px; background: #f1f5ff; color: #264cdb; font-size: 13px; font-weight: 600; cursor: pointer; }
body .app-install-entry:hover { background: #e7eeff; }
body .app-install-entry:focus-visible, body .jusha-app-ui :is(button, a):focus-visible { outline: 3px solid #7195ff; outline-offset: 3px; }
body .app-install-card { display: flex; align-items: center; gap: 11px; margin-top: 24px; padding: 16px 0 0; border-top: 1px solid #e5eaf2; }
body .app-install-card img { flex: 0 0 40px; border-radius: 11px; }
body .app-install-card > div { flex: 1; min-width: 0; }
body .app-install-card strong { font-size: 13px; color: #243650; }
body .app-install-card p { margin: 5px 0 0; color: #65748b; font-size: 11px; line-height: 1.6; }
body .app-install-card .app-install-entry { flex: 0 0 auto; }
body .app-footer-install { background: transparent; color: inherit; border-color: currentColor; margin-top: 8px; }
body.app-dialog-open { overflow: hidden; }
body .app-dialog { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 24px; color: #182b47; background: #fff; border: 1px solid #e4e9f3; border-radius: 22px; box-shadow: 0 24px 90px #0b193440; }
body .app-dialog::backdrop { background: #0b193477; }
body .app-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
body .app-dialog-heading h2 { margin: 0; color: #182b47; font-size: 21px; line-height: 1.4; letter-spacing: 0; }
body .jusha-app-ui .app-dialog-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f8; color: #53627a; font-size: 26px; font-weight: 400; cursor: pointer; }
body .app-install-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
body .app-install-identity img { border-radius: 15px; flex: 0 0 56px; }
body .app-install-identity strong { font-size: 15px; }
body .app-install-identity p { margin: 6px 0 0; color: #65748b; font-size: 12px; line-height: 1.6; }
body .app-install-steps { margin: 0; padding-left: 23px; }
body .app-install-steps li { padding: 0 0 14px 4px; font-size: 14px; line-height: 1.9; }
body .app-install-steps li::marker { color: #315bff; font-weight: 700; }
body .app-install-note, body .app-install-status { font-size: 12px; line-height: 1.8; color: #68758a; margin: 12px 0; }
body .app-install-status:not(:empty) { color: #274ecb; padding: 12px; background: #f0f4ff; border-radius: 10px; }
body .app-install-action { width: 100%; min-height: 48px; border: 0; border-radius: 12px; padding: 12px; background: #315bff; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
body .app-install-action:disabled { opacity: .6; cursor: wait; }
body .app-more-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body .app-more-list > :is(a, button) { display: flex; align-items: center; justify-content: flex-start; min-width: 0; min-height: 64px; padding: 14px; margin: 0; background: #f5f7fb; border: 1px solid #e6ebf3; border-radius: 12px; color: #243650; text-decoration: none; font-size: 14px; line-height: 1.6; text-align: left; font-weight: 500; cursor: pointer; }
body .app-more-list > :is(a, button):hover { background: #eaf0fc; }
body .app-more-list > [aria-current="page"] { color: #264cdb; border-color: #bdcdff; background: #f0f4ff; }
body .app-more-list > .app-logout { color: #a83c36; }
body .app-more-list > .app-install-entry { grid-column: 1 / -1; justify-content: center; min-height: 48px; color: #264cdb; }
body.workspace-redesign .sidebar-footer > .app-install-sidebar { display: flex; justify-content: center; width: 100%; margin-top: 14px; border: 1px solid #34425c; border-radius: 9px; color: #d2ddf4; }
body .app-tabbar, body .app-install-compact { display: none; }
@media (max-width: 760px) {
  body.workspace-redesign.app-navigation-ready .workspace-sidebar { padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid #e5eaf3; box-shadow: none; overflow: visible; }
  body.workspace-redesign.app-navigation-ready .sidebar-brand { color: #1b2c48; font-size: 18px; gap: 10px; }
  body.workspace-redesign.app-navigation-ready .sidebar-brand small { color: #7a879c; font-size: 8px; letter-spacing: .07em; }
  body.workspace-redesign.app-navigation-ready .workspace-menu-toggle,
  body.workspace-redesign.app-navigation-ready .workspace-sidebar .workspace-tabs,
  body.workspace-redesign.app-navigation-ready .workspace-sidebar .sidebar-footer { display: none; }
  body.workspace-redesign.app-navigation-ready .app-install-compact { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; font-size: 12px; }
  body.workspace-redesign.app-navigation-ready .workspace-main { padding-bottom: calc(94px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); scroll-margin-top: calc(82px + env(safe-area-inset-top)); }
  body.workspace-redesign.app-navigation-ready .workspace-header { margin-bottom: 20px; }
  body.workspace-redesign.app-navigation-ready .workspace-header h1 { font-size: 26px; }
  body.workspace-redesign.app-navigation-ready .workspace-header .kicker { font-size: 11px; }
  body.workspace-redesign .app-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid #e1e7f0; box-shadow: 0 -4px 24px #1b2c4806; }
  body.workspace-redesign .app-tabbar :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; min-width: 0; margin: 0; padding: 7px 2px 5px; color: #6b778c; background: transparent; border: 0; border-radius: 12px; font-size: 11px; line-height: 1.2; font-weight: 500; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  body.workspace-redesign .app-tabbar svg { width: 23px; height: 23px; }
  body.workspace-redesign .app-tabbar [aria-pressed="true"] { color: #315bff; background: #f0f4ff; font-weight: 650; }
  body.workspace-redesign.app-keyboard-active .app-tabbar { display: none; }
  body .app-dialog { margin: auto 12px max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 20px; border-radius: 22px; }
  body .app-more-list > :is(a, button) { font-size: 13px; }
  body .app-install-card { gap: 9px; }
}
@media print {
  body .jusha-app-ui, body .app-install-entry { display: none !important; }
  body.app-dialog-open { overflow: visible; }
}
