:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: #08090c;
  color: #f5f6f8;
  font-synthesis: none;
  --page: #08090c;
  --panel: rgba(17, 19, 25, .86);
  --panel-solid: #111319;
  --panel-raised: #171a22;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .14);
  --muted: #9095a2;
  --text-soft: #c5c8d0;
  --accent: #ff506b;
  --accent-light: #ff7b8e;
  --accent-glow: rgba(255, 80, 107, .23);
  --green: #45d6a0;
  --blue: #6a9cff;
  --amber: #f5b85a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--page);
  background-size: 44px 44px;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
input { color: #fff; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -330px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 64, 103, .18), transparent 68%);
}

.ambient-two {
  width: 480px;
  height: 480px;
  bottom: -360px;
  left: -160px;
  background: radial-gradient(circle, rgba(85, 96, 255, .12), transparent 70%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: linear-gradient(145deg, #252834, #12141a);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .25);
}

.brand strong { display: block; font-size: 15px; letter-spacing: .12em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .19em; }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

.view-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 19, 25, .72);
}

.view-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.view-tab.active { color: #fff; background: rgba(255, 80, 107, .14); box-shadow: inset 0 0 0 1px rgba(255, 80, 107, .22); }

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.service-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69, 214, 160, .1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); }
.button-ghost:hover { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .2); }
.button-icon { color: var(--accent-light); font-size: 19px; line-height: 1; }
.button:disabled { cursor: not-allowed; opacity: .42; pointer-events: none; }

.button-primary { min-width: 126px; background: linear-gradient(135deg, #ff5b74, #ec3656); box-shadow: 0 10px 28px rgba(236, 54, 86, .22); }
.button-primary:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary:hover:not(:disabled) { box-shadow: 0 13px 32px rgba(236, 54, 86, .32); }
.button-danger { border-color: rgba(255, 73, 101, .48); color: #ff8ca0; background: rgba(255, 73, 101, .1); }
.button-danger:hover { border-color: var(--accent); color: #fff; background: rgba(255, 73, 101, .2); }
.button-danger:disabled { cursor: wait; opacity: .62; }
.button-compact { min-height: 38px; padding: 0 12px; }

.login-shell { position: relative; z-index: 1; display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.login-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: rgba(17,19,25,.94); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-brand { margin-bottom: 44px; }
.login-card h1 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.login-copy { margin: 12px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-field { display: block; margin-top: 14px; }
.form-field span { display: block; margin-bottom: 7px; color: var(--text-soft); font-size: 11px; font-weight: 650; }
.form-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; outline: none; background: rgba(7,8,11,.65); }
.form-field input:focus { border-color: rgba(255,80,107,.58); box-shadow: 0 0 0 3px rgba(255,80,107,.08); }
.form-error { min-height: 18px; margin: 10px 0 0; color: var(--accent-light); font-size: 11px; }
.login-submit { width: 100%; margin-top: 8px; }

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 38px;
  padding: 0 2px 30px;
}

.eyebrow, .panel-kicker {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .21em;
}

.hero h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.hero-metric {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  min-width: 168px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.metric-label { grid-column: 1 / -1; margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.hero-metric strong { font-size: 30px; letter-spacing: -.04em; }
.metric-caption { margin-left: 7px; color: var(--muted); font-size: 12px; }

/* 视图头部统一视觉：四个 tab 共用（问题反馈 hero 的文案指标也对齐这里）。
   顶部间距放在 heading 上而不是外层容器，避免各视图自带 padding 漏配。 */
.analytics-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 38px; }
.analytics-heading h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.045em; }
.analytics-heading .hero-copy { margin: 12px 0 0; }
/* workers-view 是块级容器，heading 的 margin-top 会与父级发生外边距折叠
   导致顶部间距比 grid 容器的视图多出一段；flow-root 阻断折叠即可。 */
#workers-view { display: flow-root; }
.analytics-range { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.analytics-range select { min-height: 42px; padding: 0 34px 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; color: #fff; background: var(--panel-raised); }
.analytics-definition { display: flex; gap: 12px; margin-top: 28px; padding: 12px 15px; border: 1px solid rgba(106,156,255,.16); border-radius: 12px; color: var(--muted); background: rgba(106,156,255,.05); font-size: 11px; line-height: 1.55; }
.analytics-definition strong { flex: 0 0 auto; color: #a9c2ff; }
.analytics-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.metric-card { display: grid; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,19,25,.82); box-shadow: 0 14px 42px rgba(0,0,0,.16); }
.metric-card span { color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.metric-card strong { margin: 9px 0 4px; font-size: 30px; letter-spacing: -.04em; }
.metric-card small { color: #696f7b; font-size: 9px; }
.analytics-panel { height: auto; margin-top: 14px; padding: 22px; overflow: visible; }
.analytics-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.analytics-panel-heading h2 { margin: 0; font-size: 18px; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend span::before { width: 18px; height: 2px; border-radius: 999px; content: ""; }
.legend-submitted::before { background: var(--accent); }
.legend-processed::before { background: var(--blue); }
.trend-chart { min-height: 280px; margin-top: 18px; }
.trend-chart svg { display: block; width: 100%; min-width: 680px; }
.trend-chart { overflow-x: auto; }
.chart-grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart-grid text { fill: #6f7480; font-size: 10px; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.submitted-line { stroke: var(--accent); }
.processed-line { stroke: var(--blue); }
.submitted-point { fill: var(--accent); }
.processed-point { fill: var(--blue); }
.analytics-loading { display: grid; min-height: 250px; place-items: center; color: var(--muted); font-size: 12px; }
.reporter-panel { margin-bottom: 32px; }
.reporter-table-wrap { margin-top: 18px; overflow-x: auto; }
.reporter-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.reporter-table th, .reporter-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.reporter-table th { color: #717682; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.reporter-table td { color: var(--text-soft); font-size: 12px; }
.reporter-table tbody tr:last-child td { border-bottom: 0; }
.reporter-summary-row { transition: background .18s ease; }
.reporter-summary-row:hover { background: rgba(255,255,255,.025); }
.reporter-toggle { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.reporter-toggle:disabled { cursor: default; }
.reporter-chevron { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.05); font-size: 18px; line-height: 1; transition: transform .18s ease; }
.reporter-toggle:disabled .reporter-chevron { opacity: .3; }
.reporter-toggle[aria-expanded="true"] .reporter-chevron { transform: rotate(90deg); }
.reporter-detail-row td { padding: 0 12px 14px; background: rgba(255,255,255,.012); }
.unresolved-panel { padding: 4px 14px 12px 39px; }
.unresolved-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.unresolved-panel ul { margin: 0; padding: 0; list-style: none; }
.unresolved-panel li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.055); }
.unresolved-copy { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.unresolved-copy > strong { overflow: hidden; color: #e9ebef; font-size: 12px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.unresolved-copy > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.ratio-cell { display: flex; align-items: center; gap: 12px; }
.ratio-cell span { width: 38px; color: #fff; font-variant-numeric: tabular-nums; }
.ratio-cell i { display: block; width: min(180px, 18vw); height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.ratio-cell b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.analytics-empty { height: 120px; color: var(--muted) !important; text-align: center !important; }

.quick-views {
  display: flex;
  gap: 8px;
  margin: 18px 0 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-view {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(18,20,27,.72);
  font-size: 11px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.quick-view strong { color: #8d929e; font-size: 10px; font-variant-numeric: tabular-nums; }
.quick-view:hover { border-color: var(--line-strong); color: var(--text-soft); }
.quick-view.active { border-color: rgba(255,80,107,.38); color: #fff; background: rgba(255,80,107,.1); }
.quick-view.active strong { color: var(--accent-light); }

/* 筛选卡为内容自适应换行：字段数量会随功能演进增减（现为搜索+7 下拉+按钮），
   固定列数的网格在字段变多后会把下拉压到卡片底部，原生弹层超过视口被裁。
   flex 换行让卡片保持两行以内，下拉位置尽量靠上。 */
.filter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 20, 27, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-card .search-field { flex: 1 1 340px; }
.filter-card .select-field { flex: 0 1 auto; min-width: 175px; }

/* 展示方式行（排序/分组）：分段按钮，与筛选下拉的"选值"形态刻意区分。 */
.display-row { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 10px; }
.segment-group { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 48px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 8, 11, .52); }
.segment-group > span { padding: 0 6px 0 9px; color: #747a86; font-size: 10px; letter-spacing: .08em; }
.segment-btn { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; transition: color .18s ease, background .18s ease; }
.segment-btn:hover { color: var(--text-soft); background: rgba(255, 255, 255, .045); }
.segment-btn.active { color: var(--accent-light); background: rgba(255, 80, 107, .14); font-weight: 650; }
.display-row > .button { flex: 0 0 auto; margin-left: auto; }

.search-field, .select-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 8, 11, .52);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-field:focus-within, .select-field:focus-within { border-color: rgba(255, 80, 107, .55); box-shadow: 0 0 0 3px rgba(255, 80, 107, .08); }
.search-field > span { padding-left: 15px; color: var(--muted); font-size: 21px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px 0 10px; color: #fff; background: transparent; }
.search-field input::placeholder { color: #686d78; }
.select-field { position: relative; padding-left: 13px; }
.select-field > span { flex: 0 0 auto; padding-right: 9px; border-right: 1px solid var(--line); color: #747a86; font-size: 10px; letter-spacing: .08em; }
.select-field select { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 8px; color: var(--text-soft); background: transparent; appearance: auto; }

/* 自绘下拉（AppSelect）：弹层方向自控，避免原生 select 弹层被视口底边裁掉。 */
.app-select { position: relative; flex: 1; min-width: 0; }
.app-select-trigger { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; padding: 0 8px; color: var(--text-soft); background: transparent; text-align: left; cursor: pointer; }
.app-select-value { flex: 1; overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.app-select-value.placeholder { color: var(--muted); }
.app-select-caret { color: #747a86; font-size: 10px; transition: transform .15s ease, color .15s ease; }
.app-select.open .app-select-caret { transform: rotate(180deg); color: var(--accent-light); }
.app-select-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-solid); box-shadow: var(--shadow); }
.app-select-menu.upward { top: auto; bottom: calc(100% + 6px); }
.app-select-option { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--text-soft); background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.app-select-option:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.app-select-option.selected { background: rgba(255, 80, 107, .12); color: var(--accent-light); }

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(500px, 1.48fr);
  height: clamp(480px, calc(100dvh - 420px), 640px);
  gap: 16px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.feedback-panel { display: flex; flex-direction: column; }

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.panel-kicker { margin-bottom: 5px; font-size: 8px; }
.count-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; }

.preview-banner { padding: 9px 20px; border-bottom: 1px solid rgba(245,184,90,.16); color: var(--amber); background: rgba(245,184,90,.06); font-size: 11px; }
.feedback-list { flex: 1; min-height: 0; overflow-y: auto; }

.feedback-item {
  position: relative;
  padding: 0 20px 17px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.feedback-item::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleY(.5);
  transition: opacity .18s ease, transform .18s ease;
}

.feedback-item:hover { background: rgba(255, 255, 255, .03); }
.feedback-item.active { background: linear-gradient(90deg, rgba(255, 80, 107, .085), rgba(255,255,255,.025)); }
.feedback-item.active::before { opacity: 1; transform: scaleY(1); }
.item-topline, .item-meta, .item-state, .detail-title-row, .detail-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.item-state { justify-content: flex-start; gap: 6px; }
.item-row { display: flex; align-items: flex-start; }
.feedback-open { display: block; flex: 1; min-width: 0; border: 0; padding: 18px 6px 0 20px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.feedback-title { display: block; margin: 12px 0 8px; overflow: hidden; color: #eef0f4; font-size: 14px; font-weight: 620; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { justify-content: flex-start; color: var(--muted); font-size: 11px; }
.item-meta span + span::before { margin-right: 7px; color: #3f434c; content: "•"; }
.item-row .item-chat-link { flex: 0 0 auto; margin: 16px 20px 0 4px; }
.muted { color: var(--muted); font-size: 11px; }

.item-activity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
/* 抓虫小能手榜单 */
.bughunt-view { display: grid; gap: 16px; }
.week-nav { display: flex; gap: 10px; }
.week-nav .button { border-color: rgba(106, 156, 255, .5); color: #bcd2ff; background: rgba(106, 156, 255, .16); }
.week-nav .button:hover:not(:disabled) { border-color: rgba(106, 156, 255, .8); background: rgba(106, 156, 255, .3); }
.week-nav .button:disabled { border-color: var(--line); color: var(--muted); background: transparent; opacity: .55; }
.bughunt-week-label { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.podium-wrap { display: grid; place-items: center; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; width: min(100%, 760px); padding: 30px 16px 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(18, 20, 27, .82); box-shadow: var(--shadow); }
.podium-col { display: flex; min-width: 0; flex: 1 1 0; flex-direction: column; align-items: center; gap: 7px; }
.podium-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: #3a4150; font-size: 18px; font-weight: 700; }
.podium-avatar.small { width: 34px; height: 34px; font-size: 13px; }
.podium-rank-1 .podium-avatar { background: linear-gradient(145deg, #f6c66b, #d99a2b); box-shadow: 0 0 22px rgba(245, 184, 90, .35); }
.podium-rank-2 .podium-avatar { background: linear-gradient(145deg, #c3c9d6, #8f97a8); }
.podium-rank-3 .podium-avatar { background: linear-gradient(145deg, #d8926b, #a4613c); }
.podium-medal { font-size: 18px; line-height: 1; }
.podium-name { max-width: 100%; overflow: hidden; color: #eef0f4; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.podium-count { color: var(--muted); font-size: 11px; }
.podium-step { display: grid; width: 100%; height: 56px; place-items: center; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; color: rgba(255, 255, 255, .5); background: linear-gradient(180deg, #262a35, #1b1e26); font: 700 22px ui-monospace, monospace; }
.podium-rank-1 .podium-step { height: 108px; border-color: rgba(245, 184, 90, .38); background: linear-gradient(180deg, rgba(245, 184, 90, .3), #1b1e26); color: #f8cd8a; }
.podium-rank-2 .podium-step { height: 82px; border-color: rgba(195, 201, 214, .3); background: linear-gradient(180deg, rgba(195, 201, 214, .22), #1b1e26); color: #ccd2de; }
.podium-rank-3 .podium-step { height: 60px; border-color: rgba(216, 146, 107, .32); background: linear-gradient(180deg, rgba(216, 146, 107, .24), #1b1e26); color: #e5a87f; }
.winner-badge { padding: 3px 9px; border: 1px solid rgba(69, 214, 160, .4); border-radius: 999px; color: #7fe6c2; background: rgba(69, 214, 160, .1); font-size: 10px; white-space: nowrap; }
.winner-placeholder { height: 20px; }
.bughunt-rest { display: grid; gap: 8px; }
.bughunt-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(18, 20, 27, .82); }
.bughunt-rank { width: 22px; color: var(--muted); font: 700 14px ui-monospace, monospace; }
.bughunt-name { flex: 1; overflow: hidden; color: var(--text-soft); font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.bughunt-count { color: var(--muted); font-size: 11px; }

/* 趋势图 hover：整列命中区 + 参考线 + 数据提示浮层 */
.trend-chart { position: relative; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-crosshair { stroke: rgba(255, 255, 255, .28); stroke-dasharray: 4 4; pointer-events: none; }
.chart-tooltip { position: absolute; top: 10px; z-index: 5; display: grid; gap: 3px; transform: translateX(-50%); padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-solid); box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; }
.chart-tooltip strong { color: #eef0f4; font-size: 11px; letter-spacing: .04em; }
.chart-tooltip span { font-size: 11px; color: var(--muted); }
.chart-tooltip .legend-submitted::before, .chart-tooltip .legend-processed::before { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; content: ""; }

.stale-pill { flex: 0 0 auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(18, 20, 27, .72); font-size: 10px; white-space: nowrap; }
.stale-pill.stale-warn { border-color: rgba(255, 80, 107, .42); color: #ff93a4; background: rgba(255, 80, 107, .09); }

/* 分组卡片给出清晰的组边界；卡片圆角裁剪必须用 overflow: clip——hidden 会
   产生滚动容器，把组头的吸顶困在卡片内失效。横幅吸顶时背景必须近乎不透明，
   否则下层条目会透出来。 */
.list-group { margin: 10px 10px 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(13, 15, 20, .55); overflow: clip; }
.list-group:last-child { margin-bottom: 10px; }
.group-header { position: sticky; top: 0; z-index: 2; display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line-strong); padding: 11px 16px; color: var(--text-soft); background: #161923; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-align: left; cursor: pointer; transition: background .18s ease; }
.group-header:hover { background: #1c202c; }
.group-chevron { flex: 0 0 auto; color: #9aa0ad; font-size: 17px; line-height: 1; transition: transform .15s ease, color .15s ease; }
.group-header:hover .group-chevron { color: #dfe2e8; }
.group-chevron.open { transform: rotate(90deg); }
.group-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #8a90a0; }
.group-header .group-count { padding: 2px 9px; border-radius: 999px; background: rgba(138, 144, 160, .16); color: var(--text-soft); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.group-header[data-tone="running"] .group-dot { background: #6a9cff; box-shadow: 0 0 10px rgba(106, 156, 255, .45); }
.group-header[data-tone="running"] .group-label { color: #a9c4ff; }
.group-header[data-tone="running"] .group-count { background: rgba(106, 156, 255, .15); color: #a9c4ff; }
.group-header[data-tone="waiting"] .group-dot { background: #f5b85a; box-shadow: 0 0 10px rgba(245, 184, 90, .45); }
.group-header[data-tone="waiting"] .group-label { color: #f8cd8a; }
.group-header[data-tone="waiting"] .group-count { background: rgba(245, 184, 90, .14); color: #f8cd8a; }
.group-header[data-tone="danger"] .group-dot { background: #ff506b; box-shadow: 0 0 10px rgba(255, 80, 107, .5); }
.group-header[data-tone="danger"] .group-label { color: #ff93a4; }
.group-header[data-tone="danger"] .group-count { background: rgba(255, 80, 107, .14); color: #ff93a4; }
.group-header[data-tone="done"] .group-dot { background: #45d6a0; box-shadow: 0 0 10px rgba(69, 214, 160, .45); }
.group-header[data-tone="done"] .group-label { color: #8ce8c6; }
.group-header[data-tone="done"] .group-count { background: rgba(69, 214, 160, .13); color: #8ce8c6; }
.group-items .feedback-item:last-child { border-bottom: 0; }

.feishu-chat-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(111,157,255,.32); border-radius: 10px; color: #9bbaff; background: rgba(111,157,255,.08); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: border-color .18s ease, background .18s ease; }
.feishu-chat-link:hover { border-color: rgba(111,157,255,.58); background: rgba(111,157,255,.14); }
.feishu-chat-link.compact { min-height: 28px; padding: 0 9px; border-radius: 8px; font-size: 10px; }
.chat-link-unavailable { color: #656a75; font-size: 10px; white-space: nowrap; }

.status-pill, .platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .04em;
}

.automation-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}
.automation-running { border-color: rgba(111,157,255,.32); color: #a9c2ff; background: rgba(111,157,255,.08); }
.automation-waiting { border-color: rgba(245,184,90,.35); color: var(--amber); background: rgba(245,184,90,.08); }
.automation-done { border-color: rgba(69,214,160,.28); color: var(--green); background: rgba(69,214,160,.08); }
.automation-danger { border-color: rgba(255,80,107,.35); color: #ff91a3; background: rgba(255,80,107,.09); }
.automation-pending { color: #777d89; background: rgba(255,255,255,.035); }

.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-open { border-color: rgba(255,80,107,.22); color: #ff7b8e; background: rgba(255,80,107,.08); }
.status-investigating { border-color: rgba(245,184,90,.22); color: var(--amber); background: rgba(245,184,90,.07); }
.status-resolved { border-color: rgba(69,214,160,.22); color: var(--green); background: rgba(69,214,160,.07); }
.status-closed { color: #8d929e; background: rgba(141,146,158,.07); }
.platform-pill { color: var(--text-soft); background: rgba(255,255,255,.025); }

.detail-panel { padding: 28px; overflow: auto; }
.detail-panel.empty { display: grid; place-items: center; }
.empty-state { max-width: 360px; text-align: center; }
.empty-state h2 { margin: 12px 0 8px; font-size: 23px; }
.empty-state p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-illustration { position: relative; width: 90px; height: 76px; margin: 0 auto 24px; }
.bubble { position: absolute; display: block; border: 1px solid var(--line-strong); background: linear-gradient(145deg, #242833, #15171e); box-shadow: 0 14px 28px rgba(0,0,0,.25); }
.bubble-one { inset: 2px 12px 16px 4px; border-radius: 18px 18px 18px 5px; transform: rotate(-7deg); }
.bubble-two { inset: 18px 0 0 28px; border-radius: 16px 16px 5px; background: linear-gradient(145deg, rgba(255,80,107,.2), rgba(255,80,107,.08)); transform: rotate(7deg); }
.empty-check { position: absolute; right: 20px; bottom: 13px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: white; background: var(--accent); box-shadow: 0 7px 18px var(--accent-glow); font-size: 12px; }

.detail-title-row { align-items: flex-start; margin-bottom: 24px; }
.detail-actions { display: flex; align-items: flex-end; gap: 10px; }
.detail-title-row h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.03em; }
.detail-id { margin-top: 7px; color: #666c78; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.detail-status-control { display: flex; align-items: center; gap: 8px; }
.detail-status-control label { color: var(--muted); font-size: 10px; }
.detail-status-control select { min-height: 38px; padding: 0 32px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: #fff; background: var(--panel-raised); }

.priority-pill { display: inline-flex; min-height: 22px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-soft); background: rgba(255,255,255,.04); font-size: 10px; font-weight: 750; }
.priority-p0 { border-color: rgba(255,80,107,.5); color: #ff91a3; background: rgba(255,80,107,.12); }
.priority-p1 { border-color: rgba(245,184,90,.45); color: var(--amber); background: rgba(245,184,90,.1); }
.priority-p2 { border-color: rgba(111,157,255,.38); color: #a9c2ff; background: rgba(111,157,255,.08); }
.priority-p3 { border-color: rgba(141,146,158,.34); color: #aeb3bd; background: rgba(141,146,158,.08); }
.triage-card { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(111,157,255,.18); border-radius: var(--radius-md); background: rgba(111,157,255,.045); }
.triage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.triage-heading .content-label { margin-bottom: 7px; }
.triage-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.triage-fields { display: grid; grid-template-columns: minmax(140px, .55fr) minmax(220px, 1.45fr); gap: 10px; margin-top: 14px; }
.triage-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.triage-fields select, .triage-fields input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; color: #fff; background: var(--panel-raised); }
.triage-fields input:focus, .triage-fields select:focus { border-color: rgba(255,80,107,.58); box-shadow: 0 0 0 3px rgba(255,80,107,.08); }
.triage-fields strong { display: flex; min-height: 42px; align-items: center; color: var(--text-soft); font-size: 12px; }

.workflow-card { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(69,214,160,.15); border-radius: var(--radius-md); background: rgba(69,214,160,.035); }
.workflow-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workflow-heading .content-label { margin-bottom: 7px; }
.workflow-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 14px 0 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.workflow-pr-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #9bbaff; font-size: 11px; font-weight: 650; text-decoration: none; }
.workflow-pr-link:hover { color: #c0d2ff; }

.description-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.content-card { min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.022); }
.content-card.accent { border-color: rgba(255,80,107,.16); background: linear-gradient(145deg, rgba(255,80,107,.055), rgba(255,255,255,.018)); }
.content-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.content-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.content-card p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h3 { margin: 0; font-size: 14px; }
.section-title span { color: var(--muted); font-size: 10px; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.metadata-item { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metadata-item:nth-child(2n) { border-right: 0; }
.metadata-item:nth-last-child(-n+2) { border-bottom: 0; }
.metadata-item dt { margin: 0 0 6px; color: #6f7480; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.metadata-item dd { margin: 0; overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 9px; }
.attachment { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: rgba(255,255,255,.022); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.attachment:hover { border-color: rgba(255,80,107,.3); background: rgba(255,80,107,.05); transform: translateY(-1px); }
.attachment-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--accent-light); background: rgba(255,80,107,.09); font-size: 16px; }
.attachment-copy { min-width: 0; }
.attachment-name { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.modal { padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; color: inherit; background: var(--panel-solid); box-shadow: 0 32px 100px rgba(0,0,0,.72); }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-card { width: min(440px, calc(100vw - 32px)); padding: 24px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; font-size: 22px; }
.modal-close { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 22px; cursor: pointer; }
.signed-in { margin: 18px 0; color: var(--muted); font-size: 12px; }
.signed-in strong { color: #fff; }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.media-modal { width: min(1120px, calc(100vw - 32px)); max-width: none; }
.media-viewer { padding: 18px; }
.media-viewer .modal-heading { align-items: center; margin-bottom: 14px; }
.media-viewer .modal-heading strong { max-width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-content { position: relative; display: grid; min-height: 240px; max-height: calc(100vh - 130px); place-items: center; overflow: auto; border-radius: 14px; background: #050609; }
.media-content img, .media-content video { display: block; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.media-loading { position: absolute; z-index: 1; display: none; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.media-content.loading .media-loading { display: flex; }
.media-content.loading .media-loading::before { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--accent); border-radius: 50%; animation: media-spin .7s linear infinite; content: ""; }
.delete-warning { margin: 20px 0 4px; color: var(--muted); line-height: 1.65; }

.list-empty { display: grid; min-height: 300px; place-items: center; padding: 30px; color: var(--muted); font-size: 12px; text-align: center; }
.loading-row { height: 96px; margin: 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.07), rgba(255,255,255,.025)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #333741; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes media-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; height: auto; }
  .panel { min-height: 420px; height: auto; }
  .feedback-list { flex: none; max-height: 470px; }
}

@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .app-shell { width: min(100% - 24px, 1440px); padding-top: 14px; }
  .topbar { padding-bottom: 14px; }
  .service-state { display: none; }
  .button-ghost { width: 42px; padding: 0; }
  .button-ghost #account-label { display: none; }
  .hero { align-items: flex-start; padding: 0 2px 24px; }
  .analytics-heading { margin-top: 24px; }
  .hero-copy { max-width: 280px; }
  .hero-metric { display: none; }
  .view-tabs { display: flex; width: 100%; }
  .view-tab { flex: 1; }
  .analytics-heading { align-items: flex-start; flex-direction: column; }
  .analytics-range { width: 100%; justify-content: space-between; }
  .analytics-definition { flex-direction: column; }
  .analytics-summary { grid-template-columns: 1fr; }
  .analytics-panel { padding: 18px 14px; }
  .analytics-panel-heading { align-items: flex-start; flex-direction: column; }
  .unresolved-panel { padding-left: 0; }
  .unresolved-panel li { align-items: flex-start; flex-direction: column; gap: 10px; }
  .unresolved-copy { width: 100%; }
  .unresolved-copy > strong { white-space: normal; }
  .filter-card .search-field { flex-basis: 100%; }
  .filter-card .select-field { flex-basis: 100%; min-width: 0; }
  .button-primary { width: 100%; }
  .workspace { margin-top: 12px; }
  .panel { min-height: 360px; border-radius: 18px; }
  .detail-panel { padding: 20px; }
  .feedback-item { min-width: 0; }
  .feedback-title { max-width: 100%; }
  .item-meta { flex-wrap: wrap; }
  .description-grid, .metadata-grid { grid-template-columns: 1fr; }
  .metadata-item { border-right: 0; }
  .metadata-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metadata-item:last-child { border-bottom: 0; }
  .detail-title-row { flex-direction: column; }
  .detail-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .detail-id { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .detail-status-control { width: 100%; }
  .detail-status-control select { flex: 1; min-width: 0; }
  .triage-heading { flex-direction: column; }
  .triage-heading .button { width: 100%; }
  .triage-fields { grid-template-columns: 1fr; }
  .login-shell { padding: 12px; }
  .login-card { padding: 26px 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.worker-device { margin: 20px 0; padding: 24px; border: 1px solid #303138; border-radius: 20px; background: #111217; }
.worker-device p { color: #969aa6; overflow-wrap: anywhere; }
.worker-table-scroll { overflow-x: auto; }
.worker-device table { width: 100%; text-align: left; border-collapse: collapse; }
.worker-device th, .worker-device td { padding: 12px; border-bottom: 1px solid #303138; }

/* 动效仅表示已确认活跃的执行，不暗示百分比进度；过期任务保持静止，等待任务不表示执行进度。 */
.worker-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin:28px 0 18px; }
.worker-metrics > div { background:linear-gradient(135deg,#141b22,#101217); border:1px solid #2b3d45; border-radius:14px; padding:20px; }
.worker-metrics span { color:#98acb8; font-size:12px; letter-spacing:1px; }
.worker-metrics strong { display:block; font:600 36px ui-monospace,monospace; color:#9cf3dc; margin-top:8px; }
.worker-sync { color:#8eafa7; font:12px ui-monospace,monospace; }
.worker-device.live { border-color:#315c57; background:radial-gradient(ellipse at top right,#13312c66,transparent 55%),#11151b; box-shadow:inset 0 1px #76ddc622; }
.worker-device.offline { opacity:.7; }
.worker-device-label { color:#76cdb7; font:11px ui-monospace,monospace; letter-spacing:2px; margin-bottom:12px; }
.worker-device h2 { font-size:20px; }
.worker-device th { color:#859baa; font-size:12px; font-weight:500; }
.worker-row td { padding-top:20px; padding-bottom:20px; }
.worker-signal { display:inline-block; width:7px; height:7px; margin-right:10px; border-radius:50%; background:#6d7480; }
.worker-row.active .worker-signal { background:#72e9c7; box-shadow:0 0 12px #72e9c780; animation:worker-pulse 2s ease-in-out infinite; }
.worker-row.waiting .worker-signal { background:#e8bd70; }
.worker-badge { border:1px solid #414854; background:#242933; padding:5px 8px; border-radius:6px; font-size:12px; white-space:nowrap; }
.active .worker-badge { color:#91efd3; border-color:#347260; background:#15352b; }
.waiting .worker-badge { color:#e8bd70; border-color:#73603b; background:#332d1e; }
.worker-phase { font-size:13px; }
.worker-feedback-link { color:#d1e5ef; text-decoration:none; display:block; max-width:340px; }
.worker-feedback-link:hover { color:#87efcf; text-decoration:underline; }
.worker-feedback-id { display:block; color:#6eabbd; font:11px ui-monospace,monospace; margin-bottom:6px; }
.worker-duration { font:13px ui-monospace,monospace; white-space:nowrap; }
@keyframes worker-pulse { 50% { opacity:.4; } }
@media(max-width:650px) { .worker-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .worker-device { padding:18px; } }
@media(prefers-reduced-motion:reduce) { .worker-row.active .worker-signal { animation:none; } }

/* 不使用假进度；每个动作只表达任务类型。未知/过期上报不播放角色动效。 */
.worker-stage { display:flex; align-items:center; gap:12px; min-width:185px; }
.worker-stage-copy { display:flex; flex-direction:column; gap:5px; }
.worker-stage-copy small { color:#869da9; font-size:11px; white-space:nowrap; }
.doku-mascot { display:block; width:84px; height:74px; flex:none; }
.doku-mascot picture,.doku-mascot img { display:block; width:100%; height:100%; object-fit:contain; }
.doku-offline { filter:grayscale(.9); opacity:.65; }

.idle .worker-badge { color:#a9c9ee; border-color:#415e80; background:#172638; }
.worker-row.idle .worker-signal { background:#86a9d4; }

/* 首屏优先展示 Worker；统计分组保持紧凑，明细只在抽屉打开后出现。 */
.worker-overview { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:20px; margin-top:12px; }
.worker-overview section { min-width:0; }
.worker-overview h2 { font-size:14px; margin:0 0 8px; color:#98acb8; }
.worker-overview small { color:#98acb8; font-size:11px; }
.worker-overview .worker-metrics { display:flex; flex-wrap:wrap; gap:10px; margin:0; }
.worker-overview .worker-metrics > div { flex:0 0 auto; min-width:0; background:var(--panel); border:1px solid var(--line-strong); border-radius:12px; padding:12px; }
.worker-overview .worker-metrics strong { font-size:22px; margin-top:4px; }
.worker-count-link { appearance:none; background:transparent; color:inherit; font:inherit; border:0; padding:0; text-align:left; cursor:pointer; }
.worker-count-link:hover strong { color:#fff; }
#workers-view .worker-device { padding:18px 22px; }
#workers-view .worker-device h2 { font-size:16px; margin:8px 0; }
#workers-view .worker-device p { font-size:12px; margin:8px 0; }
#workers-view .worker-row td { padding:8px 12px; }
#workers-view .doku-mascot { width:64px; height:58px; }
.worker-drawer-backdrop { position:fixed; inset:0; z-index:100; background:#0008; display:flex; justify-content:flex-end; }
.worker-drawer { width:min(900px,100vw); height:100%; box-sizing:border-box; overflow:auto; background:#10161d; border-left:1px solid #304550; padding:24px; box-shadow:-12px 0 40px #0006; }
.worker-drawer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.worker-drawer-toolbar > button:last-child { margin-left:auto; }
.worker-drawer > .panel { height:auto; margin-top:16px; }
.worker-drawer .feedback-list { max-height:none; overflow:visible; }
.worker-drawer .detail-panel { overflow:visible; }
.worker-task-note { margin:0; padding:0 20px 14px; color:var(--muted); font-size:12px; }
.worker-drawer-toolbar > .button { background:transparent; color:var(--text-soft); border:1px solid var(--line-strong); }
@media(max-width:900px) { .worker-overview { grid-template-columns:1fr; gap:12px; } }

/* 紧凑模式只作用于 Worker 页；避免后台导航和长反馈描述挤掉第四个槽位。 */
#workers-view .worker-sync { margin:8px 0; }
#workers-view .worker-device { margin:10px 0; padding:12px 18px; }
#workers-view .worker-device-label { margin-bottom:5px; }
#workers-view .worker-device h2 { margin:5px 0; }
#workers-view .worker-device p { margin:5px 0; }
#workers-view .worker-device table { table-layout:fixed; }
#workers-view .worker-device th:nth-child(1) { width:20%; }
#workers-view .worker-device th:nth-child(2) { width:13%; }
#workers-view .worker-device th:nth-child(3) { width:25%; }
#workers-view .worker-device th:nth-child(5) { width:13%; }
#workers-view .worker-device td { font-size:14px; padding:10px 8px; }
#workers-view .worker-row { height:112px; }
#workers-view .worker-device .worker-feedback-link { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; line-height:18px; }
#workers-view .worker-device .worker-feedback-id { display:inline; margin-right:6px; }
#workers-view .doku-mascot { width:96px; height:88px; }
#workers-view .worker-stage { min-width:0; gap:12px; }
@media(max-width:650px) { #workers-view .worker-device table { min-width:760px; } }
#workers-view .worker-overview { margin-top:6px; }
#workers-view .worker-overview h2 { margin-bottom:4px; }
#workers-view .worker-device th { padding:6px 8px; }
.metadata-item .reporter-name-field { white-space: normal; }
.reporter-name-editor { display: flex; flex-wrap: wrap; gap: 8px; }
.reporter-name-editor input { flex: 1; min-width: 100px; width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-soft); background: var(--panel-raised); }
