:root {
  --bg: #06101e;
  --panel: #0c1829;
  --panel2: #101f33;
  --panel3: #14263c;
  --line: #223651;
  --muted: #8ba0bb;
  --text: #ecf3fb;
  --orange: #ff6b2c;
  --orange2: #ff8d4b;
  --red: #ff4d5e;
  --amber: #f7bd4a;
  --green: #3dd8a1;
  --blue: #55a7ff;
  --purple: #a988ff;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mobile-only { display: none; }
.eyebrow { margin: 0 0 5px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--orange2); }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: radial-gradient(circle at 18% 28%, rgba(255,107,44,.18), transparent 28%), radial-gradient(circle at 80% 80%, rgba(85,167,255,.13), transparent 28%), #06101e; }
.login-art { padding: clamp(42px,8vw,120px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-art:after { content:""; position:absolute; width:560px; height:560px; border:1px solid rgba(255,255,255,.07); border-radius:50%; right:-240px; top:-180px; box-shadow: 0 0 0 80px rgba(255,255,255,.015), 0 0 0 160px rgba(255,255,255,.012); }
.brand-orbit { width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--red)); box-shadow: 0 16px 45px rgba(255,91,44,.33); margin-bottom: 30px; font-weight: 900; font-size: 26px; }
.login-art h1 { font-size: clamp(38px,5.4vw,74px); max-width: 920px; line-height: .98; letter-spacing: -.055em; margin: 0 0 25px; }
.login-lead { max-width: 690px; color: #a9bad0; font-size: 18px; line-height: 1.7; }
.login-points { display: flex; gap: 45px; margin-top: 45px; }
.login-points div { display:flex; flex-direction:column; gap:3px; }
.login-points b { font-size:30px; }
.login-points span { color:var(--muted); font-size:12px; }
.login-card { align-self:center; justify-self:center; width:min(470px, calc(100% - 40px)); padding: 42px; border:1px solid rgba(255,255,255,.1); border-radius:26px; background:rgba(9,21,38,.88); box-shadow:var(--shadow); backdrop-filter: blur(18px); }
.logo-line { display:flex; gap:12px; align-items:center; margin-bottom:36px; }
.logo-line strong, .sidebar-brand strong { display:block; }
.logo-line small, .sidebar-brand small { display:block; color:var(--muted); margin-top:2px; }
.logo-mark { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(145deg,#ff7938,#e83d50); }
.login-card h2 { font-size:28px; margin:0 0 8px; }
.login-card > p { color:var(--muted); margin:0 0 26px; line-height:1.6; }
label { display:block; color:#aabbd0; font-size:12px; font-weight:700; margin:16px 0; }
input, select, textarea { width:100%; border:1px solid var(--line); background:#081423; color:var(--text); border-radius:11px; padding:12px 13px; outline:none; margin-top:7px; transition:.2s; }
input:focus, select:focus, textarea:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,107,44,.12); }
.primary, .ghost, .danger-button { border:0; border-radius:11px; padding:11px 15px; font-weight:800; }
.primary { color:white; background:linear-gradient(135deg,var(--orange),#ee4b43); box-shadow:0 10px 25px rgba(255,91,44,.18); }
.primary:hover { filter:brightness(1.08); transform:translateY(-1px); }
.ghost { color:#c7d4e4; background:#12233a; border:1px solid #263b58; }
.ghost:hover { background:#182d48; }
.danger-button { background:rgba(255,77,94,.14); color:#ff8a96; border:1px solid rgba(255,77,94,.3); }
.full { width:100%; display:flex; align-items:center; justify-content:space-between; }
.compact { padding:9px 12px; font-size:12px; }
.demo-accounts { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin:22px 0 12px; }
.demo-accounts button { background:#0d1b2d; color:#9eb0c6; border:1px solid #213450; border-radius:9px; padding:8px; font-size:11px; }
.demo-accounts button:hover { border-color:var(--orange); color:white; }
.credential-note { color:#758ba5; }
.credential-note code { color:#ffab79; }
.form-error { color:#ff8691 !important; font-size:12px; min-height:18px; margin:12px 0 0 !important; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:255px 1fr; }
.sidebar { height:100vh; position:sticky; top:0; background:#081424; border-right:1px solid #1a2d47; display:flex; flex-direction:column; z-index:30; }
.sidebar-brand { display:flex; gap:11px; align-items:center; padding:22px 18px 17px; }
.sidebar-brand .logo-mark { width:39px; height:39px; }
.system-chip { margin:0 14px 16px; border:1px solid rgba(61,216,161,.18); background:rgba(61,216,161,.07); color:#78ddb9; padding:9px 10px; border-radius:10px; font-size:10px; display:flex; align-items:center; gap:8px; }
.system-chip i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); }
#nav { flex:1; overflow:auto; padding:0 10px 18px; }
.nav-group-title { color:#526a87; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; padding:14px 10px 7px; }
.nav-item { width:100%; border:0; background:transparent; color:#8da4bf; display:flex; align-items:center; gap:11px; border-radius:10px; padding:10px 11px; margin:2px 0; text-align:left; font-size:12px; font-weight:700; }
.nav-item i { width:23px; height:23px; display:grid; place-items:center; border-radius:7px; background:#0e1d30; font-style:normal; }
.nav-item:hover { color:white; background:#0e1e32; }
.nav-item.active { color:white; background:linear-gradient(90deg,rgba(255,107,44,.18),rgba(255,107,44,.04)); box-shadow:inset 3px 0 var(--orange); }
.nav-item.active i { background:rgba(255,107,44,.18); }
.sidebar-footer { padding:14px; border-top:1px solid #1a2d47; }
.user-mini { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.avatar { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:linear-gradient(145deg,#244160,#17283e); color:#dcecff; font-weight:900; }
.user-mini b, .top-user b { display:block; font-size:11px; }
.user-mini small, .top-user small { display:block; color:var(--muted); font-size:9px; margin-top:2px; text-transform:capitalize; }
.main { min-width:0; }
.topbar { height:76px; position:sticky; top:0; z-index:20; background:rgba(6,16,30,.87); backdrop-filter:blur(15px); border-bottom:1px solid #1c304a; padding:0 27px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.topbar-left { display:flex; align-items:center; gap:12px; }
.topbar h1 { margin:0; font-size:19px; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.search-shell { width:270px; display:flex; align-items:center; gap:7px; background:#0b192a; border:1px solid #20344e; border-radius:10px; padding:0 11px; }
.search-shell input { margin:0; border:0; background:transparent; box-shadow:none; padding:9px 3px; }
.icon-button { width:38px; height:38px; border-radius:10px; background:#0e1e31; color:#b4c4d8; border:1px solid #223752; display:grid; place-items:center; }
.notification-button { position:relative; }
.notification-button b { position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; display:grid; place-items:center; background:var(--red); color:white; border-radius:8px; font-size:9px; border:2px solid var(--bg); }
.top-user { display:flex; align-items:center; gap:8px; padding-left:5px; }
.content { padding:25px 27px 50px; max-width:1650px; margin:auto; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:20px; }
.page-head h2 { margin:0; font-size:25px; letter-spacing:-.025em; }
.page-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.action-row { display:flex; gap:8px; flex-wrap:wrap; }
.grid { display:grid; gap:16px; }
.metrics { grid-template-columns:repeat(5,1fr); }
.metric { background:linear-gradient(145deg,#0d1a2c,#0a1727); border:1px solid #1d324c; border-radius:15px; padding:18px; position:relative; overflow:hidden; min-height:120px; }
.metric:after { content:""; width:80px; height:80px; position:absolute; right:-24px; bottom:-28px; background:var(--accent, var(--orange)); opacity:.08; border-radius:50%; box-shadow:0 0 0 18px var(--accent, var(--orange)); }
.metric .metric-icon { font-size:19px; }
.metric small { display:block; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:800; font-size:9px; margin:14px 0 4px; }
.metric strong { font-size:28px; }
.metric em { display:block; color:#7188a3; font-style:normal; font-size:9px; margin-top:5px; }
.panel { background:linear-gradient(145deg,#0d1a2c,#0a1727); border:1px solid #1d324c; border-radius:16px; padding:18px; }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:15px; }
.panel-head h3 { margin:0; font-size:14px; }
.panel-head p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.dashboard-grid { grid-template-columns:1.65fr .9fr; margin-top:16px; }
.map-stage { min-height:390px; background:linear-gradient(rgba(6,17,30,.2),rgba(6,17,30,.65)), repeating-linear-gradient(0deg,transparent 0 44px,rgba(72,106,139,.1) 45px), repeating-linear-gradient(90deg,transparent 0 54px,rgba(72,106,139,.1) 55px), #091726; border:1px solid #1b314b; border-radius:13px; position:relative; overflow:hidden; }
.map-stage:before { content:""; position:absolute; inset:-20%; background:radial-gradient(circle at 25% 30%,rgba(61,216,161,.08),transparent 16%), radial-gradient(circle at 68% 55%,rgba(255,107,44,.12),transparent 20%), radial-gradient(circle at 42% 75%,rgba(85,167,255,.08),transparent 18%); transform:rotate(-7deg); }
.map-road { position:absolute; height:11px; background:#172b42; border-top:1px solid #29425e; border-bottom:1px solid #29425e; transform-origin:left; opacity:.9; }
.map-pin { position:absolute; width:28px; height:28px; border-radius:50% 50% 50% 5px; transform:rotate(-45deg); display:grid; place-items:center; border:2px solid rgba(255,255,255,.7); box-shadow:0 5px 20px rgba(0,0,0,.45); cursor:pointer; }
.map-pin span { transform:rotate(45deg); font-size:8px; font-weight:900; }
.risk-critical { background:var(--red); color:white; }
.risk-high { background:#ff7b41; color:white; }
.risk-medium { background:var(--amber); color:#382500; }
.risk-low { background:var(--green); color:#063728; }
.risk-list { display:flex; flex-direction:column; gap:8px; max-height:410px; overflow:auto; }
.risk-row { border:1px solid #1c314b; background:#091625; border-radius:11px; padding:12px; display:grid; grid-template-columns:1fr auto; gap:8px; cursor:pointer; }
.risk-row:hover { border-color:#385875; transform:translateY(-1px); }
.risk-row strong { font-size:11px; }
.risk-row p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.score { font-size:23px; font-weight:900; }
.bottom-grid { grid-template-columns:1fr 1fr 1fr; margin-top:16px; }
.donut { width:150px; height:150px; border-radius:50%; margin:12px auto; background:conic-gradient(var(--red) 0 22%, #ff7b41 22% 40%, var(--amber) 40% 69%, var(--green) 69% 100%); display:grid; place-items:center; }
.donut:after { content:"Risk"; width:94px; height:94px; background:#0b1828; border-radius:50%; display:grid; place-items:center; color:var(--muted); font-size:11px; font-weight:800; }
.bar-row { display:grid; grid-template-columns:100px 1fr 35px; gap:8px; align-items:center; margin:11px 0; font-size:10px; color:#9eb0c5; }
.bar { height:7px; background:#15283e; border-radius:5px; overflow:hidden; }
.bar i { display:block; height:100%; background:linear-gradient(90deg,var(--orange),var(--orange2)); border-radius:5px; }
.table-shell { overflow:auto; border:1px solid #1d324c; border-radius:14px; }
table { width:100%; border-collapse:collapse; min-width:850px; background:#0a1727; }
th { text-align:left; color:#6f87a2; font-size:9px; text-transform:uppercase; letter-spacing:.08em; padding:12px; background:#0d1c2e; border-bottom:1px solid #20344e; }
td { padding:12px; border-bottom:1px solid #172b42; font-size:11px; color:#b9c8d9; }
tr:hover td { background:#0c1b2d; }
.cell-title { color:white; font-weight:800; }
.cell-sub { color:#7188a3; font-size:9px; margin-top:3px; }
.badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:4px 8px; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; border:1px solid transparent; }
.badge.critical, .badge.open { color:#ff8d98; background:rgba(255,77,94,.1); border-color:rgba(255,77,94,.23); }
.badge.high, .badge.in_progress, .badge.pending { color:#ffad80; background:rgba(255,107,44,.1); border-color:rgba(255,107,44,.23); }
.badge.medium, .badge.scheduled, .badge.assigned, .badge.sandbox { color:#f7cc76; background:rgba(247,189,74,.1); border-color:rgba(247,189,74,.23); }
.badge.low, .badge.closed, .badge.completed, .badge.connected, .badge.complete, .badge.active, .badge.validated { color:#77e2bb; background:rgba(61,216,161,.1); border-color:rgba(61,216,161,.23); }
.badge.blocked, .badge.expired { color:#ff8d98; background:rgba(255,77,94,.1); border-color:rgba(255,77,94,.23); }
.badge.not_configured { color:#91a8c2; background:rgba(139,160,187,.08); border-color:rgba(139,160,187,.2); }
.inline-actions { display:flex; gap:5px; }
.tiny-button { border:1px solid #29415e; background:#102139; color:#aebfd2; border-radius:7px; padding:5px 7px; font-size:8px; font-weight:800; }
.tiny-button:hover { border-color:var(--orange); color:white; }
.toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.toolbar input, .toolbar select { width:auto; min-width:150px; margin:0; padding:9px 10px; font-size:10px; }
.empty { text-align:center; padding:45px 20px; color:#6e849d; }
.detail-layout { grid-template-columns:330px 1fr; }
.profile-card { text-align:center; }
.risk-ring { width:120px; height:120px; margin:12px auto; border-radius:50%; padding:8px; background:conic-gradient(var(--ring-color,var(--orange)) calc(var(--score)*1%),#162a41 0); }
.risk-ring div { height:100%; border-radius:50%; background:#0b1828; display:grid; place-items:center; }
.risk-ring strong { font-size:34px; }
.risk-ring small { display:block; color:var(--muted); font-size:8px; }
.meta-grid { grid-template-columns:repeat(2,1fr); gap:8px; margin-top:17px; }
.meta-box { text-align:left; background:#091625; border:1px solid #1b3049; border-radius:10px; padding:10px; }
.meta-box small { color:#7188a3; font-size:8px; display:block; text-transform:uppercase; font-weight:800; }
.meta-box b { display:block; font-size:10px; margin-top:4px; }
.factor { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #1b2e46; font-size:10px; }
.factor span:last-child { color:#ff9d6e; font-weight:800; }
.timeline { position:relative; padding-left:20px; }
.timeline:before { content:""; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background:#29415e; }
.timeline-item { position:relative; padding:0 0 18px; }
.timeline-item:before { content:""; position:absolute; left:-19px; top:3px; width:9px; height:9px; border-radius:50%; background:var(--orange); border:2px solid #0b1828; }
.timeline-item b { font-size:10px; }
.timeline-item p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.kanban { grid-template-columns:repeat(4,1fr); align-items:start; }
.kanban-column { background:#091625; border:1px solid #1b3049; border-radius:13px; padding:11px; min-height:400px; }
.kanban-column h3 { font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#8298b2; margin:2px 3px 12px; display:flex; justify-content:space-between; }
.ticket-card { background:#0e1d30; border:1px solid #213650; border-radius:11px; padding:11px; margin-bottom:9px; cursor:pointer; }
.ticket-card:hover { border-color:#3a5877; }
.ticket-card strong { display:block; font-size:10px; margin:7px 0 5px; }
.ticket-card p { color:#7e94ad; font-size:9px; line-height:1.45; margin:0; }
.ticket-card footer { display:flex; justify-content:space-between; color:#7188a3; font-size:8px; margin-top:10px; }
.model-grid { grid-template-columns:repeat(4,1fr); }
.model-card { position:relative; }
.model-card .model-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(169,136,255,.12); color:#c7aeff; font-size:20px; }
.model-card h3 { margin:13px 0 4px; font-size:12px; }
.model-card p { color:var(--muted); font-size:9px; line-height:1.5; }
.gauge-row { display:flex; gap:12px; margin-top:13px; }
.gauge-row div { flex:1; background:#091625; border:1px solid #1c304a; border-radius:9px; padding:9px; }
.gauge-row small { color:#7188a3; font-size:8px; }
.gauge-row b { display:block; margin-top:3px; font-size:14px; }
.progress { height:7px; border-radius:6px; background:#172a42; overflow:hidden; }
.progress i { height:100%; display:block; border-radius:6px; background:linear-gradient(90deg,var(--orange),var(--green)); }
.readiness-grid { grid-template-columns:repeat(3,1fr); }
.prereq-card { display:flex; gap:11px; align-items:flex-start; }
.check-dot { width:28px; height:28px; flex:0 0 auto; border-radius:9px; display:grid; place-items:center; background:#11233a; border:1px solid #263e5b; color:#8299b4; }
.prereq-card.complete .check-dot { background:rgba(61,216,161,.12); color:var(--green); border-color:rgba(61,216,161,.3); }
.prereq-card.blocked .check-dot { background:rgba(255,77,94,.12); color:var(--red); border-color:rgba(255,77,94,.3); }
.prereq-card h3 { margin:0 0 5px; font-size:11px; }
.prereq-card p { margin:0; color:var(--muted); font-size:9px; line-height:1.45; }
.prereq-card footer { margin-top:9px; display:flex; gap:6px; flex-wrap:wrap; }
.modal { position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:20px; }
.modal-backdrop { position:absolute; inset:0; background:rgba(1,7,14,.76); backdrop-filter:blur(7px); }
.modal-card { position:relative; width:min(760px,100%); max-height:90vh; overflow:auto; background:#0c1a2c; border:1px solid #2a405c; border-radius:19px; box-shadow:var(--shadow); }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding:19px 21px; border-bottom:1px solid #213651; position:sticky; top:0; background:#0c1a2c; z-index:2; }
.modal-head h2 { margin:0; font-size:18px; }
.modal-body { padding:21px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0 13px; }
.form-grid .wide { grid-column:1/-1; }
.form-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:18px; }
.notification-list { display:flex; flex-direction:column; gap:9px; }
.notification-item { padding:12px; border:1px solid #20344e; border-radius:11px; background:#091625; }
.notification-item.unread { border-color:#4b5266; box-shadow:inset 3px 0 var(--orange); }
.notification-item h3 { margin:0 0 5px; font-size:11px; }
.notification-item p { margin:0; color:var(--muted); font-size:9px; line-height:1.45; }
.notification-item footer { margin-top:7px; color:#617993; font-size:8px; }
.toast-root { position:fixed; top:18px; right:18px; z-index:120; display:flex; flex-direction:column; gap:9px; }
.toast { width:min(350px,calc(100vw - 36px)); background:#0f2034; border:1px solid #2a415d; border-radius:12px; padding:13px 14px; box-shadow:var(--shadow); animation:slidein .22s ease; }
.toast.success { box-shadow:inset 3px 0 var(--green),var(--shadow); }
.toast.error { box-shadow:inset 3px 0 var(--red),var(--shadow); }
.toast b { display:block; font-size:11px; }
.toast span { display:block; color:var(--muted); font-size:9px; margin-top:3px; }
@keyframes slidein { from{transform:translateX(30px);opacity:0} }
.loading { display:grid; place-items:center; min-height:300px; color:#8298b2; }
.spinner { width:38px; height:38px; border:3px solid #243a54; border-top-color:var(--orange); border-radius:50%; animation:spin .8s linear infinite; margin-bottom:12px; }
@keyframes spin { to{transform:rotate(360deg)} }
@media(max-width:1200px){ .metrics{grid-template-columns:repeat(3,1fr)} .model-grid{grid-template-columns:repeat(2,1fr)} .readiness-grid{grid-template-columns:repeat(2,1fr)} .kanban{grid-template-columns:repeat(2,1fr)} }
@media(max-width:950px){ .mobile-only{display:grid}.app-shell{display:block}.sidebar{position:fixed;left:-280px;width:260px;transition:.25s;box-shadow:var(--shadow)}.sidebar.open{left:0}.topbar{padding:0 16px}.content{padding:20px 16px 40px}.search-shell{display:none}.top-user{display:none}.dashboard-grid,.detail-layout{grid-template-columns:1fr}.bottom-grid{grid-template-columns:1fr 1fr}.login-screen{grid-template-columns:1fr}.login-art{display:none} }
@media(max-width:650px){ .metrics{grid-template-columns:repeat(2,1fr)}.metric{min-height:105px;padding:14px}.metric strong{font-size:22px}.bottom-grid,.model-grid,.readiness-grid,.kanban{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.page-head{align-items:flex-start;flex-direction:column}.topbar-actions .primary{display:none}.content{padding:16px 12px 38px}.login-card{padding:27px 22px}.demo-accounts{grid-template-columns:1fr 1fr}.topbar h1{font-size:15px}.meta-grid{grid-template-columns:1fr}.modal{padding:8px}.modal-card{max-height:96vh} }
