:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #22384b;
  background: #f6f3ed;
  --ink: #22384b;
  --border: #d4dde4;
  --muted: #52616e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.portal-header, main { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.portal-header img { display: block; width: 8rem; height: auto; }
main { padding-bottom: 2rem; }
h1 { margin: 0 0 .5rem; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.2; }
p { margin: .4rem 0 1.1rem; color: var(--muted); line-height: 1.5; }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}
.sign-in { max-width: 29rem; margin: 4vh auto 0; }
form, label { display: grid; gap: .45rem; }
form { gap: 1rem; }
label { font-weight: 600; }
input, button { font: inherit; }
input {
  min-height: 2.9rem;
  width: 100%;
  color: var(--ink);
  border: 1px solid #8a9eae;
  border-radius: .4rem;
  padding: .65rem .8rem;
}
.nuber-password-field { position: relative; display: block; width: 100%; min-width: 0; }
.nuber-password-field input.nuber-password-input { box-sizing: border-box; padding-inline-end: 3.4rem; }
.nuber-password-field input::-ms-reveal { display: none; }
.nuber-password-field button.nuber-password-toggle {
  position: absolute; inset-block-start: 50%; inset-inline-end: 3px; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px;
  margin: 0; padding: 9px; border: 0; border-radius: .35rem; background: transparent;
  color: var(--ink); box-shadow: none; touch-action: manipulation;
}
.nuber-password-field button.nuber-password-toggle:hover,
.nuber-password-field button.nuber-password-toggle[aria-pressed="true"] { background: #edf2f6; }
.nuber-password-field button.nuber-password-toggle:focus-visible { outline-offset: -2px; }
.nuber-password-toggle svg { width: 22px; height: 22px; }
.nuber-password-toggle[aria-pressed="false"] .nuber-password-eye-slash { display: none; }
button {
  min-height: 2.75rem;
  border-radius: .4rem;
  border: 1px solid var(--ink);
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
button.secondary { background: white; color: var(--ink); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #2676a8; outline-offset: 3px; }
#resellerMessage:not(:empty) {
  background: #fff;
  padding: .75rem 1rem;
  border-left: 3px solid var(--ink);
  border-radius: .25rem;
}
#resellerMessage:empty { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; list-style: none; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--ink); color: #fff; }
th, td { padding: .6rem .7rem; text-align: left; overflow-wrap: anywhere; }
thead th:last-child, td:last-child { text-align: center; }
tbody th { background: #e6eef4; }
td { border-bottom: 1px solid var(--border); }
td:last-child svg { display: block; margin-inline: auto; }
.visually-hidden {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.portal-nav,.product-actions,.catalog-heading,.catalog-paging {
  display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;
}
.portal-nav {margin-bottom:1rem;}
.portal-nav button[aria-current="true"] {background:var(--ink);color:#fff;}
.portal-nav button:not([aria-current="true"]) {background:#fff;color:var(--ink);}
.catalog-heading {justify-content:space-between;margin-bottom:1rem;}
.catalog-heading h1 {margin:0;}
.portal-link {
  display:inline-flex;align-items:center;min-height:2.75rem;border:1px solid var(--ink);
  border-radius:.4rem;padding:.55rem .8rem;color:var(--ink);text-decoration:none;font-weight:650;
}
.portal-link:hover {background:#edf2f6;}
.reseller-search {display:flex;gap:.5rem;max-width:35rem;}
.reseller-search input {min-width:0;}
.catalog-cards {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10.5rem),1fr));gap:.9rem;
}
.catalog-card {
  min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:.65rem;background:#fff;
}
.catalog-card .catalog-cover {
  display:grid;place-items:center;width:100%;aspect-ratio:1;border:0;border-radius:0;padding:0;
  color:var(--ink);background:#f0f2f3;
}
.catalog-cover img {display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:1;}
.catalog-cover:focus-visible {outline-offset:-4px;}
.catalog-card h2,.catalog-card h4 {font-size:1rem;margin:0 0 .5rem;}
.catalog-card .catalog-card-info {padding:.75rem;overflow-wrap:anywhere;}
.catalog-card-info p {font-size:.9rem;margin-bottom:.65rem;}
.catalog-card-info button {width:100%;padding-inline:.5rem;}
.catalog-paging {justify-content:center;margin-top:1rem;}
.product-actions {margin:0 0 1.2rem;}
#productDescription {white-space:pre-wrap;overflow-wrap:anywhere;}
#productMedia {margin-bottom:1.3rem;}
#catalogDetail h3 {margin-top:1.25rem;}
@media (max-width: 36rem) {
  main, .portal-header { width: calc(100% - 1rem); }
  th, td { padding: .48rem .3rem; }
  .table-wrap { margin-inline: -.5rem; }
}
