* {
  box-sizing: border-box;
}
html {
  font:
    16px/1.5 "Inter",
    "Segoe UI",
    system-ui,
    sans-serif;
  color: #202c42;
  background: #f5f7fb;
}
body {
  margin: 0;
}
a {
  color: #324fc5;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6487fa;
  outline-offset: 3px;
}
aside {
  overflow-y: auto;
  width: 225px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #152137;
  color: #f6f8ff;
  display: flex;
  flex-direction: column;
  padding: 30px 18px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.055em;
}
.brandmark {
  display: grid;
  place-items: center;
  background: #798aff;
  color: #111d3c;
  font:
    italic 800 1.45rem Georgia,
    serif;
  width: 36px;
  height: 36px;
  border-radius: 11px 11px 11px 3px;
}
.nav-label,
.eyebrow {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.nav-label {
  color: #afbad0;
  margin: 52px 12px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.94rem;
  color: #cbd5e8;
  border-radius: 7px;
}
nav a span {
  font-size: 1.25rem;
}
nav a.selected,
nav a:hover {
  background: #2a3957;
  color: white;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #344057;
  padding: 20px 6px 0;
  font-size: 0.88rem;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  background: #354866;
}
.text {
  color: #c6d0df;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  font-size: 0.85rem;
}
.text:hover {
  background: transparent;
  text-decoration: underline;
}
main {
  margin-left: 225px;
  min-height: 100vh;
}
.top {
  background: white;
  border-bottom: 1px solid #e1e5ee;
  display: flex;
  gap: 15px;
  padding: 18px clamp(20px, 4vw, 62px);
  font-size: 0.875rem;
  color: #637087;
}
.top i {
  color: #aaa;
  font-style: normal;
}
.top b {
  font-weight: 550;
  color: #36415a;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 42px clamp(20px, 4vw, 62px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.eyebrow,
.back {
  color: #4c60ab;
}
.back {
  font-size: 0.9rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin: 8px 0;
}
h2 {
  font-size: 1.23rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}
p,
small,
.category-line > span {
  color: #627087;
}
p {
  margin: 6px 0;
}
button,
.button {
  border: 1px solid #cbd3e0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  background: #fff;
  color: #34415a;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #f0f3fa;
}
.primary {
  background: #4559d5;
  color: white;
  border-color: #4559d5;
}
.primary:hover {
  background: #3548bf;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.metrics article,
.panel,
.login-card {
  border: 1px solid #dce2ed;
  background: white;
  border-radius: 13px;
  box-shadow: 0 2px 5px #14284206;
}
.metrics article {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.metrics article div > span {
  font-size: 0.85rem;
  color: #536179;
}
.metrics strong {
  display: block;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin-top: 4px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.tone0 {
  background: #ebedff;
  color: #4f5fce;
}
.tone1 {
  background: #e4f4eb;
  color: #267450;
}
.tone2 {
  background: #fff0df;
  color: #99601c;
}
.tone3 {
  background: #e7f0fc;
  color: #38679b;
}
.panel {
  overflow: hidden;
}
.panel-title,
.filters,
.actions,
.inline,
.category-line,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-title {
  padding: 21px 23px 14px;
}
.count,
.pill {
  border-radius: 20px;
  background: #edf0f6;
  padding: 2px 9px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #586379;
}
.filters {
  padding: 0 23px 20px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 170px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 12px;
  color: #233048;
  background: white;
  font-size: 0.94rem;
}
select {
  padding-right: 26px;
}
textarea {
  resize: vertical;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 0.8rem;
  color: #53627b;
  background: #f6f8fb;
  font-weight: 600;
  border-block: 1px solid #e3e8f0;
}
td,
th {
  padding: 13px 19px;
}
td {
  border-bottom: 1px solid #edf0f5;
  font-size: 0.9rem;
}
td:first-child {
  min-width: 200px;
}
.product-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #283757;
}
.product-link:hover b {
  text-decoration: underline;
}
.product-link img,
.thumb {
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 8px;
  background: #edf0fb;
}
.thumb {
  display: grid;
  place-items: center;
  color: #6677c5;
}
.product-link small {
  display: block;
}
.low {
  color: #985309;
}
.active,
.notice {
  background: #e5f4ed;
  color: #21623f;
}
.empty {
  text-align: center;
  padding: 46px 18px 50px;
}
.empty p {
  margin-bottom: 18px;
}
.folder {
  position: relative;
  width: 86px;
  height: 69px;
  background: #f0f2ff;
  border-radius: 20px;
  margin: 0 auto 19px;
}
.folder i,
.folder b {
  position: absolute;
  left: 19px;
  top: 23px;
  width: 48px;
  height: 32px;
  background: #7e8beb;
  border-radius: 4px;
}
.folder i:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 21px;
  height: 8px;
  border-radius: 4px;
  background: #7e8beb;
}
.folder b {
  top: 31px;
  height: 25px;
  transform: skewX(-9deg);
  background: #bec6ff;
  border: 1px solid #9faaf3;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.error {
  background: #ffeded;
  color: #943939;
}
footer {
  padding: 15px 23px;
  font-size: 0.9rem;
}
footer span {
  margin-right: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.editor-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.block {
  padding: 24px;
  margin-bottom: 20px;
}
.block h2 {
  margin-bottom: 16px;
}
.block label,
.login label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 14px 0 5px;
}
.inline,
.category-line {
  align-items: end;
}
.inline label,
.category-line label {
  flex: 1;
}
.category-line {
  border-top: 1px solid #e6e9f1;
  padding: 5px 0 15px;
}
.category-line > span {
  align-self: center;
}
.actions {
  justify-content: flex-end;
  gap: 20px;
}
.photo-card {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 12px;
  min-width: 0;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dce2ed;
  border-radius: 8px;
}
.photo-card legend { max-width: 100%; overflow-wrap: anywhere; font-weight: 600; }
.photo-card img { width: 72px; height: 72px; object-fit: contain; background: #f5f7fb; border-radius: 6px; }
.block .photo-card label { margin-top: 0; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.block .photo-actions label { display: flex; align-items: center; gap: 5px; }
.photo-actions input { width: 16px; min-height: 16px; accent-color: #4559d5; }
.upload {
  background: #f6f7fe;
  border: 1px dashed #acb6dd;
  border-radius: 8px;
  padding: 16px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eaf0f7;
  padding: 16px;
}
.login-card {
  width: min(100%, 410px);
  padding: 34px;
}
.login .brand {
  margin-bottom: 34px;
}
.login h1 {
  font-size: 2rem;
}
.login button {
  margin-top: 20px;
  width: 100%;
}
@media (max-width: 1150px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  aside {
    width: auto;
    position: static;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
  }
  .nav-label,
  .avatar,
  .account b {
    display: none;
  }
  nav {
    grid-row: 2;
    display: flex;
    grid-column: 1/-1;
  }
  nav a {
    padding: 5px 12px;
  }
  .account {
    margin: 0;
    border: 0;
    padding: 0;
  }
  .brand {
    font-size: 1.12rem;
  }
  main {
    margin: 0;
  }
  .top {
    padding: 10px 20px;
  }
  .content {
    padding: 24px 16px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metrics article {
    padding: 13px;
    gap: 8px;
  }
  .metrics {
    gap: 8px;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metrics strong {
    font-size: 1.5rem;
  }
  header {
    flex-wrap: wrap;
  }
  .filters,
  .panel-title,
  .block {
    padding-left: 16px;
    padding-right: 16px;
  }
  .filters label {
    flex: 1;
  }
  .search {
    min-width: 100%;
  }
  .category-line,
  .inline {
    flex-wrap: wrap;
  }
  .category-line label,
  .inline label {
    min-width: 160px;
  }
  .empty {
    padding: 32px 12px;
  }
}
.option {
  border-top: 1px solid #dce2ed;
  padding: 14px 0;
}
.option summary {
  cursor: pointer;
}
.option summary span {
  margin-left: 10px;
}
.option-total {
  color: #536179;
  font-size: 0.9rem;
}
.variant-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.remove {
  margin-top: 12px;
}
.remove summary {
  color: #8a4540;
}
.pick {
  width: 18px;
  min-height: 18px;
  accent-color: #4559d5;
}
.block .actions {
  margin-top: 20px;
}
@media (max-width: 760px) {
  nav {
    flex-wrap: wrap;
  }
}
.order-details > .editor-grid { margin-top: 20px; }
.order-details dl { margin: 0; }
.order-details dd { margin: 0 0 12px; overflow-wrap: anywhere; }
.order-details dt { color: #53627b; }
.order-details .order-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 30px; max-width: 380px; margin-left: auto; padding: 18px 24px; }
.order-totals dd { text-align: right; margin: 0; }
.order-details address { font-style: normal; overflow-wrap: anywhere; }
.order-details address > * { display: block; }
.category-delete { margin:.35rem 0 1rem; }
.category-delete summary { width:fit-content; cursor:pointer; color:#973a33; padding:.35rem 0; }
.demand .panel { margin-block:1.3rem; }
.demand .panel > p,.demand small { color:#556274; }
.demand small { display:block; font-size:.82rem; }
.demand a { color:#234782; text-underline-offset:.18em; }
.demand-links,.watch-row { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; }
.market-filter { align-items:end; }
.market-row { display:grid; grid-template-columns:minmax(9rem,2fr) minmax(7rem,1fr) minmax(8rem,1fr) auto; align-items:center; gap:1rem; }
.market-row,.watch-row { padding:.85rem 0; border-top:1px solid #dae0e7; }
.watch-row > div { flex:1; }
.market-fields,.ai-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:1rem; align-items:end; margin:1rem 0; }
.market-fields label,.ai-form label { min-width:0; }
.market-fields input,.ai-form input:not([type=checkbox]) { width:100%; }
.ai-form { max-width:32rem; grid-template-columns:1fr; }
#lot-result { display:block; white-space:pre-line; background:#eef4f1; border-radius:8px; padding:1rem; line-height:1.65; font-variant-numeric:tabular-nums; }
@media(max-width:760px) { .market-row { grid-template-columns:minmax(0,1fr) auto; gap:.55rem; } .market-row a,.watch-row strong { overflow-wrap:anywhere; } }
.category-delete button { background:#912e28; color:white; }
.store-availability { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: .85rem 1.1rem; margin:0 0 1rem; border:1px solid #ccd4df; border-radius:.75rem; background:white; }
.store-availability p { margin:.15rem 0 0; color:#53627b; }
.store-availability button { display:flex; align-items:center; gap:.5rem; min-height:44px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.availability-track { display:block; width:2.6rem; padding:3px; border-radius:2rem; background:#677483; }
.availability-track::after { content:""; display:block; width:1rem; height:1rem; border-radius:50%; background:white; }
.store-availability [aria-checked=true] .availability-track { background:#176047; }
.store-availability [aria-checked=true] .availability-track::after { margin-left:auto; }
