.reseller-summary { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:8px 0 28px; border-bottom:1px solid var(--line, #45474a); }
.reseller-summary > div:first-child { display:grid; gap:8px; }
.reseller-summary strong { font-size:32px; overflow-wrap:anywhere; }
.reseller-summary span, .reseller-summary small { color:var(--muted, #85878c); }
.reseller-contact { max-width:320px; }
.reseller-form { display:grid; grid-template-columns:minmax(150px, 1fr) minmax(110px, .6fr) minmax(140px, 1fr) auto; gap:20px; align-items:end; padding:28px 0; }
.reseller-form label, .reseller-total { display:grid; gap:10px; min-width:0; }
.reseller-form input { width:100%; min-width:0; height:42px; padding:8px 12px; border:1px solid var(--line, #45474a); border-radius:6px; background:var(--surface, transparent); color:inherit; font:inherit; }
.reseller-total { align-self:center; overflow-wrap:anywhere; }
.reseller-total span { font-size:12px; color:var(--muted, #85878c); }
#reseller-error { color:#dc7070; margin:0 0 20px; }
.reseller-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px 0 16px; }
.reseller-section-heading h2 { margin:0; font-size:18px; }
.reseller-actions { display:flex; gap:8px; align-items:center; }
.reseller-icon { width:36px; min-width:36px; height:36px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; font-size:20px; }
.reseller-table-wrap { overflow:auto; }
.reseller-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.reseller-table th, .reseller-table td { padding:14px 10px; border-bottom:1px solid var(--line, #45474a); vertical-align:middle; }
.reseller-table th { color:var(--muted, #85878c); font-weight:500; }
.reseller-code { display:flex; align-items:center; gap:10px; min-width:220px; }
.reseller-code code { max-width:230px; word-break:break-all; user-select:all; }
.reseller-status { display:inline-block; font-size:12px; color:var(--muted, #85878c); }
.reseller-status.active { color:#3da98a; }
.reseller-status.disabled { color:#dc7070; }
.reseller-pagination { display:flex; justify-content:flex-end; align-items:center; gap:14px; padding:14px 0; }
.reseller-history-row { display:grid; grid-template-columns:1fr minmax(90px, auto) minmax(120px, auto); align-items:center; gap:24px; padding:16px 0; border-bottom:1px solid var(--line, #45474a); }
.reseller-history-row > div { display:grid; gap:5px; }
.reseller-history-row small { color:var(--muted, #85878c); }
.reseller-history-row strong { font-size:13px; font-weight:500; }
#reseller-root button:disabled { cursor:not-allowed; opacity:.45; }
@media (max-width:1000px) { .reseller-form { grid-template-columns:1fr 1fr; } .reseller-summary { align-items:flex-start; } }
@media (max-width:600px) { .reseller-summary { flex-direction:column; gap:18px; } .reseller-summary strong { font-size:28px; } .reseller-form { gap:16px 12px; } .reseller-form .button { width:100%; white-space:normal; } .reseller-section-heading { align-items:flex-start; flex-wrap:wrap; } .reseller-history-row { grid-template-columns:1fr auto; gap:10px; } .reseller-history-row > small { grid-column:1 / -1; } }
.reseller-icon::before { content:""; width:18px; height:18px; background:currentColor; mask:var(--reseller-icon) center / contain no-repeat; }
.reseller-copy { --reseller-icon:url("/assets/reseller/copy.svg"); }
#reseller-refresh { --reseller-icon:url("/assets/reseller/refresh-cw.svg"); }
#reseller-previous { --reseller-icon:url("/assets/reseller/arrow-left.svg"); }
#reseller-next { --reseller-icon:url("/assets/reseller/arrow-right.svg"); }
#reseller-root { letter-spacing:0; }
@media (max-width:600px) {
  .reseller-table-wrap { overflow:visible; }
  .reseller-table, .reseller-table tbody { display:block; }
  .reseller-table thead { display:none; }
  .reseller-table tr { display:grid; grid-template-columns:1fr 1fr; gap:14px 12px; padding:18px 0; border-bottom:1px solid var(--line); }
  .reseller-table td { display:block; padding:0; border:0; min-width:0; }
  .reseller-table td:first-child { grid-column:1 / -1; }
  .reseller-table td::before { content:attr(data-label); display:block; margin-bottom:6px; color:var(--muted); font-size:12px; }
  .reseller-code { min-width:0; justify-content:space-between; }
  .reseller-code code { max-width:none; }
}
.reseller-batch-progress { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.reseller-batch-progress[hidden] { display:none; }
.reseller-status.unfunded { color:var(--danger, #dc7070); }
.reseller-result-dialog .modal-card { grid-template-rows:auto minmax(0, 1fr) auto; }
.reseller-result-dialog .modal-header { align-items:flex-start; }
.reseller-result-dialog .modal-close { flex:none; font-size:24px; line-height:1; padding:0 6px; }
.reseller-result-body { display:grid; gap:12px; min-height:0; padding:20px 26px; overflow:auto; }
.reseller-result-body p { margin:0; color:var(--text-soft); font-size:14px; line-height:1.5; }
.reseller-result-body textarea { width:100%; min-width:0; height:clamp(140px, 36dvh, 320px); min-height:96px; padding:14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font:13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing:0; resize:vertical; white-space:pre; }
.reseller-result-dialog .modal-actions .button { width:100%; }
@media (max-width:600px) {
  .reseller-result-dialog .modal-header, .reseller-result-dialog .modal-actions { padding:18px 20px; }
  .reseller-result-body { padding:18px 20px; }
}
