/* Management type is a working instrument. Keep every module's geometry,
   status colours, charts, source evidence and motion; only resolve UI type. */
body:has(.hx-management-nav) :is(div, main):has(>.hx-management-nav),
:root body:has(.hx-management-nav) :is(.hx-management-main, .hx-management-module,
  .owner-workspace, .owner-dashboard, .hx-system, .rwx, .agent-control,
  .alice-plans, .mc-page, .chat-wrap) {
  font-family: var(--nylon-type-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

/* Page-level font shorthands used to reset the family and weight after the
   shared layer. Target visible controls as well as their enclosing form. */
:root body:has(.hx-management-nav) :is(.hx-management-main, .hx-management-module,
  .owner-workspace, .owner-dashboard, .hx-system, .rwx, .agent-control,
  .alice-plans, .mc-page, .chat-wrap) :is(input, select, textarea, button,
  .ny-select-trigger, .btn, .ac-button) {
  font-family: var(--nylon-type-ui);
  font-weight: 500;
}
:root body:has(.hx-management-nav) :is(.hx-management-main, .hx-management-module,
  .owner-workspace, .owner-dashboard, .hx-system, .rwx, .agent-control,
  .alice-plans, .mc-page, .chat-wrap) :is(button, .btn, .ac-button, label, legend) {
  font-weight: 600;
}
:root body:has(.hx-management-nav) :is(.hx-management-main, .hx-management-module,
  .owner-workspace, .owner-dashboard, .hx-system, .rwx, .agent-control,
  .alice-plans, .mc-page, .chat-wrap) :is(h1, h2, h3, h4) {
  font-family: var(--nylon-type-ui);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Persistent navigation and task tabs remain distinct from the records. */
:root .hx-management-nav { font-family: var(--nylon-type-ui); font-weight: 500; }
:root .hx-management-nav :is(a, summary, strong) { font-weight: 600; }
:root .hx-management-nav a[aria-current] { font-weight: 700; }
:root .hx-management-nav :is(.hx-management-nav-head>span, .hx-management-nav-group>p) {
  font-size: 13px;
  font-weight: 500;
}
:root body:has(.hx-management-nav) :is(.hx-management-tabs a, .hx-system-tabs>a,
  .owner-view-nav>a, .owner-subnav>a, .rwx-tabs a, .ac-tabs a, .ac-domains a,
  .owner-row-action, .hx-management-return, .rwx-item-nav a, .rwx-return,
  .review-handle, .hx-management-link, .ac-text-link) { font-weight: 600; }

/* Console: solid task names and values, quiet but readable context. */
:root .hx-management-main :is(.hx-task-copy strong, .hx-module-list strong) { font-weight: 650; }
:root .hx-management-main :is(.hx-task-count, .hx-data-metric strong) { font-weight: 700; }
:root .hx-management-main :is(.hx-management-updated, .hx-data-metric small) { font-size: 13px; }
:root .hx-management-main .hx-management-table table { font-weight: 500; }
:root .hx-management-main .hx-management-table thead th { font-weight: 600; color: var(--hx-muted); }
:root .hx-management-main .hx-management-table tbody th { font-weight: 500; }

/* Accounts: preserve the identity/status column structure, improve the data
   face instead of making every row or every permission a bold headline. */
:root .owner-workspace :is(.owner-account-person strong, .owner-diagnostic-summary dd) { font-weight: 650; }
:root .owner-workspace .owner-account-table tbody th { font-weight: 500; }
:root .owner-workspace .owner-account-table thead th { color: var(--hx-muted); font-weight: 600; }
:root .owner-workspace :is(small, .owner-help, .owner-clear, .owner-facts dt,
  .owner-check small, .owner-account-link time, .owner-audit time,
  .owner-diagnostic-summary dt, .owner-audit-diff>div) { font-size: 13px; font-weight: 500; }
:root .owner-workspace .owner-account-table .owner-account-state small { font-size: 13px; }
:root .owner-workspace .owner-diagnostics .steward-table :is(th, td) { font-size: 13px; }

/* Reports: captions and table labels use text ink; semantic chart lines,
   series keys and comparison states keep their existing colour contracts. */
:root .owner-dashboard :is(.owner-pulse-value, .owner-inline-stat strong,
  .owner-queues>a>strong) { font-weight: 700; }
:root .owner-dashboard :is(.owner-table, .owner-table tbody th, .owner-bar-list strong) { font-weight: 500; }
:root .owner-dashboard .owner-table thead th { color: var(--hx-muted); font-weight: 600; }
:root .owner-dashboard :is(.owner-pulse-comparison, .owner-pulse-comparison small,
  .owner-table th small, .owner-details summary, .owner-inline-stat,
  .owner-chart-controls label, .owner-chart-controls select, .owner-chart-legend,
  .owner-chart-inspector, .owner-position, .owner-pagination, .owner-footer) {
  font-size: 13px;
  font-weight: 500;
}
:root .owner-dashboard .owner-pulse-comparison small { opacity: 1; }
:root .owner-dashboard .owner-table td::before { font-size: 13px; font-weight: 600; }
:root .owner-dashboard .owner-chart-inspector output { font-weight: 600; }

/* System: the selected scene's name and saved/current annotations must stay
   readable without changing the artwork or reducing the available settings. */
:root .hx-system :is(.hx-system-tabs>a>span, .hx-system-help,
  .hx-system-background small, .hx-system-background>span>span,
  .hx-system-record-meta, .hx-system-section-heading>div>p,
  .hx-system-save>p, .hx-system-switches dd>span) { font-size: 13px; font-weight: 500; }
:root .hx-system .hx-system-background strong { font-size: 14px; font-weight: 650; }
:root .hx-system .hx-system-task-rows strong { font-weight: 650; }

/* Review: evidence remains source content; task names, decisions and record
   metadata use a stable UI face. Beat the original explicit shorthand. */
:root #review-workspace { font-family: var(--nylon-type-ui); font-size: 15px; font-weight: 500; }
:root #review-workspace :is(.rwx-filter label, .rwx-note-field label,
  .rwx-view-switch label, .rwx-preview-toolbar label) { font-weight: 600; }
:root #review-workspace :is(.rwx-filter input, .rwx-filter select,
  .rwx-decision textarea, .rwx-preview-toolbar input, .rwx-preview-toolbar select,
  .rwx-filter .ny-select-trigger) { font-family: var(--nylon-type-ui); font-weight: 500; }
:root #review-workspace :is(button, .rwx-buttons button) { font-weight: 600; }
:root #review-workspace .rwx-row strong { font-size: 15px; font-weight: 650; }
:root #review-workspace :is(.rwx-row-top, .rwx-row small, .rwx-tab-count,
  .rwx-count, .rwx-result-scope, .rwx-pages, .rwx-guidance, .rwx-guidance>span,
  .rwx-guidance>a, .rwx-head>div>p:last-child, .rwx-detail-head>p:not(.rwx-kicker),
  .rwx-filter-help, .rwx-related-links, .rwx-item-nav a, .rwx-return,
  .rwx-material-rule>span, .rwx-material-rule p, .rwx-material-rule a,
  .rwx-review-session, .rwx-note-field label>span, .rwx-decision label span,
  .rwx-decision-next, .rwx-image figcaption, .rwx-preview-toolbar,
  .rwx-preview-note, .rwx-material-check li, .rwx-material-check p,
  .rwx-audit-details, .rwx-audit-details>summary, .rwx-facts dt,
  .rwx-patrol-intro, .rwx-advanced, .rwx-view-switch>a,
  .rwx-approval-context, .rwx-approval-help, .rwx-asset-confirm>summary,
  .rwx-asset-fields>label, .rwx-note-error, .rwx-detail-actions,
  .rwx-assistant-link, .rwx-material-open, .rwx-preview-status,
  .rwx-preview-authorize, .rwx-moderation p, .rwx-moderation a,
  .rwx-queue-details>summary>span, [data-review-decision-status],
  [data-review-avatar-status]) { font-size: 13px; font-weight: 500; }
:root #review-workspace .rwx-kicker { font-size: 13px!important; font-weight: 600; }
:root #review-workspace :is(.rwx-head h1, .rwx-detail-head h2, .rwx-inspect-head h2,
  .rwx-verdict-head h2, .rwx-verdict-head h3) { font-family: var(--nylon-type-ui); font-weight: 700; }
:root #review-workspace :is(.rwx-filter button, .rwx-buttons button,
  .rwx-preview-toggle, .rwx-preview-retry, .rwx-preview-toolbar button) { font-size: 14px!important; }

/* Module-backed review lists and tables share the same legibility floor. */
:root body:has(.hx-management-nav) .hx-management-module :is(.review-filter label,
  .review-item-kind, .review-item time, .review-page-summary, .review-pagination,
  .review-inline-detail, .review-inline-detail small, .review-rail-label,
  .review-workspace .review-group b, .review-inline-detail summary) { font-size: 13px; }
:root body:has(.hx-management-nav) .hx-management-module .review-item h2 { font-weight: 650; }
:root body:has(.hx-management-nav) .hx-management-module .steward-table th { font-weight: 600; }

/* Alice management: calibrate interface copy, not sprites, streamed content,
   status semantics or model/technical code displayed in its monospace role. */
:root body:has(.hx-management-nav) :is(.agent-control, .alice-plans, .mc-page, .chat-wrap)
  :is(.ac-head-meta, .ac-kicker, .ac-tag, .ac-status, .ac-tabs span,
    .ac-stats small, .ac-facts span, .ac-object-title>.ac-note,
    .ac-budget>span, .ac-account-usage>span, .ac-channel-count>span,
    .ac-evidence, .ac-object-note, .ac-form .helptext, .ac-form .errorlist,
    .ac-form-actions span, .ac-records time, .ac-audit time,
    .ac-records li>div>span, .ac-runtime-facts dd small,
    .ac-live-models small, .ac-model-heading>span, .ac-probe .ac-note,
    .ra-section-title>span, .ra-health-caveat, .ra-list small,
    .ra-pool-kicker, .ra-pool-heading>p, .ra-pool-note,
    .ra-pool-budget-note, .ra-pool-gate small, .rd-side-note,
    .rd-event-actor, .chat-sub, .chat-time, .chat-interrupted-note) { font-size: 13px; }
:root body:has(.hx-management-nav) .agent-control :is(.ac-stats strong,
  .ac-runtime-counts strong, .ac-budget strong, .ac-account-usage strong,
  .ac-channel-count strong) { font-weight: 650; }
:root body:has(.hx-management-nav) .chat-wrap :is(.chat-bubble, textarea) { font-size: 15px; font-weight: 500; }

@media (max-width: 800px) {
  :root body:has(.hx-management-nav) :is(.hx-management-main, .hx-management-module,
    .owner-workspace, .owner-dashboard, .hx-system, .rwx, .agent-control,
    .alice-plans, .mc-page, .chat-wrap) :is(input:not([type="checkbox"]):not([type="radio"]),
    select, textarea, .ny-select-trigger) { font-size: 16px; }
  :root #review-workspace :is(.rwx-filter input, .rwx-filter select,
    .rwx-filter .ny-select-trigger, .rwx-decision textarea) { font-size: 16px; }
}
