:root {
  --navy: #0b1629;
  --navy-2: #11223d;
  --blue: #1677ff;
  --cyan: #24c5d9;
  --ink: #14213a;
  --muted: #6d7a90;
  --line: #e3eaf3;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --green: #1fa971;
  --violet: #8167e8;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(36,197,217,.17), transparent 25rem),
    radial-gradient(circle at 86% 83%, rgba(22,119,255,.16), transparent 30rem),
    #edf4fa;
}
.auth-card {
  width: min(400px, 100%);
  padding: 36px;
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(217,228,240,.9);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(11,22,41,.12);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #0b2344, #1677ff);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.auth-card .brand-mark { width: 48px; height: 48px; }
.eyebrow, .page-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}
.auth-card .eyebrow { margin-top: 16px; }
.auth-card h1 { margin: 7px 0 6px; font-size: 27px; letter-spacing: -.045em; }
.auth-copy { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 15px; text-align: left; }
.auth-form label { display: grid; gap: 7px; color: #405069; font-size: 12px; font-weight: 750; }
.auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
}
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.auth-form button {
  height: 43px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #116ce6, #2489ff);
  font-size: 13px;
  font-weight: 800;
}
.alert-error { margin: 0 0 18px; padding: 10px 12px; border-radius: 9px; color: #b42318; background: #fff0ee; font-size: 13px; text-align: left; }

.app-body { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 244px;
  padding: 20px 13px 15px;
  color: #cdd8e9;
  background: linear-gradient(180deg, #0b1629, #0d1d35);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 3px 10px 24px; color: #fff; text-decoration: none; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 1px; color: #8fa0ba; font-size: 10px; }
.main-nav { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 39px;
  padding: 0 11px;
  border-radius: 8px;
  color: #bdc9da;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.nav-item > span { width: 16px; color: #94a5c0; text-align: center; font-size: 16px; }
.nav-item.is-active { color: #fff; background: rgba(38,127,255,.20); }
.nav-item.is-active > span { color: #53b9ff; }
.nav-item.is-pending { opacity: .7; cursor: default; }
.nav-caption { margin: 17px 11px 4px; color: #72839e; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.sidebar-footer { margin-top: auto; padding: 12px 11px 3px; color: #8394ad; font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #31c48d; }
.app-main { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; padding: 26px 32px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topbar h1 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.045em; }
.profile { display: flex; align-items: center; gap: 10px; }
.profile-copy { display: grid; gap: 2px; text-align: right; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { color: var(--muted); font-size: 10px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #1d4d86; font-size: 11px; font-weight: 800; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 150px;
  padding: 25px 28px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(112deg, #102545, #124785 62%, #126ac8);
}
.welcome-panel h2 { max-width: 600px; margin: 6px 0; font-size: 23px; letter-spacing: -.04em; }
.welcome-panel p:not(.page-kicker) { max-width: 650px; margin: 0; color: #c9ddfa; font-size: 13px; line-height: 1.55; }
.welcome-panel .page-kicker { color: #71d8ff; }
.welcome-symbol { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.08); font-size: 28px; font-weight: 900; letter-spacing: -.08em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
.metric-card { display: flex; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric-card p { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card strong { display: block; font-size: 18px; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 4px; color: #94a0b2; font-size: 9px; line-height: 1.3; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 800; }
.metric-icon.blue { color: #116ce6; background: #e8f1ff; }
.metric-icon.cyan { color: #098ca1; background: #e4fbfd; }
.metric-icon.violet { color: #6750c9; background: #f0ecff; }
.metric-icon.green { color: #11855a; background: #e8fbf2; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 15px; }
.panel { min-height: 260px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.03em; }
.tag { padding: 5px 7px; border-radius: 5px; color: #697b92; background: #f0f4f8; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 175px; text-align: center; }
.empty-state > span { color: #8bbaf5; font-size: 32px; }
.empty-state p { margin: 10px 0 4px; color: #405069; font-size: 13px; font-weight: 750; }
.empty-state small { max-width: 300px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.checklist ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { color: #657289; font-size: 12px; }
.checklist li span { margin-right: 7px; color: #9ba9bb; }
.checklist li.done { color: #344258; }
.checklist li.done span { color: var(--green); font-weight: 900; }

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: 100%; min-height: auto; }
  .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-caption, .sidebar-footer { display: none; }
  .app-body { display: block; }
  .app-main { width: 100%; margin: 0; padding: 20px; }
  .profile-copy { display: none; }
  .welcome-symbol { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
}
