:root {
  --primary: #102a43;
  --secondary: #2f6b4f;
  --accent: #b88a3d;
  --primary-fg: #ffffff;
  --body-bg: #f7f8f5;
  --body-fg: #17212b;
  --body-quiet-color: #5f6b73;
  --border-color: #d6dee3;
  --breadcrumbs-bg: #142b3f;
  --link-fg: #2f6b4f;
  --link-hover-color: #102a43;
  --button-bg: #102a43;
  --button-hover-bg: #0b1e30;
  --default-button-bg: #2f6b4f;
  --default-button-hover-bg: #254d3a;
  --delete-button-bg: #9f1239;
  --delete-button-hover-bg: #881337;
  --header-branding-color: #f7f8f5;
}

body {
  background: linear-gradient(180deg, #fbfbf7 0%, #f2f4ef 340px, #ffffff 900px);
  color: #17212b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#header {
  background: #102a43;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#branding h1,
#branding h1 a:link,
#branding h1 a:visited,
#site-name,
#site-name a:link,
#site-name a:visited {
  color: #f7f8f5 !important;
  font-weight: 800;
}

div.breadcrumbs {
  background: #142b3f;
}

.module,
.inline-group,
#changelist {
  border-color: #d6dee3;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.06);
}

.module h2,
.inline-group h2 {
  background: #102a43;
  color: #ffffff;
}

.object-tools a:link,
.object-tools a:visited,
input[type="submit"],
button[type="submit"],
.button {
  border-radius: 999px;
  font-weight: 700;
}

.button.default,
input[type="submit"].default,
.submit-row input.default {
  background: #2f6b4f;
}

#content {
  padding: 28px 40px 44px;
}

.peptide-dashboard-page #nav-sidebar,
.peptide-dashboard-page .toggle-nav-sidebar {
  display: none !important;
}

.peptide-shell {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.peptide-ops-header {
  align-items: center;
  background: #102a43;
  border: 1px solid rgba(16, 42, 67, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.12);
  color: #f7f8f5;
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 20px 22px;
}

.peptide-ops-header p {
  color: rgba(247, 248, 245, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.peptide-ops-header h1 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.peptide-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.peptide-ops-actions a:link,
.peptide-ops-actions a:visited {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.peptide-ops-actions a:hover {
  background: #2f6b4f;
}

.peptide-dashboard {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.peptide-metric,
.peptide-panel,
.peptide-app {
  background: #ffffff;
  border: 1px solid #d6dee3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.05);
}

.peptide-metric {
  color: #17212b;
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 14px;
  text-decoration: none;
}

.peptide-metric:link,
.peptide-metric:visited {
  color: #17212b;
}

.peptide-metric:hover {
  border-color: #2f6b4f;
  transform: translateY(-1px);
}

.peptide-metric span {
  color: #5f6b73;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.peptide-metric strong {
  color: #102a43;
  font-size: 26px;
  line-height: 1;
}

.peptide-metric--warn strong {
  color: #9f1239;
}

.peptide-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.peptide-main,
.peptide-side {
  display: grid;
  gap: 16px;
}

.peptide-panel,
.peptide-app {
  overflow: hidden;
}

.peptide-panel {
  padding: 16px;
}

.peptide-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.peptide-panel h2,
.peptide-app h2 {
  background: transparent;
  color: #102a43;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

.peptide-panel header span {
  color: #5f6b73;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.peptide-revenue dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.peptide-revenue dl div {
  align-items: center;
  border-top: 1px solid #edf1f2;
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
}

.peptide-revenue dt {
  color: #5f6b73;
  font-weight: 800;
}

.peptide-revenue dd {
  color: #17212b;
  font-weight: 900;
  margin: 0;
}

.peptide-apps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.peptide-app h2 {
  background: #2f6b4f;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.peptide-models {
  display: grid;
}

.peptide-model {
  align-items: center;
  border-top: 1px solid #edf1f2;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 8px 12px;
}

.peptide-model:first-child {
  border-top: 0;
}

.peptide-model__name {
  color: #24543f;
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.peptide-model__links {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.peptide-model__links a:link,
.peptide-model__links a:visited {
  color: #2f6b4f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.peptide-integrations,
.peptide-log {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.peptide-integrations li,
.peptide-log li {
  border-top: 1px solid #edf1f2;
  display: grid;
  gap: 5px;
  padding-top: 10px;
}

.peptide-integrations li:first-child,
.peptide-log li:first-child {
  border-top: 0;
  padding-top: 0;
}

.peptide-integrations li > div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.peptide-integrations strong,
.peptide-log strong {
  color: #17212b;
}

.peptide-integrations small,
.peptide-log span {
  color: #5f6b73;
  font-size: 12px;
  line-height: 1.5;
}

.peptide-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  width: max-content;
}

.peptide-status--configured,
.peptide-status--live {
  background: #e6f4ed;
  color: #24543f;
}

.peptide-status--not_configured {
  background: #fff7ed;
  color: #9a3412;
}

.peptide-status--error {
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 1100px) {
  .peptide-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .peptide-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #content {
    padding: 18px 16px 32px;
  }

  .peptide-ops-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .peptide-dashboard,
  .peptide-apps {
    grid-template-columns: 1fr;
  }
}
