@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{
  --bg:#f7f8f5;
  --paper:#fff;
  --ink:#1d3029;
  --muted:#7d8982;
  --line:#e5eae3;
  --green:#21684d;
  --pale:#eaf2eb;
  --orange:#b8793b
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'DM Sans','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:14px
}
button,input,select{
  font:inherit
}
button,a,input,select{
  touch-action:manipulation
}
button,a{
  -webkit-tap-highlight-color:transparent
}
button{
  cursor:pointer
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
  outline:2px solid var(--green);
  outline-offset:3px
}
a{
  color:inherit;
  text-decoration:none
}
button{
  color:inherit
}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:244px;
  background:#fff;
  border-right:1px solid var(--line);
  padding:34px 19px 16px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin:0 9px 46px
}
.brand-icon{
  background:var(--green);
  color:white;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  font-size:34px;
  font-weight:700
}
.brand-icon span{
  font-size:20px;
  margin-top:-13px;
  margin-left:0
}
.brand strong{
  font-size:23px;
  letter-spacing:-1px
}
.brand strong>span{
  display:block;
  font-size:10px;
  font-weight:400;
  letter-spacing:2px;
  margin-top:4px;
  color:var(--muted)
}
.side-label{
  font-size:11px;
  color:#929b95;
  margin:0 13px 12px
}
.nav{
  width:100%;
  display:flex;
  align-items:center;
  text-align:left;
  border:0;
  background:none;
  padding:12px 13px;
  gap:10px;
  border-radius:7px;
  font-size:12px;
  margin-bottom:6px
}
.nav>span:first-child{
  font-size:18px
}
.nav.active{
  background:var(--pale);
  color:var(--green);
  font-weight:600
}
.dot{
  width:6px;
  height:6px;
  background:var(--green);
  border-radius:50%;
  margin-left:auto
}
.side-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:31px 12px 14px;
  font-size:12px;
  font-weight:600
}
.side-heading select{
  border:0;
  font-size:10px;
  color:var(--muted);
  background:transparent;
  max-width:75px
}
.category-search{
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 10px;
  margin:0 7px 12px;
  width:calc(100% - 14px);
  font-size:11px;
  background:#fafbf8
}
.categories{
  overflow:auto;
  flex:1;
  min-height:100px
}
.category{
  width:100%;
  border:0;
  background:none;
  padding:9px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  border-radius:6px;
  margin:2px 0
}
.category span:last-child{
  font-size:10px;
  font-variant-numeric:tabular-nums;
  color:#8c9890
}
.category.selected{
  background:var(--pale);
  color:var(--green);
  font-weight:600
}
.category:hover{
  background:#f2f5ef
}
.side-foot{
  border-top:1px solid var(--line);
  padding:19px 8px 4px;
  margin-top:15px;
  font-size:11px
}
.online{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#65a47a;
  margin-right:7px
}
.side-foot small{
  display:block;
  margin:8px 0 0 13px;
  color:var(--muted);
  font-size:10px
}
main{
  margin-left:244px;
  padding:0 44px;
  max-width:1900px
}
.topbar{
  height:73px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.topbar b{
  font-weight:500;
  color:#4e6055
}
.slash{
  margin:0 15px;
  color:#b9c1ba
}
.intro{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:36px 0 29px
}
.eyebrow{
  font-size:10px;
  font-weight:600;
  letter-spacing:2px;
  color:var(--green);
  margin-bottom:12px
}
h1{
  font-size:30px;
  letter-spacing:-1px;
  font-weight:600;
  margin:0
}
h1>span{
  color:#5c9973
}
.intro p{
  font-size:12px;
  color:var(--muted);
  margin:12px 0 0
}
.button{
  border-radius:6px;
  padding:10px 15px;
  font-size:11px
}
.secondary{
  border:1px solid #dce3da;
  background:white
}
.secondary:hover{
  background:var(--pale)
}
.metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px
}
.metric{
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:21px 22px
}
.metric-label{
  font-size:11px;
  color:#7b8980;
  display:flex;
  justify-content:space-between
}
.metric-label>span{
  color:#9aada0
}
.metric strong{
  display:block;
  font-size:27px;
  letter-spacing:-.7px;
  font-weight:600;
  margin:12px 0 8px;
  font-variant-numeric:tabular-nums
}
.metric small{
  font-size:10px;
  color:#919b94
}
.metric:first-child{
  background:var(--green);
  color:white;
  border-color:var(--green)
}
.metric:first-child .metric-label,.metric:first-child small,.metric:first-child .metric-label>span{
  color:#bad4c4
}
h2{
  font-size:15px;
  font-weight:600;
  margin:0
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:31px 0 16px
}
.text-button{
  border:0;
  background:none;
  color:var(--green);
  font-size:11px;
  padding:4px
}
.signals{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.signal{
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  text-align:left;
  padding:13px 14px;
  position:relative
}
.signal.selected{
  background:var(--pale);
  border-color:#80a68c
}
.signal-head{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:#57685e
}
.signal-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--color)
}
.signal strong{
  font-size:21px;
  display:block;
  margin-top:8px;
  font-weight:500
}
.signal small{
  position:absolute;
  right:14px;
  bottom:16px;
  color:var(--muted);
  font-size:10px
}
.signal-track{
  height:2px;
  background:#edf1eb;
  margin-top:10px
}
.signal-track span{
  height:100%;
  display:block;
  background:var(--color)
}
.muted{
  color:var(--muted);
  font-size:10px;
  line-height:1.8
}
.explore{
  margin-top:29px
}
.explore-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px
}
.explore-toolbar h2>span{
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-left:8px
}
.view-switch{
  display:flex;
  border:1px solid var(--line);
  border-radius:5px;
  padding:3px;
  background:#fff;
  gap:3px
}
.view-switch button{
  border:0;
  background:none;
  padding:6px 10px;
  border-radius:3px;
  font-size:10px;
  color:var(--muted)
}
.view-switch .selected{
  background:var(--pale);
  color:var(--green)
}
.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.search-wrap{
  flex:1;
  min-width:230px;
  display:flex;
  align-items:center;
  background:white;
  border:1px solid var(--line);
  border-radius:6px;
  padding:0 10px;
  gap:8px;
  color:var(--muted)
}
.search-wrap input{
  border:0;
  outline:none;
  background:none;
  width:100%;
  padding:11px 0;
  font-size:11px
}
.search-wrap>span{
  font-size:22px
}
.filters select{
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  padding:10px 8px;
  font-size:10px;
  max-width:160px
}
.active-filters{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:13px 0;
  font-size:10px;
  color:var(--muted);
  min-height:22px
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px
}
.product-card{
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:20px;
  cursor:pointer;
  transition:box-shadow .15s,transform .15s
}
.product-card:hover{
  box-shadow:0 6px 20px #234b3510;
  transform:translateY(-2px);
  border-color:#b7ccba
}
.card-top{
  display:flex;
  align-items:center;
  gap:10px
}
.avatar{
  background:var(--avatar,#e7eee8);
  color:#4b6a53;
  border:1px solid #00000006;
  border-radius:10px;
  flex:none;
  width:37px;
  height:37px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:700
}
.card-name{
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%
}
.card-identity{
  min-width:0;
  flex:1
}
.card-category{
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.arrow{
  font-size:14px;
  color:#99a79c
}
.description{
  font-size:11px;
  line-height:1.8;
  color:#7a867e;
  margin:14px 0;
  height:39px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical
}
.tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  min-height:20px
}
.tag{
  font-size:9px;
  background:#f3f5f0;
  color:#7b887b;
  border-radius:4px;
  padding:4px 6px
}
.signal-badge{
  color:var(--color);
  background:color-mix(in srgb,var(--color) 9%,white);
  font-size:9px;
  border-radius:4px;
  padding:4px 6px;
  display:inline-block
}
.card-revenue{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  border-top:1px solid #f0f2ed;
  margin-top:15px;
  padding-top:14px
}
.card-revenue small{
  display:block;
  color:var(--muted);
  font-size:9px;
  margin-bottom:5px
}
.card-revenue strong{
  font-size:17px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.card-bottom{
  border-top:1px solid #f0f2ed;
  margin-top:14px;
  padding-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  font-size:9px;
  color:var(--muted)
}
.card-bottom .stale{
  color:#b28a56
}
.spark{
  width:90px;
  height:28px
}
.pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:24px 0;
  color:var(--muted);
  font-size:11px
}
.pagination>div{
  display:flex;
  gap:8px
}
button:disabled{
  opacity:.4;
  cursor:default
}
footer{
  border-top:1px solid var(--line);
  font-size:10px;
  padding:21px 0 28px;
  color:#95a094;
  display:flex;
  justify-content:space-between
}
.empty{
  padding:60px;
  text-align:center;
  color:var(--muted);
  background:#fff;
  border:1px dashed var(--line);
  border-radius:9px
}
.table-wrap{
  overflow:auto;
  background:white;
  border:1px solid var(--line);
  border-radius:8px
}
table{
  border-collapse:collapse;
  width:100%;
  white-space:nowrap;
  font-size:11px
}
th{
  text-align:left;
  font-weight:500;
  color:var(--muted);
  font-size:10px;
  background:#f0f4ee
}
th,td{
  padding:15px 13px;
  border-bottom:1px solid var(--line)
}
tbody tr{
  cursor:pointer
}
tbody tr:hover{
  background:#f7faf4
}
td small{
  font-size:9px;
  color:var(--muted);
  display:block;
  margin-top:5px
}
.positive{
  color:#428263
}
.negative{
  color:#bb7056
}
dialog{
  border:1px solid var(--line);
  border-radius:14px;
  padding:28px;
  width:min(860px,calc(100% - 32px));
  max-height:90vh;
  color:var(--ink);
  box-shadow:0 25px 100px #203c3525
}
dialog::backdrop{
  background:#1b302868;
  backdrop-filter:blur(3px)
}
.dialog-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  margin-bottom:22px;
  font-size:12px;
  color:var(--muted)
}
.close{
  font-size:26px;
  border:0;
  background:none;
  padding:0 4px;
  color:#718176
}
.detail-title{
  display:flex;
  align-items:center;
  gap:14px
}
.detail-title h2{
  font-size:25px
}
.detail-desc{
  line-height:1.9;
  color:#748277;
  font-size:12px
}
.detail-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:22px 0
}
.detail-metrics>div{
  background:var(--bg);
  padding:14px;
  border-radius:7px
}
.detail-metrics small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:8px
}
.detail-metrics strong{
  font-size:19px
}
.detail-chart{
  display:block;
  width:100%;
  height:210px;
  margin:15px 0;
  background:#fbfcf9;
  border-radius:8px
}
.detail-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:25px 0
}
.detail-fields small{
  color:var(--muted);
  font-size:10px;
  display:block;
  margin-bottom:6px
}
.detail-fields p{
  margin:0;
  font-size:12px;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.detail-actions{
  display:flex;
  gap:10px;
  margin-top:25px
}
.rules-list{
  padding-left:20px;
  line-height:1.9;
  font-size:12px
}
.rules-list li{
  margin:14px 0
}
#rules-content>p{
  font-size:12px;
  line-height:1.9;
  color:var(--muted)
}
.history-table{
  max-height:280px;
  overflow:auto
}
.history-table tr{
  cursor:default
}
.history-table th{
  position:sticky;
  top:0
}
.signal-count-note{
  font-size:10px;
  color:var(--muted)
}
@media(min-width:1550px){
  .product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:1200px){
  main{
    padding:0 25px;
    margin-left:218px
  }
  .sidebar{
    width:218px
  }
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .metric{
    padding:17px
  }
  .metric strong{
    font-size:23px
  }
  .intro h1{
    font-size:26px
  }
  .signals{
    gap:7px
  }
  .signal{
    padding:12px 10px
  }
  .signal small{
    right:9px
  }
  .signal-head{
    font-size:10px
  }
}
@media(max-width:800px){
  .sidebar{
    position:static;
    width:100%;
    height:auto;
    padding:17px;
    display:block;
    border-bottom:1px solid var(--line)
  }
  .brand{
    margin:0 0 17px
  }
  .brand strong>span,.side-label,.sidebar>.nav,.side-foot{
    display:none
  }
  .side-heading{
    margin:10px 0;
    display:flex
  }
  .category-search{
    display:none
  }
  .categories{
    display:flex;
    gap:6px;
    overflow-x:auto;
    min-height:0
  }
  .category{
    white-space:nowrap;
    width:auto;
    flex-shrink:0;
    gap:10px;
    padding:8px 12px;
    background:#f5f7f2
  }
  .category span:last-child{
    display:none
  }
  main{
    margin:0;
    padding:0 20px
  }
  .topbar{
    height:50px;
    font-size:10px
  }
  .intro{
    margin:26px 0;
    gap:12px
  }
  .intro h1{
    font-size:23px
  }
  .intro p{
    font-size:11px
  }
  .intro>.button{
    padding:10px;
    white-space:nowrap
  }
  .metrics{
    grid-template-columns:repeat(2,1fr);
    gap:10px
  }
  .signals{
    grid-template-columns:repeat(2,1fr)
  }
  .signal-head{
    font-size:11px
  }
  .filters select{
    flex:1;
    max-width:none
  }
  .search-wrap{
    flex-basis:100%
  }
  .product-card{
    padding:16px
  }
  .detail-metrics{
    grid-template-columns:repeat(2,1fr)
  }
  footer{
    gap:16px;
    line-height:1.8
  }
  .detail-fields{
    grid-template-columns:1fr
  }
}
@media(max-width:500px){
  .product-grid{
    grid-template-columns:1fr
  }
  .intro{
    align-items:flex-start
  }
  .intro h1{
    font-size:20px
  }
  .intro .button{
    font-size:9px
  }
  .intro p{
    max-width:220px;
    line-height:1.8
  }
  .metric strong{
    font-size:24px
  }
  .topbar #asof{
    font-size:9px
  }
  .pagination{
    font-size:10px
  }
  .pagination .button{
    padding:9px
  }
  .detail-actions{
    flex-wrap:wrap
  }
  dialog{
    padding:20px
  }
}
@media(max-width:800px){
  .metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .metric{
    min-width:0;
    padding:15px 12px;
  }
  .metric strong{
    font-size:clamp(17px,5vw,24px);
  }
}
.topbar-right{display:flex;align-items:center;gap:12px}.topbar-right label{font-size:12px;color:#718078}.topbar-right select{font:inherit;padding:5px 9px;border:1px solid #d8e0d7;border-radius:6px;background:#fff;color:#25372d}
