#workspacePages > #qyipOpsDialog:has(.qd-dashboard) > header,
#workspacePages > #qyipOpsDialog:has(.qd-dashboard) > .platform-body > nav{display:none}
.qd-dashboard {
  --qd-soft: #111;
  --qd-card: #191919;
  --qd-border: #363636;
  --qd-text: #f2f2f2;
  --qd-muted: #ababab;
  color: var(--qd-text);
  font: 14px/1.55 Inter, "Microsoft YaHei UI", "Segoe UI", sans-serif;
  min-width: 0;
}
.qd-dashboard svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.qd-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--qd-border);
  border-radius: 18px;
  background: radial-gradient(ellipse 40% 140% at 82% 0%, #252525, transparent 70%),
    linear-gradient(90deg, var(--qd-card) 38%, #131313);
  box-shadow: inset 0 1px #fff3;
}
.qd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#fff1 1px, transparent 1px), linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 40%, #0008 90%);
}
.qd-title, .qd-hero-actions { position: relative; z-index: 1; }
.qd-title h2 {
  margin: 0 0 7px;
  color: transparent;
  background: linear-gradient(90deg, var(--qd-text) 30%, #a0a0a0);
  background-clip: text;
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.qd-title h2[tabindex="-1"]:focus { outline: none; }
.qd-title p, .qd-recent-heading p { color: var(--qd-muted); font-size: 13px; }
.qd-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--qd-soft);
  color: var(--qd-text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.qd-button svg { width: 14px; height: 14px; }
.qd-button-primary { color: #0a0a0a; background: #f5f5f5; }
.qd-button:disabled { opacity: .55; }
.qd-orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 19%;
  width: 140px;
  height: 140px;
  margin-top: -70px;
  pointer-events: none;
}
.qd-orbit i, .qd-orbit b { position: absolute; inset: 0; border-radius: 50%; }
.qd-orbit i:first-child {
  border: 1px solid #fff2;
  border-top-color: #fff6;
  animation: qd-spin 14s linear infinite;
}
.qd-orbit i:nth-child(2) {
  inset: -36px;
  border: 1px dashed #fff2;
  animation: qd-spin 42s linear infinite reverse;
}
.qd-orbit b { inset: -36px; animation: qd-spin 9s linear infinite; }
.qd-orbit b::before {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--qd-text);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff2, 0 0 12px #fff6;
}
@keyframes qd-spin { to { transform: rotate(360deg); } }
.qd-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 26px 0 14px;
}
.qd-section-heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.qd-date { color: var(--qd-muted); font-size: 12px; }
.qd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qd-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  position: relative;
  min-width: 0;
  min-height: 184px;
  padding: 18px 20px;
  overflow: hidden;
  text-align: left;
  color: var(--qd-text);
  border: 1px solid var(--qd-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #151515, var(--qd-card) 42%);
  box-shadow: inset 0 1px #fff2;
}
.qd-card[data-metric="todayTokens"] {
  background: radial-gradient(ellipse 70% 80% at 100% 0%, #fff1, transparent 70%),
    radial-gradient(circle, #fff2 1px, transparent 1.4px) 0 0 / 14px 14px, var(--qd-card);
  border-color: #555;
}
.qd-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid #fff1;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #fff1;
  opacity: .4;
  pointer-events: none;
}
.qd-card > * { position: relative; z-index: 1; }
.qd-metric-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--qd-muted);
  font-size: 13px;
}
.qd-metric-icon { width: 30px; height: 30px; border: 1px solid var(--qd-border); border-radius: 9px; }
.qd-metric-icon, .qd-project-icon { display: grid; place-items: center; flex-shrink: 0; background: var(--qd-soft); color: var(--qd-text); }
.qd-metric-value { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-weight: 750; }
.qd-metric-note { color: var(--qd-muted); font-size: 12px; }
.qd-metric-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--qd-border);
  color: var(--qd-muted);
  font-size: 11px;
}
.qd-metric-detail svg { width: 11px; height: 11px; }
.qd-recent {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--qd-border);
  border-radius: 16px;
  background: var(--qd-card);
}
.qd-recent-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--qd-border);
  margin-bottom: 18px;
}
.qd-recent-heading h3 { margin: 0 0 5px; font-size: 19px; }
.qd-status { color: var(--qd-muted); font-size: 13px; overflow-wrap: anywhere; }
.qd-status[data-state="error"] { color: #ffd7d1; }
.qd-status a { display: inline-flex; align-items: center; min-height: 24px; margin-left: 6px; color: var(--qd-text); text-decoration: underline; }
.qd-projects { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.qd-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 12px;
  min-width: 0;
  border: 1px solid var(--qd-border);
  border-radius: 14px;
  background: #131313;
}
.qd-project-main, .qd-progress, .qd-project-actions { display: flex; align-items: center; min-width: 0; }
.qd-project-main {
  gap: 13px;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 650;
}
.qd-project-icon { width: 40px; height: 40px; border-radius: 12px; background: #f5f5f5; color: #0a0a0a; }
.qd-project-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-project-chip {
  flex-shrink: 0;
  border: 1px solid var(--qd-border);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--qd-muted);
  white-space: nowrap;
}
.qd-progress { justify-content: flex-end; gap: 12px; }
.qd-progress-track {
  appearance: none;
  min-width: 0;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #252525;
}
.qd-progress-track::-webkit-progress-bar { background: #252525; }
.qd-progress-track::-webkit-progress-value { background: #d4d4d4; }
.qd-progress-track::-moz-progress-bar { background: #d4d4d4; }
.qd-progress-number { min-width: 30px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.qd-project-actions { gap: 8px; }
.qd-icon-button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  background: transparent;
  color: var(--qd-muted);
  border: 0;
  border-radius: 8px;
}
.qd-icon-button:disabled { opacity: .4; }
.qd-icon-button svg { width: 14px; height: 14px; }
.qd-more { display: flex; margin: 12px auto 0; border-color: var(--qd-border); }
.qd-dashboard button { transition: transform 160ms ease, opacity 160ms ease; }
.qd-dashboard button:not(:disabled):active { transform: scale(.985); }
.qd-dashboard :is(button, a):focus-visible { outline: 2px solid #c1dbff; outline-offset: 2px; }
@media (hover:hover) {
  button.qd-card:hover, .qd-project:hover { border-color: #666; }
  .qd-button:not(:disabled):hover, .qd-icon-button:not(:disabled):hover { opacity: .82; }
}
@media (max-width: 1000px) {
  .qd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 900px) {
  .qd-orbit { display: none; }
  .qd-project { grid-template-columns: minmax(0, 1fr) minmax(84px, 160px) auto; gap: 14px; }
}
@media (max-width: 760px) {
  .qd-button, .qd-status a { min-height: 44px; }
  .qd-project-main { min-height: 44px; }
  .qd-icon-button { width: 44px; height: 44px; }
  .qd-project-actions { gap: 0; }
}
@media (max-width: 600px) {
  .qd-grid { grid-template-columns: minmax(0, 1fr); }
  .qd-hero { flex-wrap: wrap; padding: 20px 16px; }
  .qd-title h2 { font-size: 26px; }
  .qd-section-heading { margin-top: 20px; flex-wrap: wrap; }
  .qd-card { min-height: 0; padding: 16px; }
  .qd-recent { padding: 16px 12px; }
  .qd-project { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .qd-project-actions { grid-column: 2; grid-row: 1; }
  .qd-progress { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .qd-dashboard button { transition: none; }
  .qd-orbit i:first-child, .qd-orbit i:nth-child(2), .qd-orbit b { animation: none; }
}
