:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #10243d;
  background: #f5f7fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
}
.hidden {
  display: none !important;
}
.muted {
  color: #6d7d91;
}
.eyebrow {
  margin: 0 0 10px;
  color: #3166f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 56px;
  height: 56px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 26px rgba(6, 25, 46, 0.14);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  left: -13px;
  bottom: -18px;
  width: 76px;
  height: 42px;
  transform-origin: bottom left;
}
.brand-mark::before {
  background: #0c52be;
  transform: rotate(-44deg);
}
.brand-mark::after {
  background: #f7d21f;
  transform: rotate(-29deg);
}
.brand-mark span::before {
  background: #e43b3b;
  transform: rotate(-14deg);
}
.brand-mark span::after {
  background: #138b54;
  transform: rotate(2deg);
}
.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.login-page {
  background: #eef2f6;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 1.05fr) minmax(460px, 0.95fr);
}
.login-brand {
  min-height: 100vh;
  padding: clamp(54px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background: #102c46;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -220px;
  top: -180px;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.025),
    0 0 0 180px rgba(255, 255, 255, 0.018);
}
.login-brand .eyebrow {
  color: #86adff;
  margin-top: 64px;
}
.login-brand h1 {
  position: relative;
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.brand-copy {
  max-width: 580px;
  margin: 28px 0 0;
  color: #b9c8d7;
  font-size: 20px;
  line-height: 1.58;
}
.security-note {
  margin-top: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.security-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #102c46;
  background: #75d9a8;
  font-weight: 900;
}
.security-note div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.security-note span:last-child {
  color: #9fb2c4;
  font-size: 14px;
}
.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: white;
}
.login-card {
  width: min(100%, 430px);
}
.login-card h2 {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: -0.035em;
}
.login-card > .muted {
  margin: 0 0 38px;
  font-size: 17px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 750;
}
.field input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  outline: none;
  color: #10243d;
  background: #fff;
}
.field input:focus {
  border: 2px solid #3166f5;
  padding: 0 15px;
  box-shadow: 0 0 0 4px #edf2ff;
}
.button {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
}
.button.primary {
  width: 100%;
  margin-top: 8px;
  color: white;
  background: #102c46;
}
.button.primary:hover {
  background: #173b5c;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-error {
  margin: 0 0 14px;
  padding: 13px 14px;
  border-radius: 10px;
  color: #a93636;
  background: #fff0ef;
  font-size: 14px;
}
.support-copy {
  margin: 26px 0 0;
  color: #7b8999;
  text-align: center;
  font-size: 13px;
}
.mobile-brand {
  display: none;
}

.admin-page {
  background: #f4f6f9;
}
.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  color: #dce7f1;
  background: #102c46;
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px 28px;
  color: white;
  text-decoration: none;
}
.sidebar-brand > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sidebar-brand strong {
  font-size: 20px;
}
.sidebar-brand span {
  color: #9fb3c6;
  font-size: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 10px;
  color: #b7c7d6;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
.nav-item > span {
  width: 22px;
  color: #8ea6ba;
  font-size: 19px;
  text-align: center;
}
.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-item.active {
  color: white;
  background: #1d4262;
  box-shadow: inset 3px 0 #6f97ff;
}
.nav-item.active > span {
  color: #85a7ff;
}
.sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #102c46;
  background: #dbe6ff;
  font-size: 13px;
  font-weight: 800;
}
.admin-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-summary strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-summary span {
  margin-top: 2px;
  overflow: hidden;
  color: #8fa5b8;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}
.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #a9bdce;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.icon-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.workspace {
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 58px) 56px;
}
.workspace-header {
  max-width: 1440px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.workspace-header .eyebrow {
  margin-bottom: 5px;
}
.workspace-header h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.035em;
}
.environment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 999px;
  color: #66778a;
  background: white;
  font-size: 12px;
  font-weight: 700;
}
.environment-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9a923;
  box-shadow: 0 0 0 3px #fff3d7;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}
.content {
  max-width: 1440px;
  margin: 0 auto;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  min-height: 162px;
  padding: 23px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 24px rgba(16, 36, 61, 0.04);
}
.metric-card::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  right: -18px;
  top: -18px;
  border-radius: 50%;
  background: #e8efff;
}
.metric-card.green::after {
  background: #e1f5eb;
}
.metric-card.amber::after {
  background: #fff2d7;
}
.metric-card.violet::after {
  background: #f0eaff;
}
.metric-label {
  margin: 0;
  color: #66778a;
  font-size: 13px;
  font-weight: 700;
}
.metric-value {
  display: block;
  margin: 18px 0 9px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.metric-note {
  color: #8996a5;
  font-size: 12px;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}
.panel {
  padding: 24px;
  border: 1px solid #e0e6ed;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 24px rgba(16, 36, 61, 0.04);
}
.section-header {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-header h2 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.section-header p {
  margin: 0;
  font-size: 12px;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: #758398;
  font-size: 11px;
}
.chart-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 2px;
}
.chart-legend .registrations::before {
  background: #315fdb;
}
.chart-legend .verifications::before {
  background: #55b98a;
}
.bar-chart {
  height: 228px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 12px;
  border-bottom: 1px solid #e7ebf0;
  background: repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 49px,
    #eef1f5 50px
  );
}
.bar-group {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 24px;
  gap: 8px;
  text-align: center;
}
.bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.bar {
  width: min(16px, 34%);
  min-height: 4px;
  border-radius: 5px 5px 1px 1px;
  background: #315fdb;
}
.bar.verifications {
  background: #55b98a;
}
.bar-group small {
  color: #8895a5;
  font-size: 10px;
}
.status-list {
  display: flex;
  flex-direction: column;
}
.status-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f4;
}
.status-row:last-child {
  border-bottom: 0;
}
.active-session-note {
  margin-top: 20px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  color: #536478;
  background: #f3f6f9;
  font-size: 12px;
}
.active-session-note strong {
  color: #10243d;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31a46c;
  box-shadow: 0 0 0 4px #dff3e9;
}
.activity-panel {
  margin-top: 16px;
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}
.activity-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
}
.activity-marker {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #16784d;
  background: #e1f5eb;
  font-size: 12px;
  font-weight: 900;
}
.activity-row div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-row div span {
  color: #8593a3;
  font-size: 11px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input,
.filter-select {
  height: 40px;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  outline: none;
  color: #10243d;
  background: white;
  font-size: 12px;
}
.search-input {
  width: 210px;
  padding: 0 13px;
}
.filter-select {
  min-width: 150px;
  padding: 0 30px 0 12px;
  text-transform: capitalize;
}
.search-input:focus,
.filter-select:focus {
  border: 2px solid #3166f5;
  box-shadow: 0 0 0 3px #edf2ff;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.data-table th {
  padding: 13px 14px;
  color: #718095;
  background: #f6f8fa;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.data-table th:first-child {
  border-radius: 9px 0 0 9px;
}
.data-table th:last-child {
  border-radius: 0 9px 9px 0;
}
.data-table td {
  max-width: 260px;
  padding: 17px 14px;
  overflow: hidden;
  border-bottom: 1px solid #edf0f4;
  color: #405168;
  font-size: 12px;
  text-overflow: ellipsis;
}
.data-table td:first-child {
  color: #10243d;
  font-weight: 700;
}
.empty-cell {
  padding: 50px !important;
  color: #8090a2 !important;
  text-align: center;
  font-weight: 500 !important;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #56677b;
  background: #eef1f5;
  font-size: 10px;
  font-weight: 750;
  text-transform: capitalize;
}
.status-verified,
.status-approved,
.status-consumed,
.status-live,
.status-administrator {
  color: #15734b;
  background: #e3f5ec;
}
.status-pending,
.status-in-progress,
.status-sandbox {
  color: #986500;
  background: #fff1d3;
}
.status-declined,
.status-rejected,
.status-failed,
.status-expired {
  color: #a53b3b;
  background: #ffedeb;
}
.status-citizen {
  color: #345fc5;
  background: #e9efff;
}
.status-active,
.status-valid {
  color: #15734b;
  background: #e3f5ec;
}
.status-inactive,
.status-revoked,
.status-locked {
  color: #a53b3b;
  background: #ffedeb;
}
.small-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #d8e0e8;
  border-radius: 9px;
  color: #29425d;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.small-button:hover {
  border-color: #b9c7d6;
  background: #f7f9fb;
}
.small-button.primary {
  border-color: #102c46;
  color: white;
  background: #102c46;
}
.small-button.danger {
  border-color: #a53b3b;
  color: white;
  background: #a53b3b;
}
.small-button.danger-outline {
  border-color: #e7b9b5;
  color: #a53b3b;
  background: #fff7f6;
}
.small-button.quiet {
  border-color: transparent;
  color: #52677d;
  background: #eef2f6;
}
.small-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.detail-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.7fr);
  gap: 16px;
}
.content > .panel,
.content > .detail-columns,
.content > .privacy-note {
  margin-top: 16px;
}
.content > .detail-toolbar + .detail-columns,
.content > .detail-toolbar + .panel {
  margin-top: 0;
}
.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #e5eaf0;
}
.detail-item {
  min-width: 0;
  padding: 15px;
  background: #fafbfd;
}
.detail-item dt {
  margin-bottom: 7px;
  color: #78879a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.detail-item dd {
  margin: 0;
  overflow: hidden;
  color: #18324c;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
}
.privacy-note {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  color: #596c81;
  background: #f1f5f9;
  font-size: 12px;
}
.privacy-note strong {
  color: #17334e;
  white-space: nowrap;
}
.administrator-form-panel {
  margin-bottom: 16px;
}
.administrator-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.compact-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #56677b;
  font-size: 11px;
  font-weight: 750;
}
.compact-field input,
.compact-field select,
.row-select {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  outline: none;
  color: #10243d;
  background: white;
  font-size: 12px;
}
.compact-field input:focus,
.compact-field select:focus,
.row-select:focus {
  border-color: #3166f5;
  box-shadow: 0 0 0 3px #edf2ff;
}
.row-select {
  min-width: 150px;
  text-transform: capitalize;
}
.row-select:disabled {
  color: #6f7f91;
  background: #f1f4f7;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  font-size: 12px;
}
.form-message.success {
  color: #15734b;
}
.form-message.error {
  color: #a53b3b;
}
.loading-state {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #718095;
}
.loading-state span {
  width: 34px;
  height: 34px;
  border: 3px solid #dce3ea;
  border-top-color: #3166f5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-state p {
  margin: 0;
  font-size: 13px;
}
.error-state {
  padding: 22px;
  border: 1px solid #f2d1ce;
  border-radius: 13px;
  color: #923c3c;
  background: #fff3f2;
}
.error-state p {
  margin: 7px 0 0;
}
.sidebar-scrim {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-header {
    align-items: start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .search-input {
    flex: 1;
  }
  .administrator-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-panel {
    padding: 28px;
  }
  .mobile-brand {
    width: min(100%, 430px);
    margin: 0 auto 46px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .admin-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim.visible {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 15;
    background: rgba(8, 26, 44, 0.48);
  }
  .workspace {
    padding: 24px 20px 48px;
  }
  .menu-button {
    display: block;
  }
  .workspace-header {
    justify-content: flex-start;
  }
  .environment-badge {
    margin-left: auto;
  }
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-panel {
    align-content: start;
    padding: 24px 20px;
  }
  .mobile-brand {
    margin-bottom: 70px;
  }
  .login-card h2 {
    font-size: 34px;
  }
  .environment-badge {
    display: none;
  }
  .workspace-header h1 {
    font-size: 28px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: 138px;
  }
  .activity-list {
    grid-template-columns: 1fr;
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
  }
  .search-input,
  .filter-select {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .administrator-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .privacy-note {
    flex-direction: column;
  }
}
