:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f4f6fb;
  color: #15213a;
  --border: #dce3ef;
  --muted: #53617c;
  --primary: #294bc4;
  --primary-dark: #203da9;
  --sidebar: #14223d;
  --topbar-height: 4.25rem;
  --radius: 1.125rem;
  --shadow: 0 16px 48px #20334f0d;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--primary); text-underline-offset: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 1rem; }
h2 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 1rem; }

.topbar {
  min-height: var(--topbar-height);
  padding: .8rem max(1.25rem, calc((100% - 72rem) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #15213a; font-size: 1.26rem; font-weight: 780; text-decoration: none; }
.brand-mark { position: relative; width: 1.95rem; height: 1.95rem; border-radius: .6rem; background: var(--primary); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: #fff; height: 2px; border-radius: 2px; left: .48rem; }
.brand-mark::before { width: 1rem; top: .67rem; transform: rotate(-20deg); }
.brand-mark::after { width: .7rem; top: 1.08rem; transform: rotate(-20deg); }
.topbar nav a { display: inline-block; text-decoration: none; color: var(--muted); font-size: .91rem; font-weight: 650; padding: .38rem .71rem; border-radius: .55rem; }
.topbar nav a:hover { color: var(--primary); background: #edf1ff; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 72rem;
  padding: 0 1.25rem;
  margin: clamp(3rem, 8vw, 7rem) auto 4rem;
}
.home-intro h1 { font-size: clamp(2.55rem, 5.8vw, 4.5rem); font-weight: 780; }
.home-intro p { color: var(--muted); font-size: clamp(.95rem, 2vw, 1.12rem); margin-bottom: 1.6rem; }
.home-intro img { width: 100%; height: auto; display: block; aspect-ratio: 1.68; object-fit: cover; border-radius: var(--radius); background: #e1e7f5; }
.panel, dialog { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.home-workspace, .login-layout { box-shadow: var(--shadow); }
.home-workspace { min-width: 0; overflow: hidden; }
.body, dialog { padding: clamp(1.15rem, 3vw, 1.8rem); }

.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; margin: 1.25rem 1.45rem 0; padding: .3rem; border-radius: .8rem; background: #edf1f8; }
.tabs button { min-width: 0; border: 1px solid transparent; border-radius: .56rem; color: var(--muted); background: transparent; padding: .57rem .42rem; }
.tabs button:hover { color: var(--primary); background: #e5ebf8; }
.tabs [aria-selected="true"], .tabs [aria-selected="true"]:hover { border-color: #dce4f3; color: var(--primary); background: #fff; box-shadow: 0 2px 6px #24396c12; }

label { display: block; font-size: .91rem; font-weight: 670; margin-bottom: .43rem; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd7e8;
  border-radius: .65rem;
  min-height: 2.7rem;
  padding: .65rem .78rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: .94rem;
}
input::placeholder { color: #66748e; }
input[type="file"] { padding: .7rem; background: #f7f9ff; border: 1px dashed #9bafd9; color: var(--muted); }
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: .45rem;
  color: var(--primary);
  background: #e8eeff;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  margin-inline-end: .55rem;
  padding: .43rem .7rem;
  cursor: pointer;
}
form > input + label { margin-top: 1.1rem; }
#submit-form > button { width: 100%; }
button {
  border: 1px solid #cdd7e8;
  border-radius: .62rem;
  padding: .55rem .91rem;
  min-height: 2.5rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: .92rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: #eef2fa; }
button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
button.primary:hover { background: var(--primary-dark); }
:focus-visible { outline: 2px solid #3b63e8; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
.muted, .hint { color: var(--muted); }
.hint { margin: .55rem 0 1.2rem; font-size: .84rem; }
.message { margin: .9rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { color: #a02020; }
#open-history { margin-top: .8rem; }

.form-row, .actions, .section-heading { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.form-row > input, .form-row > label:first-child { flex: 1 1 13rem; }
.form-row > label { margin: 0; min-width: 0; }
.form-row > label input { margin-top: .4rem; }
.actions { align-items: center; margin-top: 1rem; }
.section-heading { align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.records { display: grid; gap: .7rem; }
.record { background: #fbfcff; border: 1px solid var(--border); border-radius: .75rem; padding: .9rem 1rem; overflow-wrap: anywhere; }
.record h3 { font-size: 1rem; margin: 0 0 .3rem; }
.record p { margin: .15rem 0; font-size: .92rem; }
.record a { display: inline-block; margin: .5rem .85rem 0 0; }
.record .actions { margin-top: .7rem; }
.record .actions button { min-height: 2.1rem; padding: .33rem .65rem; font-size: .85rem; }
.secret { background: #edf1ff; border-radius: .65rem; padding: .85rem; margin-top: 1rem; }
#history-items, #report-issue-items, #usage-items { margin-top: .85rem; }
dialog { width: min(40rem, calc(100% - 2rem)); max-height: 85vh; overflow: auto; color: inherit; }
dialog::backdrop { background: #14223da0; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  max-width: 57rem;
  margin: clamp(2.5rem, 9vh, 7rem) auto 3rem;
  overflow: hidden;
}
.login-intro { display: flex; flex-direction: column; justify-content: space-between; background: #182b61; color: #fff; padding: 2.35rem; }
.login-intro p { margin-bottom: .55rem; color: #d9e3ff; }
.login-intro .login-title { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 760; color: #fff; line-height: 1.25; }
.login-intro img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; object-position: center; display: block; margin-top: 1.25rem; border-radius: .7rem; }
.login-body { align-self: center; padding: clamp(1.75rem, 5vw, 3.5rem); }
.login-body h1 { font-size: 1.85rem; margin-bottom: 1.65rem; }
.login-body button { width: 100%; margin-top: 1.4rem; }

.dashboard-layout { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); min-height: calc(100dvh - var(--topbar-height)); }
.sidebar { display: flex; flex-direction: column; gap: 1.15rem; padding: 1.75rem 1.05rem; background: var(--sidebar); color: #f3f6ff; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-width: 0; }
.sidebar-title { font-size: 1.1rem; padding-inline: .72rem; }
.sidebar .sidebar-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-color: #3a4a6f;
  font-size: 1.45rem;
  line-height: 1;
}
.sidebar-menu { display: grid; gap: .35rem; }
.sidebar button { text-align: left; border-color: transparent; color: #c8d5f0; background: transparent; }
.sidebar button:hover { background: #263760; color: #fff; }
.sidebar-menu [aria-selected="true"], .sidebar-menu [aria-selected="true"]:hover {
  border-color: #4d69ae;
  background: #304982;
  color: #fff;
}
.sidebar button:focus-visible { outline-color: #bdcbff; }
.sidebar .sidebar-logout {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  border-top-color: #3a4a6f;
  border-radius: 0 0 .55rem .55rem;
}
.is-sidebar-collapsed .sidebar .sidebar-logout { justify-content: center; padding-inline: 0; }
.admin-content { width: 100%; min-width: 0; padding: clamp(1.6rem, 4vw, 3rem); }
.admin-content h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 1.3rem; }
.admin-content .panel + .panel { margin-top: 1.05rem; }

/* 后台工作区 */
.admin-page { background: #f2f5fa; }
.admin-page .topbar { position: sticky; top: 0; z-index: 2; padding-inline: clamp(1.1rem, 3vw, 2.5rem); }
.admin-page .dashboard-layout { grid-template-columns: 13.75rem minmax(0, 1fr); }
.admin-page .sidebar { position: sticky; top: var(--topbar-height); align-self: start; min-height: calc(100dvh - var(--topbar-height)); }
.admin-page .sidebar-menu button { display: flex; align-items: center; gap: .55rem; min-height: 2.7rem; min-width: 0; }
.sidebar-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  font-size: .95rem;
  line-height: 1;
}
.sidebar-icon-key::before {
  content: "";
  position: absolute;
  inset: 0 auto auto .08rem;
  width: .49rem;
  height: .49rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.sidebar-icon-key::after {
  content: "";
  width: .55rem;
  height: .24rem;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(.18rem, .11rem) rotate(43deg);
}
.sidebar-icon-code::before {
  content: "";
  position: absolute;
  inset: .1rem auto auto .1rem;
  width: .28rem;
  height: .28rem;
  border: 1px solid currentColor;
  box-shadow: .48rem 0, 0 .48rem, .48rem .48rem;
}
.sidebar-icon-tasks { border: 1px solid currentColor; border-radius: .18rem; }
.sidebar-icon-tasks::before {
  content: "";
  width: .5rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 .2rem, 0 -.2rem;
}
.sidebar-icon-issues { border: 1px solid currentColor; border-radius: 50%; font-size: .68rem; font-weight: 700; }
.sidebar-icon-logout { justify-items: end; }
.sidebar-icon-logout::before {
  content: "";
  position: absolute;
  inset: .08rem auto .08rem 0;
  width: .4rem;
  border: 1px solid currentColor;
  border-right: 0;
  border-radius: .12rem 0 0 .12rem;
}
.admin-page .dashboard-layout.is-sidebar-collapsed { grid-template-columns: 3.75rem minmax(0, 1fr); }
.is-sidebar-collapsed .sidebar { padding-inline: .7rem; }
.is-sidebar-collapsed .sidebar-title,
.is-sidebar-collapsed .sidebar-label { display: none; }
.is-sidebar-collapsed .sidebar-menu button { justify-content: center; padding-inline: 0; }
.admin-page .admin-content { padding: clamp(1.45rem, 3.2vw, 2.65rem); }
.admin-page .admin-content .panel { box-shadow: 0 3px 14px #24375907; }
.admin-page .admin-content h1 { margin-bottom: 1.35rem; }
.admin-page .admin-content .body { padding: clamp(1rem, 2.5vw, 1.4rem); }
#report-issue-search .form-row { max-width: 31rem; }
#usage-dialog { width: min(46rem, calc(100% - 2rem)); }
#usage-dialog .section-heading { align-items: start; }
#usage-title { overflow-wrap: anywhere; flex: 1; }

.session-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
  max-width: 34rem;
  margin: 13vh auto 0;
  padding: 1.5rem 1rem;
  color: var(--muted);
}
.session-panel p { margin: 0; }
.session-panel .error { color: #a02020; }
.session-indicator { width: .72rem; height: .72rem; border-radius: 50%; background: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .session-indicator { animation: session-pulse 1.3s ease-in-out infinite alternate; }
  @keyframes session-pulse { from { opacity: .35; } to { opacity: 1; } }
}
.admin-list { overflow: hidden; }
.list-heading { padding: 1.05rem 1.25rem; }
.list-heading h2 { margin: 0; }
.list-state { margin: 0; padding: 1rem 1.25rem; color: var(--muted); border-top: 1px solid var(--border); }
.list-state:empty { display: none; }
.list-state.error { color: #a02020; }
.credential-table-wrap { overflow-x: auto; }
.credential-table { width: 100%; border-collapse: collapse; text-align: left; }
.credential-table th { background: #f7f9fc; color: var(--muted); font-weight: 650; font-size: .84rem; }
.credential-table th, .credential-table td { padding: .8rem 1.05rem; border-top: 1px solid #e8edf5; }
.credential-table td { vertical-align: middle; font-size: .89rem; overflow-wrap: anywhere; }
.query-code-copy {
  max-width: 100%;
  padding: .3rem .45rem;
  text-align: start;
  overflow-wrap: anywhere;
}
.credential-table td:first-child { min-width: 10rem; }
.credential-table tbody tr:hover { background: #fafbfe; }
.row-title { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; min-width: 0; }
.row-title > strong { font-size: .98rem; }
.cell-note { display: block; color: var(--muted); font-size: .76rem; margin-top: .22rem; }
.quota-value { font-size: 1.03rem; font-variant-numeric: tabular-nums; }
.status-badge { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 99px; padding: .12rem .53rem; font-size: .74rem; color: #475569; background: #edf0f5; }
.status-badge.is-on { color: #1b6548; background: #e4f4eb; }
.expired { color: #9b2c2c; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.row-actions button { min-height: 2rem; padding: .25rem .5rem; white-space: nowrap; font-size: .79rem; }
.issue-record .row-title h3 { margin: 0; }
.issue-record .row-title { margin-bottom: .3rem; }
.issue-detail { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr) auto; align-items: baseline; gap: .45rem .75rem; border-top: 1px solid #e6edf6; padding-top: .55rem; margin-top: .55rem; font-size: .84rem; }
.issue-detail time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.usage-record { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .7rem; }
.usage-record p { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid #e8edf5; margin-top: .95rem; padding-top: .85rem; }
.admin-list .pagination { margin-top: 0; padding: .85rem 1.05rem; }
.page-summary { margin: 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-controls, .page-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem; }
.page-controls { gap: .65rem; }
.page-size { display: flex; align-items: center; gap: .3rem; margin: 0; color: var(--muted); font-size: .82rem; }
.page-size select { min-height: 2.05rem; padding-inline: .35rem; border: 1px solid #cdd7e8; border-radius: .55rem; background: #fff; color: #334155; font: inherit; }
.page-buttons button { min-width: 2rem; min-height: 2rem; padding: .2rem .35rem; line-height: 1; font-size: .82rem; }
.page-buttons button[aria-current="page"] { color: var(--primary); background: #edf1ff; border-color: #d5dfff; opacity: 1; }

@media (max-width: 61rem) {
  .login-layout { margin-inline: 1.25rem; }
}
@media (max-width: 49rem) {
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin: 2.65rem auto; max-width: 36rem; }
  .home-intro h1 { font-size: clamp(2.15rem, 7vw, 3.1rem); margin-bottom: .75rem; }
  .home-intro p { margin-bottom: .25rem; }
  .home-intro img { display: none; }
}
@media (max-width: 44rem) {
  .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 31rem; margin: 2rem auto; width: calc(100% - 2rem); }
  .login-intro { padding: 1.35rem 1.65rem; }
  .login-intro img { display: none; }
  .login-intro p:last-child { margin-bottom: 0; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: 1fr auto; gap: .55rem .65rem; padding: .65rem .9rem; align-items: center; }
  .sidebar-title { padding-inline: .5rem; }
  .sidebar-toggle span { transform: rotate(90deg); }
  .sidebar-heading { grid-column: 1; grid-row: 1; }
  .sidebar-menu { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar-menu button { text-align: center; padding-inline: .2rem; white-space: nowrap; }
  .sidebar .sidebar-logout {
    grid-column: 2;
    grid-row: 1;
    min-width: 2.25rem;
    min-height: 2.15rem;
    margin: 0;
    border-radius: .55rem;
    border-color: #3a4a6f;
    padding-block: .25rem;
  }
  .admin-content { padding: 1.4rem .9rem 2rem; }
}

@media (max-width: 44rem) {
  .admin-page .dashboard-layout,
  .admin-page .dashboard-layout.is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .is-sidebar-collapsed .sidebar-title { display: block; }
  .admin-page .topbar { position: static; }
  .admin-page .sidebar { position: static; min-height: 0; }
  .admin-page .sidebar-menu button { min-height: 2.35rem; }
  .admin-page .admin-content { padding: 1.2rem .85rem 1.9rem; }
  .admin-list .list-heading { padding: .85rem 1rem; }
  .credential-table, .credential-table tbody { display: block; }
  .credential-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .credential-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem 1rem; border-top: 1px solid #e8edf5; padding: .9rem 1rem; }
  .credential-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .credential-table td:first-child, .credential-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  .credential-table td[data-label]:not(:last-child)::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--muted); margin-bottom: .16rem; }
  .issue-detail { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
  .page-controls { gap: .4rem; }
}

.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }
.filter-bar label { flex: 1 1 9rem; margin: 0; }
.filter-bar input, .filter-bar select { margin-top: .28rem; }
.filter-bar select { display: block; width: 100%; min-height: 2.7rem; padding: .55rem .7rem; border: 1px solid #cdd7e8; border-radius: .65rem; background: #fff; color: inherit; font: inherit; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-actions button { min-height: 2.7rem; }
.list-filter { padding: 0 1.05rem .95rem; }
#tasks-panel .list-filter, #recharges-panel .list-filter { padding-top: 1rem; }
#task-search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#task-search label, #task-search select { min-width: 0; }
#task-table { table-layout: fixed; }
#task-table th:nth-child(1) { width: 27%; }
#task-table th:nth-child(2) { width: 22%; }
#task-table th:nth-child(3) { width: 17%; }
#task-table th:nth-child(4) { width: 21%; }
#task-table th:nth-child(5) { width: 13%; }
#task-table .compact-button { padding-inline: .45rem; white-space: nowrap; }
.report-scores { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.report-score {
  display: inline-flex;
  width: min(100%, 5.25rem);
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding-inline: .45rem;
  border: 1px solid #cfdaff;
  border-radius: .55rem;
  background: #f4f7ff;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
a.report-score:hover { background: #e6edff; }
.report-score.is-unavailable { border-color: #e4e9f2; background: #f7f9fc; color: var(--muted); }
.report-score-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#usage-search { align-items: end; margin-top: 1rem; }
.task-reports { margin-top: 1rem; border: 1px solid var(--border); border-radius: .75rem; padding: .9rem; background: #f7f9ff; }
.task-reports h3 { margin: 0; font-size: .95rem; }
.task-report-links:not(:empty) { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.task-report-links a { display: inline-block; padding: .4rem .65rem; border: 1px solid #cfdaff; border-radius: .55rem; background: #fff; font-size: .85rem; font-weight: 650; }
.task-report-links a:hover { background: #edf1ff; }
.task-reports .message { margin-top: .35rem; }
#usage-search label { max-width: 15rem; }
.settings-toggle { display: flex; align-items: center; gap: .5rem; }
.settings-toggle input { width: auto; }
#admin-password-change .form-row > label { flex: 1 1 12rem; }
.ledger-delta { color: #294481; font-variant-numeric: tabular-nums; }
.compact-button { min-height: 2.1rem; padding: .35rem .68rem; font-size: .83rem; }
.status-badge.is-failed { color: #8b2424; background: #fcecec; }

@media (max-width: 62rem) {
  #task-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #task-table, #task-table tbody { display: block; }
  #task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #task-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; padding: .9rem 1rem; border-top: 1px solid #e8edf5; }
  #task-table td { display: block; min-width: 0; padding: 0; border: 0; }
  #task-table td:first-child, #task-table td:last-child, #task-table .task-result-cell { grid-column: 1 / -1; }
  #task-table td[data-label]:not(:last-child)::before { content: attr(data-label); display: block; margin-bottom: .2rem; color: var(--muted); font-size: .74rem; }
}

@media (max-width: 44rem) {
  .admin-page .sidebar-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-page .sidebar-menu button { justify-content: center; gap: .32rem; font-size: .78rem; padding-inline: .1rem; }
  .is-sidebar-collapsed .sidebar-menu { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filter-bar label { flex-basis: 8rem; }
  #recharge-table td:last-child::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--muted); }
}

.task-status-button { min-height: 1.8rem; border-color: transparent; cursor: help; }
.task-status-button:hover { border-color: #a5b4d0; }
.task-progress-popup {
  position: fixed;
  z-index: 8;
  width: min(21rem, calc(100vw - 16px));
  padding: .8rem .9rem;
  border: 1px solid #d7e0f0;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 8px 28px #15213a28;
  font-size: .86rem;
}
.task-progress-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: .8rem 0 .65rem; }
.task-progress-line li { position: relative; text-align: center; color: var(--muted); font-size: .74rem; }
.task-progress-line li::before { position: relative; z-index: 1; display: block; width: .65rem; height: .65rem; background: #d9e2f1; border-radius: 50%; content: ""; margin: 0 auto .35rem; }
.task-progress-line li + li::after { position: absolute; top: .285rem; right: 50%; width: 100%; height: 2px; background: #d9e2f1; content: ""; }
.task-progress-line li.is-reached { color: var(--primary); font-weight: 700; }
.task-progress-line li.is-reached::before, .task-progress-line li.is-reached::after { background: var(--primary); }
.task-progress-reports { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.task-progress-reports span { background: #f0f3f8; color: var(--muted); border-radius: .45rem; padding: .18rem .4rem; font-size: .74rem; }
.task-progress-reports .is-ready { background: #e4f4eb; color: #1b6548; }
@media (hover: none) {
  .task-status-button { min-height: 2.35rem; cursor: pointer; }
}
