:root {
  color-scheme: light;
  --txc-paper: #f2f1ed;
  --txc-surface: #ffffff;
  --txc-soft: #e9e7e2;
  --txc-ink: #0b0b0d;
  --txc-muted: #5f5c64;
  --txc-line: #cbc8c2;
  --txc-brand-purple: #382c8a;
  --txc-purple: var(--txc-brand-purple);
  --txc-purple-deep: #2e2474;
  --txc-purple-soft: #ebe9f7;
  --txc-magenta: #d51f72;
  --txc-magenta-soft: #fae6f0;
  --txc-cyan: #008c9b;
  --txc-cyan-soft: #e0f4f6;
  --txc-yellow: #ffd21c;
  --txc-yellow-soft: #fff4bd;
  --txc-orange: #d96f12;
  --txc-orange-soft: #fbe9d9;
  --txc-accent: var(--txc-purple);
  --txc-accent-hover: var(--txc-purple-deep);
  --txc-accent-bright: #a69ae9;
  --txc-accent-soft: var(--txc-purple-soft);
  --txc-accent-contrast: #ffffff;
  --txc-gold: var(--txc-yellow);
  --txc-gold-soft: var(--txc-yellow-soft);
  --txc-info: var(--txc-cyan);
  --txc-info-soft: var(--txc-cyan-soft);
  --txc-review: var(--txc-magenta);
  --txc-review-soft: var(--txc-magenta-soft);
  --txc-warning: var(--txc-yellow);
  --txc-warning-soft: var(--txc-yellow-soft);
  --txc-progress: var(--txc-orange);
  --txc-progress-soft: var(--txc-orange-soft);
  --txc-positive: #23744a;
  --txc-danger: #a71f54;
  --txc-danger-soft: #fae6ee;
  --txc-chrome: #0b0b0d;
  --txc-chrome-text: #fbfaf7;
  --txc-chrome-muted: #c5c2c7;
  --txc-feature: #111114;
  --txc-feature-text: #ffffff;
  --txc-feature-muted: #c8c5cc;
  --txc-halftone-ink: #0b0b0d0d;
  --txc-radius: .85rem;
  --txc-shadow: 5px 5px 0 #0b0b0d14, 0 18px 48px #0b0b0d12;
  --txc-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --txc-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --txc-paper: #0c0c0f;
  --txc-surface: #17171b;
  --txc-soft: #242329;
  --txc-ink: #f5f3ef;
  --txc-muted: #b4b0b8;
  --txc-line: #403d45;
  --txc-brand-purple: #382c8a;
  --txc-purple: #b9aff8;
  --txc-purple-deep: #d0c9ff;
  --txc-purple-soft: #2a2444;
  --txc-magenta: #ff78b8;
  --txc-magenta-soft: #3d1b2b;
  --txc-cyan: #58dbe4;
  --txc-cyan-soft: #15333a;
  --txc-yellow: #ffda38;
  --txc-yellow-soft: #352e12;
  --txc-orange: #ff9e3d;
  --txc-orange-soft: #3b2919;
  --txc-accent: var(--txc-purple);
  --txc-accent-hover: var(--txc-purple-deep);
  --txc-accent-bright: #c5bcff;
  --txc-accent-soft: var(--txc-purple-soft);
  --txc-accent-contrast: #091014;
  --txc-gold: var(--txc-yellow);
  --txc-gold-soft: var(--txc-yellow-soft);
  --txc-info: var(--txc-cyan);
  --txc-info-soft: var(--txc-cyan-soft);
  --txc-review: var(--txc-magenta);
  --txc-review-soft: var(--txc-magenta-soft);
  --txc-warning: var(--txc-yellow);
  --txc-warning-soft: var(--txc-yellow-soft);
  --txc-progress: var(--txc-orange);
  --txc-progress-soft: var(--txc-orange-soft);
  --txc-positive: #72d49b;
  --txc-danger: #ff86b9;
  --txc-danger-soft: #3d1b2b;
  --txc-chrome: #070709;
  --txc-chrome-text: #fbfaf7;
  --txc-chrome-muted: #b8b4bd;
  --txc-feature: #141418;
  --txc-feature-text: #ffffff;
  --txc-feature-muted: #c9c5cd;
  --txc-halftone-ink: #ffffff0d;
  --txc-shadow: 5px 5px 0 #00000080, 0 18px 50px #00000052;
}

* { box-sizing: border-box; }
html { color: var(--txc-ink); background: var(--txc-paper); font-family: var(--txc-sans); font-size: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--txc-ink); background-color: var(--txc-paper); background-image: radial-gradient(circle, var(--txc-halftone-ink) 0 .8px, transparent .9px); background-position: 0 0; background-size: 13px 13px; }
button, input, select, textarea { font: inherit; }
a { color: var(--txc-accent); text-underline-offset: .2em; }
::selection { color: var(--txc-accent-contrast); background: var(--txc-accent); }
:focus-visible { outline: 3px solid var(--txc-accent-bright); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.visually-hidden.focusable:focus { position: fixed !important; z-index: 100; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; padding: .75rem; color: var(--txc-ink); background: var(--txc-surface); }
.txc-eyebrow { margin: 0; color: var(--txc-accent); font: 750 .76rem/1.2 var(--txc-mono); text-transform: uppercase; letter-spacing: .085em; }
.txc-button, .form-submit { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 2.8rem; padding: .78rem 1rem; color: var(--txc-ink); background: var(--txc-surface); border: 1px solid var(--txc-line); border-radius: .65rem; text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
.txc-button--primary, .form-submit.button--primary { color: #fff; background: var(--txc-brand-purple); border-color: var(--txc-brand-purple); box-shadow: 3px 3px 0 color-mix(in srgb, var(--txc-brand-purple) 22%, transparent); }
.txc-button--primary:hover, .form-submit.button--primary:hover { background: #2e2474; border-color: #2e2474; box-shadow: 4px 4px 0 color-mix(in srgb, var(--txc-brand-purple) 30%, transparent); }
.txc-button:hover, .form-submit:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 color-mix(in srgb, var(--txc-accent) 22%, transparent); }
.txc-page-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.txc-page-header h1 { margin: .25rem 0 .5rem; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.txc-page-header p:not(.txc-eyebrow) { max-width: 43rem; margin: 0; color: var(--txc-muted); line-height: 1.6; }
.txc-empty { padding: 3rem; text-align: center; color: var(--txc-muted); background: var(--txc-surface); border: 1px dashed var(--txc-line); border-radius: var(--txc-radius); }
.txc-tool-detail, .webform-submission-form, .user-login-form, .user-pass { max-width: 58rem; margin-inline: auto; padding: clamp(1.3rem, 4vw, 3rem); background: var(--txc-surface); border: 1px solid var(--txc-line); border-radius: var(--txc-radius); box-shadow: var(--txc-shadow); }
.txc-tool-detail__header { display: flex; justify-content: space-between; gap: 2rem; align-items: start; margin-block: 1.5rem 2rem; }
.txc-tool-detail h1 { margin: .25rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.05em; }
.txc-tool-detail__summary { color: var(--txc-muted); font-size: 1.1rem; }
.txc-tool-detail__body { font-size: 1.05rem; line-height: 1.7; }
.txc-tool-detail__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 2rem; }
.txc-tool-detail__meta > div { padding: 1rem; background: var(--txc-soft); border-radius: .7rem; }
.txc-tool-detail__meta dt { color: var(--txc-muted); font-size: .75rem; text-transform: uppercase; }
.txc-tool-detail__meta dd { margin: .4rem 0 0; }
.txc-back-link { color: var(--txc-muted); }
.webform-submission-form { display: grid; gap: 1.2rem; }
.webform-submission-form .form-item { margin-block: 1rem; }
.webform-submission-form label, .webform-submission-form legend { display: block; margin-bottom: .45rem; font-weight: 750; }
.webform-submission-form input[type="text"], .webform-submission-form input[type="url"], .webform-submission-form input[type="number"], .webform-submission-form input[type="email"], .webform-submission-form select, .webform-submission-form textarea { width: 100%; padding: .8rem .9rem; color: var(--txc-ink); background: var(--txc-surface); border: 1px solid var(--txc-line); border-radius: .55rem; }
.webform-submission-form input:focus, .webform-submission-form select:focus, .webform-submission-form textarea:focus { border-color: var(--txc-accent); }
.webform-submission-form .description { margin-top: .4rem; color: var(--txc-muted); font-size: .82rem; line-height: 1.5; }
.webform-progress { margin-bottom: 2rem; }
.webform-progress-tracker { color: var(--txc-muted); }
.webform-progress .webform-progress-tracker .progress-step::after { background-color: var(--txc-line); }
.webform-progress .webform-progress-tracker .progress-marker { color: var(--txc-muted); background-color: var(--txc-soft); }
.webform-progress .webform-progress-tracker .progress-marker::before,
.webform-progress .webform-progress-tracker .progress-marker::after { background-color: var(--txc-muted); }
.webform-progress .webform-progress-tracker .progress-step.is-active .progress-marker,
.webform-progress .webform-progress-tracker .progress-step.is-complete .progress-marker { color: var(--txc-accent-contrast); background-color: var(--txc-accent); }
.webform-progress .webform-progress-tracker .progress-step.is-active .progress-marker::before,
.webform-progress .webform-progress-tracker .progress-step.is-complete .progress-marker::before,
.webform-progress .webform-progress-tracker .progress-step.is-complete .progress-marker::after { background-color: var(--txc-accent); }
.webform-progress .webform-progress-tracker .progress-step.is-active .progress-title { color: var(--txc-ink); }
.messages { max-width: 58rem; margin: 0 auto 1rem; padding: 1rem; color: var(--txc-ink); border-left: 4px solid var(--txc-info); background: var(--txc-info-soft); }
@media (max-width: 650px) { .txc-page-header, .txc-tool-detail__header { align-items: flex-start; flex-direction: column; } .txc-tool-detail__meta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
