:root{--navy:#17365d;--blue:#1f4e78;--teal:#0f6b78;--bg:#f4f7fa;--line:#d8e0e8;--red:#a61b1b;--green:#226622}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Segoe UI,Arial,sans-serif;color:#1d2a36}

.top{background:linear-gradient(120deg,var(--navy),var(--blue));color:#fff;padding:22px 34px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.top h1{margin:0;font-size:26px}
.top p{margin:6px 0 0;opacity:.9;font-size:14px}
.who{display:flex;align-items:center;gap:10px;font-size:13px}
.who img{width:34px;height:34px;border-radius:50%;border:2px solid #ffffff55}
.who .initials{width:34px;height:34px;border-radius:50%;background:#ffffff2e;display:grid;place-items:center;font-weight:700;font-size:14px}
.who b{display:block;font-size:13px}
.who span{opacity:.85}
.signout{border:1px solid #ffffff66;background:transparent;color:#fff;border-radius:7px;padding:7px 13px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none}
.signout:hover{background:#ffffff1f}

.wrap{max-width:1050px;margin:24px auto;padding:0 18px}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin:15px 0;box-shadow:0 2px 8px #17365d12}
.step{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;margin-right:9px}
.card h2{display:inline;font-size:18px;color:var(--navy)}

.row{display:flex;gap:12px;align-items:end;margin-top:17px}
.field{flex:1}
label{display:block;font-size:13px;font-weight:650;margin-bottom:6px;color:#425466}
input,select{width:100%;padding:10px 11px;border:1px solid #b8c4d0;border-radius:7px;background:#fff;font:inherit}
input:focus,select:focus{outline:2px solid #9fc8db;border-color:var(--teal)}
button,.button{border:0;border-radius:7px;padding:10px 16px;background:var(--blue);color:#fff;font-weight:650;cursor:pointer;text-decoration:none;display:inline-block;font-family:inherit;font-size:inherit}
button:hover,.button:hover{background:var(--navy)}
button:disabled{background:#9aa8b5;cursor:not-allowed}

.muted{color:#637282;font-size:13px}
.hidden{display:none}
.notice{padding:12px 14px;border-radius:8px;background:#e8f3f7;color:#154d5b;margin-top:14px}
.error{background:#fde9e9;color:#8a2525}
.success{background:#e7f4e5;color:#245d22}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.preview{overflow:auto;max-height:260px;border:1px solid var(--line);border-radius:8px;margin-top:14px}
table{border-collapse:collapse;width:100%;font-size:12px}
th{position:sticky;top:0;background:var(--blue);color:#fff}
th,td{padding:7px 9px;border-bottom:1px solid #e3e8ed;text-align:left;white-space:nowrap}

.results{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0}
.pill{border-radius:8px;padding:12px;background:#f0f4f8}
.pill b{display:block;font-size:20px;color:var(--navy)}

.spinner{display:inline-block;width:18px;height:18px;border:3px solid #1f4e7833;border-top-color:#1f4e78;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:8px}
@keyframes spin{to{transform:rotate(360deg)}}

.footer{display:flex;justify-content:space-between;align-items:center;padding:18px 0 28px}
.tag{color:var(--teal);font-weight:650;font-size:13px}

/* Sign-in and access-denied pages */
.gate{min-height:100vh;display:grid;place-items:center;padding:22px}
.gate .card{max-width:430px;width:100%;text-align:center;padding:34px 30px;margin:0}
.gate h1{margin:0 0 6px;font-size:22px;color:var(--navy)}
.gate .lede{margin:0 0 24px;color:#637282;font-size:14px;line-height:1.5}
.gate .mark{width:52px;height:52px;border-radius:13px;background:linear-gradient(120deg,var(--navy),var(--teal));display:grid;place-items:center;margin:0 auto 16px;color:#fff;font-weight:700;font-size:21px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;padding:12px 16px;border:1px solid #cbd5e0;border-radius:8px;background:#fff;color:#3c4043;font-weight:650;font-size:15px;cursor:pointer;text-decoration:none}
.gbtn:hover{background:#f7f9fb;border-color:#b8c4d0}
.gate .fine{margin:22px 0 0;font-size:12px;color:#8a97a5;line-height:1.6}
.gate .reason{background:#fde9e9;color:#8a2525;padding:13px 15px;border-radius:8px;font-size:14px;margin:0 0 22px;text-align:left}

@media(max-width:700px){.row,.grid{display:block}.field{margin-top:10px}.top{padding:18px}.card{padding:17px}}
