:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(29, 29, 31, 0.1);
  --stroke-strong: rgba(29, 29, 31, 0.18);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0a84ff;
  --green: #30d158;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --red: #ff453a;
  --violet: #5e5ce6;
  --page-max: 1760px;
  --card-radius: 28px;
  --inner-radius: 20px;
  --control-radius: 16px;
  --shadow: 0 26px 76px rgba(31, 35, 45, 0.12);
  --glass-shadow: 0 28px 86px rgba(31, 35, 45, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --glass-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.36) 48%, rgba(248, 255, 251, 0.28)),
    linear-gradient(160deg, rgba(10, 132, 255, 0.08), transparent 42%),
    linear-gradient(330deg, rgba(48, 209, 88, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.38);
  --glass-bg-strong:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48) 52%, rgba(246, 255, 250, 0.34)),
    linear-gradient(165deg, rgba(10, 132, 255, 0.09), transparent 45%),
    rgba(255, 255, 255, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(225, 232, 235, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

body::-webkit-scrollbar-track {
  margin: 10px 4px;
}

::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 4px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.22)) padding-box,
    linear-gradient(180deg, rgba(142, 142, 147, 0.4), rgba(142, 142, 147, 0.18)) border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(31, 35, 45, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)) padding-box,
    linear-gradient(180deg, rgba(10, 132, 255, 0.48), rgba(48, 209, 88, 0.38)) border-box;
  background-clip: padding-box, border-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei UI",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(220, 243, 232, 0.62) 0%, rgba(250, 251, 255, 0.8) 34%, rgba(238, 243, 250, 0.84) 66%, rgba(246, 252, 247, 0.78) 100%),
    linear-gradient(180deg, #fbfbfd 0%, #eef2f4 100%);
  letter-spacing: 0;
  scroll-padding-block: 34px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
  z-index: 9;
}

body::before {
  top: 0;
  background: linear-gradient(180deg, rgba(244, 248, 247, 0.94), rgba(244, 248, 247, 0));
}

body::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(239, 244, 242, 0.94), rgba(239, 244, 242, 0));
}

button {
  font: inherit;
}

.window-drag {
  position: fixed;
  inset: 0 0 auto;
  height: 44px;
  -webkit-app-region: drag;
  z-index: 10;
}

.dashboard {
  min-height: 100vh;
  padding: 30px clamp(18px, 2.6vw, 46px) 56px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.app-chrome,
.hero-grid,
.account-pool-panel,
.tab-shell,
.tab-panel {
  width: min(var(--page-max), calc(100vw - clamp(36px, 5vw, 96px)));
  margin: 0 auto;
}

.app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 128px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(44px) saturate(1.75);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.brand-mark {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 26px rgba(31, 35, 45, 0.1);
  clip-path: inset(0 round 24px);
}

.brand-copy {
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.brand p {
  margin-top: 4px;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
}

.brand p span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-eyebrow {
  color: #0a66c2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.toolbar-pill,
.icon-button {
  height: 30px;
  border: 1px solid var(--stroke);
  border-radius: var(--control-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(26px) saturate(1.55);
  box-shadow: 0 10px 26px rgba(31, 35, 45, 0.08);
}

.toolbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-toggle {
  position: relative;
  isolation: isolate;
  width: 84px;
  min-width: 84px;
  overflow: hidden;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(31, 35, 45, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.language-toggle::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -2;
  border-radius: 15px;
  background:
    linear-gradient(112deg, rgba(10, 132, 255, 0.9) 0 47%, rgba(255, 255, 255, 0.26) 48% 100%),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: background 180ms ease;
}

.language-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  z-index: -1;
  width: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  filter: blur(0.2px);
  transform: translateX(-50%) skewX(-22deg);
  opacity: 0.86;
}

.language-toggle .lang-half {
  width: 50%;
  height: 100%;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.language-toggle .lang-zh {
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.language-toggle .lang-en {
  color: rgba(29, 29, 31, 0.72);
}

.language-toggle:hover {
  border-color: rgba(10, 132, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.38);
}

.language-toggle.is-en {
  color: var(--text);
  border-color: rgba(94, 92, 230, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 237, 255, 0.44)),
    rgba(255, 255, 255, 0.34);
}

.language-toggle.is-en::before {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.28) 0 47%, rgba(94, 92, 230, 0.92) 48% 100%),
    rgba(255, 255, 255, 0.34);
}

.language-toggle.is-en .lang-zh {
  color: rgba(29, 29, 31, 0.7);
  text-shadow: none;
}

.language-toggle.is-en .lang-en {
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.toolbar-pill.accent {
  color: #355b1f;
  background: rgba(48, 209, 88, 0.18);
}

.api-mode .toolbar-pill.accent {
  color: #0a66c2;
  background: rgba(10, 132, 255, 0.14);
}

.toolbar-pill.is-live {
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.16);
}

.icon-button {
  width: 32px;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-strong);
}

.close-button {
  font-size: 18px;
  line-height: 1;
}

.close-button:hover {
  color: #8f1d16;
  border-color: rgba(255, 69, 58, 0.24);
  background: rgba(255, 69, 58, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.quota-card,
.stat-card,
.account-pool-panel,
.payback-card,
.tab-shell,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(46px) saturate(1.75);
}

.quota-card:has(.quota-warning-popover:not([hidden])),
.stat-card:has(.api-value-popover:not([hidden])),
.stat-card:has(.work-info-popover:not([hidden])) {
  overflow: visible;
  z-index: 40;
}

.quota-card::before,
.stat-card::before,
.account-pool-panel::before,
.payback-card::before,
.tab-shell::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 36%, rgba(255, 255, 255, 0.2));
}

.quota-card > *,
.stat-card > *,
.account-pool-panel > *,
.payback-card > *,
.tab-shell > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.quota-card {
  min-height: 218px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: 148px 28px;
  align-content: center;
  column-gap: 16px;
  row-gap: 2px;
  padding: 18px 22px;
  position: relative;
}

.quota-view-toggle {
  position: absolute;
  bottom: 8px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 20px rgba(31, 35, 45, 0.07);
  backdrop-filter: blur(18px) saturate(1.45);
}

.quota-warning-button.info-button {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  z-index: 6;
  width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  padding: 0;
  font-size: 10px;
  cursor: pointer;
}

body.quota-five-hour .quota-warning-button {
  display: grid;
}

.quota-warning-popover {
  position: absolute;
  right: 14px;
  top: 48px;
  bottom: auto;
  z-index: 8;
  width: min(360px, calc(100% - 28px));
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  padding: 14px 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(210, 242, 255, 0.64), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.91), rgba(239, 248, 255, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 18px 42px rgba(31, 71, 104, 0.16);
  backdrop-filter: blur(26px) saturate(1.45);
}

.quota-warning-popover[hidden] {
  display: none !important;
}

.quota-warning-popover strong {
  color: #0a66c2;
  font-size: 13px;
}

.quota-warning-popover p {
  margin: 0;
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.48;
}

.quota-warning-popover small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.quota-view-toggle button {
  height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.quota-view-toggle button.is-active {
  color: #0f6b2e;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 14px rgba(31, 35, 45, 0.09);
}

.hero-grid .quota-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(235, 255, 241, 0.36) 58%, rgba(255, 255, 255, 0.22)),
    linear-gradient(320deg, rgba(48, 209, 88, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.34);
}

.quota-ring {
  --ring-primary-dasharray: 278.97;
  --ring-weekly-dasharray: 371.96;
  --ring-primary-offset: 278.97;
  --ring-weekly-offset: 371.96;
  --quota-primary-progress: 0%;
  --quota-weekly-progress: 0%;
  width: 148px;
  height: 148px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 39%, rgba(255, 255, 255, 0.66) 40% 41%, transparent 42%),
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.46), transparent 42%),
    rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 18px 42px rgba(31, 35, 45, 0.1);
  backdrop-filter: blur(18px) saturate(1.45);
  grid-column: 1;
  grid-row: 1;
}

.quota-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.ring-track {
  stroke-linecap: round;
}

.ring-track-weekly {
  stroke: rgba(10, 132, 255, 0.11);
  stroke-width: 15;
}

.ring-track-primary {
  stroke: rgba(48, 209, 88, 0.12);
  stroke-width: 15;
}

.ring-progress {
  stroke-linecap: butt;
  transition: stroke-dashoffset 360ms ease;
}

.ring-progress-weekly {
  stroke: var(--blue);
  stroke-width: 15;
  stroke-dasharray: var(--ring-weekly-dasharray);
  stroke-dashoffset: var(--ring-weekly-offset);
}

.ring-progress-primary {
  stroke: var(--quota-primary-color, var(--green));
  stroke-width: 15;
  stroke-dasharray: var(--ring-primary-dasharray);
  stroke-dashoffset: var(--ring-primary-offset);
  opacity: var(--quota-primary-opacity, 1);
}

.quota-ring div {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 1px;
  max-width: 74px;
}

.quota-ring strong {
  font-size: 30px;
  line-height: 1;
}

.quota-ring span {
  max-width: 70px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.16;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-ring span,
.quota-reset span,
.stat-head span,
.panel-head span,
.source-list span,
.split-metrics span,
.stat-card p,
.rank-item small,
.thread-body span,
.float-copy span,
.float-copy small {
  color: var(--muted);
}

.api-mode .quota-ring {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 39%, rgba(255, 255, 255, 0.66) 40% 41%, transparent 42%),
    linear-gradient(145deg, rgba(10, 132, 255, 0.12), rgba(48, 209, 88, 0.12)),
    rgba(255, 255, 255, 0.16);
}

.api-mode .ring-track-primary,
.api-mode .ring-track-weekly {
  stroke: rgba(10, 132, 255, 0.13);
}

.api-mode .ring-progress-primary {
  stroke: var(--green);
}

.api-mode .ring-progress-weekly {
  stroke: var(--blue);
}

.api-mode .quota-reset strong {
  color: #0a66c2;
}

.api-mode .quota-reset small {
  color: #4f6f80;
}

.api-mode .quota-view-toggle,
.api-mode .quota-warning-button,
.api-mode .quota-reset > div:nth-child(2),
.api-mode .quota-reset-credit {
  display: none;
}

.api-mode .quota-reset {
  align-content: center;
}

.api-mode .ring-track-primary,
.api-mode .ring-progress-primary {
  display: none;
}

body:not(.quota-five-hour):not(.api-mode) .ring-track-primary {
  stroke: rgba(48, 209, 88, 0.12);
  opacity: 1;
}

body:not(.quota-five-hour):not(.api-mode) .ring-progress-primary {
  stroke: #30d158;
  opacity: 1;
}

.quota-reset {
  display: grid;
  align-content: start;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
}

.quota-reset div {
  display: grid;
  gap: 3px;
}

.quota-reset strong {
  font-size: 22px;
  line-height: 1;
}

.quota-reset small {
  color: var(--muted);
  font-size: 11px;
  word-break: keep-all;
}

#primaryReset {
  font-size: 10px;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.quota-reset-credit {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 118px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 999px;
  background: rgba(240, 255, 245, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 18px rgba(48, 209, 88, 0.08);
  backdrop-filter: blur(14px) saturate(1.25);
  color: #25713e;
  white-space: nowrap;
}

.quota-reset-credit-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.14);
  color: #159447;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.quota-reset-credit-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.quota-reset-credit-copy > span {
  overflow: hidden;
  color: rgba(37, 113, 62, 0.82);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.quota-reset-credit-copy strong {
  color: #0f6b2e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.stat-card {
  position: relative;
  min-height: 204px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
}

.hero-grid .stat-card:nth-of-type(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 248, 255, 0.36) 56%, rgba(255, 255, 255, 0.22)),
    linear-gradient(320deg, rgba(10, 132, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.34);
}

.hero-grid .stat-card:nth-of-type(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 255, 0.38) 56%, rgba(255, 255, 255, 0.22)),
    linear-gradient(320deg, rgba(94, 92, 230, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.34);
}

.hero-grid .stat-card:nth-of-type(4) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 255, 246, 0.38) 58%, rgba(255, 255, 255, 0.22)),
    linear-gradient(320deg, rgba(48, 209, 88, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.34);
}

.hero-grid .stat-card:nth-of-type(5) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(237, 247, 255, 0.38) 58%, rgba(255, 255, 255, 0.22)),
    linear-gradient(320deg, rgba(10, 132, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.34);
}

.stat-head,
.panel-head,
.rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-head span,
.panel-head span {
  font-size: 12px;
  font-weight: 700;
}

.stat-head strong {
  font-size: 13px;
  color: #2f5f38;
}

.stat-cost-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.capitalism-copy {
  min-width: 0;
  max-width: 158px;
  flex: 0 1 158px;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  line-height: 1.16;
}

.capitalism-copy span {
  color: #2f5f38;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.capitalism-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[lang="en"] .stat-head {
  gap: 8px;
}

html[lang="en"] .stat-head > span:first-child {
  flex: 0 0 44px;
}

html[lang="en"] .capitalism-copy {
  max-width: 142px;
  flex-basis: 142px;
}

.stat-card b {
  align-self: end;
  font-size: 34px;
  line-height: 1;
}

.stat-card p {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.4;
}

.account-pool-panel {
  min-height: 0;
  padding: 18px 20px 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 242, 255, 0.58), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(214, 255, 226, 0.56), transparent 38%),
    var(--glass-bg);
}

.panel.account-pool-panel {
  min-height: 0;
  padding: 18px 20px 20px;
}

.account-pool-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.account-pool-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.account-range-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  padding: 3px;
  background: rgba(118, 118, 128, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.35);
}

.account-range-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.account-range-toggle button.is-active {
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(31, 35, 45, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.account-pool-actions > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(48, 209, 88, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: #176f39;
  background: rgba(240, 255, 245, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.account-pool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  max-height: 392px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.account-usage-row {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(68px, auto));
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 13px 14px 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 30px rgba(31, 35, 45, 0.05);
  animation: soft-pop 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--account-delay, 0ms);
}

.account-usage-row.is-selected {
  border-color: rgba(10, 132, 255, 0.3);
  background:
    radial-gradient(circle at 8% 0%, rgba(210, 242, 255, 0.7), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(232, 248, 255, 0.34)),
    rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 34px rgba(10, 132, 255, 0.09);
}

.account-usage-row.is-unavailable {
  opacity: 0.72;
  border-color: rgba(255, 69, 58, 0.28);
}

.account-usage-row.is-low-quota {
  border-color: rgba(255, 159, 10, 0.34);
}

.account-quota-available strong {
  color: #16843f;
}

.account-quota-low strong,
.account-quota-exhausted strong {
  color: #b86b00;
}

.account-quota-token_revoked strong,
.account-quota-probe_failed strong,
.account-quota-timeout strong,
.account-quota-quota_unavailable strong {
  color: #c5352f;
}

.account-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.account-identity strong,
.account-identity span,
.account-usage-metric span,
.account-usage-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.account-identity span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.account-usage-metric {
  min-width: 70px;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.account-usage-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.account-usage-metric strong {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.account-usage-requests strong {
  color: #0f6b2e;
}

.account-usage-outcome strong {
  color: #2f5f38;
  font-size: 13px;
}

.account-usage-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.12);
  box-shadow: inset 0 1px 2px rgba(31, 35, 45, 0.08);
}

.account-usage-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #30d158);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.22);
  transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card {
  position: relative;
  gap: 9px;
}

.work-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
}

.info-button {
  -webkit-app-region: no-drag;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(10, 132, 255, 0.24);
  border-radius: 50%;
  padding: 0;
  color: #0a66c2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(229, 242, 255, 0.58)),
    rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px rgba(10, 132, 255, 0.08);
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.info-button:hover,
.info-button.is-open {
  color: #064f9e;
  border-color: rgba(10, 132, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(215, 236, 255, 0.72)),
    rgba(255, 255, 255, 0.68);
}

.work-info-popover {
  position: absolute;
  z-index: 20;
  top: 47px;
  left: 18px;
  right: 18px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  padding: 13px 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 242, 255, 0.68), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(246, 251, 255, 0.48)),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 48px rgba(31, 35, 45, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(34px) saturate(1.55);
}

.api-value-popover {
  position: absolute;
  z-index: 20;
  top: 51px;
  right: 14px;
  left: 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(210, 255, 224, 0.66), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(246, 251, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 48px rgba(31, 35, 45, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(34px) saturate(1.55);
}

html[lang="en"] .api-value-popover {
  left: auto;
  right: 14px;
  width: min(420px, calc(100vw - 40px));
}

html[lang="en"] .quota-warning-popover {
  left: auto;
  right: 14px;
  width: min(380px, calc(100% - 28px));
}

.api-value-popover[hidden] {
  display: none;
}

.api-value-popover span {
  color: #0a66c2;
  font-size: 11px;
  font-weight: 850;
}

.api-value-popover strong {
  font-size: 15px;
  line-height: 1.15;
}

.api-value-popover p,
.api-value-popover small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.api-value-popover small {
  font-weight: 700;
}

.work-info-popover[hidden] {
  display: none;
}

.work-info-popover span {
  color: #0a66c2;
  font-size: 11px;
  font-weight: 850;
}

.work-info-popover strong {
  font-size: 15px;
  line-height: 1.15;
}

.work-info-popover p,
.work-info-popover small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.work-info-popover small {
  font-weight: 700;
}

.work-detail-button {
  -webkit-app-region: no-drag;
  position: absolute;
  right: 14px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: #0868c8;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(18px) saturate(1.45);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.work-detail-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.work-detail-button:hover,
.work-detail-button[aria-expanded="true"] {
  background: rgba(240, 250, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 24px rgba(10, 132, 255, 0.13);
  transform: translateY(-1px);
}

.work-detail-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(20, 25, 30, 0.12);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.work-detail-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.work-detail-dialog {
  width: min(720px, 100%);
  max-height: min(70vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 20px;
  color: var(--text);
  background: rgba(246, 251, 255, 0.62);
  box-shadow: 0 28px 70px rgba(31, 35, 45, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(34px) saturate(1.55);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.work-detail-layer.is-open .work-detail-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.work-detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.work-duration-range {
  display: inline-flex;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(1.4);
}

.work-duration-range button {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.work-duration-range button.is-active {
  color: #0f6b2e;
  background: rgba(225, 255, 235, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 5px 12px rgba(48, 209, 88, 0.12);
}

.work-detail-head span,
.work-detail-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.work-detail-head h2 {
  margin-top: 3px;
  font-size: 22px;
}

.work-detail-head p {
  margin-top: 5px;
  line-height: 1.45;
}

.work-detail-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.work-detail-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(1.45);
}

.work-detail-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.work-detail-total strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.work-detail-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.work-detail-totals div,
.work-duration-row {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(1.45);
}

.work-detail-totals div {
  border-radius: 14px;
  padding: 10px 11px;
}

.work-detail-totals span,
.work-duration-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.work-detail-totals strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.work-duration-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: min(43vh, 360px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: none;
}

.work-duration-list::-webkit-scrollbar {
  display: none;
}

.work-duration-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  overflow: hidden;
  border-radius: 16px;
  padding: 11px 12px 12px;
  animation: duration-row-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
}

.work-duration-row strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-duration-row span {
  margin-top: 3px;
}

.work-duration-row b {
  align-self: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.work-duration-row > i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
}

.work-duration-row > i::before {
  content: "";
  display: block;
  width: var(--share);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #30d158);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.25);
  transform-origin: left;
  animation: duration-bar-grow 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--delay) + 80ms);
}

.work-duration-scroll-rail {
  position: absolute;
  top: 58%;
  right: 10px;
  width: 6px;
  height: 104px;
  display: block;
  border: 0;
  border-radius: 999px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: inset 0 1px 2px rgba(29, 29, 31, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease;
}

.work-duration-scroll-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.work-duration-scroll-rail:hover {
  background: rgba(10, 132, 255, 0.16);
}

.work-duration-scroll-rail i {
  width: 100%;
  min-height: 24px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(170, 225, 255, 0.82));
  box-shadow: 0 3px 9px rgba(10, 132, 255, 0.22);
  transition: height 220ms ease, transform 140ms ease;
}

@keyframes duration-row-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes duration-bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.work-time-pills {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
}

.work-time-pills div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  padding: 9px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(22px) saturate(1.45);
}

.work-time-pills span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.work-time-pills strong {
  display: block;
  overflow: visible;
  margin-top: 3px;
  font-size: clamp(13px, 0.86vw, 16px);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.payback-card {
  width: min(var(--page-max), calc(100vw - clamp(36px, 5vw, 96px)));
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(580px, 1fr) minmax(210px, 250px);
  align-items: center;
  gap: 18px;
  margin: 18px auto 0;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(210, 242, 255, 0.62), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(212, 255, 226, 0.58), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.32);
}

.payback-copy {
  min-width: 0;
}

.payback-copy span,
.payback-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payback-copy h2 {
  overflow: hidden;
  margin-top: 4px;
  font-size: 27px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[lang="en"] .payback-copy h2 {
  overflow: visible;
  font-size: 24px;
  line-height: 1.08;
  text-overflow: clip;
  white-space: normal;
}

.payback-copy p,
.payback-score p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.payback-plan-switch {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 4px;
  background: rgba(118, 118, 128, 0.1);
}

.api-mode .payback-plan-switch {
  display: none;
}

.payback-plan-switch button {
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  color: #3a3a3c;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.payback-plan-switch button.active {
  color: #0f6b2e;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(226, 255, 236, 0.5)),
    rgba(48, 209, 88, 0.14);
  box-shadow: 0 8px 18px rgba(31, 35, 45, 0.08);
}

.payback-visual {
  position: relative;
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.payback-visual.is-scale-expanding::after,
.payback-visual.is-scale-contracting::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(10, 132, 255, 0.12) 44%, rgba(48, 209, 88, 0.18) 58%, transparent 88%);
  animation: payback-scale-sweep 780ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.payback-stage {
  position: absolute;
  inset: 0;
}

.payback-visual.is-scale-positioning .payback-comet {
  transition: none;
}

.payback-visual.is-scale-expanding .payback-milestones span,
.payback-visual.is-scale-contracting .payback-milestones span {
  animation: payback-mark-rescale 620ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.payback-visual.is-scale-expanding .payback-progress,
.payback-visual.is-scale-contracting .payback-progress {
  animation: payback-progress-rescale 520ms ease-out both;
}

.payback-visual.is-scale-expanding .payback-comet,
.payback-visual.is-scale-contracting .payback-comet {
  animation: payback-comet-rescale 520ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.payback-visual.is-scale-expanding .payback-milestones span:nth-child(2) { animation-delay: 70ms; }
.payback-visual.is-scale-expanding .payback-milestones span:nth-child(3) { animation-delay: 130ms; }
.payback-visual.is-scale-expanding .payback-milestones span:nth-child(4) { animation-delay: 190ms; }

@keyframes payback-mark-rescale {
  0% { opacity: 0.42; transform: translateX(-50%) translateY(3px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes payback-progress-rescale {
  0% { opacity: 0.62; }
  100% { opacity: 1; }
}

@keyframes payback-comet-rescale {
  0% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.72); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes payback-scale-sweep {
  0% { opacity: 0; transform: translateX(-72%) scaleX(0.22); }
  42% { opacity: 1; }
  100% { opacity: 0; transform: translateX(72%) scaleX(0.82); }
}

.payback-orbit {
  position: absolute;
  inset: 4px 12px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 16px);
}

.payback-track,
.payback-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 10;
}

.payback-track {
  stroke: rgba(118, 118, 128, 0.14);
}

.payback-progress {
  stroke: #22c46f;
  filter: drop-shadow(0 8px 14px rgba(10, 132, 255, 0.16));
}

.payback-comet {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(48, 209, 88, 0.16), 0 18px 34px rgba(31, 35, 45, 0.16);
  transform: translate(-50%, -50%);
  transition: left 380ms ease, top 380ms ease;
}

.payback-comet::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.38));
}

.payback-milestones {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.payback-milestones span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
}

.payback-milestones span:nth-child(1) { left: 3%; }
.payback-milestones span:nth-child(2) { left: 28%; }
.payback-milestones span:nth-child(3) { left: 53%; }
.payback-milestones span:nth-child(4) { left: 97%; }

.payback-score {
  justify-self: end;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  padding: 14px 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.payback-score strong {
  display: block;
  margin-top: 3px;
  font-size: 38px;
  line-height: 1;
}

.api-mode .payback-card {
  background:
    radial-gradient(circle at 16% 0%, rgba(210, 242, 255, 0.72), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(214, 255, 226, 0.64), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(234, 249, 255, 0.28)),
    rgba(255, 255, 255, 0.32);
}

.api-mode .payback-progress {
  stroke: var(--blue);
}

.api-mode .payback-comet {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(10, 132, 255, 0.14), 0 18px 34px rgba(31, 35, 45, 0.16);
}

.mini-bar,
.rank-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.13);
}

.mini-bar i,
.rank-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 420ms ease;
}

.tab-shell {
  padding: 14px;
}

.tab-rail {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(118, 118, 128, 0.13), rgba(255, 255, 255, 0.28)),
    rgba(118, 118, 128, 0.08);
  overflow: auto;
}

.tab-button {
  height: 32px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  color: #3a3a3c;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button.active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(31, 35, 45, 0.08);
  font-weight: 700;
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.78fr);
  gap: 18px;
  margin-top: 18px;
}

.tab-panel.active {
  display: grid;
}

.panel {
  min-height: 320px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.large-panel {
  min-width: 0;
}

#panel-skills .large-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 16px;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-subtitle {
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.panel-head strong {
  color: var(--muted);
  font-size: 13px;
}

.thread-list-head-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.thread-list-range {
  display: inline-flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  padding: 3px;
  background: rgba(118, 118, 128, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.35);
}

.thread-list-range button {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.thread-list-range button.is-active {
  color: #0f6b2e;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(31, 35, 45, 0.08);
}

.thread-list-range.thread-list-metric {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(224, 249, 255, 0.25)),
    rgba(10, 132, 255, 0.08);
}

.thread-list-range.thread-list-metric button.is-active {
  color: #075f9f;
  background: rgba(255, 255, 255, 0.86);
}

.heatmap-head {
  align-items: flex-start;
  gap: 14px;
}

.heatmap-head-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.heatmap-range-toggle {
  display: flex;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22)),
    rgba(118, 118, 128, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(1.45);
}

.heatmap-range-toggle button {
  height: 26px;
  min-width: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: #3a3a3c;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.heatmap-range-toggle button.active {
  color: #0f6b2e;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 255, 236, 0.52)),
    rgba(48, 209, 88, 0.14);
  box-shadow: 0 8px 18px rgba(31, 35, 45, 0.08);
}

.thread-list,
.rank-list,
.source-list {
  display: grid;
  gap: 9px;
}

.skill-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 242, 255, 0.46), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(1.45);
}

.skill-section + .skill-section {
  margin-top: 14px;
}

#panel-skills .skill-section + .skill-section {
  margin-top: 0;
}

.thread-item {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--inner-radius);
  padding: 10px 11px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  cursor: pointer;
}

.thread-item:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-strong);
}

.thread-item.is-selected {
  border-color: rgba(10, 132, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(232, 248, 255, 0.36)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 30px rgba(10, 132, 255, 0.08);
}

.thread-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8e8e93;
}

.thread-item.is-running .thread-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.16);
}

.thread-body {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.thread-rank-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.12);
  box-shadow: inset 0 1px 2px rgba(31, 35, 45, 0.08);
}

.thread-rank-progress i {
  display: block;
  width: var(--thread-rank-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #30d158);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.24);
  transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.thread-body strong,
.thread-body span,
.thread-status,
.rank-top strong,
.rank-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-status {
  max-width: 78px;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(118, 118, 128, 0.1);
  font-size: 12px;
}

.thread-item.is-running .thread-status {
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.16);
}

.thread-detail {
  display: grid;
  gap: 13px;
}

.thread-detail-hero {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 242, 255, 0.78), transparent 36%),
    radial-gradient(circle at 92% 100%, rgba(214, 255, 226, 0.7), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 40px rgba(31, 35, 45, 0.08);
  backdrop-filter: blur(30px) saturate(1.55);
}

.thread-detail-hero span,
.output-brief span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.thread-detail-hero h3 {
  overflow: hidden;
  margin: 6px 0 3px;
  font-size: 28px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-model-label {
  display: block;
  max-width: 100%;
  color: #198b4b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.thread-artifact-summary {
  overflow: hidden;
  margin-top: 10px;
  display: grid;
  gap: 2px;
  border-left: 3px solid rgba(48, 209, 88, 0.72);
  padding: 5px 0 5px 10px;
}

.thread-artifact-summary span {
  color: #16814a !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.thread-artifact-summary strong {
  overflow: hidden;
  color: #3a3a3c;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-detail-hero button {
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  color: #0a66c2;
  background: rgba(10, 132, 255, 0.1);
  font-weight: 800;
  cursor: pointer;
}

.thread-detail-hero button:disabled {
  opacity: 0.45;
  cursor: default;
}

.thread-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 9px;
  row-gap: 7px;
}

.thread-detail-metrics div {
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(1.45);
}

.thread-detail-metrics i {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0967c9;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, rgba(226, 244, 255, 0.92), rgba(198, 230, 255, 0.68)),
    rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(10, 132, 255, 0.08);
  font-style: normal;
  font-weight: 900;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.metric-icon path,
.metric-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.metric-icon circle {
  fill: rgba(48, 209, 88, 0.28);
  stroke: rgba(48, 209, 88, 0.9);
}

.icon-token {
  color: #0b72d9;
}

.icon-cost {
  color: #0b8f79;
}

.icon-work {
  color: #4f63d8;
}

.icon-age {
  color: #3a6ee8;
}

.icon-created {
  color: #0878d8;
}

.thread-detail-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.thread-detail-metrics strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-lifecycle {
  --lifecycle-dot-center: 16px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 13px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.09), rgba(48, 209, 88, 0.09)),
    rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(1.45);
}

.thread-lifecycle::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: calc(13px + var(--lifecycle-dot-center));
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.26), rgba(48, 209, 88, 0.28));
}

.lifecycle-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.lifecycle-step i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #c7c7cc;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.46);
}

.lifecycle-step.is-active i {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.16);
}

.lifecycle-step.tone-blue.is-active i {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.14);
}

.lifecycle-step.tone-purple.is-active i {
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(94, 92, 230, 0.14);
}

.lifecycle-step span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lifecycle-step strong {
  color: var(--text);
  font-size: 12px;
}

.lifecycle-step em {
  overflow: hidden;
  max-width: 86px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-brief {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  padding: 13px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(1.45);
}

.output-brief p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #3a3a3c;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.overview-panel {
  grid-column: 1 / -1;
  min-height: 440px;
  background:
    radial-gradient(circle at 10% 0%, rgba(210, 242, 255, 0.64), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(214, 255, 226, 0.62), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.3);
}

.compact-head {
  margin-bottom: 2px;
}

.project-summary-head,
.tree-head {
  margin: 18px 0 10px;
}

.overview-rank-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.task-tree {
  display: grid;
  gap: 13px;
}

.project-canopy {
  display: grid;
  grid-template-columns: minmax(230px, 0.35fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  padding: 16px;
  background:
    radial-gradient(circle at 9% 18%, rgba(210, 242, 255, 0.76), transparent 36%),
    radial-gradient(circle at 96% 100%, rgba(213, 255, 228, 0.68), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 36px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(28px) saturate(1.5);
}

.project-canopy .empty-state {
  grid-column: 1 / -1;
}

.canopy-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 10px 12px;
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.canopy-summary > i {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.94), transparent 38%),
    linear-gradient(145deg, rgba(10, 132, 255, 0.22), rgba(48, 209, 88, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 24px rgba(10, 132, 255, 0.12);
}

.canopy-summary > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.canopy-summary strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-summary em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.canopy-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 800;
}

.canopy-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8e8e93;
}

.canopy-legend i.hot {
  background: var(--green);
}

.canopy-legend i.warm {
  background: var(--blue);
}

.canopy-nav {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.canopy-nav::-webkit-scrollbar {
  height: 8px;
}

.canopy-nav::-webkit-scrollbar-track {
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.canopy-nav::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.32), rgba(48, 209, 88, 0.28)) padding-box,
    rgba(255, 255, 255, 0.44) border-box;
  background-clip: padding-box, border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.canopy-nav-item {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: space-between;
  align-items: start;
  gap: 10px;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 13px;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.78), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(24px) saturate(1.5);
  cursor: pointer;
}

.canopy-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.26);
}

.canopy-nav-item.activity-hot {
  border-color: rgba(48, 209, 88, 0.36);
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 255, 228, 0.86), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(229, 255, 238, 0.28)),
    rgba(255, 255, 255, 0.26);
}

.canopy-nav-item.activity-cool {
  opacity: 0.7;
  filter: saturate(0.78);
}

.canopy-nav-marker {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #8e8e93;
}

.activity-hot .canopy-nav-marker {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.14);
}

.activity-warm .canopy-nav-marker {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.1);
}

.canopy-nav-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.canopy-nav-copy b {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-nav-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-nav-meta {
  max-width: 86px;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 8px;
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.13);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-nav .canopy-thread-nodes {
  grid-column: 2 / -1;
  min-height: 20px;
}

.canopy-root {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 19px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.canopy-root::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.28), rgba(48, 209, 88, 0.22));
}

.canopy-root i {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(145deg, rgba(10, 132, 255, 0.2), rgba(48, 209, 88, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(10, 132, 255, 0.12);
}

.canopy-root span,
.canopy-project-node {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.canopy-root strong,
.canopy-project-node b {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-root em,
.canopy-project-node em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canopy-branches {
  position: relative;
  display: grid;
  gap: 8px;
}

.canopy-branches::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.22), rgba(48, 209, 88, 0.26), rgba(142, 142, 147, 0.08));
}

.canopy-branch {
  -webkit-app-region: no-drag;
  position: relative;
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 17px;
  padding: 8px 10px 8px 18px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.canopy-branch::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(10, 132, 255, 0.22);
}

.canopy-branch:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.24);
}

.canopy-branch.activity-hot {
  border-color: rgba(48, 209, 88, 0.36);
  background:
    linear-gradient(145deg, rgba(235, 255, 242, 0.72), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.24);
}

.canopy-branch.activity-warm {
  border-color: rgba(10, 132, 255, 0.24);
}

.canopy-branch.activity-cool {
  opacity: 0.62;
  filter: saturate(0.74);
}

.canopy-thread-nodes {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.canopy-thread-node {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: #b8bbc1;
  box-shadow: 0 0 0 4px rgba(142, 142, 147, 0.08);
}

.canopy-thread-node.activity-warm {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.canopy-thread-node.activity-hot,
.canopy-thread-node.is-running {
  width: 16px;
  height: 16px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.14), 0 8px 18px rgba(48, 209, 88, 0.2);
}

.canopy-branch-meta {
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 8px;
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.13);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-summary-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.project-summary-board .empty-state {
  grid-column: 1 / -1;
}

.project-summary-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  padding: 13px;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 30px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(24px) saturate(1.45);
  cursor: pointer;
}

.project-summary-card:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.24);
}

.project-summary-card.activity-hot {
  border-color: rgba(48, 209, 88, 0.34);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 255, 228, 0.86), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(229, 255, 238, 0.28)),
    rgba(255, 255, 255, 0.25);
}

.project-summary-card.activity-cool {
  opacity: 0.64;
  filter: saturate(0.75);
}

.project-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-summary-top i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8e8e93;
}

.project-summary-card.activity-hot .project-summary-top i {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.14);
}

.project-summary-card.activity-warm .project-summary-top i {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.1);
}

.project-summary-card > strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.project-summary-metrics span {
  min-width: 0;
  display: grid;
  gap: 2px;
  border-radius: 13px;
  padding: 7px 6px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.project-summary-metrics em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-summary-metrics b {
  overflow: hidden;
  font-size: 13px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-summary-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Project overview uses three deliberately different reading modes. */
.project-canopy {
  display: block;
  margin: 0 0 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.project-mindmap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 248px) minmax(0, 640px) minmax(220px, 248px);
  grid-template-areas:
    "models root ranking"
    "models branches ranking";
  align-items: start;
  justify-content: center;
  column-gap: 32px;
  row-gap: 14px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(26px) saturate(1.4);
}

.project-mindmap::before {
  position: absolute;
  z-index: 0;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 672px;
  max-width: calc(100% - 576px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  content: "";
  background: linear-gradient(180deg, rgba(224, 247, 255, 0.46), rgba(229, 255, 239, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(64, 119, 132, 0.05);
  transform: translateX(-50%);
}

.project-mindmap > * {
  position: relative;
  z-index: 1;
}

.project-thread-ranking {
  grid-area: ranking;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(226, 250, 242, 0.5), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 28px rgba(31, 35, 45, 0.07);
  backdrop-filter: blur(28px) saturate(1.45);
}

.project-model-ranking {
  grid-area: models;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(232, 242, 255, 0.52), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(26px) saturate(1.4);
}

.project-model-ranking > strong { font-size: 13px; }
.project-model-ranking div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.project-model-ranking em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 850; }
.project-model-ranking span { overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.project-model-ranking b { color: #146b43; font-size: 11px; }

.project-thread-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-thread-rank-head > strong {
  font-size: 13px;
  white-space: nowrap;
}

.project-thread-rank-sort {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  background: rgba(118, 118, 128, 0.1);
}

.project-thread-rank-sort button {
  border: 0;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-thread-rank-sort button.is-active {
  color: #0f6b2e;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 8px rgba(31, 35, 45, 0.08);
}

.project-thread-rank-list {
  position: relative;
  display: grid;
  gap: 5px;
  max-height: 117px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 64%, transparent 100%);
  transition: max-height 360ms cubic-bezier(0.22, 0.8, 0.24, 1), mask-image 180ms ease;
}

.project-thread-ranking.is-expanded .project-thread-rank-list {
  max-height: 520px;
  mask-image: linear-gradient(#000, #000);
}

.project-thread-rank-row {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  padding: 7px 8px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  animation: project-rank-in 300ms both;
  animation-delay: var(--rank-delay);
  transition: transform 180ms ease, background 180ms ease;
}

.project-thread-rank-row:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.76);
}

.project-thread-rank-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.project-thread-rank-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.project-thread-rank-row strong,
.project-thread-rank-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-thread-rank-row strong {
  font-size: 12px;
}

.project-thread-rank-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.project-thread-rank-row b {
  color: #146b43;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.project-thread-rank-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  padding: 1px 0 0;
  color: #0a66c2;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.project-thread-rank-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 260ms ease;
}

.project-thread-ranking.is-expanded .project-thread-rank-toggle svg {
  transform: rotate(180deg);
}

@keyframes project-rank-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-mindmap-root {
  grid-area: root;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(320px, 100%);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(211, 244, 255, 0.7), rgba(224, 255, 235, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(73, 148, 122, 0.08);
}

.project-mindmap-root::after {
  position: absolute;
  z-index: -1;
  top: auto;
  right: auto;
  bottom: -15px;
  left: 50%;
  width: 1px;
  height: 15px;
  content: "";
  background: linear-gradient(rgba(70, 181, 128, 0.52), rgba(129, 176, 215, 0.28));
}

.project-mindmap-root-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, transparent 9%), linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.2);
}

.project-mindmap-root span:last-child,
.project-mindmap-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.project-mindmap-root b,
.project-mindmap-copy b,
.project-mindmap-root em,
.project-mindmap-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-mindmap-root b,
.project-mindmap-copy b {
  font-size: 15px;
  line-height: 1.1;
}

.project-mindmap-root em,
.project-mindmap-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.project-mindmap-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-mindmap-metrics em {
  position: relative;
  min-width: 0;
}

.project-mindmap-metrics em + em::before {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  transform: translateY(-50%);
}

.project-mindmap-branches {
  grid-area: branches;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-self: center;
  width: min(640px, 100%);
  gap: 10px;
  padding: 4px 0 4px 28px;
}

.project-mindmap-branches::before {
  position: absolute;
  top: 4px;
  bottom: 42px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(70, 181, 128, 0.4);
}

.project-mindmap-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 6px 16px rgba(68, 89, 108, 0.06);
  backdrop-filter: blur(20px) saturate(1.35);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-mindmap-node::before {
  position: absolute;
  top: 50%;
  left: -29px;
  width: 28px;
  height: 1px;
  content: "";
  background: rgba(70, 181, 128, 0.45);
}

.project-mindmap-node:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(68, 89, 108, 0.12);
}

.project-mindmap-node.activity-hot {
  background: linear-gradient(135deg, rgba(211, 255, 227, 0.68), rgba(255, 255, 255, 0.54));
}

.project-mindmap-node.activity-cool {
  opacity: 0.64;
}

.project-mindmap-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8bbc1;
}

.project-mindmap-node.activity-hot .project-mindmap-marker {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.12);
}

.project-mindmap-node.activity-warm .project-mindmap-marker {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.1);
}

.project-mindmap-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tree-project {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 32px rgba(31, 35, 45, 0.07);
  backdrop-filter: blur(28px) saturate(1.55);
}

.tree-project.activity-hot {
  border-color: rgba(48, 209, 88, 0.42);
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 255, 224, 0.9), transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(228, 255, 238, 0.34)),
    rgba(255, 255, 255, 0.28);
}

.tree-project.activity-warm {
  border-color: rgba(10, 132, 255, 0.22);
}

.tree-project.activity-cool {
  opacity: 0.62;
  filter: saturate(0.72);
}

.tree-project-head {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.tree-project-marker,
.tree-dialog-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8e8e93;
}

.activity-hot > .tree-project-head .tree-project-marker,
.tree-dialog.activity-hot .tree-dialog-dot,
.tree-dialog.is-running .tree-dialog-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.14);
}

.activity-warm > .tree-project-head .tree-project-marker,
.tree-dialog.activity-warm .tree-dialog-dot {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.1);
}

.tree-project-copy,
.tree-dialog-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tree-project-copy strong,
.tree-dialog-copy strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-project-copy span,
.tree-dialog-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-project-badge,
.tree-dialog-status {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 9px;
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.13);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tree-dialog-list {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 23px;
}

.tree-dialog-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.34), rgba(10, 132, 255, 0.22), rgba(142, 142, 147, 0.08));
}

.tree-dialog {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 9px 10px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.45);
  cursor: pointer;
}

.tree-dialog::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 15px;
  height: 1px;
  background: rgba(10, 132, 255, 0.22);
}

.tree-dialog:hover {
  border-color: rgba(10, 132, 255, 0.26);
  transform: translateY(-1px);
}

.tree-dialog.is-running {
  border-color: rgba(48, 209, 88, 0.32);
  background:
    linear-gradient(145deg, rgba(244, 255, 247, 0.78), rgba(216, 255, 230, 0.28)),
    rgba(255, 255, 255, 0.28);
}

.tree-dialog.activity-cool {
  opacity: 0.58;
}

.tree-dialog.activity-cool .tree-dialog-status {
  color: var(--muted);
  background: rgba(118, 118, 128, 0.1);
}

.tree-more {
  position: relative;
  margin-left: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-map {
  display: grid;
  gap: 12px;
}

.status-orbit {
  position: relative;
  min-height: 172px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(255, 255, 255, 0.16) 42%),
    linear-gradient(315deg, rgba(48, 209, 88, 0.14), transparent 52%),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 38px rgba(31, 35, 45, 0.08);
  backdrop-filter: blur(28px) saturate(1.55);
  overflow: hidden;
}

.orbit-line {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.38), rgba(48, 209, 88, 0.38), transparent);
}

.orbit-line.line-b {
  left: 48%;
  right: auto;
  top: 16%;
  bottom: 16%;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg, transparent, rgba(94, 92, 230, 0.34), rgba(255, 214, 10, 0.38), transparent);
}

.status-node {
  position: absolute;
  width: 86px;
  min-height: 62px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 28px rgba(31, 35, 45, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(1.4);
}

.status-node i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.38);
}

.status-node strong {
  max-width: 70px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-node span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.status-node.is-active i {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.16);
}

.node-run {
  left: 6%;
  top: 24px;
}

.node-think {
  right: 7%;
  top: 24px;
}

.node-tool {
  left: 15%;
  bottom: 22px;
}

.node-output {
  right: 17%;
  bottom: 22px;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-legend div,
.source-list div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legend-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.legend-dot.think {
  background: var(--violet);
}

.legend-dot.tool {
  background: var(--yellow);
}

.legend-dot.output {
  background: var(--green);
}

.status-legend strong,
.source-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-list .independence-note {
  border-color: rgba(10, 132, 255, 0.14);
  background: rgba(238, 248, 255, 0.46);
}

.source-list .independence-note strong {
  color: rgba(60, 60, 67, 0.72);
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

.heatmap-chart {
  display: grid;
  grid-template-columns: 22px max-content;
  grid-template-rows: 18px auto;
  gap: 6px 8px;
}

.heatmap-corner {
  grid-column: 1;
  grid-row: 1;
}

.heatmap-months {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-items: end;
  column-gap: 7px;
  gap: 5px;
  color: rgba(58, 58, 60, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.heatmap-months span {
  min-width: 20px;
  white-space: nowrap;
}

.heatmap-weekdays {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 5px;
  align-items: center;
  color: rgba(58, 58, 60, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.heatmap-grid {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(7, 24px);
  gap: 7px;
  align-content: start;
}

.page-scroll-rail {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 12px;
  width: 11px;
  height: clamp(132px, 22vh, 206px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    rgba(218, 232, 239, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(31, 35, 45, 0.1);
  backdrop-filter: blur(22px) saturate(1.45);
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease;
  touch-action: none;
}

.page-scroll-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-scroll-rail:hover,
.page-scroll-rail.is-dragging {
  background: rgba(255, 255, 255, 0.5);
}

.page-scroll-rail i {
  width: 100%;
  min-height: 26px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.78), rgba(48, 209, 88, 0.72));
  box-shadow: 0 5px 14px rgba(10, 132, 255, 0.25);
  transition: height 180ms ease, transform 120ms ease;
}

.heat-cell {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(118, 118, 128, 0.12);
}

.heat-cell.level-1 {
  background: rgba(10, 132, 255, 0.18);
}

.heat-cell.level-2 {
  background: rgba(10, 132, 255, 0.32);
}

.heat-cell.level-3 {
  background: rgba(48, 209, 88, 0.42);
}

.heat-cell.level-4 {
  background: rgba(255, 159, 10, 0.58);
}

.heat-cell.level-5 {
  background: rgba(94, 92, 230, 0.72);
}

.trend-chart {
  width: 100%;
  height: 240px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.trend-area {
  fill: rgba(10, 132, 255, 0.12);
}

.trend-grid-line {
  stroke: rgba(118, 118, 128, 0.16);
  stroke-width: 1;
}

.trend-axis-line {
  stroke: rgba(118, 118, 128, 0.32);
  stroke-width: 1.2;
}

.trend-axis-label,
.trend-value-label {
  fill: rgba(58, 58, 60, 0.72);
  font-family:
    "SF Pro Text",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.trend-axis-label.x-label {
  fill: rgba(58, 58, 60, 0.62);
}

.trend-value-label {
  fill: #0a66c2;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3px;
}

.trend-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trend-dot {
  fill: white;
  stroke: var(--blue);
  stroke-width: 3;
}

.rank-item {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(1.5);
}

.rank-top strong {
  min-width: 0;
}

.rank-top span {
  flex: 0 0 auto;
  max-width: 110px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rank-bar i {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.empty-state {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--stroke-strong);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  font-size: 13px;
}

.floating-shell {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  contain: paint;
  clip-path: inset(0 round 28px);
  scrollbar-gutter: auto;
  background: transparent;
  border-radius: 28px;
  -webkit-user-select: none;
  user-select: none;
}

.floating-shell::before,
.floating-shell::after {
  display: none;
}

.float-card {
  -webkit-app-region: drag;
  position: relative;
  width: 100%;
  min-height: 168px;
  height: auto;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: 82px auto auto;
  align-items: start;
  gap: 8px 10px;
  overflow: hidden;
  contain: paint;
  border: 0;
  border-radius: 28px;
  clip-path: inset(0 round 28px);
  padding: 20px 10px 12px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 252, 248, 0.38) 58%, rgba(255, 255, 255, 0.28)),
    rgba(247, 248, 250, 0.44);
  backdrop-filter: blur(42px) saturate(1.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  cursor: default;
}

.float-card.is-solid {
  background: #f7f9f8;
  backdrop-filter: none;
}

.float-card.is-solid.is-running {
  background: #f3fbf5;
}

.float-card.is-solid.has-notice {
  background: #f2fbf5;
}

.float-top-button {
  -webkit-app-region: no-drag;
  position: absolute;
  top: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(31, 35, 45, 0.08);
  cursor: pointer;
  line-height: 0;
}

.float-pin {
  right: 12px;
}

.float-solid-toggle {
  right: 46px;
}

.float-home {
  right: 80px;
}

.float-top-button svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
  transform: none;
}

.float-top-button path,
.float-top-button circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-pin .pin-body {
  fill: currentColor;
  stroke: none;
}

.float-pin .pin-needle {
  stroke-width: 2.2;
}

.float-home .home-roof,
.float-home .home-body {
  stroke-width: 2.15;
}

.float-solid-toggle .opacity-outline {
  fill: rgba(255, 255, 255, 0.46);
  stroke-width: 2.05;
}

.float-solid-toggle .opacity-half {
  fill: currentColor;
  stroke: none;
  opacity: 0.92;
}

.float-solid-toggle.is-solid .opacity-outline {
  fill: rgba(48, 209, 88, 0.12);
}

.float-top-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.float-pin.is-pinned,
.float-solid-toggle.is-solid {
  color: #0f6b2e;
  background: rgba(48, 209, 88, 0.15);
  border-color: rgba(48, 209, 88, 0.24);
}

.float-pin.is-pinned .pin-body {
  fill: currentColor;
}

.float-card.is-running {
  background:
    linear-gradient(135deg, rgba(226, 255, 235, 0.54), rgba(255, 255, 255, 0.34) 56%),
    rgba(247, 255, 249, 0.46);
}

.float-card.has-notice {
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.16), rgba(255, 255, 255, 0.42) 46%, rgba(10, 132, 255, 0.06)),
    rgba(247, 255, 249, 0.5);
}

.float-ring {
  --ring-primary-offset: 226.2;
  --ring-weekly-offset: 301.6;
  --float-primary-progress: 0%;
  --float-weekly-progress: 0%;
  width: 82px;
  height: 82px;
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  font-size: 27px;
  font-weight: 800;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 39%, rgba(255, 255, 255, 0.66) 40% 41%, transparent 42%),
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.46), transparent 42%),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 10px 24px rgba(31, 35, 45, 0.08);
  backdrop-filter: blur(18px) saturate(1.45);
}

.float-ring .quota-ring-svg {
  display: none;
}

.float-ring::before,
.float-ring::after {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.float-ring::before {
  inset: 2px;
  background: conic-gradient(from -90deg,
    #0a84ff 0 var(--float-weekly-progress),
    rgba(10, 132, 255, 0.13) var(--float-weekly-progress) 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 65%, #000 66% 100%);
  mask: radial-gradient(circle, transparent 0 65%, #000 66% 100%);
}

.float-ring::after {
  inset: 14px;
  background: conic-gradient(from -90deg,
    var(--float-primary-color, #30d158) 0 var(--float-primary-progress),
    rgba(48, 209, 88, 0.14) var(--float-primary-progress) 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 59%, #000 60% 100%);
  mask: radial-gradient(circle, transparent 0 59%, #000 60% 100%);
}

.float-ring.running {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 39%, rgba(255, 255, 255, 0.66) 40% 41%, transparent 42%),
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.46), transparent 42%),
    rgba(255, 255, 255, 0.12);
}

.float-ring .ring-track-weekly,
.float-ring .ring-progress-weekly,
.float-ring .ring-track-primary,
.float-ring .ring-progress-primary {
  stroke-width: 8.5;
}

.float-ring .ring-progress-weekly {
  stroke-dashoffset: var(--ring-weekly-offset);
}

.float-ring .ring-progress-primary {
  stroke-dashoffset: var(--ring-primary-offset);
}

.float-ring > span {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.float-ring-label {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 13px;
  border-radius: 999px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  display: none;
}

.label-account {
  right: 10px;
  top: 21px;
}

.label-plan {
  left: 10px;
  bottom: 17px;
}

.float-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 0;
  align-self: center;
  min-height: 62px;
  align-content: center;
  padding-top: 2px;
  padding-right: 88px;
  color: var(--text);
  z-index: 6;
}

.float-copy strong {
  overflow: hidden;
  display: -webkit-box;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.float-copy strong.idle-title {
  display: grid;
  gap: 1px;
  white-space: normal;
  line-height: 1.08;
}

.float-copy strong.idle-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.float-copy span,
.float-copy small {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.float-copy .float-quota-summary {
  display: block;
  margin-top: 3px;
  color: rgba(60, 60, 67, 0.68);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
}

.float-copy .float-weekly-reset {
  display: block;
  margin-top: 1px;
  color: rgba(60, 60, 67, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.float-copy .float-weekly-reset[hidden] {
  display: none;
}

.float-copy .float-refresh-summary {
  display: block;
  margin-top: 1px;
  color: rgba(60, 60, 67, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.float-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  align-self: start;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 0;
  padding-right: 0;
  z-index: 2;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.float-summary-card {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  padding: 8px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(31, 35, 45, 0.05);
  backdrop-filter: blur(24px) saturate(1.48);
}

.float-summary-card.token-card,
.float-summary-card.work-card {
  padding-left: 46px;
}

.float-summary-card.token-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(94, 92, 230, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(10, 132, 255, 0.24), rgba(255, 255, 255, 0.34) 62%),
    rgba(255, 255, 255, 0.34);
}

.float-summary-card.work-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 159, 10, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(48, 209, 88, 0.23), rgba(255, 255, 255, 0.34) 62%),
    rgba(255, 255, 255, 0.34);
}

.float-metric-illustration {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 27px;
  height: 27px;
  transform: translateY(-50%);
}

.float-metric-illustration i,
.float-metric-illustration b,
.float-metric-illustration em {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.token-illustration i {
  inset: 2px 8px 2px 2px;
  background: #0a84ff;
  box-shadow: 0 4px 9px rgba(10, 132, 255, 0.3);
}

.token-illustration b {
  inset: 7px 2px 7px 9px;
  background: #5e5ce6;
  box-shadow: 0 4px 9px rgba(94, 92, 230, 0.28);
}

.token-illustration em {
  width: 8px;
  height: 8px;
  right: 1px;
  top: 1px;
  background: #64d2ff;
}

.work-illustration i {
  inset: 2px;
  border: 3px solid #30d158;
  background: rgba(48, 209, 88, 0.16);
  box-shadow: 0 4px 9px rgba(48, 209, 88, 0.24);
}

.work-illustration b {
  left: 13px;
  top: 7px;
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: #1e9f4e;
  transform-origin: 50% 100%;
  transform: rotate(38deg);
}

.work-illustration em {
  width: 7px;
  height: 7px;
  right: 0;
  bottom: 1px;
  background: #ff9f0a;
}

.float-summary-card span,
.float-summary-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-summary-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-progress-panel,
.float-quota-panel {
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(31, 35, 45, 0.06);
  backdrop-filter: blur(22px) saturate(1.42);
}

.float-progress-panel {
  display: grid;
  gap: 5px;
  padding: 7px 9px;
}

.float-metric-row {
  --progress: 0%;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(46px, auto);
  grid-template-rows: auto 4px;
  align-items: center;
  column-gap: 7px;
  row-gap: 4px;
}

.float-metric-row span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.float-metric-row b,
.float-quota-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-metric-row em,
.float-quota-copy em {
  overflow: hidden;
  color: rgba(60, 60, 67, 0.58);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-metric-row strong {
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-metric-row i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28)),
    rgba(29, 29, 31, 0.06);
  box-shadow: inset 0 1px 1px rgba(29, 29, 31, 0.08);
}

.float-metric-row u {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  text-decoration: none;
  transition: width 220ms ease;
}

.metric-token u {
  background: linear-gradient(90deg, #0a84ff, #30d158);
}

.metric-work u {
  background: linear-gradient(90deg, #ffcc00, #30d158);
}

.float-quota-panel {
  --quota-primary: 0%;
  --quota-weekly: 0%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
}

.float-quota-glyph {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg,
      #30d158 0 var(--quota-primary),
      rgba(48, 209, 88, 0.16) var(--quota-primary) 50%,
      #0a84ff 50% calc(50% + var(--quota-weekly-half)),
      rgba(10, 132, 255, 0.14) calc(50% + var(--quota-weekly-half)) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 8px 18px rgba(31, 35, 45, 0.08);
}

.float-quota-glyph i {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.float-quota-glyph span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.float-quota-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.float-quota-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-task-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.float-task-list {
  -webkit-app-region: no-drag;
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.float-task-list:empty {
  display: none;
}

.float-task-row {
  -webkit-app-region: no-drag;
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  padding: 0 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 8px 18px rgba(31, 35, 45, 0.04);
  color: inherit;
  font: inherit;
  text-align: left;
}

.float-task-row * {
  -webkit-app-region: no-drag;
}

.float-task-row.is-notice {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  padding: 0 12px;
}

.float-task-dot {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-radius: 50%;
  background: rgba(142, 142, 147, 0.72);
  box-shadow: 0 0 0 4px rgba(142, 142, 147, 0.12);
}

.float-task-row.is-running .float-task-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18);
}

.float-task-row.can-open {
  -webkit-app-region: no-drag;
  cursor: pointer;
}

.float-task-row.can-open:hover,
.float-task-row.can-open:focus-visible {
  border-color: rgba(48, 209, 88, 0.3);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.float-card.has-notice .float-task-row.is-notice {
  border-color: rgba(48, 209, 88, 0.28);
  background: rgba(48, 209, 88, 0.12);
}

.float-card.has-notice .float-task-row.is-notice span {
  color: #0f6b2e;
}

.float-task-row strong {
  min-width: 0;
  overflow: hidden;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .hero-grid,
  .tab-panel.active {
    grid-template-columns: 1fr 1fr;
  }

  .project-canopy {
    grid-template-columns: 1fr;
  }

  #panel-skills .large-panel {
    grid-template-columns: 1fr;
  }

  #panel-skills .skill-section + .skill-section {
    margin-top: 14px;
  }

  .canopy-nav {
    grid-auto-columns: minmax(220px, 72vw);
  }

  .canopy-root::after {
    display: none;
  }

  .payback-card {
    grid-template-columns: 1fr;
  }

  .payback-score {
    justify-self: stretch;
  }

  .quota-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1420px) {
  .app-chrome,
  .hero-grid,
  .account-pool-panel,
  .tab-shell,
  .payback-card,
  .tab-panel {
    width: min(var(--page-max), calc(100vw - 88px));
  }

  .hero-grid {
    grid-template-columns: minmax(330px, 0.92fr) repeat(4, minmax(220px, 1fr));
  }
}

@media (max-width: 1420px) {
  .project-mindmap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "root"
      "branches"
      "models"
      "ranking";
  }

  .project-mindmap::before {
    display: none;
  }

  .project-thread-ranking {
    width: min(780px, 100%);
    justify-self: center;
  }

  .project-model-ranking {
    width: min(780px, 100%);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding-inline: 18px;
    padding-block: 24px 42px;
  }

  .app-chrome,
  .hero-grid,
  .account-pool-panel,
  .tab-panel.active {
    grid-template-columns: 1fr;
  }

  .app-chrome {
    align-items: flex-start;
  }

  .toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .quota-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
  }

  .account-pool-head {
    display: grid;
    gap: 10px;
  }

  .account-pool-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .account-pool-actions > strong {
    justify-self: start;
  }

  .account-pool-list {
    grid-template-columns: 1fr;
    max-height: 520px;
  }

  .account-usage-row {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
  }

  .account-usage-outcome {
    justify-items: start;
    text-align: left;
  }

  .quota-ring,
  .quota-reset,
  .quota-reset-credit {
    grid-column: 1;
    grid-row: auto;
  }

  .quota-reset-credit {
    margin-top: -10px;
  }

  .quota-view-toggle {
    position: static;
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 2px;
  }

  .quota-warning-button {
    right: 18px;
    top: 18px;
    bottom: auto;
  }

  .payback-card {
    width: calc(100vw - 36px);
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .payback-copy h2 {
    white-space: normal;
  }

  .payback-plan-switch {
    width: 100%;
  }

  .payback-plan-switch button {
    flex: 1;
    padding-inline: 6px;
  }

  .tab-rail {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    padding-inline: 10px;
  }

  .project-mindmap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-mindmap-branches::before {
    display: none;
  }

  .project-mindmap-branches {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .project-mindmap-metrics {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}
