:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b3c;
  background: #f6f7f9;
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #e5e8ee; }
.header-content { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-size: 15px; font-weight: 600; }
.brand strong { font-weight: 500; color: #667184; }
.brand-divider { margin-inline: 10px; color: #c1c7d0; font-weight: 400; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { width: 10px; height: 10px; border-radius: 3px; background: #648f83; }
.brand-mark span:nth-child(2) { background: #e1b18a; }
.brand-mark span:nth-child(3) { background: #a4b7d4; }
.brand-mark span:nth-child(4) { background: #d39baf; }
.intro { padding: 58px 0 43px; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.045em; margin: 0; font-weight: 650; }
.intro-description { color: #687386; margin: 15px 0 0; font-size: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; margin: 0; }
.new-tab-note { color: #6b7687; font-size: 12px; }
.new-tab-note span { margin-left: 5px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card { background: #fff; border: 1px solid #e1e5ec; border-radius: 13px; padding: 23px; box-shadow: 0 2px 3px #24354b03; min-width: 0; }
.card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-monogram { display: grid; place-items: center; flex: 0 0 42px; height: 42px; background: #eef2f6; color: #52647e; border: 1px solid #e4eaf1; border-radius: 11px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.app-logo { display: block; width: 32px; height: 32px; object-fit: contain; }
.app-card:nth-child(4n + 2) .app-monogram { background: #f4eef7; color: #88649b; border-color: #ece3f1; }
.app-card:nth-child(4n + 3) .app-monogram { background: #f9f0e9; color: #9e7557; border-color: #f0e5dc; }
.app-card:nth-child(4n + 4) .app-monogram { background: #eaf3ef; color: #4d7c6a; border-color: #dfece6; }
.app-details { min-width: 0; }
.app-details h3 { font-size: 16px; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.app-domain { margin: 2px 0 0; color: #778193; font-size: 12px; overflow-wrap: anywhere; }
.environment-links { display: grid; gap: 8px; }
.environment-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e6e9ef; border-radius: 7px; padding: 10px 12px; text-decoration: none; font-size: 12px; font-weight: 600; transition: background .15s, border-color .15s; }
.environment-name { display: inline-flex; align-items: center; gap: 9px; }
.environment-name::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #758094; }
.environment-link[data-environment="production"] { color: #306b54; background: #f1f8f4; border-color: #dfede5; }
.environment-link[data-environment="production"] .environment-name::before { background: #4a8a68; }
.environment-link[data-environment="staging"] { color: #8c652b; background: #fffbf2; border-color: #f2e9d6; }
.environment-link[data-environment="staging"] .environment-name::before { background: #c09545; }
.environment-link[data-environment="development"] { color: #4f6a9b; background: #f4f7fd; border-color: #e2e9f6; }
.environment-link[data-environment="development"] .environment-name::before { background: #708ec4; }
.environment-link:hover { border-color: currentColor; filter: brightness(.98); }
.external-arrow { font-size: 16px; font-weight: 400; opacity: .7; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 27px 32px; font-size: 11px; color: #778193; }
.notice { padding: 20px; border: 1px solid #dce2eb; background: #fff; border-radius: 10px; }
.error { color: #9c3434; border-color: #eac3c3; background: #fff6f6; }
a:focus-visible { outline: 3px solid #526fa3; outline-offset: 4px; }

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

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .header-content { min-height: 72px; }
  .brand { font-size: 13px; gap: 10px; }
  .brand-divider { margin-inline: 5px; }
  .intro { padding: 38px 0 32px; }
  .intro-description { font-size: 14px; }
  .app-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .new-tab-note { font-size: 11px; }
  .app-card { padding: 20px; }
  .site-footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .environment-link { transition: none; }
}
