:root {
  font-family: Inter, system-ui, sans-serif;
  color: #172b35;
  background: #f5f7fa;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 84px;
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.brand {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  color: #172b35;
  text-decoration: none;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  color: #647580;
}
main {
  max-width: 1500px;
  margin: 40px auto;
  padding: 0 32px;
}
h1 {
  font-size: 30px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  margin: 0;
}
p {
  color: #647580;
  line-height: 1.6;
}
section,
.store {
  background: white;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  margin: 0;
}
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}
.store dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 14px;
}
.store dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.store dt {
  color: #647580;
}
.store-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.badge {
  font-size: 12px;
  background: #eff4f8;
  padding: 5px 9px;
  border-radius: 20px;
}
.active,
.verified,
.succeeded,
.ready {
  background: #e4f5ec;
  color: #17603b;
}
.failed,
.suspended {
  background: #ffebe8;
  color: #a32b23;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
button {
  background: #193944;
  color: white;
  border: 1px solid #193944;
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
button.secondary {
  background: white;
  color: #193944;
  border-color: #d3dce5;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select {
  font: inherit;
  border: 1px solid #cfd9e3;
  padding: 10px 12px;
  border-radius: 7px;
  width: 100%;
  min-height: 42px;
  background: #fff;
  color: inherit;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
label.check {
  flex-direction: row;
  align-items: center;
  margin-top: 20px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
form.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.form-action {
  display: flex;
  align-items: flex-end;
}
.inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline input {
  max-width: 170px;
}
.login {
  max-width: 460px;
  margin: 100px auto;
}
.login form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
#notice {
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #fff1d7;
  color: #694807;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #e8ecf1;
}
th {
  color: #647580;
  font-weight: 500;
}
.table-wrap {
  overflow: auto;
}
pre {
  background: #102b36;
  color: #dceee8;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  border-radius: 8px;
}
a {
  color: #235a76;
}
small {
  color: #647580;
}
.domain-list {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8ecf1;
}
.domain-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}
#account {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
  }
  main {
    padding: 0 16px;
    margin-top: 24px;
  }
  form.grid {
    grid-template-columns: 1fr 1fr;
  }
  .stores {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #account {
    gap: 8px;
  }
  .inline {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  form.grid {
    grid-template-columns: 1fr;
  }
  .brand span {
    display: none;
  }
  section,
  .store {
    padding: 18px;
  }
  .store dl {
    grid-template-columns: 90px 1fr;
  }
}

.user-permissions {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
.user-permissions summary {
  cursor: pointer;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.feature-grid small {
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
}
.feature-grid select {
  width: 100%;
}
@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
