/* Ally Signals visual foundation.
   This vendored file is intentionally identical across independently deployed Ally services. */
:root {
  --navy: #17243a;
  --navy-raised: #21324e;
  --orange: #f15a24;
  --orange-soft: #fff2ec;
  --canvas: #ffffff;
  --raised: #f7f8fa;
  --ink: #172033;
  --muted: #667085;
  --line: #dce1e8;
  --line-soft: #edf0f4;
  --success: #147a54;
  --success-soft: #eaf8f1;
  --warning: #9b5c00;
  --warning-soft: #fff7e6;
  --danger: #b42318;
  --danger-soft: #fff0ef;
  --focus: #315cba;
  --shadow: 0 8px 26px rgba(23, 36, 58, 0.08);

  /* Compatibility aliases for each service's feature stylesheet. */
  --bg: var(--canvas);
  --surface: var(--canvas);
  --surface-subtle: var(--raised);
  --accent: var(--orange);
  --accent-ink: #bd3e10;
  --ok: var(--success);
  --ok-bg: var(--success-soft);
  --warn: var(--warning);
  --warn-bg: var(--warning-soft);
  --alert: var(--danger);
  --alert-bg: var(--danger-soft);
  --info: #315c9d;
  --info-bg: #edf3ff;
  --planned: #6941c6;
  --planned-bg: #f4f3ff;
}
body {
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: #244fa7; }
h1 { margin-bottom: 0; font-size: 1.08rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin-bottom: 0; font-size: clamp(1.34rem, 2vw, 1.75rem); line-height: 1.18; letter-spacing: -0.025em; }
h3 { margin-bottom: 0; font-size: 1.08rem; line-height: 1.3; }
h4 { margin-bottom: 0; font-size: 0.9rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 2px; }

.login-view { padding: 24px; background: #f4f6f9; }
.login-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.login-panel h1 { font-size: 1.7rem; }
.form-stack label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.form-stack input,
.form-stack select,
.form-stack textarea,
select,
input[type="search"],
input[type="number"],
textarea {
  min-height: 40px;
  padding: 9px 11px;
  border-color: #c9d0da;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
select:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(49, 92, 186, 0.13);
}

.app-shell { grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  gap: 0;
  padding: 20px 14px 14px;
  border-right: 0;
  background: var(--navy);
  color: #fff;
}
.brand-lockup {
  gap: 11px;
  padding: 0;
  border-bottom: 0;
}
.brand-mark,
.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
}
.brand-kicker,
.label,
.eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.075em;
}
.sidebar .brand-kicker,
.sidebar .label { color: #9ca9bc; }
.side-nav {
  gap: 4px;
  margin-top: 28px;
}
.side-nav a {
  min-height: 39px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #c8d1df;
  font-weight: 780;
}
.side-nav a:hover,
.side-nav a.is-active {
  background: var(--navy-raised);
  color: #fff;
}
.sidebar-footer {
  gap: 9px;
  margin-top: auto;
  padding: 14px 8px 3px;
  border-top-color: rgba(255, 255, 255, 0.13);
}
.sidebar-footer a {
  color: #b8c5d8;
  font-size: 0.74rem;
}
.sidebar-footer a:hover,
.sidebar-footer a.active { color: #fff; }

.workspace { background: var(--canvas); }
.topbar {
  min-height: 72px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}
.topbar label,
.topbar-group label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: normal;
  text-transform: none;
}
.user-chip,
.button,
.icon-button,
.filter-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}
.button:hover,
.icon-button:hover,
.filter-button:hover { border-color: #b3bcc9; }
.button.primary,
.filter-button.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.button.primary:hover,
.filter-button.is-active:hover { background: #d94b19; }

main {
  width: min(1500px, 100%);
  padding: 24px clamp(18px, 3vw, 40px) 60px;
}
.page-section { scroll-margin-top: 88px; }
.section-heading,
.panel-heading { margin-bottom: 15px; }
.section-note,
.muted { line-height: 1.5; }
.panel,
.metric,
.metric-card,
.card,
.list-item,
.locked-panel,
.answer-box {
  border-color: var(--line);
  border-radius: 9px;
  background: var(--canvas);
  box-shadow: none;
}
.panel-heading {
  border-bottom-color: var(--line-soft);
  background: var(--raised);
}
.metric-grid,
.cards,
.split-grid,
.studio-grid { gap: 14px; }
.status,
.tag {
  border-radius: 999px;
  font-size: 0.7rem;
}
.status.configured,
.status.operational,
.status.ready,
.status.active,
.status.success,
.status.ok,
.status.reviewed,
.status.met { background: var(--success-soft); color: var(--success); }
.status.warning,
.status.planned,
.status.partial,
.status.stub,
.status.inactive,
.status.development,
.status.draft,
.status.intermediate { background: var(--warning-soft); color: var(--warning); }
.status.alert,
.status.error,
.status.failed,
.status.failure,
.status.high,
.status.fail,
.status.incident,
.status.unavailable { background: var(--danger-soft); color: var(--danger); }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    width: 100%;
    max-width: 100vw;
    height: auto;
    padding: 12px;
  }
  .brand-lockup { padding-bottom: 4px; }
  .side-nav,
  .sidebar-footer {
    display: flex;
    overflow-x: auto;
  }
  .side-nav { margin-top: 14px; }
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-inline: 16px;
  }
}

@media (max-width: 560px) {
  body { font-size: 13px; }
  .topbar { min-height: 63px; gap: 9px; padding: 8px 12px; }
  main { padding: 16px 12px 40px; }
  .panel,
  .locked-panel,
  .answer-box { border-radius: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
