:root {
  --ink: #173b3c;
  --ink-soft: #557070;
  --teal: #0f5c5e;
  --teal-dark: #083e40;
  --teal-wash: #e4f0ed;
  --paper: #f5eddf;
  --paper-deep: #eadbc5;
  --canvas: #fbfaf7;
  --line: #d9d2c5;
  --white: #ffffff;
  --coral: #d98870;
  --shadow: 0 16px 36px rgba(25, 63, 62, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", Arial, sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-shell { max-width: 1280px; margin: 0 auto; padding: 0 34px 50px; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.brand-mark { display: grid; place-items: center; width: 25px; height: 25px; color: var(--white); background: var(--teal); border-radius: 50%; font-size: 12px; }
.header-link { color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; }
.header-link:hover, .directory-links a:hover, .directory-cta:hover { color: var(--coral); }

.hero { padding: 74px 0 38px; max-width: 780px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Lora, Georgia, serif; font-weight: 600; letter-spacing: -0.025em; }
h1 { margin-top: 10px; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.2; }
.hero-copy { max-width: 620px; margin: 22px 0 20px; color: var(--ink-soft); font-size: 18px; }
.hero-note { display: inline-flex; gap: 9px; align-items: center; color: var(--teal); font-size: 13px; }
.hero-note span { color: var(--coral); }

.details-card { padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.compact-heading { align-items: center; margin-bottom: 17px; }
.compact-heading h2 { margin-top: 4px; font-size: 23px; }
.save-note { color: var(--ink-soft); font-size: 12px; }
.details-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr; gap: 14px; }
label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
input, select { min-width: 0; padding: 11px 12px; color: var(--ink); border: 1px solid #cfc5b6; border-radius: 10px; background: rgba(255,255,255,0.7); outline: none; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,92,94,0.12); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; margin-top: 48px; }
.checklist-heading { margin-bottom: 19px; }
.checklist-heading h2 { margin-top: 5px; }
.progress-ring { display: grid; place-items: center; width: 64px; height: 64px; padding-top: 5px; border: 1px solid #b9d2cc; border-radius: 50%; background: var(--teal-wash); line-height: 1; }
.progress-ring strong { font-size: 17px; }
.progress-ring span { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 15px; }
.search-box { position: relative; flex: 1 1 200px; display: block; }
.search-box > span:not(.sr-only) { position: absolute; top: 8px; left: 11px; color: var(--ink-soft); font-size: 22px; transform: rotate(-15deg); }
.search-box input { width: 100%; padding-left: 34px; background: var(--white); }
.filter-group { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.filter-btn { padding: 7px 10px; color: var(--ink-soft); border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.filter-btn.active { color: var(--teal-dark); background: var(--teal-wash); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.button-primary { color: var(--white); background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-outline { color: var(--teal); border-color: #b9d2cc; background: var(--white); }
.button-outline:hover { border-color: var(--teal); background: var(--teal-wash); }
.text-button, .reset-button { padding: 0; color: var(--teal); border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button:hover, .reset-button:hover { color: var(--coral); }

.add-task-panel { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: end; margin-bottom: 15px; padding: 18px; border: 1px dashed #a8c3bb; border-radius: 14px; background: #f1f7f4; }
.add-task-title { grid-column: 1 / -1; color: var(--teal-dark); font-family: Lora, Georgia, serif; font-size: 16px; }
.add-task-actions { display: flex; align-items: center; gap: 14px; }

.checklist { display: grid; gap: 15px; }
.checklist-section { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 20px rgba(25, 63, 62, 0.04); }
.section-top { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 20px 20px 14px; border-bottom: 1px solid #eee9e0; }
.section-top h3 { font-size: 20px; }
.section-description { max-width: 600px; margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.section-count { flex: none; padding: 5px 8px; color: var(--teal); border-radius: 99px; background: var(--teal-wash); font-size: 11px; font-weight: 700; }
.task-list { padding: 5px 20px 10px; }
.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 50px; border-bottom: 1px solid #f1eee8; }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.task-input { width: 100%; padding: 8px 0; border: 0; background: transparent; font-size: 13px; }
.task-input:focus { box-shadow: none; }
.task-row.is-done .task-input { color: #92a2a0; text-decoration: line-through; }
.pdf-label { display: inline-flex; align-items: center; gap: 4px; color: #7a8b89; font-size: 10px; font-weight: 700; cursor: pointer; }
.pdf-label input { width: 13px; height: 13px; padding: 0; accent-color: var(--coral); cursor: pointer; }
.remove-task { padding: 5px; color: #9da7a3; border: 0; background: transparent; cursor: pointer; font-size: 17px; line-height: 1; }
.remove-task:hover { color: var(--coral); }
.empty-state { padding: 52px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { color: var(--coral); font-size: 25px; }
.empty-state h3 { margin-top: 8px; font-size: 19px; }
.empty-state p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }

.side-column { display: grid; gap: 17px; }
.summary-card, .directory-card { padding: 22px; border-radius: var(--radius); }
.summary-card { color: var(--white); background: var(--teal); box-shadow: var(--shadow); }
.summary-card .eyebrow { color: #bbded4; }
.summary-number { margin-top: 8px; font-family: Lora, Georgia, serif; font-size: 52px; line-height: 1; }
.summary-slash { padding: 0 5px; color: #7db0a4; font-size: 27px; }
.summary-card p { margin: 6px 0 0; color: #cae1da; font-size: 13px; }
.summary-progress { height: 5px; margin-top: 21px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,0.2); }
.summary-progress span { display: block; width: 0%; height: 100%; background: var(--coral); transition: width 200ms ease; }
.summary-small { margin-top: 16px !important; color: #a8cbc1 !important; font-size: 11px !important; }
.directory-card { border: 1px solid var(--paper-deep); background: var(--paper); }
.directory-card h3 { margin-top: 9px; font-size: 22px; }
.directory-card > p { margin: 9px 0 15px; color: var(--ink-soft); font-size: 12px; }
.directory-links { display: grid; gap: 0; border-top: 1px solid #ddcfbc; }
.directory-links a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #ddcfbc; color: var(--teal); font-size: 12px; font-weight: 600; text-decoration: none; }
.directory-cta { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.reset-button { justify-self: start; margin: 4px 0 0; color: var(--ink-soft); }

.site-footer { display: flex; justify-content: space-between; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.site-footer a { color: var(--teal); text-decoration: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; padding: 11px 14px; color: var(--white); border-radius: 10px; background: var(--teal-dark); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

.pdf-document { position: fixed; left: -10000px; top: 0; width: 794px; padding: 48px 54px; color: #173b3c; background: #fffdf9; font-family: Arial, sans-serif; }
.pdf-document.is-exporting { position: absolute; left: 0; top: 0; z-index: 9999; }
.pdf-document h1 { margin: 0; color: #0f5c5e; font-family: Georgia, serif; font-size: 28px; }
.pdf-brand { padding-bottom: 20px; border-bottom: 2px solid #0f5c5e; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.pdf-instruction { margin: 20px 0 18px; color: #557070; font-size: 11px; }
.pdf-details { display: flex; gap: 32px; margin-bottom: 22px; padding: 12px 0; border-top: 1px solid #d9d2c5; border-bottom: 1px solid #d9d2c5; font-size: 11px; }
.pdf-details strong { display: block; margin-bottom: 3px; color: #557070; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.pdf-section { margin: 0 0 17px; page-break-inside: avoid; }
.pdf-section h2 { margin: 0 0 7px; padding-bottom: 4px; color: #0f5c5e; border-bottom: 1px solid #c8d9d2; font-family: Georgia, serif; font-size: 16px; }
.pdf-task { display: flex; gap: 9px; padding: 4px 0; font-size: 10px; }
.pdf-box { flex: none; width: 11px; height: 11px; border: 1px solid #0f5c5e; }
.pdf-task.done { color: #8b9a96; text-decoration: line-through; }
.pdf-footer { margin-top: 20px; padding-top: 10px; color: #557070; border-top: 1px solid #d9d2c5; text-align: center; font-size: 10px; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; align-items: start; }
  .reset-button { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .page-shell { padding: 0 16px 34px; }
  .site-header { min-height: 66px; }
  .header-link { font-size: 11px; }
  .hero { padding: 53px 0 31px; }
  h1 { font-size: 45px; }
  .hero-copy { font-size: 16px; }
  .hero-note { align-items: flex-start; font-size: 12px; }
  .details-card { padding: 20px 17px; }
  .details-grid { grid-template-columns: 1fr; }
  .workspace { margin-top: 36px; }
  .toolbar { align-items: stretch; }
  .search-box { flex-basis: 100%; }
  .button { flex: 1 1 auto; }
  .add-task-panel { grid-template-columns: 1fr; }
  .add-task-title { grid-column: auto; }
  .section-top { padding: 17px 14px 12px; }
  .task-list { padding-left: 14px; padding-right: 14px; }
  .task-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; }
  .pdf-label { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -10px; margin-bottom: 5px; }
  .remove-task { grid-column: 3; grid-row: 1; }
  .side-column { grid-template-columns: 1fr; }
  .site-footer { margin-top: 50px; }
}

@media print {
  body { background: white; }
  .page-shell, .toast { display: none !important; }
}
