.robot-fallback {
  background: radial-gradient(circle at 50% 40%, rgba(111, 141, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgb(10, 12, 20), rgb(6, 7, 12));
}

.roboai-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

.roboai-modal.is-open {
  display: flex;
}

.roboai-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.roboai-modal_dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--color-four, rgb(10, 12, 20));
}

.roboai-modal_close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--white-color, #fff);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.roboai-modal_close:hover {
  opacity: 1;
}

.roboai-portal {
  min-height: 100%;
  padding: 50px 60px;
  color: rgba(255, 255, 255, 0.85);
}

/* global.css sets bare `p` and `h1`-`h6` elements to a dark, page-default
   color (meant for light-background sections). Those are direct-element
   rules, so they win over color merely inherited from .roboai-portal above —
   inheritance always loses to any rule that matches the element itself.
   These re-assert white text explicitly wherever plain, unclassed markup is
   used inside the modal (e.g. the access-denied view), so it's never
   unreadable against this modal's dark background. */
.roboai-portal p,
.roboai-portal .text {
  color: rgba(255, 255, 255, 0.85);
}

.roboai-portal h1,
.roboai-portal h2,
.roboai-portal h3,
.roboai-portal h4,
.roboai-portal h5,
.roboai-portal h6 {
  color: var(--white-color, #fff);
}

.roboai-portal_dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.roboai-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(111, 141, 255, 0.14), rgba(111, 141, 255, 0.02));
  border: 1px solid rgba(111, 141, 255, 0.25);
}

.roboai-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--main-color, rgb(111, 141, 255)), rgb(70, 90, 200));
}

.roboai-avatar_sm {
  width: 44px;
  height: 44px;
  font-size: 16px;
  margin: 0 auto 14px;
}

.roboai-profile-header_actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roboai-profile-header_info {
  flex: 1;
  min-width: 200px;
}

.roboai-profile-header_name {
  margin: 0 0 4px;
  font-size: 24px;
}

.roboai-profile-header_role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  margin-bottom: 10px;
}

.roboai-profile-header_badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roboai-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roboai-badge_role {
  background: rgba(111, 141, 255, 0.2);
  color: var(--main-color, rgb(111, 141, 255));
}

.roboai-badge_status {
  background: rgba(78, 201, 121, 0.16);
  color: rgb(110, 220, 150);
}

.roboai-profile-meter {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(255, 185, 0, 0.08);
  border: 1px solid rgba(255, 185, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.roboai-profile-meter_top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.roboai-profile-meter_track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.roboai-profile-meter_fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255, 185, 0), var(--main-color, rgb(111, 141, 255)));
  transition: width 0.4s ease;
}

.roboai-profile-meter_hint {
  margin-top: 10px;
  font-size: 13px;
}

.roboai-profile-meter_hint a {
  color: var(--main-color, rgb(111, 141, 255));
  font-weight: 600;
}

.roboai-profile-meter_done {
  background: rgba(78, 201, 121, 0.1);
  border-color: rgba(78, 201, 121, 0.3);
  color: rgb(150, 230, 180);
  font-weight: 600;
}

.roboai-profile-meter_done i {
  color: rgb(110, 220, 150);
  margin-right: 6px;
}

.roboai-portal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding-right: 30px;
}

.roboai-portal_header-title {
  font-family: var(--font-display, inherit);
  text-transform: uppercase;
  color: var(--white-color, #fff);
  font-size: 22px;
  font-weight: 600;
}

/* Horizontal padding here must match .roboai-portal's own 60px (only the
   vertical rhythm is intentionally tighter for this centered auth view) —
   it was 0 before, which stretched the header edge-to-edge with no inset.
   That was always wrong; it was just hidden by the old modal's own
   padding/border before the modal became a true full-screen layout. */
.roboai-portal_signin {
  text-align: center;
  padding: 30px 60px 40px;
}

.roboai-auth-card {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.roboai-ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.roboai-ms-logo {
  flex-shrink: 0;
}

.roboai-auth-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.roboai-step-indicator {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--main-color, rgb(111, 141, 255));
  margin-bottom: 12px;
}

/* Same 60px horizontal inset as .roboai-portal_signin above, for the same
   reason — this view is its own full screen (identity error, access
   denied, etc.), not a card within a padded parent, so it needs the same
   consistent edge inset as every other top-level view. */
.roboai-portal_denied {
  text-align: center;
  padding: 30px 60px 40px;
}

.roboai-portal_denied h2 {
  margin-bottom: 16px;
}

.roboai-portal_denied p {
  max-width: 560px;
  margin: 0 auto 24px;
}

.roboai-portal_denied button {
  margin-top: 4px;
}

.roboai-portal_signin .sec-title {
  margin-bottom: 30px;
}

.roboai-portal_dashboard,
.roboai-portal_employee-form {
  margin-bottom: 40px;
}

.roboai-portal_subheading {
  font-family: var(--font-display, inherit);
  text-transform: uppercase;
  color: var(--white-color, #fff);
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin: 30px 0 18px;
}

.roboai-portal_dashboard .pillar-block,
.roboai-portal_employee-form .pillar-block {
  margin-bottom: 20px;
}

.roboai-portal_employee-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.roboai-portal_employee-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
}

.roboai-portal_employee-form input,
.roboai-portal_employee-form select {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--white-color, #fff);
  font-size: 14px;
}

.roboai-portal_employee-form input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.roboai-portal_employee-form select option {
  background-color: var(--color-four, rgb(10, 12, 20));
  color: var(--white-color, #fff);
}

.roboai-portal_employee-form button[type="submit"] {
  align-self: center;
  margin-top: 4px;
}

.roboai-portal_save-status {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.roboai-team-search {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  margin: 4px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--white-color, #fff);
  font-size: 14px;
}

.roboai-team-card_meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.roboai-team-card {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.roboai-team-card:hover,
.roboai-team-card:focus-visible {
  border-color: var(--main-color, rgb(111, 141, 255));
  background-color: rgba(111, 141, 255, 0.06);
}

.roboai-team-empty {
  color: rgba(255, 255, 255, 0.55);
}

.roboai-team-contact {
  display: inline-block;
  margin-top: 6px;
  color: var(--main-color, rgb(111, 141, 255));
  font-size: 14px;
  font-weight: 600;
}

@media only screen and (max-width: 599px) {
  .roboai-portal {
    padding: 40px 20px;
  }

  .roboai-portal_signin,
  .roboai-portal_denied {
    padding: 24px 20px 32px;
  }
}
