.h5-entry { color: #236a99; text-decoration: none; }
.h5-mode { --h5-blue: #3169ff; --h5-ink: #13294e; --h5-bg: #f3f5fa; }
.h5-mode .sidebar, .h5-mode .topbar { display: none; }
.h5-mode .app-frame, .h5-mode .main-area { height: 100vh; height: 100dvh; min-height: 0; }
.h5-mode .page-container { min-height: 0; padding: 12px 9px 18px; background: var(--h5-bg); scrollbar-gutter: auto; }
.h5-bar, .h5-tabs { display: flex; align-items: center; flex: none; }
.h5-bar { min-height: 46px; gap: 6px; padding: env(safe-area-inset-top) 8px 0 4px; color: white; background: var(--h5-blue); }
.h5-bar strong { font-size: 17px; }
.h5-bar button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 7px; border: 0; color: inherit; background: transparent; font: inherit; font-size: 16px; cursor: pointer; }
.h5-scope { margin-left: auto; }
.h5-menu-icon { width: 14px; height: 12px; border-block: 2px solid currentColor; background: linear-gradient(currentColor,currentColor) center/100% 2px no-repeat; }
.h5-welcome { padding: 17px 16px; color: white; background: linear-gradient(110deg, #326bff, #795bfa); border-radius: 12px; }
.h5-welcome h1 { font-size: 19px; line-height: 1.4; }
.h5-welcome p { margin-top: 5px; font-size: 14px; color: #f6f7ff; }
.h5-group { margin-top: 15px; }
.h5-group h2, .h5-tile { text-wrap: balance; }
.h5-group h2 { margin: 0 2px 8px; font-size: 14px; color: #63768c; line-height: 1.4; }
.h5-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.h5-tile { display: grid; place-items: center; min-width: 0; min-height: 52px; padding: 9px 6px; text-align: center; text-decoration: none; color: var(--h5-ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; background: white; border-radius: 10px; box-shadow: 0 1px 4px rgba(24,42,78,.07); }
.h5-tile:active, .h5-menu-list a:active { background: #edf2ff; }
.h5-tabs { padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e2e7f0; background: white; }
.h5-tabs a { display: grid; place-items: center; flex: 1; min-height: 48px; text-decoration: none; font-size: 14px; color: #64768b; }
.h5-tabs a[aria-current] { color: var(--h5-blue); font-weight: 700; }
.h5-menu-list { display: grid; }
.h5-menu-list a, .h5-menu-list button { display: block; text-align: left; text-decoration: none; font: inherit; color: var(--h5-ink); background: white; border: 0; border-bottom: 1px solid #edf0f6; padding: 13px 16px; cursor: pointer; }
.h5-panel { border-radius: 10px; background: white; padding: 16px; margin: 0 0 12px; }
.h5-panel h2 { font-size: 17px; color: var(--h5-ink); }
.h5-panel p { margin: 8px 0; color: #53677f; }
.h5-primary { margin-top: 10px; min-height: 44px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--h5-blue); color: white; font: inherit; cursor: pointer; }
.h5-profile div, .h5-clock-row { display: flex; gap: 12px; align-items: baseline; border-bottom: 1px solid #edf0f6; padding: 12px 0; }
.h5-profile dt { color: #64768b; min-width: 3em; }
.h5-clock-row { justify-content: space-between; flex-wrap: wrap; }
.h5-mode .m-head { background: linear-gradient(110deg,#326bff,#795bfa); border-radius: 10px; }
.h5-mode .m-btn { background-color: var(--h5-blue); }
.h5-mode .m-page { min-height: 0; }
@media (max-width: 768px) {
  .h5-mode .login-wrap { min-height: 100dvh; flex-direction: column; background: var(--h5-bg); }
  .h5-mode .login-left { flex: none; padding: 36px 20px; background: linear-gradient(110deg,#326bff,#795bfa); }
  .h5-mode .login-brand h1 { font-size: 21px; }
  .h5-mode .login-brand p { color: white; }
  .h5-mode .login-features { display: none; }
  .h5-mode .login-right { margin: 14px; padding: 24px 18px; width: auto; border-radius: 12px; }
  .h5-mode .login-form button { background: var(--h5-blue); border-color: var(--h5-blue); }
  .h5-mode .card { min-width: 0; max-width: 100%; padding: 12px; overflow-x: auto; }
  .h5-mode .toolbar, .h5-mode .card-title, .h5-mode .dj-tabs { flex-wrap: wrap; }
  .h5-mode .q-grid, .h5-mode .pr-layout, .h5-mode .form-grid, .h5-mode .kb-grid2 { grid-template-columns: minmax(0,1fr); }
  .h5-mode .q-panel, .h5-mode .q-combo { min-width: 0; width: 100%; }
  .h5-mode .modal { max-width: calc(100vw - 16px); max-height: 94dvh; }
  .h5-mode .modal-head, .h5-mode .modal-body { padding: 12px; }
  .h5-mode .modal-body { overflow: auto; }
  .h5-mode .sc { min-width: 900px; min-height: 560px; }
  .h5-mode.screen-mode .page-container { overflow: auto; }
}
