/* The trust question on the new page (trust.js askTrust with modal: true): a modal dialog of
   its own, above the session dialog and the small dialogs, in the tokens of home.css. The
   classic view has its own look of the same question in cockpit.css. */

dialog.trust-dlg {
  padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
dialog.trust-dlg::backdrop { background: rgba(10, 14, 22, .55); }
.trust-dlg .trust { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; max-height: calc(100dvh - 50px); overflow-y: auto; font-size: .88rem; }
.trust-head h3 { margin: 0 0 4px; font-size: 1rem; }
.trust-folder { display: block; overflow-wrap: anywhere; font-size: .8rem; padding: 4px 8px; border-radius: 6px; background: var(--sunk); }
.trust-why { color: var(--muted); font-size: .84rem; }
.trust-body { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.trust-body .muted { color: var(--muted); }
.trust-section { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.trust-section.runs { border-color: var(--warn); background: var(--warn-soft); }
.trust-section h4 { margin: 0 0 2px; font-size: .84rem; }
.trust-section ul { margin: 0; padding-left: 18px; }
.trust-section li { overflow-wrap: anywhere; }
.trust-section li.muted { color: var(--muted); }
.trust-tag { margin-left: 6px; font-size: .72rem; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.trust-detail { display: block; color: var(--muted); font-size: .8rem; font-family: var(--f-mono); }
.trust-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
/* trust.js draws its buttons with the class of the classic view: here they look like .act. */
.trust-actions .btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 12px; font-size: .8rem; font-weight: 600; min-height: var(--btn-h, 28px); }
.trust-actions .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.trust-actions .btn:hover { filter: brightness(.96); }
