:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #687281;
  --line: #d7dde5;
  --blue: #155e75;
  --green: #1f7a4d;
  --amber: #8a4b20;
  --violet: #5b4b8a;
  --red: #8a2f2f;
  --ink: #263241;
  --shadow: 0 16px 36px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 22px 0 18px;
}

.brand-mark {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  height: 76px;
  place-items: center;
  width: 76px;
}

svg {
  height: 28px;
  width: 28px;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-mark svg {
  color: var(--blue);
  height: 46px;
  width: 46px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.05;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

.summary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 760px;
  margin-top: 10px;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  color: #7c2d12;
  margin: 8px 0 22px;
  padding: 14px 16px;
}

.notice p {
  line-height: 1.45;
  margin-top: 4px;
}

.section {
  margin-top: 26px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
}

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

.service {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 106px;
  padding: 14px;
}

.service:not(.disabled):hover {
  border-color: var(--blue);
}

.service.disabled {
  color: var(--muted);
}

.service strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.service small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 4px;
}

.status {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.active {
  background: #e9f8f0;
  border-color: #b7e5ca;
  color: var(--green);
}

.status.planned {
  background: #e8f5f8;
  border-color: #b8dbe5;
  color: var(--blue);
}

.status.verify {
  background: #fff7ed;
  border-color: #fdba74;
  color: var(--amber);
}

.status.private,
.status.archive {
  background: #eef1f5;
  color: var(--ink);
}

.icon {
  align-items: center;
  border-radius: 8px;
  display: inline-grid;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.icon.public {
  background: #e9f8f0;
  color: var(--green);
}

.icon.portal,
.icon.hermes,
.icon.ai {
  background: #e8f5f8;
  color: var(--blue);
}

.icon.upload,
.icon.reports,
.icon.board,
.icon.automation {
  background: #fff7ed;
  color: var(--amber);
}

.icon.notes {
  background: #f2effa;
  color: var(--violet);
}

.icon.internal {
  background: #eef1f5;
  color: var(--ink);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    height: 64px;
    width: 64px;
  }

  h1 {
    font-size: 34px;
  }

  .summary {
    font-size: 16px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .section-head p {
    text-align: left;
  }

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

  .service {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status {
    grid-column: 2;
    justify-self: start;
  }

  .footer {
    flex-direction: column;
  }
}
