:root {
  --navy: #0b1730;
  --navy-soft: #142746;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #182338;
  --muted: #718096;
  --line: #e5eaf2;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 14px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.appbar {
  height: 76px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(110deg, #0b1730 0%, #12345a 58%, #1b4e7b 100%);
  color: #fff;
  border-bottom: 1px solid rgba(160, 190, 225, .22);
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  display: block;
  width: 132px;
  height: 68px;
  object-fit: contain;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
}

.top-right { display: flex; align-items: center; gap: 13px; }
.role-label {
  color: #bfcee4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.avatar-square {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.avatar-square:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .55);
  transform: translateY(-1px);
}
.avatar-square:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

.layout { display: flex; min-height: calc(100vh - 72px); }
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  padding: 24px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.side-title {
  padding: 8px 12px;
  color: #9aa6b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 11px 13px;
  border-radius: 9px;
  color: #536176;
  font-weight: 650;
  transition: background .15s ease, color .15s ease;
}
.nav-link span { width: 18px; text-align: center; color: #718096; font-size: 17px; }
.nav-link:hover, .nav-link.active { background: var(--blue-light); color: #1d4ed8; }
.nav-link.active span { color: #1d4ed8; }

.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.page-head h1 { margin: 0 0 5px; font-size: 25px; line-height: 1.25; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card, .panel {
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 12px #1d35570a;
}
.metric-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { margin-top: 7px; font-size: 28px; font-weight: 800; }
.panel { margin-bottom: 18px; }
.panel h2 { margin: 0 0 14px; font-size: 16px; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-heading h2 { margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: #fafbfd;
  color: #8290a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
td { color: #34445c; }
tbody tr:hover { background: #fbfdff; }
.empty { padding: 34px; color: var(--muted); text-align: center; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.field {
  min-width: 190px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  color: var(--text);
}
.field:focus { outline: 3px solid #dbeafe; border-color: #60a5fa; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { color: #526176; font-size: 12px; font-weight: 700; }
.form-actions { display: flex; gap: 9px; align-items: center; margin-top: 15px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-light { background: #eef3fa; color: #34445c; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 99px;
  background: #eaf7ef;
  color: #15803d;
  font-size: 11px;
  font-weight: 750;
}
.badge.badge-off { background: #f1f3f6; color: #64748b; }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #16a34a;
}
.status-dot.bad { background: #dc2626; }
.message { min-height: 18px; margin-top: 10px; color: var(--danger); font-size: 12px; }
.message.success { color: #15803d; }

.form-card {
  width: min(440px, calc(100% - 32px));
  margin: 7vh auto;
  padding: 30px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 55px #14294b14;
}
.form-card .logo {
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 22px;
  border-radius: 5px;
}
.form-card h1 { margin: 0 0 5px; font-size: 22px; }
.form-card .form-row { margin: 17px 0; }
.form-card input { width: 100%; padding: 12px; border: 1px solid #d9e1ec; border-radius: 8px; }
.form-card .btn { width: 100%; padding: 12px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { width: 205px; flex-basis: 205px; }
}
@media (max-width: 640px) {
  .appbar { height: 68px; padding: 0 12px; }
  .brand img { width: 120px; height: 60px; }
  .role-label { display: none; }
  .layout { min-height: calc(100vh - 68px); }
  .sidebar { width: 62px; flex-basis: 62px; padding: 18px 5px; }
  .side-title { display: none; }
  .nav-link { justify-content: center; padding: 12px 5px; font-size: 0; }
  .nav-link span { font-size: 17px; }
  .content { padding: 17px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card, .panel { padding: 14px; }
  .metric-value { font-size: 23px; }
  .page-head h1 { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}


/* Admin page workspaces */
.users-workspace .panel-heading,
.users-table-panel .panel-heading {
  margin-bottom: 16px;
}

.form-block h3 {
  margin: 0 0 14px;
  color: #24344d;
  font-size: 14px;
}

.form-block + .form-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-help {
  margin: -5px 0 15px;
  font-size: 12px;
}

.logs-toolbar {
  justify-content: flex-end;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .logs-toolbar {
    justify-content: stretch;
  }

  .logs-toolbar .btn {
    flex: 1 1 auto;
  }
}


/* Tabs for the admin users workspace */
.users-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  overflow-x: auto;
  background: #eaf0f8;
  border: 1px solid #e1e8f2;
  border-radius: 11px;
}

.users-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #536176;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.users-tab:hover {
  background: rgba(255, 255, 255, .72);
  color: #1d4ed8;
}

.users-tab.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 2px 7px #1d355714;
}

.users-tab:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.users-tab-panel[hidden] {
  display: none !important;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-help {
  margin: 0 0 16px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .users-tabs {
    gap: 4px;
    padding: 4px;
  }

  .users-tab {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* Actions in the admin sessions table */
.session-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.session-actions .btn {
  padding: 7px 10px;
  font-size: 12px;
}

/* Admin workspace: protected admin row and fixed sidebar with contained table scrolling. */
.badge-admin {
  background: #e8eefc;
  color: #234a9a;
}

.badge-role {
  background: #edf2f8;
  color: #526176;
}

.admin-user-row {
  background: #f8faff;
}

.admin-user-row:hover {
  background: #f1f6ff;
}

.admin-account-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 768px) {
  body[data-role="admin"] {
    height: 100vh;
    overflow: hidden;
  }

  body[data-role="admin"] .layout {
    height: calc(100vh - 76px);
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }

  body[data-role="admin"] .sidebar {
    position: sticky;
    top: 0;
    height: 100%;
    align-self: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-role="admin"] .content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body[data-role="admin"] .page-head,
  body[data-role="admin"] .users-tabs {
    flex: 0 0 auto;
  }

  body[data-role="admin"] .sessions-panel,
  body[data-role="admin"] .logs-panel,
  body[data-role="admin"] .users-table-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-role="admin"] .sessions-panel .table-wrap,
  body[data-role="admin"] .logs-panel .table-wrap,
  body[data-role="admin"] .users-table-panel .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  body[data-role="admin"] .sessions-panel .table-wrap th,
  body[data-role="admin"] .logs-panel .table-wrap th,
  body[data-role="admin"] .users-table-panel .table-wrap th {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  body[data-role="admin"] .users-workspace {
    min-height: 0;
    overflow-y: auto;
  }

  body[data-role="admin"] .users-table-panel .panel-heading,
  body[data-role="admin"] .sessions-panel .toolbar,
  body[data-role="admin"] .logs-panel .toolbar {
    flex: 0 0 auto;
  }
}

/* On small screens, restore natural page scrolling for comfortable navigation. */
@media (max-width: 767px) {
  body[data-role="admin"] {
    height: auto;
    overflow: auto;
  }

  body[data-role="admin"] .layout {
    height: auto;
    min-height: calc(100vh - 76px);
    overflow: visible;
  }

  body[data-role="admin"] .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  body[data-role="admin"] .content {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
  }

  body[data-role="admin"] .sessions-panel,
  body[data-role="admin"] .logs-panel,
  body[data-role="admin"] .users-table-panel {
    display: block;
    overflow: visible;
  }

  body[data-role="admin"] .sessions-panel .table-wrap,
  body[data-role="admin"] .logs-panel .table-wrap,
  body[data-role="admin"] .users-table-panel .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }
}

@media (max-width: 640px) {
  body[data-role="admin"] .layout {
    min-height: calc(100vh - 68px);
  }
}

/* Users table: visually separate department from access role. */
.department-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  background: #f5f7fa;
  color: #536176;
  font-size: 11px;
  font-weight: 650;
}

.department-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 2px;
  background: #94a3b8;
}

.department-chip-empty {
  color: #94a3b8;
  font-weight: 500;
  font-style: italic;
}

.role-badge {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .7px;
}

.badge-role-it {
  border-color: #c9ddff;
  background: #eaf2ff;
  color: #1d4ed8;
}

.badge-role-rh {
  border-color: #e3d2ff;
  background: #f4edff;
  color: #6d28d9;
}

.role-badge.badge-admin {
  border-color: #c5d1e5;
  background: #e3ebf8;
  color: #17345f;
}


/* --------------------------------------------------------------------------
   NEXORA enterprise workspaces — shared appbar and department dashboards
   -------------------------------------------------------------------------- */
.appbar-enterprise {
  height: 72px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  color: #17243a;
  border-bottom: 1px solid #e3e9f1;
  box-shadow: 0 3px 14px rgba(17, 35, 61, .045);
  backdrop-filter: blur(14px);
}

.appbar-brand-group {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.appbar-enterprise .brand {
  flex: 0 0 auto;
  align-items: center;
}

.appbar-enterprise .brand img {
  width: 112px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

.appbar-brand-divider {
  width: 1px;
  height: 31px;
  background: #e4e9f0;
}

.appbar-product-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.appbar-product-copy strong {
  color: #14243d;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

.appbar-product-copy span {
  color: #8290a4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .75px;
  text-transform: uppercase;
  white-space: nowrap;
}

.appbar-enterprise .top-right {
  gap: 17px;
  min-width: 0;
}

.appbar-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #e2eee7;
  border-radius: 99px;
  background: #f5fbf7;
  color: #3c7655;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .65px;
  white-space: nowrap;
}

.security-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24a36a;
  box-shadow: 0 0 0 3px rgba(36, 163, 106, .12);
}

.appbar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.appbar-avatar {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #edf3ff;
  color: #234f9a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .4px;
}

.appbar-user-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.appbar-user-copy strong {
  max-width: 190px;
  overflow: hidden;
  color: #25344b;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appbar-user-copy .role-label {
  color: #8491a4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.appbar-enterprise .appbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  background: #fff;
  color: #56657a;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.appbar-enterprise .appbar-logout:hover {
  border-color: #f1c8c8;
  background: #fff7f7;
  color: #b42318;
}

.appbar-enterprise .appbar-logout:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 2px;
}

/* Shared one-page department shell */
.workspace-layout {
  min-height: calc(100vh - 72px);
  align-items: stretch;
}

.workspace-sidebar {
  position: sticky;
  top: 72px;
  align-self: flex-start;
  width: 236px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 25px 14px;
  background: #fff;
  border-right: 1px solid #e7ecf3;
}

.workspace-sidebar .side-title {
  padding: 7px 12px 13px;
  color: #9aa6b8;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.workspace-sidebar .nav-link {
  min-height: 42px;
}

.workspace-sidebar .sidebar-note {
  margin: 28px 7px 0;
  padding: 13px;
  border: 1px solid #e5ebf4;
  border-radius: 11px;
  background: #f8fafd;
  color: #77869b;
  font-size: 11px;
  line-height: 1.55;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 5px;
  color: #42536b;
  font-size: 11px;
}

.workspace-content {
  flex: 1 1 auto;
  width: auto;
  max-width: 1700px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px 34px 42px;
}

.workspace-content .page-head {
  align-items: center;
  margin-bottom: 21px;
}

.workspace-content .page-head h1 {
  font-size: 25px;
  letter-spacing: -.55px;
}

.workspace-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #58739e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.workspace-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #3976d7;
}

.workspace-subtitle {
  max-width: 750px;
  margin: 0;
  color: #748196;
  font-size: 13px;
  line-height: 1.65;
}

.workspace-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #f1e3c2;
  border-radius: 8px;
  background: #fffaf0;
  color: #946b24;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

/* Developer workspace */
.developer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 176px;
  margin-bottom: 19px;
  padding: 27px 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid #1b3b66;
  border-radius: 17px;
  background:
    radial-gradient(circle at 83% 18%, rgba(73, 132, 215, .35), transparent 25%),
    linear-gradient(115deg, #10233e 0%, #173c69 65%, #1b4b7e 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 44, 78, .12);
}

.developer-hero h1 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -.8px;
}

.developer-hero p {
  max-width: 680px;
  margin: 0;
  color: #c4d3e8;
  font-size: 13px;
  line-height: 1.65;
}

.developer-hero .workspace-eyebrow {
  color: #a9c7ef;
}

.developer-hero .workspace-eyebrow::before {
  background: #7bb4ff;
}

.developer-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex: 0 0 auto;
}

.github-mark {
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -1px;
}

.developer-hero .workspace-demo-note {
  border-color: rgba(255,255,255,.19);
  background: rgba(255,255,255,.1);
  color: #e4edfa;
}

.dev-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}

.dev-metric {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #e6ebf2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 53, 87, .035);
}

.dev-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dev-metric-label {
  color: #77849a;
  font-size: 11px;
  font-weight: 700;
}

.dev-metric-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #edf3ff;
  color: #3c68ad;
  font-size: 12px;
  font-weight: 850;
}

.dev-metric-value {
  margin-top: 8px;
  color: #1b2b43;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.8px;
  line-height: 1.1;
}

.dev-metric-foot {
  margin-top: 7px;
  color: #8b97a8;
  font-size: 10px;
}

.dev-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: 17px;
  align-items: start;
}

.workspace-panel {
  min-width: 0;
  margin-bottom: 17px;
  padding: 19px 20px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 53, 87, .035);
}

.workspace-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.workspace-panel-heading h2 {
  margin: 0 0 4px;
  color: #26364d;
  font-size: 15px;
  font-weight: 800;
}

.workspace-panel-heading p {
  margin: 0;
  color: #8a96a8;
  font-size: 11px;
}

.workspace-count {
  padding: 5px 8px;
  border: 1px solid #e5ebf4;
  border-radius: 7px;
  background: #f8fafd;
  color: #65748a;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.repo-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 11px;
  background: #fcfdff;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: #cbd9ee;
  box-shadow: 0 7px 18px rgba(32, 63, 105, .07);
}

.repo-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.repo-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #edf3ff;
  color: #2d5da6;
  font-size: 10px;
  font-weight: 850;
}

.repo-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #2a3a50;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-visibility {
  margin-left: auto;
  color: #96a1b1;
  font-size: 9px;
  font-weight: 700;
}

.repo-card p {
  min-height: 32px;
  margin: 10px 0;
  color: #7c899b;
  font-size: 10px;
  line-height: 1.55;
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #77869a;
  font-size: 10px;
}

.repo-language {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #53647b;
  font-weight: 700;
}

.repo-language::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f79c9;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.dev-table th {
  padding: 10px 11px;
  background: #f8fafd;
  color: #8a96a8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .7px;
  text-align: left;
  text-transform: uppercase;
}

.dev-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf1f6;
  color: #54647a;
  font-size: 11px;
}

.dev-table tbody tr:last-child td {
  border-bottom: 0;
}

.dev-table tbody tr:hover {
  background: #fbfcfe;
}

.pr-title {
  color: #2a3b53;
  font-weight: 750;
}

.pr-number {
  margin-right: 6px;
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 700;
}

.dev-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef5ff;
  color: #37639e;
  font-size: 9px;
  font-weight: 800;
}

.dev-status.success {
  background: #eaf7ef;
  color: #228052;
}

.dev-status.warning {
  background: #fff6e8;
  color: #9a6b20;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1f6;
}

.pipeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pipeline-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #394b63;
  font-size: 11px;
  font-weight: 750;
}

.pipeline-name small {
  color: #98a2b1;
  font-size: 9px;
  font-weight: 500;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f6;
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #e0e9f7;
  border-radius: 50%;
  background: #f0f5ff;
  color: #3c649f;
  font-size: 9px;
  font-weight: 850;
}

.activity-copy {
  color: #68778d;
  font-size: 10px;
  line-height: 1.55;
}

.activity-copy strong {
  color: #33465f;
}

.activity-time {
  color: #9aa5b4;
  font-size: 9px;
  white-space: nowrap;
}

/* HR job board */
.hr-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px 27px;
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 0%, #f6f8ff 100%);
}

.hr-hero h1 {
  margin: 0 0 6px;
  color: #24344c;
  font-size: 27px;
  letter-spacing: -.7px;
}

.hr-hero p {
  max-width: 720px;
  margin: 0;
  color: #77859a;
  font-size: 12px;
  line-height: 1.6;
}

.hr-hero-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #e4def7;
  border-radius: 16px;
  background: #f4f0ff;
  color: #7055ad;
  font-size: 22px;
  font-weight: 800;
}

.hr-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.hr-summary-card {
  padding: 15px 17px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #fff;
}

.hr-summary-card span {
  display: block;
  color: #8290a3;
  font-size: 10px;
  font-weight: 700;
}

.hr-summary-card strong {
  display: block;
  margin-top: 5px;
  color: #2b3b53;
  font-size: 24px;
  font-weight: 850;
}

.hr-jobs-panel {
  padding: 20px;
}

.hr-jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.hr-jobs-toolbar h2 {
  margin: 0 0 3px;
  color: #26364d;
  font-size: 15px;
}

.hr-jobs-toolbar p {
  margin: 0;
  color: #8a96a8;
  font-size: 11px;
}

.hr-jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-jobs-filters .field {
  min-width: 180px;
  padding: 9px 11px;
  font-size: 11px;
}

.job-title {
  color: #2d3f58;
  font-size: 11px;
  font-weight: 800;
}

.job-reference {
  margin-top: 3px;
  color: #98a3b2;
  font-size: 9px;
}

.job-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}

.job-status.open {
  background: #eaf7ef;
  color: #218052;
}

.job-status.review {
  background: #fff5e6;
  color: #986a21;
}

.job-status.closed {
  background: #f0f2f5;
  color: #778397;
}

.hr-demo-caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #f1e6cc;
  border-radius: 9px;
  background: #fffaf1;
  color: #8c713d;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .dev-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-content {
    padding: 25px 23px 36px;
  }

  .appbar-security {
    display: none;
  }
}

@media (max-width: 760px) {
  .appbar-enterprise {
    height: 66px;
    padding: 0 13px;
    gap: 10px;
  }

  .appbar-brand-group {
    gap: 9px;
  }

  .appbar-enterprise .brand img {
    width: 88px;
    height: 40px;
  }

  .appbar-brand-divider,
  .appbar-product-copy span,
  .appbar-user-copy {
    display: none;
  }

  .appbar-product-copy strong {
    font-size: 11px;
  }

  .appbar-enterprise .top-right {
    gap: 9px;
  }

  .appbar-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .appbar-enterprise .appbar-logout {
    min-height: 35px;
    width: 37px;
    padding: 0;
    font-size: 0;
  }

  .workspace-layout {
    display: block;
    min-height: calc(100vh - 66px);
  }

  .workspace-sidebar {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: auto;
    overflow-x: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid #e7ecf3;
  }

  .workspace-sidebar .side-title,
  .workspace-sidebar .sidebar-note {
    display: none;
  }

  .workspace-sidebar .nav-link {
    flex: 0 0 auto;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .workspace-sidebar .nav-link span {
    width: auto;
    font-size: 13px;
  }

  .workspace-content {
    width: 100%;
    padding: 18px 13px 30px;
  }

  .developer-hero {
    min-height: 0;
    padding: 22px 19px;
  }

  .developer-hero-aside {
    display: none;
  }

  .dev-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dev-metric {
    padding: 13px;
  }

  .dev-metric-value {
    font-size: 23px;
  }

  .repo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hr-hero {
    padding: 20px;
  }

  .hr-hero h1 {
    font-size: 23px;
  }

  .hr-summary {
    gap: 8px;
  }

  .hr-summary-card {
    padding: 12px;
  }

  .hr-summary-card strong {
    font-size: 21px;
  }

  .hr-jobs-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hr-jobs-filters {
    width: 100%;
  }

  .hr-jobs-filters .field {
    flex: 1 1 170px;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .appbar-product-copy {
    display: none;
  }

  .hr-summary {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .activity-time {
    grid-column: 2;
  }
}


/* Appbar-only layout correction.
   Keep the previous workspace styling unchanged. */
.appbar-enterprise {
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 0 clamp(14px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
  box-sizing: border-box;
}

.appbar-enterprise .appbar-brand-group {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 1 auto;
  min-width: 0;
  height: 100%;
}

.appbar-enterprise .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 112px;
  height: 48px;
  flex: 0 0 112px;
  overflow: hidden;
}

.appbar-enterprise .brand img {
  display: block;
  width: 112px;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.appbar-enterprise .appbar-brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
}

.appbar-enterprise .appbar-product-copy {
  min-width: 0;
  overflow: hidden;
}

.appbar-enterprise .appbar-product-copy strong,
.appbar-enterprise .appbar-product-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-enterprise .top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 16px);
  flex: 0 0 auto;
  min-width: 0;
}

.appbar-enterprise .appbar-security {
  flex: 0 0 auto;
  white-space: nowrap;
}

.appbar-enterprise .appbar-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 auto;
  min-width: 0;
}

.appbar-enterprise .appbar-avatar {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
}

.appbar-enterprise .appbar-user-copy {
  width: 150px;
  min-width: 0;
  flex: 0 1 150px;
  overflow: hidden;
}

.appbar-enterprise .appbar-user-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appbar-enterprise .appbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .appbar-enterprise .appbar-security {
    display: none;
  }

  .appbar-enterprise .appbar-user-copy {
    width: 125px;
    flex-basis: 125px;
  }
}

@media (max-width: 760px) {
  .appbar-enterprise {
    height: 68px;
    min-height: 68px;
    padding: 0 13px;
    gap: 8px;
  }

  .appbar-enterprise .appbar-brand-group {
    gap: 9px;
  }

  .appbar-enterprise .brand {
    width: 88px;
    height: 42px;
    flex-basis: 88px;
  }

  .appbar-enterprise .brand img {
    width: 88px;
    height: 38px;
  }

  .appbar-enterprise .appbar-brand-divider,
  .appbar-enterprise .appbar-product-copy span,
  .appbar-enterprise .appbar-security,
  .appbar-enterprise .appbar-user-copy {
    display: none;
  }

  .appbar-enterprise .appbar-product-copy strong {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .appbar-enterprise .top-right {
    gap: 9px;
  }

  .appbar-enterprise .appbar-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .appbar-enterprise .appbar-logout {
    width: 38px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }

  .appbar-enterprise .appbar-logout svg {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .appbar-enterprise .appbar-product-copy {
    display: none;
  }

  .appbar-enterprise .brand {
    width: 94px;
    flex-basis: 94px;
  }

  .appbar-enterprise .brand img {
    width: 94px;
  }
}


/* Keep the title banner visible while the IT / RH content scrolls. */
@media (min-width: 761px) {
  body[data-role="it"] .developer-hero,
  body[data-role="rh"] .hr-hero {
    position: sticky;
    top: 84px;
    z-index: 8;
    isolation: isolate;
    box-shadow: 0 8px 22px rgba(24, 43, 72, .13);
  }
}

/* Hide the optional security label: keep the appbar focused on the user and logout. */
.appbar-security,
.security-indicator {
  display: none !important;
}


/* Green enterprise appbar: only the brand and logout action remain. */
.appbar-enterprise {
  height: 72px;
  min-height: 72px;
  flex: 0 0 72px;
  padding: 0 clamp(16px, 2.5vw, 30px);
  background: linear-gradient(105deg, #14532d 0%, #166534 58%, #15803d 100%);
  color: #fff;
  border-bottom: 1px solid rgba(220, 252, 231, .18);
  box-shadow: 0 4px 16px rgba(20, 83, 45, .18);
  backdrop-filter: none;
}

.appbar-enterprise .appbar-brand-divider {
  background: rgba(236, 253, 245, .3);
}

.appbar-enterprise .appbar-product-copy strong {
  color: #fff;
}

.appbar-enterprise .appbar-product-copy span {
  color: rgba(236, 253, 245, .82);
}

.appbar-enterprise .top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.appbar-enterprise .appbar-logout {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(236, 253, 245, .38);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}

.appbar-enterprise .appbar-logout:hover {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.appbar-enterprise .appbar-logout:focus-visible {
  outline: 3px solid rgba(187, 247, 208, .85);
  outline-offset: 2px;
}

/* Desktop IT/RH shell:
   appbar and sidebar stay fixed; the main content is the only scroll area.
   The hero/title panel is sticky at the top of that scroll area. */
@media (min-width: 761px) {
  body[data-role="it"],
  body[data-role="rh"] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-role="it"] .appbar-enterprise,
  body[data-role="rh"] .appbar-enterprise {
    position: relative;
    top: auto;
    z-index: 30;
  }

  body[data-role="it"] .workspace-layout,
  body[data-role="rh"] .workspace-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 72px);
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    align-items: stretch;
  }

  body[data-role="it"] .workspace-sidebar,
  body[data-role="rh"] .workspace-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: 236px;
    min-width: 236px;
    max-width: 236px;
    height: 100%;
    min-height: 0;
    flex: 0 0 236px;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-role="it"] .workspace-content,
  body[data-role="rh"] .workspace-content {
    width: auto;
    max-width: none;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 24px 30px 38px;
  }

  body[data-role="it"] .developer-hero,
  body[data-role="rh"] .hr-hero {
    position: sticky;
    top: 0;
    z-index: 12;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    isolation: isolate;
    box-shadow: 0 8px 20px rgba(24, 43, 72, .14);
  }
}

/* Mobile/tablet: natural page scroll, compact horizontal navigation,
   and title panel remains pinned just below the green appbar. */
@media (max-width: 760px) {
  .appbar-enterprise {
    height: 68px;
    min-height: 68px;
    flex-basis: 68px;
    padding: 0 13px;
  }

  body[data-role="it"],
  body[data-role="rh"] {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-role="it"] .workspace-layout,
  body[data-role="rh"] .workspace-layout {
    display: block;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 68px);
    overflow: visible;
  }

  body[data-role="it"] .workspace-content,
  body[data-role="rh"] .workspace-content {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 18px 13px 30px;
  }

  body[data-role="it"] .developer-hero,
  body[data-role="rh"] .hr-hero {
    position: sticky;
    top: 68px;
    z-index: 12;
    align-self: stretch;
    width: 100%;
    box-shadow: 0 7px 18px rgba(24, 43, 72, .12);
  }

  .appbar-enterprise .appbar-logout {
    min-height: 36px;
    padding: 0 12px;
  }
}


/* --------------------------------------------------------------------------
   Login appbar, larger unclipped brand, and non-overlapping IT/RH title area.
   -------------------------------------------------------------------------- */

/* Slightly larger logo, fully contained in the green appbar. */
.appbar-enterprise .brand {
  width: 142px;
  height: 60px;
  flex: 0 0 142px;
  overflow: visible;
}

.appbar-enterprise .brand img {
  width: 138px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Login uses the same green company header as the authenticated workspaces. */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
}

.login-page .appbar-enterprise {
  position: relative;
  top: auto;
  z-index: 30;
}

.login-page .login-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 36px 18px;
}

.login-page .form-card {
  margin: 0;
}

/* Desktop IT/RH: title panel is outside the scroll container.
   Only the workspace below it can scroll, so rows/cards never pass behind it. */
@media (min-width: 761px) {
  body[data-role="it"] .workspace-content,
  body[data-role="rh"] .workspace-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding: 24px 30px 0;
  }

  body[data-role="it"] .developer-hero,
  body[data-role="rh"] .hr-hero {
    position: relative;
    top: auto;
    z-index: 1;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 0;
    isolation: auto;
    box-shadow: 0 5px 16px rgba(24, 43, 72, .08);
  }

  body[data-role="it"] .workspace-scroll,
  body[data-role="rh"] .workspace-scroll {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0 12px 38px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  body[data-role="it"] .workspace-scroll::-webkit-scrollbar,
  body[data-role="rh"] .workspace-scroll::-webkit-scrollbar {
    width: 8px;
  }

  body[data-role="it"] .workspace-scroll::-webkit-scrollbar-thumb,
  body[data-role="rh"] .workspace-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 99px;
    background: #cbd5e1;
    background-clip: content-box;
  }
}

/* Mobile: normal document scroll; title and content flow naturally. */
@media (max-width: 760px) {
  .appbar-enterprise .brand {
    width: 108px;
    height: 48px;
    flex-basis: 108px;
  }

  .appbar-enterprise .brand img {
    width: 106px;
    height: 46px;
  }

  .login-page .login-main {
    padding: 24px 14px;
  }

  .login-page .form-card {
    width: min(440px, 100%);
  }

  body[data-role="it"] .workspace-content,
  body[data-role="rh"] .workspace-content {
    display: block;
    height: auto;
    overflow: visible;
    padding: 18px 13px 30px;
  }

  body[data-role="it"] .developer-hero,
  body[data-role="rh"] .hr-hero {
    position: static;
    top: auto;
    box-shadow: none;
  }

  body[data-role="it"] .workspace-scroll,
  body[data-role="rh"] .workspace-scroll {
    display: contents;
    overflow: visible;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .appbar-enterprise .brand {
    width: 100px;
    flex-basis: 100px;
  }

  .appbar-enterprise .brand img {
    width: 98px;
  }
}

/* Login appbar help link and lightweight user guide page. */
.login-page .appbar-help-button,
.guide-page .appbar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.login-page .appbar-help-button:hover,
.guide-page .appbar-help-button:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .23);
  transform: translateY(-1px);
}

.login-page .appbar-help-button:focus-visible,
.guide-page .appbar-help-button:focus-visible {
  outline: 3px solid #bbf7d0;
  outline-offset: 3px;
}

.guide-page {
  min-height: 100vh;
  background: var(--background);
}

.guide-main {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 60px;
}

.guide-intro {
  margin-bottom: 24px;
}

.guide-intro h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.2;
}

.guide-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 12px #1d35570a;
}

.guide-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-card ul,
.guide-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-card li + li {
  margin-top: 4px;
}

.guide-card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .login-page .appbar-help-button,
  .guide-page .appbar-help-button {
    min-height: 36px;
    gap: 7px;
    padding: 0 10px;
    font-size: 10px;
  }

  .login-page .appbar-help-button svg,
  .guide-page .appbar-help-button svg {
    width: 15px;
    height: 15px;
  }

  .guide-main {
    padding-top: 28px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .login-page .appbar-help-button,
  .guide-page .appbar-help-button {
    gap: 5px;
    padding: 0 7px;
    font-size: 9px;
  }
}

/* Keep the per-user bulk revoke action once in the sessions toolbar. */
.sessions-bulk-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.sessions-bulk-select {
  min-width: 230px;
  max-width: 290px;
}

.sessions-bulk-controls .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sessions-bulk-controls .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .sessions-bulk-controls {
    width: 100%;
    flex: 1 1 100%;
    padding-left: 0;
    border-left: 0;
  }

  .sessions-bulk-select {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }
}

