:root {
  color-scheme: dark;
  --bg: #11140f;
  --surface: #191d16;
  --surface-deep: #141710;
  --line: #343b2c;
  --muted: #a3ad96;
  --text: #eff2e9;
  --accent: #d4f971;
  --error: #ffb3a7;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-shell { max-width: 1248px; margin: 0 auto; padding: 0 48px; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 13px; align-items: center; font-size: 23px; font-weight: 850; letter-spacing: -.9px; text-decoration: none; }
.wordmark-divider { color: var(--accent); font-size: 29px; font-weight: 300; }
.wordmark-product { font-size: 12px; font-weight: 600; letter-spacing: 2.2px; }
.environment-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.environment-badge > span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.intro { display: flex; gap: 36px; justify-content: space-between; align-items: center; padding: 62px 0 42px; }
.eyebrow, .small-label, .stamp-caption, .note-number, .result-badge, .footer-format { font: 11px/1.5 Consolas, "Courier New", monospace; letter-spacing: 1.3px; }
.eyebrow { color: var(--muted); margin: 0 0 22px; }
.eyebrow span { color: var(--accent); margin: 0 9px; }
h1 { margin: 0; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -3px; font-weight: 750; }
h1 > span { color: var(--accent); }
.intro-description { max-width: 570px; margin: 24px 0 0; font-size: 16px; color: var(--muted); }
code { color: var(--text); font: .92em Consolas, "Courier New", monospace; }
.format-stamp { flex: 0 0 196px; min-height: 196px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; transform: rotate(4deg); background: var(--surface-deep); }
.stamp-caption { color: var(--muted); font-size: 9px; }
.stamp-name { font: 49px/1.2 Consolas, "Courier New", monospace; letter-spacing: -4px; }
.stamp-name > span { color: var(--accent); }
.mode-notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; background: #242b18; border: 1px solid #465331; border-left: 3px solid var(--accent); margin-bottom: 30px; }
.notice-marker { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 13px Georgia, serif; }
.mode-notice h2 { margin: 0 0 3px; font-size: 14px; font-weight: 650; }
.mode-notice p { margin: 0; color: #bdc9aa; font-size: 13px; }
.mode-notice[data-mode="disabled"] { background: var(--surface); border-color: var(--line); }
.workspace { border: 1px solid var(--line); scroll-margin-top: 24px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.workspace-heading h2 { font-size: 15px; font-weight: 600; margin: 0; }
.small-label { color: var(--muted); font-size: 10px; }
.workspace-grid { display: grid; grid-template-columns: 1.12fr 1fr; }
.input-panel { padding: 30px 28px 20px; background: var(--surface); min-width: 0; }
.field { margin-bottom: 26px; }
label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.field-index { color: var(--muted); font: 10px Consolas, "Courier New", monospace; padding-right: 4px; }
.required-label { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
textarea, input { display: block; width: 100%; min-width: 0; border: 1px solid #49513e; border-radius: 3px; padding: 13px 14px; background: var(--surface-deep); color: var(--text); font-size: 14px; line-height: 1.6; }
textarea { resize: vertical; overflow-wrap: anywhere; }
#subscription-url { min-height: 120px; max-height: 360px; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
textarea::placeholder, input::placeholder { color: #8a957d; opacity: 1; }
textarea:focus, input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error); }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 0; }
.field-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#provider-counter { color: var(--muted); font: 10px/1.6 Consolas, "Courier New", monospace; white-space: nowrap; }
#provider-counter.over-limit { color: var(--error); }
.privacy-note { font-size: 12px; color: var(--muted); margin: 0 0 20px; max-width: 440px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #1c230f; font-size: 14px; font-weight: 750; transition: background-color .15s; }
.primary-button:hover:enabled { background: #e2ff9c; }
.primary-button:disabled { background: #333e24; border-color: #4b5939; color: #b3c59a; }
.button-arrow { font-size: 23px; line-height: 1; font-weight: 400; }
.request-status { color: var(--muted); font-size: 12px; margin: 12px 0 0; min-height: 19px; }
.error-message { font-size: 13px; color: var(--error); border-left: 2px solid var(--error); padding-left: 12px; margin: 14px 0 4px; }
.challenge-panel { margin-bottom: 22px; }
.challenge-label { font-size: 12px; margin: 0 0 10px; }
#turnstile-widget { max-width: 100%; min-height: 65px; }
.text-button { background: none; border: none; padding: 10px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; min-height: 44px; }
.output-panel { display: flex; flex-direction: column; padding: 30px 28px 24px; min-width: 0; border-left: 1px solid var(--line); background: var(--surface-deep); }
.output-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.output-heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.result-badge { color: var(--muted); font-size: 9px; border: 1px solid var(--line); padding: 4px 7px; letter-spacing: .8px; }
.result-badge[data-ready="true"] { color: var(--accent); border-color: #4b5939; }
.result-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 290px; padding: 28px 0; }
.empty-symbol { color: #69775a; font: 42px/1.3 Consolas, "Courier New", monospace; letter-spacing: -5px; }
.result-empty p { font-size: 22px; line-height: 1.35; letter-spacing: -.6px; color: #d3dbc8; margin: 20px 0 12px; }
.result-empty > span { color: var(--muted); font-size: 11px; }
#result-content { padding-top: 24px; }
#encrypted-url { min-height: 190px; max-height: 370px; font: 12px/1.7 Consolas, "Courier New", monospace; color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.secondary-button { min-height: 44px; border: 1px solid #596947; border-radius: 3px; color: var(--accent); background: transparent; font-size: 12px; padding: 10px 15px; }
.secondary-button:hover { background: #242b18; }
.secondary-button:disabled { color: var(--muted); }
.open-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-size: 12px; }
.output-footnote { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; color: var(--muted); }
.output-footnote > span { font-size: 20px; line-height: 1; }
.output-footnote p { margin: 0; font-size: 11px; max-width: 300px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; margin: 34px 0 50px; }
.note-number { color: var(--accent); font-size: 9px; }
.notes-grid h2 { margin: 10px 0 8px; font-size: 15px; font-weight: 600; }
.notes-grid p { font-size: 13px; color: var(--muted); margin: 0; max-width: 470px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding: 23px 0 30px; color: var(--muted); }
.site-footer > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.site-footer p { margin: 0; font-size: 11px; }
.footer-format { font-size: 10px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--accent); color: var(--bg); z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .site-shell { padding: 0 28px; }
  .intro { padding-top: 46px; gap: 24px; }
  h1 { font-size: 49px; letter-spacing: -2px; }
  .format-stamp { flex-basis: 150px; min-height: 160px; padding: 17px; }
  .stamp-name { font-size: 40px; }
  .input-panel, .output-panel { padding-left: 20px; padding-right: 20px; }
  .workspace-heading { padding-left: 20px; padding-right: 20px; }
  .field-meta { flex-wrap: wrap; gap: 3px; }
}
@media (max-width: 690px) {
  .site-shell { padding: 0 20px; }
  .site-header { min-height: 80px; gap: 12px; }
  .wordmark { font-size: 21px; gap: 9px; }
  .wordmark-product { font-size: 10px; letter-spacing: 1.5px; }
  .environment-badge { font-size: 10px; gap: 6px; }
  .intro { padding: 38px 0 28px; }
  h1 { font-size: clamp(34px, 7.5vw, 48px); letter-spacing: -1.7px; }
  .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .intro-description { font-size: 14px; margin-top: 20px; }
  .format-stamp { display: none; }
  .mode-notice { padding: 15px; gap: 11px; margin-bottom: 24px; }
  .mode-notice p { font-size: 12px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .input-panel { padding: 24px 20px 20px; }
  .output-panel { padding: 24px 20px; border-left: none; border-top: 1px solid var(--line); }
  .result-empty { min-height: 200px; }
  .result-empty p { font-size: 20px; }
  .output-footnote { margin-top: 24px; }
  .notes-grid { gap: 24px; grid-template-columns: 1fr; margin-bottom: 34px; }
  .notes-grid article + article { border-top: 1px solid var(--line); padding-top: 22px; }
  .site-footer { align-items: flex-start; }
  .footer-format { display: none; }
}
@media (max-width: 360px) {
  .site-shell { padding: 0 12px; }
  .environment-badge { max-width: 90px; line-height: 1.4; }
  .input-panel, .output-panel, .workspace-heading { padding-left: 14px; padding-right: 14px; }
  .small-label { font-size: 8px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .primary-button, .secondary-button, .mode-notice, textarea, input { border: 1px solid ButtonText; }
  .environment-badge > span { background: CanvasText; }
}
