:root {
  --danger: #c43f32;
  --success: #16866f;
  --warning: #b77712;
  --focus: rgba(242, 95, 76, .16);
}

html { min-width: 320px; }
body { min-height: 100vh; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4, p { letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }

.boot-view {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: var(--bg);
  font-weight: 700;
}
.boot-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(242, 95, 76, .22);
}

.art-grid:after { display: none; }
.login-art { min-height: 100vh; }
.login-form label { margin: 18px 0 8px; }
.login-form > input { margin: 0; }
.login-form .muted { margin-bottom: 22px; }
.form-error {
  min-height: 20px;
  margin: 10px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}
.login-form .primary { min-height: 46px; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}
.main { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}
.content {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}
.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #607083;
  font-size: 12px;
  font-weight: 700;
}
.connection-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 134, 111, .1);
}
.connection-state.offline { color: var(--danger); }
.connection-state.offline i { background: var(--danger); box-shadow: 0 0 0 3px rgba(196, 63, 50, .1); }
.global-progress {
  position: fixed;
  top: 70px;
  left: 250px;
  right: 0;
  height: 2px;
  overflow: hidden;
  z-index: 60;
  background: rgba(242, 95, 76, .08);
}
.global-progress i {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--brand);
  animation: global-loading 1.1s ease-in-out infinite;
}
@keyframes global-loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(390%); }
}

.panel, .kpi { border-radius: 8px; }
.panel { border: 1px solid var(--line); box-shadow: none; }
.panel-head { min-height: 64px; padding: 17px 20px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.section-gap { margin-top: 18px; }
.page-head { align-items: center; }
.page-head h1 { letter-spacing: 0; }
.page-actions { flex-wrap: wrap; justify-content: flex-end; }
.scope-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  margin: -10px 0 18px;
  border-left: 3px solid #397fd4;
  background: #f0f6fc;
  color: #315b83;
  font-size: 12px;
  font-weight: 700;
}
.scope-notice svg { width: 17px; flex: 0 0 auto; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #3976bd;
  padding: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.text-button svg { width: 15px; }
.ghost.compact, .primary.compact {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
}
.danger-text { color: var(--danger); }
.icon-btn.danger:hover { color: var(--danger); background: #fff1ef; }
.row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.page-loading, .load-error {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
}
.page-loading i {
  width: 30px;
  height: 30px;
  border: 3px solid #e5eaf1;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-error > svg { width: 34px; height: 34px; color: var(--danger); }
.load-error h2 { margin: 4px 0 0; color: var(--ink); font-size: 20px; }
.load-error p { margin: 0 0 8px; }

.table-scroll { width: 100%; overflow-x: auto; }
.table { min-width: 760px; }
.table th { white-space: nowrap; }
.table td { vertical-align: middle; }
.table-empty {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}
.work-link {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.work-link > span:last-child, .file-cell > span, .account-cell > span:last-child {
  min-width: 0;
}
.work-link b, .work-link small, .file-cell b, .file-cell small, .account-cell b, .account-cell small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-link small, .file-cell small, .account-cell small, .block-muted {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.block-muted { display: block; }
.cover-thumb {
  width: 38px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #eff2f6;
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  color: #75514b;
  background: #f6ddd6;
  font-size: 11px;
  font-weight: 900;
}
.cover-thumb.large { width: 52px; height: 68px; }
.cover-thumb.detail-cover { width: 96px; height: 128px; }
.type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #914033;
  background: #fff0ed;
  font-size: 10px;
  font-weight: 800;
}
.type-chip.comic { color: #286555; background: #e8f5f1; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.status.published, .status.approved, .status.paid, .status.confirmed, .status.active {
  color: #146d5c;
  background: #e8f5f1;
}
.status.uploading, .status.pending, .status.ready {
  color: #91610b;
  background: #fff5df;
}
.status.rejected, .status.refunded, .status.reversed, .status.cancelled, .status.expired { color: var(--danger); background: #fff0ee; }
.status.draft, .status.new { color: #687687; background: #eef1f5; }
.upload-count { font-variant-numeric: tabular-nums; font-weight: 800; }
.file-cell, .account-cell { display: flex; align-items: center; gap: 10px; }
.file-cell > svg { width: 20px; color: #5c6d81; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 800; }
.amount.positive { color: var(--success); }
.mini-progress {
  width: 96px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8edf2;
}
.mini-progress i { display: block; height: 100%; background: var(--success); }

.filter-bar, .query-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.filter-bar select, .query-toolbar select, .settings-form input, .pricing-bar input, .inline-form input {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  outline: none;
}
.search-box {
  min-width: 260px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: white;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.search-box svg { width: 16px; flex: 0 0 auto; color: #8793a3; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.search-box.grow { flex: 1; }
.query-toolbar {
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.query-group { display: grid; gap: 6px; }
.query-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.date-group { min-width: 158px; }
.date-input {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}
.date-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.date-input svg { width: 17px; color: #718096; }
.date-input input {
  width: 125px;
  min-height: 40px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.date-input input::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.date-separator { align-self: end; padding-bottom: 12px; color: var(--muted); }
.query-button { align-self: end; min-height: 42px; }
.topup-search-bar { display: grid; grid-template-columns: minmax(150px, 1.15fr) minmax(180px, 1.4fr) minmax(120px, .8fr) minmax(145px, 1fr) minmax(145px, 1fr) auto auto; align-items: end; }
.topup-search-bar .search-box, .topup-search-bar .date-input { min-width: 0; display: grid; gap: 3px; align-content: center; padding: 5px 9px; }
.topup-search-bar .search-box span, .topup-search-bar .date-input span { color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.topup-search-bar .search-box input, .topup-search-bar .date-input input { width: 100%; min-height: 25px; padding: 2px 0; font-size: 12px; }
.topup-search-bar .primary, .topup-search-bar .ghost { min-height: 40px; white-space: nowrap; }
.pagination-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 48px; padding: 8px 12px; color: var(--muted); font-size: 11px; }
.pagination-count { margin-right: auto; }
.pagination-size { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pagination-size select { min-height: 32px; padding: 4px 24px 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; }
.pagination-actions { display: inline-flex; align-items: center; gap: 9px; }
.pagination-actions > span { min-width: 78px; text-align: center; color: var(--ink); font-weight: 750; }
.pagination-actions button { min-height: 31px; padding: 5px 10px; }
.pagination-actions button.pagination-number { min-width: 32px; padding: 5px 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pagination-actions button.pagination-number.active { border-color: #225b50; color: #fff; background: #225b50; box-shadow: 0 2px 5px rgba(34, 91, 80, .18); }
.pagination-actions button.pagination-number.active:hover { border-color: #19493f; background: #19493f; }
.pagination-actions button:focus-visible, .pagination-size select:focus-visible { outline: 2px solid #75b8a8; outline-offset: 2px; }
.pagination-actions button:disabled { opacity: .42; cursor: not-allowed; }
.pagination-actions > .pagination-jump { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: 2px; color: var(--muted); font-weight: 600; }
.pagination-jump label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pagination-jump input { width: 56px; min-height: 31px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-align: center; font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; }
.pagination-jump input:focus-visible { outline: 2px solid #75b8a8; outline-offset: 2px; }
.update-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.update-distribution-panel { padding-bottom: 20px; }
.update-distribution-panel .panel-head { gap: 18px; }
.update-distribution-panel .panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.update-total { flex: 0 0 auto; padding: 6px 9px; border-radius: 5px; color: #205f50; background: #e9f6f1; font-size: 10px; font-weight: 800; }
.update-share-list { display: grid; gap: 15px; }
.update-share-row { display: grid; gap: 7px; }
.update-share-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.update-share-title > span { min-width: 0; }
.update-share-title b { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.update-share-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.update-share-title strong { flex: 0 0 auto; color: #1f5d50; font-size: 11px; font-variant-numeric: tabular-nums; }
.update-share-track { height: 10px; overflow: hidden; border-radius: 3px; background: #edf1f4; }
.update-share-track i { display: block; width: var(--update-share); height: 100%; min-width: 3px; border-radius: inherit; background: #1f8b70; }
.update-share-row:nth-child(3n + 2) .update-share-track i { background: #e36d57; }
.update-share-row:nth-child(3n) .update-share-track i { background: #3e73bc; }
.update-request-table { min-width: 820px; }
.update-request-table td:nth-child(3) { max-width: 260px; overflow-wrap: anywhere; }

.site-notification-button {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
.site-notification-button.has-unread { color: var(--brand); background: #fff4f1; }
.site-notification-button .notification-count {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.site-notification-table { min-width: 1120px; }
.site-notification-table td:nth-child(1) { width: 32%; }
.site-notification-table td:nth-child(3) svg { width: 14px; vertical-align: -3px; color: var(--brand); }
.notice-title-cell { display: grid; min-width: 250px; gap: 5px; }
.notice-title-cell b { font-size: 12px; }
.notice-title-cell small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.notice-audience {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eef4fb;
  color: #376b9c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.notice-audience.creator { color: #147663; background: #e9f8f3; }
.notice-audience.both { color: #8a5a16; background: #fff4dc; }
.notice-popup-check { align-self: end; }
.switch-row { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.switch-row input { width: 17px !important; height: 17px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.site-notification-form textarea { min-height: 150px; }
.site-notification-form small { color: var(--muted); font-weight: 500; line-height: 1.5; }

.account-notification-inbox { padding-top: 12px; }
.account-notification-list { display: grid; gap: 9px; }
.account-notification-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.account-notification-item.is-unread { border-left: 3px solid var(--brand); background: #fffaf8; }
.account-notification-item.is-read { opacity: .78; }
.account-notification-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff0ed;
  color: var(--brand);
}
.account-notification-icon svg { width: 18px; }
.account-notification-copy { min-width: 0; }
.account-notification-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
.account-notification-meta span { color: var(--brand); font-weight: 800; }
.account-notification-copy h4 { margin: 6px 0; font-size: 14px; }
.account-notification-copy p { margin: 0; color: #566578; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-notification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.account-notification-actions > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.account-notification-actions svg { width: 14px; }
.account-notification-popup { text-align: center; }
.account-notification-popup-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 2px auto 17px;
  border-radius: 8px;
  background: #fff0ed;
  color: var(--brand);
}
.account-notification-popup-icon svg { width: 26px; }
.account-notification-popup > p { margin: 0 auto; max-width: 580px; color: #3f4d5f; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-notification-popup > time { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; }
.account-notification-popup .modal-foot { justify-content: center; margin-top: 24px; }
.recharge-alert-region { position: fixed; top: 82px; right: 18px; z-index: 260; display: grid; gap: 10px; width: min(410px, calc(100vw - 32px)); pointer-events: none; }
.recharge-alert { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px; border: 1px solid #a9dec3; border-left: 4px solid #168d57; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px rgba(22, 48, 35, .22); pointer-events: auto; animation: recharge-alert-in .22s ease-out; }
.recharge-alert.cancelled { border-color: #f0c6c1; border-left-color: #c3483e; }
.recharge-alert.cancelled .recharge-alert-mark { color: #ae3329; background: #fff0ee; }
.recharge-alert.cancelled .recharge-alert-copy > b, .recharge-alert.cancelled .recharge-alert-copy > span code { color: #a63229; }
.recharge-alert.expired { border-color: #efd8ae; border-left-color: #c88416; }
.recharge-alert.expired .recharge-alert-mark { color: #a96808; background: #fff6e4; }
.recharge-alert.expired .recharge-alert-copy > b, .recharge-alert.expired .recharge-alert-copy > span code { color: #8b5a10; }
.recharge-alert-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #087b46; background: #e6f8ee; }
.recharge-alert-mark svg { width: 19px; }
.recharge-alert-copy { display: grid; gap: 5px; min-width: 0; }
.recharge-alert-copy > b { font-size: 13px; }
.recharge-alert-copy > span code { color: #087b46; font-size: 11px; font-weight: 800; }
.recharge-alert-copy > small { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.recharge-alert-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.recharge-alert-actions .compact { min-height: 31px; padding: 6px 9px; font-size: 10px; }
@keyframes recharge-alert-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.scope-value {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  color: #315b83;
  background: #f3f8fd;
  font-weight: 800;
}
.scope-value svg { width: 16px; }
.selected-scope {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -7px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.selected-scope svg { width: 15px; }
.selected-scope b { color: var(--ink); }

.account-query { flex: 1 1 430px; }
.account-controls { display: flex; gap: 8px; }
.account-controls select { width: 124px; }
.account-autocomplete { position: relative; flex: 1; min-width: 240px; }
.account-autocomplete .search-box { min-width: 0; }
.account-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: white;
  box-shadow: 0 14px 38px rgba(31, 43, 58, .14);
  z-index: 50;
}
.account-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  color: var(--ink);
  background: white;
  text-align: left;
}
.account-result:hover { background: #f7f9fc; }
.account-result > span:nth-child(2) { flex: 1; min-width: 0; }
.account-result b, .account-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-result small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.account-result > svg { width: 15px; color: var(--muted); }
.account-no-result { padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }

.promotion-list { display: grid; gap: 0; }
.promotion-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.promotion-item > div:nth-child(2) { flex: 1; min-width: 0; }
.promotion-item h4 { margin: 8px 0 4px; font-size: 13px; }
.promotion-item p { margin: 0; color: var(--muted); font-size: 11px; }
.commission-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.commission-tags span {
  padding: 3px 6px;
  border-radius: 4px;
  color: #286555;
  background: #e8f5f1;
  font-size: 9px;
  font-weight: 800;
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.empty-state > svg { width: 30px; height: 30px; margin-bottom: 4px; color: #9ba7b6; }
.empty-state b { color: var(--ink); }
.empty-state span { font-size: 12px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 35, .62);
  overflow-y: auto;
}
.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 26px 80px rgba(8, 14, 22, .28);
}
.modal.modal-xl { width: min(1120px, 100%); }
.modal-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-head .eyebrow { margin-bottom: 7px; }
.modal-description { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal-body { padding: 20px 22px 22px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid label small { color: var(--muted); font-size: 10px; font-weight: 500; }
.required-mark { color: var(--danger); }
.upload-pair { display: grid; grid-template-columns: 1.45fr .8fr; gap: 16px; margin-top: 6px; }
.upload-pair h4 { margin: 0 0 10px; font-size: 12px; }
.dropzone {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px dashed #bcc7d3;
  border-radius: 7px;
  color: var(--muted);
  background: #fbfcfd;
  text-align: center;
  transition: .18s ease;
}
.dropzone.dragging, .dropzone:focus-within {
  border-color: var(--brand);
  background: #fff7f5;
}
.dropzone > svg { width: 28px; height: 28px; color: #738196; }
.dropzone b { color: var(--ink); font-size: 12px; }
.dropzone span { font-size: 10px; line-height: 1.5; }
.dropzone.compact-zone { min-height: 156px; }
.file-list { display: grid; gap: 5px; max-height: 180px; overflow-y: auto; margin-top: 8px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  background: #fafbfd;
}
.file-row > span:nth-child(2) { min-width: 0; }
.file-row b, .file-row small { display: block; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row b { font-size: 10px; }
.file-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.file-index {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #627086;
  background: #e9edf3;
  font-size: 9px;
  font-weight: 800;
}
.upload-progress { margin-top: 14px; }
.upload-progress > div { height: 7px; overflow: hidden; border-radius: 4px; background: #e9edf3; }
.upload-progress i { display: block; width: 0; height: 100%; background: var(--success); transition: width .2s ease; }
.upload-progress span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }

.work-summary { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding-bottom: 18px; }
.work-summary p { margin: 12px 0; color: #526071; line-height: 1.7; }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.pricing-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dae5ef;
  border-radius: 7px;
  background: #f6fafe;
}
.pricing-bar label, .inline-form label {
  display: grid;
  gap: 5px;
  color: #566578;
  font-size: 10px;
  font-weight: 800;
}
.pricing-bar input { width: 126px; }
.source-chip { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 7px; margin-left: 5px; color: #176b54; background: #e5f7ef; font-size: 10px; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.qr-hint { height: auto; min-height: 0; line-height: 1.55; padding: 9px 12px; border-radius: 7px; color: #8a5b12; background: #fff6e5; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}
.section-title h4 { margin: 0; }
.section-title span { color: var(--muted); font-size: 11px; }
.episode-table { border: 1px solid var(--line); border-radius: 7px; }
.inline-form { display: flex; align-items: end; gap: 7px; }
.inline-form input { width: 100px; min-height: 34px; padding: 6px 8px; }

.data-chart { padding: 12px 20px 20px; }
.data-chart svg { width: 100%; height: 260px; overflow: visible; }
.data-chart .chart-grid { stroke: #edf0f4; stroke-width: 1; }
.data-chart .series { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.data-chart .series.plays { stroke: #e95745; }
.data-chart .series.clicks { stroke: #397fd4; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 2px; }
.chart-legend i.plays { background: #e95745; }
.chart-legend i.clicks { background: #397fd4; }
.data-chart .chart-labels { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 9px; }
.audience-panel { min-height: 320px; }
.audience-panel .donut { width: 150px; height: 150px; }
.audience-panel .donut:before { inset: 25px; }
.audience-panel .donut-center { z-index: 2; }
.legend-list i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.qr-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.qr-image { width: 112px; height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: white; }
.qr-image img { width: 100%; height: 100%; object-fit: contain; }
.qr-card h4 { margin: 8px 0 3px; font-size: 13px; }
.qr-card p { margin: 0 0 7px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.qr-card b, .qr-card small { display: block; }
.qr-card small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.qr-wallet-address, .qr-request-address { overflow-wrap: anywhere; word-break: break-word; }
.table .qr-image, .qr-image img { color: transparent; }
.table td > img, .qr-image + img { max-width: 100%; }
.table td .qr-image { width: 54px; height: 54px; }
.vote-summary { display: block; max-width: 240px; color: #617083; font-size: 10px; line-height: 1.5; }
.permission-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}
.permission-empty svg { width: 28px; color: #8a96a6; }
.permission-empty b { color: var(--ink); }
.permission-empty span { font-size: 11px; }

.settings-panel { padding-bottom: 20px; }
.settings-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px;
}
.settings-form label { display: grid; gap: 6px; color: #566578; font-size: 11px; font-weight: 800; }
.settings-form input { width: 180px; }
.audit-table code { color: #4b5a6e; font-size: 10px; }

.consumer-detail-body { display: grid; gap: 20px; }
.consumer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.consumer-facts > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.consumer-facts small, .cell-sub { display: block; color: var(--muted); font-size: 10px; }
.consumer-facts b { overflow-wrap: anywhere; font-size: 12px; }
.consumer-detail-section { min-width: 0; }
.consumer-detail-section .section-title { padding: 0 0 8px; }
.consumer-detail-section .section-title span { color: var(--muted); font-size: 10px; }
.consumer-detail-section .table { min-width: 740px; }
.consumer-detail-section code { font-size: 10px; }

.payment-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}
.payment-channel-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.payment-channel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.payment-method-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--teal);
  background: #eaf7f3;
}
.payment-channel-head > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.payment-channel-head small, .payment-channel-qr-info small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.payment-channel-head .switch-control { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 10px; }
.payment-channel-card > label { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.payment-channel-card input:not([type="checkbox"]), .payment-channel-card textarea { width: 100%; min-width: 0; }
.payment-channel-card .code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.payment-channel-card label small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.payment-channel-qr { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border: 1px dashed #d6dee8; border-radius: 7px; background: #f8fafc; }
.payment-channel-qr-preview { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.payment-channel-qr-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.payment-channel-qr-preview > span { display: grid; justify-items: center; gap: 5px; padding: 6px; color: var(--muted); text-align: center; font-size: 9px; }
.payment-channel-qr-preview svg { width: 23px; height: 23px; }
.payment-channel-qr-info { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.payment-channel-qr-info > b { font-size: 11px; }
.payment-channel-qr-info .ghost { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.danger-text { margin-left: 8px; color: #c64438 !important; }

.toast-region {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
}
.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #cfe5de;
  border-left: 4px solid var(--success);
  border-radius: 6px;
  color: #255d52;
  background: white;
  box-shadow: 0 12px 32px rgba(31, 43, 58, .14);
  font-size: 12px;
  line-height: 1.5;
}
.toast-item.error { border-color: #f0d0cc; border-left-color: var(--danger); color: #87362e; }
.toast-item svg { width: 17px; flex: 0 0 auto; }
.mobile-scrim { display: none; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .upload-pair { grid-template-columns: 1fr; }
  .settlement-query .account-query { order: 5; flex-basis: 100%; }
  .topup-search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 24px 20px; }
  .login-form { margin: auto; }
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 45px rgba(9, 16, 25, .24);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 35;
    background: rgba(13, 20, 29, .52);
  }
  .global-progress { left: 0; }
  .content { padding: 24px 18px; }
  .menu-btn { display: grid; }
  .mobile-close { display: grid; margin-left: auto; color: #aab5c5; }
  .page-head { align-items: flex-start; }
  .data-chart svg { height: 220px; }
}

@media (max-width: 650px) {
  .topbar { height: 62px; padding: 0 14px; }
  .global-progress { top: 61px; }
  .breadcrumbs > span, .breadcrumbs > svg, .connection-state, .top-divider, .profile-chip > span:nth-child(2) { display: none; }
  .content { padding: 20px 12px 28px; }
  .page-head { display: grid; gap: 15px; margin-bottom: 20px; }
  .page-head h1 { font-size: 24px; }
  .page-actions { justify-content: flex-start; }
  .page-actions > button { flex: 1 1 auto; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi { padding: 14px; }
  .kpi h3 { font-size: 21px; overflow-wrap: anywhere; }
  .scope-notice { align-items: flex-start; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .search-box, .filter-bar select, .filter-bar button { width: 100%; min-width: 0; }
  .topup-search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topup-search-bar .search-box, .topup-search-bar .date-input { width: 100%; }
  .query-toolbar { align-items: stretch; }
  .query-group, .date-group { flex: 1 1 calc(50% - 8px); min-width: 138px; }
  .date-input input { width: 100%; min-width: 0; }
  .date-separator { display: none; }
  .query-button { flex: 1 1 100%; }
  .account-query { flex-basis: 100%; }
  .account-controls { align-items: stretch; flex-direction: column; }
  .account-controls select, .account-autocomplete { width: 100%; min-width: 0; }
  .selected-scope { margin-top: 0; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal.modal-xl {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }
  .modal-head { padding: 17px 16px 14px; }
  .modal-body { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .work-summary { grid-template-columns: 70px 1fr; }
  .cover-thumb.detail-cover { width: 70px; height: 96px; }
  .pricing-bar { align-items: stretch; }
  .pricing-bar label { flex: 1 1 130px; }
  .pricing-bar input { width: 100%; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form input { width: 110px; }
  .data-chart { padding: 5px 8px 16px; overflow-x: auto; }
  .data-chart svg { min-width: 620px; height: 200px; }
  .data-chart .chart-labels { min-width: 620px; }
  .donut-layout { gap: 18px; }
  .qr-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .qr-card { grid-template-columns: 92px 1fr; }
  .qr-image { width: 92px; height: 92px; }
  .toast-region { top: 70px; right: 10px; width: calc(100vw - 20px); }
  .recharge-alert-region { top: 68px; right: 10px; width: calc(100vw - 20px); }
  #enableRechargeReminders { max-width: 108px; overflow: hidden; padding: 6px 7px; font-size: 9px; line-height: 1.2; }
  .consumer-facts { grid-template-columns: 1fr; }
  .payment-channel-grid { grid-template-columns: 1fr; padding: 12px; }
  .pagination-actions { flex-wrap: wrap; }
  .pagination-actions > .pagination-jump { flex-basis: 100%; justify-content: flex-end; }
  .update-share-title { align-items: flex-start; }
  .site-notification-button { flex-basis: 34px; width: 34px; height: 34px; }
  .account-notification-item { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; gap: 9px; }
  .account-notification-icon { width: 32px; height: 32px; }
  .account-notification-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .account-notification-popup .modal-foot { align-items: stretch; flex-direction: column-reverse; }
  .account-notification-popup .modal-foot button { width: 100%; }
}

@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .update-kpi-grid { grid-template-columns: 1fr; }
  .query-group, .date-group { flex-basis: 100%; }
  .page-actions { width: 100%; }
  .page-actions > button { width: 100%; }
}

.account-summary { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding: 18px 20px; }
.account-summary-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; color: #fff; background: #225b50; font-size: 20px; font-weight: 850; }
.account-summary-title { min-width: 0; }
.account-summary-title > span { color: var(--brand); font-size: 10px; font-weight: 800; }
.account-summary-title h2 { margin: 3px 0 2px; font-size: 20px; }
.account-summary-title p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.account-summary-status { margin-left: auto; }
.account-center-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; }
.account-center-grid .panel { margin: 0; }
.account-detail-panel { grid-row: span 2; }
.account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.account-facts > div { min-width: 0; padding: 15px; border-bottom: 1px solid var(--line); }
.account-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.account-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.account-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.account-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.account-facts code { font-size: 10px; }
.account-center-form { display: grid; gap: 14px; }
.account-center-form label { display: grid; gap: 7px; margin: 0; font-size: 12px; font-weight: 750; }
.account-center-form input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: #fff; }
.account-center-form input:focus { border-color: #2c7567; box-shadow: 0 0 0 3px rgba(44, 117, 103, .11); }
.account-center-form .password-wrap { position: relative; }
.account-center-form .password-wrap input { padding-right: 44px; }
.account-center-form .password-wrap button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.account-center-form .password-wrap button:hover { color: #225b50; background: #eef6f3; }
.account-center-form .password-wrap button svg { width: 17px; }
.account-center-form > small { margin-top: -5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.account-center-form > .primary { justify-self: start; }
.account-login-panel { margin-top: 18px; }
.account-device { max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .account-center-grid { grid-template-columns: 1fr; }
  .account-detail-panel { grid-row: auto; }
}

@media (max-width: 560px) {
  .account-summary { align-items: flex-start; padding: 15px; }
  .account-summary-avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .account-summary-status { margin-left: 0; }
  .account-facts { grid-template-columns: 1fr; }
  .account-facts > div:nth-child(odd) { border-right: 0; }
  .account-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .account-center-form > .primary { width: 100%; }
  .account-device { max-width: 220px; }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 2px 14px;
}
.section-heading h2 { margin: 0; color: var(--ink); font-size: 17px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.section-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d6e8e2;
  border-radius: 5px;
  color: #205f50;
  background: #eff8f5;
  font-size: 10px;
  font-weight: 800;
}
.coin-kpi-grid { margin-bottom: 0; }
.coin-ledger-panel, .account-coin-panel { overflow: visible; }
.coin-ledger-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px auto auto;
  align-items: center;
  gap: 9px;
  margin: -5px 0 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}
.coin-ledger-filter select {
  width: 100%;
  min-height: 42px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.coin-ledger-filter .search-box { min-width: 0; background: #fff; }
.coin-ledger-filter .ghost, .coin-ledger-filter .primary { min-height: 42px; white-space: nowrap; }
.account-coin-filter { grid-template-columns: minmax(230px, 1fr) 145px 145px 145px 145px auto auto; }
.account-coin-filter .compact-date { min-width: 0; background: #fff; }
.account-coin-filter .compact-date input { width: 100%; min-width: 0; }
.coin-ledger-table { min-width: 1540px; }
.account-coin-table { min-width: 1200px; }
.coin-ledger-table th { white-space: nowrap; }
.coin-ledger-table td { line-height: 1.45; }
.coin-ledger-table .type-chip { margin-right: 5px; vertical-align: 1px; }
.coin-order-id {
  display: block;
  max-width: 170px;
  overflow: hidden;
  color: #315b83;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.amount.negative { color: var(--danger); }
.account-coin-overview { margin-top: 22px; }

.usd-cny-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 15px 18px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: linear-gradient(115deg, #f7fbff 0%, #fff 72%);
  box-shadow: 0 4px 14px rgba(35, 68, 95, .045);
}
.usd-cny-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  color: #225c83;
  background: #e8f2fa;
}
.usd-cny-icon svg { width: 19px; height: 19px; }
.usd-cny-copy { display: grid; min-width: 0; gap: 4px; }
.usd-cny-copy strong { color: #173f5d; font-size: 19px; letter-spacing: -.02em; }
.usd-cny-copy small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.usd-cny-copy .usd-cny-eyebrow { color: #27628a; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.usd-cny-copy .usd-cny-note { max-width: 900px; }
.usd-cny-copy a { color: #315f80; text-decoration: underline; text-underline-offset: 2px; }
.usd-cny-card > button { flex: 0 0 auto; margin-left: auto; }

@media (max-width: 1280px) {
  .account-coin-filter { grid-template-columns: minmax(220px, 1fr) repeat(2, 145px) repeat(2, minmax(135px, .7fr)); }
  .account-coin-filter .ghost, .account-coin-filter .primary { min-width: 120px; }
}

@media (max-width: 980px) {
  .coin-ledger-filter, .account-coin-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-ledger-filter .coin-ledger-search { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .coin-ledger-filter, .account-coin-filter { grid-template-columns: 1fr; }
  .coin-ledger-filter .coin-ledger-search { grid-column: auto; }
  .coin-ledger-filter .ghost, .coin-ledger-filter .primary { width: 100%; }
  .usd-cny-card { align-items: flex-start; flex-wrap: wrap; padding: 13px; }
  .usd-cny-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .usd-cny-copy { flex: 1 1 calc(100% - 52px); }
  .usd-cny-copy strong { font-size: 17px; }
  .usd-cny-card > button { width: 100%; margin-left: 0; }
}
