:root {
  font-family: Aptos, Inter, ui-sans-serif, system-ui, sans-serif;
  color: #153453;
  background: #f4f6f9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #153453;
  border-bottom: 4px solid #4895dc;
  color: white;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 18px 28px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand strong {
  font-size: 22px;
}
.brand small {
  display: block;
  opacity: 0.75;
  margin-top: 4px;
}
nav {
  display: flex;
  gap: 7px;
  flex: 1;
  flex-wrap: wrap;
}
button,
a.button {
  font: inherit;
  cursor: pointer;
  background: #2a5a8e;
  color: white;
  border: 1px solid #4271a5;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
button:hover,
a.button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.secondary {
  background: white;
  color: #2a5a8e;
  border-color: #cbd8e7;
}
nav button[aria-current="page"] {
  background: #fff;
  color: #153453;
}
:focus-visible {
  outline: 3px solid #4895dc;
  outline-offset: 3px;
}
.dev {
  background: #e6edf5;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  color: #35536c;
}
main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 32px 24px;
}
h1 {
  font-size: 30px;
  margin: 5px 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 14px;
}
p {
  line-height: 1.6;
  color: #5b6e78;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #5b6e78;
  text-transform: uppercase;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.pane {
  background: white;
  border: 1px solid #e3e8f0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 3px 16px rgba(21, 52, 83, 0.04);
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  background: #eaf0f7;
  border-radius: 10px;
  padding: 20px;
}
.metric strong {
  font-size: 27px;
  display: block;
  margin: 8px 0;
}
.metric small {
  color: #5b6e78;
}
.badge {
  display: inline-block;
  background: #e9f1fa;
  color: #2a5a8e;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 20px;
}
.badge.warn {
  background: #fff1d8;
  color: #785317;
}
.row {
  border-bottom: 1px solid #e3e8f0;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 5px 0;
  font-size: 14px;
}
.empty {
  padding: 30px;
  text-align: center;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5b6e78;
  margin: 14px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd8e7;
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 42px;
  font: inherit;
  font-size: 14px;
  color: #153453;
  background: #fff;
}
textarea {
  min-height: 100px;
}
textarea.code {
  font-family: ui-monospace, monospace;
  min-height: 420px;
  font-size: 12px;
  tab-size: 2;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 430px;
  overflow: auto;
  font-size: 12px;
  background: #f4f6f9;
  padding: 15px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #153453;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  max-width: 440px;
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e3e8f0;
}
th {
  color: #5b6e78;
  font-size: 12px;
}
code {
  overflow-wrap: anywhere;
}
@media (max-width: 1020px) {
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 22px 14px;
  }
  header {
    padding: 14px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 26px;
  }
}
.grid > * {
  min-width: 0;
}
.pane {
  min-width: 0;
  overflow-x: auto;
}
.permission-list {
  border: 1px solid #cbd8e7;
  border-radius: 9px;
  padding: 12px;
}
.permission-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #153453;
}
.permission-list input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}

#expenseRetention p {
  overflow-wrap: anywhere;
}

.expense-claim {
  border-top: 1px solid #e3e8f0;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.expense-claim label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expense-claim input[type="checkbox"] {
  width: auto;
  display: inline-block;
  flex: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.simulation-banner {
  border-left: 4px solid #6871c5;
}
.simulation-banner .actions {
  flex-wrap: wrap;
}
.simulation-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 18px 32px;
  color: #5b6e78;
}
.simulation-steps [aria-current="step"] {
  color: #153453;
  font-weight: 700;
}
.simulation-feedback {
  border-left: 3px solid #bc7c2d;
  padding: 12px;
  background: #fff8eb;
}

/* Engagement Studio: shared account shell and administration. */
[hidden] {
  display: none !important;
}
header {
  gap: 22px;
}
.brand {
  flex-shrink: 0;
}
.brand strong {
  font-size: 20px;
}
header nav {
  justify-content: flex-end;
}
.account-area {
  position: relative;
  margin-left: auto;
}
.account-button {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: flex;
}
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #dce9f7;
  color: #153453;
  border: 2px solid #9cb5d1;
  font-size: 15px;
  font-weight: 750;
}
.avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 260px;
  padding: 16px;
  border: 1px solid #d9e3f0;
  border-radius: 14px;
  background: #fff;
  color: #153453;
  box-shadow: 0 12px 36px #102b4926;
  z-index: 20;
}
.account-identity {
  padding: 0 0 15px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6edf5;
}
.account-identity small {
  display: block;
  color: #687c90;
  margin-top: 5px;
}
.account-menu button {
  width: 100%;
  text-align: left;
}
.admin-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.admin-sidebar {
  padding: 14px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 20px;
}
.admin-sidebar button {
  padding: 17px 14px;
  border-color: transparent;
  text-align: left;
  background: transparent;
  color: #153453;
  font-size: 15px;
}
.admin-sidebar button[aria-current="page"] {
  background: #e8f1fc;
  border-color: #c1d6ee;
}
.admin-content {
  min-width: 0;
}
.admin-content .pane {
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 3px 16px #19375504;
}
.admin-content h2 {
  font-size: 21px;
}
.admin-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.admin-section-heading p {
  margin: 0 0 20px;
}
.access-explainer {
  background: #fff7df;
  border: 1px solid #efdb9a;
  border-radius: 11px;
  padding: 16px 18px;
  color: #745a26;
  margin: 0 0 24px;
}
.admin-content .user-card {
  padding: 22px;
  margin: 12px 0;
  border: 1px solid #dce6f1;
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.user-card > div {
  flex: 1;
  min-width: 0;
}
.user-card strong {
  font-size: 17px;
}
.user-card .avatar {
  width: 52px;
  height: 52px;
}
.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}
.badge.success {
  color: #28694f;
  background: #e6f5ee;
}
.user-card label {
  max-width: 420px;
}
.admin-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.login-page {
  background: #e7eef2;
}
.login-page > header,
.login-page > .dev {
  display: none;
}
.login-page main {
  padding: 0;
  max-width: none;
}
.login-scene {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 125px 24px 85px;
  isolation: isolate;
  background:
    linear-gradient(90deg, #edf5fa33, #fff5df18),
    url("/assets/login-background.jpg") center / cover;
}
.login-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    #fff3 0%,
    transparent 30%,
    transparent 75%,
    #fff9 100%
  );
  z-index: -1;
}
.login-brand {
  position: absolute;
  top: 42px;
  left: 48px;
  color: #3a98d3;
}
.login-wordmark {
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 850;
  font-style: italic;
  letter-spacing: -1.2px;
}
.login-wordmark span {
  font-size: 10px;
  vertical-align: super;
}
.login-brand small {
  display: block;
  text-align: right;
  font-size: 8px;
  letter-spacing: 1px;
}
.login-access {
  position: absolute;
  top: 56px;
  right: 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.3px;
}
.login-card {
  text-align: center;
  padding: 70px 46px;
  width: min(590px, 100%);
  border: 1px solid #ffffffdb;
  outline: 1px solid #c8b78080;
  outline-offset: 8px;
  border-radius: 34px;
  background: #fffffff0;
  backdrop-filter: blur(14px);
  box-shadow:
    0 24px 80px #15345320,
    inset 0 0 50px #fff9;
}
.login-card h1 {
  font-size: clamp(36px, 4.5vw, 53px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 18px 0 16px;
  color: #0d2e50;
}
.login-card .eyebrow {
  color: #52738e;
  font-size: 10px;
  letter-spacing: 2px;
}
.login-card p {
  font-size: 20px;
  color: #35536d;
  margin: 0 0 35px;
}
.microsoft-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #0d2e50 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 19px 26px !important;
  font-size: 16px !important;
  box-shadow: 0 5px 15px #15345315;
}
.microsoft-mark {
  width: 23px;
  height: 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.microsoft-mark i:nth-child(1) {
  background: #f35325;
}
.microsoft-mark i:nth-child(2) {
  background: #81bc06;
}
.microsoft-mark i:nth-child(3) {
  background: #05a6f0;
}
.microsoft-mark i:nth-child(4) {
  background: #ffba08;
}
.login-help {
  display: block;
  margin-top: 22px;
  color: #61778b;
  font-size: 12px;
}
.login-scene footer {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 11px;
  color: #35536d;
}
.local-login {
  text-align: left;
  margin-top: 25px;
  font-size: 12px;
}
@media (max-width: 850px) {
  header {
    padding: 16px;
    gap: 14px;
  }
  header nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 11px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .admin-sidebar button {
    white-space: nowrap;
    padding: 12px;
  }
  .admin-section-heading {
    flex-direction: column;
    margin-bottom: 16px;
  }
  .admin-content .pane {
    padding: 18px;
  }
  .admin-content .user-card {
    padding: 16px;
  }
  .user-card .actions {
    flex-wrap: wrap;
  }
  .login-brand {
    top: 26px;
    left: 26px;
  }
  .login-access {
    top: 80px;
    left: 26px;
    right: auto;
    font-size: 9px;
  }
  .login-card {
    padding: 52px 24px;
  }
}
