:root { --bg: #07111f; --panel: #0d1b2b; --line: #1e3550; --text: #e8f0fa; --muted: #8ea5bf; --accent: #42a5ff; --ok: #3fcf8e; --bad: #ff6b6b; --warn: #f5b94a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; }
main { flex: 1; overflow: auto; padding: 20px 22px 8px; display: flex; flex-direction: column; gap: 14px; }
.head { display: flex; gap: 14px; align-items: center; }
.badge { width: 44px; height: 44px; border-radius: 12px; background: #12304d; display: grid; place-items: center; flex: none; }
.badge svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge.ok { background: rgba(63,207,142,.14); } .badge.ok svg { stroke: var(--ok); }
.badge.bad { background: rgba(255,107,107,.14); } .badge.bad svg { stroke: var(--bad); }
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 2px 0 0; font-weight: 650; }
h2 { margin: 0 0 8px; font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.file { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.file-name { font-weight: 600; word-break: break-all; }
.file-path { color: var(--muted); font-size: 12px; word-break: break-all; margin-top: 2px; }
.file-extra { color: var(--muted); font-size: 12px; margin-top: 6px; }
.box { display: flex; flex-direction: column; gap: 8px; }
.hint { margin: 0; color: var(--muted); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
input[type="password"] { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 0 10px; width: 100%; }
input[type="password"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.button { background: #14273c; color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.button:hover:not(:disabled) { border-color: #3f5d7c; }
.button.primary { background: #2f8fe6; border-color: #42a5ff; color: #fff; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.keys { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.identity { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 8px 10px; }
.identity-head { font-weight: 600; word-break: break-word; }
.identity-sub { color: var(--muted); font-size: 12px; margin-bottom: 4px; word-break: break-all; }
.component { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.component:hover { background: rgba(66,165,255,.07); }
.component input { margin-top: 2px; }
.component .meta { display: flex; flex-direction: column; }
.component .role { font-size: 13px; }
.component .fp { font-size: 11px; color: var(--muted); }
.tag { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: #12304d; color: var(--accent); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.sign { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sign label:not(.check) { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.result { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.result.ok { border-color: rgba(63,207,142,.5); }
.result.bad { border-color: rgba(255,107,107,.5); }
.result.warn { border-color: rgba(245,185,74,.5); }
.result .line { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 13px; }
.result .line span:first-child { color: var(--muted); }
.result .line span:last-child { word-break: break-all; }
.result .note { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.error { color: var(--bad); margin: 0; min-height: 1em; }
.foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.busy { opacity: .6; pointer-events: none; }
.result .button { align-self: flex-start; margin-top: 6px; }
.result .key-options { display: grid; gap: 8px; margin-top: 6px; }
.result .key-options .expected { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.result .key-options input { width: 100%; font-size: 12px; }
.result .key-options .row { display: flex; flex-wrap: wrap; gap: 8px; }
