/* Copyright © 2026 AegisGate Technology Solutions Ltd. All rights reserved. */
:root { --blue: #1c3f94; --blue-dark: #142d6b; --silver: #c9d0da; --orange: #e8730c; --ink: #1b2233; --muted: #5b6577; --bg: #f4f6f9; --card: #ffffff; --line: #dde3ea; --good: #1d7a4a; --bad: #b3261e; --warn: #9a6400; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-text-size-adjust: 100%; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--blue); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.shield { width: 22px; height: 26px; background: var(--silver); clip-path: polygon(50% 0, 100% 15%, 92% 70%, 50% 100%, 8% 70%, 0 15%); }
.wordmark { font-weight: bold; letter-spacing: .3px; color: var(--silver); }
.wordmark span { color: #fff; }
.bar-right { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.bar-right button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.app { max-width: 1040px; margin: 0 auto; padding: 20px 16px 60px; }
.narrow { max-width: 460px; margin: 30px auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 10px; color: var(--blue); }
h2 { font-size: 17px; margin: 0 0 10px; color: var(--blue); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-size: 14px; font-weight: bold; margin-bottom: 10px; }
label .hint { font-weight: normal; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus, button:focus { outline: 3px solid rgba(28,63,148,.35); outline-offset: 1px; }
button { font: inherit; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }
button.primary { background: var(--blue); color: #fff; }
button.danger { border-color: var(--bad); color: var(--bad); }
button.link { border: 0; background: none; padding: 0; color: var(--blue); text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack > * + * { margin-top: 10px; }
.notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.notice.info { background: #e8eef9; color: var(--blue-dark); }
.notice.good { background: #e3f3ea; color: var(--good); }
.notice.bad { background: #fbe7e5; color: var(--bad); }
.notice.warn { background: #fff4df; color: var(--warn); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; background: #f1f4f8; border: 1px dashed var(--line); padding: 10px; border-radius: 6px; user-select: all; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs button { border-radius: 20px; padding: 7px 12px; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: bold; font-size: 13px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; background: #e8eef9; color: var(--blue-dark); }
.pill.good { background: #e3f3ea; color: var(--good); }
.pill.bad { background: #fbe7e5; color: var(--bad); }
.pill.warn { background: #fff4df; color: var(--warn); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stat b { display: block; font-size: 24px; color: var(--blue); }
.loading { color: var(--muted); }
.tablewrap { overflow-x: auto; }
@media (max-width: 600px) { .app { padding: 12px 16px 40px; } .card { padding: 14px; } th, td { padding: 6px 4px; } }
