:root {
  --bg: #12100e; --panel: #1b1714; --line: #2c261f; --ink: #f4eee6;
  --muted: #9c9083; --gold: #d7b07a; --ok: #8faf84; --bad: #d9785c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Segoe UI", sans-serif; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
aside { border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; gap: 12px; align-items: center; }
.mark { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #1a140c;
  display: grid; place-items: center; font-weight: 800; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 6px; }
.nav { text-align: left; background: transparent; border: 0; color: var(--muted); padding: 10px 12px;
  border-radius: 10px; cursor: pointer; font-size: 14px; }
.nav.on, .nav:hover { background: var(--panel); color: var(--ink); }
.aside-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.aside-foot.ok { color: var(--ok); }
.aside-foot.bad { color: var(--bad); }
main { padding: 36px 48px; }
h1 { font-size: 28px; font-weight: 650; margin: 0; }
header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 420px; }
.panel.wide { max-width: 640px; }
.user-code { font-size: 28px; letter-spacing: .14em; font-weight: 700; margin: 12px 0; color: var(--gold); }
#grok-verify-link { color: var(--gold); }
#grok-login-error { color: var(--bad); }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
input { width: 100%; background: #100e0c; border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 12px; margin-bottom: 14px; font: inherit; }
button.primary, button.ghost, button.ok, button.bad {
  border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; margin-right: 6px;
}
.primary { background: var(--gold); color: #1a140c; font-weight: 650; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ok { background: #31432c; color: var(--ok); }
.bad { background: #4a2c24; color: var(--bad); }
.list { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lede { color: var(--muted); line-height: 1.6; }
.log { background: #0c0b0a; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  min-height: 280px; white-space: pre-wrap; color: #d9d0c5; font-size: 12px; overflow: auto; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); margin-right: 6px; }
.tag.CRITICAL { color: var(--bad); }
.tag.HIGH { color: var(--gold); }
.tag.scanning { color: var(--gold); }
.bar { height: 8px; background: #100e0c; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.pc-log { background: #0c0b0a; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  max-height: 180px; overflow: auto; white-space: pre-wrap; color: #d9d0c5; font-size: 12px; margin-top: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--gold); color: #1a140c;
  padding: 12px 16px; border-radius: 12px; font-weight: 650; z-index: 20; }
.toolbar { margin-bottom: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.busy { pointer-events: none; opacity: .7; }
