.ts-guide {
  --ts-guide-ink: #112f29;
  --ts-guide-muted: #435e55;
  --ts-guide-green: #17654d;
  color: var(--ts-guide-ink);
  background: #f5faf7;
  border: 1px solid #d5e4dc;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  max-width: 47rem;
  width: calc(100% - 2rem);
  order: 1;
  box-sizing: border-box;
  margin: 1rem auto;
}
.ts-guide [hidden], .ts-guide[hidden], .ts-guide-status:empty { display: none; }
.ts-guide-mark {
  color: var(--ts-guide-green);
  background: #e4f1e9;
  border-radius: .7rem;
  padding: .55rem;
  display: grid;
  place-items: center;
  flex: none;
}
.ts-guide-content { min-width: 0; flex: 1; }
.ts-guide h2 { margin: 0 0 .35rem; font-size: 1.12rem; line-height: 1.25; }
.ts-guide p { margin: 0; line-height: 1.5; }
.ts-guide-note, .ts-guide-status { color: var(--ts-guide-muted); font-size: .875rem; }
.ts-guide-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ts-guide button, .ts-guide select {
  min-height: 44px;
  border: 1px solid var(--ts-guide-green);
  border-radius: .55rem;
  font: inherit;
  font-size: .875rem;
}
.ts-guide button {
  background: var(--ts-guide-green);
  color: white;
  padding: .55rem .75rem;
  font-weight: 650;
  cursor: pointer;
}
.ts-guide button:disabled { opacity: .65; cursor: wait; }
.ts-guide .ts-guide-secondary, .ts-guide select { background: #fff; color: var(--ts-guide-ink); }
.ts-guide button:focus-visible, .ts-guide select:focus-visible {
  outline: 3px solid #0b62a0;
  outline-offset: 3px;
}
.ts-guide-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}
.ts-guide-fields label { display: grid; gap: .3rem; font-size: .875rem; }
.ts-guide select { padding: .4rem; width: 100%; box-sizing: border-box; }
.ts-guide .ts-guide-status { margin-top: .65rem; }
.ts-guide-result {
  margin-top: .7rem;
  border-left: 3px solid var(--ts-guide-green);
  padding: .55rem .65rem;
  background: #eaf5ee;
  border-radius: .3rem;
}
.ts-guide-result p { font-size: .91rem; }
.ts-guide .ts-guide-credit { color: var(--ts-guide-muted); font-size: .75rem; margin-top: .65rem; }
.ts-guide-credit a { color: var(--ts-guide-green); text-decoration: underline; }
.ts-guide .ts-guide-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .ts-guide { padding: .75rem; gap: .55rem; }
  .ts-guide-mark { padding: .36rem; }
  .ts-guide-mark svg { width: 18px; height: 18px; }
}

/* The surrounding layout is only for this local preview. */
.guide-preview { margin: 0; background: #fff; color: #112f29; font: 16px/1.45 system-ui, sans-serif; }
.preview-header, .preview-main, .preview-footer { box-sizing: border-box; width: min(100%, 64rem); margin: auto; padding: 1rem; }
.preview-header { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid #e2eae6; }
.preview-header strong { color: #17654d; font-size: 1.4rem; }
.preview-header span, .preview-footer { font-size: .8rem; color: #435e55; }
.preview-hero { padding: clamp(1.25rem, 4vw, 2.75rem); background: #e7f2ec; border-radius: 1rem; }
.preview-hero p { margin: 0; }
.preview-hero h1 { margin: .4rem 0; font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.14; }
