@font-face {
  font-family: Manrope;
  src: url("/brand/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7f8;
  color: #0a2540;
  font:
    1rem/1.5 Manrope, "Segoe UI",
    Arial,
    sans-serif;
}
header {
  background: #0a2540;
  color: #fff;
  border-bottom: 3px solid #b95c36;
}
.wrap {
  max-width: 1080px;
  margin: auto;
  padding: 0 1.5rem;
}
.head,
.heading,
.dialoghead {
  display: flex;
  align-items: center;
}
.head {
  height: 76px;
  gap: 1rem;
}
.brand {
  display: block;
  width: clamp(112px, 14vw, 164px);
  height: auto;
}
.divider {
  height: 22px;
  border-left: 1px solid #73819a;
}
.head > a {
  margin-left: auto;
  color: white;
}
.heading,
.dialoghead {
  justify-content: space-between;
  gap: 1rem;
}
.heading {
  margin: 3rem 0 1.75rem;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -0.06em;
  line-height: 1.12;
  margin: 0;
}
h2 {
  font-size: 1.45rem;
  margin: 0;
}
p {
  color: #415170;
}
button,
.primary,
input,
select,
textarea {
  font: inherit;
}
button,
.primary {
  color: #19345d;
  background: #fff;
  cursor: pointer;
  border: 1px solid #bcc9d9;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}
.primary {
  display: inline-block;
  background: #a64e2c;
  border-color: #a64e2c;
  color: white;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}
label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.filters label:first-child {
  flex: 1;
}
input,
select,
textarea {
  background: white;
  color: inherit;
  border: 1px solid #9dacbe;
  border-radius: 6px;
  padding: 0.6rem;
  max-width: 100%;
  width: 100%;
}
.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid #d7e0eb;
  background: white;
  padding: 1.1rem 1.3rem;
}
.card strong {
  display: block;
}
.card small {
  font-size: 0.9rem;
  color: #4a5b76;
}
.card .detail {
  flex: 1;
}
.tag {
  font-size: 0.85rem;
  color: #125e51;
  background: #e4f5ed;
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
}
.tag.hold {
  color: #812b23;
  background: #fdeae6;
}
dialog {
  color: inherit;
  width: min(530px, 94vw);
  border: 1px solid #c6d2df;
  border-radius: 14px;
  padding: 1.5rem;
}
dialog::backdrop {
  background: #11244280;
}
.dialoghead {
  margin-bottom: 1.2rem;
}
#fields {
  display: grid;
  gap: 1rem;
}
#welcome {
  margin: clamp(4rem, 13vw, 9rem) auto;
  max-width: 660px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #d8dfe4;
  border-radius: 18px;
  background: white;
}
#welcome p {
  margin: 1rem 0 2rem;
}
#notice,
#dialog-notice {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.result {
  min-height: 6rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b95c36;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
}
.empty {
  padding: 2rem;
  background: white;
  margin: 0;
  text-align: center;
}
.meta {
  font-size: 0.91rem;
  color: #526580;
}
.history {
  max-height: 9rem;
  overflow: auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 580px) {
  .wrap {
    padding: 0 1rem;
  }
  .head {
    height: 62px;
    gap: 0.55rem;
  }
  .head > a {
    font-size: 0.88rem;
  }
  .heading {
    flex-wrap: wrap;
    margin-top: 2rem;
    align-items: flex-start;
  }
  .filters,
  .card {
    flex-wrap: wrap;
  }
  .card {
    gap: 0.6rem;
  }
  .card .detail {
    min-width: min(100%, 13rem);
  }
  .filters label {
    min-width: 100%;
  }
  .card button {
    margin-left: auto;
  }
}

#licenses {
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid #d8dfe4;
  border-radius: 12px;
  background: white;
}
.card:last-child { border-bottom: 0; }
.card > img { width: 34px; height: 34px; object-fit: contain; }
.card .detail { overflow-wrap: anywhere; }
.welcome-products, .welcome-products span { display: flex; align-items: center; gap: .75rem; }
.welcome-products img { width: 42px; height: 42px; object-fit: contain; }
.welcome-products { flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.welcome-products span { font-weight: 700; }
.primary:hover { background: #893f24; }
button:not(.primary):hover { border-color: #b95c36; }
@media (max-width: 400px) {
  .head { gap: .45rem; }
  .head > a { font-size: .875rem; }
  .head > .divider, .head > .divider + span { display: none; }
}

.pages { display: flex; gap: .5rem; border-bottom: 1px solid #ced7df; padding: .6rem 0 0; }
.pages a { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1rem; color: #43566a; font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.pages a[aria-current="page"] { color: #0a2540; border-color: #b95c36; }
.pages a:hover, .product-link:hover { background: #f3eee9; }
.pages img { width: 22px; height: 22px; object-fit: contain; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 0; }
.metrics > div { padding: 1.5rem; background: white; border: 1px solid #d4dce3; border-radius: 12px; }
.metrics > div:first-child { background: #0a2540; color: white; border-color: #0a2540; }
.metrics dt, .profile-data dt { font-weight: 650; }
.metrics dd { margin: .55rem 0 .25rem; font-size: clamp(2.25rem,5vw,3.4rem); line-height: 1.1; font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metrics small { color: #45586a; font-size: .875rem; }
.metrics > div:first-child small { color: #d7e2ec; }
.metric-note { font-size: .875rem; }
.section-title, .product-link, .profile-product, .profile-actions { display: flex; align-items: center; gap: .8rem; }
.section-title { margin: 2.3rem 0 .8rem; justify-content: space-between; flex-wrap: wrap; }
.section-title a { color: #874023; font-weight: 650; }
#products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.product-link { padding: 1.15rem; background: white; border: 1px solid #d4dce3; border-radius: 12px; color: inherit; text-decoration: none; }
.product-link > img { width: 52px; height: 52px; object-fit: contain; }
.product-link strong, .product-link div span { display: block; }
.product-link strong { font-size: 1.14rem; }
.product-link div span, .count { color: #506274; font-size: .875rem; }
.count { margin-left: auto; white-space: nowrap; }
.tag.waiting { background: #faf0df; color: #74470e; }
.profile-product { flex-wrap: wrap; border-bottom: 1px solid #d8dfe4; padding: .25rem 0 1rem; }
.profile-product img { width: 32px; height: 32px; }
.profile-product span { font-size: .875rem; color: #4d6070; }
.profile-data { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.profile-data dt { font-size: .875rem; color: #526474; }
.profile-data dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.profile-actions { flex-wrap: wrap; }
#dialog-title { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .pages a { padding: .65rem .3rem; }
  .metrics, #products { grid-template-columns: 1fr; }
  .metrics > div { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: 1rem; }
  .metrics dd { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
  .card .detail { min-width: 0; flex-basis: 65%; }
}
