:root {
  color-scheme: dark;
  --bg: #080b0f;
  --sidebar: #0d1117;
  --panel: #11171e;
  --panel-2: #161d25;
  --line: #26303a;
  --ink: #f7f9fb;
  --muted: #8d99a6;
  --yellow: #ffdc00;
  --yellow-soft: rgba(255,220,0,.12);
  --blue: #2e9bff;
  --green: #23c875;
  --red: #ff5d62;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; display: flex; flex-direction: column; padding: 20px 14px; background: var(--sidebar); border-right: 1px solid var(--line); z-index: 10; }
.side-brand { padding: 0 10px 24px; border-bottom: 1px solid var(--line); }
.side-brand img { display: block; width: 116px; height: 116px; object-fit: cover; border-radius: 22px; }
.side-nav { display: grid; gap: 5px; padding-top: 22px; }
.nav-item, .logout-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font-weight: 650; }
.nav-item span, .logout-button span { width: 22px; text-align: center; font-size: 18px; }
.nav-item:hover { color: var(--ink); background: var(--panel); }
.nav-item.active { color: #080b0f; background: var(--yellow); }
.logout-button { margin-top: auto; border: 1px solid var(--line); }
.logout-button:hover { color: var(--ink); border-color: var(--muted); }
.workspace { width: calc(100% - 230px); margin-left: 230px; min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; gap: 14px; padding: 0 30px; position: sticky; top: 0; z-index: 7; border-bottom: 1px solid var(--line); background: rgba(8,11,15,.9); backdrop-filter: blur(16px); }
.topbar h1 { margin: 1px 0 0; font-size: 19px; }
.eyebrow { color: var(--yellow); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.mobile-logo { display: none; }
.icon-button { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--ink); font-size: 21px; }
.icon-button:hover { border-color: var(--yellow); color: var(--yellow); }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.user-chip > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: #080b0f; font-weight: 900; }
.user-chip div { display: grid; font-size: 12px; }
.user-chip small { color: var(--muted); }
main { width: min(1400px, 100%); margin: 0 auto; padding: 30px 34px 60px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.welcome-row h2 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); }
.muted { color: var(--muted); margin: 0; }
.status-live { padding: 9px 12px; color: #9de9be; background: rgba(35,200,117,.1); border: 1px solid rgba(35,200,117,.25); border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-live i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.metrics { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.metric { min-height: 154px; padding: 18px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); display: flex; flex-direction: column; align-items: flex-start; }
.metric-yellow { border-color: rgba(255,220,0,.35); background: linear-gradient(145deg, #29250b, #15160f); }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 9px; color: #0a0c0f; background: var(--yellow); font-weight: 900; }
.metric-icon.blue { background: var(--blue); }.metric-icon.green { background: var(--green); }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { margin: 2px 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.04em; }
.metric small { color: #66717d; font-size: 11px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 14px 0 26px; }
.quick-actions button { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--ink); text-align: left; }
.quick-actions button:hover { border-color: var(--yellow); transform: translateY(-1px); }
.quick-actions b { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 9px; color: var(--yellow); background: var(--yellow-soft); font-size: 19px; }
.quick-actions span { display: grid; gap: 2px; min-width: 0; }
.quick-actions strong { font-size: 12px; }.quick-actions small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-card, .panel { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.search-card { display: grid; grid-template-columns: auto minmax(320px, 1fr); align-items: end; gap: 24px; padding: 18px 20px; margin-bottom: 20px; }
.search-card h2, .section-heading h2 { margin: 3px 0 0; font-size: 18px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input { width: 100%; padding: 12px 13px; outline: 0; border: 1px solid var(--line); border-radius: 10px; background: #0b1015; color: var(--ink); }
input::placeholder { color: #65717d; }
input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,220,0,.08); }
.primary-button { padding: 12px 20px; border: 0; border-radius: 10px; color: #080b0f; background: var(--yellow); font-weight: 850; }
.primary-button:hover { background: #ffe733; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.panel { min-width: 0; padding: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.text-button { border: 0; background: transparent; color: var(--yellow); font-size: 11px; }
.card-list, .results { display: grid; gap: 9px; }
.data-card { position: relative; padding: 14px 15px 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #0c1117; }
.data-card::before { content: ""; position: absolute; left: -1px; top: 15px; bottom: 15px; width: 3px; border-radius: 3px; background: var(--yellow); }
.data-card h3 { margin: 7px 0 5px; font-size: 14px; }
.data-card p { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.data-card p strong { color: var(--ink); font-size: 15px; }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: #9de9be; background: rgba(35,200,117,.1); font-size: 10px; font-weight: 800; }
.results { grid-column: 1 / -1; max-height: 440px; padding-top: 12px; overflow: auto; border-top: 1px solid var(--line); }
.results h3 { margin: 8px 0 0; color: var(--yellow); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }
.bottom-nav { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 10%, #292509 0, #0d1117 34%, #05070a 75%); }
.login-screen::before { content: ""; position: fixed; inset: 0; opacity: .04; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 32px 32px; }
.login-card { position: relative; width: min(410px, 100%); display: grid; gap: 15px; padding: 30px; border: 1px solid #35341f; border-radius: 24px; background: rgba(15,20,26,.96); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.login-logo { width: 124px; height: 124px; object-fit: cover; border-radius: 23px; box-shadow: 0 12px 34px rgba(255,220,0,.12); }
.login-copy h2 { margin: 5px 0 3px; font-size: 28px; }
.login-card label { display: grid; gap: 7px; color: #cdd4db; font-size: 12px; font-weight: 700; }
.wide { width: 100%; margin-top: 3px; }
.error { min-height: 17px; margin: -2px 0; color: var(--red); font-size: 12px; }
.secure-note { color: #71808c; text-align: center; }.secure-note::first-letter { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 11px 17px; border: 1px solid #4c4b2d; border-radius: 99px; background: #222313; color: var(--yellow); box-shadow: 0 12px 34px rgba(0,0,0,.4); font-size: 12px; text-align: center; }
@media (max-width: 1000px) {
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { height: 68px; padding: max(8px, env(safe-area-inset-top)) 16px 8px; }
  .mobile-logo { display: block; width: 43px; height: 43px; object-fit: cover; border-radius: 10px; }
  .topbar-title .eyebrow { display: none; }.topbar-title h1 { font-size: 17px; }
  .user-chip { display: none; }
  main { padding: 22px 14px 92px; }
  .welcome-row { align-items: start; }.status-live { margin-top: 3px; font-size: 0; padding: 8px; }.status-live i { margin: 0; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { min-height: 132px; padding: 14px; }.metric-yellow { grid-column: 1 / -1; }
  .metric-icon { margin-bottom: 9px; }
  .quick-actions { gap: 8px; margin-bottom: 20px; }.quick-actions button { padding: 10px; }.quick-actions small { display: none; }
  .search-card { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .panel { padding: 15px; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 6px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(10,14,19,.96); backdrop-filter: blur(14px); }
  .bottom-nav button { display: grid; place-items: center; gap: 2px; padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
  .bottom-nav span { font-size: 19px; line-height: 22px; }.bottom-nav .active { color: var(--yellow); }
  .toast { bottom: 82px; }
}
@media (max-width: 430px) {
  .welcome-row h2 { font-size: 24px; }
  .search-row { grid-template-columns: 1fr; }.search-row .primary-button { width: 100%; }
  .quick-actions strong { font-size: 11px; }
  .login-card { padding: 24px; }.login-logo { width: 105px; height: 105px; }
}
