/* Shared shell of the Zero-Trust pages (docs/zero-trust-ui-design.md, 3.1 and 3.4). Same dark shell as net-worth.html and business-systems.html. */
body { background-color: #0a0a0a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; margin: 0; padding: 24px 16px; display: flex; justify-content: center; }
main { width: 100%; max-width: 720px; min-width: 0; }
.card { background: #111; border: 1px solid #d4af37; border-radius: 12px; padding: 24px; margin-bottom: 20px; overflow-wrap: anywhere; }
h1 { color: #d4af37; margin: 0 0 8px; font-size: 22px; }
h2 { color: #d4af37; margin: 0 0 12px; font-size: 17px; }
h3 { color: #e0e0e0; margin: 14px 0 6px; font-size: 15px; }
label { display: block; margin: 12px 0 4px; font-size: 14px; }
input[type=text], input[type=number], select { width: 100%; box-sizing: border-box; padding: 8px; min-height: 44px; border-radius: 8px; border: 1px solid #555; background: #0a0a0a; color: inherit; font: inherit; }
button { font: inherit; min-height: 44px; padding: 9px 18px; border-radius: 8px; border: 1px solid #d4af37; background: #d4af37; color: #111; font-weight: 600; cursor: pointer; margin: 10px 8px 0 0; }
button.secondary { background: transparent; color: #e0e0e0; border-color: #777; }
button.danger { background: #b3261e; border-color: #b3261e; color: #fff; }
button:disabled { opacity: .5; cursor: default; }
a { color: #a9bfd1; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.meta { color: #a9bfd1; font-size: 13px; }
.msg { min-height: 1.2em; margin-top: 10px; font-size: 14px; }
.msg.err { color: #ff7c7c; }
.msg.ok { color: #7fd99a; }
.state { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid #333; }
.state[hidden] { display: none; }
#ztError { border-color: #ff7c7c; color: #ff7c7c; }
#ztNotConfigured { border-color: #e07b00; }
.banner { border: 1px solid #e07b00; border-left-width: 4px; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
.banner[hidden] { display: none; }
.item { border-top: 1px solid #333; padding: 10px 0; overflow-wrap: anywhere; }
.item:first-child { border-top: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
pre.digest { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; }
.badge { display: inline-block; padding: 0 8px; border-radius: 10px; border: 1px solid #d4af37; font-size: 12px; margin-left: 6px; }
.links { margin-top: 12px; font-size: 14px; }
.links a { display: inline-block; padding: 10px 0; margin-right: 14px; }
/* audit search (5.2) */
code.mono { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #a9bfd1; overflow-wrap: anywhere; }
#ztContent.dim { opacity: .5; }
/* page strip (3.4) */
.ztstrip ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ztstrip a { display: inline-block; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #333; border-radius: 8px; text-decoration: none; font-size: 14px; }
.ztstrip a[aria-current="page"] { border-color: #d4af37; color: #d4af37; font-weight: 600; }
/* confirm dialog (3.1) */
.zt-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; z-index: 1000; }
.zt-dialog { background: #111; border: 1px solid #d4af37; border-radius: 12px; padding: 20px; width: 100%; max-width: 480px; margin: auto 0; box-sizing: border-box; }
.zt-dialog.danger { border-color: #b3261e; }
.zt-dialog .zt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zt-dialog .zt-actions button { margin: 0; }
@media (max-width: 480px) { .zt-dialog .zt-actions button { width: 100%; } .card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.zt-dialog label.zt-ack { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; }
.zt-dialog label.zt-ack input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
