:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f5f7ff;
  background: #0b1022;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% 0, #23336a, transparent 35%), #0b1022;
}
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1150px, calc(100% - 32px)); margin: auto; }
.bar { background: #0d1328; border-bottom: 1px solid #293153; }
.bar-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  color: white;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand small {
  color: #8c99be;
  display: block;
  font-size: .62rem;
  letter-spacing: .22em;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: linear-gradient(140deg, #5869f5, #73e9d0);
  display: grid;
  place-items: center;
  color: #081023;
  font-size: 1.7rem;
}
.account, .close {
  border: 1px solid #465176;
  background: #1a2444;
  color: white;
  border-radius: 12px;
  padding: 11px 16px;
}
.intro {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.intro h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.05em;
  line-height: 1.1;
  margin: 8px 0 15px;
}
.intro p:not(.eyebrow), .muted { color: #aab8d6; line-height: 1.6; }
.eyebrow {
  color: #71eed2;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .18em;
  margin: 0;
}
.intro-deco {
  min-width: 250px;
  padding: 55px 24px;
  text-align: center;
  font-weight: 900;
  letter-spacing: .1em;
  border: 1px solid #455388;
  background: linear-gradient(135deg, #262f61, #16445a);
  border-radius: 24px;
  color: #79f1d5;
  transform: rotate(-5deg);
}
.workspace {
  border: 1px solid #303a64;
  background: #121a36;
  border-radius: 25px;
  padding: 26px;
  margin-bottom: 45px;
}
.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.head h2 { margin: 5px 0 0; }
.count { color: #a3afd2; }
.controls { display: flex; gap: 12px; margin: 23px 0; flex-wrap: wrap; }
#search {
  flex: 1;
  min-width: 230px;
  background: #0b122b;
  border: 1px solid #3a476f;
  color: white;
  border-radius: 13px;
  padding: 14px 16px;
}
.tabs { display: flex; gap: 7px; overflow-x: auto; max-width: 100%; }
.tab {
  white-space: nowrap;
  background: #1c274a;
  border: 1px solid #354368;
  color: #aebce0;
  border-radius: 11px;
  padding: 11px 13px;
}
.tab[aria-pressed=true] {
  background: #6fe8cf;
  border-color: #6fe8cf;
  color: #071c25;
}
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.brand-card, .item {
  text-align: left;
  border: 1px solid #354168;
  border-radius: 15px;
  background: #1b2546;
  color: white;
  padding: 16px;
}
.brand-card { min-height: 80px; font-weight: 750; }
.brand-card:hover, .item:hover { border-color: #76efd5; }
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.item strong, .item small { display: block; }
.item small { color: #a6b3d3; margin-top: 6px; }
.item b { color: #81f1d7; white-space: nowrap; }
.back {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  color: #81f1d7;
  text-align: left;
  padding: 5px;
}
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 21px;
}
.pages button {
  background: #233153;
  color: white;
  border: 1px solid #3b496f;
  border-radius: 9px;
  padding: 8px 11px;
}
.pages button:disabled { opacity: .4; }
.empty { grid-column: 1 / -1; color: #a7b3d1; }
dialog {
  border: 1px solid #44527e;
  background: #17213e;
  color: white;
  border-radius: 21px;
  padding: 26px;
  width: min(450px, calc(100% - 24px));
}
dialog::backdrop { background: #050914bc; }
dialog h2 { margin: 8px 0 10px; }
.close-row { display: flex; justify-content: end; }
.close { font-size: 1.4rem; line-height: 1; padding: 3px 9px; }
dialog label { display: block; margin: 18px 0; }
dialog input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid #4a5980;
  border-radius: 11px;
  background: #0d152e;
  color: white;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: #71edd1;
  color: #092128;
  font-weight: 850;
}
.text-button {
  border: 0;
  background: transparent;
  color: #89ead5;
  padding: 5px 0;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid #3a476a;
  border-bottom: 1px solid #3a476a;
  padding: 18px 0;
}
dt { color: #aebbd8; }
dd { margin: 0; font-weight: 750; }
@media (max-width: 830px) {
  .intro-deco { display: none; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .intro { min-height: 195px; }
  .intro h1 { font-size: 2.1rem; }
  .workspace { padding: 18px; }
  .brands, .products { grid-template-columns: 1fr; }
  .account { font-size: .8rem; padding: 9px; }
}
