:root {
  --page: #edf4ec;
  --page-deep: #edf4ec;
  --surface: #fbfdf6;
  --surface-warm: #f3f5ea;
  --surface-cool: #eef5ef;
  --ink: #101c18;
  --ink-soft: #26362f;
  --graphite: #4d5c55;
  --muted: #6f7a72;
  --line: #aebcaf;
  --line-dark: #101c18;
  --green: #0d6b55;
  --green-dark: #08483c;
  --blue: #245fbd;
  --amber: #bb7414;
  --coral: #e2603f;
  --amber-text: #7a4a0d;
  --coral-text: #a64232;
  --lime: #d6ef68;
  --danger: #a64232;
  --focus: #101c18;
  --shadow-block: rgba(16, 28, 24, 0.13);
  --shadow-soft: 0 24px 70px rgba(16, 28, 24, 0.14);
  --radius: 8px;
  --radius-tight: 4px;
  --max: 1120px;
  --tool-max: 1120px;
  --font-ui: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Courier New", Consolas, Menlo, monospace;
  --font-numeric: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

main {
  flex: 1 0 auto;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(13, 107, 85, 0.38);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--ink);
  background: rgba(238, 245, 239, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.section,
.page-shell,
.content-grid,
.tool-workspace {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.brand-logo {
  width: 188px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-tight);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(16, 28, 24, 0.12);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 58px 0 50px;
  background:
    linear-gradient(180deg, rgba(248, 250, 241, 0.035) 0%, transparent 34%, rgba(4, 14, 12, 0.24) 100%),
    linear-gradient(122deg, #061210 0%, #08231c 52%, #04100e 100%);
  color: #f8faf1;
  border-bottom: 2px solid var(--ink);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: -2px -14%;
  background:
    linear-gradient(108deg, rgba(9, 48, 38, 0.72) 0%, rgba(9, 48, 38, 0.42) 18%, transparent 34%),
    linear-gradient(108deg, transparent 44%, rgba(13, 107, 85, 0.15) 64%, rgba(214, 239, 104, 0.06) 78%, transparent 94%);
  opacity: 0.82;
  filter: none;
  transform: none;
}

.hero::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(4, 14, 12, 0.18) 0%, transparent 26%, transparent 66%, rgba(4, 14, 12, 0.3) 100%),
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(4, 14, 12, 0.34) 100%);
  opacity: 0.95;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 30px;
  align-items: center;
  min-width: 0;
}

.hero-grid::before {
  display: none;
}

.hero-grid > *,
.preview-row > *,
.tool-workspace > *,
.content-grid > *,
.result-row > * {
  min-width: 0;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

.hero-copy {
  max-width: 780px;
}

.hero-copy::before {
  content: "Creator Workkit / no signup utilities";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(248, 250, 241, 0.36);
  border-radius: var(--radius-tight);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 850;
  line-height: 1;
  text-wrap: balance;
}

.hero h1 {
  color: #f8faf1;
  max-width: 800px;
  text-shadow:
    0 2px 0 rgba(16, 28, 24, 0.28),
    0 18px 54px rgba(214, 239, 104, 0.1);
}

.hero h1::after {
  content: "";
  display: block;
  width: 132px;
  height: 8px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--coral));
  box-shadow: 0 0 26px rgba(214, 239, 104, 0.24);
  transform-origin: left center;
  animation: hero-accent-pulse 6.5s ease-in-out infinite;
}

@keyframes hero-accent-pulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scaleX(0.92);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

.page-hero h1 {
  color: var(--ink);
  line-height: 1.05;
}

.page-hero .category-label + h1 {
  margin-top: 14px;
}

.page-hero p {
  margin: 16px 0 0;
}

.hero p,
.page-hero p,
.lead {
  max-width: 720px;
  color: var(--graphite);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.hero p {
  color: #d5dfd6;
  margin: 28px 0 0;
}

.hero-actions,
.section-actions,
.form-actions,
.result-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button,
.button-secondary,
.button-text {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-tight);
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button .icon,
.button-secondary .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--coral);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 var(--coral);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(16, 28, 24, 0.13);
}

.button-secondary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(16, 28, 24, 0.17);
}

.button-text {
  min-height: 44px;
  padding-inline: 0;
  border: 0;
  color: var(--green-dark);
  box-shadow: none;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.trust-strip li,
.mini-tag,
.category-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius-tight);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.category-label {
  border-color: var(--accent-text, var(--ink));
  background: color-mix(in srgb, var(--accent, var(--green)) 10%, var(--surface));
  color: var(--accent-text, var(--ink-soft));
}

.trust-strip li {
  gap: 7px;
}

.trust-strip .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}

.hero .trust-strip li {
  background: rgba(248, 250, 241, 0.08);
  border-color: rgba(248, 250, 241, 0.34);
  color: #f8faf1;
}

.hero-preview {
  position: relative;
  overflow: visible;
  color: var(--ink);
  box-shadow: 10px 10px 0 rgba(16, 28, 24, 0.18);
}

.hero-preview p {
  color: var(--graphite);
}

.hero-preview::before {
  content: "";
  position: absolute;
  top: -15px;
  right: 30px;
  width: 92px;
  height: 28px;
  border: 2px solid var(--ink);
  background: var(--lime);
  transform: rotate(2.5deg);
  z-index: 2;
}

.hero-preview::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(135deg, transparent 0 49%, var(--ink) 50% 54%, var(--surface-warm) 55% 100%);
  border-radius: 0 0 var(--radius) 0;
}

.work-panel,
.hero-preview,
.tool-card,
.result-slip,
.info-panel,
.faq-item,
.article-card,
.search-panel,
.status-preview {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.panel-tab {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #f8faf1;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-tab span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel-tab span:last-child {
  flex: 0 0 auto;
  color: var(--lime);
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
  white-space: nowrap;
}

.preview-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.preview-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.preview-value {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-weight: 820;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
}

.result-number {
  margin: 2px 0;
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 2.8rem;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
}

.formula-line,
.mono {
  font-family: var(--font-mono);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section {
  position: relative;
  z-index: 0;
  padding: 58px 0;
  --section-accent: var(--green);
  --section-rule: rgba(16, 28, 24, 0.18);
  --section-shadow: rgba(16, 28, 24, 0.1);
}

.section + .section {
  margin-top: 14px;
}

.section-tools {
  --section-accent: var(--green);
}

.section-workflows {
  --section-accent: var(--blue);
  --section-rule: rgba(36, 95, 189, 0.22);
  --section-shadow: rgba(36, 95, 189, 0.12);
}

.section-utility {
  --section-accent: var(--lime);
  --section-rule: rgba(13, 107, 85, 0.22);
  --section-shadow: rgba(226, 96, 63, 0.24);
}

.section-workflows,
.section-utility {
  padding: 66px 0;
}

.tools-list-section {
  padding-top: 36px;
}

.section-workflows::before,
.section-utility::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  display: block;
  box-shadow: inset 0 1px 0 var(--section-rule);
}

.section-workflows::before {
  background:
    linear-gradient(180deg, rgba(36, 95, 189, 0.045) 0%, rgba(36, 95, 189, 0.02) 100%),
    var(--surface-cool);
}

.section-utility::before {
  background:
    linear-gradient(180deg, rgba(214, 239, 104, 0.14) 0%, rgba(187, 116, 20, 0.035) 100%),
    var(--surface-warm);
}

.section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--section-rule);
}

.section-tools .section-header,
.section-workflows .section-header,
.section-utility .section-header {
  margin-bottom: 24px;
  padding: 18px 0 16px;
  border-bottom: 0;
}

.section-tools .section-header::before,
.section-workflows .section-header::before,
.section-utility .section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-tight);
  background: var(--section-accent);
  box-shadow: 4px 4px 0 var(--section-shadow);
}

.section-workflows .section-header::before {
  width: 92px;
}

.section-utility .section-header::before {
  width: 58px;
}

@media (min-width: 760px) {
  .section-header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

.section h2,
.content-block h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 840;
  line-height: 1.06;
  text-wrap: balance;
}

.section-header p,
.content-block p,
.faq-item p,
.tool-card p,
.info-panel p {
  color: var(--graphite);
}

.tool-grid,
.category-grid,
.trust-grid,
.workflow-grid,
.related-grid {
  display: grid;
  column-gap: 16px;
  row-gap: 22px;
}

.tool-grid {
  row-gap: 30px;
}

@media (min-width: 700px) {
  .tool-grid,
  .category-grid,
  .trust-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .trust-grid,
  .workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tool-card {
  position: relative;
  min-height: 222px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--green)) 5%, var(--surface)) 0%, var(--surface) 42%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--shadow-block);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.tool-card::before,
.category-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 16px;
  width: 74px;
  height: 13px;
  background: var(--accent, var(--green));
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-tight) var(--radius-tight) 0 0;
}

.tool-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--shadow-block);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--green)) 8%, #fffffb) 0%, #fffffb 46%);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tool-icon,
.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-tight);
  background: var(--surface-cool);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(16, 28, 24, 0.12);
}

.tool-icon {
  margin-bottom: 2px;
}

.panel-icon {
  margin-bottom: 6px;
  background: var(--lime);
}

.tool-card h3,
.category-card h3,
.info-panel h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.18;
}

.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.tool-card:not(.category-card) .card-meta {
  justify-content: flex-end;
}

.card-link {
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.button-text .icon,
.card-link .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.category-card,
.info-panel,
.article-card {
  position: relative;
  padding: 20px;
}

.info-panel {
  box-shadow: 5px 5px 0 rgba(16, 28, 24, 0.08);
}

.page-shell {
  padding: 34px 0 54px;
}

.breadcrumb-shell {
  padding: 30px 0 8px;
}

.page-hero {
  padding: 36px 0 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--ink-soft);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-workspace {
  width: min(var(--tool-max), calc(100% - 32px));
  padding: 22px 0 48px;
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .tool-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    align-items: start;
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .tool-workspace {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
  }

  .work-panel {
    min-height: 410px;
  }
}

.work-panel,
.result-slip {
  overflow: hidden;
}

.work-panel {
  box-shadow: 7px 7px 0 rgba(16, 28, 24, 0.1);
}

.tool-form {
  padding: 20px;
  display: grid;
  gap: 15px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 680px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(16, 28, 24, 0.38);
  border-radius: var(--radius-tight);
  background: #fffffb;
  color: var(--ink);
  padding: 10px 11px;
  font-variant-numeric: tabular-nums lining-nums;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-panel input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(214, 239, 104, 0.75);
  outline-offset: 1px;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field-help,
.error-text {
  color: var(--muted);
  font-size: 12px;
}

.error-text {
  color: var(--danger);
  font-weight: 780;
}

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

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 2px solid rgba(16, 28, 24, 0.26);
  border-radius: var(--radius-tight);
  padding: 11px 12px;
  background: #fffffb;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.checkbox-item input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(16, 28, 24, 0.58);
  border-radius: var(--radius-tight);
  background: #fffffb;
}

.checkbox-item input:checked {
  border-color: var(--green-dark);
  background: var(--green);
}

.checkbox-item input:checked::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #fffffb;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-item:has(input:checked) {
  border-color: rgba(13, 107, 85, 0.72);
  background: rgba(238, 245, 239, 0.72);
}

.result-slip {
  position: sticky;
  top: 94px;
  box-shadow: 7px 7px 0 rgba(16, 28, 24, 0.1);
}

.result-body {
  padding: 20px;
  display: grid;
  gap: 15px;
}

.result-main {
  display: grid;
  gap: 8px;
}

.result-main p {
  color: var(--graphite);
}

.result-breakdown {
  display: grid;
  gap: 8px;
  color: var(--graphite);
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.result-row strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
}

.result-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  border: 2px solid rgba(16, 28, 24, 0.34);
  border-radius: var(--radius-tight);
  background: #fffffb;
  padding: 12px;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 13px;
  max-height: 420px;
  overflow: auto;
}

.content-grid {
  width: min(var(--tool-max), calc(100% - 32px));
  display: grid;
  gap: 24px;
}

.tool-detail-content {
  padding-bottom: 36px;
}

@media (min-width: 880px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.content-block,
.side-stack {
  display: grid;
  gap: 22px;
}

.side-stack .info-panel > h3:first-child {
  margin-top: 0;
}

.side-stack .info-panel > h3 + .related-grid,
.side-stack .info-panel > h3 + p,
.side-stack .info-panel > h3 + .related-category-links {
  margin-top: 20px;
}

.content-block .info-panel {
  padding: 24px;
}

.content-block .info-panel > h2 + p,
.content-block .info-panel > h2 + .faq-list {
  margin-top: 16px;
}

.info-panel ul,
.content-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px 20px;
  box-shadow: none;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
}

.related-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.related-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 96px;
  padding: 22px 14px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(16, 28, 24, 0.1);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.related-tool-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 14px;
  width: 58px;
  height: 10px;
  background: var(--accent, var(--green));
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-tight) var(--radius-tight) 0 0;
}

.related-tool-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(16, 28, 24, 0.13);
  background: #fffffb;
}

.related-tool-card .tool-icon {
  width: 34px;
  height: 34px;
  margin: 0;
}

.related-tool-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.related-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.related-tool-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.18;
}

.related-tool-description {
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.4;
}

.related-tool-card .card-link {
  align-self: center;
  color: var(--green-dark);
}

.related-tool-card .card-link .icon {
  width: 17px;
  height: 17px;
}

.related-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.related-category-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(16, 28, 24, 0.32);
  border-radius: var(--radius-tight);
  background: #fffffb;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
}

.related-category-links a:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.legal-copy {
  max-width: 900px;
  display: grid;
  gap: 18px;
}

.legal-copy .info-panel {
  padding: 24px;
}

.legal-copy .info-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.legal-copy .info-panel p {
  margin: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.search-panel {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 18px;
  box-shadow: 7px 7px 0 rgba(16, 28, 24, 0.11);
}

@media (min-width: 760px) {
  .search-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }
}

.search-panel .field {
  max-width: 620px;
}

.search-panel input {
  min-height: 48px;
  border: 2px solid rgba(16, 28, 24, 0.38);
  border-radius: var(--radius-tight);
  padding: 10px 12px;
  background: #fffffb;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-buttons button {
  min-width: 44px;
  min-height: 48px;
  border-radius: var(--radius-tight);
  border: 2px solid rgba(16, 28, 24, 0.36);
  background: #fffffb;
  padding: 10px 13px;
  color: var(--graphite);
  font-weight: 820;
  font-size: 13px;
}

.filter-buttons button.is-active {
  background: var(--ink);
  color: #f8faf1;
  border-color: var(--ink);
}

.search-status {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 760;
}

.search-status:focus-visible {
  outline-offset: 5px;
}

.search-empty {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 7px 7px 0 rgba(16, 28, 24, 0.1);
}

.search-empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.12;
}

.search-empty p {
  margin: 0;
  color: var(--graphite);
}

.search-empty .button-secondary {
  width: fit-content;
}

.tool-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.tool-pagination .button-secondary {
  min-width: auto;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-page {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-tight);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(16, 28, 24, 0.14);
}

.pagination-page[aria-current="page"] {
  background: var(--ink);
  color: #f8faf1;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.pagination-control:disabled,
.pagination-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 520px) {
  .tool-pagination {
    justify-content: stretch;
  }

  .pagination-control {
    flex: 1 1 120px;
  }

  .pagination-pages {
    order: -1;
    width: 100%;
  }
}

.status-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fffffb;
}

.yt-title-preview {
  font-weight: 820;
  line-height: 1.25;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.calendar-table th,
.calendar-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.calendar-table th {
  background: var(--surface-warm);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (min-width: 760px) {
  .hero h1 {
    font-size: 4.15rem;
  }

  .page-hero h1 {
    font-size: 3.55rem;
  }
}

@media (min-width: 1120px) {
  .hero h1 {
    font-size: 4.55rem;
  }
}

@media (max-width: 620px) {
  .calendar-table,
  .calendar-table tbody,
  .calendar-table tr,
  .calendar-table td {
    display: block;
  }

  .calendar-table thead {
    display: none;
  }

  .calendar-table tr {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 10px;
    background: #fffffb;
  }

  .calendar-table td {
    border: 0;
    padding: 4px 0;
  }

  .calendar-table td::before {
    content: attr(data-label) ": ";
    font-weight: 820;
    color: var(--muted);
  }
}

@media (max-width: 959px) {
  .result-slip .calendar-table,
  .result-slip .calendar-table tbody,
  .result-slip .calendar-table tr,
  .result-slip .calendar-table td {
    display: block;
  }

  .result-slip .calendar-table thead {
    display: none;
  }

  .result-slip .calendar-table tr {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 10px;
    background: #fffffb;
  }

  .result-slip .calendar-table td {
    border: 0;
    padding: 4px 0;
  }

  .result-slip .calendar-table td::before {
    content: attr(data-label) ": ";
    font-weight: 820;
    color: var(--muted);
  }
}

.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: #f8faf1;
}

.footer-inner {
  padding: 32px 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d5dfd6;
  font-size: 14px;
}

.footer-links a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-feedback {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d5dfd6;
  border-radius: 999px;
  padding: 8px 14px;
  color: #f8faf1;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  background: rgba(248, 250, 241, 0.06);
}

.footer-feedback:hover {
  background: #d9f06b;
  border-color: #d9f06b;
  color: var(--ink);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.hero .small,
.site-footer .small {
  color: #d5dfd6;
}

.hero .hero-preview .small {
  color: var(--graphite);
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .page-shell,
  .tool-workspace,
  .content-grid,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 70px;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
    flex-direction: column;
  }

  .brand-logo {
    width: 156px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 0 30px;
  }

  .hero::before {
    inset: -2px -86%;
    opacity: 0.72;
  }

  .hero-grid {
    width: min(100% - 24px, var(--max));
  }

  .hero-preview {
    display: none;
  }

  .hero h1 {
    font-size: 2.34rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy::before {
    font-size: 11px;
    margin-bottom: 14px;
    padding: 6px 9px;
  }

  .hero h1::after {
    width: 116px;
    height: 6px;
    margin-top: 14px;
  }

  .hero p {
    margin-top: 20px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero .button,
  .hero .button-secondary {
    min-height: 44px;
    padding: 10px 13px;
  }

  .trust-strip {
    gap: 8px;
    row-gap: 8px;
    margin-top: 20px;
  }

  .panel-tab,
  .result-body,
  .tool-form {
    padding-inline: 14px;
  }

  .panel-tab {
    gap: 8px;
  }

  .panel-tab span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-row {
    gap: 8px;
  }

  .tool-card {
    min-height: auto;
  }

  .filter-buttons {
    gap: 7px;
  }

  .filter-buttons button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .formula-line {
    font-size: 13px;
    line-height: 1.72;
  }

  .result-text {
    padding: 14px;
    line-height: 1.58;
  }

  .tools-list-section {
    padding-top: 26px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .result-slip {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .site-header,
  .site-footer,
  .breadcrumbs,
  .breadcrumb-shell,
  .form-actions,
  .result-actions,
  .content-grid,
  .page-hero,
  .tool-form,
  .work-panel {
    display: none !important;
  }

  html,
  body {
    background: white !important;
    color: #101c18;
    display: block;
  }

  main {
    display: block;
    padding-bottom: 0;
  }

  .tool-workspace {
    width: 100%;
    display: block;
    padding: 0;
  }

  .result-slip {
    position: static;
    box-shadow: none !important;
    border: 0;
    background: white;
  }

  .result-slip .panel-tab {
    min-height: 0;
    padding: 0 0 10px;
    margin: 0 0 18px;
    border: 0;
    border-bottom: 2px solid #101c18;
    background: transparent;
    color: #101c18;
  }

  .result-slip .panel-tab span:first-child {
    color: #101c18;
    font-family: var(--font-display);
    font-size: 22pt;
    font-weight: 850;
    text-transform: none;
  }

  .result-slip .panel-tab span:last-child {
    color: #4d5c55;
    font-size: 9pt;
  }

  .result-body {
    padding: 0;
    gap: 14px;
  }

  .mini-tag {
    border: 1px solid #101c18;
    background: white;
  }

  .result-number {
    font-size: 34pt;
  }

  .result-row,
  .result-text {
    break-inside: avoid;
  }

  .result-text {
    max-height: none;
    border: 1px solid #87928a;
    background: white;
    font-size: 10pt;
  }
}
