:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #62675f;
  --paper: #f6f5f0;
  --panel: #fffdf7;
  --line: #deded7;
  --soft: #eee7da;
  --accent: #a45e38;
  --accent-soft: #f4eae3;
  --focus: #8f5a42;
  --shadow: 0 12px 30px rgb(65 55 42 / 0.07);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0efe8;
  --muted: #b6b8ae;
  --paper: #151714;
  --panel: #20231f;
  --line: #3b403a;
  --soft: #292d28;
  --accent: #e5a47f;
  --accent-soft: #3a2b25;
  --focus: #e5a47f;
  --shadow: 0 10px 24px rgb(0 0 0 / 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .78; }
.tool-date-hint { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; transform: translateY(-160%); border-radius: 6px; background: var(--ink); color: var(--paper); padding: 9px 12px; font-weight: 750; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); }
.nav { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav { min-height: 72px; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--ink); font-weight: 720; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: .88rem; }
.brand-name { color: inherit; }
.nav-links { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 2px; }
.nav-links a, .theme-toggle { min-height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 8px 10px; color: var(--muted); background: transparent; font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .theme-toggle:hover { border-color: var(--line); background: var(--soft); color: var(--ink); }
.theme-toggle { min-width: 44px; cursor: pointer; color: var(--ink); font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.mobile-menu-toggle { display: none; }

main { padding: 74px 0 96px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; }
h2 { margin: 50px 0 14px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.08; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p, li { max-width: 760px; }
.lede { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.tool-loading { display: grid; min-height: 320px; place-items: center; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font-weight: 700; }
.meta { margin-top: 24px; color: var(--muted); font-size: .9rem; }
.section { max-width: 820px; }
.notice { max-width: 820px; margin-top: 38px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); padding: 20px 22px; }
.notice p { margin: 8px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.card { display: flex; flex-direction: column; min-height: 190px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card-grid--library .card > p { margin-bottom: 20px; }
.card .button { margin-top: auto; align-self: flex-start; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 750; text-decoration: none; }
.button:hover { border-color: var(--accent); background: var(--accent); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--soft); }

.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); gap: 28px; align-items: start; margin-top: 38px; }
.feedback-compose, .feedback-guide { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 26px; }
.feedback-compose { border-color: var(--accent); }
.feedback-compose h2, .feedback-guide h2 { margin: 0; font-family: inherit; font-size: 1.35rem; font-weight: 760; letter-spacing: -.02em; }
.feedback-recipient { display: flex; gap: 8px; margin: 14px 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 16px; color: var(--muted); }
.feedback-recipient span { color: var(--ink); font-weight: 760; }
.feedback-recipient a { color: var(--ink); font-weight: 700; }
.feedback-field { display: grid; gap: 7px; margin-top: 16px; }
.feedback-field label { font-size: .85rem; font-weight: 760; }
.feedback-field :is(input, select, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 11px 12px; font: inherit; }
.feedback-field textarea { min-height: 142px; resize: vertical; }
.feedback-submit { margin-top: 20px; cursor: pointer; font: inherit; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
html[data-theme="dark"] .feedback-submit { border-color: var(--accent); background: var(--accent); color: #20231f; }
html[data-theme="dark"] .feedback-submit:hover, html[data-theme="dark"] .feedback-submit:focus-visible { border-color: #fff; background: #fff; color: #20231f; }
.feedback-submit:active { transform: translateY(1px) scale(.99); }
.feedback-status { min-height: 1.65em; margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.feedback-privacy-notice > strong { color: #e81721; font-size: 25px; line-height: 1.2; }
.feedback-guide h2 { color: var(--accent); }
.feedback-steps { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.feedback-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; margin: 0; border-top: 1px solid var(--line); padding: 18px 0; }
.feedback-steps li:first-child { border-top: 0; padding-top: 0; }
.feedback-steps li > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800; }
.feedback-steps strong { display: block; line-height: 1.4; }
.feedback-steps p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Library cards remain non-interactive; only their existing CTA links navigate. */
.card-grid--library .card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.card-grid--library .card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 10px 22px color-mix(in srgb, var(--ink) 9%, transparent);
}
.card-grid--library .card > .button {
  gap: 6px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.card-grid--library .card > .button::after {
  content: "→";
  display: inline-block;
  transition: transform 140ms ease;
}
.card-grid--library .card > .button:hover,
.card-grid--library .card > .button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}
.card-grid--library .card > .button:hover::after,
.card-grid--library .card > .button:focus-visible::after {
  transform: translateX(3px);
}
.card-grid--library .card:has(> .button:hover),
.card-grid--library .card:has(> .button:focus-visible) {
  transform: translateY(-3px) scale(1.012);
  box-shadow: var(--shadow), 0 16px 30px color-mix(in srgb, var(--ink) 12%, transparent);
}
.card-grid--library .card:has(> .button:active) {
  transform: translateY(-1px) scale(1.005);
}
.card-grid--library .card > .button:active {
  transform: translateY(1px);
}

/* Library cards retain a single full-width CTA without becoming clickable themselves. */
.card-grid--library .card > .library-card-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-color: var(--ink);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--ink) 12%, transparent);
  gap: 16px;
  padding: 10px 14px;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}
.card-grid--library .card > .library-card-cta::after {
  content: none;
}
.library-card-cta__label,
.library-card-cta__arrow {
  position: relative;
  z-index: 1;
}
.library-card-cta__arrow {
  display: inline-block;
  transition: transform 160ms ease;
}
.library-card-cta__ripple {
  position: absolute;
  z-index: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: library-cta-ripple 500ms ease-out forwards;
}
html[data-theme="light"] .library-card-cta__ripple {
  background: color-mix(in srgb, var(--paper) 52%, transparent);
}
html[data-theme="dark"] .library-card-cta__ripple {
  background: color-mix(in srgb, var(--accent) 36%, transparent);
}
@keyframes library-cta-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}
@media (hover: hover) and (pointer: fine) {
  .card-grid--library .card > .library-card-cta:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--paper);
    box-shadow: 0 6px 13px color-mix(in srgb, var(--ink) 18%, transparent);
    transform: translateY(-1px);
  }
  .card-grid--library .card > .library-card-cta:hover .library-card-cta__arrow {
    transform: translateX(4px);
  }
}
.card-grid--library .card > .library-card-cta:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 6px 13px color-mix(in srgb, var(--ink) 18%, transparent);
  transform: translateY(-1px);
}
.card-grid--library .card > .library-card-cta:focus-visible .library-card-cta__arrow {
  transform: translateX(4px);
}
.card-grid--library .card > .library-card-cta:active {
  transform: translateY(0) scale(.99);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.actions button.button { cursor: pointer; font: inherit; }
.actions button.button:disabled { cursor: wait; opacity: .7; }
.policy-list { padding-left: 22px; }
.policy-list li + li { margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: color-mix(in srgb, var(--paper) 74%, transparent); padding: 30px 0; }
.site-footer .footer-inner { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, .7fr)); gap: 28px 48px; }
.site-footer a, .site-footer strong { color: var(--paper); }
.site-footer .footer-brand { max-width: 330px; }
.site-footer .footer-brand p { margin: 8px 0 0; }
.site-footer .footer-home { display: inline-flex; margin-top: 14px; font-weight: 650; }
.site-footer .footer-group { display: grid; align-content: start; gap: 10px; }
.site-footer .footer-group strong { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.site-footer .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer .footer-links a { font-weight: 650; }
.not-found { display: grid; min-height: 56vh; align-content: center; }
.not-found .code { margin: 0 0 14px; color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }

@media (max-width: 700px) {
  .nav { width: min(100% - 32px, 1180px); }
  .container { width: min(100% - 32px, 1160px); }
  .nav { min-height: auto; flex-wrap: wrap; padding: 12px 0; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .theme-toggle { min-height: 44px; margin-left: auto; }
  main { padding: 54px 0 72px; }
  .card-grid { grid-template-columns: 1fr; }
  .feedback-layout { grid-template-columns: 1fr; gap: 16px; }
  .feedback-compose, .feedback-guide { padding: 20px; }
  .card { min-height: auto; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card-grid--library .card,
  .card-grid--library .card > .button,
  .card-grid--library .card > .button::after {
    transition: none !important;
    transform: none !important;
  }
  .library-card-cta__ripple {
    display: none;
    animation: none;
  }
}

.tool-page-intro { margin-bottom: 28px; }
.tool-page-intro h1 { font-size: clamp(2.15rem, 5vw, 4rem); }
.tool-page-intro .lede { margin-top: 12px; }
.tool-context { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.tool-context a { color: var(--accent); font-weight: 750; }
.tool-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; align-items: start; }
.tool-form, .tool-results { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); padding: 24px; }
.tool-form h2, .tool-results h2 { margin: 0 0 8px; font-family: inherit; font-size: 1.15rem; font-weight: 760; letter-spacing: -.02em; }
.tool-form > p, .tool-results > p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-field { display: grid; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 12px; }
.tool-field label { font-size: .77rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.tool-field input, .tool-field select, .tool-field textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); padding: 9px 10px; font: inherit; }
.tool-field textarea { min-height: 88px; resize: vertical; }
.tool-field--wide { grid-column: 1 / -1; }
.tool-field.has-error { border-color: var(--accent); }
.tool-field-error { margin: 0; color: var(--accent); font-size: .8rem; font-weight: 700; }
.tool-results { position: sticky; top: 92px; }
.tool-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-result { display: grid; min-height: 84px; align-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 13px; }
.tool-result span { color: var(--muted); font-size: .7rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.tool-result strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1; }
.tool-result--total { grid-column: 1 / -1; min-height: 102px; border-color: var(--accent); background: var(--accent-soft); }
.tool-result--total strong { font-size: clamp(1.8rem, 3vw, 2.35rem); }
.line-items { display: grid; gap: 8px; margin-top: 14px; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 86px 110px auto; gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 10px; }
.line-item input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); padding: 8px; font: inherit; }
.line-item button { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.line-item button:hover { background: var(--accent-soft); border-color: var(--accent); }
.tool-preview { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.tool-preview h3 { margin: 0 0 6px; }
.tool-preview p { margin: 0; color: var(--muted); white-space: pre-line; }
.tool-insight { margin: 18px 0 0; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--accent-soft); padding: 12px 14px; }
.tool-insight p, .tool-action-status { margin: 0; color: var(--muted); font-size: .88rem; }
.tool-action-status { min-height: 1.5em; margin-top: 10px; }
.manual-copy { margin-top: 12px; }
.tool-logo-preview { display: block; max-width: 160px; max-height: 80px; margin-top: 10px; object-fit: contain; }
.tool-customization { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.tool-customization-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 16px; }
.tool-customization-copy { min-width: 0; }
.tool-customization-copy h3 { margin: 8px 0 4px; }
.tool-customization-copy p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.tool-customization-badge { display: inline-flex; border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 4px 9px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
html[data-theme="light"] .tool-customization-badge { border: 1px solid var(--accent); background: var(--accent); color: var(--paper); }
.tool-customization-controls { display: grid; justify-items: end; gap: 6px; min-width: 0; }
.tool-customization-toggle { gap: 9px; white-space: nowrap; cursor: pointer; font: inherit; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.tool-customization-toggle:hover { border-color: var(--accent); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-1px); }
.tool-customization-toggle:focus-visible { border-color: var(--accent); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 16%, transparent); }
.tool-customization-toggle:active { transform: translateY(0) scale(.99); }
.tool-customization-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tool-customization-icon { font-size: 1.2rem; line-height: 1; transition: transform 160ms ease; }
.tool-customization-toggle[aria-expanded="true"] .tool-customization-icon { transform: rotate(45deg); }
.tool-customization-count { min-height: 1.35em; color: var(--accent); font-size: .78rem; font-weight: 750; }
.tool-customization-panel { margin-top: 14px; }
.tool-customization-panel[hidden] { display: none; }
.tool-preview .print-area { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); padding: 18px; overflow-wrap: anywhere; }
.tool-preview .preview-head, .tool-preview .preview-row { display: flex; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.tool-preview table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 14px 0; }
.tool-preview th, .tool-preview td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.tool-preview th:last-child, .tool-preview td:last-child { text-align: right; }
.tool-preview .print-area p { color: var(--ink); }
body:is([data-tool="invoice"], [data-tool="quote"]) #toolContent { max-width: 1160px; }
.tool-workspace.document-tool { grid-template-columns: minmax(420px, .92fr) minmax(560px, 1.08fr); gap: 24px; }
.document-tool .tool-results { min-width: 0; position: static; }
.document-tool .tool-preview .print-area { min-width: 0; overflow-x: visible; overflow-wrap: break-word; }
.document-tool .tool-preview .preview-head,
.document-tool .tool-preview .preview-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(172px, .4fr); align-items: start; }
.document-tool .tool-preview .preview-head > *,
.document-tool .tool-preview .preview-row > * { min-width: 0; }
.document-tool .tool-preview .preview-head > :last-child { text-align: right; }
.document-tool .tool-preview table { min-width: 0; table-layout: fixed; }
.document-tool .tool-preview :is(th, td):nth-child(2) { width: 58px; text-align: center; white-space: nowrap; }
.document-tool .tool-preview :is(th, td):nth-child(3) { width: 104px; text-align: right; white-space: nowrap; }
.document-tool .tool-preview :is(th, td):nth-child(4) { width: 116px; text-align: right; white-space: nowrap; }
.document-tool .tool-preview td:first-child { overflow-wrap: break-word; }
.document-tool .tool-preview table + .preview-row > :last-child,
.document-tool .tool-preview .preview-row + .preview-row > :last-child { min-width: 172px; text-align: right; font-variant-numeric: tabular-nums; }
.document-tool .document-logo-frame { width: min(180px, 100%); height: 72px; overflow: hidden; margin-bottom: 10px; border-radius: 6px; }
.document-tool .document-logo-frame .document-logo { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: cover; object-position: center; }
@media (max-width: 1180px) { .tool-workspace.document-tool { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .tool-workspace { grid-template-columns: 1fr; } .tool-results { position: static; } }
@media (max-width: 560px) {
  .tool-fields, .tool-result-list, .tool-customization-head { grid-template-columns: 1fr; }
  .tool-customization-controls { width: 100%; justify-items: stretch; }
  .tool-customization-toggle { width: 100%; white-space: normal; }
  .tool-customization-count { text-align: left; }
  .tool-result--total { grid-column: auto; }
  .line-item { grid-template-columns: 1fr 72px 1fr; }
  .line-item button { grid-column: 1 / -1; }
  .tool-preview .preview-head, .tool-preview .preview-row { flex-direction: column; }
  .document-tool .tool-form, .document-tool .tool-results { padding: 18px; }
  .document-tool .tool-preview .print-area { padding: 14px; }
  .document-tool .tool-preview .preview-head,
  .document-tool .tool-preview .preview-row { grid-template-columns: minmax(0, 1fr); }
  .document-tool .tool-preview .preview-head > :last-child { text-align: left; }
  .document-tool .tool-preview table + .preview-row > :last-child,
  .document-tool .tool-preview .preview-row + .preview-row > :last-child { min-width: 0; text-align: right; }
  .document-tool .tool-preview table { display: block; }
  .document-tool .tool-preview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .document-tool .tool-preview tbody,
  .document-tool .tool-preview tr,
  .document-tool .tool-preview td { display: block; width: 100%; }
  .document-tool .tool-preview tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
  .document-tool .tool-preview td { border: 0; padding: 4px 0; }
  .document-tool .tool-preview td:first-child { padding-bottom: 8px; font-weight: 650; }
  .document-tool .tool-preview td:nth-child(n + 2) { display: flex; width: 100%; justify-content: space-between; gap: 14px; text-align: right; white-space: nowrap; }
  .document-tool .tool-preview td:nth-child(2)::before { content: "Qty"; color: var(--muted); font-weight: 650; }
  .document-tool .tool-preview td:nth-child(3)::before { content: "Rate"; color: var(--muted); font-weight: 650; }
  .document-tool .tool-preview td:nth-child(4)::before { content: "Amount"; color: var(--muted); font-weight: 650; }
  .document-tool .document-logo-frame { width: min(150px, 100%); height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-customization-toggle { transition: none; }
  .tool-customization-icon { transition: none; }
  .tool-customization-toggle:hover, .tool-customization-toggle:active { transform: none; }
}
