/* 运营端经营总览 · Ops Overview 2026-11-27 */
.opd-root{
  position:fixed; top:0; right:0; bottom:0; z-index:140;
  overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(37,99,235,.06), transparent 60%),
    #f5f7fb;
  color:#182230;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.5;
}
.opd-root *{box-sizing:border-box}
.opd-wrap{max-width:1480px;margin:0 auto;padding:24px 28px 30px}
.opd-root button,.opd-root input{font-family:inherit}

/* header */
.opd-head{
  position:sticky; top:0; z-index:8;
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  margin:-24px -28px 18px; padding:20px 28px 14px;
  background:linear-gradient(180deg, rgba(245,247,251,.98), rgba(245,247,251,.92));
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(226,232,240,.6);
}
.opd-head__title{
  display:flex; align-items:center; gap:10px;
  font-size:23px; font-weight:760; letter-spacing:-.4px; color:#111827;
}
.opd-live{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; color:#64748b; letter-spacing:.2px;
}
.opd-live i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.10)}
.opd-head__sub{margin-top:5px;font-size:12px;color:#8a94a6}
.opd-head__tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.opd-seg{
  display:flex;align-items:center;padding:3px;border-radius:9px;
  background:#fff;border:1px solid #e7ebf1;box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.opd-seg button{
  border:0;background:transparent;color:#64748b;padding:6px 13px;border-radius:7px;
  font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,color .15s;
  white-space:nowrap;
}
.opd-seg button.is-active{background:#eef2f8;color:#1d4ed8}
.opd-search{
  display:flex;align-items:center;gap:8px;width:220px;height:36px;padding:0 12px;
  border:1px solid #e7ebf1;border-radius:9px;background:#fff;color:#94a3b8;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.opd-search svg{width:15px;height:15px;flex:0 0 15px}
.opd-search input{border:0;outline:0;background:transparent;width:100%;font-size:12px;color:#334155}
.opd-search input::placeholder{color:#a3acbb}
.opd-iconbtn{
  position:relative;width:36px;height:36px;border-radius:9px;border:1px solid #e7ebf1;
  background:#fff;color:#64748b;display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.03);transition:background .15s,color .15s;
}
.opd-iconbtn:hover{background:#f8fafc;color:#2563eb}
.opd-iconbtn svg{width:16px;height:16px}
.opd-iconbtn .opd-dot{
  position:absolute;top:7px;right:8px;width:5px;height:5px;border-radius:50%;background:#ef4444;
}
.opd-user{display:flex;align-items:center;gap:8px;min-width:0;padding-left:2px}
.opd-user__avatar{
  width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#3b82f6);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
  box-shadow:0 3px 10px rgba(37,99,235,.25);flex:0 0 32px;
}
.opd-user__name{font-size:12px;font-weight:600;color:#334155;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opd-user svg{width:12px;height:12px;color:#94a3b8}

/* cards */
.opd-card{
  background:#fff;border:1px solid #e9eef5;border-radius:14px;
  box-shadow:0 2px 6px rgba(15,23,42,.035);
}
.opd-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.opd-kpi{padding:16px 18px 14px;position:relative;overflow:hidden}
.opd-kpi__top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.opd-kpi__label{font-size:12px;color:#7b8598;font-weight:500;white-space:nowrap}
.opd-kpi__ico{
  width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 30px;
}
.opd-kpi__ico svg{width:15px;height:15px}
.opd-kpi__value{margin-top:7px;font-size:23px;line-height:1.1;font-weight:760;letter-spacing:-.7px;color:#111827;font-variant-numeric:tabular-nums}
.opd-kpi__value small{font-size:11px;font-weight:500;color:#98a2b3;margin-left:4px;letter-spacing:0}
.opd-kpi__foot{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:11px;color:#98a2b3;white-space:nowrap}
.opd-delta{display:inline-flex;align-items:center;gap:2px;font-weight:700;font-size:10.5px;padding:2px 6px;border-radius:5px}
.opd-delta.up{color:#15803d;background:#ecfdf3}
.opd-delta.down{color:#dc2626;background:#fef2f2}
.opd-delta.flat{color:#64748b;background:#f1f5f9}

/* main grids */
.opd-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:16px;margin-top:16px;align-items:stretch}
.opd-lower{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:16px;margin-top:16px;align-items:stretch}
.opd-main>*,.opd-lower>*{min-width:0}
.opd-section{padding:17px 18px}
.opd-cardhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.opd-cardhead h3{margin:0;font-size:16px;font-weight:700;color:#111827;letter-spacing:-.2px}
.opd-cardhead p{margin:3px 0 0;font-size:11.5px;color:#98a2b3}
.opd-link{
  border:0;background:transparent;padding:2px 0;color:#2563eb;font-size:11.5px;font-weight:600;
  cursor:pointer;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;
}
.opd-link svg{width:13px;height:13px}
.opd-mini-seg{display:flex;padding:2px;border:1px solid #e9eef5;border-radius:8px;background:#fafbfe}
.opd-mini-seg button{border:0;background:transparent;color:#7b8598;font-size:11px;font-weight:600;padding:5px 10px;border-radius:6px;cursor:pointer}
.opd-mini-seg button.is-active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px rgba(15,23,42,.08)}

/* chart */
.opd-chart{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;height:252px;margin-top:12px}
.opd-chart__y{display:flex;flex-direction:column;justify-content:space-between;padding:1px 0 30px;text-align:right;font-size:10px;color:#a0aaba;font-variant-numeric:tabular-nums}
.opd-chart__plot{position:relative;min-width:0;padding-bottom:30px}
.opd-chart__grid{position:absolute;left:0;right:0;top:0;bottom:30px;pointer-events:none}
.opd-chart__grid i{position:absolute;left:0;right:0;border-top:1px dashed #e6ebf2}
.opd-chart__grid i:nth-child(1){top:0}
.opd-chart__grid i:nth-child(2){top:33.33%}
.opd-chart__grid i:nth-child(3){top:66.66%}
.opd-chart__grid i:nth-child(4){top:100%}
.opd-chart__avg{position:absolute;left:0;right:0;border-top:1px dashed #93c5fd;pointer-events:none;z-index:1}
.opd-chart__avg span{
  position:absolute;right:2px;top:-8px;padding:0 4px;background:#fff;color:#60a5fa;font-size:10px;white-space:nowrap;
}
.opd-bars{position:absolute;left:0;right:0;top:0;bottom:30px;display:flex;align-items:flex-end;gap:4px;z-index:2}
.opd-bar{position:relative;flex:1 1 0;height:100%;display:flex;align-items:flex-end;justify-content:center;min-width:0;cursor:default}
.opd-bar__fill{
  width:100%;max-width:48px;border-radius:7px 7px 0 0;background:#bfd7fe;min-height:2px;
  transition:height .28s ease,background .15s;
}
.opd-bar:hover .opd-bar__fill{background:#93c5fd}
.opd-bar.is-today .opd-bar__fill{background:#2563eb}
.opd-bar.is-today:hover .opd-bar__fill{background:#1d4ed8}
.opd-xlabels{position:absolute;left:0;right:0;bottom:-2px;display:flex;gap:4px}
.opd-xlabels span{flex:1 1 0;min-width:0;text-align:center;font-size:10px;color:#9aa4b2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opd-xlabels span.is-today{color:#2563eb;font-weight:700}
.opd-empty-chart{position:absolute;inset:0 0 30px;display:flex;align-items:center;justify-content:center;color:#a5afbf;font-size:12px}

/* channel */
.opd-channel{display:flex;flex-direction:column}
.opd-chan__list{flex:1;display:flex;flex-direction:column;gap:17px;margin-top:12px}
.opd-chan__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center}
.opd-chan__name{display:flex;align-items:center;gap:7px;font-size:12px;color:#344054;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opd-chan__dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}
.opd-chan__amt{font-size:12.5px;font-weight:700;color:#182230;font-variant-numeric:tabular-nums;white-space:nowrap}
.opd-chan__amt em{font-style:normal;font-size:10px;font-weight:500;color:#98a2b3;margin-left:4px}
.opd-chan__bar{grid-column:1/-1;height:4px;background:#f0f3f8;border-radius:5px;overflow:hidden;margin-top:1px}
.opd-chan__bar i{display:block;height:100%;border-radius:5px;transition:width .35s ease}
.opd-chan__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:13px;border-top:1px solid #eef1f5;font-size:12px;color:#8a94a6}
.opd-chan__foot b{font-size:16px;font-weight:760;color:#182230;font-variant-numeric:tabular-nums;letter-spacing:-.4px}

/* table */
.opd-tablewrap{overflow-x:auto;margin-top:8px}
.opd-table{width:100%;border-collapse:collapse;min-width:520px}
.opd-table th{
  text-align:left;padding:9px 8px;font-size:10.5px;font-weight:600;color:#98a2b3;
  background:#f8fafc;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5;
}
.opd-table th:first-child{border-radius:7px 0 0 7px}
.opd-table th:last-child{border-radius:0 7px 7px 0;text-align:right}
.opd-table td{padding:10px 8px;font-size:11.5px;color:#475467;border-bottom:1px solid #f1f4f8;white-space:nowrap}
.opd-table tr:last-child td{border-bottom:0}
.opd-table td:last-child{text-align:right}
.opd-time{font-variant-numeric:tabular-nums;color:#667085}
.opd-mch{font-weight:500;color:#344054;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.opd-ch{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#475467}
.opd-ch i{width:6px;height:6px;border-radius:50%;flex:0 0 6px}
.opd-amt{font-weight:700;color:#182230;font-variant-numeric:tabular-nums}
.opd-status{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:5px;font-size:10.5px;font-weight:600}
.opd-status i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.7}
.opd-status.ok{color:#15803d;background:#ecfdf3}
.opd-status.warn{color:#b45309;background:#fffbeb}
.opd-status.err{color:#dc2626;background:#fef2f2}
.opd-status.neutral{color:#475467;background:#f2f4f7}
.opd-live-label{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:600;color:#16a34a;margin-left:8px;vertical-align:2px}
.opd-live-label i{width:5px;height:5px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.1)}

/* todo */
.opd-todos{display:flex;flex-direction:column;gap:7px;margin-top:8px}
.opd-todo{
  display:grid;grid-template-columns:32px minmax(0,1fr) auto 12px;gap:10px;align-items:center;
  padding:9px 8px;border-radius:9px;cursor:pointer;transition:background .15s;border:1px solid transparent;
}
.opd-todo:hover{background:#f8fafc;border-color:#eef2f7}
.opd-todo__ico{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.opd-todo__ico svg{width:15px;height:15px}
.opd-todo__title{font-size:12.5px;font-weight:600;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opd-todo__sub{font-size:10.5px;color:#98a2b3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opd-todo__count{font-size:15px;font-weight:760;color:#1d4ed8;font-variant-numeric:tabular-nums;padding-right:2px}
.opd-todo__count.red{color:#ef4444}
.opd-todo__count.amber{color:#f59e0b}
.opd-todo__count.violet{color:#7c3aed}
.opd-todo svg.chev{width:12px;height:12px;color:#cbd5e1}

/* snapshot */
.opd-snapshot{display:grid;grid-template-columns:104px repeat(4,minmax(0,1fr));margin-top:16px;padding:0}
.opd-snap-label{padding:15px 12px;border-right:1px solid #eef1f5;display:flex;flex-direction:column;justify-content:center;gap:3px;background:#fbfcfe;border-radius:12px 0 0 12px;font-size:12px;font-weight:700;color:#475467}
.opd-snap-label small{font-size:10px;color:#98a2b3;font-weight:500;white-space:nowrap}
.opd-snap{padding:15px 22px;border-right:1px solid #eef1f5;min-width:0}
.opd-snap:last-child{border-right:0}
.opd-snap__label{font-size:11px;color:#98a2b3}
.opd-snap__value{margin-top:4px;font-size:18px;font-weight:760;color:#182230;letter-spacing:-.4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.opd-snap__value small{font-size:11px;color:#98a2b3;font-weight:500;margin-left:4px;letter-spacing:0}
.opd-snap__foot{margin-top:3px;font-size:10.5px;color:#98a2b3;display:flex;align-items:center;gap:4px}
.opd-snap__foot .opd-delta{padding:1px 5px}

/* misc */
.opd-loading{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(245,247,251,.72);z-index:12;color:#64748b;font-size:12px;gap:9px;
}
.opd-spinner{width:16px;height:16px;border:2px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;animation:opd-spin .8s linear infinite}
@keyframes opd-spin{to{transform:rotate(360deg)}}
.opd-err{padding:40px;text-align:center;color:#64748b}
.opd-err strong{display:block;color:#b91c1c;margin-bottom:6px}
.opd-retry{margin-top:12px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:7px 14px;font-size:12px;font-weight:600;cursor:pointer}
.opd-spin{animation:opd-spin .9s linear infinite}
.opd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

@media (max-width:1220px){
  .opd-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .opd-main,.opd-lower{grid-template-columns:1fr}
  .opd-channel .opd-chan__list{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px}
}
@media (max-width:900px){
  .opd-wrap{padding:18px 18px 24px}
  .opd-head{margin:-18px -18px 15px;padding:16px 18px 12px;flex-direction:column;gap:12px}
  .opd-head__tools{justify-content:flex-start;width:100%}
  .opd-search{flex:1;min-width:170px}
  .opd-user{margin-left:auto}
}
@media (max-width:680px){
  .opd-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .opd-kpis .opd-kpi:last-child{grid-column:1/-1}
  .opd-kpi{padding:13px 13px 12px}
  .opd-kpi__value{font-size:19px}
  .opd-kpi__label{font-size:11px}
  .opd-section{padding:14px 14px}
  .opd-snapshot{grid-template-columns:1fr 1fr}
  .opd-snap-label{grid-column:1/-1;border-right:0;border-bottom:1px solid #eef1f5;border-radius:12px 12px 0 0;padding:10px 14px;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
  .opd-snap{border-right:0;border-bottom:1px solid #eef1f5;padding:12px 14px}
  .opd-snap:nth-child(even){border-right:1px solid #eef1f5}
  .opd-snap:nth-child(6){grid-column:1/-1;border-right:0;border-bottom:0}
  .opd-channel .opd-chan__list{grid-template-columns:1fr}
  .opd-head__title{font-size:20px}
  .opd-head__sub{font-size:11px}
  .opd-user__name,.opd-user>svg{display:none}
  .opd-seg button{padding:5px 9px;font-size:11px}
  .opd-iconbtn{width:32px;height:32px}
  .opd-search{height:34px;min-width:0}
  .opd-head__tools{gap:7px;flex-wrap:wrap}
  .opd-search{order:9;flex:1 0 100%;width:100%}
  .opd-chart{height:214px;grid-template-columns:36px minmax(0,1fr)}
  .opd-bars{gap:2px}
  .opd-xlabels{gap:2px}
  .opd-xlabels span{font-size:9px}
  .opd-chart__avg span{font-size:9px}
  .opd-cardhead h3{font-size:15px}
}
@media (max-width:420px){
  .opd-wrap{padding:14px 12px 22px}
  .opd-head{margin:-14px -12px 12px;padding:13px 12px 10px}
  .opd-head__tools{flex-wrap:wrap}
  .opd-search{order:5;width:100%;flex-basis:100%}
  .opd-kpi__value{font-size:18px}
  .opd-kpi__ico{width:26px;height:26px;flex-basis:26px}
  .opd-kpi__ico svg{width:13px;height:13px}
  .opd-kpi__foot{font-size:10px}
  .opd-delta{font-size:9.5px;padding:2px 5px}
}

/* fit header after wider sider */
@media (max-width:1360px){
  .opd-head{gap:14px}
  .opd-search{width:190px}
  .opd-user__name{max-width:80px}
  .opd-head__sub{font-size:11.5px;white-space:nowrap}
}