/* ==========================================================================
   modals.css — Dialog & form layer for DCP Delivery Manager
   Extends design-system.css / components.css. Adds no new tokens except the
   dialog elevation and the modal width scale.
   ========================================================================== */

:root {
  --modal-elevation: 0 26px 64px rgba(19, 32, 58, .24), 0 2px 8px rgba(19, 32, 58, .08);
  --modal-w-sm: 440px;
  --modal-w-md: 580px;
  --modal-w-lg: 940px;
}

/* --------------------------------------------------------------- shell -- */

dialog.modal {
  width: min(var(--modal-w-md), calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: visible;
  color: var(--ink-950);
  background: transparent;
  border: 0;
}
dialog.modal.sm { width: min(var(--modal-w-sm), calc(100vw - 32px)); }
dialog.modal.lg { width: min(var(--modal-w-lg), calc(100vw - 32px)); }

dialog.modal::backdrop {
  background: rgba(19, 32, 58, .44);
  backdrop-filter: blur(3px);
}

dialog.modal[open] { animation: modal-in 180ms cubic-bezier(.2, .8, .3, 1); }
dialog.modal[open]::backdrop { animation: backdrop-in 180ms ease; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--modal-elevation);
}

/* -------------------------------------------------------------- header -- */

.modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-head-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 10px;
}
.modal-head-icon .lucide { width: 17px; height: 17px; stroke-width: 1.9; }
.modal-head-icon.danger { color: var(--red-700); background: var(--red-50); }
.modal-head-icon.violet { color: var(--violet-700); background: var(--violet-50); }

.modal-title {
  margin: 3px 0 0;
  color: var(--ink-950);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: -.015em;
}
.modal-sub {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.45;
}
.modal-head .icon-btn { width: 32px; height: 32px; margin-top: 1px; }

/* ---------------------------------------------------------------- body -- */

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-body > * + * { margin-top: 14px; }

.modal-section { display: grid; gap: 10px; }
.modal-section + .modal-section { padding-top: 14px; border-top: 1px solid var(--border); }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #98a6c0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- footer -- */

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}
.modal-foot-info { min-width: 0; color: var(--ink-500); font-size: 11px; line-height: 1.4; }
.modal-foot-info strong { color: var(--ink-900); font-weight: 750; }
.modal-foot-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* --------------------------------------------------------------- forms -- */

.form-field { display: grid; gap: 6px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid > .span-all { grid-column: 1 / -1; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.form-label .req { color: var(--red-600); font-weight: 800; }
.form-hint { color: var(--ink-500); font-size: 10px; line-height: 1.45; }
.form-error { display: flex; align-items: center; gap: 6px; color: var(--red-700); font-size: 10px; font-weight: 650; }
.form-error .lucide { width: 12px; height: 12px; }

.field.block, .select.block { width: 100%; }
.field::placeholder { color: var(--ink-400); }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-400) 50%), linear-gradient(135deg, var(--ink-400) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 11px) 17px; background-size: 4px 4px; background-repeat: no-repeat; }
.field[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(237, 59, 79, .12); }

/* input + attached action button */
.field-group { display: flex; min-width: 0; }
.field-group .field { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.field-group .btn { height: 38px; min-height: 0; border-radius: 0 9px 9px 0; border-left: 0; box-shadow: none; }

/* checkbox / radio */
.check { display: flex; align-items: flex-start; gap: 9px; min-width: 0; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue-600); cursor: pointer; }
.check-copy { min-width: 0; color: var(--ink-700); font-size: 11px; line-height: 1.4; font-weight: 650; }
.check-copy small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 10px; font-weight: 500; }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 34px; height: 20px; flex: 0 0 auto; background: var(--ink-300); border-radius: 99px; transition: background var(--transition); }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-xs); transition: transform var(--transition); }
.switch input:checked + .switch-track { background: var(--blue-600); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(40, 100, 232, .22); outline-offset: 2px; }
.switch-copy { color: var(--ink-700); font-size: 11px; font-weight: 680; }

/* segmented control */
.segmented { display: inline-flex; padding: 3px; background: var(--ink-100); border-radius: 10px; }
.segmented button {
  min-height: 30px;
  padding: 0 12px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 680;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}
.segmented button[aria-pressed="true"] { color: var(--blue-700); background: #fff; box-shadow: var(--shadow-xs); }

/* token / multi-select field */
.token-field {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
}
.token-field:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.token-field input { flex: 1; min-width: 70px; height: 22px; color: var(--ink-900); background: transparent; border: 0; outline: 0; font-size: 11px; }
.token-field input::placeholder { color: var(--ink-400); }
.token { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 8px; color: var(--ink-700); background: var(--ink-100); border-radius: 6px; font-size: 10px; font-weight: 650; }
.token.exclude { color: var(--red-700); background: var(--red-50); }
.token button { display: grid; place-items: center; width: 15px; height: 15px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 4px; opacity: .6; }
.token button:hover { opacity: 1; background: rgba(19, 32, 58, .08); }
.token .lucide { width: 11px; height: 11px; stroke-width: 2.4; }

/* dropzone */
.dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 26px 18px;
  text-align: center;
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragging, .dropzone:focus-within { background: var(--blue-50); border-color: var(--blue-500); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .empty-icon { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; }
.dropzone .empty-icon .lucide { width: 20px; height: 20px; stroke-width: 1.8; }
.dropzone-title { color: var(--ink-900); font-size: 12px; font-weight: 720; }
.dropzone-title u { color: var(--blue-700); text-underline-offset: 2px; }
.dropzone-meta { color: var(--ink-500); font-size: 10px; line-height: 1.5; }

/* selected-file summary */
.file-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-md); }

/* selection bar */
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 12px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 650;
}
.selection-bar .count { color: var(--ink-950); font-size: 12px; font-weight: 780; }
.selection-bar .link { color: var(--blue-700); background: none; border: 0; padding: 0; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* table inside a dialog */
.modal-table { max-height: 232px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.modal-table .data-table { min-width: 520px; }
.modal-table .data-table th { background: var(--surface-muted); }
.modal-table .data-table td { height: 42px; font-size: 11px; }
.modal-table .data-table td:first-child, .modal-table .data-table th:first-child { width: 38px; padding-left: 12px; }
.modal-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue-600); cursor: pointer; }

.notice.danger { color: var(--red-700); background: var(--red-50); border-color: var(--red-100); }
.notice .lucide { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.notice-body { min-width: 0; }
.notice-body strong { display: block; margin-bottom: 2px; font-weight: 750; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 720px) {
  dialog.modal, dialog.modal.sm, dialog.modal.lg {
    width: 100%;
    max-height: 92vh;
    margin: auto auto 0;
  }
  .modal-panel { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .form-grid, .form-grid.thirds { grid-template-columns: 1fr; }
  .modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot-actions { margin-left: 0; }
  .modal-foot-actions .btn { flex: 1; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Detail dialog — meta strip, action bar, counter tiles, overflow menu
   ========================================================================== */

/* status line under the header */
.modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.modal-meta .dot { color: var(--ink-300); }
.modal-meta code { color: var(--ink-600); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }

/* horizontal facts strip */
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 10px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.fact { display: flex; align-items: baseline; gap: 6px; font-size: 11px; }
.fact span { color: var(--ink-500); }
.fact strong { color: var(--ink-900); font-weight: 720; }

/* action bar */
.action-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.action-bar .spacer { flex: 1 1 auto; }
.btn:disabled { color: var(--ink-400); background: var(--surface-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.btn:disabled:hover { transform: none; border-color: var(--border); }
.btn-primary:disabled { color: var(--ink-400); background: var(--surface-muted); border-color: var(--border); }

/* overflow menu — no JS, native disclosure */
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:focus-visible { outline: 3px solid rgba(40, 100, 232, .22); outline-offset: 2px; border-radius: 9px; }
.menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 216px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
/* A menu anchored in the footer has no room to open downward before
   hitting .modal-panel's bottom edge -- overflow:hidden on that ancestor
   (needed to clip header/body/footer to the rounded corners) would just
   clip the panel invisible. Open upward instead. */
.modal-foot .menu-panel {
  top: auto;
  bottom: calc(100% + 6px);
}
.menu-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  color: var(--ink-700);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}
.menu-item:hover { background: var(--ink-100); }
.menu-item .lucide { width: 14px; height: 14px; stroke-width: 1.9; }
.menu-item.danger { color: var(--red-700); }
.menu-item.danger:hover { background: var(--red-50); }
.menu-sep { height: 1px; margin: 5px 4px; background: var(--border); }

/* counter tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.card.secondary .tile { background: #fff; }
.tile-label { color: var(--ink-500); font-size: 10px; font-weight: 650; line-height: 1.3; }
.tile-value { margin-top: 5px; color: var(--ink-950); font-size: 20px; line-height: 1; font-weight: 780; letter-spacing: -.03em; }
.tile.is-good .tile-value { color: var(--green-700); }
.tile.is-warn .tile-value { color: var(--amber-700); }
.tile.is-bad .tile-value { color: var(--red-700); }
.tile.is-zero .tile-value { color: var(--ink-400); }

/* progress cell with value */
.progress-cell { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.progress-cell .progress { flex: 1; }
.progress-cell b { color: var(--ink-900); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .tiles, .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-bar .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Tabs, identifier rows, target cards
   ========================================================================== */

.tabs {
  display: flex;
  gap: 2px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 11px;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--ink-900); }
.tab[aria-selected="true"] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.tab .tab-count { padding: 1px 5px; color: var(--ink-600); background: var(--ink-100); border-radius: 999px; font-size: 9px; font-weight: 750; }
.tab[aria-selected="true"] .tab-count { color: var(--blue-700); background: var(--blue-50); }
.tab .tab-count.zero { color: var(--ink-400); }

.tabpanel[hidden] { display: none; }
.tabpanel > * + * { margin-top: 14px; }

.panel-intro { margin: 0; font-size: 11px; line-height: 1.5; }

/* copyable identifier */
.id-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.id-row:last-child { border-bottom: 0; }
.id-label { color: var(--ink-500); font-size: 10px; font-weight: 650; }
.id-value { margin-top: 2px; color: var(--ink-900); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.id-row .icon-btn { width: 30px; height: 30px; }
.id-row .icon-btn .lucide { width: 14px; height: 14px; }

/* validity window */
.window { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.window strong { color: var(--ink-900); font-weight: 720; }
.window .lucide { width: 13px; height: 13px; color: var(--ink-400); }

/* progress block */
.progress-block { display: grid; gap: 7px; }
.progress-block .progress { height: 8px; }
.progress-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-500); font-size: 10px; }

/* target card */
.target-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  padding: 12px 13px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-md);
}
.target-card.is-pending { border-left-color: var(--amber-600); }
.target-card.is-failed { border-left-color: var(--red-600); }
.target-title { color: var(--ink-900); font-size: 12px; font-weight: 750; }
.target-meta { margin-top: 4px; color: var(--ink-500); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.target-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.target-actions .btn { min-height: 32px; padding: 0 11px; }

/* detail rows inside a dialog */
.modal-body .detail-grid { grid-template-columns: 1fr; }
.modal-body .detail-row { min-height: 46px; font-size: 11px; }
.modal-body .detail-row:last-child { border-bottom: 0; }
.detail-row .empty-value { color: var(--ink-400); }

/* ==========================================================================
   Batch target list — selectable rows + sticky bulk bar
   ========================================================================== */

.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.status-line .headline { color: var(--ink-950); font-size: 15px; font-weight: 760; letter-spacing: -.015em; }
.status-line .sub { color: var(--ink-500); font-size: 11px; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: var(--ink-600); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; font-size: 10px; font-weight: 680; }
.stat-chip b { color: var(--ink-950); font-weight: 800; }
.stat-chip.is-bad { color: var(--red-700); background: var(--red-50); border-color: var(--red-100); }
.stat-chip.is-bad b { color: var(--red-700); }
.stat-chip.is-warn { color: var(--amber-700); background: var(--amber-50); border-color: var(--amber-100); }
.stat-chip.is-warn b { color: var(--amber-700); }

/* sticky selection toolbar */
.bulk-bar {
  position: sticky;
  top: -16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 -4px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.bulk-bar.is-active { background: var(--blue-50); border-color: var(--blue-100); }
.bulk-bar .bulk-copy { color: var(--ink-700); font-size: 11px; font-weight: 680; }
.bulk-bar .bulk-copy b { color: var(--ink-950); font-weight: 800; }
.bulk-bar .bulk-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bulk-bar input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue-600); cursor: pointer; }

/* target rows */
.target-list { display: grid; gap: 6px; }
.target-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}
.target-row:hover { background: var(--surface-muted); }
.target-row:has(input:checked) { background: var(--blue-50); border-color: var(--blue-100); border-left-color: var(--blue-600); }
.target-row.is-warn { border-left-color: var(--amber-600); }
.target-row.is-bad { border-left-color: var(--red-600); }
.target-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue-600); cursor: pointer; }
.target-row .target-name { color: var(--ink-900); font-size: 12px; font-weight: 720; }
.target-row .target-sub { margin-top: 2px; color: var(--ink-500); font-size: 10px; line-height: 1.45; }
.target-row .target-sub .mono { font-size: 10px; }
.target-row .row-actions { display: flex; align-items: center; gap: 6px; }
.target-row .icon-btn { width: 30px; height: 30px; }
.target-row .icon-btn .lucide { width: 14px; height: 14px; }

/* collapsible block */
.disclosure { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-muted); }
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-right: 1.6px solid var(--ink-400); border-bottom: 1.6px solid var(--ink-400); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--transition); }
.disclosure[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclosure > summary:hover { color: var(--ink-900); }
.disclosure-body { padding: 2px 12px 8px; }

@media (max-width: 720px) {
  .target-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .target-row .row-actions { grid-column: 2 / -1; }
  .bulk-bar .bulk-actions { margin-left: 0; width: 100%; }
  .bulk-bar .bulk-actions .btn { flex: 1; }
}
