.hzt-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hzt-tool-page,
.hzt-index,
.hzt-home {
  color: #18212f;
}

.hzt-tool-hero,
.hzt-section-head,
.hzt-home-hero {
  margin: 0 0 28px;
}

.hzt-tool-hero h1,
.hzt-section-head h1,
.hzt-home-copy h1 {
  margin: 8px 0 12px;
  max-width: 860px;
  color: #111827;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.hzt-section-head h2 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.hzt-tool-hero p,
.hzt-section-head p,
.hzt-home-copy p {
  max-width: 760px;
  color: #536071;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hzt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hzt-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  content: "";
}

.hzt-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(249, 115, 22, .07)),
    #ffffff;
}

.hzt-home-actions,
.hzt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.hzt-home-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #0f172a;
  color: #e5f2ef;
}

.hzt-home-panel strong {
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
}

.hzt-home-panel span {
  margin-bottom: 10px;
  color: #a8c8c2;
  font-size: .92rem;
}

.hzt-button,
.hzt-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.hzt-button:hover,
.hzt-button:focus-visible {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f4f49;
  transform: translateY(-1px);
}

.hzt-button--primary,
.hzt-button--primary:visited {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.hzt-button--primary:hover,
.hzt-button--primary:focus-visible {
  border-color: #115e59;
  background: #115e59;
  color: #ffffff;
}

.hzt-button--ghost {
  background: transparent;
}

.hzt-searchbar {
  margin: 20px 0 26px;
}

.hzt-searchbar input,
.hzt-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #ccd7e2;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hzt-searchbar input {
  min-height: 54px;
  padding: 0 18px;
  font-size: 1rem;
}

.hzt-input:focus,
.hzt-searchbar input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

textarea.hzt-input {
  min-height: 150px;
  resize: vertical;
}

.hzt-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.hzt-form-row label,
.hzt-check {
  display: grid;
  gap: 7px;
  color: #405064;
  font-size: .93rem;
  font-weight: 700;
}

.hzt-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.hzt-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.hzt-check-grid .hzt-check {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f8fafc;
}

.hzt-app {
  margin: 22px 0 30px;
  padding: 22px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.hzt-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.hzt-stat {
  min-height: 80px;
  padding: 14px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #f8fafc;
}

.hzt-stat span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hzt-stat strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hzt-typing-target {
  min-height: 118px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hzt-typing-input {
  font-size: 1.02rem;
  line-height: 1.7;
}

.hzt-typing-input.is-complete {
  background: #f0fdfa;
}

.hzt-key-zone {
  display: grid;
  min-height: 140px;
  place-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #405064;
  font-weight: 800;
  text-align: center;
}

.hzt-output {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #f8fafc;
}

.hzt-output-text {
  margin-top: 14px;
  background: #f8fafc;
}

.hzt-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hzt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: .88rem;
}

.hzt-result-banner {
  min-height: 58px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hzt-result-banner.is-good {
  border-color: #99d6bd;
  background: #ecfdf5;
  color: #166534;
}

.hzt-result-banner.is-warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.hzt-strength {
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.hzt-strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .18s ease, background .18s ease;
}

.hzt-copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.hzt-copy-line code {
  display: block;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.hzt-table-wrap {
  overflow-x: auto;
}

.hzt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: .95rem;
}

.hzt-table th,
.hzt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf0;
  text-align: left;
}

.hzt-table th {
  background: #f8fafc;
  color: #405064;
  font-size: .78rem;
  text-transform: uppercase;
}

.hzt-color-preview {
  width: 100%;
  min-height: 96px;
  margin: 12px 0 16px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.hzt-time-app {
  text-align: center;
}

.hzt-time-display {
  margin: 8px auto 18px;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.hzt-lap-list {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 18px auto 0;
  padding-left: 24px;
  text-align: left;
}

.hzt-category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 32px;
}

.hzt-category-strip a {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.hzt-category-strip a:hover {
  border-color: #0f766e;
}

.hzt-category-strip span {
  font-weight: 850;
  line-height: 1.25;
}

.hzt-category-strip small {
  color: #667085;
  font-weight: 700;
}

.hzt-section-head--inline {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.hzt-section-head--inline a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.hzt-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hzt-card-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hzt-tool-card {
  min-height: 240px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.hzt-tool-card:hover {
  border-color: #0f766e;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .08);
  transform: translateY(-2px);
}

.hzt-tool-card[hidden] {
  display: none;
}

.hzt-tool-card a {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 240px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.hzt-card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e7f7f4;
  color: #0f766e;
  font-size: .82rem;
  font-weight: 900;
}

.hzt-card-category {
  color: #f97316;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hzt-tool-card h3 {
  margin: 8px 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hzt-tool-card p {
  margin: 0;
  color: #536071;
  font-size: .94rem;
  line-height: 1.55;
}

.hzt-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.hzt-info-panel,
.hzt-faq,
.hzt-related {
  padding: 22px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.hzt-info-panel h2,
.hzt-faq h2,
.hzt-related h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hzt-info-panel p,
.hzt-info-panel li,
.hzt-faq p {
  color: #536071;
  line-height: 1.65;
}

.hzt-info-panel ol {
  margin: 0;
  padding-left: 20px;
}

.hzt-faq {
  margin-bottom: 28px;
}

.hzt-faq details {
  border-top: 1px solid #e5eaf0;
  padding: 14px 0;
}

.hzt-faq details:first-of-type {
  border-top: 0;
}

.hzt-faq summary {
  color: #18212f;
  font-weight: 850;
  cursor: pointer;
}

.hzt-related {
  margin-bottom: 28px;
}

.hzt-notice {
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 750;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .hzt-card-grid,
  .hzt-card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hzt-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hzt-wrap {
    width: min(100% - 24px, 1180px);
  }

  .hzt-home-hero,
  .hzt-content-grid {
    grid-template-columns: 1fr;
  }

  .hzt-home-hero {
    padding: 22px;
  }

  .hzt-home-panel {
    min-height: 0;
  }

  .hzt-form-row,
  .hzt-stat-grid,
  .hzt-card-grid,
  .hzt-card-grid--compact,
  .hzt-check-grid {
    grid-template-columns: 1fr;
  }

  .hzt-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hzt-section-head--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hzt-tool-hero h1,
  .hzt-section-head h1,
  .hzt-home-copy h1 {
    font-size: 1.75rem;
  }

  .hzt-time-display {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hzt-category-strip {
    grid-template-columns: 1fr;
  }

  .hzt-app,
  .hzt-info-panel,
  .hzt-faq,
  .hzt-related {
    padding: 16px;
  }

  .hzt-copy-line {
    grid-template-columns: 1fr;
  }
}

