:root {
  --navy: #101c68;
  --primary: #5b5cf6;
  --electric: #6c63ff;
  --signal: #12cfa5;

  --soft-purple: #f0efff;
  --soft-blue: #eef4ff;
  --soft-green: #edfcf7;
  --soft-amber: #fff7e7;

  --canvas: #f7f8fc;
  --surface: #ffffff;
  --surface-secondary: #fafafd;

  --border: #e7e9f2;
  --border-strong: #dcdff0;

  --text: #10183f;
  --text-secondary: #667085;
  --muted: #98a2b3;

  --success: #12b981;
  --warning: #f59e0b;
  --danger: #e5484d;

  --shadow:
    0 12px 34px rgba(16, 24, 63, .07);

  --shadow-soft:
    0 4px 16px rgba(16, 24, 63, .05);

  --radius-card: 16px;
  --radius-control: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Sora", "Inter", sans-serif;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;

  max-width: calc(100vw - 32px);
  padding: 12px 17px;

  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;

  color: white;
  background: #10183f;

  font-size: 12px;
  font-weight: 700;

  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, 15px);

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* LOGIN */

.login-body {
  overflow-x: hidden;
  background: white;
}

.hml-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  width: 100%;
  min-height: 28px;

  display: grid;
  place-items: center;

  color: #5149d8;
  background: #eeedff;

  border-bottom: 1px solid #dedcff;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
}

.login-shell {
  min-height: 100vh;
  padding-top: 28px;

  display: grid;
  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(440px, .88fr);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;

  min-height: calc(100vh - 28px);
  padding: 48px 6vw 44px;

  display: flex;
  flex-direction: column;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(108,99,255,.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(18,207,165,.12),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #fbfbff 0%,
      #f4f3ff 48%,
      #f7fbff 100%
    );

  border-right: 1px solid var(--border);
}

.login-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atuora-brand,
.sidebar-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-symbol {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #7476ff
    );

  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 700;

  box-shadow:
    0 8px 18px rgba(91,92,246,.23);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: var(--navy);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  letter-spacing: .05em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pilot-badge,
.hml-badge {
  padding: 6px 9px;
  border: 1px solid #dedcff;
  border-radius: 999px;

  color: #5b54d9;
  background: rgba(255,255,255,.68);

  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}

.login-message {
  max-width: 680px;
  margin-top: clamp(60px, 10vh, 120px);
}

.login-message h1 {
  max-width: 650px;
  margin-bottom: 18px;

  font-size: clamp(35px, 4.4vw, 63px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.login-message p {
  max-width: 570px;
  margin: 0;

  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.7;
}

.operation-preview {
  max-width: 700px;
  margin-top: 38px;
  padding: 20px;

  border: 1px solid rgba(220,223,240,.9);
  border-radius: 19px;

  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(12px);
}

.preview-top,
.preview-work {
  display: flex;
  align-items: center;
}

.preview-top {
  justify-content: space-between;
}

.preview-top > div span,
.preview-top > div strong {
  display: block;
}

.preview-top > div span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}

.preview-top > div strong {
  margin-top: 3px;
  font-size: 12px;
}

.live-pill,
.working-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 9px;

  color: #087c64;
  background: #edfcf7;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 800;
}

.live-pill i,
.working-badge i,
.live-status i,
.team-status i {
  display: inline-block;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--signal);
}

.live-pill i,
.working-badge i {
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18,207,165,.3);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(18,207,165,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(18,207,165,0);
  }
}

.preview-work {
  gap: 12px;
  margin-top: 18px;
}

.preview-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: white;
  background:
    linear-gradient(
      135deg,
      #6c63ff,
      #8680ff
    );

  font-family: "Sora";
  font-weight: 700;
}

.preview-copy {
  flex: 1;
}

.preview-copy strong,
.preview-copy span {
  display: block;
}

.preview-copy strong {
  font-size: 12px;
}

.preview-copy span {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 9px;
}

.preview-status {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.workflow-mini {
  margin-top: 16px;

  display: grid;
  grid-template-columns:
    auto 1fr auto 1fr auto 1fr auto;

  align-items: center;
  gap: 7px;

  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.workflow-mini i {
  display: block;
  height: 2px;
  background: #e5e7f2;
}

.workflow-mini i.done {
  background: var(--primary);
}

.workflow-mini .done {
  color: var(--primary);
}

.workflow-mini .active {
  color: var(--text);
}

.login-proof {
  max-width: 700px;
  margin-top: auto;
  padding-top: 32px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.login-proof strong,
.login-proof span {
  display: block;
}

.login-proof strong {
  font-size: 10px;
}

.login-proof span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1.5;
}

.login-form-panel {
  min-height: calc(100vh - 28px);

  display: grid;
  place-items: center;

  padding: 55px clamp(35px, 6vw, 95px);

  background: white;
}

.login-form-wrap {
  width: min(100%, 420px);
}

.mobile-brand {
  display: none;
}

.login-heading h2 {
  margin-bottom: 10px;
  font-size: 29px;
  letter-spacing: -.035em;
}

.login-heading p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.hml-warning {
  margin-top: 24px;
  padding: 11px 13px;

  border: 1px solid #e2e1ff;
  border-radius: 11px;

  background: #f8f7ff;
}

.hml-warning strong,
.hml-warning span {
  display: block;
}

.hml-warning strong {
  color: #5b54d9;
  font-size: 9px;
}

.hml-warning span {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 8px;
}

.login-form {
  margin-top: 24px;
}

.login-form > label {
  display: block;
  margin-top: 16px;
}

.login-form > label > span {
  display: block;
  margin-bottom: 7px;

  color: #344054;

  font-size: 9px;
  font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"],
.atuora-command input {
  width: 100%;
  min-height: 45px;

  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);

  outline: 0;

  color: var(--text);
  background: white;

  transition:
    border-color .2s,
    box-shadow .2s;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 0 13px;
  font-size: 11px;
}

.login-form input:focus,
.atuora-command input:focus {
  border-color: #aaa7ff;
  box-shadow:
    0 0 0 4px rgba(91,92,246,.09);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;

  width: 32px;
  height: 32px;

  border: 0;
  background: transparent;

  color: var(--muted);
  cursor: pointer;

  transform: translateY(-50%);
}

.login-options {
  margin: 15px 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--text-secondary);
  font-size: 9px;
}

.remember input {
  accent-color: var(--primary);
}

.link-button {
  border: 0;
  padding: 0;

  color: var(--primary);
  background: transparent;

  cursor: pointer;

  font-size: 9px;
  font-weight: 700;
}

.login-submit,
.primary-button {
  border: 0;
  border-radius: var(--radius-control);

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #716fff
    );

  box-shadow:
    0 9px 22px rgba(91,92,246,.19);

  cursor: pointer;

  font-weight: 800;
}

.login-submit {
  width: 100%;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 11px;
}

.login-submit:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: var(--muted);
  font-size: 8px;
}

.login-footer i {
  width: 3px;
  height: 3px;

  border-radius: 50%;
  background: #c6cad8;
}

/* PORTAL */

.portal-body {
  background: var(--canvas);
}

.portal-shell {
  min-height: 100vh;

  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;

  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 22px 16px 17px;

  background: white;
  border-right: 1px solid var(--border);
}

.sidebar-brand {
  padding: 3px 7px 20px;
}

.portal-nav {
  margin-top: 10px;
}

.nav-item {
  min-height: 40px;
  padding: 0 11px;
  margin: 3px 0;

  display: flex;
  align-items: center;
  gap: 10px;

  border-radius: 10px;

  color: var(--text-secondary);

  font-size: 10px;

  transition:
    background .15s,
    color .15s;
}

.nav-item > span {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.nav-item strong {
  font-weight: 650;
}

.nav-item:hover {
  color: var(--text);
  background: #f7f7fc;
}

.nav-item.active {
  color: #4f50df;
  background: var(--soft-purple);
}

.nav-item.atuora-link > span {
  color: var(--primary);
}

.nav-count {
  margin-left: auto;
  padding: 3px 7px;

  border-radius: 999px;

  color: white;
  background: var(--primary);

  font-style: normal;
  font-size: 8px;
  font-weight: 800;
}

.nav-divider {
  height: 1px;
  margin: 10px 8px;
  background: var(--border);
}

.sidebar-account {
  margin-top: 12px;
  padding: 11px 8px 4px;

  display: grid;
  grid-template-columns: 35px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;

  border-top: 1px solid var(--border);
}

.account-avatar {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #4f50df;
  background: var(--soft-purple);

  font-size: 10px;
  font-weight: 800;
}

.account-avatar.small {
  width: 32px;
  height: 32px;
}

.sidebar-account strong,
.sidebar-account span,
.topbar-user strong,
.topbar-user span {
  display: block;
}

.sidebar-account strong,
.topbar-user strong {
  font-size: 9px;
}

.sidebar-account span,
.topbar-user span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.sidebar-account button {
  border: 0;
  background: transparent;

  color: var(--muted);
  cursor: pointer;
}

.portal-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;

  min-height: 66px;
  padding: 0 31px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(247,248,252,.91);
  border-bottom: 1px solid rgba(231,233,242,.8);

  backdrop-filter: blur(14px);
}

.mobile-menu {
  display: none;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-context > span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.topbar-context button {
  min-height: 32px;
  padding: 0 10px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: white;

  cursor: pointer;

  font-size: 9px;
  font-weight: 700;
}

.topbar-context button strong {
  margin-left: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: white;

  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;

  width: 6px;
  height: 6px;

  border: 2px solid white;
  border-radius: 50%;

  background: var(--danger);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;

  padding-left: 5px;
}

.portal-content {
  width: min(100%, 1390px);
  margin: 0 auto;

  padding: 34px 34px 22px;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.welcome-row h1 {
  margin-bottom: 8px;

  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.04em;
}

.welcome-row p {
  max-width: 650px;
  margin-bottom: 0;

  color: var(--text-secondary);

  font-size: 11px;
  line-height: 1.6;
}

.primary-button {
  min-height: 40px;
  padding: 0 15px;

  font-size: 9px;

  transition: transform .15s;
}

.attention-card {
  margin-top: 25px;
  padding: 18px 20px;

  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;

  border: 1px solid #dbdaff;
  border-radius: var(--radius-card);

  background:
    linear-gradient(
      110deg,
      #f0efff,
      #f8f8ff 55%,
      white
    );

  box-shadow: var(--shadow-soft);
}

.attention-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #7773ff
    );

  box-shadow:
    0 8px 18px rgba(91,92,246,.17);

  font-size: 17px;
}

.attention-copy > span {
  display: block;
  margin-bottom: 3px;

  color: var(--primary);

  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
}

.attention-copy h2 {
  margin-bottom: 4px;
  font-size: 13px;
}

.attention-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 9px;
}

.attention-action {
  min-height: 36px;
  padding: 0 12px;

  border: 1px solid #dad9ff;
  border-radius: 10px;

  color: #4f50df;
  background: white;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;
}

.attention-action span {
  margin-left: 6px;
}

.section-block {
  margin-top: 31px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.section-heading h2,
.panel-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--muted);
  font-size: 8px;
}

.live-work-grid {
  margin-top: 13px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
}

.work-card {
  padding: 17px;

  border: 1px solid var(--border);
  border-radius: var(--radius-card);

  background: white;
  box-shadow: var(--shadow-soft);
}

.work-card.active-work {
  border-color: #dcdcff;
}

.work-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-avatar {
  width: 37px;
  height: 37px;

  flex: 0 0 37px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  font-family: "Sora";
  font-size: 10px;
  font-weight: 700;
}

.team-avatar.social {
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #807aff
    );
}

.team-avatar.social-secondary {
  color: #6c49ce;
  background: #f2eaff;
}

.team-avatar.traffic {
  color: #9a6513;
  background: var(--soft-amber);
}

.work-title {
  min-width: 0;
  flex: 1;
}

.work-title span,
.work-title strong {
  display: block;
}

.work-title span {
  color: var(--text-secondary);
  font-size: 8px;
}

.work-title strong {
  margin-top: 2px;
  font-size: 10px;
}

.working-badge {
  flex: 0 0 auto;
}

.waiting-badge {
  padding: 5px 8px;

  border-radius: 999px;

  color: #6b5be1;
  background: #f1efff;

  font-size: 7px;
  font-weight: 800;
}

.work-client {
  margin-top: 17px;
}

.work-client span,
.work-client strong {
  display: block;
}

.work-client span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.work-client strong {
  margin-top: 3px;
  font-size: 10px;
}

.workflow {
  margin-top: 20px;

  display: grid;
  grid-template-columns:
    auto 1fr auto 1fr auto 1fr auto;

  align-items: start;
}

.workflow-step {
  min-width: 38px;

  display: grid;
  justify-items: center;
  gap: 5px;

  color: var(--muted);
  font-size: 6px;
  font-weight: 700;
}

.workflow-step i {
  width: 17px;
  height: 17px;

  display: grid;
  place-items: center;

  border: 2px solid #dfe2ec;
  border-radius: 50%;

  background: white;

  font-style: normal;
  font-size: 7px;
}

.workflow-step.complete {
  color: #4f50df;
}

.workflow-step.complete i {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.workflow-step.active {
  color: var(--text);
}

.workflow-step.active i {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(91,92,246,.09);
}

.workflow-line {
  height: 2px;
  margin-top: 8px;

  background: #e9eaf1;
}

.workflow-line.complete {
  background: var(--primary);
}

.work-footer {
  margin-top: 17px;
  padding-top: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 7px;
}

.work-footer strong {
  color: var(--text-secondary);
}

.work-progress {
  color: var(--primary) !important;
}

.simple-progress {
  margin-top: 25px;
}

.simple-progress-head {
  display: flex;
  justify-content: space-between;

  color: var(--text-secondary);
  font-size: 8px;
}

.simple-progress-head strong {
  color: var(--primary);
}

.simple-progress-track {
  height: 7px;
  margin-top: 8px;

  overflow: hidden;

  border-radius: 999px;
  background: #eff0f5;
}

.simple-progress-track i {
  display: block;
  width: 84%;
  height: 100%;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      #8b7aff
    );
}

.quality-score {
  color: #0b8b6d !important;
  font-weight: 700;
}

.metric-grid {
  margin-top: 13px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.metric-card {
  padding: 16px;

  display: flex;
  align-items: center;
  gap: 11px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: white;
}

.metric-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  font-weight: 800;
}

.metric-icon.approval {
  color: #665be1;
  background: var(--soft-purple);
}

.metric-icon.working {
  color: #078a6d;
  background: var(--soft-green);
}

.metric-icon.teams {
  color: #3475d6;
  background: var(--soft-blue);
}

.metric-icon.delivered {
  color: #b57518;
  background: var(--soft-amber);
}

.metric-card strong,
.metric-card span,
.metric-card small {
  display: block;
}

.metric-card strong {
  font-family: "Sora";
  font-size: 18px;
}

.metric-card span {
  margin-top: 1px;
  font-size: 8px;
  font-weight: 700;
}

.metric-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.dashboard-grid {
  margin-top: 28px;

  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr);
  gap: 13px;
}

.panel {
  padding: 17px;

  border: 1px solid var(--border);
  border-radius: var(--radius-card);

  background: white;
}

.panel-heading {
  margin-bottom: 8px;
}

.panel-heading button {
  border: 0;
  background: transparent;

  color: var(--primary);
  cursor: pointer;

  font-size: 8px;
  font-weight: 700;
}

.team-row {
  min-height: 68px;

  display: grid;
  grid-template-columns:
    38px
    minmax(0,1fr)
    minmax(150px,.7fr)
    auto;

  align-items: center;
  gap: 11px;

  border-top: 1px solid var(--border);
}

.team-row-main strong,
.team-row-main span,
.team-current-work span,
.team-current-work strong {
  display: block;
}

.team-row-main strong {
  font-size: 9px;
}

.team-row-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.team-current-work span {
  color: var(--muted);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .07em;
}

.team-current-work strong {
  margin-top: 3px;
  font-size: 7px;
}

.team-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 7px;

  border-radius: 999px;

  color: #087c64;
  background: #edfcf7;

  font-size: 7px;
  font-weight: 700;
}

.inactive-status {
  padding: 5px 7px;

  border-radius: 999px;

  color: var(--muted);
  background: #f4f5f7;

  font-size: 7px;
  font-weight: 700;
}

.muted-team {
  opacity: .75;
}

.activity-list article {
  min-height: 58px;

  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;

  border-top: 1px solid var(--border);
}

.activity-check,
.activity-ai {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  font-size: 9px;
  font-weight: 800;
}

.activity-check {
  color: #087c64;
  background: var(--soft-green);
}

.activity-ai {
  color: #6257de;
  background: var(--soft-purple);
}

.activity-list strong,
.activity-list span {
  display: block;
}

.activity-list strong {
  font-size: 8px;
}

.activity-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.activity-list time {
  color: var(--muted);
  font-size: 7px;
}

.atuora-command {
  margin-top: 28px;
  padding: 17px;

  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;

  border: 1px solid #dedcff;
  border-radius: var(--radius-card);

  background:
    linear-gradient(
      110deg,
      #f3f2ff,
      white 70%
    );

  box-shadow: var(--shadow-soft);
}

.atuora-command-symbol {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #7c74ff
    );

  font-size: 16px;
}

.atuora-command-main > span {
  color: var(--primary);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
}

.atuora-command form {
  position: relative;
  margin-top: 7px;
}

.atuora-command input {
  min-height: 45px;
  padding: 0 50px 0 13px;

  font-size: 10px;
}

.atuora-command form button {
  position: absolute;
  top: 6px;
  right: 6px;

  width: 33px;
  height: 33px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 9px;

  color: white;
  background: var(--primary);

  cursor: pointer;
}

.prompt-chips {
  margin-top: 8px;

  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-chips button {
  padding: 6px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-secondary);
  background: white;

  cursor: pointer;

  font-size: 7px;
  font-weight: 600;
}

.portal-footer {
  padding: 20px 1px 2px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--muted);
  font-size: 7px;
}

@media (max-width: 1100px) {

  .portal-shell {
    grid-template-columns: 195px minmax(0,1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr 460px;
  }

  .login-brand-panel {
    padding-left: 4vw;
    padding-right: 4vw;
  }

}

@media (max-width: 850px) {

  .login-shell {
    display: block;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: calc(100vh - 28px);
    padding: 50px 25px;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 55px;
  }

  .portal-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -250px;
    z-index: 100;

    width: 230px;

    box-shadow:
      20px 0 40px rgba(16,24,63,.12);

    transition: left .2s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;

    cursor: pointer;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar-context {
    display: none;
  }

  .portal-content {
    padding: 25px 18px 20px;
  }

  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-work-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .topbar-user > div:last-child {
    display: none;
  }

  .attention-card {
    grid-template-columns: 40px minmax(0,1fr);
  }

  .attention-action {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-row {
    grid-template-columns: 38px minmax(0,1fr) auto;
  }

  .team-current-work {
    display: none;
  }

  .workflow-step span {
    font-size: 5px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

}

@media (max-width: 410px) {

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .prompt-chips {
    display: none;
  }

}


/* ============================================================
   ATUORA-WEB-00A-06-R1 VISUAL REFINEMENT
   ============================================================ */

/*
  01. LOGIN COMPOSITION
*/

.login-form-panel {
  place-items: start center;
  padding-top: clamp(62px, 8vh, 92px);
}

.login-message {
  margin-top: clamp(44px, 6.8vh, 82px);
}

.operation-preview {
  margin-top: 27px;
}

.login-proof {
  padding-top: 24px;
}

.login-form-wrap {
  transform: translateY(0);
}

.login-heading h2 {
  font-size: 31px;
}

.login-message h1 {
  max-width: 610px;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: 80px;

  width: 340px;
  height: 340px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(91,92,246,.08),
      transparent 68%
    );

  pointer-events: none;
}


/*
  02. PORTAL DENSITY
*/

.portal-content {
  padding-top: 25px;
}

.welcome-row {
  align-items: center;
}

.welcome-row h1 {
  margin-bottom: 5px;
}

.attention-card {
  margin-top: 18px;
}

.section-block {
  margin-top: 24px;
}

.dashboard-grid {
  margin-top: 22px;
}


/*
  03. LIVE WORK
*/

.work-card {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.work-card:hover {
  transform: translateY(-2px);

  border-color: #d7d6ff;

  box-shadow:
    0 15px 34px rgba(16,24,63,.08);
}

.work-card.active-work {
  position: relative;
  overflow: hidden;
}

.work-card.active-work::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 3px;
  height: 100%;

  background:
    linear-gradient(
      180deg,
      var(--primary),
      var(--signal)
    );
}

.workflow-step.active i {
  animation: workflowPulse 1.8s infinite;
}

@keyframes workflowPulse {

  0% {
    box-shadow:
      0 0 0 0 rgba(91,92,246,.20);
  }

  70% {
    box-shadow:
      0 0 0 7px rgba(91,92,246,0);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(91,92,246,0);
  }

}


/*
  04. DIGITAL EMPLOYEES
*/

.worker-lane {
  margin-top: 14px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.worker-lane-label {
  margin-right: 2px;

  color: var(--muted);

  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
}

.worker-chip {
  min-height: 25px;
  padding: 3px 8px 3px 4px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-secondary);
  background: #fbfbfe;

  font-size: 7px;
  font-weight: 650;
}

.worker-chip i {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #5b54d9;
  background: #ecebff;

  font-style: normal;
  font-size: 6px;
  font-weight: 850;
}

.worker-chip.active {
  color: #087c64;

  border-color: #c9f4e7;
  background: #f1fcf8;
}

.worker-chip.active i {
  color: white;
  background: var(--signal);
}

.worker-chip.active::after {
  content: "";

  width: 5px;
  height: 5px;

  margin-left: 1px;

  border-radius: 50%;

  background: var(--signal);

  animation: livePulse 1.8s infinite;
}


/*
  05. DIGITAL TEAM CARDS
*/

.panel .team-row {
  min-height: 82px;

  margin-top: 10px;
  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #ffffff,
      #fbfbff
    );

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.panel .team-row:hover {
  transform: translateY(-1px);

  border-color: #d9d8ff;

  box-shadow: var(--shadow-soft);
}

.panel .team-row + .team-row {
  margin-top: 8px;
}

.team-row-main {
  min-width: 0;
}

.team-headcount {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 7px;
}

.employee-chips {
  margin-top: 6px !important;

  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.employee-chips b {
  display: inline-flex;

  padding: 3px 6px;

  border-radius: 999px;

  color: #625b91;
  background: #f2f1ff;

  font-size: 6px;
  font-weight: 700;
}

.team-status {
  white-space: nowrap;
}


/*
  06. QUALITY MOTION
*/

.simple-progress-track {
  position: relative;
}

.simple-progress-track i {
  position: relative;
  overflow: hidden;
}

.simple-progress-track i::after {
  content: "";

  position: absolute;
  top: 0;
  left: -40%;

  width: 35%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.65),
      transparent
    );

  animation: qualitySweep 2.4s infinite;
}

@keyframes qualitySweep {

  from {
    left: -40%;
  }

  to {
    left: 115%;
  }

}


/*
  07. ATUORA GLOBAL COMMAND
*/

.atuora-command {
  position: sticky;
  bottom: 14px;
  z-index: 42;

  margin-top: 22px;

  border-color: rgba(203,201,255,.92);

  background:
    linear-gradient(
      110deg,
      rgba(243,242,255,.96),
      rgba(255,255,255,.97) 72%
    );

  box-shadow:
    0 16px 44px rgba(16,24,63,.13);

  backdrop-filter: blur(16px);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.atuora-command:focus-within {
  transform: translateY(-2px);

  box-shadow:
    0 20px 52px rgba(16,24,63,.16);
}

.atuora-command-symbol {
  animation: atuoraGlow 3s ease-in-out infinite;
}

@keyframes atuoraGlow {

  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(91,92,246,.08);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(91,92,246,.08);
  }

}

.portal-footer {
  padding-bottom: 24px;
}


/*
  08. RESPONSIVE R1
*/

@media (max-width: 850px) {

  .login-form-panel {
    padding-top: 48px;
  }

  .portal-content {
    padding-top: 20px;
  }

  .atuora-command {
    bottom: 8px;
  }

}

@media (max-width: 600px) {

  .worker-lane {
    gap: 5px;
  }

  .worker-chip {
    padding-right: 6px;
  }

  .panel .team-row {
    min-height: 76px;
  }

  .atuora-command {
    grid-template-columns: 36px minmax(0,1fr);
    padding: 13px;
  }

  .atuora-command-symbol {
    width: 35px;
    height: 35px;
  }

}
