:root {
  --ink: #1f2a24;
  --paper: #f3f0e8;
  --panel: #fffdf7;
  --line: #c7bfae;
  --muted: #627067;
  --green: #25342d;
  --leaf: #477560;
  --clay: #b7623d;
  --gold: #d7a843;
  --blue: #315d71;
  --shadow: 0 22px 54px rgba(31, 42, 36, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 52, 45, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(183, 98, 61, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: Avenir, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
.hk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--panel);
  color: var(--green);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, background-color 140ms ease-out;
}

button:hover,
.hk-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 42, 36, 0.13);
}

button:active,
.hk-button:active {
  transform: translateY(0);
}

.primary {
  background: var(--green);
  color: #fff;
}

.hk-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  border-bottom: 1px solid rgba(37, 52, 45, 0.18);
  background: rgba(243, 240, 232, 0.94);
  backdrop-filter: blur(12px);
  padding: 0 32px;
}

.hk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hk-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 36px;
  align-items: center;
  min-height: 500px;
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 920px;
  color: #536059;
  font-size: 18px;
  line-height: 1.58;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hk-meter,
.hk-panel,
.hk-sheet,
.demand-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.97);
  box-shadow: var(--shadow);
}

.hk-meter {
  padding: 22px;
}

.hk-meter dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hk-meter div,
.summary-strip div {
  border-left: 4px solid var(--gold);
  background: #f7f2e2;
  padding: 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
}

.demand-note {
  margin: 0 0 22px;
  padding: 16px 18px;
  color: #43514a;
  line-height: 1.55;
}

.demand-note p {
  margin: 0;
}

.hk-workflow {
  display: grid;
  grid-template-columns: minmax(350px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
  padding: 0 0 52px;
}

.hk-panel,
.hk-sheet {
  padding: 20px;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 20px 0 6px;
}

fieldset:first-child {
  border-top: 0;
  padding-top: 0;
}

legend {
  padding-right: 10px;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfb6a3;
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  letter-spacing: 0;
}

textarea {
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid label:has(textarea) {
  grid-column: 1 / -1;
}

.task-controls,
.checklist-sections {
  display: grid;
  gap: 12px;
}

.task-section,
.report-block {
  border: 1px solid rgba(37, 52, 45, 0.18);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.task-section h3,
.report-block h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 16px;
}

.task-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 10px 0;
  color: #405047;
  font-weight: 650;
  line-height: 1.4;
}

.task-toggle input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--leaf);
}

.status-message,
.fine-print,
.instrumentation {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.instrumentation {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.instrumentation h2 {
  font-size: 16px;
}

code {
  border-radius: 4px;
  background: rgba(49, 93, 113, 0.1);
  padding: 2px 5px;
  color: var(--blue);
  font-size: 0.92em;
}

.sheet-label {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checklist-document {
  display: grid;
  gap: 16px;
}

.document-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid var(--green);
  padding-bottom: 16px;
}

.document-header h2 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
}

.document-header strong {
  align-self: start;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 10px 12px;
  white-space: nowrap;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  color: #35433b;
  line-height: 1.45;
}

li span {
  color: var(--leaf);
  font-weight: 900;
}

li.done {
  color: #5e6b64;
}

@media (max-width: 900px) {
  .hk-topbar,
  .document-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hk-hero,
  .hk-workflow {
    grid-template-columns: 1fr;
  }

  .hk-hero {
    min-height: 0;
  }

  .summary-strip,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1240px);
  }

  .hk-topbar {
    padding: 12px 16px;
  }

  h1 {
    font-size: 38px;
  }

  .hk-panel,
  .hk-sheet,
  .hk-meter {
    padding: 16px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hk-topbar,
  .hk-panel,
  .demand-note {
    display: none;
  }

  main,
  .hk-workflow {
    display: block;
    width: 100%;
    margin: 0;
  }

  .hk-sheet {
    border: 0;
    box-shadow: none;
  }
}
