.schema-page { --violet: #4d307f; --teal: #075760; --amber: #834207; --green: #17593b; }
.schema-page [hidden] { display: none !important; }
.schema-page .py-hero { padding-block: clamp(1.25rem, 3vw, 2.75rem); }
.schema-page .py-hero .py-cta, .schema-page .py-cta { background: #ad162b; color: #fff; }
.schema-page :focus-visible { outline: 3px solid #7049b4; outline-offset: 3px; }
.schema-page .py-hero :focus-visible { outline-color: #ffdf8d; }
.schema-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.schema-hero img { width: 100%; height: auto; border-radius: 1rem; display: block; }
.schema-kicker { color: #e4d8ff; font-weight: 800; letter-spacing: .06em; }
.schema-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.5rem; }
.schema-index a { background: #ede6fa; color: var(--violet); padding: .55rem .8rem; border-radius: .6rem; font-weight: 700; }
.schema-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.schema-grid > article, .log-cards > section, .schema-note, .schema-page details {
  min-width: 0; border: 1px solid #d8deeb; border-radius: .75rem; padding: 1rem; background: #f4f6fa; color: #101c34;
}
.schema-grid > article { border-top: 4px solid var(--violet); }
.schema-grid > article:nth-child(3n) { border-top-color: var(--teal); }
.schema-grid > article:nth-child(4n) { border-top-color: var(--amber); }
.schema-grid dt, .schema-page summary { font-weight: 750; }
.schema-grid dd { margin: 0 0 .65rem; }
.schema-tag { color: var(--violet); font-weight: 750; }
.schema-page details { margin-block: .65rem; }
.schema-page summary { cursor: pointer; }
.schema-page pre { white-space: pre-wrap; overflow-wrap: anywhere; color: #fff; background: #18213b; padding: 1rem; border-radius: .75rem; }
.schema-page .py-table { overflow-x: auto; max-width: 100%; }
.schema-page .py-table th, .schema-page .py-table td { min-width: 6rem; }
.log-cards > [data-mode="ok"] { background: #e4f5eb; border-inline-start: 5px solid var(--green); }
.log-cards > [data-mode="issue"] { background: #fff0dd; border-inline-start: 5px solid var(--amber); }
.log-stage { margin-block: 1rem; padding: 1rem; border-radius: .9rem; background: #e5f0f2; }
.log-controls, #diag-controls { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; margin-block: 1rem; }
.log-controls label, #diag-controls label { display: grid; gap: .35rem; font-weight: 700; max-width: 100%; }
.schema-page select, .schema-page input, #diag-reset { min-height: 44px; max-width: 100%; padding: .45rem .6rem; font: inherit; border: 1px solid #6e7d93; border-radius: .5rem; }
#diag-reset { color: white; background: var(--teal); cursor: pointer; }
@media (max-width: 760px) { .schema-hero { grid-template-columns: minmax(0, 1fr); } }
