.df-colhead { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 10px 6px; border-bottom: 1px solid var(--border); position: sticky; top: var(--chrome-h); background: var(--bg); z-index: 2; }
.df-sec { margin: 16px 0; }
.df-sec-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.df-count { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.df-count-fmt { background: var(--hover-surface); color: var(--muted); }
.df-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.df-empty { font-size: 12.5px; color: var(--muted); padding: 6px 10px; }
.df-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.df-item-head { font-size: 13px; font-weight: 700; padding: 7px 10px; background: var(--hover-surface); }
.df-item.df-st-added { border-color: color-mix(in srgb, #16a34a 45%, var(--border)); }
.df-item.df-st-removed { border-color: color-mix(in srgb, #dc2626 45%, var(--border)); }
.df-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 10px; padding: 6px 10px; font-size: 12.5px; line-height: 1.6; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.df-row:last-child { border-bottom: none; }
.df-label { color: var(--muted); font-weight: 600; }
.df-cell { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.df-span { grid-column: 2 / 4; }
.df-cell code { font-family: 'Consolas', monospace; background: var(--hover-surface); padding: 1px 4px; border-radius: 4px; font-size: 11px; }
.df-none { color: var(--muted); }
.df-del { background: color-mix(in srgb, #dc2626 18%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in srgb, #dc2626 60%, transparent); border-radius: 3px; }
.df-ins { background: color-mix(in srgb, #16a34a 20%, transparent); border-radius: 3px; }
div.df-del, div.df-ins { padding: 0 3px; margin: 1px 0; }
.df-locked .df-span { color: var(--muted); font-style: italic; }
.df-badge { font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.df-badge-changed { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
.df-badge-added { background: color-mix(in srgb, #16a34a 18%, transparent); color: #15803d; }
.df-badge-removed { background: color-mix(in srgb, #dc2626 16%, transparent); color: #b91c1c; }
.df-badge-format { background: var(--hover-surface); color: var(--muted); }
@media (max-width: 900px) {
  .df-row, .df-colhead { grid-template-columns: 1fr 1fr; }
  .df-label { grid-column: 1 / 3; }
  .df-colhead > div:first-child { display: none; }
  .df-span { grid-column: 1 / 3; }
}
.df-row.df-st-changed { background: color-mix(in srgb, #f59e0b 9%, transparent); }
.df-row.df-st-added { background: color-mix(in srgb, #16a34a 8%, transparent); }
.df-row.df-st-removed { background: color-mix(in srgb, #dc2626 7%, transparent); }
.df-row.df-st-same .df-cell, .df-row.df-st-format .df-cell { color: var(--text); }
.df-item.df-st-added > .df-item-head { background: color-mix(in srgb, #16a34a 12%, var(--hover-surface)); }
.df-item.df-st-removed > .df-item-head { background: color-mix(in srgb, #dc2626 10%, var(--hover-surface)); }
.df-item.df-st-changed > .df-item-head { background: color-mix(in srgb, #f59e0b 12%, var(--hover-surface)); }
.df-item.df-st-added .df-row, .df-item.df-st-removed .df-row { background: transparent; }
.df-line-changed { padding: 0 3px; margin: 1px 0; border-left: 2px solid color-mix(in srgb, #f59e0b 60%, transparent); }
.df-mono { font-family: 'Consolas', monospace; font-size: 11.5px; }
.df-title { font-size: 22px; font-weight: 800; letter-spacing: -.2px; margin: 4px 0 16px; }
.df-kind-tab.active { background: var(--accent); border-color: var(--accent); }
.df-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.df-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.df-switch-track { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--border); transition: background .15s; flex: 0 0 auto; }
.df-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.df-switch input:checked + .df-switch-track { background: var(--accent); }
.df-switch input:checked + .df-switch-track::after { transform: translateX(13px); }
.df-switch input:focus-visible + .df-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.df-sugg { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px 14px; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 4%, var(--input-bg)); display: flex; flex-direction: column; gap: 12px; }
.df-sugg-title { font-size: 13px; font-weight: 700; }
.df-sugg-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.df-sugg-n { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--hover-surface); color: var(--muted); }
.df-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.df-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.df-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.df-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.df-card-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.df-card-ver { font-size: 14px; font-weight: 700; }
.df-card-now { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; }
.df-card-id { font-size: 11px; color: var(--muted); font-family: 'Consolas', monospace; }
@media (max-width: 900px) {
  .df-row, .df-colhead { grid-template-columns: 1fr 1fr; }
  .df-label { grid-column: 1 / 3; }
  .df-colhead > div:first-child { display: none; }
  .df-span { grid-column: 1 / 3; }
}
.df-ab { display: grid; grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr); column-gap: 8px; align-items: end; margin-bottom: 16px; }
.df-slot { min-width: 0; }
.df-slot-a { --slot: var(--muted); }
.df-slot-b { --slot: var(--accent); }
.df-slot-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.df-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slot); }
.df-field { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg); transition: border-color .15s, box-shadow .15s; }
.df-field:focus-within { border-color: var(--slot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--slot) 16%, transparent); }
.df-slot.has-item .df-field { box-shadow: inset 3px 0 0 var(--slot); }
.df-slot.has-item .df-field:focus-within { box-shadow: inset 3px 0 0 var(--slot), 0 0 0 3px color-mix(in srgb, var(--slot) 16%, transparent); }
.df-slot-search { flex: 1 1 auto; min-width: 0; }
.df-slot-search .cw-pick-list, .df-slot-search .cw-pick-manual { display: none; }
.df-slot-search .cw-pick-input { border: none; background: transparent; padding: 8px 0; font-size: 14px; box-shadow: none; }
.df-slot-search .cw-pick-input:focus { outline: none; box-shadow: none; }
.df-slot-search .cw-pick-menu { left: -12px; right: -12px; top: calc(100% + 10px); }
.df-slot.has-item .df-slot-search { display: none; }
.df-slot.has-item.is-editing .df-slot-search { display: block; }
.df-slot.has-item.is-editing .df-chosen, .df-slot.has-item.is-editing .df-link, .df-slot.has-item.is-editing .df-x { display: none; }
.df-chosen { flex: 1 1 auto; min-width: 0; }
.df-chosen-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.df-chosen-name { font-size: 15px; font-weight: 700; }
.df-chosen-ver { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.df-chosen-id { font-size: 11.5px; color: var(--muted); font-family: 'Consolas', monospace; margin-top: 2px; }
.df-link { flex: 0 0 auto; border: none; background: none; padding: 4px 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px; }
.df-link:hover { color: var(--text); background: var(--hover-surface); }
.df-x { flex: 0 0 auto; width: 26px; height: 26px; border: none; background: none; color: var(--muted); font-size: 17px; line-height: 1; border-radius: 6px; cursor: pointer; }
.df-x:hover { color: var(--text); background: var(--hover-surface); }
.df-swap { justify-self: center; align-self: end; margin-bottom: 13px; width: 32px; height: 32px; border: none; background: none; color: var(--muted); font-size: 17px; border-radius: 6px; cursor: pointer; }
.df-swap:hover:not(:disabled) { color: var(--text); background: var(--hover-surface); }
.df-swap:disabled { opacity: .35; cursor: default; }
.df-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.df-pill { font-size: 11px; font-weight: 500; padding: 0 7px; line-height: 18px; border-radius: 4px; background: var(--hover-surface); color: var(--muted); border: none; }
@media (max-width: 900px) {
  .df-ab { grid-template-columns: 1fr; row-gap: 4px; }
  .df-swap { margin: 0; transform: rotate(90deg); }
}
.df-sugg { border: none; background: none; padding: 0; gap: 10px; }
.df-sugg-title { font-size: 12px; font-weight: 600; color: var(--muted); }
.df-sugg-label { color: var(--text); font-weight: 600; font-size: 12.5px; }
.df-card { min-height: 0; }
.df-card.is-current { background: var(--input-bg); border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.df-card-now { background: none; color: var(--accent); padding: 0; font-size: 11.5px; font-weight: 600; }
