:root {
  --kosmes-blue: #003994;
  --kosmes-blue-2: #2972e1;
  --kosmes-navy: #2f436b;
  --kosmes-pale: #eaf1fb;
  --kosmes-bg: #f2f6fb;
  --kosmes-red: #e60021;
  --kosmes-text: #333;
}

body.kosmes-theme {
  color: var(--kosmes-text);
  background: var(--kosmes-bg);
}

.kosmes-theme .topbar {
  border-bottom: 1px solid #dbe3ef;
  background: rgba(255, 255, 255, .97);
}

.kosmes-theme .brand-mark,
.kosmes-theme .gate-mark,
.kosmes-theme .ops-access-mark {
  border-radius: 8px;
  background: var(--kosmes-blue);
}

.kosmes-theme .brand,
.kosmes-theme .brand-copy b {
  color: var(--kosmes-navy);
}

body.kosmes-theme:not(.is-authenticated) {
  background: linear-gradient(135deg, #f2f6fb 0%, #fff 56%, #eaf1fb 100%);
}

body.kosmes-theme:not(.is-authenticated) .topbar {
  border-bottom: 1px solid #dbe3ef;
  background: rgba(255, 255, 255, .94);
}

body.kosmes-theme:not(.is-authenticated) .brand-mark {
  background: var(--kosmes-blue);
}

.kosmes-theme .landing-message h1 {
  color: var(--kosmes-navy);
}

.kosmes-theme .landing-message h1 span,
.kosmes-theme .eyebrow {
  color: var(--kosmes-blue);
}

.kosmes-theme .public-ops-entry {
  width: min(430px, 100%);
  margin-top: 32px;
  padding: 19px 21px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--kosmes-blue), var(--kosmes-blue-2));
  box-shadow: 0 9px 20px rgba(0, 57, 148, .2);
  color: #fff;
}

.kosmes-theme .public-ops-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(0, 57, 148, .25);
}

.kosmes-theme .public-ops-entry > span {
  border-radius: 9px;
  color: var(--kosmes-blue);
}

.kosmes-theme .public-ops-entry small {
  color: #dceaff;
}

.kosmes-theme .public-entry-stack {
  width: min(430px, 100%);
}

.kosmes-theme .public-entry-stack .public-ops-entry {
  width: 100%;
  margin-top: 0;
}

.kosmes-theme .public-entry-stack .public-report-entry {
  background: linear-gradient(135deg, #0b6f69, #088a7f);
}

.kosmes-theme .auth-card,
.kosmes-theme .ops-panel,
.kosmes-theme .ops-program-card,
.kosmes-theme .summary-card,
.kosmes-theme .record-card {
  border-color: #e0e6ef;
  border-radius: 13px;
  box-shadow: 0 6px 12px rgba(35, 55, 88, .08);
}

.kosmes-theme .auth-tab.is-active,
.kosmes-theme .inline-auth-form .submit-button,
.kosmes-theme .login-button,
.kosmes-theme .primary-button,
.kosmes-theme .member-nav-item.is-active,
.kosmes-theme .ops-program-tabs button.is-active,
.kosmes-theme .ops-section-tabs button.is-active {
  background: var(--kosmes-blue);
}

.kosmes-theme .public-ops-toolbar {
  border-color: #dbe3ef;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(35, 55, 88, .06);
}

.kosmes-theme .public-ops-toolbar button,
.kosmes-theme .public-ops-toolbar > a,
.kosmes-theme .ops-section-tabs button,
.kosmes-theme .secondary-button {
  background: var(--kosmes-pale);
  color: var(--kosmes-blue);
}

.kosmes-theme .ops-hero,
.kosmes-theme.outreach-page .hero {
  border-radius: 13px;
  background: linear-gradient(125deg, var(--kosmes-blue), #477fe1);
  box-shadow: 0 10px 24px rgba(0, 57, 148, .2);
}

.kosmes-theme .ops-hero .eyebrow,
.kosmes-theme.outreach-page .hero .eyebrow {
  color: #dceaff;
}

.kosmes-theme .ops-program-card {
  border-top-color: var(--kosmes-blue);
}

.kosmes-theme .ops-program-card > button,
.kosmes-theme .ops-room,
.kosmes-theme .ops-card-top span,
.kosmes-theme .ops-outreach-integrated-heading > a {
  background: var(--kosmes-pale);
  color: var(--kosmes-blue);
}

.kosmes-theme .ops-outreach-data-note {
  border-color: #cbdcf2;
  background: #f2f6fb;
  color: #4d607f;
}

.kosmes-theme .ops-outreach-data-note strong,
.kosmes-theme .ops-panel-heading small {
  color: var(--kosmes-blue);
}

.kosmes-theme.outreach-page main {
  width: min(1180px, 100%);
}

.kosmes-theme.outreach-page .brand span {
  background: var(--kosmes-blue);
}

.kosmes-theme.outreach-page .connection i,
.kosmes-theme.outreach-page .sync-strip i {
  background: var(--kosmes-blue-2);
  box-shadow: 0 0 0 4px #dceaff;
}

.kosmes-theme.outreach-page .hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kosmes-theme .sheet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  background: #fff;
  color: var(--kosmes-blue);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.kosmes-theme.outreach-page .download-button {
  border-radius: 9px;
  background: #dceaff;
  color: var(--kosmes-blue);
}

.kosmes-theme.outreach-page .refresh-button {
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 9px;
}

.kosmes-theme.outreach-page .hero .primary-button {
  border-radius: 9px;
  background: var(--kosmes-red);
  color: #fff;
}

.kosmes-theme.outreach-page .sync-strip {
  border-color: #dbe3ef;
  border-radius: 11px;
}

.kosmes-theme.outreach-page .sync-strip span,
.kosmes-theme.outreach-page .summary-stats b,
.kosmes-theme.outreach-page .profile-hint,
.kosmes-theme.outreach-page .profile-intro strong {
  color: var(--kosmes-blue);
}

.kosmes-theme.outreach-page .progress span {
  background: var(--kosmes-blue-2);
}

.kosmes-theme.outreach-page .controls {
  grid-template-columns: minmax(260px, 1fr) 190px 170px 112px;
  padding: 13px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(35, 55, 88, .05);
}

.kosmes-theme .filter-reset {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd7e6;
  border-radius: 9px;
  background: var(--kosmes-pale);
  color: var(--kosmes-blue);
  font-weight: 900;
}

.kosmes-theme.outreach-page .badge {
  background: var(--kosmes-pale);
  color: var(--kosmes-blue);
}

.kosmes-theme.outreach-page .badge.status:not(.confirmed) {
  background: #fff0f2;
  color: #b9001a;
}

.kosmes-theme.outreach-page .record-card:hover,
.kosmes-theme.outreach-page .record-card:focus-visible {
  border-color: #70acdb;
  box-shadow: 0 10px 22px rgba(0, 57, 148, .12);
}

.kosmes-theme.outreach-page .gate {
  background: radial-gradient(circle at 25% 5%, #477fe1, var(--kosmes-blue) 58%, #14264b);
}

.kosmes-theme.outreach-page .gate-card {
  border-radius: 13px;
}

@media (max-width: 880px) {
  .kosmes-theme.outreach-page .controls {
    grid-template-columns: 1fr 1fr;
  }

  .kosmes-theme.outreach-page .controls .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .kosmes-theme.outreach-page .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .kosmes-theme.outreach-page .hero-actions .sheet-button,
  .kosmes-theme.outreach-page .hero-actions .download-button {
    grid-column: auto;
  }

  .kosmes-theme.outreach-page .controls {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .kosmes-theme.outreach-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .kosmes-theme.outreach-page .hero-actions > * {
    width: 100%;
  }
}
