:root {
  color-scheme: light;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1d2b28;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1d2b28;
  --muted: #65736f;
  --line: #e2e7df;
  --green: #1c6856;
  --green-dark: #155241;
  --surface: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f7f8f4; }
main { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.hero { max-width: 825px; margin: 0 auto; padding: 78px 0 60px; }
.eyebrow, .section-kicker, .footer-mark { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--green); }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: #65a88f; box-shadow: 0 0 0 4px #e3f0e9; }
h1, h2, h3 { font-family: 'Manrope', 'DM Sans', sans-serif; color: var(--ink); }
h1 { margin: 0; font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 700; }
h1 span { color: var(--green); }
.intro { max-width: 700px; margin: 25px 0 24px; color: #52615d; font-size: 1.18rem; line-height: 1.7; }
.notice { display: flex; align-items: flex-start; gap: 14px; max-width: 710px; padding: 17px 19px; background: #edf4ee; border: 1px solid #dce9dd; border-radius: 12px; }
.notice-icon { display: grid; flex: 0 0 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 700; font-size: .8rem; }
.notice p { margin: 0; color: #42544c; font-size: .94rem; line-height: 1.55; }
.notice strong { color: #234235; }
.text-link { display: inline-flex; gap: 7px; margin-top: 21px; color: var(--green); text-decoration: none; font-weight: 700; font-size: .93rem; }
.text-link:hover { color: var(--green-dark); text-decoration: underline; }
.demo { padding: 42px 0 72px; border-top: 1px solid var(--line); }
.resources { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 30px; padding: 30px 0 42px; border-top: 1px solid var(--line); }
.resources h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.resource-links { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.resource-links li { display: grid; gap: 4px; }
.resource-links a { width: fit-content; color: var(--green); font-weight: 700; text-decoration: none; }
.resource-links a:hover { color: var(--green-dark); text-decoration: underline; }
.resource-links span { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-kicker { margin: 0 0 8px; color: #7b8984; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.035em; }
.section-copy { margin: 8px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
button { font: inherit; }
.refresh-button { flex: 0 0 auto; padding: 11px 14px; border: 1px solid #d7dfd8; border-radius: 9px; color: #3e5149; background: var(--surface); cursor: pointer; font-weight: 600; }
.refresh-button span { margin-right: 5px; font-size: 1.1rem; }
.refresh-button:hover { border-color: #9eb9aa; background: #fbfdfb; }
.status { min-height: 26px; margin: 18px 0 15px; color: #78847f; font-size: .9rem; }
.status-ready { color: var(--green); font-weight: 600; }
.status-error { color: #a64438; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.card { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid #e3e8e1; border-radius: 14px; background: var(--surface); box-shadow: 0 5px 20px rgb(35 57 44 / 4%); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-complete { color: #216b50; background: #e8f4eb; }
.badge-deferred { color: #815f20; background: #fbf2df; }
.badge-prepared { color: #4e638b; background: #edf0fa; }
.badge-unknown { color: #5d6864; background: #eff1ef; }
.card-kind { color: #88938e; font-size: .74rem; }
.card-title { min-height: 2.65em; margin: 0; font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.3; }
.card-summary { min-height: 5.2em; margin: 10px 0 19px; color: #65736e; font-size: .93rem; line-height: 1.6; }
.result { min-height: 104px; padding: 14px; border-radius: 10px; }
.result-idle { background: #f6f8f5; }
.result-pending { background: #eef4f1; }
.result-success { background: #eef6f0; border-left: 3px solid #69a985; }
.result-error { background: #fbefed; border-left: 3px solid #d1867b; }
.result-label { display: block; color: #607168; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.result-copy { margin: 6px 0 0; color: #344a40; font-size: .88rem; line-height: 1.5; }
.result-error { color: #8b3f35; font-size: .88rem; line-height: 1.5; }
.card-actions { margin-top: 15px; }
.inspect-button { width: 100%; padding: 12px 15px; border: 0; border-radius: 9px; color: white; background: var(--green); cursor: pointer; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.inspect-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.inspect-button:disabled { cursor: wait; opacity: .68; transform: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6bb59a; outline-offset: 3px; }
.technical-details { margin-top: 16px; border-top: 1px solid #edf0ec; padding-top: 12px; }
.technical-details summary { color: #6d7c75; cursor: pointer; font-size: .82rem; font-weight: 600; }
.identifier-list { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 12px 0 0; }
.identifier-list dt { margin-top: 5px; color: #7a8681; font-size: .72rem; }
.identifier-list dd { margin: 0; overflow-wrap: anywhere; color: #54615c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .73rem; }
footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 23px 0 31px; border-top: 1px solid var(--line); }
footer p { max-width: 630px; margin: 0; color: #75817c; font-size: .84rem; line-height: 1.55; }
footer strong { color: #4d5c55; }
.footer-mark { flex: 0 0 auto; padding-top: 3px; color: #9aa49f; font-size: .65rem; }

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .resources { grid-template-columns: 1fr; gap: 18px; }
  .card-title, .card-summary { min-height: 0; }
  .card { padding: 20px; }
}
@media (max-width: 560px) {
  main { padding: 0 19px; }
  .hero { padding: 56px 0 45px; }
  .intro { font-size: 1.05rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .refresh-button { align-self: stretch; }
  footer { flex-direction: column; gap: 12px; }
}
