/* ==========================================================================
   PARTNERS (2026-10-23) — admin/partners.html, refer to earn's Office page.

   The Office's own cards, stats, tables, state words and buttons (office.css)
   carry the page; this adds only what the partner program has that nothing
   else does: a partner opened to their rate and links, the rate editor with
   its worked example, a payout run, a flag's decision, and the settings.
   Its own prefix (pt-), so it cannot meet another pass's class
   (tools/css-collide-check.mjs).

   Colour only for state (rule 7): the Office's ok, attention and bad inks, on
   the words that are a state.
   ========================================================================== */

#office .pt-boot { margin: 0 0 1.25rem; color: var(--o-dim); font-size: var(--o-t-md); font-weight: 550; line-height: 1.5; }
#office .pt-boot .ofc-ghost { margin-left: 0.5rem; }
#office .pt-views { margin: 0 0 1.5rem; }
#office .pt-views .ofc-addr__b { text-decoration: none; }
#office .pt-view[hidden] { display: none; }
#office .pt-off { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border: 1px solid var(--o-line-2); border-left: 2px solid var(--o-warn);
  border-radius: var(--o-r-sm, var(--tk-r-sm)); color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.5; max-width: 60rem; }
#office .pt-stats { margin: 0 0 1.5rem; }
#office .pt-stats .ofc-stat { max-width: 16rem; }
#office .pt-grid { align-items: start; }
#office .pt-none { margin: 0; color: var(--o-faint); font-size: var(--o-t-sm); line-height: 1.5; }
#office .pt-said { margin: 0.5rem 0 0; font-size: var(--o-t-sm); line-height: 1.45; color: var(--o-dim); min-height: 0; }
#office .pt-said:empty { display: none; }
#office .pt-said[data-tone="bad"] { color: var(--o-bad); }
#office .pt-said[data-tone="ok"] { color: var(--o-ok); }
#office .pt-note { margin: 0.5rem 0 0.75rem; font-size: var(--o-t-sm); color: var(--o-faint); line-height: 1.45; max-width: 44rem; }
#office .pt-warn { margin: 0 0 0.5rem; flex-basis: 100%; font-size: var(--o-t-sm); color: var(--o-warn); line-height: 1.45; }
#office .pt-h3 { margin: 1.25rem 0 0.5rem; font: 650 var(--o-t-sm)/1.3 var(--display); color: var(--o-text); letter-spacing: 0.005em; }
#office .pt-h4 { margin: 0 0 0.5rem; font-size: var(--o-t-sm); font-weight: 600; color: var(--o-dim); }

/* ── a partner, closed to one line, opened to everything ────────────────── */
#office .pt-list { list-style: none; margin: 0; padding: 0; display: grid; }
#office .pt-p { border-top: 1px solid var(--o-line); min-width: 0; }
#office .pt-p:first-child { border-top: 0; }
#office .pt-p__s { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(11rem, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.3fr); gap: 0.25rem 1rem; align-items: center;
  min-height: 44px; padding: 0.75rem 0; cursor: pointer; list-style: none; }
#office .pt-p__s::-webkit-details-marker { display: none; }
#office .pt-p__s:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: -1px; border-radius: var(--tk-r-xs); background: var(--o-hover); }
#office .pt-p__who { display: grid; gap: 0.125rem; min-width: 0; }
#office .pt-p__name { font: 650 var(--o-t-md)/1.3 var(--display); color: var(--o-text); overflow-wrap: anywhere; }
#office .pt-p__name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0.5rem 0.125rem 0; border-right: 1.5px solid var(--o-faint);
  border-bottom: 1.5px solid var(--o-faint); transform: rotate(-45deg); transition: transform var(--tk-dur-fast) ease; }
#office .pt-p__d[open] .pt-p__name::before { transform: rotate(45deg); }
#office .pt-p__kind { font-size: var(--o-t-label); color: var(--o-faint); }
#office .pt-p__rate, #office .pt-p__nums { font-size: var(--o-t-sm); color: var(--o-dim); line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
#office .pt-p__nums { color: var(--o-text); font-variant-numeric: tabular-nums; }
#office .pt-p__b { padding: 0 0 1.25rem; min-width: 0; }
@media (max-width: 860px) {
  #office .pt-p__s { grid-template-columns: minmax(0, 1fr) auto; }
  #office .pt-p__rate, #office .pt-p__nums { grid-column: 1 / -1; }
}

#office .pt-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem 1rem; margin: 0 0 0.5rem; }
#office .pt-fact { min-width: 0; }
#office .pt-facts dt { font-size: var(--o-t-label); color: var(--o-faint); }
#office .pt-facts dd { margin: 0.125rem 0 0; font-size: var(--o-t-sm); color: var(--o-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

#office .pt-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
#office .pt-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: var(--o-t-sm); min-width: 0; }
#office .pt-link__code { font: 500 var(--o-t-sm)/1.4 var(--mono, ui-monospace, monospace); color: var(--o-text); overflow-wrap: anywhere; }
#office .pt-link__rate, #office .pt-link__n, #office .pt-link__label { color: var(--o-dim); }
#office .pt-link__x { margin-left: auto; }

#office .pt-earned { display: grid; gap: 0.25rem; }
#office .pt-earned__l { margin: 0; font-size: var(--o-t-sm); line-height: 1.45; color: var(--o-text); overflow-wrap: anywhere; }
#office .pt-earned__st { color: var(--o-dim); }
#office .pt-void { min-height: 28px; padding: 0 0.5rem; font-size: var(--o-t-label); }
#office .pt-table td { vertical-align: top; }

/* ── forms and the rate editor ─────────────────────────────────────────── */
#office .pt-form { display: grid; gap: 0.75rem; min-width: 0; }
#office .pt-form > button { justify-self: start; }
#office .pt-form--wide { max-width: 56rem; }
#office .pt-field { display: grid; gap: 0.25rem; min-width: 0; }
#office .pt-field[hidden] { display: none; }
#office .pt-field__l { font-size: var(--o-t-label); font-weight: 600; color: var(--o-dim); }
#office .pt-field__h { font-size: var(--o-t-label); color: var(--o-faint); line-height: 1.4; }
#office .pt-field__row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
#office .pt-field__row .ofc-input { min-width: 0; flex: 1 1 auto; }
#office .pt-field__fix { font-size: var(--o-t-sm); color: var(--o-faint); white-space: nowrap; }
#office .pt-field--wide .ofc-input { width: 100%; box-sizing: border-box; }
#office .pt-check, #office .pt-switch { display: flex; align-items: flex-start; gap: 0.5rem; min-height: 32px; font-size: var(--o-t-sm); color: var(--o-text); line-height: 1.45; cursor: pointer; }
#office .pt-check input, #office .pt-switch input { margin: 0.25rem 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--o-text); }
#office .pt-switch { font-weight: 600; font-size: var(--o-t-md); }

#office .pt-rate { margin: 0; padding: 0.75rem 1rem 1rem; border: 1px solid var(--o-line-2); border-radius: var(--o-r-sm, var(--tk-r-sm)); display: grid; gap: 0.75rem; min-width: 0; }
#office .pt-rate__lg { padding: 0 0.25rem; font-size: var(--o-t-label); font-weight: 600; color: var(--o-dim); }
#office .pt-kinds { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
#office .pt-kinds[hidden] { display: none; }
#office .pt-kind { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 32px; font-size: var(--o-t-sm); color: var(--o-text); cursor: pointer; }
#office .pt-kind input { accent-color: var(--o-text); }
#office .pt-rate__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem 1rem; }
#office .pt-rate__said { margin: 0; font-size: var(--o-t-sm); color: var(--o-text); line-height: 1.45; }
#office .pt-rate__said[data-tone="bad"] { color: var(--o-bad); }
#office .pt-ex { padding: 0.75rem; border-radius: var(--o-r-sm, var(--tk-r-sm)); background: var(--o-sunk, var(--tk-grey-0b)); display: grid; gap: 0.5rem; }
#office .pt-ex[hidden] { display: none; }
#office .pt-ex__h { margin: 0; font-size: var(--o-t-label); font-weight: 600; color: var(--o-faint); }
#office .pt-ex__bases { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: var(--o-t-sm); color: var(--o-dim); }
#office .pt-ex__in { width: 6.5rem; }
#office .pt-ex__out { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
#office .pt-ex__out li { font-size: var(--o-t-sm); color: var(--o-text); font-variant-numeric: tabular-nums; }

#office .pt-addlink { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--o-line); }
#office .pt-addlink__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
#office .pt-addlink__row .ofc-input { flex: 1 1 10rem; min-width: 0; }
#office .pt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.75rem 0 0; }
#office .pt-end { margin-left: auto; }

/* ── a payout run ──────────────────────────────────────────────────────── */
#office .pt-run { padding: 1rem 0; border-top: 1px solid var(--o-line); min-width: 0; }
#office .pt-run:first-child { border-top: 0; padding-top: 0.25rem; }
#office .pt-run__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.75rem; }
#office .pt-run__h { margin: 0; font: 650 var(--o-t-md)/1.3 var(--display); color: var(--o-text); font-variant-numeric: tabular-nums; }
#office .pt-run__auto { font-size: var(--o-t-label); color: var(--o-faint); }
#office .pt-ref { font-size: var(--o-t-sm); color: var(--o-dim); }
#office .pt-mark { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
#office .pt-mark .ofc-input { flex: 1 1 10rem; min-width: 0; }

/* ── a flag ────────────────────────────────────────────────────────────── */
#office .pt-flag__k { margin: 0; font-size: var(--o-t-sm); color: var(--o-text); line-height: 1.45; }
#office .pt-flag__d { margin: 0.125rem 0 0; font-size: var(--o-t-sm); color: var(--o-dim); line-height: 1.45; }
#office .pt-flag__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.5rem; }
#office .pt-flag__acts .ofc-input { flex: 1 1 9rem; min-width: 0; }

@media print {
  #office .pt-addlink, #office .pt-acts, #office .pt-form .ofc-primary, #office .pt-mark, #office .pt-flag__acts .ofc-input,
  #office .pt-flag__acts button, #office .pt-ex__bases { display: none !important; }
}
