:root {
  --chc-ink: #10201f;
  --chc-forest: #173f33;
  --chc-moss: #6f8d5d;
  --chc-copper: #b56f45;
  --chc-snow: #eef2e8;
  --chc-fog: #dfe9e2;
  --chc-paper: #f7f2e9;
  --chc-white: #ffffff;
  --chc-muted: #5e6b66;
  --chc-border: rgba(16, 32, 31, 0.12);
  --chc-shadow: 0 18px 50px rgba(16, 32, 31, 0.14);
}

* {
  box-sizing: border-box;
}

body.chc-client-area {
  margin: 0;
  color: var(--chc-ink);
  background: var(--chc-snow);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.chc-client-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 22px 0 56px;
}

.chc-client-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--chc-border);
  margin-bottom: 32px;
}

.chc-client-brand {
  color: var(--chc-forest);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.chc-client-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chc-language-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--chc-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.chc-language-form select {
  min-height: 38px;
  border: 1px solid var(--chc-border);
  border-radius: 8px;
  background: var(--chc-white);
  color: var(--chc-ink);
  padding: 0 10px;
}

.chc-client-link {
  color: var(--chc-forest);
  font-weight: 800;
  text-decoration: none;
}

.chc-admin-preview {
  margin: 0 0 22px;
  padding: 12px 14px;
  color: var(--chc-forest);
  background: var(--chc-fog);
  border: 1px solid var(--chc-border);
  border-radius: 8px;
  font-weight: 800;
}

.chc-login-panel {
  max-width: 520px;
  margin: 44px auto;
  padding: 28px;
  background: var(--chc-paper);
  border: 1px solid var(--chc-border);
  border-radius: 8px;
  box-shadow: var(--chc-shadow);
}

.chc-login-panel h1,
.chc-client-title-row h1,
.chc-report-head h1 {
  margin: 0;
  color: var(--chc-forest);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.chc-login-panel p {
  color: var(--chc-muted);
}

.chc-login-panel label {
  display: block;
  color: var(--chc-ink);
  font-weight: 800;
  margin: 14px 0 6px;
}

.chc-login-panel input[type="text"],
.chc-login-panel input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--chc-border);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--chc-white);
  color: var(--chc-ink);
}

.chc-login-panel input[type="submit"],
.chc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--chc-forest);
  color: var(--chc-white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.chc-client-title-row,
.chc-report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 26px;
}

.chc-client-kicker {
  margin: 0 0 8px;
  color: var(--chc-copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chc-report-list {
  display: grid;
  gap: 14px;
}

.chc-report-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--chc-white);
  border: 1px solid var(--chc-border);
  border-radius: 8px;
}

.chc-report-card h2 {
  margin: 10px 0 12px;
  color: var(--chc-forest);
  font-size: 1.35rem;
}

.chc-report-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.chc-report-card dl div,
.chc-detail-section {
  min-width: 0;
}

.chc-report-card dt {
  color: var(--chc-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chc-report-card dd {
  margin: 0;
  font-weight: 700;
}

.chc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--chc-fog);
  color: var(--chc-forest);
  font-size: 0.78rem;
  font-weight: 900;
}

.chc-pill-notice {
  background: #efe1c8;
  color: #6a421c;
}

.chc-pill-urgent {
  background: #f3d0c7;
  color: #79311d;
}

.chc-empty {
  padding: 20px;
  background: var(--chc-paper);
  border-radius: 8px;
}

.chc-report-detail {
  display: grid;
  gap: 22px;
}

.chc-report-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--chc-border);
}

.chc-report-head p {
  margin: 8px 0 0;
  color: var(--chc-muted);
  font-weight: 700;
}

.chc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chc-detail-section {
  padding: 20px;
  background: var(--chc-white);
  border: 1px solid var(--chc-border);
  border-radius: 8px;
}

.chc-detail-section h2,
.chc-photo-gallery h2 {
  margin: 0 0 10px;
  color: var(--chc-forest);
  font-size: 1rem;
}

.chc-detail-section p {
  margin: 0;
  color: var(--chc-ink);
}

.chc-photo-gallery {
  padding-top: 6px;
}

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

.chc-photo-gallery a {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--chc-fog);
  color: var(--chc-ink);
  text-decoration: none;
}

.chc-photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chc-photo-gallery span {
  display: block;
  min-height: 72px;
  padding: 12px;
  background: var(--chc-white);
  color: var(--chc-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .chc-client-header,
  .chc-client-title-row,
  .chc-report-head,
  .chc-report-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .chc-client-header {
    padding-bottom: 16px;
  }

  .chc-report-card dl,
  .chc-detail-grid,
  .chc-photo-gallery > div {
    grid-template-columns: 1fr;
  }

  .chc-button {
    width: 100%;
  }
}
