:root { color-scheme:light; font:16px/1.6 system-ui,sans-serif; background:#fbf3e8; color:#202e3c; --link:#28475f; --edge:#d9cdbb; }
* { box-sizing:border-box; }
body { margin:0; }
.shell { width:min(1130px,92%); margin-inline:auto; }
.top,.top nav { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.top { justify-content:space-between; padding:14px 0; }
a { color:var(--link); text-underline-offset:.2em; }
.top a,.button { display:inline-flex; align-items:center; min-height:44px; font-weight:750; text-decoration:none; }
:focus-visible { outline:3px solid #a84d20; outline-offset:4px; }
.brand { font-size:1.2rem; }
.hero { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); background:#dce8ee; border-radius:30px 30px 5px 30px; overflow:hidden; }
.hero div { align-self:center; padding:clamp(20px,4vw,56px); }
.hero img { display:block; width:100%; height:100%; object-fit:cover; }
h1,h2,h3 { line-height:1.14; margin:0 0 14px; }
h1 { font-size:clamp(2rem,4.5vw,4rem); letter-spacing:-.045em; }
.button { background:var(--link); color:white; padding:8px 14px; border-radius:8px; }
.section { margin-block:clamp(27px,5vw,52px); }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.panel { background:#fffdf8; border:1px solid var(--edge); border-radius:14px; padding:clamp(15px,3vw,28px); }
.cards span { display:grid; width:44px; height:44px; place-items:center; font-size:1.6rem; background:#efdbc1; border-radius:10px; margin-bottom:10px; }
.panel p:last-child { margin-bottom:0; }
.reader { max-width:760px; }
.reader .panel { margin-block:14px; }
details { border-top:1px solid var(--edge); padding-block:9px; }
summary { cursor:pointer; font-weight:750; min-height:34px; }
footer { margin-top:24px; border-top:1px solid var(--edge); padding:15px 0 26px; }
@media(max-width:690px) { .hero,.cards { grid-template-columns:minmax(0,1fr); } .hero img { height:auto; } }
#diagnostic { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:10px; align-items:end; }
#diagnostic label { display:block; font-weight:750; }
#diagnostic select { width:100%; min-width:0; min-height:44px; padding:6px 8px; border:1px solid #8396a3; border-radius:7px; background:white; color:inherit; font:inherit; }
#diagnostic button { font:inherit; font-weight:750; border:1px solid var(--link); cursor:pointer; }
#diagnostic-result:not(:empty) { background:#e9f0f4; margin-top:14px; padding:10px 14px; border-radius:8px; }
#diagnostic-result p { margin:0 0 7px; }
#diagnostic-result .actions { display:flex; flex-wrap:wrap; gap:8px 16px; }
.article-photo { display:block; width:100%; height:auto; border-radius:12px; }
#mau-ghi-loi li { margin-bottom:8px; overflow-wrap:anywhere; }
@media(max-width:720px) { #diagnostic { grid-template-columns:minmax(0,1fr); } }
@media print {
  .article-photo,.top,footer { display:none; }
  :root { color:black; background:white; }
  .reader { max-width:none; width:100%; }
  #mau-ghi-loi { break-inside:avoid; }
}
.report-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.report-fields label,.report-summary { display:grid; gap:4px; font-weight:700; }
.report-fields textarea,.report-summary textarea { width:100%; padding:8px; border:1px solid #8396a3; border-radius:7px; resize:vertical; font:inherit; color:inherit; }
.report-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.report-actions button { cursor:pointer; font:inherit; font-weight:750; border:1px solid var(--link); }
.report-actions .secondary { color:var(--link); background:white; }
.report-actions[hidden],.report-summary[hidden],.print-value { display:none; }
@media screen and (max-width:600px) { .report-fields { grid-template-columns:minmax(0,1fr); } }
@media print {
  #mau-ghi-loi { break-inside:auto; }
  .report-actions,#report-status,.report-summary,.report-fields textarea { display:none !important; }
  .report-fields > div { break-inside:avoid; }
  .print-value { display:block; padding:4px 0; margin:0; min-height:26px; border-bottom:1px solid #aaa; white-space:pre-wrap; overflow-wrap:anywhere; }
}
