:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef2f7;
  background: #0c1017;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #182131 0, #0c1017 42%, #090c11 100%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.topbar { height: 72px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; border-bottom:1px solid #27303d; background:#111720d9; backdrop-filter: blur(12px); position:sticky; top:0; z-index:10; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px; }
.brandmark { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:#2f7ef7; box-shadow:0 10px 30px #2f7ef733; }
.brand small { display:block; font-weight:500; color:#8e9aad; font-size:12px; margin-top:2px; }
.userbar { display:flex; gap:10px; align-items:center; color:#aeb8c7; }
.container { max-width:1240px; margin:0 auto; padding:34px 28px 56px; }
.hero { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:26px; }
h1 { font-size:34px; margin:0 0 8px; }
.subtle { color:#95a2b5; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:18px; }
.card { background:#141b25; border:1px solid #293443; border-radius:18px; padding:20px; min-height:190px; display:flex; flex-direction:column; transition:.16s ease; box-shadow:0 14px 40px #0000001f; }
.card:hover { transform:translateY(-2px); border-color:#3d4e64; }
.card.off { opacity:.55; }
.icon { width:52px; height:52px; border-radius:15px; background:#202b39; display:grid; place-items:center; font-size:22px; font-weight:800; margin-bottom:18px; }
.card h3 { margin:0 0 8px; font-size:19px; }
.card p { color:#96a3b6; line-height:1.45; margin:0 0 18px; flex:1; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.btn { border:0; border-radius:10px; padding:10px 14px; background:#2f7ef7; color:white; font-weight:700; }
.btn:hover { filter:brightness(1.08); }
.btn.secondary { background:#222c39; color:#dbe3ee; border:1px solid #344154; }
.btn.danger { background:#48242b; color:#ffc5cc; border:1px solid #71343f; }
.btn.ghost { background:transparent; color:#9dacbf; border:1px solid #303c4d; }
.badge { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 9px; font-size:12px; background:#1d2734; color:#aebad0; }
.badge.green { color:#a7f3c6; background:#18352a; }
.badge.red { color:#ffc4cb; background:#3b2027; }
.tabs { display:flex; gap:8px; margin-bottom:22px; flex-wrap:wrap; }
.tab { background:#151c26; border:1px solid #2a3544; color:#aeb8c7; border-radius:10px; padding:10px 14px; }
.tab.active { background:#26354a; color:#fff; border-color:#3f5674; }
.panel { background:#121923; border:1px solid #293443; border-radius:16px; padding:20px; margin-bottom:18px; }
.panel h2 { margin:0 0 16px; font-size:20px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th, td { padding:13px 12px; border-bottom:1px solid #25303e; text-align:left; }
th { color:#8f9bae; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .wide { grid-column:1/-1; }
label { display:block; color:#9aa8bb; font-size:13px; margin-bottom:6px; }
input, textarea { width:100%; border:1px solid #334055; border-radius:10px; padding:11px 12px; color:#f4f7fb; background:#0e141d; outline:none; }
input:focus, textarea:focus { border-color:#4b83d6; box-shadow:0 0 0 3px #2f7ef71a; }
.checkbox-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; }
.check { display:flex; gap:9px; align-items:center; background:#101721; border:1px solid #2b3646; border-radius:10px; padding:10px; }
.check input { width:auto; }
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(430px,100%); background:#121923; border:1px solid #2b3646; border-radius:20px; padding:30px; box-shadow:0 24px 80px #0007; }
.login-card .brand { margin-bottom:28px; }
.login-card h1 { font-size:27px; }
.login-card .field { margin:14px 0; }
.error { background:#3b2027; color:#ffc6ce; border:1px solid #723541; border-radius:10px; padding:10px 12px; margin:12px 0; }
.success { background:#16362a; color:#b6f4cd; border:1px solid #2c6a4e; border-radius:10px; padding:10px 12px; margin:12px 0; }
.modal-backdrop { position:fixed; inset:0; background:#000a; display:grid; place-items:center; z-index:50; padding:20px; }
.modal { width:min(720px,100%); max-height:90vh; overflow:auto; background:#141b25; border:1px solid #354154; border-radius:18px; padding:22px; }
.modal h2 { margin-top:0; }
.empty { padding:30px; text-align:center; color:#8694a7; border:1px dashed #314054; border-radius:14px; }
@media(max-width:700px){ .topbar{padding:0 16px}.container{padding:24px 16px}.hero{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.userbar span{display:none} }
.company-context { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; margin-bottom:22px; border:1px solid #775c22; background:#302712; color:#ffe2a1; border-radius:14px; }
.context-note { font-size:12px; color:#f2cf83; margin:-6px 0 14px; }
.company-picker { display:grid; gap:10px; margin-top:16px; }
.company-choice { width:100%; text-align:left; border:1px solid #344154; background:#101721; color:#eef2f7; border-radius:12px; padding:14px 16px; }
.company-choice:hover { border-color:#4b83d6; background:#152033; }
.company-choice strong { display:block; font-size:15px; }
.company-choice span { display:block; color:#95a2b5; font-size:12px; margin-top:4px; }
button:disabled { opacity:.45; cursor:not-allowed; }
