* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7f8;
  color: #343a41;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(5%, 24px);
  background: white;
  border-bottom: 1px solid #dce1e4;
}
header img {
  width: 96px;
  height: 38px;
  object-fit: contain;
}
header b {
  padding-left: 17px;
  border-left: 1px solid #c8cfd4;
}
header span {
  flex: 1;
}
main {
  max-width: 1120px;
  padding: 28px 24px;
  margin: auto;
}
.heading,
.actions,
.rowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 24px;
}
.kicker {
  font-size: 12px;
  color: #4b686c;
  font-weight: 750;
  letter-spacing: 0;
}
.heading {
  margin: 12px 0 20px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  cursor: pointer;
  font-weight: 650;
}
button,
a#preview {
  border: 1px solid #cdd4d8;
  background: white;
  border-radius: 7px;
  padding: 8px 14px;
  text-decoration: none;
  color: #37414a;
}
button.primary {
  background: #195d61;
  color: white;
  border-color: #195d61;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ed8e46;
  outline-offset: 2px;
}
input,
select,
textarea {
  padding: 9px 12px;
  min-height: 42px;
  border: 1px solid #bcc8cc;
  background: white;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
  margin: 10px 0;
}
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
input[type="color"] {
  width: 72px;
  padding: 3px;
}
#products {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #cbd4d7;
}
.product {
  background: #fff;
  border: 1px solid #d4dcde;
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  min-width: 165px;
}
.product small {
  color: #526569;
}
nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #d6dedf;
  padding-bottom: 10px;
}
nav button {
  border: 0;
  background: transparent;
}
nav [aria-current="true"] {
  background: #dceeed;
  color: #185353;
}
#editor {
  padding: 18px 0;
  max-width: 840px;
}
.entry,
form#auth {
  background: #fff;
  border: 1px solid #d4dce0;
  border-radius: 8px;
  padding: 18px;
  margin: 12px 0;
}
.entry img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}
.entry .rowhead button {
  font-size: 14px;
}
#login {
  max-width: 420px;
  margin: 8vh auto;
}
#auth {
  display: grid;
  gap: 8px;
}
#status:not(:empty) {
  position: sticky;
  bottom: 12px;
  background: #243e42;
  color: white;
  padding: 11px 16px;
  border-radius: 6px;
}
#editor > p {
  padding: 14px 0;
}
dialog {
  max-width: min(520px, 92%);
  border: 1px solid #c3cfd4;
  border-radius: 8px;
}
dialog::backdrop {
  background: #0006;
}
dialog img,
.brand img {
  max-width: 100%;
  height: auto;
}
.brand {
  max-width: 800px;
}
.brand h1 {
  border-bottom: 4px solid var(--brand);
  padding-bottom: 14px;
}
.brand details {
  border-bottom: 1px solid #ccd7d9;
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.brand p {
  white-space: pre-line;
}
.brand article {
  margin: 18px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 16px;
  }
  .heading {
    align-items: flex-start;
  }
  .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .product {
    min-width: 0;
    flex: 1;
  }
  nav {
    flex-wrap: nowrap;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  .heading > label {
    width: 100%;
  }
}
