:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20252b;
  background: #f8f9fa;
  font-size: 14px;
  letter-spacing: 0;
  --accent: #12695d;
  --line: #dde3e5;
  --muted: #657078;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  border: 1px solid #cbd4d7;
  border-radius: 5px;
  min-height: 36px;
  padding: 7px 12px;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
}
button:hover {
  background: #edf3f2;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #0f594f;
}
.icon {
  height: 18px;
  width: 18px;
  flex: 0 0 18px;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
}
.icon-button img {
  width: 18px;
  height: 18px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 25px 16px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  padding: 0 8px;
}
.brand img {
  width: 26px;
  height: 26px;
}
.brand small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.environment {
  font-size: 11px;
  text-transform: uppercase;
  color: #896520;
  background: #fff6db;
  padding: 5px 8px;
  border-radius: 3px;
  margin: 20px 8px 8px;
  align-self: flex-start;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
nav button {
  text-align: left;
  justify-content: flex-start;
  border: 0;
  background: none;
  width: 100%;
  font-weight: 550;
  padding: 10px 12px;
  min-height: 42px;
}
nav button.active {
  background: #e7f2ef;
  color: #105e50;
}
aside footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 8px 0;
  overflow-wrap: anywhere;
}
aside footer strong {
  display: block;
  font-size: 13px;
}
aside footer small {
  color: var(--muted);
  display: block;
  margin: 4px 0 12px;
}
main.workspace {
  margin-left: 230px;
  min-height: 100vh;
  padding: 0 36px 40px;
}
main > header.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.topbar select {
  max-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 4px;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  margin: 29px 0 6px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
p.subtitle {
  color: var(--muted);
  margin: 0 0 25px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.toolbar input {
  width: 300px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.toolbar .actions {
  display: flex;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 3px;
  background: #edf1f3;
  color: #52606a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge.good {
  background: #e3f2eb;
  color: #166446;
}
.badge.warn {
  background: #fff0d7;
  color: #856020;
}
.badge.blue {
  background: #e7effb;
  color: #315ba0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e9edef;
  vertical-align: middle;
}
th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 650;
  background: #fafbfc;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
td.name {
  min-width: 200px;
}
td .row-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 23px 0;
}
.stat {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.stat strong {
  font-size: 25px;
  font-weight: 600;
  display: block;
  margin-top: 8px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  gap: 14px;
}
.app-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.app-item header img {
  height: 24px;
  width: 24px;
}
.app-item strong {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.app-item a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}
.app-item .muted {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.section-title {
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notice {
  border-left: 3px solid #a37824;
  background: #fff8e7;
  padding: 12px 15px;
  color: #725622;
  margin: 16px 0;
  font-size: 13px;
}
.empty {
  padding: 38px;
  text-align: center;
  color: var(--muted);
}
.login {
  max-width: 440px;
  margin: 12vh auto;
  padding: 30px;
}
.login .brand {
  padding: 0;
  margin-bottom: 40px;
}
.login h1 {
  font-size: 28px;
}
.login a.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 14px;
  margin: 13px 0;
  font-weight: 600;
}
.login a.login-button.primary {
  background: var(--accent);
  color: #fff;
}
.login footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.login .demo {
  font-size: 12px;
  display: block;
  margin-top: 24px;
}
.login .brand img {
  filter: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 500px;
  max-width: calc(100% - 24px);
  padding: 0;
  box-shadow: 0 16px 70px #182e3330;
}
dialog::backdrop {
  background: #14232670;
}
dialog header,
dialog footer {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
dialog footer {
  border: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
#editor-body {
  padding: 22px;
  max-height: 65vh;
  overflow: auto;
}
label.field {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
label.field input,
label.field select {
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #cbd4d7;
  border-radius: 4px;
  color: #20252b;
  background: white;
}
.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.detail {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  font-size: 13px;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.vault-band {
  display: flex;
  gap: 24px;
  border-block: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 25px;
  align-items: center;
}
.vault-band > .brand-icon {
  height: 50px;
  width: 50px;
  flex: none;
}
.vault-band h2 {
  margin-bottom: 10px;
}
.vault-band a {
  display: inline-flex;
  margin-top: 10px;
}
.loading,
.example {
  max-width: 700px;
  margin: 10vh auto;
  padding: 30px;
}
.example .brand-icon {
  width: 60px;
}
.error {
  color: #ad302d;
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: calc(100vw - 44px);
  padding: 14px 18px;
  background: #203c36;
  color: white;
  border-radius: 5px;
  z-index: 10;
  box-shadow: 0 4px 20px #203c3630;
}
#toast.error {
  background: #8c302c;
}
.policy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.policy-row p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.segmented {
  display: flex;
  gap: 3px;
  background: #e9eef0;
  padding: 3px;
  border-radius: 5px;
}
.segmented button {
  border: 0;
  background: none;
  min-height: 30px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 3px #0001;
}
.mobile-only {
  display: none;
}
.mobile-brand {
  display: none;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.count {
  color: var(--muted);
  font-size: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #128270;
}
@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main.workspace {
    padding-inline: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2) {
    border: 0;
  }
}
@media (max-width: 700px) {
  .mobile-only {
    display: inline-flex;
  }
  .topbar > span {
    display: none;
  }
  aside {
    position: sticky;
    inset: 0;
    width: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .brand {
    font-size: 16px;
    padding: 0;
  }
  aside .brand img {
    width: 23px;
    height: 23px;
  }
  aside .brand small,
  .environment,
  aside footer {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 10px;
    gap: 2px;
  }
  nav button {
    width: auto;
    flex: 0 0 auto;
    font-size: 12px;
    min-height: 36px;
    padding: 7px;
  }
  nav .icon {
    width: 16px;
    height: 16px;
  }
  main.workspace {
    margin: 0;
    padding: 0 14px 28px;
  }
  main > header.topbar {
    height: 55px;
    font-size: 12px;
  }
  .topbar select {
    max-width: 175px;
  }
  h1 {
    font-size: 24px;
    margin-top: 22px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    margin-top: 18px;
  }
  .stat {
    padding: 15px 8px;
  }
  .stat strong {
    font-size: 22px;
  }
  .toolbar input {
    width: 100%;
  }
  th,
  td {
    padding: 12px;
  }
  .toolbar .actions {
    flex-wrap: wrap;
  }
  .vault-band {
    align-items: flex-start;
    gap: 14px;
  }
  .vault-band > .brand-icon {
    width: 32px;
    height: 32px;
  }
  dialog header,
  dialog footer,
  #editor-body {
    padding: 16px;
  }
  .login {
    margin: 7vh auto;
    padding: 24px;
  }
  .policy-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail {
    grid-template-columns: 100px 1fr;
  }
}
