.admin-load-shell { min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f8fa; }
.admin-load-card { width:min(100%,440px);padding:32px;border:1px solid #dce8e6;border-radius:20px;background:#fff;box-shadow:0 12px 38px #174c4810;text-align:center; }
.admin-load-card h1 { margin:20px 0 12px;font-size:23px;color:#173e40; }
.admin-load-card p { margin:0 0 24px;font-size:14px;line-height:1.8;color:#627b7c;overflow-wrap:anywhere; }
.admin-load-card .button { margin:4px; }
.card-transfer-dialog { width:min(620px,calc(100vw - 28px)); }
.card-transfer-code { padding:16px;margin:16px 0;border:1px solid #dce7e5;border-radius:12px;background:#f7faf9; }
.card-transfer-code.is-target { border-color:#8fd2c4;background:#effaf6; }
.card-transfer-code h3 { margin:0 0 10px;font-size:13px;color:#476964; }
.card-transfer-code code { display:block;font-size:17px;font-weight:700;line-height:1.6;color:#164e47;overflow-wrap:anywhere;user-select:all; }
.card-transfer-code p { font-size:12px;line-height:1.7;color:#687e7c;overflow-wrap:anywhere; }
.card-transfer-amount { font-size:14px;font-weight:700;color:#215951; }
.failed-sku-surface, .batch-export-surface { margin-bottom: 18px; }
.batch-export-windows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 16px; }
.batch-window-button { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 16px; border: 1px solid #d4e3ec; border-radius: 12px; background: #fff; color: #274b61; cursor: pointer; box-shadow: 0 3px 8px #22475f08; transition: border-color .15s, background .15s, box-shadow .15s; }
.batch-window-button > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; }
.batch-window-button small { font-size: 11px; font-weight: 500; color: #607b89; }
.batch-window-button strong { font-size: 15px; white-space: nowrap; }
.batch-window-button .batch-window-count { font-size: 19px; font-weight: 800; }
.batch-window-button:hover { border-color: #5994be; box-shadow: 0 5px 14px #22475f12; }
.batch-window-button[aria-pressed="true"] { border-color: #3476aa; background: #eef6fc; box-shadow: 0 0 0 1px #3476aa; color: #174f7a; }
.batch-window-button:focus-visible { outline: 3px solid #77acd4; outline-offset: 3px; }
.batch-export-body select#batchExportBatch { width: min(100%, 580px); }
@media (max-width: 1280px) { .batch-export-windows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .batch-export-windows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .batch-export-windows { gap: 8px; } .batch-window-button { padding: 12px 10px; } .batch-window-button > span:first-child { flex-wrap: wrap; } .batch-window-button strong { font-size: 12px; } }
#view-tasks > .surface.legacy-task-controls[hidden] { display: none !important; }
.batch-export-body { padding: 18px 22px 20px; }
.batch-export-body label { display: block; margin-bottom: 8px; color: #405c5d; font-size: 12px; font-weight: 800; }
.batch-export-body select { display: block; width: min(100%, 430px); min-height: 42px; padding: 9px 12px; border: 1px solid #d5e4e1; border-radius: 9px; background: #fbfdfc; font-size: 12px; }
.batch-export-hint { display: block; margin: 7px 0 19px; color: #72888a; font-size: 11px; line-height: 1.6; }
.batch-export-body textarea { display: block; width: 100%; min-height: 160px; padding: 12px; border: 1px solid #d5e4e1; border-radius: 9px; resize: vertical; background: #fbfdfc; color: #243d3c; font: 13px/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.batch-export-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.batch-export-footer small { color: #627d7b; font-size: 11px; line-height: 1.6; }
.batch-export-actions { display: flex; gap: 8px; flex: none; }
.failed-sku-form { padding: 18px 22px 20px; }
.failed-sku-form label { display: block; margin-bottom: 8px; color: #405c5d; font-size: 12px; font-weight: 800; }
.failed-sku-form select { display: block; width: min(100%, 380px); min-height: 42px; padding: 9px 12px; border: 1px solid #d5e4e1; border-radius: 9px; background: #fbfdfc; font-size: 12px; }
.failed-sku-batch-hint { display: block; margin: 7px 0 19px; color: #72888a; font-size: 11px; line-height: 1.6; }
.failed-sku-form textarea { display: block; width: 100%; min-height: 96px; padding: 12px; border: 1px solid #d5e4e1; border-radius: 9px; resize: vertical; background: #fbfdfc; line-height: 1.55; }
.sku-file-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:10px; }
.sku-file-row input[type=file] { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.failed-sku-form .sku-file-button { display:inline-flex; align-items:center; min-height:34px; margin:0; padding:0 12px; border:1px solid #d5e4e1; border-radius:9px; background:#fff; color:#315b57; font-size:11px; font-weight:800; cursor:pointer; }
.sku-file-button:hover { border-color:#62aaa0; }
.sku-file-row:focus-within .sku-file-button { outline:2px solid #1c8f82; outline-offset:2px; }
.sku-file-row small { color:#72888a; font-size:11px; }
.failed-sku-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.failed-sku-controls small { color: #72888a; font-size: 11px; line-height: 1.6; }
.failed-sku-result { border-top: 1px solid #e1ece8; padding: 16px 22px; background: #f8fcfa; color: #234b48; }
.failed-sku-result strong { display: block; font-size: 13px; }
.failed-sku-unmatched { margin: 10px 0 0; color: #98631f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.batch-overview { margin-bottom: 18px; }
.batch-overview-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-overview-row { display: grid; gap: 5px; min-width: 0; padding: 18px 22px; }
.batch-overview-row + .batch-overview-row { border-left: 1px solid #edf1f0; }
.batch-overview-row span { color: #718487; font-size: 11px; font-weight: 700; }
.batch-overview-row strong { color: #243d3c; font-size: 15px; }
.batch-overview-row small { color: #829698; font-size: 11px; line-height: 1.7; }
.card-tools { gap: 10px; }
.card-tools .card-search { width: min(100%, 280px); }
.card-lookup-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-lookup-form input { width: min(100%, 240px); min-height: 38px; padding: 0 11px; border: 1px solid #e2eae8; border-radius: 9px; background: #f9fbfa; font-size: 12px; }
.card-lookup-form input:focus { border-color: #73bcb0; outline: 3px solid rgba(51, 161, 143, .12); }
.card-recharge-action { min-height: 32px; padding: 6px 12px; border: 1px solid #b7ddd3; border-radius: 8px; background: #eaf8f3; color: #117968; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.card-recharge-action:hover { border-color: #7bc8b5; background: #d9f2e8; }
.card-recharge-action:focus-visible { outline: 3px solid rgba(51, 161, 143, .24); outline-offset: 2px; }
.modal .recharge-card-label { margin: 0 0 7px; color: #294949; font-weight: 800; overflow-wrap: anywhere; }
.modal .recharge-destination { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #eef8f4; color: #24685f; }
.modal #rechargePoints[readonly] { color: #586e6d; background: #f3f6f5; }
@media (max-width: 750px) {
  .batch-export-body { padding: 16px; }
  .batch-export-body select { width: 100%; }
  .batch-export-footer { align-items: stretch; flex-direction: column; }
  .batch-export-actions .button { flex: 1; }
  .failed-sku-form { padding: 16px; }
  .failed-sku-form select { width: 100%; }
  .failed-sku-controls { align-items: stretch; flex-direction: column; }
  .failed-sku-controls .button { width: 100%; }
  .failed-sku-result { padding: 16px; }
  .batch-overview-body { grid-template-columns: 1fr; }
  .batch-overview-row + .batch-overview-row { border-left: 0; border-top: 1px solid #edf1f0; }
  .card-tools .card-search, .card-lookup-form, .card-lookup-form input { width: 100%; }
  .card-lookup-form .button { flex: 1; }
}

/* Manual synchronization and bounded record tables. */
.table-pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:14px; padding:16px 20px; border-top:1px solid #e6edf3; color:#60728a; font-size:13px; }
.announcement-actions { display:flex; justify-content:flex-end; gap:12px; }
#announcementText { resize:vertical; width:100%; padding:14px; line-height:1.8; min-height:150px; border:1px solid #dce7f2; border-radius:12px; background:#fafdff; }
img.brand-mark { display:block; object-fit:contain; padding:0; border:0; background:transparent; box-shadow:0 4px 12px rgba(31,111,88,.11); }
@media(max-width:750px) { .table-pagination { justify-content:center; gap:10px; padding:14px 12px; } .announcement-actions .button { flex:1; } }

.referral-settings-surface { margin-bottom:22px; }
.referral-settings-form { display:grid; grid-template-columns:minmax(240px,.75fr) minmax(400px,1.7fr); gap:28px; padding:26px; }
.referral-toggle { display:flex; gap:13px; align-items:flex-start; cursor:pointer; }
.referral-toggle input { width:20px; height:20px; margin:2px 0 0; accent-color:#19776b; flex:none; }
.referral-toggle strong { display:block; color:#254f48; font-size:15px; }
.referral-toggle small,.referral-points-field small { display:block; font-size:12px; line-height:1.7; color:#6c8680; margin-top:8px; }
.referral-points-field { font-size:13px; font-weight:700; color:#466961; }
.referral-points-field input { display:block; width:100%; border:1px solid #d8e8df; border-radius:11px; padding:12px; margin-top:9px; background:#f9fcfa; color:#1b5a4d; font-size:19px; }
.referral-points-field input[readonly] { background:#edf3ef; }
.referral-settings-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; grid-column:1 / -1; padding-top:17px; border-top:1px solid #e8efea; }
.referral-tiers-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:18px; }
.referral-tiers-heading strong { color:#254f48; font-size:15px; }
.referral-tiers-heading small { display:block; color:#6c8680; font-size:12px; line-height:1.7; margin-top:7px; }
.referral-tier-labels,.referral-tier-row { display:grid; grid-template-columns:1fr 1fr 62px; gap:12px; align-items:center; }
.referral-tier-labels { font-size:12px; font-weight:700; color:#597a6e; margin-bottom:9px; }
.referral-tier-row { margin-bottom:12px; }
.referral-tier-row input { width:100%; min-width:0; border:1px solid #d8e8df; border-radius:10px; padding:11px 12px; color:#245b4c; background:#f9fcfa; font-size:16px; }
.referral-tier-row input[readonly] { background:#edf3ef; }
.referral-tier-row button { padding:0 9px; }
.referral-history-surface .table-scroll { min-height:70px; }
@media(max-width:1050px) { .referral-settings-form { grid-template-columns:1fr; } .referral-toggle { grid-column:1 / -1; } }
@media(max-width:750px) { .referral-settings-form { padding:20px; gap:18px; grid-template-columns:1fr; } .referral-settings-actions { align-items:stretch; flex-direction:column; } #referralSettingsStatus { white-space:normal; line-height:1.6; } }

/* Functional accents stay small: export blue, settlement amber, rewards violet. */
.table-pagination { color:#60777d; border-color:#dbe7e9; }
#announcementText { color:#24494d; border-color:#d1e2e5; background:#fcfefe; }
.batch-export-surface { border-top:3px solid #6ba3d5; }
.batch-export-surface .surface-heading { background:#f4f9ff; }
.batch-export-surface .surface-heading h3 { color:#245f98; }
.failed-sku-surface { border-top:3px solid #e7aa46; }
.failed-sku-surface .surface-heading { background:#fffbf3; }
.failed-sku-surface .surface-heading h3 { color:#976114; }
.batch-export-body label,.failed-sku-form label { color:#355b61; font-size:13px; }
.batch-export-body select,.batch-export-body textarea,.failed-sku-form select,.failed-sku-form textarea { border-color:#d1e2e5; background:#fcfefe; color:#24494d; }
.batch-export-hint,.failed-sku-batch-hint,.batch-export-footer small,.failed-sku-controls small,.sku-file-row small { color:#60777d; font-size:12px; }
.failed-sku-result { background:#f2fbf7; border-color:#cfe7dd; color:#226656; }
.failed-sku-unmatched { color:#976114; }
.card-recharge-action { border-color:#a9dacf; color:#087362; background:#e8faf3; }
.card-recharge-action:hover { border-color:#72c6b6; background:#d9f5ea; }
.modal .recharge-destination { background:#e8faf3; color:#087362; }
.referral-settings-surface,.referral-history-surface { border-top:3px solid #ad92d4; }
.referral-settings-form { background:#fff; }
.referral-toggle strong,.referral-tiers-heading strong { color:#5d4785; }
.referral-toggle small,.referral-points-field small,.referral-tiers-heading small { color:#60777d; }
.referral-toggle input { accent-color:#7050a4; }
.referral-tier-labels { color:#5d6481; }
.referral-tier-row input { background:#fdfbff; border-color:#dfd5ed; color:#5d4785; }
.referral-tier-row input:focus { border-color:#a993cc; }
.referral-tier-row input[readonly] { background:#f3f1f7; }
.referral-settings-actions { border-color:#e3edef; }
.referral-history-surface .surface-heading { background:#faf7ff; }
.referral-history-surface .surface-heading h3 { color:#5d4785; }
.agency-settle-summary { background:#e9f8f4; border-color:#c6e5dc; color:#37675e; }
.agency-settle-summary strong { color:#087b67; }
.agency-record { border-color:#e3edef; }
.agency-record strong { color:#24494d; }
.agency-record p,.agency-history-columns h4 { color:#60777d; }
.agency-record>b { color:#2563a6; font-variant-numeric:tabular-nums; }
.agency-record.refund-record>b { color:#087b67; }
.agency-history .history-actions { display:flex; align-items:center; gap:10px; min-width:0; }
.batch-overview-row span,.batch-overview-row small { color:#60777d; }
.batch-overview-row strong { color:#24494d; }
img.brand-mark { border-radius:11px; box-shadow:0 3px 8px #0d8b7820; }
@media(max-width:750px) {
  .batch-export-actions .button,.failed-sku-controls .button { min-height:43px; }
  .agency-history .history-actions { width:100%; }
  .agency-history .history-actions select { flex:1; width:0; min-width:0; }
  .agency-history .history-actions .button { min-height:40px; }
}
.batch-correction-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px;border:1px solid #c5ded8;border-radius:12px;background:#f3faf7;margin:12px 0 20px}.batch-correction-tools[hidden],.batch-correction-preview[hidden]{display:none}.batch-correction-tools>small{flex:1;min-width:180px;color:#416c63;line-height:1.7}.batch-history-download{display:flex;flex-wrap:wrap;gap:10px;align-items:center;width:100%;padding-top:12px;border-top:1px solid #d9e8e2}.batch-history-download select{flex:1;min-width:180px;max-width:520px;margin:0}.batch-correction-preview{margin:0 26px 26px;padding:24px;background:#f3faf7;border:1px solid #aad3c3;border-radius:14px;color:#254b42}.batch-correction-preview h4{margin:0 0 12px;font-size:18px}.batch-correction-preview p{line-height:1.8;overflow-wrap:anywhere}.batch-correction-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.batch-correction-amounts>div{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #d6e6df;border-radius:10px;padding:18px}.batch-correction-amounts span{font-size:12px;color:#54766c}.batch-correction-amounts strong{font-size:24px;color:#13745c}.batch-export-actions{flex-wrap:wrap}.batch-correction-preview .modal-actions{margin-top:18px}@media(max-width:650px){.batch-correction-preview{margin:0 16px 16px;padding:16px}.batch-correction-amounts{grid-template-columns:1fr}.batch-correction-amounts>div{flex-direction:row;justify-content:space-between;align-items:center}.batch-correction-tools .button,.batch-history-download select{width:100%;max-width:none}.batch-correction-preview .modal-actions{flex-wrap:wrap}.batch-correction-preview .modal-actions .button{flex:1;min-width:160px}}

/* Independent instant-card permission within ordinary agent administration. */
.agency-instant-settings{margin:20px 0 0;padding:12px 16px 16px;border:1px solid #d5e8e3;border-radius:10px;background:#f5fbf9;min-width:0}.agency-instant-settings legend{padding:0 5px;font-size:12px;font-weight:800;color:#176d61}.modal .agency-instant-toggle{display:flex;align-items:center;gap:10px;margin-top:5px;cursor:pointer}.modal .agency-instant-toggle input{width:18px;min-height:18px;height:18px;margin:0;accent-color:#087e78;flex:none}.agency-instant-settings .field-hint{line-height:1.7}.agency-instant-cell{background:#f7fcfa}.agency-instant-link{font-size:12px;line-height:1.8;color:#637c78;margin:16px 2px}.agency-instant-link a{color:#087e78;font-weight:700}
