:root {
  font: 100%/1.5 "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fafafc;
  --ink: #302d36;
  --muted: #55515f;
  --line: #dedbe5;
  --purple: #6941c6;
  --purple-dark: #503095;
  --pale: #f1ecfb;
  --gradient: linear-gradient(90deg, #5938a8, #b71e3d);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box }
body { margin: 0 }
[hidden] { display: none !important }
.shell { width: min(calc(100% - 3rem), 1060px); margin-inline: auto }
a { color: var(--purple-dark); text-underline-offset: .22em }
button, input { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .65 }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px }
.top { border-bottom: 1px solid var(--line) }
.bar, footer, nav { display: flex; align-items: center; gap: 1.25rem }
.bar { min-height: 72px; justify-content: space-between }
nav a { color: var(--ink); font-size: .925rem; text-decoration: none }
nav a:hover { color: var(--purple-dark); text-decoration: underline }
.brand { display: inline-flex; border-radius: .2rem }
.brand img { display: block; width: 200px; height: auto }
.hero { text-align: center; border-bottom: 1px solid var(--line) }
.hero-inner { padding: clamp(2.8rem, 6vw, 5rem) 0 2.45rem; max-width: 790px }
h1 { margin: 0; font-size: clamp(2.45rem, 6vw, 4.65rem); letter-spacing: -.075em; line-height: 1.04 }
.brand-gradient { color: var(--purple-dark) }
@supports (background-clip: text) {
  .brand-gradient { background: var(--gradient); background-clip: text; color: transparent }
}
h2 { margin: 0; font-size: clamp(1.48rem, 3vw, 2.1rem); letter-spacing: -.045em; line-height: 1.16 }
h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.3 }
p { color: var(--muted); margin: .45rem 0 }
.intro { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 36rem; margin: 1rem auto 1.7rem }
form { max-width: 635px; margin: 0 auto; text-align: left }
label { display: block; margin-bottom: .35rem; font-weight: 650; font-size: .95rem }
.form-row { display: flex; gap: .55rem }
input { min-width: 0; width: 100%; background: #fff; color: var(--ink); border: 1px solid #8d879b; border-radius: 2rem; padding: .78rem 1rem; font-family: var(--mono) }
button { color: #fff; background: var(--purple); border: 1px solid var(--purple); border-radius: 2rem; font-weight: 680; padding: .7rem 1.1rem; white-space: nowrap }
button:hover { background: var(--purple-dark); border-color: var(--purple-dark) }
#status:empty { display: none }
#status { overflow-wrap: anywhere }
#report { padding: 2.4rem 0 2rem; overflow-wrap: anywhere }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: .85rem; flex-wrap: wrap; margin-bottom: 1.3rem }
.report-head h2 { font-family: var(--mono); font-size: clamp(1.18rem, 3vw, 1.85rem); letter-spacing: -.045em }
.report-head p { font-size: .925rem; margin: .37rem 0 0 }
.secondary { background: transparent; color: var(--purple-dark); border-color: var(--purple); padding: .48rem .8rem; font-size: .9rem }
.secondary:hover { background: var(--pale) }
.score-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 1.25rem; padding: 1.2rem; margin-bottom: .8rem; border: 1px solid #d9c9f1; border-radius: 8px; background: var(--pale); }
.score-total { display: grid; align-content: center; gap: .15rem; }
.score-total h3, .score-label h3 { font-size: .95rem; }
.score-total .score-number { margin: 0; color: var(--purple-dark); font-size: clamp(2.15rem, 5vw, 3.25rem); font-weight: 750; line-height: 1.1; letter-spacing: -.05em; }
.score-note { font-size: .9rem; }
.score-breakdown { display: grid; align-content: center; gap: .9rem; }
.score-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .65rem; align-items: baseline; }
.score-points { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.score-category meter { display: block; width: 100%; height: .55rem; margin-top: .3rem; appearance: none; }
.score-category meter::-webkit-meter-bar { border: 0; border-radius: 50px; background: #ddd1ef; }
.score-category meter::-webkit-meter-optimum-value { border-radius: 50px; background: var(--gradient); }
.score-category meter::-moz-meter-bar { border-radius: 50px; background: var(--gradient); }
.panels { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin: 0 0 2.15rem }
.panel, .recs > li, details { border: 1px solid var(--line); border-radius: 8px; background: #fff }
.panel { padding: .9rem }
.panel h3 { font-size: .91rem; letter-spacing: 0 }
.panel p { font-size: .9rem; margin: .24rem 0 0 }
.panel .metric { color: var(--ink); margin-top: .45rem; font-weight: 710; font-size: 1.12rem }
.panel .good { color: #07604a }
.panel .warn { color: #874111 }
.recs { display: grid; gap: .65rem; list-style: none; margin: 1rem 0 1.35rem; padding: 0 }
.recs > li { border-left: 3px solid #9c84d5; padding: 1rem 1.1rem }
.recs > li.urgent { border-left-color: #b71e3d }
.priority { display: block; margin: 0 0 .27rem; font-size: .875rem; font-weight: 710; color: var(--purple-dark) }
.urgent .priority { color: #9e1735 }
.verify { font-size: .93rem }
.verify strong { color: var(--ink) }
.action { display: inline-block; font-weight: 680; margin-top: .42rem }
.links { display: flex; gap: .3rem 1.1rem; flex-wrap: wrap; padding: 0; margin: .6rem 0 0; list-style: none; font-size: .93rem }
details { padding: .8rem 1rem }
summary { cursor: pointer; font-weight: 675 }
.endpoint { border-top: 1px solid var(--line); margin-top: .65rem; padding-top: .65rem }
.endpoint ul { color: var(--muted); padding-left: 1.3rem }
.endpoint li { padding-block: .16rem }
.endpoint h3 { font-family: var(--mono); font-size: .95rem }
.guides, .method { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; align-items: start; margin-top: 1rem }
.guide-grid p { margin-top: .7rem }
.method p { max-width: 73ch; margin: .65rem 0 .8rem }
footer { justify-content: space-between; border-top: 1px solid var(--line); padding: 1.2rem 0 1.5rem }
@media (max-width: 790px) { .panels { grid-template-columns: repeat(2,minmax(0,1fr)) } }
@media (max-width: 530px) {
  .shell { width: calc(100% - 2rem) }
  .bar { flex-wrap: wrap; gap: .65rem 1rem; padding-block: .85rem }
  .brand img { width: 170px }
  nav { gap: .7rem }
  nav a { font-size: .86rem }
  .guide-grid, .score-overview { grid-template-columns: 1fr }
}
@media (max-width: 395px) {
  .form-row { flex-wrap: wrap }
  .form-row button { width: 100% }
  .panels { grid-template-columns: 1fr }
}
@media (forced-colors: active) {
  .brand-gradient { background: none; color: CanvasText }
}
