:root{font-family:system-ui,"Segoe UI",sans-serif;background:#f5f8fc;color:#172236}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}header{background:#101f34;color:white;padding:18px 4%;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}header a{color:#fff;text-decoration:none;font-weight:700}nav{display:flex;gap:16px;flex-wrap:wrap}.test-banner{background:#ffecc2;color:#583500;padding:9px 4%;font-size:.84rem;font-weight:700}main{width:100%;max-width:1040px;margin:0 auto;padding:26px 20px 70px;flex:1 0 auto}h1{font-size:clamp(1.6rem,3vw,2.4rem)}h2{font-size:1.05rem}p{line-height:1.6}form,.cards section{background:#fff;border:1px solid #dde6f1;border-radius:12px;padding:22px;box-shadow:0 8px 20px #18385b0b;max-width:670px}form{display:grid;gap:13px}label{display:grid;gap:5px;font-weight:600}input,select{padding:10px;border:1px solid #bacbdb;border-radius:6px;font:inherit}input[type=checkbox]{width:18px;height:18px;margin:0;flex:none;accent-color:#143f6d}label.check{display:flex;align-items:center;gap:10px;font-weight:500;cursor:pointer}button{background:#143f6d;border:0;border-radius:6px;color:white;padding:12px 20px;font-weight:650;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.cards section{min-height:110px}.table{overflow:auto}table{border-collapse:collapse;background:white;min-width:820px;width:100%}td,th{padding:12px;border-bottom:1px solid #e5e9ef;text-align:start}th{background:#e4edf7}footer{margin-top:auto;border-top:1px solid #dde6f1;background:#eef3f8;padding:18px 4%;font-size:.82rem;color:#566579}a:focus-visible,button:focus-visible{outline:3px solid #f4ba4c;outline-offset:2px}@media(max-width:700px){main{padding:15px 12px 45px}header{padding:16px}}

/* ---- Auth pages (register / sign in): centred, MDL dark theme ---- */
body.auth{background:radial-gradient(circle at 50% -10%,#1c5cab33,transparent 40%),linear-gradient(180deg,#030a15,#04101d);color:#fff8ef}
body.auth main{max-width:520px;padding:56px 20px 80px;text-align:center}
body.auth h1{margin:0 0 10px;font-size:clamp(1.7rem,3.2vw,2.2rem)}
body.auth main>p{margin:0 0 22px;color:#a9bdd3;font-size:.92rem}
body.auth form{max-width:none;text-align:start;background:#091a2dd9;border:1px solid #5d9ce933;box-shadow:0 18px 50px #00000055;padding:26px}
body.auth label{color:#e6eef8;font-size:.92rem}
body.auth input,body.auth select{background:#030d1b;color:#fff;border:1px solid #619bd057;font-weight:400}
body.auth input:focus,body.auth select:focus{outline:none;border-color:#0089ff;box-shadow:0 0 0 3px #0089ff1c}
body.auth select option{background:#030d1b;color:#fff}
body.auth button{font:inherit;font-weight:700;background:linear-gradient(135deg,#ff9d1c,#ff7a00);color:#fff;padding:13px 20px;margin-top:4px}
body.auth button:hover{filter:brightness(1.07)}
body.auth label.check{color:#a9bdd3}
body.auth input[type=checkbox]{accent-color:#ff8a0f}
body.auth .alt{margin:18px 0 0;color:#a9bdd3;font-size:.9rem}
body.auth .alt a{color:#4bb8ff;font-weight:700;text-decoration:none}
body.auth .alt a:hover{text-decoration:underline}
body.auth footer{background:#020812;border-top-color:#5d9ce91f;color:#7f93aa}

/* ---- Professional select (auth pages) ---- */
body.auth select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-inline-end:42px;
background-color:#030d1b;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234bb8ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat:no-repeat;background-position:right 14px center;background-size:14px;
transition:border-color .15s,box-shadow .15s,background-color .15s}
html[dir=rtl] body.auth select{background-position:left 14px center}
body.auth select:hover{border-color:#619bd0a6;background-color:#06142a}
body.auth select option{background:#071a2f;color:#e6eef8;padding:10px}
body.auth select option:checked{background:#0b3a6b;color:#fff}


/* ---- Custom dropdown (auth pages) ---- */
.dd{position:relative}
.dd-native{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}
.dd-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:11px 14px;text-align:start;background:#030d1b;color:#fff;border:1px solid #619bd057;border-radius:8px;font:inherit;font-weight:400;cursor:pointer;filter:none;transition:border-color .15s,box-shadow .15s,background-color .15s}
.dd-btn:hover{border-color:#619bd0a6;background:#06142a;filter:none}
.dd-btn:focus-visible,.dd.open .dd-btn{outline:none;border-color:#0089ff;box-shadow:0 0 0 3px #0089ff1c}
.dd-chev{width:9px;height:9px;flex:none;margin-inline-end:3px;border-right:2px solid #4bb8ff;border-bottom:2px solid #4bb8ff;transform:rotate(45deg) translateY(-2px);transition:transform .18s}
.dd.open .dd-chev{transform:rotate(-135deg) translateY(-2px)}
.dd-list{position:absolute;z-index:50;inset-inline:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;max-height:260px;overflow:auto;background:#071a2f;border:1px solid #5d9ce940;border-radius:10px;box-shadow:0 18px 40px #000000a6;animation:ddin .12s ease-out}
.dd-list[hidden]{display:none}
@keyframes ddin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.dd-opt{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:7px;color:#d6e3ef;font-weight:500;cursor:pointer}
.dd-opt.is-active{background:#0b2a4d;color:#fff}
.dd-opt[aria-selected=true]{color:#fff;font-weight:700}
.dd-opt[aria-selected=true] .dd-check{width:6px;height:11px;border-right:2px solid #ff9d1c;border-bottom:2px solid #ff9d1c;transform:rotate(45deg) translate(-2px,-2px)}
.dd-list::-webkit-scrollbar{width:8px}
.dd-list::-webkit-scrollbar-thumb{background:#2a4a70;border-radius:8px}

/* Specificity override: .dd-btn must not inherit the orange submit-button style */
body.auth .dd-btn{background:#030d1b;color:#fff;font-weight:400;padding:11px 14px;margin:0;filter:none}
body.auth .dd-btn:hover{background:#06142a;filter:none}
body.auth .dd-btn:focus-visible,body.auth .dd.open .dd-btn{background:#030d1b}
.dd-opt{font-weight:400}

/* ---- Notice page (feature pending approval) ---- */
.notice-card{max-width:520px;margin:26px auto 0;padding:34px 30px 30px;background:#091a2dd9;border:1px solid #5d9ce933;border-radius:14px;box-shadow:0 18px 50px #00000055}
.notice-icon{display:block;margin:0 auto 16px;padding:14px;box-sizing:content-box;color:#ff9d1c;background:#ff9d1c1a;border:1px solid #ff9d1c40;border-radius:50%}
body.auth .notice-card p{margin:0 0 24px;color:#a9bdd3;font-size:1rem;line-height:1.65}
.notice-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.notice-actions a{display:inline-block;padding:12px 24px;border-radius:8px;font-weight:700;text-decoration:none;transition:filter .15s,border-color .15s,background-color .15s}
.btn-primary{background:linear-gradient(135deg,#ff9d1c,#ff7a00);color:#fff}
.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{color:#e6eef8;border:1px solid #619bd057;background:#030d1b}
.btn-ghost:hover{border-color:#619bd0a6;background:#06142a}
.notice-actions a:focus-visible{outline:3px solid #f4ba4c;outline-offset:2px}
