:root {
  font-family: "Trebuchet MS", "Liberation Sans", sans-serif;
  color: #202b31;
  background: #f4f7f8;
  font-size: 15px;
  letter-spacing: 0;
  --accent: #067d83;
  --line: #d8e1e4;
  --muted: #60717a;
  --danger: #a4273d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  border: 1px solid #b9c9cf;
  background: #fff;
  color: #203b45;
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 40px;
}
button:hover {
  background: #edf5f5;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #006a70;
}
.danger {
  color: var(--danger);
}
.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.icon svg {
  width: 19px;
  height: 19px;
}
a {
  color: var(--accent);
}
header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
}
.brand {
  font-weight: bold;
  font-size: 25px;
  text-decoration: none;
  color: #005e87;
  white-space: nowrap;
  letter-spacing: 0;
}
.brand span {
  font-size: 15px;
  color: #425962;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 10px;
}
#identity {
  margin-left: auto;
  color: var(--muted);
  max-width: 45%;
  overflow-wrap: anywhere;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 32px;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
p {
  line-height: 1.5;
}
.login {
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.login-photo {
  background: url("/water.jpg") center/cover;
  min-height: 430px;
  position: relative;
}
.login-photo span {
  position: absolute;
  bottom: 32px;
  left: 32px;
  padding: 10px 14px;
  color: #fff;
  background: #003d57;
  font-size: 23px;
  font-weight: bold;
}
.login form {
  padding: 48px;
  align-self: center;
  max-width: 530px;
  width: 100%;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: bold;
  margin: 0 0 14px;
  letter-spacing: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: bold;
}
input,
select {
  width: 100%;
  border: 1px solid #afc1c8;
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 43px;
  background: #fff;
  color: #202b31;
}
input:focus,
select:focus {
  outline: 2px solid #067d83;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
label.check {
  flex-direction: row;
  align-items: center;
  font-weight: normal;
  margin: 9px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.login .primary {
  width: 100%;
  margin: 4px 0 16px;
}
.link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 4px 0;
}
.error,
[role="alert"] {
  color: var(--danger);
  min-height: 22px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
  border: 1px solid var(--line);
  padding: 14px;
  background: #f2f7f7;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 16px;
}
.workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.sidebar button {
  border: none;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sidebar button.active {
  background: #deeff0;
  color: #00656b;
  font-weight: bold;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar h1 {
  margin: 0 auto 0 0;
}
.toolbar select {
  width: auto;
  max-width: 100%;
}
.table-scroll {
  overflow: auto;
  background: white;
  border-top: 2px solid #6f8995;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  color: #536870;
  font-size: 12px;
  text-transform: uppercase;
  background: #edf2f4;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td {
  max-width: 350px;
  overflow-wrap: anywhere;
}
td small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
td .actions {
  flex-wrap: nowrap;
}
td button {
  font-size: 13px;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  background: #e4edf0;
  border-radius: 3px;
  white-space: nowrap;
}
.badge.ACTIVE {
  background: #ddf0e5;
  color: #23613e;
}
.badge.SUSPENDED {
  background: #f9e3e7;
  color: #9e2940;
}
.badge.PENDING {
  background: #fff1cd;
  color: #75590c;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 24px;
  border-radius: 4px;
}
.product h2 {
  margin-bottom: 8px;
}
.product p {
  color: var(--muted);
  font-size: 14px;
}
.product .actions {
  margin-top: 24px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 540px;
  max-width: calc(100% - 24px);
  max-height: 90vh;
  padding: 26px;
  box-shadow: 0 16px 70px #16374433;
}
dialog::backdrop {
  background: #152a38a6;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  margin: 0;
}
footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.checks {
  max-height: 45vh;
  overflow: auto;
  padding-right: 10px;
}
.muted {
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #163b3e;
  color: #fff;
  border-radius: 4px;
  padding: 14px 22px;
  max-width: calc(100% - 32px);
  box-shadow: 0 4px 20px #0002;
  z-index: 20;
}
#notice.error {
  background: #8c1f32;
}
.launch {
  padding: 40px 0;
  max-width: 640px;
}
code {
  overflow-wrap: anywhere;
}
button[hidden],
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header {
    padding: 0 18px;
    gap: 12px;
  }
  main {
    padding: 20px;
  }
  .login {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .login-photo {
    min-height: 180px;
  }
  .login-photo span {
    left: 20px;
    bottom: 20px;
    font-size: 20px;
  }
  .login form {
    padding: 28px;
    max-width: 500px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }
  .sidebar button {
    white-space: nowrap;
  }
  .toolbar h1 {
    font-size: 24px;
  }
  th,
  td {
    padding: 12px;
  }
  #identity {
    font-size: 12px;
  }
  .brand {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: appear 0.24s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
