:root {
  --bg:#16181c; --panel:#1e2127; --card:#24272c; --card2:#2c3036; --line:#383c42;
  --text:#e8eaed; --muted:#9aa0a6; --green:#2ecc71; --green-bg:#1e3a2a;
  --high:#2ecc71; --medium:#f1c40f; --low:#e74c3c; --accent:#4da3ff;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text);
  font-family:"Segoe UI","Microsoft JhengHei",system-ui,sans-serif; }
a { color:inherit; }
.muted { color:var(--muted); } .small { font-size:14px; }

.app { display:flex; min-height:100vh; }
.sidebar { width:210px; flex:none; background:var(--panel); border-right:1px solid var(--line);
  padding:16px 12px; position:sticky; top:0; height:100vh; }
.brand { font-size:16px; font-weight:700; padding:6px 10px 16px; }
.navitem { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:8px;
  color:var(--muted); text-decoration:none; font-size:14px; margin-bottom:4px; cursor:pointer; }
.navitem:hover { background:var(--card); color:var(--text); }
.navitem.active { background:var(--card2); color:var(--text); font-weight:600; }
.navitem.disabled { opacity:.4; pointer-events:none; }
.navitem .soon { font-size:10px; margin-left:auto; }
.main { flex:1; padding:22px 28px 60px; max-width:1180px; }

.mod-title { font-size:20px; font-weight:700; margin:0 0 14px; }
.subnav { display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.subnav a { padding:9px 16px; color:var(--muted); text-decoration:none; font-size:14px;
  border-bottom:2px solid transparent; cursor:pointer; }
.subnav a.active { color:var(--text); border-bottom-color:var(--accent); font-weight:600; }

label { color:var(--muted); font-size:12px; display:block; margin-bottom:5px; }
select,input[type=date] { background:var(--card); color:var(--text); border:1px solid var(--line);
  border-radius:8px; padding:9px 12px; font-size:14px; }
.filters { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }

.dot { width:11px; height:11px; border-radius:50%; flex:none; }
.rating { font-size:14px; font-weight:700; padding:3px 9px; border-radius:4px; }
.rating.HIGH { color:var(--high); border:1px solid var(--high); }
.rating.MEDIUM { color:var(--medium); border:1px solid var(--medium); }
.rating.LOW { color:var(--low); border:1px solid var(--low); }
.vendor { font-size:13px; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:2px 8px; }

.date-group-title { font-size:17px; color:var(--muted); margin:22px 0 10px; font-weight:600; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:12px 16px; margin-bottom:8px; cursor:pointer; display:grid; align-items:center; gap:12px;
  grid-template-columns:190px 244px 66px 66px 66px 76px 76px 82px 82px 96px; }
.card:hover { border-color:var(--accent); }
.c-id { display:flex; flex-direction:column; gap:5px; }
.c-id .idrow { display:flex; align-items:center; gap:7px; }
.c-id .name { font-weight:700; font-size:18px; color:var(--accent); text-decoration:none; }
.c-id .name:hover { text-decoration:underline; }
.c-id .vendor { align-self:flex-start; }
.c-banners { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.c-banners .bl { font-size:13px; color:var(--muted); width:100%; }
.stat { text-align:center; }
.stat .k { font-size:13px; color:var(--muted); }
.stat .v { font-size:19px; font-weight:700; margin-top:2px; }
.c-share { font-size:22px; font-weight:800; color:var(--accent); margin-top:2px; }
.c-tail { display:flex; align-items:center; justify-content:center; }

.bthumb { width:56px; height:34px; border-radius:5px; border:1px solid var(--line);
  object-fit:cover; cursor:zoom-in; background:var(--card2); }
.bthumb.hit { border-color:var(--green); border-width:2px; }

.site-switch { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
.detail-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.detail-title { display:flex; align-items:center; gap:8px; font-size:19px; font-weight:700; }
.date-switch { display:flex; align-items:center; gap:6px; }
.navbtn { background:var(--card2); border:1px solid var(--line); color:var(--text); border-radius:6px;
  width:32px; height:34px; cursor:pointer; font-size:13px; display:inline-flex; align-items:center; justify-content:center; }
.navbtn.off { opacity:.35; pointer-events:none; }
.detail-metrics { display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin:6px 0 16px; font-size:15px; }
.subtabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:16px; flex-wrap:wrap; }
.subtab { padding:10px 16px; color:var(--muted); cursor:pointer; font-size:15px; border-bottom:2px solid transparent; }
.subtab.active { color:var(--text); border-bottom-color:var(--accent); font-weight:600; }

table.dt { width:100%; border-collapse:collapse; font-size:14px; }
table.dt th,table.dt td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
table.dt th { color:var(--muted); }
table.dt tr.mine td { background:var(--green-bg); }
.search { width:100%; margin-bottom:8px; background:var(--card2); border:1px solid var(--line);
  color:var(--text); border-radius:8px; padding:9px 12px; font-size:15px; }
.sec-title { font-weight:700; font-size:16px; margin:18px 0 7px; }
.grid { display:flex; flex-direction:column; gap:4px; }
.grow { display:flex; gap:4px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px;
  cursor:grab; scrollbar-width:none; user-select:none; }
.grow::-webkit-scrollbar { display:none; }
.grow.dragging { cursor:grabbing; }
.gcell { min-width:96px; max-width:96px; height:48px; font-size:12px; padding:4px 5px;
  border:1px solid var(--line); border-radius:5px; background:var(--card2);
  overflow:hidden; display:flex; align-items:center; text-align:center; flex:none; }
.gcell.mine { background:var(--green-bg); border-color:var(--green); color:var(--green); }
.gcell.empty { background:transparent; border-style:dashed; }
.bar { display:inline-block; width:140px; height:8px; background:var(--card2); border-radius:4px;
  overflow:hidden; vertical-align:middle; margin-right:6px; }
.bar span { display:block; height:100%; background:var(--accent); }
.shot-box { width:100%; max-width:720px; aspect-ratio:16/9; background:var(--card2);
  border:1px dashed var(--line); border-radius:10px; display:flex; align-items:center;
  justify-content:center; color:var(--muted); font-size:13px; }
.note { color:var(--muted); font-size:12px; margin-top:18px; }

.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.82); display:none; align-items:center; justify-content:center; z-index:80; }
.lightbox.show { display:flex; }
.lightbox img { max-width:84vw; max-height:80vh; border-radius:10px; }
.lb-close { position:absolute; top:18px; right:24px; font-size:30px; color:#fff; background:none; border:none; cursor:pointer; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); font-size:30px; color:#fff;
  background:rgba(255,255,255,.1); border:none; cursor:pointer; width:52px; height:64px; border-radius:10px; }
.lb-prev { left:24px; } .lb-next { right:24px; }
.lb-cap { position:absolute; bottom:22px; left:0; right:0; text-align:center; color:#ccc; font-size:14px; }
