:root {
  color: #163049;
  background: #f4f7f7;
}

a { color: #236978; }

.side {
  background: #eaf2f3;
  color: #163049;
  border-right: 1px solid #d7e4e6;
}

.brand {
  color: #163049;
  font-size: 20px;
  gap: 5px;
  min-height: 54px;
}

.brand-logo {
  width: 48px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.top-logo { display: none; }

.nav-button { color: #3d5965; font-weight: 600; }
.nav-button:hover,
.nav-button.active {
  background: #d8e9eb;
  color: #163049;
  box-shadow: inset 3px 0 #2b5c6d;
}
.side-foot { border-color: #cedfe1; color: #64808b; }

.topbar { border-color: #d9e5e7; }
.top-title { color: #163049; }
.sample-band { padding: 8px 30px; background: #fff2d6; border-bottom: 1px solid #ead7a7; color: #6f501b; font-size: 12px; font-weight: 700; }
.avatar { background: #dcebed; color: #214e60; }
.icon-button { border-color: #ccdcdf; color: #285363; }
.icon-button:hover,
.button.secondary:hover { background: #eaf3f4; }

.button { background: #163049; border-color: #163049; }
.button:hover { background: #2b5c6d; }
.button.secondary { color: #244f60; border-color: #cddfe2; }
.metric-top svg { color: #2b5c6d; }
.metric-top { gap: 8px; }
.metric-top svg { flex: none; }
#mcp-analytics > .section-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.metric strong,
.name { color: #163049; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 20px; }
.trend-chart { min-width: 0; border-top: 1px solid #d5e3e5; padding-top: 14px; }
.trend-chart h3 { font-size: 14px; margin: 0 0 15px; }
.trend-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-height: 30px; font-size: 12px; color: #56727b; }
.trend-row strong { color: #163049; text-align: right; }
.trend-track { height: 10px; background: #e9eff0; overflow: hidden; border-radius: 2px; }
.trend-fill { height: 100%; background: #2b8290; border-radius: 2px; }
.trend-fill.ftl { background: #70a77d; }
.source-caveat { margin: 0 0 28px; color: #607982; font-size: 12px; }
#mcp-analytics > .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs { background: #ecf2f3; }
.tabs button.active { color: #234f5d; }
.badge { background: #e0efec; color: #1c6665; }
.badge.warning { background: #fff0e4; color: #9c542e; }
.search:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid #68a2a8; outline-offset: 1px; }

.login {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 20px;
  background: #eaf2f3;
}

.login-pane {
  display: block;
  width: min(100%, 430px);
  min-height: 0;
  padding: 38px;
  background: #fff;
  border: 1px solid #d4e2e5;
  border-radius: 8px;
  box-shadow: 0 12px 32px #16304912;
}

.login-inner { width: 100%; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 34px;
  color: #163049;
}
.login-logo { width: 82px; height: 70px; object-fit: contain; flex: none; }
.login-brand strong { display: block; font-size: 29px; line-height: 1.1; }
.login-brand span { display: block; margin-top: 4px; color: #3b6975; font-size: 13px; font-weight: 600; }
.login-inner h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.login-inner p { margin-bottom: 25px; }
.login-form { display: grid; gap: 14px; }
.login-form .error { min-height: 16px; }
.captcha-wrap { min-height: 78px; max-width: 100%; overflow: hidden; }
.login-inner .button { background: #163049; border-color: #163049; }
.login-inner .button:hover { background: #2b5c6d; }

@media (max-width: 700px) {
  .trend-grid { grid-template-columns: 1fr; gap: 12px; }
  #mcp-analytics > .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mcp-analytics > .metrics .metric:last-child { grid-column: 1 / -1; }
  .login { padding: 16px; }
  .login-pane { min-height: 0; padding: 30px 24px; }
  .brand-logo { width: 46px; height: 42px; }
  .top-actions { gap: 7px; }
  .top-title { font-size: 14px; }
  .sample-band { padding: 8px 15px; }
  .top-logo { display: block; width: 32px; height: 30px; object-fit: contain; flex: none; }
}
