:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #657180;
  --subtle: #eef2f5;
  --line: #dfe6eb;
  --accent: #23746f;
  --accent-soft: #e7f3f1;
  --focus: #0d5bd7;
  --shadow: 0 10px 26px rgba(27, 39, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.55;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 14px 34px;
}

.profile {
  padding: 10px 4px 8px;
  text-align: center;
}

.label {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.intro {
  max-width: 420px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin: 2px 0 10px;
  padding: 0 2px;
}

.notice p,
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 7px;
  margin: 0 -14px 10px;
  padding: 8px 14px;
  overflow-x: auto;
  background: rgba(245, 247, 248, 0.94);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #384351;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tab:focus-visible,
.service-link:focus-visible {
  outline: 3px solid rgba(13, 91, 215, 0.32);
  outline-offset: 2px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.service-link {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-link:hover {
  border-color: #b8c8d2;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.service-link.is-hidden {
  display: none;
}

.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 14px;
}

.service-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.service-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.service-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.service-copy {
  display: block;
  color: #3b4652;
  font-size: 13px;
  line-height: 1.42;
}

.service-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chevron {
  width: 10px;
  height: 10px;
  border-top: 2px solid #9aa6b2;
  border-right: 2px solid #9aa6b2;
  transform: rotate(45deg);
}

.footer {
  padding: 18px 2px 0;
  text-align:center;
}

@media (min-width: 760px) {
  .page-shell {
    padding-top: 22px;
  }

  .profile {
    padding-top: 14px;
  }

  h1 {
    font-size: 25px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .tabs {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .service-link {
    grid-template-columns: 50px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 10px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
}
