:root {
  --navy: #14243e; --navy-2: #1f3355; --gold: #b08d2e; --gold-soft: #f0d68a;
  --green: #2e7d5b; --bg: #f4f6f9; --card: #ffffff; --line: #e2e8f0;
  --ink: #1a2332; --muted: #64748b; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--navy); }

.topbar { background: var(--navy); color: #fff; }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 40px; border-radius: 6px; }
.brand b { font-size: 15.5px; letter-spacing: .3px; }
.brand span { display: block; font-size: 11px; color: #b8c4d8; font-weight: 500; }
.topnav { margin-left: auto; display: flex; gap: 4px; }
.topnav a { color: #cdd8ea; text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 8px; }
.topnav a.active, .topnav a:hover { background: var(--navy-2); color: var(--gold-soft); }

.shell { max-width: 1100px; margin: 0 auto; padding: 26px 20px 70px; }
.hero h1 { font-size: 27px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.hero p { color: var(--muted); max-width: 700px; line-height: 1.6; margin-bottom: 22px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(20,36,62,.05); transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: 0 6px 18px rgba(20,36,62,.10); transform: translateY(-2px); }
.accent { height: 4px; border-radius: 4px; width: 46px; margin-bottom: 14px; }
.accent.navy { background: var(--navy); } .accent.green { background: var(--green); } .accent.gold { background: var(--gold); }
.tool-card h2 { font-size: 18px; font-weight: 800; color: var(--navy); }
.tool-card .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 3px 0 10px; }
.tool-card p { font-size: 13.5px; color: #475569; line-height: 1.55; flex: 1; }
.btn { display: inline-block; text-align: center; background: var(--navy); color: var(--gold-soft); border: none; border-radius: 9px; padding: 11px 20px; font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; margin-top: 14px; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: #eef2f8; color: var(--navy); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h2 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.panel .sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fgrid.three { grid-template-columns: 1fr 1fr 1fr; }
.fwide { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 4px; }
input[type=text], input[type=password], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; }
input:focus, select:focus { outline: 2px solid rgba(20,36,62,.25); }
.req label::after { content: " *"; color: #b91c1c; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; margin-top: 8px; }
.check input { width: 16px; height: 16px; }

.alert { border-radius: 10px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.note { background: #fdf6e3; border: 1px solid #e6d9a8; border-radius: 10px; padding: 13px 16px; font-size: 13px; color: #52431a; line-height: 1.6; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.login-card { background: #fff; border-radius: 16px; padding: 36px; width: 380px; text-align: center; }
.login-card img { height: 56px; margin-bottom: 14px; }
.login-card h1 { font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.login-card p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.login-card input { text-align: center; margin-bottom: 12px; }
.login-card .btn { width: 100%; margin-top: 0; }

.prompt-out { background: #f0f4fa; border: 1px dashed #94a8c7; border-radius: 10px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 13.5px; color: var(--navy); line-height: 1.55; min-height: 60px; }
.copy-ok { color: #15803d; font-weight: 700; font-size: 13px; margin-left: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { background: #eef2f8; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 11px; font-size: 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
footer { text-align: center; color: #94a3b8; font-size: 11.5px; padding: 20px; }
@media (max-width: 720px) { .fgrid, .fgrid.three { grid-template-columns: 1fr; } .topnav { display: none; } }
