:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: #f3f5f7;
  color: #17202a;
}

.bcg-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f3f5f7;
}

.bcg-app,
.bcg-app * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.bcg-app button,
.bcg-app input {
  font: inherit;
}

.bcg-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 24px 0 32px;
}

.bcg-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.bcg-heading-group {
  min-width: 0;
}

.bcg-eyebrow,
.bcg-step,
.bcg-status-label,
.bcg-date-label {
  margin: 0;
  color: #56616d;
  font-size: 0.78rem;
  font-weight: 700;
}

.bcg-eyebrow,
.bcg-step,
.bcg-status-label {
  text-transform: uppercase;
}

.bcg-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.bcg-date-block {
  flex: 0 0 auto;
  padding-left: 18px;
  border-left: 1px solid #cbd2d9;
  text-align: right;
}

.bcg-date-label,
.bcg-date-value {
  display: block;
}

.bcg-date-value {
  margin-top: 3px;
  font-size: 0.93rem;
}

.bcg-panel {
  padding: 28px;
  border: 1px solid #cbd2d9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(23 32 42 / 7%);
}

.bcg-step {
  margin-bottom: 10px;
  color: #235789;
}

.bcg-question {
  max-width: 32em;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}

.bcg-help {
  margin: 12px 0 0;
  color: #4c5763;
  font-size: 0.94rem;
  line-height: 1.7;
}

.bcg-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.bcg-button {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.45;
}

.bcg-button:focus-visible,
.bcg-date-input:focus-visible,
.bcg-admin-summary:focus-visible {
  outline: 3px solid #f3b61f;
  outline-offset: 2px;
}

.bcg-button--option {
  width: 100%;
  border-color: #b8c2cc;
  background: #ffffff;
  color: #17202a;
  text-align: left;
}

.bcg-button--option:hover {
  border-color: #235789;
  background: #eef5fb;
}

.bcg-button--primary {
  background: #235789;
  color: #ffffff;
}

.bcg-button--primary:hover {
  background: #19446d;
}

.bcg-button--secondary,
.bcg-button--quiet {
  border-color: #aeb8c2;
  background: #ffffff;
  color: #273440;
}

.bcg-button--quiet {
  border-color: transparent;
  background: transparent;
  color: #475563;
}

.bcg-date-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.bcg-date-input {
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #9da9b5;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
}

.bcg-navigation {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.bcg-result {
  border-top-width: 5px;
}

.bcg-result--eligible {
  border-top-color: #24814d;
}

.bcg-result--ineligible {
  border-top-color: #b73535;
}

.bcg-result--review {
  border-top-color: #b56a00;
}

.bcg-status {
  padding-bottom: 22px;
  border-bottom: 1px solid #d8dee4;
}

.bcg-result-title {
  margin: 6px 0 12px;
  font-size: 1.55rem;
  line-height: 1.35;
}

.bcg-result--eligible .bcg-result-title {
  color: #17633a;
}

.bcg-result--ineligible .bcg-result-title {
  color: #932727;
}

.bcg-result--review .bcg-result-title {
  color: #8c5100;
}

.bcg-result-copy,
.bcg-result-reason {
  margin: 0;
  line-height: 1.75;
}

.bcg-result-reason {
  margin-top: 10px;
  font-weight: 700;
}

.bcg-result-list {
  padding: 20px 0;
  border-bottom: 1px solid #d8dee4;
}

.bcg-result-list-title,
.bcg-sources-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.bcg-list {
  margin: 0;
  padding-left: 1.25rem;
}

.bcg-list-item {
  margin-top: 6px;
  line-height: 1.6;
}

.bcg-admin {
  margin: 20px 0;
  border-top: 1px solid #d8dee4;
  border-bottom: 1px solid #d8dee4;
}

.bcg-admin-summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
}

.bcg-admin-body {
  padding: 2px 0 18px;
}

.bcg-rule {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
}

.bcg-rule-label {
  color: #56616d;
  font-size: 0.84rem;
  font-weight: 700;
}

.bcg-rule-value {
  padding: 3px 6px;
  border-radius: 4px;
  background: #edf0f2;
  font-size: 0.9rem;
}

.bcg-sources {
  margin: 0;
}

.bcg-source-id {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.bcg-source-detail {
  margin: 3px 0 0;
  color: #45515d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bcg-scope-note {
  margin: 18px auto 0;
  color: #596572;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.bcg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .bcg-shell {
    width: min(100% - 24px, 760px);
    padding-top: 16px;
  }

  .bcg-header {
    align-items: flex-start;
    gap: 12px;
  }

  .bcg-title {
    font-size: 1.2rem;
  }

  .bcg-date-block {
    padding-left: 12px;
  }

  .bcg-panel {
    padding: 22px 18px;
  }

  .bcg-question {
    font-size: 1.18rem;
  }

  .bcg-date-form {
    grid-template-columns: 1fr;
  }

  .bcg-navigation {
    flex-wrap: wrap;
  }

  .bcg-navigation .bcg-button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bcg-button {
    transition: background-color 120ms ease, border-color 120ms ease;
  }
}
