.ref-page { padding: 16px; font-size: 15px; line-height: 1.7; }
.ref-page h2 { margin-top: 0; }
.ref-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ref-page h3 { margin: 10px 0; }
.ref-page input,.ref-page select,.ref-page button { font: inherit; }
.ref-page input:not([type=checkbox]),.ref-page select { padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--bg-3); max-width: 100%; box-sizing: border-box; }
.ref-page button:disabled { opacity: .5; cursor: not-allowed; }
.ref-card { border: 1px solid var(--line); background: var(--bg-2); padding: 16px; border-radius: 12px; margin: 12px 0; }
.ref-card label { display: block; margin: 8px 0; }
.ref-card label input { display: block; width: 100%; }
.ref-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.ref-stats > div { border: 1px solid var(--line); padding: 12px; border-radius: 12px; }
.ref-stats strong { display: block; font-size: 24px; color: var(--accent); }
.ref-rewards { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 12px; }
.ref-warning { color: var(--warn,#ffb454); overflow-wrap: anywhere; }
.ref-verify { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-table-wrap { overflow-x: auto; margin: 12px 0; }
.ref-page table.ref-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 14px; }
.ref-page .ref-table th,.ref-page .ref-table td,
:is(#bossView,#adminView) .ref-page .ref-table-wrap table.ref-table.admin-table :is(th,td) {
  min-width: 0 !important; padding: 8px 6px !important; box-sizing: border-box;
  white-space: normal !important; word-break: normal; overflow-wrap: anywhere;
}
.ref-page .ref-table input:not([type=checkbox]),.ref-page .ref-table select {
  width: 100%; min-width: 0; max-width: 100%; padding: 8px 4px;
}
.ref-page .ref-table :is(button,a.ghost-btn) {
  min-width: 0; max-width: 100%; box-sizing: border-box; padding: 6px 4px;
  white-space: normal; overflow-wrap: anywhere; word-break: normal;
}
.ref-page a.ghost-btn { display: inline-block; text-decoration: none; margin: 4px 0; }
@media(max-width:680px) { .ref-page { padding: 10px; } .ref-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
