[hidden] {
  display: none !important;
}

.portal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
  color: #17243b;
}

.portal-header,
.brand,
.account-bar,
.workspace-nav,
.page-heading,
.section-heading,
.application-toolbar,
.user-row,
.diagnostic-row,
.score-metric {
  display: flex;
  align-items: center;
}

.portal-header {
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 32px;
}

.brand {
  gap: 12px;
  color: #17243b;
  text-decoration: none;
}

.brand-mark,
.access-icon,
.user-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e7f7f3;
  color: #079c80;
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small,
.account-bar {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: #8190a4;
  font-size: 12px;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #53627a;
  font-size: 13px;
}

.access-panel {
  display: grid;
  min-height: min(660px, calc(100vh - 140px));
  place-items: center;
}

.access-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(34 49 76 / 8%);
}

.access-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 16px;
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #079c80;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-card h1,
.page-heading h1 {
  margin: 0;
  color: #17243b;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.035em;
}

.access-card > p:not(.eyebrow),
.page-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #75839a;
}

.portal-form {
  display: grid;
  gap: 16px;
}

.access-card .portal-form {
  margin-top: 26px;
}

.portal-form label {
  display: grid;
  gap: 7px;
  color: #31415a;
  font-size: 13px;
  font-weight: 650;
}

.portal-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #fff;
  color: #18263c;
  outline: none;
}

.portal-form input:focus {
  border-color: #08b994;
  box-shadow: 0 0 0 3px rgb(8 185 148 / 12%);
}

.portal-form label small,
.security-note,
.disclaimer {
  color: #8591a4;
  font-size: 12px;
  font-weight: 400;
}

.access-card .button,
.page-heading .button {
  min-height: 44px;
}

.security-note {
  margin: 22px 0 0;
  line-height: 1.65;
}

.form-error,
.form-success {
  margin: 0;
  color: #bd3649;
  font-size: 13px;
}

.form-success,
.is-good {
  color: #098d72 !important;
}

.workspace-nav {
  gap: 5px;
  min-height: 58px;
  margin-bottom: 26px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  background: #fff;
}

.nav-tab,
.text-button {
  border: 0;
  background: transparent;
  color: #738198;
  font: inherit;
  cursor: pointer;
}

.nav-tab {
  flex: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}

.nav-tab:hover,
.nav-tab.is-active {
  background: #eaf8f5;
  color: #078b72;
}

.page-heading {
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

.page-heading p {
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card,
.content-card,
.notice-card,
.score-card {
  border: 1px solid #e8edf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgb(34 49 76 / 3%);
}

.stat-card {
  padding: 20px 22px;
}

.stat-card span,
.stat-card small {
  display: block;
  color: #8190a4;
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin: 8px 0 2px;
  color: #17243b;
  font-size: 28px;
  letter-spacing: -.04em;
}

.content-card {
  margin-bottom: 18px;
  padding: 22px;
}

.content-card h2,
.section-heading h2 {
  margin: 0;
  color: #1d2b42;
  font-size: 16px;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 4px 0 0;
  color: #8995a8;
  font-size: 12px;
}

.text-button {
  padding: 5px 0;
  color: #078b72;
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.danger-text {
  color: #bd3649;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.application-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.application-table th {
  padding: 11px 12px;
  color: #8a96a9;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.application-table td {
  padding: 14px 12px;
  border-top: 1px solid #eef1f4;
  color: #43516a;
  font-size: 13px;
}

.application-table td:first-child {
  min-width: 180px;
}

.application-table td small {
  display: block;
  margin-top: 4px;
  color: #93a0b2;
  font-size: 11px;
}

.application-table td strong {
  color: #26354d;
}

.application-actions {
  min-width: 150px;
  white-space: nowrap;
}

.application-actions .text-button + .text-button {
  margin-left: 12px;
}

.application-document-link {
  display: inline-block;
  margin-top: 6px;
  color: #078b72;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.application-document-link:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #f0f3f7;
  color: #68768b;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.is-complete {
  background: #e6f7f2;
  color: #078b72;
}

.status-pill.is-warning {
  background: #fff3dc;
  color: #93600a;
}

.submission-status-warning {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #f0cd88;
  border-radius: 12px;
  background: #fff8e9;
  color: #714f16;
  line-height: 1.55;
}

.submission-status-warning strong {
  font-size: 15px;
}

.submission-status-warning span {
  font-size: 14px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 155px;
  align-content: center;
  color: #79869a;
  text-align: center;
}

.empty-state strong {
  color: #34425a;
}

.empty-state p {
  margin: 0;
  font-size: 12px;
}

.empty-mark,
.score-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf8f5;
  color: #079c80;
  font-weight: 800;
}

.is-error {
  color: #bd3649;
}

.notice-card {
  padding: 18px 20px;
  border-color: #dcefe9;
  background: #f3fbf8;
}

.notice-card strong {
  color: #087c67;
  font-size: 13px;
}

.notice-card p {
  margin: 5px 0 0;
  color: #6d837e;
  font-size: 12px;
  line-height: 1.65;
}

.submit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px;
}

.submit-card h2 {
  margin: 0;
  color: #1d2b42;
  font-size: 17px;
}

.submit-card p {
  margin: 5px 0 0;
  color: #7f8ba0;
  font-size: 12px;
}

.submit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #e7f7f3;
  color: #079c80;
  font-size: 24px;
  font-weight: 700;
}

.scoring-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-card {
  min-height: 280px;
  padding: 24px;
  color: #78869b;
}

.score-card h2 {
  margin: 6px 0;
  color: #26354d;
  font-size: 20px;
}

.score-card > p:last-child {
  font-size: 12px;
  line-height: 1.6;
}

.score-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  font-size: 17px;
}

.score-card.is-good {
  border-color: #ccebe2;
  background: #f5fbf8;
}

.score-card.is-caution {
  border-color: #f3e5bf;
  background: #fffcf4;
}

.score-card.is-high {
  border-color: #f0d7dc;
  background: #fff8f8;
}

.score-metric {
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid rgb(128 142 162 / 15%);
  font-size: 12px;
}

.score-metric strong {
  color: #28374e;
}

.disclaimer {
  margin: 0 0 20px;
  line-height: 1.65;
}

.quota-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dcefe9;
  border-radius: 10px;
  background: #f3fbf8;
  color: #087c67;
  font-size: 13px;
  line-height: 1.5;
}

.submit-card + .quota-summary {
  margin-bottom: 12px;
}

.user-row {
  flex-wrap: wrap;
  padding: 12px 0;
}

.user-row > .user-identity {
  flex: 1 1 180px;
}

.user-limit-form {
  display: flex;
  flex: 1 1 340px;
  align-items: flex-end;
  gap: 8px;
}

.user-limit-form label {
  display: grid;
  flex: 1 1 100px;
  gap: 4px;
  color: #68768b;
  font-size: 11px;
}

.user-limit-form input {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  color: #18263c;
}

.user-limit-form .button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.diagnostics-card > p {
  color: #8390a3;
  font-size: 12px;
}

.diagnostic-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef1f4;
  color: #65738a;
  font-size: 12px;
}

.diagnostic-row strong,
.is-caution {
  color: #b17a12;
  font-size: 12px;
}

.user-row {
  gap: 12px;
  min-height: 64px;
  border-top: 1px solid #eef1f4;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
}

.user-row > div:nth-child(2) {
  flex: 1;
}

.user-row strong,
.user-row small {
  display: block;
}

.user-row strong {
  color: #34425a;
  font-size: 13px;
}

.user-row small,
.loading-state {
  color: #8793a6;
  font-size: 11px;
}

.application-toolbar {
  justify-content: space-between;
  margin: 0 0 12px;
  color: #718098;
  font-size: 12px;
}

.application {
  margin-top: 0;
}

@media (max-width: 720px) {
  .portal {
    width: min(100% - 24px, 600px);
    padding-top: 16px;
  }

  .portal-header {
    margin-bottom: 22px;
  }

  .access-card {
    padding: 28px 22px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 17px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .scoring-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading .button {
    width: 100%;
  }

  .submit-card {
    grid-template-columns: auto 1fr;
  }

  .submit-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .user-limit-form {
    flex-basis: calc(100% - 48px);
    margin-left: 48px;
  }

  .user-row > .danger-text {
    margin-left: 48px;
  }

  .content-card {
    padding: 17px;
  }

  .account-bar {
    gap: 8px;
    font-size: 11px;
  }

  .account-bar .button {
    padding: 8px 10px;
  }
}
