html, body {
  margin: 0;
  min-height: 100vh;
  font-family: "72", "Segoe UI", Arial, sans-serif !important;
  background: #f5f6f7 !important;
  color: #223548 !important;
}
body {
  background:
    linear-gradient(180deg, rgba(11,84,163,0.05), rgba(11,84,163,0) 240px),
    linear-gradient(135deg, #eff4f9 0%, #f7f9fb 100%) !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.25), transparent 28%);
}
body.ow-ready .logo,
body.ow-ready .app-name,
body.ow-ready .version {
  display: none !important;
}

/* Login */
body.login-ui .login-dialog {
  width: min(92vw, 25rem) !important;
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.125rem 1rem rgba(34,53,72,0.12) !important;
  padding: 2rem 1.8rem !important;
}
body.login-ui .login-dialog::before {
  content: "Secure Lab Access";
  display: block;
  color: #0a6ed1;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
body.login-ui .login-dialog::after {
  content: "Sign in to access applications and administration.";
  display: block;
  color: #556b82;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
body.login-ui label,
body.login-ui .field-header,
body.login-ui .form-header {
  color: #223548 !important;
}
body.login-ui input[type="text"],
body.login-ui input[type="password"] {
  width: 100% !important;
  background: #fff !important;
  color: #223548 !important;
  border: 1px solid #89919a !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1rem !important;
}
body.login-ui input[type="text"]:focus,
body.login-ui input[type="password"]:focus {
  border-color: #0a6ed1 !important;
  box-shadow: inset 0 0 0 0.0625rem #0a6ed1, 0 0 0 0.1875rem rgba(10,110,209,0.16) !important;
  outline: none !important;
}
body.login-ui input[type="submit"].login,
body.login-ui input[type="submit"].continue-login {
  width: 100% !important;
  background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.9rem 1rem !important;
}

/* Shell */
.ow-admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15rem;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid #d9d9d9;
  box-shadow: 0 0.125rem 1rem rgba(34,53,72,0.08);
  padding: 1rem 0.85rem;
  z-index: 50;
}
.ow-admin-brand {
  color: #0a6ed1;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.ow-admin-sub {
  color: #6a6d70;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.ow-admin-section { margin-top: 1rem; }
.ow-admin-title {
  color: #6a6d70;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}
.ow-admin-link {
  display: block;
  text-decoration: none;
  color: #223548;
  padding: 0.62rem 0.72rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.ow-admin-link:hover,
.ow-admin-link.active {
  background: #eff4f9;
  border-color: #dce6f2;
  color: #0a6ed1;
}
.ow-admin-link.muted { color: #475569; }
body.ow-shell .home,
body.ow-shell .connection-list-ui,
body.ow-shell .home-view.view,
body.ow-shell .settings,
body.ow-shell .manage,
body.ow-shell .preferences {
  padding-left: 16rem !important;
  padding-right: 1rem !important;
}
body.ow-shell .header {
  position: sticky !important;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid #d9e2ec !important;
  box-shadow: none !important;
  padding: 0.75rem 1rem !important;
  margin: 0 -1rem 1rem -1rem !important;
}
body.ow-shell .header::before {
  content: "Secure Lab Access" !important;
  display: block;
  color: #223548 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.08rem !important;
}
body.ow-shell .header::after {
  content: "" !important;
  display: block;
  color: #6a6d70 !important;
  font-size: 0.8rem !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.ow-shell .user-menu { top: 0.7rem !important; right: 1rem !important; }
body.ow-shell .menu-contents,
body.ow-shell .page-list,
body.ow-shell .user-menu .menu-dropdown,
body.ow-shell .ow-panel,
body.ow-shell .ow-kpi-card,
body.ow-shell .ow-chip,
body.ow-shell .ow-user-panel,
body.ow-shell .ow-history-panel,
body.ow-shell .settings.section,
body.ow-shell .preferences,
body.ow-shell .history.section,
body.ow-shell .management-form,
body.ow-shell .section {
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 1rem !important;
  box-shadow: 0 0.125rem 1rem rgba(34,53,72,0.08) !important;
}
body.ow-shell .ow-dashboard-title,
body.ow-shell .ow-panel-title,
body.ow-shell .ow-kpi-value,
body.ow-shell .ow-chip-value {
  color: #223548 !important;
}
body.ow-shell .ow-dashboard-subtitle,
body.ow-shell .ow-dashboard-refresh,
body.ow-shell .ow-kpi-label,
body.ow-shell .ow-kpi-note,
body.ow-shell .ow-chip-title,
body.ow-shell .ow-user-history-meta {
  color: #556b82 !important;
}
body.ow-shell .ow-table th,
body.ow-shell .ow-table td,
body.ow-shell th,
body.ow-shell td {
  color: #223548 !important;
  border-bottom: 1px solid #e7edf4 !important;
}
body.ow-shell .ow-dashboard-shell { margin-bottom: 1rem !important; }
body.ow-shell .ow-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
body.ow-shell .ow-kpi-card { padding: 1rem; text-align: left; }
body.ow-shell .ow-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
body.ow-shell .ow-panel { padding: 1rem; }
body.ow-shell .ow-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
}
body.ow-shell .ow-chip { padding: 0.9rem 1rem; }
body.ow-shell .ow-user-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
body.ow-shell .ow-user-panel-close,
body.ow-shell .ow-history-panel-close {
  background: #fff;
  color: #223548;
  border: 1px solid #d5dfe9;
  border-radius: 0.6rem;
  padding: 0.35rem 0.65rem;
}
body.ow-shell .ow-user-row { cursor: pointer; }
body.ow-shell .ow-user-row:hover td { background: #f5f9ff !important; }
body.ow-shell .ow-kpi-action:hover { border-color: #bfdbfe !important; }

/* home/catalog */
body.ow-shell .recent-connections::before,
body.ow-shell .all-connections::before {
  display: block;
  color: #223548 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.8rem !important;
}
body.ow-shell .recent-connections::before { content: "Recent Applications" !important; }
body.ow-shell .all-connections::before { content: "Application Catalog" !important; }
body.ow-shell .recent-connections {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.2rem !important;
}
body.ow-shell .recent-connections > .connection {
  width: auto !important;
  min-height: 15rem !important;
  margin: 0 !important;
}
body.ow-shell .group-list-filter { margin-bottom: 0.9rem !important; }
body.ow-shell .group-list-filter input.search-string {
  width: min(24rem, 100%) !important;
  background: #fff !important;
  color: #223548 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 0.9rem !important;
}
body.ow-shell .group-list-filter input.search-string::placeholder { color: #6a6d70 !important; }
body.ow-shell .group-list-page {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)) !important;
  gap: 0.95rem !important;
  align-items: start !important;
}
body.ow-shell .group-list-page > .list-item { width: auto !important; margin: 0 !important; }
body.ow-shell .group-list-page > .list-item:has(> .connection-group.expanded) { grid-column: 1 / -1 !important; }
body.ow-shell .connection,
body.ow-shell .connection-group,
body.ow-shell .home-connection,
body.ow-shell .home-connection-group {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  box-shadow: 0 0.125rem 0.75rem rgba(34,53,72,0.06) !important;
}
body.ow-shell .connection::before,
body.ow-shell .connection-group::before,
body.ow-shell .home-connection::before,
body.ow-shell .home-connection-group::before {
  content: "";
  display: block;
  height: 4px;
  background: #d1d9e0;
}
body.ow-shell .ow-type-app::before { background: linear-gradient(90deg, #0ea5e9, #0a6ed1) !important; }
body.ow-shell .ow-type-lab::before { background: linear-gradient(90deg, #22c55e, #16a34a) !important; }
body.ow-shell .ow-type-hdb::before { background: linear-gradient(90deg, #f59e0b, #d97706) !important; }
body.ow-shell .ow-type-group::before { background: linear-gradient(90deg, #8b5cf6, #6366f1) !important; }
body.ow-shell .connection .caption,
body.ow-shell .connection-group .caption,
body.ow-shell .home-connection .caption,
body.ow-shell .home-connection-group .caption {
  min-height: 10rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  padding: 0.9rem !important;
  position: relative;
}
body.ow-shell .thumbnail {
  width: 100% !important;
  height: 6rem !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}
body.ow-shell .thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
body.ow-shell .connection-group .thumbnail,
body.ow-shell .icon.expand,
body.ow-shell .icon.type { display: none !important; }
body.ow-shell .ow-card-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
body.ow-shell .ow-card-avatar svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #fff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.ow-shell .ow-card-avatar.app { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
body.ow-shell .ow-card-avatar.lab { background: linear-gradient(135deg, #10b981, #059669); }
body.ow-shell .ow-card-avatar.hdb { background: linear-gradient(135deg, #f59e0b, #d97706); }
body.ow-shell .ow-card-avatar.group { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
body.ow-shell .name {
  color: #223548 !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}
body.ow-shell .activeUserCount,
body.ow-shell .jdbc-share-tag { color: #64748b !important; }
body.ow-shell .connection.empty .caption::after,
body.ow-shell .connection-group.expandable > .caption::after {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}
body.ow-shell .connection.empty .caption::after {
  content: "Open";
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #cfe1ff;
}
body.ow-shell .connection-group.expandable > .caption::after {
  content: "Group";
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
body.ow-shell .connection-group.expanded > .children {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)) !important;
  gap: 0.9rem !important;
  padding: 0.9rem !important;
  border-top: 1px solid #e7edf4 !important;
  background: #f8fbfe !important;
}
body.ow-shell .connection-group.expanded > .children > .list-item { width: auto !important; margin: 0 !important; }
body.ow-shell .sorted, body.ow-shell table { width: 100%; border-collapse: collapse; }
body.ow-shell input[type="text"],
body.ow-shell input[type="password"],
body.ow-shell input[type="number"],
body.ow-shell input[type="email"],
body.ow-shell select,
body.ow-shell textarea {
  background: #fff !important;
  color: #223548 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.8rem !important;
}
body.ow-shell .button, body.ow-shell button { border-radius: 10px !important; }
@media (max-width: 900px) {
  .ow-admin-sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #dbe4ee;
    box-shadow: none;
  }
  body.ow-shell .home,
  body.ow-shell .connection-list-ui,
  body.ow-shell .home-view.view,
  body.ow-shell .settings,
  body.ow-shell .manage,
  body.ow-shell .preferences { padding-left: 1rem !important; }
  body.ow-shell .header { margin-left: -1rem !important; }
  body.ow-shell .recent-connections,
  body.ow-shell .group-list-page,
  body.ow-shell .connection-group.expanded > .children,
  body.ow-shell .ow-dashboard-grid { grid-template-columns: 1fr !important; }
}


/* final polish: top-right menu + app alignment */
body.ow-shell .header {
  min-height: 4.4rem !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}
body.ow-shell .header::before,
body.ow-shell .header::after {
  max-width: 60% !important;
}
body.ow-shell .user-menu {
  top: .6rem !important;
  right: 1rem !important;
  z-index: 60 !important;
}
body.ow-shell .menu-dropdown,
body.ow-shell .menu-contents,
body.ow-shell .page-list {
  z-index: 70 !important;
}
body.ow-shell .menu-title {
  background: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: .9rem !important;
  padding: .65rem .9rem !important;
  box-shadow: 0 .125rem .5rem rgba(34,53,72,.08) !important;
}
body.ow-shell .menu-title::before {
  color: #223548 !important;
}
body.ow-shell .recent-connections,
body.ow-shell .all-connections {
  clear: both !important;
}
body.ow-shell .group-list-page,
body.ow-shell .recent-connections,
body.ow-shell .connection-group.expanded > .children {
  align-items: stretch !important;
}
body.ow-shell .connection,
body.ow-shell .connection-group,
body.ow-shell .home-connection,
body.ow-shell .home-connection-group {
  height: 100% !important;
}
body.ow-shell .group-list-page > .list-item,
body.ow-shell .recent-connections > .connection,
body.ow-shell .connection-group.expanded > .children > .list-item {
  display: flex !important;
}
body.ow-shell .group-list-page > .list-item > .connection-group,
body.ow-shell .group-list-page > .list-item > .connection,
body.ow-shell .recent-connections > .connection,
body.ow-shell .connection-group.expanded > .children > .list-item > .connection {
  width: 100% !important;
}
body.ow-shell .connection-group.expanded {
  padding-bottom: .2rem !important;
}
body.ow-shell .connection-group.expanded > .caption {
  min-height: 5.5rem !important;
}
body.ow-shell .connection-group.expanded > .children > .list-item > .connection .caption,
body.ow-shell .recent-connections > .connection .caption {
  min-height: 11rem !important;
}
body.ow-shell .name {
  display: block !important;
  max-width: 100% !important;
}


/* responsive admin fix */
.toolbar,
.action-buttons,
.management-buttons,
.buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .6rem !important;
}

.settings.section,
.preferences,
.history.section,
.management-form,
.section {
  overflow-x: auto !important;
}

.settings.section table,
.preferences table,
.history.section table,
.management-form table,
.section table {
  width: 100% !important;
}

@media (max-width: 1280px) {
  .ow-admin-sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dbe4ee !important;
    box-shadow: none !important;
  }

  body.ow-shell .home,
  body.ow-shell .connection-list-ui,
  body.ow-shell .home-view.view,
  body.ow-shell .settings,
  body.ow-shell .manage,
  body.ow-shell .preferences {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.ow-shell .header {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }
}

@media (max-width: 900px) {
  body.ow-shell .recent-connections,
  body.ow-shell .group-list-page,
  body.ow-shell .connection-group.expanded > .children,
  body.ow-shell .ow-dashboard-grid,
  body.ow-shell .ow-kpis,
  body.ow-shell .ow-chip-grid {
    grid-template-columns: 1fr !important;
  }

  body.ow-shell .header {
    padding-right: 4.5rem !important;
  }

  .toolbar,
  .action-buttons,
  .management-buttons,
  .buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .toolbar .button,
  .action-buttons .button,
  .management-buttons .button,
  .buttons .button,
  .toolbar button,
  .action-buttons button,
  .management-buttons button,
  .buttons button {
    width: 100% !important;
  }

  .settings.section table,
  .preferences table,
  .history.section table,
  .management-form table,
  .section table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .form,
  .fields {
    min-width: 0 !important;
  }
}


/* sidebar overlap fix */
body.ow-shell .manage,
body.ow-shell .management-form,
body.ow-shell .settings,
body.ow-shell .preferences,
body.ow-shell .history,
body.ow-shell .section,
body.ow-shell .page {
  margin-left: 0 !important;
  max-width: none !important;
}
body.ow-shell .manage,
body.ow-shell .settings,
body.ow-shell .preferences {
  padding-left: 16rem !important;
}
body.ow-shell .management-form,
body.ow-shell .settings.section,
body.ow-shell .preferences .settings.section,
body.ow-shell .history.section,
body.ow-shell .section {
  margin-left: 16rem !important;
  width: calc(100% - 17rem) !important;
  box-sizing: border-box !important;
}
body.ow-shell .management-form table,
body.ow-shell .section table,
body.ow-shell .settings.section table {
  table-layout: auto !important;
}
body.ow-shell .management-form input,
body.ow-shell .management-form select,
body.ow-shell .management-form textarea {
  max-width: 100% !important;
}
@media (max-width: 900px) {
  body.ow-shell .management-form,
  body.ow-shell .settings.section,
  body.ow-shell .preferences .settings.section,
  body.ow-shell .history.section,
  body.ow-shell .section {
    margin-left: 0 !important;
    width: 100% !important;
  }
}


/* custom dark login card */
body.login-ui {
  background: #f7f7f7 !important;
}
body.login-ui::before {
  background: none !important;
}
body.login-ui .login-dialog {
  width: min(92vw, 22.5rem) !important;
  background: #1b2438 !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 45px rgba(0,0,0,.18) !important;
  padding: 2rem !important;
}
body.login-ui .login-dialog::before {
  content: 'Secure Lab Access' !important;
  display: block;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}
body.login-ui .login-dialog::after {
  content: 'Sign in to access remote applications and administration.' !important;
  display: block;
  color: #9db0d1 !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
  margin-top: .95rem !important;
}
body.login-ui .field-header,
body.login-ui label,
body.login-ui .form-header {
  display: none !important;
}
body.login-ui .login-fields,
body.login-ui .form-group,
body.login-ui .fields,
body.login-ui .labeled-field {
  margin-bottom: .75rem !important;
}
body.login-ui input[type='text'],
body.login-ui input[type='password'] {
  width: 100% !important;
  background: #141c2d !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  padding: .95rem 1rem !important;
  font-size: .95rem !important;
  box-shadow: none !important;
}
body.login-ui input[type='text']::placeholder,
body.login-ui input[type='password']::placeholder {
  color: #4f617e !important;
}
body.login-ui input[type='text']:focus,
body.login-ui input[type='password']:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
  outline: none !important;
}
body.login-ui .password-field .icon.toggle-password {
  filter: invert(1) opacity(.65);
}
body.login-ui input[type='submit'].login,
body.login-ui input[type='submit'].continue-login {
  width: 100% !important;
  background: linear-gradient(180deg, #3b6ce1 0%, #2f61da 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: .95rem 1rem !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  box-shadow: none !important;
}
body.login-ui input[type='submit'].login:hover,
body.login-ui input[type='submit'].continue-login:hover {
  filter: brightness(1.03);
}
body.login-ui .login-error,
body.login-ui .notification {
  background: rgba(239,68,68,.08) !important;
  border: 1px solid rgba(239,68,68,.18) !important;
  color: #ffd4d4 !important;
  border-radius: 12px !important;
}


/* strong dark auth card override for login + credential prompts */
.login-ui {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f7f7f7 !important;
}
.login-ui .login-dialog-middle {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
.login-ui .login-dialog.notification {
  width: min(92vw, 22.5rem) !important;
  background: #1b2438 !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 45px rgba(0,0,0,.18) !important;
  padding: 2rem !important;
}
.login-ui .login-dialog.notification::before {
  content: 'Secure Lab Access' !important;
  display: block !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}
.login-ui .login-dialog.notification::after {
  content: 'Sign in to access remote applications and administration.' !important;
  display: block !important;
  color: #9db0d1 !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
  margin-top: .95rem !important;
}
.login-ui .logo,
.login-ui .version,
.login-ui .field-header,
.login-ui label,
.login-ui .form-header {
  display: none !important;
}
.login-ui .login-error,
.login-ui .notification > p {
  color: #ffd4d4 !important;
}
.login-ui .login-fields,
.login-ui .form-group,
.login-ui .fields,
.login-ui .labeled-field {
  margin-bottom: .75rem !important;
}
.login-ui input[type='text'],
.login-ui input[type='password'] {
  width: 100% !important;
  background: #141c2d !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  padding: .95rem 1rem !important;
  font-size: .95rem !important;
  box-shadow: none !important;
}
.login-ui input[type='text']::placeholder,
.login-ui input[type='password']::placeholder {
  color: #4f617e !important;
}
.login-ui input[type='text']:focus,
.login-ui input[type='password']:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
  outline: none !important;
}
.login-ui .password-field .icon.toggle-password {
  filter: invert(1) opacity(.65);
}
.login-ui .buttons {
  margin-top: .25rem !important;
}
.login-ui input[type='submit'].login,
.login-ui input[type='submit'].continue-login {
  width: 100% !important;
  background: linear-gradient(180deg, #3b6ce1 0%, #2f61da 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: .95rem 1rem !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  box-shadow: none !important;
}
.login-ui input[type='submit'].continue-login { display:none !important; }


/* two-frame layout */
body.ow-shell {
  display: block !important;
}
.ow-admin-sidebar {
  width: 18rem !important;
  background: #fbfcfe !important;
  border-right: 2px solid #d9e2ec !important;
  box-shadow: none !important;
}
body.ow-shell .home,
body.ow-shell .connection-list-ui,
body.ow-shell .home-view.view,
body.ow-shell .settings,
body.ow-shell .manage,
body.ow-shell .preferences {
  margin-left: 18rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  min-height: 100vh !important;
  background: linear-gradient(180deg,#f7fafc 0%,#eef4f9 100%) !important;
  border-left: 1px solid #e5edf5 !important;
}
body.ow-shell .header {
  margin-left: -1.5rem !important;
  margin-right: -1.5rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
body.ow-shell .ow-dashboard-shell,
body.ow-shell .settings.section,
body.ow-shell .preferences,
body.ow-shell .history.section,
body.ow-shell .management-form,
body.ow-shell .section,
body.ow-shell .all-connections,
body.ow-shell .recent-connections {
  max-width: 100% !important;
}
@media (max-width: 1100px) {
  .ow-admin-sidebar {
    width: 100% !important;
    border-right: 0 !important;
    border-bottom: 2px solid #d9e2ec !important;
  }
  body.ow-shell .home,
  body.ow-shell .connection-list-ui,
  body.ow-shell .home-view.view,
  body.ow-shell .settings,
  body.ow-shell .manage,
  body.ow-shell .preferences {
    margin-left: 0 !important;
    border-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.ow-shell .header {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


/* top bar navigation instead of sidebar */
.ow-admin-sidebar { display: none !important; }
body.ow-shell .home,
body.ow-shell .connection-list-ui,
body.ow-shell .home-view.view,
body.ow-shell .settings,
body.ow-shell .manage,
body.ow-shell .preferences {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
body.ow-shell .header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: .8rem 1rem !important;
  margin: 0 -1rem 1rem -1rem !important;
  min-height: 4.6rem !important;
}
body.ow-shell .header::before {
  content: 'Secure Lab Access' !important;
  display: block !important;
  color: #223548 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
body.ow-shell .header::after {
  content: '' !important;
  display: none !important;
}
.ow-topnav {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-left: 1.2rem;
}
.ow-topnav-link {
  text-decoration: none;
  color: #42566e;
  padding: .45rem .7rem;
  border-radius: .6rem;
  border: 1px solid transparent;
  font-size: .87rem;
  background: transparent;
}
.ow-topnav-link:hover,
.ow-topnav-link.active {
  background: #eff4f9;
  border-color: #dce6f2;
  color: #0a6ed1;
}
.ow-topnav-link.muted {
  color: #5f7287;
}
body.ow-shell .user-menu {
  position: static !important;
  margin-left: auto !important;
}
@media (max-width: 1100px) {
  body.ow-shell .header {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  .ow-topnav {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  body.ow-shell .user-menu {
    margin-left: 0 !important;
  }
}
