/* dw4-media.css — DW4 (2026-10-18) Group D/E: the Map's "No GPS yet" chip
 * and badge (F14), the plan detail's Delete + inline 3D twin (F12/F13),
 * and the Library's document-row tick (F18). Colours through the --ds-*
 * tokens only, so Light / Navy / System all read right. DW5 D adds the
 * record's Rename / View in 3D row; the scan twin adds the Make 3D twin
 * door (both at the end of the file). Load after
 * dw3-media.css. */

/* ---- F14: the legend-row chip + the list badge ---- */
body.skin-billdr .map-legend .map-nogps-chip {
  margin-left: 12px; padding: 3px 11px; min-height: 26px;
  border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-pill);
  background: var(--ds-card); color: var(--ds-ink);
  font: inherit; font-size: var(--ds-fs-xs); font-weight: 600; cursor: pointer;
}
body.skin-billdr .map-legend .map-nogps-chip:hover { background: var(--ds-tint); }
body.skin-billdr .map-legend .map-nogps-chip.on { background: var(--ds-navy); border-color: var(--ds-navy); color: var(--ds-card); }
body.skin-billdr .map-legend .map-nogps-chip:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app .map-row-nogps { background: var(--ds-fill); }
body.skin-billdr #app .map-row-nogps:hover { background: var(--ds-tint); }
body.skin-billdr #app .map-nogps-badge {
  display: inline-block; padding: 1px 8px; border-radius: var(--ds-r-pill);
  background: var(--ds-neutral-bg); color: var(--ds-neutral-ink);
  font-size: var(--ds-fs-xs); font-weight: 600;
}

/* ---- F12: the plan detail's top row + Delete ---- */
body.skin-billdr #app .dw4md-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.skin-billdr #app .dw4md-plan-manage { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
body.skin-billdr #app .btn.btn-ghost.dw4md-danger { color: var(--ds-danger); border-color: var(--ds-line-strong); }
body.skin-billdr #app .btn.btn-ghost.dw4md-danger:hover:not(:disabled) { background: var(--ds-bad-bg); border-color: var(--ds-danger); }
body.skin-billdr #app .dw4md-plan-manage .rk-err { margin: 0; font-size: var(--ds-fs-xs); color: var(--ds-bad-ink); max-width: 320px; text-align: right; }

/* ---- F13: the inline 3D twin ---- */
body.skin-billdr #app .dw4md-twin { margin: 4px 0 6px; }
body.skin-billdr #app .dw4md-twin-mv {
  display: block; width: 100%; height: 420px;
  background: var(--ds-fill); border: 1px solid var(--ds-line); border-radius: var(--ds-r);
  --poster-color: transparent;
}
body.skin-billdr #app .dw4md-twin-none,
body.skin-billdr #app .dw4md-twin-help { margin: 6px 0 0; font-size: var(--ds-fs-sm); color: var(--ds-muted); }
@media (max-width: 700px) {
  body.skin-billdr #app .dw4md-twin-mv { height: 300px; }
}

/* ---- F18: the Library's document-row tick ---- */
body.skin-billdr #app .lib-doclist .row .lib-docsel { flex: none; margin: 0 4px 0 0; }
body.skin-billdr #app .lib-doclist .row.lib-selected { background: var(--ds-gold-tint); }

/* ---- DW5 D: the scan record's Rename / View in 3D beside Delete ---- */
body.skin-billdr #app .dw4md-plan-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Scan twin (2026-10-19): the "Make 3D twin" door + its progress ---- */
body.skin-billdr #app .dw4md-twin-make { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px dashed var(--ds-line-strong); border-radius: var(--ds-r); background: var(--ds-fill); }
body.skin-billdr #app .dw4md-twin-make .dw4md-twin-none { margin: 0; }
body.skin-billdr #app .dw4md-twin-step { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-ink); font-weight: 600; }
body.skin-billdr #app .dw4md-twin-make .rk-err { margin: 0; }
