/* Owner: D07 — menus, dialogs, and Research chips. */

.dl-goldfish-opener { display: grid; gap: 7px; }
.dl-goldfish-opener p { margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dl-goldfish-opener button { justify-self: start; }
.dl-goldfish-opener button:focus-visible, .dl-goldfish-dialog button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dl-goldfish-dialog { width: min(560px, calc(100% - 28px)); max-height: min(720px, calc(100dvh - 32px)); overflow: auto; }
.dl-goldfish-dialog > * { margin-inline: 22px; }
.dl-goldfish-dialog > :first-child { margin-top: 22px; }
.dl-goldfish-dialog > :last-child { margin-bottom: 22px; }
.dl-goldfish-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dl-goldfish-dialog-head h2 { margin: 5px 0 0; font-size: 21px; }
.dl-goldfish-description { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 14px; }
.dl-goldfish-readiness { border-left: 2px solid var(--brand); color: var(--body); font-size: 12px; line-height: 1.45; margin-top: 15px; padding: 2px 0 2px 10px; }
.dl-goldfish-readiness:empty { display: none; }
.dl-sim { display: grid; gap: 10px; margin-top: 15px; }
.dl-sim-status { margin: 0; color: var(--muted); font-size: 13px; }
.dl-sim-result, .dl-sim-delta, .dl-sim-unseen { margin: 0; font-size: 13px; line-height: 1.5; }
.dl-sim-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dl-sim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-sim-diagnostics { display: grid; gap: 9px; }
.dl-sim-diagnostics h3 { margin: 3px 0 0; font-size: 15px; }
.dl-sim-diagnostic-settings, .dl-sim-diagnostic-coverage, .dl-sim-diagnostic-comparison { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.dl-sim-diagnostic-card { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.dl-sim-diagnostic-card h4 { margin: 0; font-size: 13px; }
.dl-sim-diagnostic-status, .dl-sim-diagnostic-metric, .dl-sim-diagnostic-note { margin: 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.dl-sim-diagnostic-status { color: var(--muted); }
.dl-sim-diagnostic-status.is-supported { color: var(--success); }
.dl-sim-diagnostic-status.is-partial { color: var(--warning); }
.dl-sim-diagnostic-status.is-unsupported, .dl-sim-diagnostic-metric.is-unknown { color: var(--warning); }
.dl-sim-diagnostic-note { color: var(--muted); }
.dl-goldfish-dialog [data-simulate-run]:disabled, .dl-goldfish-dialog [data-simulate-rerun]:disabled { cursor: not-allowed; opacity: .55; }

/* Keyboard shortcuts dialog — two-column table */
.dl-hotkeys-help { width: min(520px, calc(100% - 28px)); }
.dl-hotkeys-table { width: 100%; border-collapse: collapse; }
.dl-hotkeys-table th { text-align: left; padding: 4px 12px 8px; color: var(--faint); font: 11px var(--mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dl-hotkeys-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; vertical-align: middle; }
.dl-hotkeys-table tbody tr:last-child td { border-bottom: 0; }
.dl-hotkeys-keys { text-align: right; white-space: nowrap; }
.dl-hotkeys-keys kbd { display: inline; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--body); font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.dl-hotkeys-or { display: inline; margin: 0 6px; color: var(--faint); font-size: 11px; font-style: italic; }

/* Comment dialog */
.dl-comment-dialog { width: min(460px, calc(100% - 28px)); }
.dl-comment-field { display: grid; gap: 7px; font-size: 12px; }
.dl-comment-field textarea { min-height: 100px; resize: vertical; }

/* Research syntax chips */
.dl-syntax-chips { margin: 8px 0 12px; }
.dl-syntax-chip { font-size: 12px; white-space: nowrap; }
.dl-syntax-chip.is-ok { border-color: rgba(87, 211, 155, .35); background: rgba(87, 211, 155, .08); color: var(--success); }
.dl-syntax-chip.is-warn { border-color: rgba(240, 189, 103, .35); background: rgba(240, 189, 103, .08); color: var(--warning); }
.dl-chip-remove { width: 18px; height: 18px; display: inline-grid; place-items: center; margin: 0 -4px 0 4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 13px; line-height: 1; cursor: pointer; opacity: .65; }
.dl-chip-remove:hover { opacity: 1; background: rgba(0, 0, 0, .2); }
.dl-chip-remove:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 1px; }

.dl-sim-diagnostic-meter { display: block; width: 100%; max-width: 24rem; height: .75rem; margin: -.15rem 0 .6rem; }

.dl-assistant-evidence-answer { font-size:1rem; line-height:1.6; overflow-wrap:anywhere; }
.dl-assistant-evidence-answer section + section { margin-top:1.5em; }
.dl-assistant-evidence-answer h4 { margin:0 0 .5em; font-size:1rem; }
.dl-assistant-evidence-answer ul { list-style:disc outside; padding-inline-start:1.5em; margin:0 0 1em; }
.dl-assistant-evidence-answer li { margin-block:.5em; }
.dl-assistant-evidence-answer p { margin:0 0 1em; }
