:root {
  --ink: #173238;
  --muted: #5d7277;
  --brand: #075b62;
  --brand-2: #087f7b;
  --accent: #19a88f;
  --surface: #ffffff;
  --soft: #eef8f6;
  --line: #cfe2df;
  --ok: #147d54;
  --bad: #b23a3a;
  --warn: #9a6410;
  --shadow: 0 12px 34px rgba(17, 67, 71, .11);
  --base-size: 16px;
}

* { box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(25,168,143,.16), transparent 30rem),
    linear-gradient(180deg, #f5fbfa 0%, #edf5f4 100%);
  min-height: 100vh;
}
button, input { font: inherit; }
button { touch-action: manipulation; }
.topbar {
  min-height: 74px;
  padding: .65rem max(1rem, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(120deg, #064b54, #08786f);
  box-shadow: 0 4px 18px rgba(5, 57, 62, .2);
}
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.brand img { border-radius: 12px; background: #fff; object-fit: contain; padding: 3px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.15rem; }
.brand small { opacity: .78; margin-top: .1rem; }
.text-controls { display: flex; gap: .35rem; }
.icon-button {
  min-width: 42px; min-height: 42px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 9px; color: #fff; background: rgba(255,255,255,.1); cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { background: rgba(255,255,255,.22); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.hero {
  display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem 1.5rem;
}
.eyebrow, .step { margin: 0 0 .35rem; color: var(--brand-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; max-width: 780px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.hero p:not(.eyebrow) { max-width: 760px; margin: .8rem 0 0; color: var(--muted); line-height: 1.6; }
.hero-image { width: 140px; height: 110px; object-fit: contain; justify-self: end; filter: drop-shadow(0 10px 12px rgba(5,80,84,.15)); }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 1.25rem; align-items: start; }
.side-column { display: grid; gap: 1.25rem; position: sticky; top: 1rem; }
.card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-card, .results-card, .criteria-card { padding: 1.35rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
h2 { margin: 0; font-size: 1.25rem; }
.progress-text { color: var(--muted); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.progress { height: 7px; margin: .85rem 0 1.25rem; border-radius: 10px; background: #e4efed; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width .25s; }
fieldset { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; }
legend { padding: 0 .45rem; color: var(--brand); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
label { display: block; font-size: .92rem; font-weight: 750; }
.unit { color: var(--muted); font-size: .78rem; font-weight: 600; }
input {
  width: 100%; min-height: 46px; margin-top: .4rem; padding: .68rem .75rem;
  color: var(--ink); background: #fbfdfd; border: 1.5px solid #b9d2cf; border-radius: 9px; outline: none;
}
input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(8,127,123,.14); }
input.invalid { border-color: var(--bad); background: #fff8f8; }
label small { display: block; min-height: 1.2em; margin-top: .3rem; color: var(--muted); font-weight: 500; }
.field-note { margin: .8rem 0 0; padding: .7rem .8rem; color: var(--muted); background: var(--soft); border-radius: 9px; font-size: .86rem; line-height: 1.45; }
.actions, .result-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
button.primary, button.secondary {
  min-height: 46px; padding: .7rem 1rem; border-radius: 10px; font-weight: 800; cursor: pointer;
}
.primary { flex: 1; border: 1px solid var(--brand); color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.primary:hover { filter: brightness(1.08); }
.secondary { border: 1px solid #a9c7c3; color: var(--brand); background: #fff; }
.secondary:hover { background: var(--soft); }
.message { margin: 0 0 1rem; padding: .75rem; border-radius: 9px; }
.error-message { color: #7d2424; background: #fff1f1; border: 1px solid #efbcbc; }
.empty-state { padding: 2.4rem .5rem; text-align: center; color: var(--muted); }
.empty-state > span { display: block; color: var(--brand-2); font-size: 3rem; }
.empty-state h2 { margin: .4rem 0; color: var(--ink); }
.empty-state p { margin: 0; line-height: 1.5; }
.verdict { margin: .7rem 0 1rem; padding: 1rem; border-radius: 12px; }
.verdict.ok { color: #0d6341; background: #e9f8f0; border: 1px solid #a8ddc3; }
.verdict.review { color: #7a4a06; background: #fff7e5; border: 1px solid #ead09b; }
.verdict h2 { margin-bottom: .3rem; }
.verdict p { margin: 0; line-height: 1.45; }
.checks { display: grid; gap: .55rem; margin-bottom: 1rem; }
.check {
  display: grid; grid-template-columns: 27px 1fr; gap: .55rem; align-items: start;
  padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfd;
}
.check .mark { font-weight: 900; text-align: center; }
.check.pass .mark { color: var(--ok); }
.check.fail .mark { color: var(--bad); }
.check strong, .check small { display: block; }
.check small { margin-top: .18rem; color: var(--muted); line-height: 1.35; }
.criteria-card summary { color: var(--brand); font-weight: 800; cursor: pointer; }
.criteria-card ul { padding-left: 1.2rem; }
.criteria-card li, .criteria-card p { color: var(--muted); line-height: 1.5; }
footer { padding: 1.3rem; text-align: center; color: var(--muted); font-size: .84rem; }
:focus-visible { outline: 3px solid rgba(25,168,143,.38); outline-offset: 2px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side-column { position: static; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 1rem, 1180px); padding-top: 1rem; }
  .topbar { padding-inline: .65rem; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr; padding-inline: .5rem; }
  .hero-image { display: none; }
  .form-card, .results-card, .criteria-card { padding: 1rem; border-radius: 14px; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
}
@media print {
  body { background: #fff; }
  .topbar, .hero, .form-card, .criteria-card, footer, .result-actions { display: none !important; }
  .shell, .layout { width: 100%; margin: 0; padding: 0; display: block; }
  .side-column { position: static; }
  .results-card { border: 0; box-shadow: none; }
}
.suite-home-link {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.66rem 1rem;
  border: 1px solid rgba(41, 216, 255, 0.55);
  border-radius: 999px;
  background: rgba(3, 16, 29, 0.95);
  color: #f5f9fc;
  font: 700 0.84rem/1 Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
}

.suite-home-link:hover {
  border-color: #29d8ff;
  color: #73e8ff;
}

.suite-home-link:focus-visible {
  outline: 3px solid #9eea43;
  outline-offset: 3px;
}
