:root {
  --navy: #0a1530;
  --navy-2: #101f3d;
  --navy-3: #13264a;
  --gold: #d4af37;
  --gold-soft: #fbf5df;
  --canvas: #f3f5f8;
}

.sidebar {
  background: radial-gradient(circle at 110% 8%, rgba(44, 102, 192, .3), transparent 28%), linear-gradient(180deg, #050d1e 0%, #0a1530 48%, #071126 100%);
  border-right-color: rgba(212, 175, 55, .2);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 145px;
  pointer-events: none;
  border-bottom: 1px solid rgba(212, 175, 55, .6);
  background: linear-gradient(145deg, transparent 55%, rgba(36, 92, 181, .16));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 70% 88%, 0 100%);
}

.brand { height: 116px; padding: 10px 18px; position: relative; z-index: 1; border-bottom: 0; }
.brand-lockup { display: block; width: 208px; height: 92px; padding: 7px 9px; object-fit: contain; object-position: center; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .28); }
.nav { padding-top: 17px; }
.nav-label { color: #70809c; }
.nav a { color: #d3dae7; }
.nav a i { color: #b7c2d2; }
.nav a:hover { background: rgba(37, 83, 153, .22); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(24, 62, 121, .86), rgba(20, 48, 91, .72)); box-shadow: inset 2px 0 var(--gold), inset 0 0 0 1px rgba(71, 130, 218, .28); }

.topbar {
  color: #fff;
  background: radial-gradient(circle at 18% -80%, rgba(45, 106, 206, .42), transparent 35%), linear-gradient(100deg, #050d1e, #0a1530 58%, #061020);
  border-bottom-color: rgba(212, 175, 55, .72);
  box-shadow: 0 5px 18px rgba(6, 14, 31, .12);
}

.global-search { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); }
.global-search input { color: #fff; }
.global-search input::placeholder { color: #9aa8bd; }
.global-search kbd { color: #c8d2df; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.global-search:focus-within { background: rgba(255, 255, 255, .12); border-color: rgba(212, 175, 55, .5); }
.topbar .icon-button { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.topbar .profile strong { color: #fff; }
.topbar .profile small { color: var(--gold); }
.topbar .profile > span { border: 2px solid var(--gold); border-radius: 50%; color: #fff; background: #162849; }
.top-clock { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-inline: 1px solid rgba(255,255,255,.16); }
.top-clock span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #dfe5ee; white-space: nowrap; }
.top-clock span + span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.top-clock time { font-weight: 700; font-variant-numeric: tabular-nums; }

.button.primary { color: #f8e4a1; background: linear-gradient(135deg, #0a1530, #13264a); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .58), 0 6px 18px rgba(7, 18, 42, .18); }
.button.primary:hover { color: #fff; }
.page-heading h1 { color: #0a1530; }
.eyebrow, .overline { color: #b98b13; }
.hero-summary, .detail-hero, .equipment-hero, .field-welcome, .review-intro { background: radial-gradient(circle at 85% -70%, rgba(54, 119, 219, .42), transparent 45%), linear-gradient(120deg, #071126, #0a1530 55%, #13264a); box-shadow: inset 0 -1px rgba(212, 175, 55, .36), 0 10px 30px rgba(7, 18, 42, .12); }
.metric-card { border-top: 2px solid #2e74d8; }
.metric-card.warning, .metric-card.danger { border-top-color: var(--gold); }
.metric-icon { color: #347fdc; background: #eaf2ff; }
.panel { border-color: #e1e6ed; }
.ai-launcher, .ai-drawer > header { background: radial-gradient(circle at 20% -50%, rgba(53, 116, 210, .4), transparent 42%), linear-gradient(120deg, #071126, #13264a); }
.ai-launcher { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .46), 0 12px 32px rgba(7, 19, 42, .28); }

.login-story { background-image: radial-gradient(circle at 45% 30%, rgba(38, 96, 185, .45), transparent 36%), linear-gradient(135deg, #030918 0%, #0a1530 58%, #13264a 100%); }
.login-story::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(150deg, transparent 60%, rgba(212, 175, 55, .8) 60.15%, transparent 60.3%); opacity: .65; }
.login-brand { height: 142px; }
.login-brand .brand-lockup { width: 300px; height: 128px; }
.login-form-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-form-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: none;
}
.login-form-brand strong, .login-form-brand small { display: block; }
.login-form-brand strong { color: #0a1530; font: 800 24px Manrope, sans-serif; letter-spacing: .06em; }
.login-form-brand small { color: #b18212; font-size: 9px; line-height: 1.35; margin-top: 2px; }

@media (max-width: 1200px) { .top-clock { display: none; } }
@media (max-width: 900px) { .brand { height: 106px; } .brand-lockup { width: 195px; height: 84px; } }
@media (max-width: 800px) { .login-brand { height: 110px; } .login-brand .brand-lockup { width: 245px; height: 100px; } }

.mobile-brand { display: none; }
.page-title-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-brand-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid rgba(212, 175, 55, .72); border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(7, 18, 42, .16); }
.page-brand-mark img { width: 35px; height: 35px; object-fit: contain; }
.public-brandbar { display: flex; align-items: center; min-height: 94px; padding: 6px clamp(20px, 4vw, 60px); border-bottom: 1px solid rgba(212, 175, 55, .72); background: radial-gradient(circle at 18% -80%, rgba(45, 106, 206, .42), transparent 35%), linear-gradient(100deg, #050d1e, #0a1530 58%, #061020); box-shadow: 0 5px 18px rgba(0, 0, 0, .2); }
.public-brandbar a { display: inline-flex; padding: 5px 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .28); }
.public-brandbar img { display: block; width: 230px; height: 70px; object-fit: contain; object-position: center; }
.public-shell .page { padding-top: 5vh; }
.public-shell .page-title-group { justify-content: center; }
.public-shell .page-brand-mark { border-color: rgba(212, 175, 55, .88); }

@media (max-width: 900px) {
  .mobile-brand { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; margin-right: 8px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .62); border-radius: 11px; background: #fff; }
  .mobile-brand img { width: 32px; height: 32px; object-fit: contain; }
  .page-brand-mark { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
  .page-brand-mark img { width: 32px; height: 32px; }
}

@media (max-width: 650px) {
  .page-title-group { align-items: flex-start; gap: 10px; }
  .public-brandbar { min-height: 82px; padding-inline: 18px; }
  .public-brandbar img { width: 205px; height: 70px; }
}

.sidebar-logout-form { margin-top: 10px; }
.sidebar-logout-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
}
.sidebar-logout-button:hover,
.sidebar-logout-button:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(212, 175, 55, .6);
  outline: 0;
}
.sidebar-logout-button span { color: var(--gold); font-size: 18px; }
.sidebar-logout-button strong { font-size: 11px; }
