:root {
  color-scheme: light;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --ink: #163232;
  --muted: #64748b;
  --surface: #ffffff;
  --background: #eef5f4;
  --line: #d6e2e1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

header {
  padding: max(22px, env(safe-area-inset-top)) 20px 24px;
  background: var(--brand);
  color: white;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
}

header .company {
  margin: 0 0 5px;
  color: #ccfbf1;
  font-size: .76rem;
  font-weight: 700;
}

header h1 { margin: 0; font-size: 1.5rem; }
.brand p:last-child { margin: 6px 0 0; color: #d9fffa; font-size: .85rem; }

main { width: min(680px, 100%); margin: 0 auto; padding: 16px 14px 42px; }
section { margin-bottom: 22px; }

.install-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #99d5ce;
  border-radius: 13px;
  background: #e2f8f4;
}
.install-panel p { margin: 3px 0 0; color: #456766; font-size: .78rem; line-height: 1.5; }
.install-panel button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--brand);
  color: white;
  font-weight: 700;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 3px 9px;
}
.section-title h2 { margin: 0; font-size: .92rem; }

.module {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.active-module { border-color: #8dccca; }
.module h3 { margin: 0 0 4px; font-size: 1rem; }
.module p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.module-mark {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}
.module-mark.neutral { background: #e2e8f0; color: #475569; }
.arrow { margin-left: auto; color: var(--brand); font-size: 1.8rem; }
.disabled-module { opacity: .72; }

.status {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .67rem;
  font-weight: 700;
}
.status.active { margin: 0; background: #ccfbf1; color: var(--brand-dark); }
.privacy { color: var(--muted); font-size: .72rem; text-align: center; }
.hidden { display: none; }

@media (display-mode: standalone) {
  .install-panel { display: none; }
}
