:root{
  --ink:#131722;
  --muted:#7b8190;
  --line:#e4e7ec;
  --paper:#fff;
  --soft:#f3f5f8;
  --panel:#fff;
  --yellow:#dfb84a;
  --yellow-deep:#c59a28;
  --green:#237a55;
  --shadow:0 16px 40px rgba(26,31,44,.08);
}

html{background:#f3f5f8}
body{background:#f3f5f8;color:#141824;letter-spacing:.005em}
.wrap{width:min(1540px,calc(100% - 64px))}

.topbar{
  height:72px;
  padding:0 max(32px,calc((100vw - 1540px)/2));
  background:#11151e;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 26px rgba(7,10,16,.16);
}
.brand{color:#fff;font-size:17px}
.brand small{color:#8f97a6;letter-spacing:.12em}
.brandmark{
  background:#dfb84a;
  color:#151821;
  border-radius:9px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.nav{gap:8px}
.nav a{color:#adb3bf;padding:10px 17px;border-radius:9px}
.nav a:hover{color:#fff;background:rgba(255,255,255,.07)}
.nav a.active{color:#161a22;background:#dfb84a;font-weight:800}

.hero{min-height:126px;padding:29px 0 25px;align-items:center;background:transparent}
.hero h1{font-size:34px;letter-spacing:-.035em;color:#151925}
.hero p{margin-top:6px;font-size:14px;color:#7f8592}
.catalog-section{padding:0 0 72px;background:#f3f5f8}
.section-heading{margin:0 0 16px;align-items:center}
.section-heading h2{font-size:25px;font-weight:800;letter-spacing:-.02em}
.section-heading>p{
  padding:6px 11px;
  border:1px solid #e0e3e8;
  border-radius:999px;
  background:#fff;
  color:#717784;
  font-size:12px;
}

.filters{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  padding:20px;
  margin-bottom:14px;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 26px rgba(29,35,47,.045);
}
.filters label,.filter-field-label{color:#4d5361;font-size:12px;font-weight:700}
.filters input,.filters select,.category-picker-trigger{
  height:42px;
  border:1px solid #dce0e6;
  border-radius:9px;
  background:#f9fafb;
  font-size:13px;
}
.filters input:focus,.filters select:focus,.category-picker-trigger:focus{
  background:#fff;
  border-color:#c69a28;
  box-shadow:0 0 0 3px rgba(223,184,74,.16);
}
.filter-actions{grid-column:5;align-items:end}
.filter-actions button{height:42px;border-radius:9px;padding:0 18px}
.primary{background:#171b24;color:#fff}
.primary:hover{background:#292f3c}
.secondary{border:1px solid #dfe2e7;background:#fff;color:#555c68}
.filter-note{
  grid-column:1/5;
  margin:0;
  padding:8px 0 0;
  border-top:1px solid #f0f1f3;
  color:#8a909b;
  font-size:12px;
}

.period-toolbar{
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 22px rgba(29,35,47,.035);
}
.period-toolbar>div:first-child strong{font-size:14px}
.period-toolbar>div:first-child span{font-size:12px}
.period-presets{border-color:#e0e3e8;border-radius:9px}
.period-presets button{height:38px;border-color:#e0e3e8;color:#555b67}
.period-presets button.active{background:#dfb84a;color:#171a21}
.period-inputs input{height:38px;border-color:#dfe2e7;border-radius:8px}

.filter-summary{
  display:grid;
  grid-template-columns:1.1fr repeat(5,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
.filter-summary>div{
  min-width:0;
  padding:14px 18px;
  border:1px solid #e1e4e9;
  border-radius:13px;
  background:#fff;
  box-shadow:0 6px 22px rgba(29,35,47,.035);
}
.filter-summary span,.filter-summary small{display:block;color:#858b97;font-size:12px}
.filter-summary strong{display:block;margin:3px 0 1px;font-size:22px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.filter-summary .filter-summary-amount{color:#d13047}
.filter-summary .filter-summary-spend{color:#b86a22}
.filter-summary .filter-summary-profit{color:#6e4aa1}
.filter-summary-context{border-left:4px solid #dfb84a!important}
.filter-summary-context strong{font-size:18px}

.product-list-head{
  padding:13px 20px;
  border:0;
  border-radius:13px 13px 0 0;
  background:#171b24;
  color:#c9ced7;
  font-size:12px;
  letter-spacing:.02em;
}
.product-grid{
  border:1px solid #e1e4e9;
  border-top:0;
  border-radius:0 0 13px 13px;
  box-shadow:0 12px 34px rgba(28,34,47,.06);
}
.product-card{
  padding:15px 20px;
  border-color:#eceef2;
  background:#fff;
  transition:background .15s,box-shadow .15s;
}
.product-card:hover{background:#fffaf0;box-shadow:inset 3px 0 0 #dfb84a}
.product-image{width:82px;height:82px;border:1px solid #e4e6eb;border-radius:12px;background:#f7f8fa}
.product-image img{padding:3px}
.product-identity{margin-left:96px}
.product-id{
  color:#8a909d;
  font-size:12px;
  font-weight:500;
  background:transparent;
  border:0;
  padding:0;
  margin:0 0 4px;
}
.product-identity h3{font-size:14px;line-height:1.45;font-weight:800}
.category-line{margin:3px 0 8px;font-size:12px;color:#858b97}
.identity-controls{gap:7px}
.identity-controls .product-level select,
.identity-controls .product-channel select,
.identity-controls .product-assignee select,
.identity-controls .product-type select{
  height:30px;
  border:1px solid #dfe2e7;
  border-radius:7px;
  background:#fafbfc;
  color:#404651;
  font-size:11px;
}
.row-metric strong{font-size:17px}
.sales-value{color:#d13047}
.filter-summary .filter-summary-profit{color:#13815f}.filter-summary .filter-summary-profit.is-loss{color:#d13047}
.row-metric small{font-size:11px;color:#9298a4}
.channel-sales{padding:8px 10px;border-color:#e3e6ea;border-radius:9px;background:#f8f9fb}
.channel-sales-total strong{font-size:16px}
.channel-sales-breakdown small{font-size:9px}
.percent-input input{height:38px;border-color:#dfe2e7;border-radius:8px;background:#fafbfc}
.card-actions a{
  min-height:38px;
  border-radius:9px;
  background:#dfb84a;
  color:#171a21;
  font-size:12px;
  box-shadow:none;
}
.card-actions a:hover{background:#cfa63a}
.footer{background:#11151e;color:#9299a7}
.footer strong{color:#e4e6eb}

@media(max-width:1279px){
  .filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .filter-actions{grid-column:3}
  .filter-note{grid-column:1/3}
}

@media(max-width:1100px){
  .product-card{padding:15px}
  .product-identity{margin-left:0}
  .filter-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
  .wrap{width:calc(100% - 28px)}
  .topbar{height:auto;padding:12px 14px 10px}
  .nav{gap:3px}
  .nav a{padding:8px 12px}
  .hero{min-height:104px;padding:22px 0 18px}
  .hero h1{font-size:28px}
  .catalog-section{padding-bottom:48px}
  .section-heading{align-items:flex-start}
  .section-heading h2{font-size:23px}
  .filters{grid-template-columns:1fr;padding:15px}
  .filter-actions,.filter-note{grid-column:1}
  .filter-summary{grid-template-columns:1fr 1fr}
  .filter-summary-context{grid-column:1/-1}
  .filter-summary>div{padding:12px 14px}
  .filter-summary strong{font-size:19px}
  .product-card{padding:14px}
  .product-image{width:82px;height:82px}
}
