/* Precise work surfaces: light on the tools, stable ink on records and evidence. */
:root[data-theme="light"] .hx-management-main .hx-management-table thead th{color:var(--ny-muted)}
.hx-workspace-view {
  box-shadow: inset 0 1px var(--ny-window-rim), 0 18px 44px var(--ny-window-shadow);
}
html[data-theme="light"] body[data-management-active]>.site-ambient::after {
  content: ""; display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 8% 0, #fffef6a6, transparent 80%);
}
.hx-management-tabs,.hx-system-tabs,.owner-view-nav { position: relative; isolation: isolate; }
.hx-management-tabs a,.hx-system-tabs>a,.owner-view-nav>a { transition: color 160ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.hx-management-tabs a:focus-visible,.hx-system-tabs>a:focus-visible,.owner-view-nav>a:focus-visible { outline: 2px solid var(--ny-focus); outline-offset: -3px; }
.hx-management-tabs a[aria-current],.hx-system-tabs>a[aria-current] { box-shadow: none; }
.hx-task>span[aria-hidden],.hx-system-task-rows>a>span,.owner-row-action>span { transition: transform 220ms cubic-bezier(.22,.8,.24,1); }
@media (hover:hover) and (pointer:fine) {
  .hx-task:hover>span[aria-hidden],.hx-system-task-rows>a:hover>span,.owner-row-action:hover>span { transform: translateX(3px); }
}
.hx-task:focus-visible>span[aria-hidden],.hx-system-task-rows>a:focus-visible>span,.owner-row-action:focus-visible>span { transform: translateX(3px); }

/* The queue and all of its lookup fields stay visible at every width. */
#review-workspace .rwx-filter { display: grid; grid-template-columns: minmax(180px,2fr) repeat(3,minmax(120px,1fr)) auto; align-items: end; gap: 14px; padding: 18px 0; border: 0; border-top: 1px solid var(--rwx-line); border-bottom: 1px solid var(--rwx-line); border-radius: 0; background: transparent; }
#review-workspace :is(.rwx-filter-main,.rwx-filter-more,.rwx-filter-options) { display: contents; }
#review-workspace .rwx-filter label { font-size: 13px; color: var(--rwx-text); }
#review-workspace .rwx-filter label:has(input[type="search"]) { grid-column: auto; }
#review-workspace .rwx-filter>button { min-height: 44px; padding-inline: 18px; font-size: 14px; }
#review-workspace .rwx-filter :is(input,select,.ny-select-trigger) { min-height: 44px; font-size: 15px; }
#review-workspace .rwx-queue-heading { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--rwx-line); font-size: 15px; font-weight: 650; }
#review-workspace .rwx-row:focus-visible { outline-offset: -3px; }

/* The selected default scene must preview the artwork the home route uses. */
.hx-system .hx-system-background>.hx-system-background-preview { display: block; padding: 0; }
.hx-system-background-preview .hx-system-background-day { display: none; }
html[data-theme="light"] .hx-system-background-preview .hx-system-background-day { display: block; }
html[data-theme="light"] .hx-system-background-preview .hx-system-background-night { display: none; }
.hx-system-background img { transition: filter 180ms ease; }
.hx-system-background:has(:checked) { box-shadow: 0 0 0 1px var(--ny-focus), inset 0 1px var(--ny-window-rim); }

@media (max-width:800px) {
  #review-workspace .rwx-head { margin-top: 6px; margin-bottom: 14px; }
  #review-workspace .rwx-related-links { margin-bottom: 10px; gap: 0 15px; }
  #review-workspace .rwx-filter { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px 0; }
  #review-workspace .rwx-filter-main>.rwx-filter-query { grid-column: 1/-1; }
  #review-workspace .rwx-filter>button { grid-column: 1/-1; width: 100%; }
  #review-workspace .rwx-filter :is(input,select,.ny-select-trigger) { font-size: 16px; }
}
@media (min-width:801px) and (max-width:1100px) {
  #review-workspace .rwx-filter { grid-template-columns: repeat(3,minmax(0,1fr)) auto; }
  #review-workspace .rwx-filter-main>.rwx-filter-query { grid-column: 1/-1; }
}
@media (max-width:560px) {
  .hx-system .hx-system-backgrounds { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .hx-system .hx-system-background { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: stretch; }
  .hx-system .hx-system-background>span:not(.hx-system-background-preview) { padding: 12px; }
  .hx-system .hx-system-background img { height: 100%; min-height: 100px; aspect-ratio: auto; object-fit: cover; }
  .hx-system .hx-system-background>span>span { display: block; font-size: 13px; }
  .hx-system .hx-system-background>.hx-system-background-preview { height: 100%; }
  .hx-system .hx-system-background input { width: 18px; height: 18px; left: 7px; top: 7px; }
  .hx-system .hx-system-background strong { font-size: 13px; }
  .hx-system .hx-system-background small { display: block; margin: 3px 0 0; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .hx-management-tabs a,.hx-system-tabs>a,.owner-view-nav>a,.hx-task>span[aria-hidden],.hx-system-task-rows>a>span,.owner-row-action>span,.hx-system-background img,#review-workspace .rwx-filter-more>summary>svg { transition: none; transform: none!important; }
}
@media (prefers-contrast:more), (forced-colors:active) {
  .hx-workspace-view { box-shadow: none; }
  .hx-management-tabs a[aria-current],.hx-system-tabs>a[aria-current] { box-shadow: none; }
}
@media print { .hx-system-background-preview img { display: none; } }
