/* HR-WP-02 representative identity / sponsor-chain panel. Scoped to `.orr` (class prefix `orr-`); it only reads the
   existing host tokens (tokens.css) and never overrides a global element. Fallbacks keep it legible in light and dark. */
.orr { --orr-accent: var(--primary, #4dd9c0); --orr-warn: var(--warning, #f5b041); --orr-ok: var(--success, #3ecf8e); font-size: 15px; color: var(--text-1, inherit); padding-bottom: var(--aquis-clearance, 100px); }
:root[data-theme="light"] .orr { --orr-accent: #0f7a69; --orr-warn: var(--warning-ink, #8a5a00); --orr-ok: var(--success-ink, #1a7f52); }
.orr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2, 8px) var(--space-4, 16px); align-items: start; }
.orr-head h1 { font-size: 26px; margin: 0; grid-column: 1; }
.orr-sub { grid-column: 1; margin: 0; color: var(--text-2, inherit); max-width: 70ch; line-height: 1.6; }
.orr-tools { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: var(--space-2, 8px); }
.orr button, .orr input, .orr select, .orr textarea { min-height: var(--hit, 44px); font: inherit; }
.orr-select { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); align-items: end; margin-top: var(--space-4, 16px); }
.orr-select .orr-field { flex: 1 1 260px; margin: 0; }
.orr-field { display: grid; gap: var(--space-1, 4px); margin-block: var(--space-3, 12px); max-width: 520px; }
.orr-field input, .orr-field select, .orr-field textarea { background: var(--surface-2, transparent); color: var(--text-1, inherit); border: 1px solid var(--hairline-strong, currentColor); border-radius: var(--radius-8, 8px); padding: 0 var(--space-3, 12px); }
.orr-field textarea { padding: var(--space-2, 8px) var(--space-3, 12px); }
.orr-field input:disabled, .orr-field textarea:disabled { opacity: .6; }
[data-orr-status] { min-height: 1.5em; color: var(--text-2, inherit); margin: var(--space-3, 12px) 0 0; }
.orr-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: var(--space-6, 24px); margin-top: var(--space-4, 16px); }
[data-orr-list], [data-orr-detail] { min-width: 0; overflow-wrap: anywhere; }
[data-orr-list] h2 { font-size: 15px; color: var(--text-2, inherit); font-weight: 600; margin: 0 0 var(--space-2, 8px); }
[data-orr-list] ol { padding-inline-start: 1.4em; line-height: 1.7; }
[data-orr-list] li[data-inactive] { color: var(--text-2, inherit); }
[data-orr-detail] { background: var(--surface-1, transparent); border: 1px solid var(--hairline, currentColor); border-radius: var(--radius-12, 12px); padding: var(--space-5, 20px); }
[data-orr-detail] h2 { font-size: 20px; margin: var(--space-3, 12px) 0 var(--space-1, 4px); }
[data-orr-detail] h3 { font-size: 15px; margin: var(--space-5, 20px) 0 var(--space-2, 8px); color: var(--text-2, inherit); }
[data-orr-detail] h4 { font-size: 14px; margin: var(--space-3, 12px) 0 var(--space-1, 4px); color: var(--text-2, inherit); }
[data-orr-detail] p { line-height: 1.6; max-width: 72ch; }
[data-orr-identity-status] { display: inline-block; padding: var(--space-1, 4px) var(--space-3, 12px); border-radius: var(--radius-8, 8px); background: var(--surface-3, transparent); border-left: 3px solid var(--text-2, currentColor); }
[data-orr-identity-status][data-status="existing_binding"] { border-left-color: var(--orr-ok); }
[data-orr-identity-status][data-status="reconciliation_required"] { border-left-color: var(--orr-warn); }
.orr-warn, [data-orr-conflict], [data-orr-unverified] { color: var(--orr-warn); }
.orr-note { color: var(--text-2, inherit); font-size: var(--text-min, 13px); margin: var(--space-2, 8px) 0; }
.orr-draft { margin-top: var(--space-5, 20px); padding-top: var(--space-3, 12px); border-top: 1px solid var(--hairline, currentColor); }
.orr-unsaved { display: inline-block; padding: var(--space-2, 8px) var(--space-3, 12px); border-radius: var(--radius-8, 8px); background: var(--surface-3, transparent); border-left: 3px solid var(--orr-accent); font-weight: 600; }
.orr button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.orr button:focus-visible, .orr input:focus-visible, .orr select:focus-visible, .orr textarea:focus-visible, [data-orr-detail]:focus-visible { outline: 2px solid var(--orr-accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .orr { font-size: var(--text-min-mobile, 15px); }
  .orr button, .orr input, .orr select { min-height: var(--hit-mobile, 48px); }
  .orr-head { grid-template-columns: minmax(0, 1fr); }
  .orr-tools { grid-column: 1; grid-row: auto; }
  .orr-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4, 16px); }
  [data-orr-detail] { padding: var(--space-3, 12px); }
}
/* Office also places this panel in a narrow column: the columns wrap by the panel's own width, never the
   window's, so a squeezed column never wraps one letter per line. */
.orr-layout { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
