@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
  img, svg { display: block; }
}
@layer base {
  :root { color-scheme: light; --ink: #202634; --muted: #596375; --line: #dce0e8; --blue: #2649db; --blue-dark: #1c36a6; --paper: #fff; --canvas: #f5f6f9; --radius: 12px; }
  html { scroll-padding-top: 90px; }
  body { color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
  a { color: var(--blue); text-underline-offset: 3px; }
  a:hover { color: var(--blue-dark); }
  button { cursor: pointer; }
  :focus-visible { outline: 3px solid #91a5ff; outline-offset: 3px; }
  h1, h2, h3 { font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
  h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.08rem; letter-spacing: -.015em; }
  small, .small { font-size: .875rem; }
  .muted { color: var(--muted); }
  .container { max-width: 1160px; padding-inline: 32px; margin-inline: auto; }
  .skip-link { position: absolute; top: -100px; left: 20px; padding: 10px 18px; background: white; z-index: 10; }
  .skip-link:focus { top: 12px; }
  .arrow { font-size: 1.2em; line-height: 1; }
}
@layer layout {
  .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.025em; white-space: nowrap; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { display: flex; align-items: center; gap: 28px; font-size: .875rem; }
  .site-nav a { color: var(--muted); text-decoration: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
  .page-intro { padding-top: 40px; padding-bottom: 24px; }
  .breadcrumb { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
  .breadcrumb a { color: inherit; text-decoration: none; }
  .breadcrumb span { margin: 0 8px; }
  .intro-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .page-intro p { margin-top: 10px; color: var(--muted); max-width: 660px; }
  .free-label { flex: 0 0 auto; display: inline-flex; padding: 5px 10px; background: #edf1ff; border: 1px solid #dce4ff; border-radius: 6px; font-size: .8125rem; color: #314dad; margin-top: 9px; }
  .workspace { display: grid; grid-template-columns: .95fr 1.1fr; gap: 22px; align-items: start; }
  .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .input-panel { padding: 24px; }
  .panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
  .panel-title h2 { font-size: 1.125rem; letter-spacing: -.015em; }
  .result-column { position: sticky; top: 24px; }
  .output-panel { padding: 24px; }
  .output-block + .output-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .output-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  .output-label label { display: flex; align-items: center; gap: 9px; margin: 0; }
  .step-dot { display: inline-grid; place-items: center; height: 24px; width: 24px; border: 1px solid #dce4ff; border-radius: 50%; color: var(--blue); font-size: .75rem; background: #f3f5ff; }
  .output-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .tool-note { margin-top: 13px; font-size: .8125rem; color: var(--muted); }
  .status { min-height: 25px; margin-top: 8px; font-size: .8125rem; color: var(--blue); }
  .guide { display: grid; grid-template-columns: 1fr 300px; gap: 52px; margin-top: 68px; padding-top: 38px; border-top: 1px solid var(--line); }
  .guide-copy h2 { margin-bottom: 22px; }
  .guide-copy > p { margin-bottom: 22px; color: #495366; }
  .guide-steps { margin: 0; padding-left: 23px; }
  .guide-steps li { padding-left: 8px; margin-bottom: 22px; }
  .guide-steps li::marker { font-weight: 700; color: var(--blue); }
  .guide-steps h3 { margin-bottom: 6px; }
  .guide-steps p { color: #495366; }
  .facts { background: white; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
  .facts dl { margin: 18px 0; }
  .facts dt { color: var(--muted); font-size: .8125rem; margin-top: 16px; }
  .facts dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 550; }
  .facts .source-note { border-top: 1px solid var(--line); padding-top: 14px; font-size: .8125rem; color: var(--muted); }
  .faq { margin-top: 38px; margin-bottom: 58px; max-width: 740px; }
  .faq h2 { margin-bottom: 20px; }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { font-size: 1rem; font-weight: 550; padding: 17px 0; cursor: pointer; }
  .faq details p { color: #495366; padding: 0 20px 18px 0; }
  .site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 30px; }
  .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 25px; padding-bottom: 25px; font-size: .8125rem; color: var(--muted); }
  .footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
  .footer-links a { color: var(--muted); text-decoration: none; }
  .home-main { min-height: calc(100vh - 160px); padding-block: 76px 86px; }
  .home-intro { max-width: 680px; margin-bottom: 44px; }
  .home-intro h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); max-width: 650px; }
  .home-intro p { color: var(--muted); margin-top: 18px; font-size: 1.125rem; }
  .tool-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 38px; }
  .tool-card .eyebrow { color: var(--blue); font-size: .8125rem; font-weight: 600; margin-bottom: 12px; }
  .tool-card h2 { font-size: 2rem; }
  .tool-card p { color: var(--muted); margin-block: 15px 25px; max-width: 380px; }
  .sample-notes { display: grid; gap: 12px; align-content: center; }
  .sample-note { background: #f5f7fc; border-left: 3px solid #c4cef9; padding: 16px 18px; font-size: .9375rem; }
  .sample-note span { display: block; text-transform: uppercase; letter-spacing: .07em; font-size: .6875rem; font-weight: 650; color: #536397; margin-bottom: 7px; }
  .prose { max-width: 760px; padding-block: 54px 70px; min-height: calc(100vh - 190px); }
  .prose h1 { margin-bottom: 22px; }
  .prose h2 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; }
  .prose p { margin-bottom: 16px; color: #495366; }
  .prose ul { padding-left: 22px; }
}
@layer components {
  label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 7px; }
  .field { margin-top: 17px; }
  .field label .optional { color: var(--muted); font-weight: 400; font-size: .8125rem; }
  input, select, textarea { display: block; width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cdd3df; border-radius: 7px; font-size: .9375rem; line-height: 1.5; }
  textarea { resize: vertical; min-height: 76px; }
  select { min-height: 44px; }
  textarea::placeholder, input::placeholder { color: #7b8290; opacity: 1; }
  .output-text { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .84375rem; line-height: 1.7; background: #f8f9fc; padding: 16px; border-color: #e1e5ec; }
  #opening-output { height: 320px; min-height: 220px; }
  #next-output { height: 160px; min-height: 130px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 7px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: .875rem; line-height: 1.4; }
  .button-primary { background: var(--blue); color: #fff; }
  .button-primary:hover { background: var(--blue-dark); color: #fff; }
  .button-secondary { border-color: #cdd3df; color: #34405a; background: white; }
  .button-secondary:hover { border-color: #8d9cb9; color: var(--ink); background: #f7f8fb; }
  .button-small { min-height: 32px; font-size: .8125rem; padding: 5px 10px; }
  .text-button { padding: 4px; border: 0; background: none; color: var(--muted); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
  .presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
  .preset { border: 1px solid var(--line); color: #4b576b; border-radius: 6px; background: white; padding: 6px 10px; font-size: .8125rem; min-height: 34px; }
  .preset[aria-pressed="true"], .preset:hover { color: var(--blue); border-color: #b5c2f8; background: #f0f3ff; }
  .form-options { margin-top: 16px; }
  .form-options summary { font-size: .8125rem; color: var(--muted); cursor: pointer; }
  .form-submit { margin-top: 22px; display: flex; align-items: center; gap: 15px; }
  .noscript { background: #fff4d5; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
  .cookie-settings { border: 0; background: transparent; color: var(--muted); padding: 0; font-size: inherit; line-height: inherit; }
  .cookie-settings:hover { color: var(--blue); }
  .consent-banner { position: fixed; bottom: 20px; right: 20px; z-index: 40; max-width: 440px; width: calc(100% - 40px); padding: 20px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 25px #2026341a; }
  .consent-banner p { margin: 6px 0 15px; color: var(--muted); font-size: .875rem; }
  .consent-actions { display: flex; gap: 10px; }
  .consent-actions .button { min-width: 90px; }
}
@layer responsive {
  @media (max-width: 900px) {
    .container { padding-inline: 24px; }
    .workspace { gap: 16px; grid-template-columns: 1fr 1fr; }
    .input-panel, .output-panel { padding: 20px; }
    .guide { gap: 28px; grid-template-columns: 1fr 260px; }
    .tool-card { gap: 26px; padding: 28px; }
  }
  @media (max-width: 760px) {
    .container { padding-inline: 20px; }
    .header-inner { min-height: 66px; gap: 14px; }
    .brand { font-size: 1rem; }
    .brand img { width: 27px; height: 27px; }
    .site-nav { gap: 16px; font-size: .8125rem; }
    .site-nav .nav-about { display: none; }
    .page-intro { padding-top: 26px; }
    .intro-row { display: block; }
    .free-label { margin-top: 14px; }
    .workspace, .guide, .tool-card { grid-template-columns: 1fr; }
    .workspace { gap: 20px; }
    .result-column { position: static; scroll-margin-top: 20px; }
    .output-actions .button { flex: 1; }
    .output-text { font-size: .875rem; }
    #opening-output { height: 330px; }
    .guide { margin-top: 40px; padding-top: 30px; gap: 18px; }
    .facts { margin-top: 0; }
    .faq { margin-top: 34px; margin-bottom: 40px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-main { padding-block: 45px 50px; }
    .home-intro { margin-bottom: 30px; }
    .tool-card { padding: 24px; gap: 30px; }
    .prose { padding-block: 35px 45px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}
