/* Confirmed-workers editor view (SentrixConfirmedWorkersEditorView). Scoped to .cw-editor; loaded only via an exact index integration.
   Real hosts: #opsSupportSheet (detail sheet), #opsSupportWorkerModalBody (worker modal), #opsSupportReferenceRoot (support detail).
   Content rules use the two-ID host prefix so they outrank the index.html dark neutralizer
   (`… :is(#opsSupportSheet#opsSupportSheet, #opsSupportPanel#opsSupportPanel) :is(button, input, select, …)`, 2,5,2 !important)
   and the components.css #opsSupportPanel / reference-shell rules cited per block. */

/* The block sits on its host surface; outranks the white block fills at components.css:66751/67586. */
html body #opsSupportPanel .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] {
  container-type: inline-size;
  background: transparent !important;
  background-color: transparent !important;
}

/* Inner inset inside the block's own border (the reference rail block has a 1px frame and no padding from the host rules). */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] {
  padding: var(--ui-space-12) !important;
}

/* The reference modal dialog stays #fff in both themes (components.css:75288), so the editor carries its own themed surface there. */
/* Reuse the reference dialog limit as a stable viewport; the body alone scrolls when live status grows. */
/* r54b: the dialog fits its content up to the same cap and the body scrolls beyond it, so the docked live message and
   add/refresh always sit right above the pinned footer 저장 (a blocked 저장 has its reason next to it). */
html body #opsSupportPanel #opsSupportWorkerModal .soc-ops-support-worker-modal-dialog:has(.cw-editor) {
  height: auto;
  max-height: min(86vh, 860px);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* r53: while the list is locked with no rows to show, the dialog fits its content instead of leaving a tall blank body
   (a ready list emptied by 삭제 keeps the stable height). */
html body #opsSupportPanel #opsSupportWorkerModal .soc-ops-support-worker-modal-dialog:has(.cw-editor-list > [data-worker-list-empty="locked"]) {
  height: auto;
}

html[data-theme="dark"] body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) :is(.soc-ops-support-worker-modal-dialog, .soc-ops-support-worker-modal-head, .soc-ops-support-worker-modal-foot) {
  background: var(--soc-surface) !important;
  border-color: var(--soc-border) !important;
}

/* Header/footer separators use the same border token in light (the host painted a near-black 1px rule there). */
html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) :is(.soc-ops-support-worker-modal-head, .soc-ops-support-worker-modal-foot) {
  border-color: var(--soc-border) !important;
}

/* r52 (Mark 2026-10-09 decision 2): the pinned footer is the action bar — 취소 then 저장 on the right, visible on open. */
html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-foot {
  justify-content: flex-end !important;
  gap: var(--ui-space-8) !important;
}

html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-foot .ds-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 88px !important;
  min-height: var(--ui-control-h-desktop) !important;
  margin: 0 !important;
  padding: 0 var(--ui-space-16, 16px) !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-foot .worker-save-btn[hidden] {
  display: none !important;
}

/* The live message + 근무자 추가 / 다시 불러오기 stay docked at the bottom of the scrolling body, next to the footer. */
html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: var(--ui-space-8);
  margin-top: var(--ui-space-12);
  padding: var(--ui-space-8) 0;
  border-top: 1px solid var(--soc-border);
  background: var(--soc-surface);
  /* Paint over the body/editor bottom padding so no row content peeks out beneath the docked bar; the soft upward shadow is
     the scroll cue when rows continue under the dock at the dialog cap (r54b). */
  box-shadow: 0 32px 0 0 var(--soc-surface), 0 -12px 12px -10px rgba(15, 23, 42, 0.22);
}

html[data-theme="dark"] body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-dock {
  box-shadow: 0 32px 0 0 var(--soc-surface), 0 -12px 12px -10px rgba(0, 0, 0, 0.6);
}

html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-dock :is(.cw-editor-actions, .cw-editor-message) {
  margin: 0 !important;
}


html[data-theme="dark"] body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-head > h3 {
  color: var(--soc-text) !important;
}

html[data-theme="dark"] body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-edit-badge {
  background: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
}

html body #opsSupportPanel #opsSupportWorkerModalBody:has(.cw-editor) {
  min-height: 0;
  min-width: 0;
}

html body #opsSupportPanel #opsSupportWorkerModalBody .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] {
  padding: var(--ui-space-12) !important;
  border-radius: var(--ui-radius-sm);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) !important;
  background: var(--soc-surface) !important;
  background-color: var(--soc-surface) !important;
  color: var(--soc-text);
}

/* The row list follows the editor surface; outranks the reference-shell white list at components.css:75273 (1,4,2 !important). */
html body #opsSupportPanel .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .confirmed-worker-list.cw-editor-list {
  border: 1px solid var(--soc-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  padding: 0 var(--ui-space-12) !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Stacks identity and fact controls; outranks the 3/5-column #opsSupportPanel .worker-row grids (up to 1,4,2 !important at 75345). */
html body #opsSupportPanel .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .confirmed-worker-list .worker-row.cw-editor-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--ui-space-12) !important;
  align-items: start !important;
  min-height: 0 !important;
  padding: var(--ui-space-12) 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--soc-divider) !important;
  background: transparent !important;
}

/* Legacy panel label margins (8px/4px) would make every one-line row taller than its 40px controls. */
html body #opsSupportPanel .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-identity > .cw-editor-field {
  margin: 0 !important;
}

html body #opsSupportPanel .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .confirmed-worker-list .worker-row.cw-editor-row:last-child {
  border-bottom: 0 !important;
}

/* One control size and type role (40px desktop control, 14px body) for every field; outranks the legacy centered/800-weight inputs
   (components.css:73400), the 48px/16px modal inputs (75358) and the dark neutralizer. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row input:is([type="text"], [type="number"], [type="datetime-local"]),
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row select:is([data-worker-member], [data-worker-fact-state], [data-worker-own-company], [data-worker-duty]) {
  height: var(--ui-control-h-desktop) !important;
  min-height: var(--ui-control-h-desktop) !important;
  border-color: var(--soc-control-border, var(--soc-border)) !important;
  background-color: var(--soc-input-bg) !important;
  color: var(--soc-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: start !important;
}

/* Controls locked while loading/error/pending read as unavailable (inset fill, dashed border) but stay legible. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row :is(input, select):disabled {
  opacity: 1 !important;
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background-color: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
  cursor: not-allowed !important;
}

/* Locked actions keep full opacity and their own legible colours (base disabled dimming measured 2.6–3.7:1); dashed border marks them. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-secondary:is(.worker-add-btn, .worker-context-reload-btn):disabled,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn:disabled {
  opacity: 1 !important;
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  cursor: not-allowed !important;
}

/* Locked row 삭제 drops its danger-soft fill too (light kept the active pink fill, so only the dashed edge said "locked"). */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn:disabled,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-secondary:is(.worker-add-btn, .worker-context-reload-btn):disabled {
  background: var(--soc-surface-2) !important;
  background-color: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
}

/* Dark: the inset surface is close to the enabled fill, so locked controls and actions also take secondary text and a
   secondary-text dashed border (>= 3:1 edge, text stays >= 4.5:1). The doubled .ds-btn.ds-btn is deliberate: it lifts the
   action selector one class above the dark save-disabled rule below (html[data-theme="dark"] … .worker-save-btn:disabled). */
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row :is(input, select):disabled,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn:disabled,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn:is(.ds-btn-secondary, .ds-btn-ghost, .ds-btn-primary):is(.worker-add-btn, .worker-context-reload-btn, .worker-cancel-btn, .worker-save-btn):disabled {
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background: var(--soc-bg) !important;
  background-color: var(--soc-bg) !important;
  color: var(--soc-text-sub) !important;
}

/* Placeholders use secondary text (>= 4.5:1 on the input surface); the shared --soc-placeholder measured 2.6:1 in light. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row input::placeholder {
  color: var(--soc-text-sub) !important;
  opacity: 1 !important;
}

/* Read-only rows show wrapping values on an inset surface, so long Korean names stay fully visible and never look editable. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-readonly-value {
  min-height: var(--ui-control-h-desktop);
  margin: 0;
  padding: var(--ui-space-8) var(--ui-space-12);
  border: 1px dashed var(--soc-border);
  border-radius: var(--ui-radius-sm);
  background: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cw-editor .cw-editor-identity.is-readonly {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: start;
}

/* Read-only modal rows keep a narrow number column ahead of their read-only fields. */
.cw-editor .cw-editor-identity.is-readonly:has(> .worker-row-no) {
  grid-template-columns: 32px repeat(auto-fit, minmax(160px, 1fr));
}

/* Add / refresh on the left, cancel / save on the right; in a narrow rail each pair takes its own full-width line. */
.cw-editor .cw-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-space-8);
  margin-top: var(--ui-space-12);
}

.cw-editor :is(.cw-editor-actions-secondary, .cw-editor-actions-primary) {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ui-space-8);
}

.cw-editor .cw-editor-actions-primary {
  margin-left: auto;
}

/* All four actions share one 40px box; outranks the host margin-top (10px add, 4px save), the 100% save width and the
   6px/10px reference padding from the #opsSupportSheet / reference-shell button rules. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn:is(.worker-add-btn, .worker-context-reload-btn, .worker-cancel-btn, .worker-save-btn) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-height: var(--ui-control-h-desktop) !important;
  margin: 0 !important;
  max-width: 100%;
  padding: var(--ui-space-8) var(--ui-space-12) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Visible keyboard focus in both themes; dark ghost buttons otherwise lose their ring (components.css:70560, 90788).
   datetime-local also shows it while focus sits on its native date/time segments or picker button.
   final10 S5 (Mark's decision 4): the light ring is DESIGN #b64000 (as in ARLS) on every control here, not the #ff6b00 fill. */
html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) :is(.soc-ops-support-worker-modal-head, .soc-ops-support-worker-modal-foot) button:focus-visible,
html body #opsSupportPanel .cw-editor :is(button, input, select):focus-visible,
html body #opsSupportPanel .cw-editor input[type="datetime-local"]:is(:focus, :focus-within) {
  outline: 2px solid var(--ui-focus-color, #111827) !important;
  outline-offset: 2px !important;
}

/* DESIGN focus ring: dark keyboard focus is #fff (orange fills and dark surfaces). */
html[data-theme="dark"] body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) :is(.soc-ops-support-worker-modal-head, .soc-ops-support-worker-modal-foot) button:focus-visible,
html[data-theme="dark"] body #opsSupportPanel .cw-editor :is(button, input, select):focus-visible,
html[data-theme="dark"] body #opsSupportPanel .cw-editor input[type="datetime-local"]:is(:focus, :focus-within) {
  outline-color: #fff !important;
}

/* Adding a row is a secondary action; outranks the two-ID sheet/modal/reference button rules (e.g. components.css:7549, 66659, 66681). */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-secondary:is(.worker-add-btn, .worker-context-reload-btn),
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-ghost.worker-cancel-btn {
  width: auto !important;
  min-height: var(--ui-control-h-desktop) !important;
  border: 1px solid var(--soc-border) !important;
  background: var(--soc-surface) !important;
  background-color: var(--soc-surface) !important;
  color: var(--soc-text) !important;
  box-shadow: none !important;
}

/* 저장 stays the single filled action: vivid #ff6b00 with a white label in both themes (Mark 2026-10-09 decisions 3/12;
   ~2.86:1, approved exception). Covers the editor's own 저장 and the worker modal's pinned footer 저장. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-primary.worker-save-btn,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn-primary.worker-save-btn,
html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-foot .ds-btn.ds-btn-primary.worker-save-btn:not(:disabled) {
  border-color: var(--soc-primary) !important;
  background: var(--soc-primary) !important;
  background-color: var(--soc-primary) !important;
  color: var(--soc-on-primary) !important;
}

/* Row deletion uses the same danger-soft treatment in every surface and theme. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn {
  min-height: var(--ui-control-h-desktop) !important;
  border: 1px solid var(--soc-status-danger-border) !important;
  background: var(--soc-status-danger-bg) !important;
  background-color: var(--soc-status-danger-bg) !important;
  color: var(--soc-status-danger-text) !important;
  box-shadow: none !important;
}

/* Row notes (stale member, values the form cannot show) keep the danger tone in both themes. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-row-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soc-status-danger-text) !important;
  font-size: 12px;
  word-break: keep-all;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-message.tone-warning {
  border-color: var(--soc-status-warning-border) !important;
  background: var(--soc-status-warning-bg) !important;
  color: var(--soc-status-warning-text) !important;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-message.tone-error {
  border-color: var(--soc-status-danger-border) !important;
  background: var(--soc-status-danger-bg) !important;
  color: var(--soc-status-danger-text) !important;
}

.cw-editor .cw-editor-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  /* dense: the full-width stale note takes the next line and the fields after it back-fill the first line */
  grid-auto-flow: row dense;
  gap: var(--ui-space-8);
  align-items: end;
  min-width: 0;
}

/* Decision 15: modal rows are one line per person (번호 · 근무자 · 소속 · 이름 · 삭제) under one column header. */
.cw-editor :is(.cw-editor-identity:not(.is-readonly):has(> .worker-row-no), .cw-editor-list-head) {
  grid-template-columns: 32px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 80px;
}

.cw-editor .cw-editor-list-head {
  display: grid;
  gap: var(--ui-space-8);
  padding: 0 0 var(--ui-space-8);
  border-bottom: 1px solid var(--soc-border);
  color: var(--soc-text);
  font-size: 12px;
  font-weight: 600;
  word-break: keep-all;
}

.cw-editor .cw-editor-list-head > span:first-child {
  text-align: center;
}

.cw-editor .cw-editor-identity:has(> .worker-row-no) {
  align-items: center;
}

.cw-editor .cw-editor-identity:has(> .worker-row-no) > .worker-row-actions {
  justify-self: end;
}

/* The header names the columns, so per-row labels are kept for assistive tech only. */
.cw-editor .cw-editor-identity:has(> .worker-row-no):not(.is-readonly) .cw-editor-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A value wider than its control ends in an ellipsis instead of a sliced glyph (full text stays in the field/option). */
.cw-editor .cw-editor-identity :is(input[type="text"], select) {
  text-overflow: ellipsis;
}

/* Hidden fact inputs (decision 15) never take layout space. */
.cw-editor [data-worker-facts][hidden] {
  display: none !important;
}

.cw-editor .cw-editor-identity > .worker-row-no {
  align-self: end;
  min-width: 24px;
  min-height: var(--ui-control-h-desktop);
  display: grid !important;
  place-items: center;
  color: var(--soc-text-sub);
  font-weight: 700;
}

/* The stale-member note spans the row right under the member select it describes. */
.cw-editor .cw-editor-identity > .cw-editor-row-note {
  grid-column: 1 / -1;
}

.cw-editor .cw-editor-field {
  display: grid;
  gap: var(--ui-space-4);
  min-width: 0;
}

/* Primary text keeps 12px labels at >= 4.5:1 on the editor surfaces in light mode (text-sub measured 4.42:1). */
.cw-editor .cw-editor-label {
  color: var(--soc-text);
  font-size: 12px;
  font-weight: 600;
  word-break: keep-all;
}

.cw-editor .cw-editor-field :is(input, select) {
  width: 100%;
  min-width: 0;
}

.cw-editor .cw-editor-message {
  margin: 0 0 var(--ui-space-8);
  padding: var(--ui-space-8) var(--ui-space-12);
  border: 1px solid var(--soc-border);
  border-radius: var(--ui-radius-sm);
  background: var(--soc-surface-2);
  color: var(--soc-text);
  font-size: 13px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* The live message follows the action row. */
.cw-editor .cw-editor-actions + .cw-editor-message {
  margin: var(--ui-space-8) 0 0;
}

/* Top status slot: all variants share one grid cell, so the slot is as tall as its longest variant in every state and the
   list/actions below never move; only the current variant is visible. The box tint appears only while locked. */
.cw-editor .cw-editor-status-slot {
  display: grid;
  margin: 0 0 var(--ui-space-8);
  padding: var(--ui-space-8) var(--ui-space-12);
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
}

.cw-editor .cw-editor-status-slot:has(> [data-worker-editor-lock-note]) {
  border-color: var(--soc-border);
  background: var(--soc-surface-2);
}

.cw-editor .cw-editor-status-slot > .cw-editor-slot-text {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--soc-text);
  font-size: 13px;
  line-height: 1.5;
  visibility: hidden;
}

.cw-editor .cw-editor-status-slot > .cw-editor-slot-text.is-current {
  visibility: visible;
}

.cw-editor .cw-editor-status-slot > [data-worker-editor-guide] {
  color: var(--soc-text-sub);
}

.cw-editor .cw-editor-nowrap {
  white-space: nowrap;
}

.cw-editor .cw-editor-empty {
  margin: 0;
  padding: var(--ui-space-12) 0;
  color: var(--soc-text-sub);
  font-size: 13px;
}

/* Korean copy wraps between words, long unbroken tokens (ids) may still break anywhere. */
.cw-editor :is(.help, .cw-editor-message, .cw-editor-slot-text, .cw-editor-empty, .cw-editor-row-note) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Sized by the editor's own width: the detail sheet is narrow even on wide screens. */
@container (max-width: 760px) {
  .cw-editor .cw-editor-identity,
  .cw-editor .cw-editor-identity:has(> .worker-row-no) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-flow: row;
  }

  /* Narrow: rows stack, so the column header gives way to the per-field labels again. */
  .cw-editor .cw-editor-list-head {
    display: none;
  }

  .cw-editor .cw-editor-identity:has(> .worker-row-no):not(.is-readonly) .cw-editor-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  /* Narrow (side rail): 근무자 and 소속 take the full width so their values are not clipped; 이름 shares a line with 삭제. */
  .cw-editor .cw-editor-identity:not(.is-readonly),
  .cw-editor .cw-editor-identity:not(.is-readonly):has(> .worker-row-no) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-auto-flow: row dense;
    align-items: end;
  }

  /* Outranks the host's modal-table rule that forces the number visible (components.css, (1,4,2) !important). */
  html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-identity > .worker-row-no {
    display: none !important;
  }

  .cw-editor .cw-editor-identity.is-readonly:has(> .worker-row-no) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cw-editor .cw-editor-identity > .cw-editor-member,
  .cw-editor .cw-editor-identity:not(.is-readonly) > .cw-editor-member ~ .cw-editor-field:not(:last-of-type) {
    grid-column: 1 / -1;
  }

  /* Plain rows (no roster binding): 소속 takes the full width and 이름 shares a line with 삭제, so both values stay readable. */
  .cw-editor .cw-editor-identity:not(.is-readonly):has(> input[data-worker-member]) > .cw-editor-field:not(:last-of-type) {
    grid-column: 1 / -1;
  }
}

/* USER-B G (2026-11-11): a plain row (소속 · 이름 · 삭제) fits one line in the side panel (the editor is 320px at 1728); only a narrower
   editor folds it back to the two lines above. Rows bound to the roster (근무자 select) keep their stacked layout. */
@container (min-width: 272px) and (max-width: 760px) {
  .cw-editor .cw-editor-identity:not(.is-readonly):has(> input[data-worker-member]):not(:has(> .cw-editor-member)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  }

  .cw-editor .cw-editor-identity:not(.is-readonly):has(> input[data-worker-member]):not(:has(> .cw-editor-member)) > .cw-editor-field:not(:last-of-type) {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn:is(.worker-add-btn, .worker-context-reload-btn, .worker-cancel-btn, .worker-save-btn),
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn {
    height: auto !important;
    min-height: var(--ui-control-h-mobile) !important;
  }
}

@container (max-width: 420px) {
  /* Read-only rows stack; editable rows keep the 근무자 / 소속 / 이름|삭제 layout. */
  .cw-editor .cw-editor-identity.is-readonly,
  .cw-editor .cw-editor-identity.is-readonly:has(> .worker-row-no) {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw-editor :is(.cw-editor-actions-secondary, .cw-editor-actions-primary) {
    flex: 1 1 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn:is(.worker-add-btn, .worker-context-reload-btn, .worker-cancel-btn, .worker-save-btn) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

/* r53: locked actions (저장 in the editor and the modal footer, + 근무자 추가, 다시 불러오기, 삭제) read as unavailable in both themes: no fill, muted label
   (--soc-text-sub, >= 4.5:1 on the dialog surface) and the dashed edge, so they no longer match the filled enabled 취소. */
html body #opsSupportPanel #opsSupportWorkerModal:has(.cw-editor) .soc-ops-support-worker-modal-foot .ds-btn.ds-btn.ds-btn-primary.worker-save-btn:disabled,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-editor-actions .ds-btn.ds-btn.ds-btn.ds-btn:is(.ds-btn-secondary, .ds-btn-ghost, .ds-btn-primary):is(.worker-add-btn, .worker-context-reload-btn, .worker-cancel-btn, .worker-save-btn):disabled,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .worker-row.cw-editor-row .worker-row-actions .worker-row-delete-btn.worker-row-delete-btn:disabled {
  opacity: 1 !important;
  border: 1px dashed var(--soc-text-sub) !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--soc-text-sub) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ===== Decision 19 (Mark 2026-10-10): one line per person — [소속][이름 연관검색어][삭제], no labels above fields ===== */
html body #opsSupportPanel .cw-editor [data-worker-member][hidden] {
  display: none !important;
}

/* Field labels stay for assistive tech only; placeholders '소속' / '이름' name the fields on screen. */
html body #opsSupportPanel .cw-editor .cw-editor-identity:not(.is-readonly) .cw-editor-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Side rail and any narrow editor: one line, 소속 | 이름 | 삭제 (소속 gets the wider track: it is auto-filled and longer). */
html body #opsSupportPanel .cw-editor .cw-editor-identity:not(.is-readonly) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto !important;
  grid-auto-flow: row dense !important;
  align-items: center !important;
}

html body #opsSupportPanel .cw-editor .cw-editor-identity:not(.is-readonly) > :is(.cw-editor-member, .worker-row-no) {
  grid-column: auto !important;
}

html body #opsSupportPanel .cw-editor .cw-editor-identity:not(.is-readonly) > .worker-row-no {
  display: none !important;
}

/* Popup: 번호 | 소속 | 이름 | 삭제 under one header. */
html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-identity:not(.is-readonly):has(> .worker-row-no),
html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-list-head {
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.4fr) 80px !important;
}

html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-identity:not(.is-readonly) > .worker-row-no {
  display: grid !important;
}

@container (max-width: 760px) {
  html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-identity:not(.is-readonly):has(> .worker-row-no) {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto !important;
  }

  html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-identity:not(.is-readonly) > .worker-row-no,
  html body #opsSupportPanel #opsSupportWorkerModalBody .cw-editor .cw-editor-list-head {
    display: none !important;
  }
}

/* 연관검색어 list under the 이름 field: [photo] 이름 · 직책 per line. */
html body #opsSupportPanel .cw-editor .cw-editor-combobox {
  position: relative;
}

html body .cw-combo-list {
  /* Placed by confirmed-workers-member-combobox.js: moved to <body> while open and fixed under (or above) the field. */
  position: fixed;
  top: 0;
  left: 0;
  /* Above the worker dialog (drawer + 16) and its backdrop; below toasts. */
  z-index: calc(var(--ui-z-drawer, 1000) + 24);
  width: 240px;
  max-height: 240px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--soc-border);
  border-radius: var(--ui-radius-sm);
  background: var(--soc-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

html body .cw-combo-list[hidden],
html body .cw-combo-list > [hidden] {
  display: none !important;
}

html body .cw-combo-list .cw-combo-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--soc-text);
  font-size: 14px;
  cursor: pointer;
  word-break: keep-all;
}

html body .cw-combo-list .cw-combo-option:is(:hover, .is-active) {
  background: var(--soc-surface-2);
}

html body .cw-combo-list .cw-combo-option.is-active {
  outline: 2px solid var(--soc-primary);
  outline-offset: -2px;
}

html body .cw-combo-list .cw-combo-avatar {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ui-accent-weak, #fdf0e6);
  color: #b64000;
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="dark"] body .cw-combo-list .cw-combo-avatar {
  background: rgba(255, 107, 0, 0.18);
  color: #ffb27f;
}

html body .cw-combo-list .cw-combo-name {
  font-weight: 600;
}

html body .cw-combo-list .cw-combo-sub {
  min-width: 0;
  overflow: hidden;
  color: var(--soc-text-sub);
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .cw-combo-list .cw-combo-empty {
  padding: 8px;
  color: var(--soc-text-sub);
  font-size: 13px;
}

/* ===== Decision 22: '+ 새 인원으로 추가' option and the 신규 외부 인력 row ===== */
html body .cw-combo-list .cw-combo-add {
  border-top: 1px solid var(--soc-border);
  margin-top: 4px;
  padding-top: 8px;
  color: #b64000;
  font-weight: 600;
}

html[data-theme="dark"] body .cw-combo-list .cw-combo-add {
  color: #ffb27f;
}

html body #opsSupportPanel .cw-editor .cw-editor-new-name {
  position: relative;
}

/* The '신규' tag sits on the field's top edge so it never covers the typed name in the narrow rail. */
html body #opsSupportPanel .cw-editor .cw-new-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  z-index: 1;
  padding: 0 6px;
  border: 1px solid #f3c7a8;
  border-radius: 999px;
  background: var(--ui-accent-weak, #fdf0e6);
  color: #b64000;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  pointer-events: none;
}

html[data-theme="dark"] body #opsSupportPanel .cw-editor .cw-new-badge {
  border-color: rgba(255, 178, 127, 0.45);
  background: #3a2414;
  color: #ffb27f;
}

/* ===== Decision 23: 동명이인 warning and 신규 undo under a 신규 외부 인력 row ===== */
html body #opsSupportPanel .cw-editor .cw-new-row-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  margin-top: 4px;
}

/* Warning tone (not the danger red of row errors): it is a question, saving a 신규 row is still possible later. */
html body #opsSupportPanel .cw-editor .cw-dup-warning {
  font-size: 12px;
  line-height: 1.45;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--soc-status-warning-text, #b45309) !important;
  word-break: keep-all;
}

/* Each sentence wraps as one unit ('이미 … 같아요.' / '목록에서 선택할까요?'). */
html body #opsSupportPanel .cw-editor .cw-dup-text > span {
  display: inline-block;
}

html body #opsSupportPanel .cw-editor .cw-dup-warning[hidden] {
  display: none !important;
}

html body #opsSupportPanel .cw-editor .cw-new-row-note > button.cw-new-undo {
  min-height: 28px !important;
  height: auto !important;
  padding: 6px 2px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--soc-text-sub) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: underline;
  cursor: pointer;
}

html body #opsSupportPanel .cw-editor .cw-new-undo:focus-visible {
  outline: 2px solid var(--ui-focus-color, #111827);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== r59 R7 / R6-a: candidate photo (loaded with the session's authorization) and past external workers ===== */
html body .cw-combo-list .cw-combo-avatar {
  overflow: hidden;
}

html body .cw-combo-list .cw-combo-avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

html body .cw-combo-list .cw-combo-avatar.is-external {
  background: var(--soc-surface-subtle, #f2efeb);
  color: var(--soc-text-sub);
  box-shadow: inset 0 0 0 1px var(--soc-border);
}

html[data-theme="dark"] body .cw-combo-list .cw-combo-avatar.is-external {
  background: rgba(148, 163, 184, 0.16);
  color: var(--soc-text-sub);
}

html body .cw-combo-list .cw-combo-suggestion {
  border-top: 1px dashed var(--soc-border);
}

html body .cw-combo-list .cw-combo-suggestion ~ .cw-combo-suggestion {
  border-top: 0;
}

html body .cw-combo-list .cw-combo-suggestion {
  flex-wrap: wrap;
  row-gap: 0;
}

/* The 과거 지원 date sits on its own line under the name so the narrow rail never cuts the 소속. */
html body .cw-combo-list .cw-combo-tag {
  flex: 1 0 100%;
  padding-left: 32px;
  color: var(--soc-text-sub);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* ===== g01-78 8번-B: registered settlement (v5) — enrolled external person, 등록 인원 / 소속 구분 / 협력사 selects ===== */
html body #opsSupportPanel .cw-editor .cw-registered {
  display: grid;
  gap: var(--ui-space-12);
  padding: var(--ui-space-12) 0;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-registered-member {
  display: grid;
  gap: var(--ui-space-4);
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-registered-member-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
  color: var(--soc-text);
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html body #opsSupportPanel .cw-editor .cw-registered-name {
  font-weight: 700;
}

html body #opsSupportPanel .cw-editor .cw-registered-sub {
  color: var(--soc-text-sub);
}

html body #opsSupportPanel .cw-editor .cw-registered-period {
  padding: 1px 8px;
  border: 1px solid var(--soc-border);
  border-radius: 999px;
  color: var(--soc-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Three selects side by side when there is room (modal / wide sheet), stacked in the narrow rail. */
html body #opsSupportPanel .cw-editor .cw-registered-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ui-space-12);
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-registered-fields > .cw-editor-field {
  margin: 0 !important;
}

html body #opsSupportPanel .cw-editor .cw-registered-fields select {
  width: 100%;
  min-width: 0;
  height: var(--ui-control-h-desktop) !important;
  min-height: var(--ui-control-h-desktop) !important;
  padding: 0 32px 0 12px;
  border: 1px solid var(--soc-control-border, var(--soc-border)) !important;
  border-radius: var(--ui-radius-sm);
  background-color: var(--soc-input-bg) !important;
  color: var(--soc-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-overflow: ellipsis;
}

html body #opsSupportPanel .cw-editor .cw-registered-fields select:disabled {
  opacity: 1 !important;
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background-color: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
  cursor: not-allowed !important;
}

html[data-theme="dark"] body #opsSupportPanel .cw-editor .cw-registered-fields select:disabled {
  background-color: var(--soc-bg) !important;
}

html body #opsSupportPanel .cw-editor .cw-registered-fields select:focus-visible,
html body #opsSupportPanel .cw-editor .cw-registered-more:focus-visible {
  outline: 2px solid var(--ui-focus-color, #111827) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] body #opsSupportPanel .cw-editor .cw-registered-fields select:focus-visible,
html[data-theme="dark"] body #opsSupportPanel .cw-editor .cw-registered-more:focus-visible {
  outline-color: #fff !important;
}

html body #opsSupportPanel .cw-editor .cw-registered-note {
  margin: 0;
  color: var(--soc-text);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

/* final9 S4: candidate / registered-person name mismatch — the warning text tone of the 동명이인 note (saving stays allowed). */
html body #opsSupportPanel .cw-editor .cw-registered-name-warning {
  margin: 0;
  color: var(--soc-status-warning-text, #b45309) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html body #opsSupportPanel .cw-editor .cw-registered-more {
  justify-self: start;
}

html body #opsSupportPanel .cw-editor .cw-registered-pending {
  gap: var(--ui-space-4);
}

/* final8 S2: after a save settles, the editor message (or, after 동일 저장 요청 복구, the recovery status line) takes focus
   programmatically (tabindex -1, never in the Tab order); like the 작업 취소 hint (support-workspace.css:583) it shows no ring. */
html body #opsSupportPanel .cw-editor [data-worker-editor-message]:focus,
html body #opsSupportPanel #opsSupportCommandRecovery > .help:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* final10 S8: 동일 저장 요청 복구 (and the other recovery-row buttons) use the DESIGN ring too, light #b64000 / dark #fff,
   instead of the --soc-text ring of the shared state rule (components.css:39145, left as is for the other state rows). */
html body #opsSupportPanel #opsSupportCommandRecovery button:focus-visible {
  outline: 2px solid var(--ui-focus-color, #111827) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] body #opsSupportPanel #opsSupportCommandRecovery button:focus-visible {
  outline-color: #fff !important;
}

/* final10 S7: while a save is in flight its window holds focus (tabindex -1, app.js holdOpsSupportWorkersBusyFocus); like the
   작업 취소 dialog panel (support-workspace.css:558) it is not a control and shows no ring. */
html body #opsSupportPanel :is(.soc-ops-support-worker-modal-dialog, #opsSupportSheet, #opsSupportReferenceRoot)[tabindex="-1"]:focus {
  outline: none !important;
}

/* final12 (VQA B10): the 동일 저장 요청 복구 guidance breaks between words, never inside one (390 "결 / 과를"). */
html body #opsSupportPanel #opsSupportCommandRecovery > .help {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== M-auto: automatic registration (confirmed-workers.v6, 시안 A) and enrollment recovery =====
   Status badges reuse the existing status tokens (neutral = 저장 전, success = 기존 연결, info = 새로 등록, warning = 확인 필요);
   the warning panel is the existing #b45309 family; focus rings light #b64000 / dark #fff; Korean text breaks between words. */
html body #opsSupportPanel .cw-editor :is(.cw-auto, .cw-registered-pending) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html body #opsSupportPanel .cw-editor .cw-auto {
  padding: var(--ui-space-12) var(--ui-space-12, 12px);
  border: 1px solid var(--soc-border);
  border-radius: var(--ui-radius-md, 10px);
  background: var(--soc-surface);
  margin-top: var(--ui-space-8, 8px);
}

html body #opsSupportPanel .cw-editor .cw-auto.is-ambiguous {
  border-color: var(--soc-status-warning-text, #b45309);
}

html body #opsSupportPanel .cw-editor .cw-auto-ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #opsSupportPanel .cw-editor .cw-auto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-auto-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-left: auto;
}

html body #opsSupportPanel .cw-editor .cw-auto-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html body #opsSupportPanel .cw-editor .cw-auto-kv {
  color: var(--soc-text-sub);
  font-size: 12px;
}

html body #opsSupportPanel .cw-editor .cw-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 1px 9px 1px 7px;
  border: 1px solid var(--cw-auto-border);
  border-radius: 999px;
  background: var(--cw-auto-bg);
  color: var(--cw-auto-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

html body #opsSupportPanel .cw-editor .cw-auto-badge .cw-auto-ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

html body #opsSupportPanel .cw-editor .cw-auto-badge.tone-neutral {
  --cw-auto-border: var(--soc-text-sub);
  --cw-auto-bg: var(--soc-status-neutral-bg);
  --cw-auto-ink: var(--soc-status-neutral-text);
  border-style: dashed;
}

html body #opsSupportPanel .cw-editor .cw-auto-badge.tone-success {
  --cw-auto-border: var(--soc-status-success-text);
  --cw-auto-bg: var(--soc-status-success-bg);
  --cw-auto-ink: var(--soc-status-success-text);
}

html body #opsSupportPanel .cw-editor .cw-auto-badge.tone-info {
  --cw-auto-border: var(--soc-status-info-text);
  --cw-auto-bg: var(--soc-status-info-bg);
  --cw-auto-ink: var(--soc-status-info-text);
}

html body #opsSupportPanel .cw-editor .cw-auto-badge.tone-warning {
  --cw-auto-border: var(--soc-status-warning-text);
  --cw-auto-bg: var(--soc-status-warning-bg);
  --cw-auto-ink: var(--soc-status-warning-text);
}

/* 소속 구분 | 협력사 | 등록 인원 side by side when there is room, stacked in the narrow rail / 390. */
html body #opsSupportPanel .cw-editor .cw-auto-fields {
  display: grid;
  grid-template-columns: minmax(max-content, auto) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ui-space-12);
  align-items: start;
  margin-top: var(--ui-space-12);
  min-width: 0;
}

@container (max-width: 760px) {
  html body #opsSupportPanel .cw-editor .cw-auto-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html body #opsSupportPanel .cw-editor .cw-auto-fields { grid-template-columns: minmax(0, 1fr); }
  html body #opsSupportPanel .cw-editor .cw-auto-badges { margin-left: 0; width: 100%; }
  html body #opsSupportPanel .cw-editor .cw-auto-seg { display: flex; }
  html body #opsSupportPanel .cw-editor .cw-auto-option { flex: 1 1 0; justify-content: center; }
}

html body #opsSupportPanel .cw-editor .cw-auto-own {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-auto-own > legend {
  padding: 0;
  margin-bottom: 4px;
}

html body #opsSupportPanel .cw-editor .cw-auto-required {
  color: var(--soc-text-sub);
  font-weight: 500;
}

html body #opsSupportPanel .cw-editor .cw-auto-seg {
  display: inline-flex;
  border: 1px solid var(--soc-border);
  border-radius: var(--ui-radius-sm, 8px);
  background: var(--soc-surface);
}

html body #opsSupportPanel .cw-editor .cw-auto-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: var(--soc-text-sub);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

html body #opsSupportPanel .cw-editor .cw-auto-option + .cw-auto-option {
  border-left: 1px solid var(--soc-border);
}

html body #opsSupportPanel .cw-editor :is(.cw-auto-option, .cw-auto-cand) > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

html body #opsSupportPanel .cw-editor .cw-auto-option.is-on {
  background: var(--soc-surface-2);
  color: var(--soc-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--soc-text);
  border-radius: calc(var(--ui-radius-sm, 8px) - 1px);
}

html body #opsSupportPanel .cw-editor .cw-auto-option:has(input:disabled) {
  cursor: not-allowed;
}

html body #opsSupportPanel .cw-editor .cw-auto-radio {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

html body #opsSupportPanel .cw-editor :is(.cw-auto-option.is-on, .cw-auto-cand.is-picked) .cw-auto-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

html body #opsSupportPanel .cw-editor :is(.cw-auto-option:has(input:focus-visible), .cw-auto-cand:has(input:focus-visible)),
html body #opsSupportPanel .cw-editor :is(.cw-recover-open, .cw-recover-actions .ds-btn):focus-visible {
  outline: 2px solid var(--ui-focus-color, #111827) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"] body #opsSupportPanel .cw-editor :is(.cw-auto-option:has(input:focus-visible), .cw-auto-cand:has(input:focus-visible)),
html[data-theme="dark"] body #opsSupportPanel .cw-editor :is(.cw-recover-open, .cw-recover-actions .ds-btn):focus-visible {
  outline-color: #fff !important;
}

html body #opsSupportPanel .cw-editor .cw-auto-note-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-auto-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--soc-border);
  border-radius: var(--ui-radius-sm, 8px);
  background: var(--soc-surface-2);
  color: var(--soc-text);
  font-size: 13px;
  line-height: 1.5;
}

html body #opsSupportPanel .cw-editor .cw-auto-note .cw-auto-ic {
  margin-top: 2px;
}

/* 409 ambiguity: candidates inline under the row (existing warning family). */
html body #opsSupportPanel .cw-editor .cw-auto-amb {
  margin-top: var(--ui-space-12);
  padding: 12px 14px;
  border: 1px solid var(--soc-status-warning-border);
  border-radius: var(--ui-radius-sm, 8px);
  background: var(--soc-status-warning-bg);
}

html body #opsSupportPanel .cw-editor .cw-auto-amb-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  color: var(--soc-status-warning-text, #b45309);
  font-size: 14px;
  font-weight: 700;
}

html body #opsSupportPanel .cw-editor :is(.cw-auto-amb-body, .cw-auto-amb-exit) {
  margin: 0;
  color: var(--soc-text);
  font-size: 13px;
  line-height: 1.5;
}

html body #opsSupportPanel .cw-editor .cw-auto-amb-exit {
  margin-top: 10px;
}

html body #opsSupportPanel .cw-editor .cw-auto-cands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--soc-border);
  border-radius: var(--ui-radius-sm, 8px);
  background: var(--soc-surface);
  color: var(--soc-text-sub);
  cursor: pointer;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand .cw-auto-radio {
  margin-top: 3px;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand.is-picked {
  border-color: var(--soc-text);
  box-shadow: inset 0 0 0 1px var(--soc-text);
  color: var(--soc-text);
}

html body #opsSupportPanel .cw-editor .cw-auto-cand:has(input:disabled) {
  cursor: not-allowed;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand-name {
  color: var(--soc-text);
  font-size: 14px;
  font-weight: 700;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand-meta {
  color: var(--soc-text-sub);
  font-size: 12px;
}

/* Kept enrollment: '보관된 요청 복구' beside the pending person, inline confirmation below. */
html body #opsSupportPanel .cw-editor .cw-registered-pending {
  padding: 10px 12px;
  border: 1px solid var(--soc-status-warning-border);
  border-radius: var(--ui-radius-sm, 8px);
  background: var(--soc-status-warning-bg);
}

html body #opsSupportPanel .cw-editor .cw-held-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

html body #opsSupportPanel .cw-editor .cw-held-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 220px;
}

html body #opsSupportPanel .cw-editor .cw-recover-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--soc-surface) !important;
}

html body #opsSupportPanel .cw-editor .cw-recover-confirm {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--soc-text-sub);
  border-radius: var(--ui-radius-md, 10px);
  background: var(--soc-surface);
}

html body #opsSupportPanel .cw-editor .cw-recover-title {
  margin: 0 0 4px;
  color: var(--soc-text);
  font-size: 15px;
  font-weight: 700;
}

html body #opsSupportPanel .cw-editor .cw-recover-title:focus {
  outline: none;
}

html body #opsSupportPanel .cw-editor .cw-recover-body {
  margin: 0;
  color: var(--soc-text-sub);
  font-size: 13px;
  line-height: 1.5;
}

html body #opsSupportPanel .cw-editor .cw-recover-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* M-auto r2: touch targets of the 자사/협력사 choice and the candidate cards are at least 44px up to 1023px. */
@media (max-width: 1023px) {
  html body #opsSupportPanel .cw-editor .cw-auto-option { min-height: 44px; }
  html body #opsSupportPanel .cw-editor .cw-auto-cand { min-height: 44px; }
}

/* A candidate the options list does not name cannot be chosen (dashed, muted). */
html body #opsSupportPanel .cw-editor .cw-auto-cand.is-unlisted {
  border-style: dashed;
  background: var(--soc-surface-2);
  cursor: not-allowed;
}

html body #opsSupportPanel .cw-editor .cw-auto-cand.is-unlisted .cw-auto-cand-name {
  color: var(--soc-text-sub);
  font-weight: 600;
}

/* M-auto r2 (VQA A): the candidate ID tail stays with its label. */
html body #opsSupportPanel .cw-editor .cw-auto-nowrap {
  white-space: nowrap;
}

/* M-auto r2 (VQA A H4): 복구하기 is the filled action in both themes. The inline dark lock (index.html) outranks the
   components.css dark primary, so this uses the same specificity as the worker-save-btn rule above. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn.ds-btn-primary:not(:disabled),
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn.ds-btn-primary:not(:disabled),
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn.ds-btn-primary:not(:disabled):focus-visible {
  border-color: var(--soc-primary) !important;
  background: var(--soc-primary) !important;
  background-color: var(--soc-primary) !important;
  color: var(--soc-on-primary) !important;
}

html body #opsSupportPanel .cw-editor :is(.cw-auto-amb-overflow, .cw-auto-amb-notice) {
  margin: 10px 0 0;
  color: var(--soc-status-warning-text, #b45309);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* M-auto r3 (VQA B): 돌아가기 / 복구하기 match the desktop controls (36px, mockup) at 1024px and up; 44px touch targets below. */
@media (min-width: 1024px) {
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn {
    min-height: 36px !important;
  }
}

@media (max-width: 1023px) {
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn {
    min-height: 44px !important;
  }
}

/* M-auto r3: disabled recover controls (a recovery in flight) read as disabled — dashed outline, no fill — like the footer
   저장 중... state, in both themes. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn:disabled,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-open:disabled {
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--soc-text-sub) !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* M-auto r4 (VQA A): candidate meta parts each carry a "·" in a start gutter; the list is shifted into that gutter and the
   wrapper clips it, so the separator of whichever part starts a line (first or wrapped) is never visible. */
html body #opsSupportPanel .cw-editor .cw-auto-cand-meta {
  display: block;
  overflow: hidden;
}

html body #opsSupportPanel .cw-editor .cw-auto-meta-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1.1em;
}

html body #opsSupportPanel .cw-editor .cw-auto-meta-part::before {
  content: "·";
  content: "·" / "";
  display: inline-block;
  width: 1.1em;
  text-align: center;
}

/* M-auto r4 (VQA A H3): overflow and list-check-failure text use the warning tone in both themes (dark #ffd990), with the
   same host-prefixed specificity as the editor message tone rules, which the index.html dark neutralizer cannot outrank. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] :is(.cw-auto-amb-overflow, .cw-auto-amb-notice),
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand.is-label-failed .cw-auto-cand-name,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] :is(.cw-auto-amb-overflow, .cw-auto-amb-notice),
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand.is-label-failed .cw-auto-cand-name {
  color: var(--soc-status-warning-text) !important;
}

/* M-auto r4: '보관된 요청 복구' matches the desktop controls (36px) at 1024px and up; 44px touch target below. */
@media (min-width: 1024px) {
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-open {
    min-height: 36px !important;
  }
}

@media (max-width: 1023px) {
  html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-open {
    min-height: 44px !important;
  }
}

/* M-auto r5 (VQA A/B C5): candidate cards are <label>s and would inherit base.css label { word-break: break-word }; Korean
   breaks between words only (overflow-wrap: anywhere stays for long unbroken text). */
html body #opsSupportPanel .cw-editor :is(.cw-auto-cand, .cw-auto-cand-name) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* M-auto r5 (VQA B E2): in light theme the list-check-failure text on the muted unlisted card uses a darker warning ink,
   #9a4508 on #f2efeb = 5.67:1 (the shared #b45309 is 4.38:1 there). Dark keeps #ffd990 (rule above). */
html:not([data-theme="dark"]) body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand.is-label-failed .cw-auto-cand-name {
  color: #9a4508 !important;
}

/* M-auto r5 (VQA A H5): hover feedback for the 자사/협력사 options and selectable candidate cards (existing surface-2 / text
   tokens, both themes, instant). Disabled options and unlisted or locked cards get none. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-option:not(.is-on):not(:has(input:disabled)):hover,
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand:not(.is-unlisted):not(.is-picked):not(:has(input:disabled)):hover {
  background: var(--soc-surface-2) !important;
  color: var(--soc-text) !important;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand:not(.is-unlisted):not(.is-picked):not(:has(input:disabled)):hover {
  border-color: var(--soc-text-sub) !important;
}

/* M-auto r6: the neutral note shown once a named candidate is picked while others stay unchecked (not a warning). */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-amb-info {
  margin: 10px 0 0;
  color: var(--soc-text) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* M-auto r6 (VQA A H5): locked controls read as locked in both themes — the 자사/협력사 choice after a 409 and the candidate
   cards after a head change get a dashed border on the muted surface. The text stays --soc-text (still read, high contrast);
   the hover rules above already exclude disabled inputs. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-seg:has(input:disabled) {
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background: var(--soc-surface-2) !important;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-option:has(input:disabled) {
  color: var(--soc-text) !important;
  cursor: not-allowed;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-option.is-on:has(input:disabled) {
  box-shadow: inset 0 0 0 1.5px var(--soc-text-sub) !important;
  background: var(--soc-surface) !important;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand:not(.is-unlisted):has(input:disabled) {
  border-style: dashed !important;
  border-color: var(--soc-text-sub) !important;
  background: var(--soc-surface-2) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* M-auto r6 (VQA A H5): hover feedback for '보관된 요청 복구', '돌아가기' and '복구하기' in both themes (never when disabled). */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] :is(.cw-recover-open, .cw-recover-actions .ds-btn-secondary):not(:disabled):hover,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] :is(.cw-recover-open, .cw-recover-actions .ds-btn-secondary):not(:disabled):hover {
  background: var(--soc-surface-2) !important;
  background-color: var(--soc-surface-2) !important;
  border-color: var(--soc-text-sub) !important;
}

html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn.ds-btn-primary:not(:disabled):hover,
html[data-theme="dark"] body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-recover-actions .ds-btn.ds-btn-primary:not(:disabled):hover {
  background: color-mix(in srgb, var(--soc-primary) 86%, #000) !important;
  background-color: color-mix(in srgb, var(--soc-primary) 86%, #000) !important;
  border-color: color-mix(in srgb, var(--soc-primary) 86%, #000) !important;
}

/* M-auto r6 (VQA B F3/E4): locked candidate cards (changed head) share the unlisted look — muted surface, dashed border —
   and a muted radio. */
html body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] .cw-auto-cand:has(input:disabled) .cw-auto-radio {
  color: var(--soc-text-sub) !important;
  opacity: 0.7;
}

/* M-auto r7 (VQA A): rows scrolled into view or focused stay above the docked message + actions (--cw-dock-h is the dock's
   measured height, set on each modal render). */
html body #opsSupportPanel #opsSupportWorkerModalBody {
  scroll-padding-bottom: calc(var(--cw-dock-h, 0px) + 8px);
}

/* M-auto r7 (VQA A/B): light '돌아가기' hover moves toward a slightly darker tint like the other buttons (it read lighter);
   no filter or image may lighten the painted result. Dark keeps the r6 surface-2 hover. */
html:not([data-theme="dark"]) body #opsSupportPanel :is(#opsSupportSheet, #opsSupportWorkerModalBody, #opsSupportReferenceRoot) .soc-ops-support-confirmed-block.cw-editor[data-ops-worker-editor] :is(.cw-recover-open, .cw-recover-actions .ds-btn-secondary):not(:disabled):hover {
  background: color-mix(in srgb, var(--soc-surface-2) 88%, var(--soc-text)) !important;
  background-color: color-mix(in srgb, var(--soc-surface-2) 88%, var(--soc-text)) !important;
  background-image: none !important;
  filter: none !important;
}
