:root {
  --ink: #0b1220;
  --ink-2: #101a2e;
  --ink-3: #1b2740;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --line: #e6e9f0;
  --line-2: #eef1f6;
  --text: #101828;
  --text-2: #475467;
  --muted: #7c8aa3;
  --brand: #108474;
  --brand-soft: #e3f2ef;
  --blue: #2f6bff;
  --blue-soft: #eaf0ff;
  --green: #10b981;
  --green-soft: #e8f8f2;
  --amber: #f59e0b;
  --amber-soft: #fef5e7;
  --red: #ef4444;
  --red-soft: #fdeeee;
  --violet: #7c5cfc;
  --violet-soft: #f0edff;
  --cyan: #06a6c9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -8px rgba(16, 24, 40, .12);
  --shadow-lg: 0 18px 40px -16px rgba(16, 24, 40, .22);
  --sidebar-w: 238px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: #cdeae4; }

/* ---------- 侧边栏 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #0b1220 0%, #0f1b31 60%, #111f38 100%);
  color: #c8d3e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -40% -30% -40%;
  height: 320px;
  background: radial-gradient(circle at 50% 100%, rgba(16, 132, 116, .26), transparent 65%);
  pointer-events: none;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, #108474, #3fc0a9);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.5px;
  box-shadow: 0 6px 16px -6px rgba(16, 132, 116, .75);
}
.brand-name { color: #fff; font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.brand-sub { font-size: 11px; color: #8f9db6; letter-spacing: .08em; }
.nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; position: relative; z-index: 1; }
.nav-label { font-size: 10.5px; letter-spacing: .14em; color: #6c7c96; padding: 16px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px;
  color: #b9c5d8; font-size: 13.5px; cursor: pointer;
  transition: background .15s, color .15s;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(16, 132, 116, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(16, 132, 116, .32); }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.nav-badge { margin-left: auto; font-size: 10.5px; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 20px; color: #dfe7f5; }
.sidebar-foot { padding: 14px 18px 20px; font-size: 11.5px; color: #7d8ca6; position: relative; z-index: 1; }
.sidebar-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
.sidebar-foot .dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .16); }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 30px; background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.topbar .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.page { padding: 26px 30px 60px; max-width: 1500px; width: 100%; }
.hamburger { display: none; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 550;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #d3dae7; background: #fbfcfe; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #17243c; border-color: #17243c; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: #d13a63; border-color: #d13a63; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #f0f3f9; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-icon { padding: 8px; width: 34px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.card-h h3 { margin: 0; font-size: 14.5px; letter-spacing: -.01em; }
.card-h .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px 20px 20px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 17px 18px 15px; position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi .foot { color: var(--muted); font-size: 11.5px; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; opacity: .9; }
.kpi-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.kpi-accent.blue { background: var(--blue); }
.kpi-accent.green { background: var(--green); }
.kpi-accent.violet { background: var(--violet); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 20px;
  padding: 2px 8px; font-size: 11.5px; font-weight: 550; line-height: 1.7;
  background: #f2f4f8; color: var(--text-2); white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: #0a7a57; }
.badge.amber { background: var(--amber-soft); color: #b06a02; }
.badge.red { background: var(--red-soft); color: #b42323; }
.badge.blue { background: var(--blue-soft); color: #1f4fd1; }
.badge.violet { background: var(--violet-soft); color: #5b3fd6; }
.badge.brand { background: var(--brand-soft); color: #b72a51; }
.badge.ghost { background: transparent; border: 1px solid var(--line); }

.table-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fbfcff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .strong { font-weight: 600; }
.tbl .asin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.prod { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.prod img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #f2f4f8; border: 1px solid var(--line-2); }
.detail-img { width: 132px; height: 176px; flex: 0 0 132px; object-fit: contain; border-radius: 12px; background: #f7f9fd; border: 1px solid var(--line-2); }
.prod .t { font-weight: 550; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod .s { color: var(--muted); font-size: 11.5px; }
.delta-up { color: var(--green); font-weight: 600; }
.delta-down { color: var(--red); font-weight: 600; }
.delta-flat { color: var(--muted); }

.tabs { display: inline-flex; background: #eef1f7; border-radius: 10px; padding: 3px; gap: 2px; }
.tab { border: none; background: none; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-weight: 550; }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: .15s; }
.chip:hover { border-color: #cfd8e8; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.kanban { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.pill { padding: 4px 10px; border-radius: 20px; background: #f2f4f8; font-size: 12px; color: var(--text-2); border: 1px solid transparent; }
.pill.on { background: var(--brand-soft); color: #b72a51; border-color: #f8cdd9; }
.pill button { border: none; background: none; color: inherit; cursor: pointer; padding: 0 0 0 5px; opacity: .55; }

.input, .select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 8px 11px; font-size: 13px; color: var(--text); outline: none; transition: .15s;
}
.input:focus, .select:focus { border-color: #b9c6e4; box-shadow: 0 0 0 3px rgba(47, 107, 255, .1); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 550; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search-box .input { padding-left: 33px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .icon { font-size: 30px; margin-bottom: 8px; opacity: .6; }
.empty h4 { margin: 0 0 4px; color: var(--text-2); font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.progress { height: 6px; border-radius: 6px; background: #eef1f7; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #ff9bb4); transition: width .4s; }
.progress.blue > i { background: linear-gradient(90deg, var(--blue), #7ea6ff); }

.bar-track { height: 8px; background: #f1f4f9; border-radius: 6px; overflow: hidden; min-width: 70px; }
.bar-track > i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.bar-track.brand > i { background: var(--brand); }
.bar-track.green > i { background: var(--green); }
.bar-track.amber > i { background: var(--amber); }

.insight { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.insight:last-child { border-bottom: none; }
.insight .ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--blue-soft); }
.insight.warn .ico { background: var(--amber-soft); }
.insight .t { font-weight: 600; font-size: 13px; }
.insight .b { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); }
.legend .li { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 9px; height: 9px; border-radius: 3px; }

.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 10.5px; }
.chart .grid-line { stroke: #eef1f6; stroke-width: 1; }
.chart .axis { stroke: #e3e8f0; stroke-width: 1; }

.job-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.job-row:last-child { border-bottom: none; }
.job-status { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.job-status.running { background: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12); animation: pulse 1.4s infinite; }
.job-status.queued { background: var(--amber); }
.job-status.done { background: var(--green); }
.job-status.failed { background: var(--red); }
.job-status.canceled { background: #b6bfcf; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,107,255,.04); } }

.log { background: #0d1526; color: #c6d3e8; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; max-height: 260px; overflow: auto; line-height: 1.75; }
.log .warn { color: #ffcf7a; }
.log .error { color: #ff9b9b; }
.log .ts { color: #64748b; margin-right: 8px; }

.matrix { display: grid; gap: 6px; }
.matrix .cell { padding: 8px 10px; border-radius: 8px; font-size: 12px; background: #f7f9fd; border: 1px solid var(--line-2); }
.seg { display: flex; gap: 6px; }

.hero {
  border-radius: 18px; padding: 24px 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(900px 300px at 10% 0%, rgba(16,132,116,.42), transparent 60%), linear-gradient(135deg, #0b1220, #16233c 60%, #1c2c4a);
  box-shadow: var(--shadow-lg);
}
.hero h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.hero p { margin: 0; color: #b7c4da; font-size: 13px; max-width: 720px; }
.hero .stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.hero .st .v { font-size: 19px; font-weight: 700; }
.hero .st .k { font-size: 11.5px; color: #93a2bb; }

.drawer-mask { position: fixed; inset: 0; background: rgba(11, 18, 32, .42); backdrop-filter: blur(2px); z-index: 70; display: none; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 96vw); background: var(--bg);
  z-index: 71; box-shadow: -20px 0 60px rgba(11, 18, 32, .25); transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 15px; }
.drawer-body { padding: 20px 22px 40px; overflow: auto; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: #101a2e; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); animation: tin .2s ease; max-width: 380px; }
.toast.err { background: #7f1d1d; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

.modal-mask { position: fixed; inset: 0; background: rgba(11,18,32,.45); display: grid; place-items: center; z-index: 80; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: min(560px, 96vw); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.modal-b { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }

.list-divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.score-ring { width: 54px; height: 54px; }

@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vw rgba(11,18,32,.4); }
  .hamburger { display: inline-flex; }
  .page { padding: 18px 16px 50px; }
  .topbar { padding: 14px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== v2 shell & components ===== */
.nav { overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-label { padding: 14px 10px 5px; }
.nav-item { padding: 8px 11px; }
.nav-item .nav-count { margin-left: auto; font-size: 10.5px; background: rgba(16,132,116,.9); color: #fff; padding: 0 6px; border-radius: 20px; line-height: 1.6; }

.topbar { padding: 12px 30px; gap: 18px; }
.topbar .crumb { color: var(--muted); font-size: 12.5px; cursor: pointer; }
.topbar .crumb:hover { color: var(--text); }
.gsearch { position: relative; flex: 0 1 340px; margin-left: auto; }
.gsearch input { width: 100%; border: 1px solid var(--line); background: #f6f8fb; border-radius: 10px; padding: 8px 44px 8px 34px; font-size: 13px; outline: none; transition: .15s; color: var(--text); }
.gsearch input:focus { background: #fff; border-color: #b9c6e4; box-shadow: 0 0 0 3px rgba(47,107,255,.1); }
.gsearch > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.gsearch kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: #fff; }
.gsearch-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; }
.gsearch-pop .grp { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 4px; }
.gsearch-pop .it { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.gsearch-pop .it:hover, .gsearch-pop .it.on { background: #f2f5fb; }
.gsearch-pop .it img, .gsearch-pop .it .ph { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: #f1f4f9; flex: 0 0 30px; }
.gsearch-pop .it .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.gsearch-pop .it .s { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.fresh { position: relative; }
.fresh-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 11px; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.fresh-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.fresh-pill.warn i { background: var(--amber); } .fresh-pill.bad i { background: var(--red); }
.fresh-pill.bad { border-color: #f6caca; background: #fff8f8; color: #a12626; }
.fresh-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 60; font-size: 12.5px; }
.fresh-pop .row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.fresh-pop .row:last-child { border-bottom: none; }
.fresh-pop .row i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 7px; }
.fresh-pop .row.warn i { background: var(--amber); } .fresh-pop .row.bad i { background: var(--red); } .fresh-pop .row.none i { background: #c5cedd; }
.fresh-pop .row .v { margin-left: auto; color: var(--text-2); text-align: right; }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; line-height: 1.6; background: var(--amber-soft); color: #7a4a02; border: 1px solid #f7dfb0; }
.notice.bad { background: #fff5f5; color: #8f2222; border-color: #f6caca; }
.notice.info { background: #f3f6ff; color: #2b468f; border-color: #d6e0fb; }
.notice b { font-weight: 650; }
#fresh-banner { margin: 16px 30px 0; max-width: 1440px; }
#fresh-banner + .page { padding-top: 16px; }

.toc { display: flex; gap: 6px; overflow-x: auto; padding: 10px 30px; position: sticky; top: 57px; z-index: 25; background: rgba(244,246,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: 0 0 auto; font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; }
.toc a:hover { border-color: #c4cee0; color: var(--text); }

.kpi-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 17px 14px; min-width: 0; }
.kpi2 .l { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.kpi2 .v { font-size: 25px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi2 .v small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi2 .f { color: var(--muted); font-size: 12px; margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi2.alert { border-color: #f6caca; background: linear-gradient(180deg, #fff9f9, #fff); }

.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 2px 12px; }
.sec-title h2 { font-size: 15.5px; margin: 0; letter-spacing: -.01em; }
.sec-title .hint { color: var(--muted); font-size: 12.5px; }
.sec-title .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--text); }
.tbl th.sorted::after { content: " ▾"; color: var(--brand); }
.tbl th.sorted.asc::after { content: " ▴"; }
.tbl tr.row-click { cursor: pointer; }
.tbl td .sub { color: var(--muted); font-size: 11.5px; }
.tbl.compact td { padding: 7px 10px; }
.tbl td.wrap { white-space: normal; min-width: 220px; line-height: 1.5; }

.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar .input { width: 220px; }
.filter-bar .select { width: auto; }
.seg-ctl { display: inline-flex; background: #eef1f7; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-ctl button { border: none; background: none; padding: 5px 11px; font-size: 12.5px; border-radius: 7px; color: var(--text-2); cursor: pointer; font-weight: 550; white-space: nowrap; }
.seg-ctl button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.seg-ctl button .n { color: var(--muted); font-weight: 500; margin-left: 3px; }

.stack { display: flex; height: 12px; border-radius: 7px; overflow: hidden; background: #eef1f7; }
.stack > i { display: block; height: 100%; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 150px; align-items: center; }
.dual .l, .dual .r { height: 9px; background: #f1f4f9; position: relative; }
.dual .l { border-radius: 5px 0 0 5px; } .dual .r { border-radius: 0 5px 5px 0; }
.dual .l i { position: absolute; right: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 5px 0 0 5px; }
.dual .r i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 0 5px 5px 0; }

.fix-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fff; border-left: 4px solid #c5cedd; }
.fix-card.l3 { border-left-color: var(--red); } .fix-card.l2 { border-left-color: var(--amber); }
.fix-card .h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fix-card .h b { font-size: 13.5px; }
.fix-card .a { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.fix-card .e { margin-top: 4px; color: var(--muted); font-size: 12px; }
.fix-card details { margin-top: 8px; font-size: 12.5px; }
.fix-card summary { cursor: pointer; color: var(--blue); }
.quote { border-left: 2px solid var(--line); padding: 3px 0 3px 10px; margin: 6px 0; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.quote .m { color: var(--muted); font-size: 11.5px; margin-left: 6px; white-space: nowrap; }

.cohort { display: flex; align-items: flex-end; gap: 14px; height: 210px; padding: 8px 4px 0; }
.cohort .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.cohort .bar { width: 100%; max-width: 62px; border-radius: 7px 7px 0 0; background: var(--brand); position: relative; }
.cohort .proj { width: 100%; max-width: 62px; border-radius: 7px 7px 0 0; background: repeating-linear-gradient(135deg, #f7c3d1 0 5px, #fde3ea 5px 10px); }
.cohort .val { font-size: 12.5px; font-weight: 650; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cohort .lab { font-size: 11.5px; color: var(--muted); margin-top: 6px; text-align: center; line-height: 1.4; }

.style-head { display: flex; gap: 20px; align-items: flex-start; }
.style-head .pic { width: 120px; height: 160px; flex: 0 0 120px; border-radius: 12px; object-fit: cover; background: #f1f4f9; border: 1px solid var(--line-2); }
.style-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.style-head .t { color: var(--text-2); margin-top: 4px; }
.thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f1f4f9; border: 1px solid var(--line-2); flex: 0 0 36px; }
.cellprod { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cellprod .t { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px; }
.todo { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.todo:last-child { border-bottom: none; }
.todo:hover .tt { color: var(--blue); }
.todo .tt { font-weight: 600; font-size: 13px; line-height: 1.45; }
.todo .ta { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vbar text { font-family: var(--font); fill: var(--muted); font-size: 10.5px; }
.vbar rect.b:hover { opacity: .75; }
.link { color: var(--blue); cursor: pointer; }
.link:hover { text-decoration: underline; }
.grid-21 { grid-template-columns: 2fr 1fr; }
.grid-12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1100px) { .grid-21, .grid-12 { grid-template-columns: 1fr; } .gsearch { flex-basis: 200px; } }
@media (max-width: 1000px) {
  #fresh-banner { margin: 12px 16px 0; } .toc { padding: 8px 16px; top: 53px; }
  .topbar .sub { display: none; } .fresh-pill span { display: none; }
  .style-head { flex-direction: column; } .cohort { gap: 6px; }
}
.who { position: relative; font-size: 12.5px; white-space: nowrap; }
.who-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 10px; color: var(--ink-2, #2a3a55); font: inherit; }
.who-btn:hover { background: #f2f5fb; }
.who .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, #108474, #3fc0a9); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 28px; }
.who-txt { display: flex; align-items: center; gap: 6px; }
.who-txt b { font-weight: 600; }
.who-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; }
.who-head { padding: 8px 10px 6px; line-height: 1.4; }
.who-item { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 13px; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.who-item:hover { background: #f2f5fb; }
.who-item.danger { color: #b42323; }
.who-item.danger:hover { background: #fdeeee; }
tr.muted-row td { color: var(--muted); }
tr.muted-row td b { color: var(--muted); text-decoration: line-through; }
@media (max-width: 700px) {
  .who-txt { display: none; }
  .who-pop { position: fixed; right: 10px; top: 56px; width: 180px; }
  .card-h { flex-wrap: wrap; } .card-h .right { margin-left: 0; flex-wrap: wrap; }
  .tabs { display: flex; overflow-x: auto; max-width: 100%; } .tab { white-space: nowrap; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi2 .v { font-size: 20px; }
  .sec-title { flex-wrap: wrap; } .page { overflow-x: hidden; }
  .gsearch kbd { display: none; } .gsearch-pop { min-width: 0; position: fixed; left: 10px; right: 10px; top: 58px; }
  .fresh-pop { position: fixed; left: 10px; right: 10px; width: auto; top: 58px; }
  /* 窄屏：表格横向滚动，避免被裁切 */
  .card-b { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-b > table.tbl { min-width: 560px; }
  .tbl th { position: static; }
  .tbl .prod { min-width: 0; }
  .tbl .prod .t { max-width: 46vw; }
}
@media print { .sidebar, .topbar, .toc, #fresh-banner { display: none !important; } .page { padding: 0; } .card { box-shadow: none; break-inside: avoid; } }

/* ---------- 账号管理 ---------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, #108474, #3fc0a9); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.avatar.off { background: #c9d1e0; }
.acc-cell { display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 8px; outline-offset: 2px; }
.acc-cell:hover .acc-name { color: var(--brand); }
.acc-head { display: flex; gap: 14px; align-items: center; }
.dot-s { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9d1e0; margin-right: 6px; flex: 0 0 8px; }
.dot-s.on { background: #12b886; box-shadow: 0 0 0 3px rgba(18, 184, 134, .16); }
.kv { display: grid; gap: 2px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > div span { color: var(--muted); flex: 0 0 auto; }
.kv > div b { font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.sec-mini { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: 13px; font-weight: 650; }
.sess-list { display: grid; gap: 8px; }
.sess { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sess-main { flex: 1; min-width: 0; line-height: 1.5; }
.sess .dot-s { margin-right: 0; }
.btn-danger { background: #d92d20 !important; border-color: #d92d20 !important; color: #fff !important; }
.btn-danger-ghost { color: #b42323; border-color: #f3c7c3; }
.btn-danger-ghost:hover { background: #fdeeee; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }
.form-msg { font-size: 12.5px; min-height: 18px; }
.form-msg.err { color: #b42323; }
.form-msg.ok { color: #0a7a57; }
.pwd-wrap { display: flex; gap: 8px; align-items: center; position: relative; }
.pwd-wrap .input { flex: 1; min-width: 0; padding-right: 48px; }
.pwd-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; padding: 4px; }
.pwd-wrap .btn + .pwd-eye, .pwd-wrap:has(.btn) .pwd-eye { right: 92px; }
.pwd-rules { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pwd-rules span::before { content: '○ '; }
.pwd-rules span.ok { color: #0a7a57; }
.pwd-rules span.ok::before { content: '✓ '; }
.own-pwd { display: grid; gap: 12px; max-width: 360px; }
.role-pick { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400 !important; font-size: 13px !important; color: var(--text) !important; }
.role-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.role-opt input { margin-top: 3px; accent-color: var(--brand); }
.cred { background: #f5f7fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.8; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.must-mask { position: fixed; inset: 0; background: rgba(11, 18, 32, .72); backdrop-filter: blur(4px); z-index: 200; display: grid; place-items: center; padding: 20px; overflow: auto; }
.must-card { background: #fff; border-radius: 18px; padding: 26px 26px 22px; width: min(420px, 100%); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.must-card h2 { margin: 0 0 6px; font-size: 18px; }
#acc-q { width: 220px; }
@media (max-width: 700px) { #acc-q { width: 100%; } .acc-head { align-items: flex-start; } }

/* ---------- 销量分析 ---------- */
.notice.good { background: #effaf5; color: #0b5f45; border-color: #bfe8d6; }
.legend { margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend i.ln { width: 16px; height: 2px; border-radius: 0; background: #101828; opacity: .7; }
.legend i.hatch { background: repeating-linear-gradient(45deg, #8fd6c8 0 3px, #ddf1ec 3px 6px); }
.year-tbl td, .year-tbl th { padding: 6px 8px !important; font-variant-numeric: tabular-nums; }
.year-tbl .yoy-row td { border-top: 0; padding-top: 0 !important; padding-bottom: 8px !important; }
.vbar rect.b title { white-space: pre; }

/* 大牌动态 / 开发建议 */
.dtc-take .tk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; padding: 5px 0; }
.dtc-take .tk i { flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--blue); }
.dtc-take .tk.amber i { background: var(--amber); } .dtc-take .tk.green i { background: var(--green); } .dtc-take .tk.red i { background: var(--red); }
.dtc-pos { display: grid; gap: 16px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.dtc-grid.sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.dtc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: .15s; min-width: 0; }
.dtc-card:hover { border-color: #cfd8e8; box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.dtc-card .pic { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f1f4f9; display: block; }
.dtc-card .b { padding: 9px 10px 10px; min-width: 0; }
.dtc-card .br { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.dtc-card .br span { font-weight: 400; flex: none; }
.dtc-card .nm { font-size: 12.5px; font-weight: 600; line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }
.dtc-card .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 5px; }
.dtc-card .tags { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.adv { margin-bottom: 14px; }
.adv-cols { display: grid; gap: 18px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adv-ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.8; color: #475467; }
@media (max-width: 760px) { .dtc-pos, .adv-cols { grid-template-columns: 1fr; } .dtc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dtc-card .pic.nopic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: linear-gradient(160deg, #f3f0fb, #eef3fb); color: #5b4b9a; }
.dtc-card .pic.nopic span { font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.dtc-card .pic.nopic small { font-size: 11px; color: #8a90a6; line-height: 1.6; }
.dtc-take .tk.violet i { background: #7a5af8; }
.imp-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.thumb { width: 32px; height: 42px; object-fit: cover; border-radius: 5px; background: #f1f4f9; flex: none; display: block; }
.thumb.empty { border: 1px dashed var(--line); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(16,24,40,.14); vertical-align: -1px; flex: none; }
.fam-bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(16,24,40,.1); min-width: 120px; }
.fam-bar span { min-width: 2px; }
.bar-cell { position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 90px; height: 20px; }
.bar-cell span { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 3px; opacity: .8; border: 1px solid rgba(16,24,40,.08); }
.bar-cell b { position: relative; font-weight: 600; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.wk-chart { display: flex; gap: 6px; align-items: flex-end; height: 190px; }
.wk-chart .wk { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.wk-chart .col { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.wk-chart .col span { min-height: 1px; }
.wk-chart small { font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.sc-style { margin-bottom: 10px; }
.sc-h { cursor: pointer; gap: 12px; align-items: center; }
.sc-img { width: 46px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; }
.sc-strip { display: flex; height: 10px; border-radius: 3px; overflow: hidden; margin-top: 7px; border: 1px solid rgba(16,24,40,.1); max-width: 520px; }
.sc-meta { display: flex; gap: 18px; align-items: center; flex: none; margin-left: auto; }
.sc-meta > div { text-align: right; } .sc-meta b { display: block; font-size: 15px; } .sc-meta small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sc-acts { min-width: 120px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sc-actions { border-top: 1px solid var(--line-2); }
.sc-act { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; padding: 4px 0; }
.sc-act .badge { flex: none; margin-top: 2px; }
@media (max-width: 760px) { .sc-h { flex-wrap: wrap; } .sc-meta { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .sc-meta > div { text-align: left; } .sc-acts { justify-content: flex-start; } .wk-chart small { font-size: 8px; } }

/* 社媒趋势 */
.so-spark { display: block; }
.so-season { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.so-season i { width: 6px; border-radius: 2px 2px 0 0; display: block; }
.so-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.so-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 16px; background: #f4f6fa; font-size: 12.5px; line-height: 1.5; max-width: 100%; }
.so-chip b { font-weight: 600; overflow-wrap: anywhere; } .so-chip em { font-style: normal; font-size: 11px; color: #0a7a57; white-space: nowrap; }
.so-chip.br { background: #fff4e5; }
.so-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.so-post .pic { aspect-ratio: 16 / 10; }
.so-post .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.so-media { display: flex; flex-direction: column; }
.so-media a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; font-size: 13px; }
.so-media a:last-child { border-bottom: none; } .so-media a:hover b { color: #b72a51; }
.so-media span { flex: none; color: var(--muted); font-size: 12px; width: 40px; } .so-media b { font-weight: 550; flex: 1; min-width: 0; } .so-media em { flex: none; font-style: normal; font-size: 11.5px; color: var(--muted); }
.so-sug { display: grid; gap: 6px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 12.5px; line-height: 1.7; }
.so-sug div { min-width: 0; } .so-sug b { display: block; } .so-sug span { color: #475467; overflow-wrap: anywhere; }
/* 开发计划 */
.pl-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.pl-item.due-red { border-left: 3px solid var(--red); } .pl-item.due-amber { border-left: 3px solid var(--amber); }
.pl-h { display: flex; gap: 14px; align-items: center; padding: 12px 14px; cursor: pointer; }
.pl-h:hover { background: #fafbfd; }
.pl-main { flex: 1; min-width: 0; }
.pl-t { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; } .pl-t b { overflow-wrap: anywhere; }
.pl-sub { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { display: flex; gap: 16px; align-items: center; flex: none; }
.pl-meta > div { text-align: right; min-width: 52px; } .pl-meta small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; } .pl-meta b { font-size: 13.5px; white-space: nowrap; }
.pl-st { min-width: 64px !important; }
.pl-dots { display: inline-flex; gap: 3px; margin-top: 4px; } .pl-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5dbe6; display: block; } .pl-dots i.ok { background: var(--green); } .pl-dots i.bad { background: var(--red); }
.pl-due { font-size: 12px; padding: 0 14px 10px; margin-top: -4px; font-weight: 600; } .pl-due.red { color: #b42323; } .pl-due.amber { color: #b06a02; }
.pl-b { border-top: 1px solid var(--line-2); padding: 14px; }
.pl-evs { margin-top: 6px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.7; color: #475467; } .pl-evs > div { display: flex; gap: 8px; align-items: flex-start; } .pl-evs b { color: var(--text); }
.pl-ev { flex: none; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10px; line-height: 16px; text-align: center; color: #fff; margin-top: 3px; }
.pl-ev.ok { background: var(--green); } .pl-ev.bad { background: var(--red); } .pl-ev.na { background: #c5ccd8; }
.pl-refs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .pl-refs a { width: 76px; text-decoration: none; color: var(--muted); font-size: 11px; text-align: center; }
.pl-refs img { width: 76px; height: 100px; object-fit: cover; border-radius: 8px; display: block; background: #f1f4f9; margin-bottom: 3px; }
.pl-refs span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.pl-form { display: grid; gap: 10px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-form label { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); min-width: 0; } .pl-form .wide { grid-column: 1 / -1; } .pl-form .input, .pl-form .select { width: 100%; }
.pl-tl { overflow-x: auto; } .pl-tl-inner { min-width: 860px; padding: 8px 14px 12px; }
.pl-tl-row { display: flex; align-items: center; height: 28px; cursor: pointer; } .pl-tl-row:hover:not(.head) { background: #fafbfd; } .pl-tl-row.head { height: 34px; cursor: default; }
.pl-tl-row .lab { flex: 0 0 250px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; min-width: 0; padding-right: 10px; } .pl-tl-row .lab span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tl-row .trk { position: relative; flex: 1; height: 100%; border-left: 1px solid var(--line-2); background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 13 - 1px), var(--line-2) calc(100% / 13 - 1px), var(--line-2) calc(100% / 13)); }
.pl-tl-row.head .trk { background: none; border-left: none; } .pl-tl-row.head span { position: absolute; bottom: 4px; font-size: 11.5px; color: var(--muted); text-align: center; } .pl-tl-row.head em { position: absolute; top: -14px; left: 0; right: 0; font-style: normal; font-size: 10.5px; color: #98a2b3; }
.pl-tl-row i { position: absolute; display: block; }
.pl-tl-row i.peak { top: 3px; bottom: 3px; background: #fde3ec; border-radius: 4px; }
.pl-tl-row i.bar { top: 9px; height: 10px; border-radius: 5px; background: #b9c4d8; } .pl-tl-row i.bar.on { background: #3b6fe0; } .pl-tl-row i.bar.red { box-shadow: 0 0 0 2px #f6caca; } .pl-tl-row i.bar.amber { box-shadow: 0 0 0 2px #fde2b3; }
.pl-tl-row i.now { top: 0; bottom: 0; width: 2px; background: #e0457b; }
.pl-lg { display: inline-flex; gap: 5px; align-items: center; margin-right: 14px; } .pl-lg i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.pl-lg i.bar { background: #b9c4d8; } .pl-lg i.bar.on { background: #3b6fe0; } .pl-lg i.peak { background: #fde3ec; } .pl-lg i.now { width: 2px; height: 12px; background: #e0457b; border-radius: 0; }
@media (max-width: 760px) {
  .pl-h { flex-direction: column; align-items: stretch; gap: 8px; } .pl-meta { justify-content: space-between; gap: 8px; flex-wrap: wrap; } .pl-meta > div { text-align: left; min-width: 0; } .pl-sub { white-space: normal; }
  .so-sug, .pl-form { grid-template-columns: 1fr; } .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-tl-row .lab { flex-basis: 170px; }
  .notice > div[style*="margin-left:auto"] { margin-left: 0 !important; } .notice { flex-wrap: wrap; }
}
