/* wild-work 管理面板 — 现代浅色风格，响应式，无外部依赖 */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e4e7ec;
  --text: #1f2329;
  --muted: #8a919f;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

#app { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }

/* 顶部 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo { width: 40px; height: 40px; border-radius: 8px; }
.brand-text .title { font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand-text .ver { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.brand-text .sub { font-size: 11px; color: var(--muted); }

.top-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; flex: 1; max-width: 480px; }
.info-cell { display: flex; align-items: center; gap: 8px; }
.info-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.info-value {
  font-size: 12px; color: var(--muted); background: #f0f2f5; padding: 4px 10px;
  border-radius: 6px; font-family: ui-monospace, monospace; cursor: pointer;
  display: inline-flex; align-items: center; overflow: hidden; min-width: 0; flex: 1;
}
.info-value:hover { color: var(--primary); background: #e0e7ff; }
.info-value .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; flex-shrink: 1; }

.top-icons { display: flex; gap: 8px; flex-shrink: 0; }
.icon-link.gear { font-size: 18px; }
.icon-link {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--muted);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.icon-link:hover { border-color: var(--primary); color: var(--primary); }

/* 面板区块 */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }

/* 账号管理按钮区：外层 wrap 分三段 —— 左组(刷新/签到) + 弹性空白 + 右组(渠道三列 grid)。
   左组整体靠左、右组整体靠右，中间空白自动伸缩；左组窄时 wrap 换行不溢出。 */
.panel-actions-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }
.pa-spacer { flex: 1; }
.pa-left { display: flex; flex-direction: column; gap: 8px; }
.pa-left .btn { white-space: nowrap; align-self: flex-start; }
.pa-right {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 12px;
}
.pa-right .btn { justify-self: stretch; white-space: nowrap; }
.panel-actions-wrap .btn { font-size: 13px; padding: 7px 12px; } /* 比标准按钮小一号 */

/* 按钮 */
.btn { border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .15s; }
.btn:hover { background: #f0f2f5; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.primary.alt { background: #0891b2; border-color: #0891b2; }
.btn.primary.alt:hover { background: #0e7490; }
.btn.primary.alt.qoder { background: #7c3aed; border-color: #7c3aed; }
.btn.primary.alt.qoder:hover { background: #6d28d9; }
.btn.primary.alt.qodercn { background: #6d28d9; border-color: #6d28d9; }
.btn.primary.alt.qodercn:hover { background: #5b21b6; }
.btn.primary.alt.qodercom { background: #b45309; border-color: #b45309; }
.btn.primary.alt.qodercom:hover { background: #92400e; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #b91c1c; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.tiny { padding: 2px 8px; font-size: 11px; border-radius: 6px; color: var(--primary); }
.btn.tiny:hover { background: #eef2ff; border-color: var(--primary); }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 模型映射编辑器 */
.map-editor {
  margin-top: 8px; padding: 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafbfc;
}
.map-text {
  width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  line-height: 1.6; padding: 6px 8px; resize: vertical; box-sizing: border-box;
}
.map-editor .preset { display: inline-block; margin: 0 4px 4px 0; }

/* 账号卡片网格 */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; background: var(--card);
}
.acct-card.disabled { opacity: 0.5; background: #f9fafb; }
.acct-card .acct-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.acct-card .acct-name { font-weight: 600; font-size: 14px; }
.acct-card .acct-uid { font-size: 11px; color: var(--muted); }
.acct-card .acct-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acct-card .acct-credits { font-size: 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
/* 可用/不可用/临期拆分：主数字黑色正常字号，不可用降级为次要色，临期红色醒目提示优先消耗。 */
.acct-card .acct-credits span { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.acct-card .acct-credits .credit-num { font-size: 18px; font-weight: 700; color: var(--text); margin-left: 0; }
.acct-card .acct-credits .credit-sep { margin: 0 3px; color: var(--border); }
.acct-card .acct-credits .credit-unusable { font-size: 13px; font-weight: 600; color: var(--muted); }
.acct-card .acct-credits .credit-expiring { font-size: 13px; font-weight: 600; color: var(--danger); }
/* 旧版 state 文件读入后余额口径不可信：显示待刷新而非旧值 */
.acct-card .acct-credits .credit-stale {
  font-size: 13px; font-weight: 600; color: var(--muted);
  animation: stale-pulse 1.6s ease-in-out infinite;
}
@keyframes stale-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.acct-card .acct-checkin { font-size: 11px; }
.acct-card .acct-ops { display: flex; gap: 4px; justify-content: flex-end; }

.badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; color: #fff; white-space: nowrap; }
.badge.wb { background: var(--primary); }
.badge.wbai { background: #0d9488; }
.badge.trae { background: #0891b2; }
/* TraeCode 与 TraeWork 共用账号但模型集不同，配色刻意区分以免混淆 */
.badge.traecode { background: #2563eb; }
.badge.qoder { background: #7c3aed; }
.badge.qodercn { background: #6d28d9; }
.badge.qodercom { background: #b45309; }

.tag { font-size: 10px; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.tag.bad { background: #fee2e2; color: var(--danger); }
.tag.ok { background: #dcfce7; color: var(--ok); }
.tag.neutral { background: #f0f2f5; color: var(--muted); }

/* 图标操作按钮 */
.icon-op {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card); color: var(--muted); cursor: pointer; font-size: 14px;
  transition: all .15s; margin: 0 1px;
}
.icon-op:hover { color: var(--primary); border-color: var(--primary); background: #eff6ff; }
.icon-op.danger:hover { color: var(--danger); border-color: var(--danger); background: #fef2f2; }
.icon-op.warn:hover { color: var(--warn); border-color: var(--warn); background: #fffbeb; }
.icon-op.off { cursor: not-allowed; color: #cbd5e1; opacity: .55; }
.icon-op.off:hover { color: #cbd5e1; border-color: var(--border); background: var(--card); }
/* 帮助图标：正常亮度可 hover，不可点击（无 onclick），tooltip 展示说明 */
.icon-op.help { cursor: help; color: var(--muted); font-weight: 600; }
.icon-op.help:hover { color: var(--primary); border-color: var(--primary); background: #eff6ff; }

.empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: 14px; }
.hidden { display: none !important; }

/* 配置网格（签到 + 开机自启左右布局） */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.config-right { padding-left: 20px; border-left: 1px solid var(--border); }

/* 表单行 */
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.row.wrap { flex-wrap: wrap; }
.lbl { font-size: 13px; color: var(--muted); width: 44px; }
.input { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 14px; outline: none; }
.input:focus { border-color: var(--primary); }
.input.port { width: 80px; }
.input.grow { flex: 1; min-width: 120px; }
.select { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 14px; background: var(--card); outline: none; }
.muted { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.risk-tip { font-size: 12px; color: var(--warn); background: #fefce8; border: 1px solid #fde68a; padding: 8px 10px; border-radius: 8px; margin-top: 8px; }

/* 必填标记（管理密码 label 后的红点）：监听非本机地址时显示 */
.req { color: var(--danger); font-weight: 700; margin-left: 3px; }

/* 签到时间（设置弹层内） */

/* 签到时间 */
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { background: #eff6ff; border: 1px solid #bfdbfe; color: var(--primary); padding: 5px 10px; border-radius: 16px; font-size: 13px; cursor: pointer; }
.time-chip:hover { background: #dbeafe; text-decoration: line-through; }
.icon-btn { border: 1px dashed var(--border); background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

/* 费率表 */
.fees { font-size: 13px; }
.fees table { width: 100%; border-collapse: collapse; }
.fees th, .fees td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.fees th { color: var(--muted); font-weight: 500; font-size: 12px; }
.fees .ch-header td {
  background: #f8fafc; font-weight: 600; font-size: 13px;
  padding: 8px 10px; border-bottom: 2px solid var(--border);
}
.fees .ch-header.wb td { color: var(--primary); }
.fees .ch-header.wbai td { color: #0d9488; }
.fees .ch-header.trae td { color: #0891b2; }
.fees .ch-header.traecode td { color: #2563eb; }
.fees .ch-header.qoder td { color: #7c3aed; }
.fees .ch-header.qodercn td { color: #6d28d9; }
.fees .ch-header.qodercom td { color: #b45309; }
.btn.alt.wbai { background: #0d9488; border-color: #0d9488; color: #fff; }
.fees .note { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.fees td.dim { color: var(--muted); font-size: 12px; }
/* 倍率显示：Free 高亮 / 已定价 / 未知（带 tooltip） */
.fees .rate-free {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #dcfce7; color: #15803d; font-weight: 600; font-size: 12px;
  border: 1px solid #86efac; cursor: default;
}
.fees .rate-paid { font-variant-numeric: tabular-nums; }
.fees .rate-unknown {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #f1f5f9; color: #94a3b8; font-size: 12px;
  border: 1px dashed var(--border); cursor: help;
}
.fees .rate-note { color: #d97706; font-size: 11px; }
/* 能力图标：模型 ID 后的小标记，hover 显示文字说明（title） */
.fees .cap-icons { display: inline-flex; gap: 2px; margin-left: 2px; vertical-align: middle; }
.fees .cap-icon {
  display: inline-block; font-size: 11px; line-height: 1;
  opacity: .75; cursor: help; filter: saturate(.85);
}
.fees .cap-icon:hover { opacity: 1; }

/* 上下文窗口标记：模型 ID 后的 (1M)/(180K) 小字标 */
.fees .ctx-tag {
  font-size: 11px; color: var(--muted); margin-left: 2px;
  font-variant-numeric: tabular-nums; cursor: help;
}
.fees code + .ctx-tag { vertical-align: baseline; }

/* 配置说明 */
.docs { font-size: 13px; }
.docs p { margin-bottom: 8px; }
.docs code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 24px; transition: .2s; cursor: pointer; }
.slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* 弹层 */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: var(--card); border-radius: 12px; padding: 20px 22px; width: 400px; max-width: 92vw; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
/* 宽弹层：统一设置 / 帮助（风险声明多，需宽松排版） */
.modal.modal-wide { width: 720px; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; }
.modal-wide .modal-body { overflow-y: auto; min-height: 0; }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.modal-body { font-size: 14px; color: var(--text); margin-bottom: 14px; word-break: break-all; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.login-buttons { display: flex; gap: 8px; margin-top: 14px; }

/* 统一设置弹层内部分区 */
.settings-body { word-break: normal; }
.cfg-section { padding: 12px 0 4px; border-top: 1px solid var(--border); }
.cfg-section:first-child { border-top: none; padding-top: 2px; }
.cfg-heading { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.lbl.wide { width: 90px; flex-shrink: 0; white-space: nowrap; }

/* 渠道代理行 */
.proxy-list { display: flex; flex-direction: column; gap: 6px; }
.proxy-row { margin-bottom: 0; }
.proxy-row .input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* 账号名可点击编辑 */
.acct-name.editable { cursor: pointer; border-bottom: 1px dashed transparent; }
.acct-name.editable:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* 帮助弹层风险警告块 */
.risk-block {
  margin-top: 12px; padding: 10px 14px; border: 1px solid #fde68a;
  background: #fffbeb; border-radius: 8px; word-break: normal;
}
.risk-title { font-weight: 700; color: var(--warn); margin-bottom: 6px; font-size: 13px; }
.risk-list { padding-left: 18px; font-size: 12px; color: #7c5b10; }
.risk-list li { margin-bottom: 4px; }

/* toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: rgba(31,35,41,.92); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,.2); max-width: 80vw; }

/* 积分明细浮层 */
.credit-tip {
  position: fixed; display: none; z-index: 150;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); font-size: 12px;
  min-width: 300px; max-width: 420px;
}
.credit-tip {
  position: fixed; display: none; z-index: 150;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); font-size: 12px;
  width: 380px; /* 固定宽度：翻页时浮窗不再变形/宽度跳动 */
  box-sizing: border-box;
}
.credit-tip .detail-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-bottom: 6px;
}
.credit-tip .detail-title { font-weight: 600; text-align: right; }
.credit-tip .detail-count { font-weight: 400; color: var(--muted); font-size: 11px; }
/* 翻页器在浮窗顶部居中：鼠标从卡片过来路径最短，不跨出浮窗 */
.detail-pager { display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.detail-pg {
  cursor: pointer; padding: 0 8px; border: 1px solid var(--border);
  border-radius: 5px; color: var(--text); line-height: 1.5; font-size: 13px;
}
.detail-pg:hover { background: #f0f2f5; }
.detail-pg.off { opacity: .35; cursor: default; }
.detail-pg.off:hover { background: transparent; }
.detail-pg-info { color: var(--muted); font-size: 11px; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.detail-table th { color: var(--muted); font-weight: 500; font-size: 11px; }
.detail-table td:nth-child(2), .detail-table td:nth-child(3), .detail-table td:nth-child(4) { text-align: right; }
.detail-table td:last-child { font-weight: 600; }
/* 不可用额度整行淡显 + 角标 */
.detail-table tr.detail-unusable { color: var(--muted); }
.detail-tag {
  font-size: 10px; padding: 1px 5px; margin-left: 5px; border-radius: 8px;
  background: #f0f2f5; color: var(--muted);
}
.detail-sum {
  display: flex; gap: 14px; margin-top: 7px; padding-top: 6px;
  border-top: 1px solid var(--border); color: var(--muted);
}
.detail-sum b { color: var(--text); font-weight: 600; }
.detail-sum-unusable b { color: var(--muted); }

.footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .top-info { order: 3; width: 100%; }
  .config-grid { grid-template-columns: 1fr; }
  .config-right { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 14px; }
  .acct-grid { grid-template-columns: 1fr; }
}
/* qwenwork 千问办公渠道色（与 qoder 紫系区分，用青蓝） */
.btn.primary.alt.qwenwork { background: #0e7490; border-color: #0e7490; }
.btn.primary.alt.qwenwork:hover { background: #155e75; }
.badge.qwenwork { background: #0e7490; }
.fees .ch-header.qwenwork td { color: #0e7490; }

/* oczen：OpenCodeZen 匿名通道（暗灰蓝，与其它紫/青系区分，弱化「固定账号」观感） */
.badge.oczen { background: #475569; }
.fees .ch-header.oczen td { color: #475569; }
/* credit-na 积分「不适用」文案（匿名通道无积分） */
.credit-na { color: var(--muted, #94a3b8); font-style: italic; }

/* ---------- 用量与流水面板 ---------- */
#usageSince { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { border: 0; background: var(--card); padding: 5px 14px; font-size: 12px; cursor: pointer; color: var(--muted); }
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn.active { background: var(--primary); color: #fff; }

.usage-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ucard { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.ucard-label { font-size: 11px; color: var(--muted); }
.ucard-value { font-size: 20px; font-weight: 700; margin-top: 2px; }
.ucard-value.ok { color: var(--ok); }
.ucard-value.warn { color: var(--warn); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.tab { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.chart-box { width: 100%; height: 260px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .empty-cell { text-align: center; color: var(--muted); padding: 18px; }

/* 主面板双 Tab（账号管理 / 用量与流水） */
.main-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.mtab { border: 0; background: transparent; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mtab.active { color: var(--primary); border-bottom-color: var(--primary); }
.mtab .ver { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.pager { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; justify-content: center; }
.pager .pg-info { font-size: 12px; color: var(--muted); min-width: 48px; text-align: center; }
.pager .btn[disabled] { opacity: .4; cursor: default; }

.recent { display: flex; flex-direction: column; gap: 2px; }
.rline { display: flex; gap: 10px; align-items: baseline; font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.rline:nth-child(odd) { background: var(--bg); }
.rline .rtime { color: var(--muted); width: 76px; flex-shrink: 0; }
.rline.earn .ramount { color: var(--ok); font-weight: 600; }
.rline.spend .ramount { color: var(--warn); font-weight: 600; }
.rline.expire .ramount { color: var(--danger); font-weight: 600; }
.rline .ramount { width: 90px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rline .rname { color: var(--muted); flex-shrink: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rline .racct { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rline .rbal { color: var(--muted); flex-shrink: 0; }

.muted { color: var(--muted); }

@media (max-width: 640px) {
  .usage-cards { grid-template-columns: repeat(2, 1fr); }
}
