/* ==========================================================================
   CREATOR CODES IN THE OFFICE (creator-launch, 6 Nov 2026) — admin/js/office-creators.mjs.

   The card under Referrals: one block per creator (code and name, the link,
   the discount, three figures, the moves), then the QR code, the discount's
   form or the stats link when asked. The Office's own card, buttons and
   tones; monochrome (rules 7 and 18), the state a word. Focus is the Office's
   lit edge (office.css), and on the new fields here too.
   ========================================================================== */
#office .ofc-cr-list { display: grid; gap: 16px; margin-top: 12px; }
#office .ofc-cr-row { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--o-line, var(--tk-white-a100)); border-radius: var(--o-r-md, var(--tk-r-lg)); background: var(--o-raised, transparent); min-width: 0; }
#office .ofc-cr-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#office .ofc-cr-row__name { min-width: 0; }
#office .ofc-cr-row__code { margin: 0; font: 600 1.05rem/1.3 var(--o-mono, ui-monospace, monospace); letter-spacing: .04em; color: var(--o-ink, var(--tk-white)); }
#office .ofc-cr-row__label { margin: 2px 0 0; font-size: var(--o-t-sm, 0.8125rem); color: var(--o-dim); }
#office .ofc-cr-state { flex: none; padding: 2px 12px; border: 1px solid var(--o-line-3); border-radius: var(--tk-r-pill); font-size: var(--o-t-xs, 0.75rem); color: var(--o-dim); }
#office .ofc-cr-state--on { color: var(--o-ink, var(--tk-white)); }
#office .ofc-cr-row__link { margin: 0; font: 500 0.9rem/1.4 var(--o-mono, ui-monospace, monospace); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
#office .ofc-cr-row__disc { margin: 0; font-size: var(--o-t-sm, 0.8125rem); color: var(--o-dim); }
#office .ofc-cr-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
#office .ofc-cr-num { min-width: 0; }
#office .ofc-cr-num dt { font-size: var(--o-t-xs, 0.75rem); color: var(--o-faint, var(--tk-grey-8e)); }
#office .ofc-cr-num dd { margin: 2px 0 0; font: 600 1.25rem/1.2 var(--o-body, inherit); font-variant-numeric: tabular-nums; color: var(--o-ink, var(--tk-white)); }
#office .ofc-cr-row__acts, #office .ofc-cr-new { display: flex; flex-wrap: wrap; gap: 8px; }
#office .ofc-cr-row__acts .ofc-quiet, #office .ofc-cr-new .ofc-quiet, #office .ofc-cr-form .ofc-quiet, #office .ofc-cr-stats .ofc-quiet, #office .qr-box .ofc-quiet { min-height: 44px; }
#office .ofc-cr-row__said { margin: 0; font-size: var(--o-t-sm, 0.8125rem); color: var(--o-dim); }
#office .ofc-cr-row__said:empty, #office .ofc-cr-row__more:empty { display: none; }
#office .ofc-cr-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px 16px; align-items: end; margin-top: 8px; }
#office .ofc-cr-f { display: grid; gap: 4px; min-width: 0; }
#office .ofc-cr-f__k { font-size: var(--o-t-xs, 0.75rem); color: var(--o-dim); }
#office .ofc-cr-f input { min-height: 44px; padding: 0 12px; font: inherit; font-size: 1rem; color: inherit; background: transparent; border: 1px solid var(--o-line-3); border-radius: var(--o-r-sm, var(--tk-r-md)); box-sizing: border-box; width: 100%; }
#office .ofc-cr-f input:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 1px; }
#office .ofc-cr-form__acts { display: flex; flex-wrap: wrap; gap: 8px; }
#office .ofc-cr-stats { display: grid; gap: 8px; }
@media (max-width: 640px) {
  #office .ofc-cr-nums dd { font-size: 1.1rem; }
  #office .ofc-cr-row__acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* 13 Nov: no make form here; a creator is turned on from the account's record. */
#office .ofc-cr-hint { margin: 0; font-size: var(--o-t-sm, 0.8125rem); color: var(--o-dim, #B5B5B5); }
