.tkks-app {
  --tkks-ink: var(--wp--preset--color--ink, #163b38);
  --tkks-accent: var(--wp--preset--color--teal, var(--tkks-custom-accent, #17665b));
  --tkks-muted: var(--wp--preset--color--muted, #576963);
  --tkks-paper: var(--wp--preset--color--paper, #fafaf6);
  --tkks-surface: var(--wp--preset--color--white, #fff);
  --tkks-tint: var(--wp--preset--color--mint, #eaf2ed);
  --tkks-line: var(--wp--preset--color--line, #dbe4dd);
  --tkks-field-border: #84968e;
  --tkks-field-border: light-dark(#84968e, var(--tkks-line));
  --tkks-on-accent: #fff;
  --tkks-on-accent: light-dark(#fff, var(--tkks-paper));
  --tkks-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tkks-card-padding: 24px;
  box-sizing: border-box;
  min-width: 0;
  color: var(--tkks-ink);
  font: 1.125rem/1.6 var(--tkks-font);
  overflow-wrap: anywhere;
  isolation: isolate;
}
/* WordPress can set the outer shortcode wrapper to the wide template width. */
.tkks-app .tkks-shell {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.tkks-app * {
  box-sizing: border-box;
}
.tkks-app [hidden] {
  display: none !important;
}
.tkks-app :is(h2, h3, p) {
  margin: 0;
}
.tkks-app :is(h2, h3) {
  color: var(--tkks-ink);
  font-family: var(--tkks-font);
  font-style: normal;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}
.tkks-app h2 {
  font-size: 1.625rem;
  line-height: 1.25;
}
.tkks-app h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}
.tkks-app :is(h2, h3) + p {
  margin-block-start: 8px;
}
.tkks-app :is(a, .tkks-text-button, .tkks-privacy summary) {
  color: var(--tkks-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.tkks-app :is(a, .tkks-text-button, .tkks-privacy summary):hover {
  color: var(--tkks-ink);
}
.tkks-app :is(input, select, button, summary, a):focus-visible {
  outline: 3px solid var(--tkks-accent);
  outline-offset: 3px;
}
.tkks-app :is(.tkks-workspace, .tkks-card) {
  padding: var(--tkks-card-padding);
  border: 1px solid var(--tkks-line);
  border-radius: 12px;
  background: var(--tkks-surface);
}
.tkks-app .tkks-summary-view {
  padding: 0;
  border: 0;
  background: transparent;
}
.tkks-app :is(.tkks-intro, .tkks-result-heading) {
  margin-block-end: 24px;
}
.tkks-app .tkks-intro:last-child {
  margin-block-end: 0;
}
.tkks-app :is(.tkks-intro-meta, .tkks-muted, .tkks-check small, .tkks-source, .tkks-print-note, .tkks-disclaimer) {
  color: var(--tkks-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.tkks-intro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  margin-block-start: 8px;
}
.tkks-privacy[open] {
  flex-basis: 100%;
}
.tkks-app summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  min-height: 44px;
  padding-block: 9px;
}
.tkks-privacy p {
  margin-block-start: 8px;
  padding: 12px;
  border-radius: 6px;
  background: var(--tkks-tint);
}
.tkks-steps,
.tkks-filters,
.tkks-result-tools,
.tkks-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tkks-steps {
  margin-block-end: 24px;
}
.tkks-app :is(.tkks-button, .tkks-steps button, .tkks-filters button, .tkks-text-button) {
  min-height: 44px;
  border-radius: 6px;
  font: 600 1rem/1.35 var(--tkks-font);
  cursor: pointer;
}
.tkks-app :is(.tkks-button, .tkks-steps button, .tkks-filters button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--tkks-accent);
  background: var(--tkks-surface);
  color: var(--tkks-accent);
  text-decoration: none;
}
.tkks-app :is(.tkks-button, .tkks-steps button, .tkks-filters button):hover,
.tkks-app .tkks-steps [aria-current="step"] {
  background: var(--tkks-tint);
  color: var(--tkks-ink);
}
.tkks-steps b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tkks-tint);
  font-size: 0.875rem;
}
.tkks-app :is(.tkks-primary, .tkks-filters [aria-pressed="true"]),
.tkks-app .tkks-steps [aria-current="step"] b {
  background: var(--tkks-accent);
  color: var(--tkks-on-accent);
}
.tkks-app :is(.tkks-primary, .tkks-filters [aria-pressed="true"]):hover {
  background: var(--tkks-ink);
  border-color: var(--tkks-ink);
  color: var(--tkks-on-accent);
}
.tkks-app .tkks-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.tkks-app .tkks-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
}
.tkks-grid,
.tkks-date-grid,
.tkks-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tkks-grid,
.tkks-date-grid {
  margin-block-start: 16px;
}
.tkks-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.tkks-grid-3 .tkks-field {
  justify-content: space-between;
}
.tkks-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  font: 600 1rem/1.5 var(--tkks-font);
}
.tkks-app input:not(:where([type="checkbox"], [type="hidden"])),
.tkks-app select {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--tkks-field-border);
  border-radius: 6px;
  background: var(--tkks-surface);
  color: var(--tkks-ink);
  font: 1rem/1.5 var(--tkks-font);
}
.tkks-app input::placeholder {
  color: var(--tkks-muted);
  opacity: 1;
}
.tkks-app select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2384968e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.tkks-app input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--tkks-accent);
  margin: 3px 0 0;
}
.tkks-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding-block: 8px;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}
.tkks-check small {
  display: block;
  margin-block-start: 8px;
  font-weight: 400;
}
.tkks-step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-block-start: 1px solid var(--tkks-line);
  margin-block-start: 24px;
  padding-block-start: 16px;
}
.tkks-fieldset,
.tkks-symptoms,
.tkks-save-preference,
.tkks-reminder {
  min-width: 0;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 6px;
}
.tkks-fieldset {
  border: 1px solid var(--tkks-line);
}
.tkks-fieldset legend {
  padding-inline: 8px;
  font-size: 1rem;
  font-weight: 600;
}
.tkks-check-grid {
  gap: 0 16px;
}
.tkks-symptoms {
  padding-block: 4px;
  border: 1px solid #e2cba1;
  background: #fffaf1;
  color: #6d3d12;
}
.tkks-symptoms[open] {
  padding-block-end: 16px;
}
.tkks-symptoms p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-block-end: 8px;
}
.tkks-alert,
.tkks-message:not(:empty) {
  margin-block: 16px;
  padding: 16px;
  border: 1px solid var(--tkks-line);
  border-radius: 6px;
}
.tkks-alert {
  border-color: #deba88;
  background: #fff5e7;
  color: #6d3d12;
}
.tkks-alert.is-emergency,
.tkks-message.is-error {
  border-color: #ba5a52;
  background: #fff0ed;
  color: #872c23;
}
.tkks-message:not(.is-error):not(:empty),
.tkks-save-preference,
.tkks-reminder {
  background: var(--tkks-tint);
}
.tkks-date-field {
  min-width: 0;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--tkks-line);
}
.tkks-app .tkks-date-field > .tkks-field + .tkks-field,
.tkks-app .tkks-reminder .tkks-field + .tkks-field {
  margin-block-start: 8px;
}
.tkks-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-block: 24px;
}
.tkks-result-tools {
  margin-block-start: 16px;
}
.tkks-filters {
  margin-block-end: 16px;
}
.tkks-app .tkks-filters button {
  font-size: 0.875rem;
}
.tkks-result-list {
  display: grid;
  gap: 16px;
}
.tkks-card-top,
.tkks-card-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px 16px;
}
.tkks-card-actions {
  align-items: center;
  font-size: 1rem;
}
.tkks-app .tkks-card .tkks-reason {
  margin-block: 8px 16px;
}
.tkks-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tkks-tint);
  color: var(--tkks-ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.tkks-pill-now {
  background: #fceae2;
  color: #903b21;
}
.tkks-pill-soon {
  background: #fff2cd;
  color: #76500f;
}
.tkks-pill-doctor {
  background: #eaf0fc;
  color: #315587;
}
.tkks-pill-later {
  background: #eaf5ed;
  color: #29633f;
}
.tkks-card .tkks-details {
  border-block-start: 1px solid var(--tkks-line);
  margin-block-start: 16px;
}
.tkks-details dl {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 16px;
  font-size: 1rem;
}
.tkks-details dt {
  font-weight: 600;
}
.tkks-details dd {
  margin: 0;
  color: var(--tkks-muted);
}
.tkks-reminder .tkks-field {
  max-width: 280px;
}
.tkks-app .tkks-reminder :is(p, .tkks-field) {
  margin-block-end: 8px;
}
.tkks-disclaimer {
  margin-block-start: 24px;
  padding-block: 16px;
  border-block-start: 1px solid var(--tkks-line);
}
.tkks-disclaimer strong {
  display: block;
  margin-block-end: 8px;
  color: var(--tkks-ink);
}
.tkks-app .tkks-print-note {
  margin-block-start: 16px;
}
@media (max-width: 781px) {
  .tkks-app {
    --tkks-card-padding: 16px;
    font-size: 1rem;
  }
  .tkks-app h2 {
    font-size: 1.5rem;
  }
  .tkks-app :is(.tkks-grid, .tkks-date-grid, .tkks-check-grid, .tkks-details dl) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tkks-app .tkks-details dd {
    margin-block-end: 8px;
  }
}
@media (max-width: 480px) {
  .tkks-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tkks-app .tkks-steps button {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding-inline: 4px;
    font-size: 0.875rem;
    text-align: center;
  }
  .tkks-step-footer {
    flex-wrap: wrap;
  }
  .tkks-step-footer .tkks-button {
    flex: 1;
  }
  .tkks-step-footer > .tkks-muted {
    width: 100%;
  }
  .tkks-card-top {
    flex-direction: column;
  }
}
@media (forced-colors: active) {
  .tkks-app select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tkks-app * {
    scroll-behavior: auto !important;
  }
}
/* The temporary print copy is never shown in the screen layout. */
.tkks-app.tkks-print-target {
  display: none;
}
@media print {
  body.tkks-printing > :not(.tkks-print-target) {
    display: none !important;
  }
  body.tkks-printing {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: #fff !important;
  }
  body.tkks-printing > .tkks-print-target {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 11pt;
    color-scheme: light;
    --tkks-ink: #163b38;
    --tkks-muted: #576963;
    --tkks-surface: #fff;
    --tkks-line: #dbe4dd;
    --tkks-tint: #eaf2ed;
    --tkks-accent: #17665b;
    color: var(--tkks-ink);
  }
  .tkks-print-target h2 {
    font-size: 18pt;
    margin: 0 0 12pt;
  }
  .tkks-print-target .tkks-results {
    margin: 0;
    padding: 0;
  }
  .tkks-print-target .tkks-result-heading {
    display: block;
    margin: 0 0 12pt;
    break-after: avoid;
  }
  .tkks-print-target .tkks-result-tools {
    display: none;
  }
  .tkks-print-target .tkks-result-heading h2 {
    font-size: 14pt;
  }
  .tkks-print-target .tkks-result-list {
    display: block;
  }
  .tkks-app.tkks-print-target .tkks-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 0 0 6pt;
    box-shadow: none;
  }
  .tkks-print-target .tkks-card-top {
    flex-direction: row;
  }
  .tkks-print-target .tkks-card h3 {
    font-size: 13pt;
  }
  .tkks-print-target .tkks-card p {
    font-size: 10pt;
    line-height: 1.45;
  }
  .tkks-app.tkks-print-target .tkks-card .tkks-reason {
    margin: 6pt 0;
  }
  .tkks-print-target .tkks-source {
    display: block;
    margin-top: 6pt;
    overflow-wrap: anywhere;
  }
  .tkks-print-target .tkks-disclaimer {
    margin-top: 12pt;
    padding: 10pt 0 0;
  }
}
