/* V1 presentation layer. Enqueue after directory/framework and engine styles. */
.zt-body {
  --zt-ink: #202b3b;
  --zt-muted: #606c7c;
  --zt-blue: #315ed5;
  --zt-blue-dark: #2449aa;
  --zt-line: #e1e6ed;
  --zt-bg: #f7f8fa;
  --zt-shadow: 0 6px 20px rgba(32, 43, 59, .05);
  --zt-radius: 14px;
  color: var(--zt-ink);
  background: var(--zt-bg);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
.zt-body [hidden] { display: none !important; }
.zt-body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--zt-blue);
  outline-offset: 3px;
}
.zt-body label:has(input[type="file"]):focus-within { outline: 3px solid var(--zt-blue); outline-offset: 3px; }
.zt-body #zt-content-start:focus { outline: none; }
.zt-body :is(button, .button, summary) { touch-action: manipulation; }
.zt-body button:not(:disabled), .zt-body summary { cursor: pointer; }
.zt-body button:disabled { cursor: not-allowed; }
.zt-body .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.zt-skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 10px 16px; background: #fff; border: 1px solid var(--zt-blue); border-radius: 8px; }
.zt-skip-link:focus { top: 12px; }
.zt-container { width: min(1160px, calc(100% - 48px)); }
.zt-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--zt-line); }
.zt-header-inner { min-height: 76px; gap: 24px; }
.zt-brand { font-size: 23px; font-weight: 750; letter-spacing: 0; gap: 12px; }
.zt-brand small { font-size: 12px; color: var(--zt-muted); }
.zt-nav { gap: clamp(4px, .8vw, 12px); }
.zt-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.zt-nav a:hover, .zt-nav a.is-active { background: #eef2fc; color: var(--zt-blue-dark); }
.zt-nav .zt-membership-entry { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-left: 16px; padding: 10px 0 10px 24px; border: 0; border-left: 1px solid var(--zt-line); background: transparent; color: #475569; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.zt-nav .zt-membership-entry:hover { color: var(--zt-blue-dark); }
.zt-body :is(.zt-primary-button, .zt-secondary-button, .zt-header-button) { min-height: 44px; border-radius: 8px; box-shadow: none; padding: 11px 20px; font: inherit; font-size: 14px; font-weight: 650; }
.zt-secondary-button { justify-content: center; border-color: #cdd5e0; color: var(--zt-ink); }
.zt-home-page .zt-hero { background: #fff; border-bottom: 1px solid var(--zt-line); }
.zt-home-page .zt-hero::after { content: none; }
.zt-home-page .zt-hero-grid { display: block; min-height: 0; padding-top: 64px; padding-bottom: 56px; }
.zt-home-page .zt-hero-copy { max-width: 720px; }
.zt-eyebrow, .zt-section-kicker { font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.zt-home-page .zt-hero h1 { margin: 16px 0 18px; font-size: clamp(36px, 4vw, 52px); line-height: 1.25; letter-spacing: -.035em; font-weight: 750; }
.zt-home-page .zt-hero p { max-width: 560px; font-size: 16px; line-height: 1.8; }
.zt-home-page .zt-hero-actions { gap: 12px; margin-top: 26px; }
.zt-home-page .zt-hero-note { margin-top: 20px; color: var(--zt-muted); font-size: 13px; }
.zt-home-page .zt-home-start-section { margin-top: 0; padding-top: 40px; }
.zt-section-heading { align-items: center; margin-bottom: 20px; gap: 16px; }
.zt-section-heading h2 { margin: 0; font-size: 24px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.zt-text-link { color: var(--zt-blue-dark) !important; display: inline-flex; align-items: center; min-height: 44px; }
.zt-heading-note { margin: 7px 0 0; font-size: 14px; color: var(--zt-muted); }
.zt-home-start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zt-home-start-grid a { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 22px; background: #fff; border-radius: 12px; box-shadow: none; }
.zt-home-start-grid span { color: var(--zt-ink); font-size: 17px; font-weight: 700; }
.zt-home-start-grid strong { color: var(--zt-muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.zt-home-start-grid small { color: var(--zt-muted); font-size: 12px; }
.zt-home-start-grid a:hover { transform: none; border-color: #a7b8dc; background: #fcfdff; }
.zt-home-page .zt-quick-section { padding-top: 48px; }
.zt-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zt-home-page .zt-tool-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 166px; padding: 22px; border-radius: 12px; }
.zt-tool-kind { font-size: 12px; color: var(--zt-muted); }
.zt-home-page .zt-tool-card strong { font-size: 17px; font-weight: 650; line-height: 1.5; }
.zt-home-page .zt-tool-card small { font-size: 14px; line-height: 1.65; margin: 0; }
.zt-tool-card:hover, .zt-catalog-card:hover { transform: none; border-color: #a7b8dc; box-shadow: var(--zt-shadow); }
.zt-home-page .zt-flow-section { padding-top: 64px; gap: 64px; }
.zt-flow-copy h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.5; letter-spacing: -.02em; }
.zt-step-list { margin: 0; padding: 0; list-style: none; }
.zt-step { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 0; }
.zt-step h3 { font-size: 16px; }
.zt-home-page .zt-faq-section { padding-top: 56px; padding-bottom: 64px; }
.zt-home-faq summary { min-height: 44px; display: list-item; padding: 8px 0; font-weight: 600; }
.zt-home-faq details { padding: 8px 0; }
.zt-home-faq p { max-width: 780px; margin: 4px 0 12px; font-size: 14px; }
.zt-tools-page .zt-page-hero { padding: 48px 0 32px; background: #fff; border-bottom: 1px solid var(--zt-line); }
.zt-page-hero h1 { margin: 12px 0; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.03em; line-height: 1.35; }
.zt-page-hero p { font-size: 16px; }
.zt-tool-search { max-width: 680px; margin-top: 24px; padding: 4px 12px; border: 1px solid #bdc8d8; border-radius: 10px; }
.zt-tool-search:focus-within { border-color: var(--zt-blue); box-shadow: 0 0 0 3px #e5ecfc; }
.zt-tool-search input { height: 48px; font-size: 16px; }
.zt-tool-search input:focus-visible { outline-offset: -3px; border-radius: 6px; }
.zt-tool-search button { min-height: 44px; min-width: 48px; font-size: 14px; }
.zt-tool-filters { gap: 8px; margin-top: 18px; }
.zt-tool-filters :is(button, a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #d5dce6; background: #fff; font: inherit; font-size: 14px; border-radius: 8px; color: #4e5b70; text-decoration: none; }
.zt-tool-filters :is(button, a):hover, .zt-tool-filters :is(button, a).is-active { border-color: var(--zt-blue); background: #edf2ff; color: var(--zt-blue-dark); font-weight: 650; }
.zt-tool-filters a:focus-visible { outline: 2px solid var(--zt-blue); outline-offset: 3px; }
.zt-directory-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--zt-muted); }
.zt-directory-guide { border-top: 1px solid var(--zt-line); padding-top: 24px; color: var(--zt-muted); line-height: 1.8; }
.zt-directory-guide h2 { margin: 0 0 12px; color: var(--zt-ink); font-size: 20px; }
.zt-tool-filters small { font-size: 12px; margin-left: 7px; }
.zt-tools-page .zt-directory-count { margin-top: 16px; font-size: 13px; color: var(--zt-muted); }
.zt-tools-page .zt-directory-legacy { margin-top: 10px; font-size: 14px; }
.zt-directory-legacy a { margin-left: 6px; }
.zt-tools-catalog { padding-top: 36px; padding-bottom: 64px; }
.zt-directory-group { margin-bottom: 40px; }
.zt-catalog-heading { align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--zt-line); margin-bottom: 16px; }
.zt-catalog-heading h2 { font-size: 22px; }
.zt-catalog-heading span { color: var(--zt-muted); }
.zt-directory-category { margin-top: 22px; }
.zt-directory-category h3 { font-size: 15px; color: var(--zt-muted); font-weight: 600; margin-bottom: 12px; }
.zt-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zt-catalog-card { min-width: 0; min-height: 110px; padding: 20px; align-items: flex-start; border-radius: 12px; }
.zt-catalog-card > span { min-width: 0; }
.zt-catalog-card strong { font-size: 16px; line-height: 1.6; }
.zt-catalog-card small { font-size: 14px; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; }
.zt-directory-empty { padding: 32px 20px; color: var(--zt-muted); background: #fff; border: 1px solid var(--zt-line); }
.zt-directory-empty p { margin: 0 0 16px; }
.zt-planned-tools { padding: 16px 20px; background: transparent; border-color: var(--zt-line); border-radius: 10px; }
.zt-planned-tools summary { min-height: 44px; padding: 8px 0; font-size: 14px; color: var(--zt-muted); }
.zt-planned-grid { margin-top: 16px; }
.zt-footer { padding: 44px 0 20px; border-color: var(--zt-line); }
.zt-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.zt-footer h3 { font-size: 14px; margin-bottom: 12px; color: var(--zt-ink); }
.zt-footer .zt-footer-grid > div { display: block; }
.zt-footer .zt-footer-grid > div > a:not(.zt-brand) { color: var(--zt-muted); margin: 0; padding: 9px 0; min-height: 44px; font-size: 14px; }
.zt-footer .zt-footer-grid > div > span { color: var(--zt-muted); font-size: 13px; margin-top: 8px; }
.zt-footer-note { color: var(--zt-muted); }
.zt-footer-bottom { margin-top: 28px; color: var(--zt-muted); }
.zt-info-page > .zt-container { width: min(820px, calc(100% - 32px)); }
.zt-info-page .zt-page-hero { padding: 8px 0 24px; background: transparent; border-bottom: 1px solid var(--zt-line); }
.zt-info-content { padding-top: 24px; color: var(--zt-muted); line-height: 1.9; overflow-wrap: anywhere; }
.zt-info-content h2 { margin: 28px 0 10px; color: var(--zt-ink); font-size: 21px; line-height: 1.5; }
.zt-info-content p { margin: 0 0 18px; }
.zt-info-content > p:last-child { margin-top: 28px; }
.zt-mobile-c-notice { display: none; }
.zt-mobile-settings { min-width: 0; }
.zt-mobile-settings > summary { min-height: 44px; padding: 12px 16px; border: 1px solid var(--zt-line); border-radius: 10px; background: #fff; color: var(--zt-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.zt-mobile-settings[open] > summary { margin-bottom: 12px; }
.zt-mobile-settings > :is(.zt-media-settings, .zt-conversion-settings, .zt-text-settings, .zt-oc-options) { margin: 0; }
/* Shared workspace spacing; preserve every engine's grid, IDs and result state. */
.zt-body main:not(.zt-home-page):not(.zt-tools-page) { padding-top: 40px; padding-bottom: 48px; }
.zt-body :is(.zt-processor-shell, .zt-document-shell, .zt-utility-shell) > .shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding: 0; }
.zt-body main :is(.topbar, .zt-conversion-header, .zt-text-hero, .zt-audio-hero, .zt-media-header, .zt-data-header) { margin-bottom: 28px; }
.zt-body main :is(.topbar h1, .zt-conversion-header h1, .zt-text-hero h1, .zt-audio-hero h1, .zt-media-header h1, .zt-data-header h1) { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.4; letter-spacing: -.025em; color: var(--zt-ink); }
.zt-body main :is(.topbar p, .zt-conversion-header p, .zt-text-hero p, .zt-audio-hero p) { color: var(--zt-muted); line-height: 1.8; }
.zt-body main :is(.panel, .zt-conversion-main, .zt-conversion-settings, .zt-audio-file-card, .zt-audio-export-card, .zt-text-single-editor) { box-shadow: none; border-color: var(--zt-line); border-radius: 12px; }
.zt-body main :is(.zt-data-main, .zt-pdf-main, .zt-pdf-image-main, .zt-media-settings, .zt-code-controls, .zt-code-output, .zt-text-presets, .zt-text-settings, .zt-text-stats) { min-width: 0; box-shadow: none; border-color: var(--zt-line); border-radius: 12px; }
/* Real horizontal scroll for wide tables; never clip the page to mask overflow. */
.zt-body :is(.zt-table-scroll, .table-scroll, .table-wrap, .zt-data-result, #sheetResult):has(table) { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.zt-body .zt-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.zt-body .zt-table-scroll table { width: max-content; min-width: 100%; border-collapse: collapse; }
.zt-body .zt-table-scroll :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--zt-line); white-space: nowrap; text-align: left; }
.zt-body main .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #cdd5e0; border-radius: 8px; background: #fff; color: var(--zt-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.zt-body main .button.primary { border-color: var(--zt-blue); background: var(--zt-blue); color: #fff; }
.zt-body main .button:not(:disabled):hover { border-color: var(--zt-blue); }
.zt-body main .button.primary:not(:disabled):hover { background: var(--zt-blue-dark); }
.zt-body main .button:disabled { opacity: .5; }
.zt-body main .button.full { width: 100%; }
.zt-body main :is(.zt-conversion-folder, .zt-text-link-button, .zt-text-preset-buttons button) { min-height: 44px; }
.zt-body main :is(input[type="text"], input[type="number"], select) { min-height: 44px; }
.zt-body main :is(.zt-conversion-drop, .zt-audio-upload) { border-radius: 10px; }
.zt-body main :is(.button-row, .zt-media-actions, .zt-conversion-actions, .zt-audio-actions, .zt-text-history-actions, .zt-text-quick-actions) { display: flex; flex-wrap: wrap; gap: 10px; }
.zt-body main .zt-media-actions { margin-top: 18px; }
.zt-body main .zt-media-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--zt-muted); }
.zt-body main .zt-media-progress progress { flex: 1 1 120px; height: 10px; accent-color: var(--zt-blue); }
.zt-body main :is(.zt-conversion-workspace, .workspace, .document-workspace) { gap: 24px; }
/* Preview dimensions are presentation only; keep the processor canvas untouched. */
.zt-body .zt-processor-shell .canvas-wrap { min-width: 0; min-height: 0; height: auto; max-height: none; }
.zt-body .zt-processor-shell .canvas-wrap canvas { display: block; width: 100%; max-width: 100%; min-height: 0; height: auto; max-height: 420px; object-fit: contain; }
.zt-body .zt-processor-shell .canvas-wrap:not(:has(+ .thumbs .thumb)) { height: 380px; }
.zt-body .zt-processor-shell .canvas-wrap:not(:has(+ .thumbs .thumb)) canvas { height: 100%; }
/* Match the PDF operation before its script initializes, avoiding irrelevant-panel collapse. */
.zt-body [data-zt-pdf-page-tool] [data-pdf-panel] { display: none; }
.zt-body [data-zt-pdf-page-tool="merge-pdf"] [data-pdf-panel="merge"],
.zt-body [data-zt-pdf-page-tool="pdf-pages"] [data-pdf-panel="manage"],
.zt-body [data-zt-pdf-page-tool="split-pdf"] [data-pdf-panel="split"],
.zt-body [data-zt-pdf-page-tool="delete-pdf-pages"] [data-pdf-panel="delete"],
.zt-body [data-zt-pdf-page-tool="extract-pdf-pages"] [data-pdf-panel="extract"],
.zt-body [data-zt-pdf-page-tool="reorder-pdf-pages"] [data-pdf-panel="reorder"],
.zt-body [data-zt-pdf-page-tool="rotate-pdf"] [data-pdf-panel="rotate"],
.zt-body [data-zt-pdf-page-tool="crop-pdf"] [data-pdf-panel="crop"] { display: block; }
.zt-body [data-zt-pdf-page-tool="pdf-pages"] .zt-media-settings { min-height: 220px; }
.zt-tool-content, .zt-tool-faq, .zt-related-tools { padding: 40px 0; border-color: var(--zt-line); }
.zt-tool-content h2, .zt-tool-faq h2, .zt-related-tools h2 { font-size: 24px; line-height: 1.5; }
.zt-local-notice { background: #f7f9fc; border-color: var(--zt-line); border-radius: 10px; }
.zt-tool-faq summary { min-height: 44px; padding-block: 8px; }
.zt-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zt-related-grid a { padding: 18px; border-color: var(--zt-line); border-radius: 10px; background: #fff; }
@media (max-width: 960px) {
  .zt-header-inner { min-height: 68px; flex-wrap: wrap; gap: 12px; }
  .zt-menu-toggle { display: block; margin-left: auto; min-width: 60px; min-height: 44px; font: inherit; font-size: 14px; border-radius: 8px; }
  .zt-nav { display: none; order: 4; flex-basis: 100%; margin-left: 0; padding: 8px 0 16px; border-top: 1px solid var(--zt-line); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .zt-nav.is-open { display: grid; }
  .zt-nav a { justify-content: center; }
  .zt-nav .zt-membership-entry { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px; border-left: 0; border-top: 1px solid var(--zt-line); }
  .zt-quick-grid, .zt-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zt-home-page .zt-flow-section { grid-template-columns: 1fr; gap: 24px; }
  .zt-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .zt-footer-grid > div:first-child { grid-column: 1 / -1; }
  .zt-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* Reserve the same closed-summary box before JS adds native details. */
  .zt-body.is-mobile-b main :is(.zt-media-settings, .zt-conversion-settings, .zt-text-settings, .zt-oc-options):not(details *) { display: block; min-height: 0; padding: 12px 16px; border: 1px solid var(--zt-line); border-radius: 10px; background: #fff; box-shadow: none; }
  .zt-body.is-mobile-b main :is(.zt-media-settings, .zt-conversion-settings, .zt-text-settings, .zt-oc-options):not(details *) > * { display: none; }
  .zt-body.is-mobile-b main :is(.zt-media-settings, .zt-conversion-settings, .zt-text-settings, .zt-oc-options):not(details *)::before { content: '处理参数与说明'; display: list-item; list-style-type: disclosure-closed; color: var(--zt-ink); font-size: 14px; font-weight: 600; line-height: 1.65; }
  .zt-body .zt-processor-shell .canvas-wrap:not(:has(+ .thumbs .thumb)) { height: 240px; }
  .zt-body .zt-processor-shell .canvas-wrap canvas { max-height: 480px; }
  .is-mobile-c .zt-mobile-c-notice { display: block; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--zt-line); border-radius: 10px; background: #fff; }
  .zt-mobile-c-notice p { margin: 0; color: var(--zt-muted); font-size: 14px; line-height: 1.7; }
  .zt-catalog-card.is-mobile-c { order: 1; }
  .zt-container { width: calc(100% - 32px); }
  .zt-brand { font-size: 21px; }
  .zt-home-page .zt-hero-grid { min-height: 0; padding-top: 36px; padding-bottom: 32px; }
  .zt-home-page .zt-hero h1 { font-size: 36px; }
  .zt-home-page .zt-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .zt-home-page .zt-hero-actions a { padding-inline: 10px; }
  .zt-home-page .zt-home-start-section { padding-top: 28px; }
  .zt-section-heading { flex-direction: row; align-items: center; gap: 12px; }
  .zt-section-heading h2 { font-size: 21px; }
  .zt-section-heading > .zt-text-link { font-size: 13px; flex-shrink: 0; }
  .zt-home-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zt-home-start-grid a { padding: 16px; gap: 6px; }
  .zt-home-start-grid span { font-size: 16px; }
  .zt-home-start-grid strong { font-size: 13px; }
  .zt-home-page .zt-quick-section { padding-top: 32px; }
  .zt-home-page .zt-tool-card { padding: 16px; min-height: 170px; }
  .zt-home-page .zt-tool-card strong { font-size: 16px; }
  .zt-home-page .zt-tool-card small { font-size: 13px; }
  .zt-home-page .zt-flow-section, .zt-home-page .zt-faq-section { padding-top: 40px; }
  .zt-home-page .zt-faq-section { padding-bottom: 40px; }
  .zt-flow-copy h2 { font-size: 23px; }
  .zt-tools-page .zt-page-hero { padding: 32px 0 24px; }
  .zt-tool-search { padding: 4px 10px; }
  .zt-tool-search input { margin: 0; }
  .zt-tool-filters { gap: 6px; }
  .zt-tool-filters :is(button, a) { padding-inline: 12px; }
  .zt-tools-catalog { padding-top: 28px; padding-bottom: 40px; }
  .zt-catalog-grid { grid-template-columns: 1fr; }
  .zt-catalog-card { min-height: 92px; padding: 18px; }
  .zt-footer { padding-top: 32px; }
  .zt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .zt-footer-bottom { display: block; font-size: 12px; }
  .zt-footer-bottom span { display: block; margin-top: 6px; }
  .zt-body main:not(.zt-home-page):not(.zt-tools-page) { padding-top: 28px; padding-bottom: 32px; }
  .zt-body :is(.zt-processor-shell, .zt-document-shell, .zt-utility-shell) > .shell { width: calc(100% - 32px); }
  .zt-body main :is(.topbar, .zt-conversion-header, .zt-text-hero, .zt-audio-hero) { margin-bottom: 20px; }
  .zt-body main :is(.button, input[type="text"], input[type="number"], select, textarea) { font-size: 16px; }
  .zt-body main :is(.zt-conversion-workspace, .workspace, .document-workspace) { gap: 16px; }
  .zt-body main :is(.workspace, .document-workspace) { grid-template-columns: 1fr; }
  .zt-body main :is(.controls, .document-controls) { position: static; }
  .zt-body .zt-processor-shell .workspace > .controls { order: 0; }
  .zt-body .zt-processor-shell .workspace > .preview-panel { order: 1; }
  .zt-body main :is(.topbar, .preview-head, .zt-text-panel-heading) { flex-wrap: wrap; gap: 12px; }
  .zt-body main :is(.button-row, .zt-text-history-actions, .zt-text-quick-actions) { flex-wrap: wrap; }
  .zt-body main :is(.panel, .zt-conversion-main, .zt-conversion-settings) { min-width: 0; }
  .zt-body main :is(.zt-data-grid, .zt-code-layout, .zt-text-layout) { grid-template-columns: minmax(0, 1fr); }
  .zt-tool-content-grid { grid-template-columns: 1fr; gap: 20px; }
  .zt-tool-content, .zt-tool-faq, .zt-related-tools { padding: 32px 0; }
  .zt-tool-content h2, .zt-tool-faq h2, .zt-related-tools h2 { font-size: 21px; }
}
@media (max-width: 360px) {
  .zt-home-page .zt-hero h1 { font-size: 32px; }
  .zt-quick-grid { grid-template-columns: 1fr; }
  .zt-home-page .zt-tool-card { min-height: 0; }
  .zt-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .zt-body *, .zt-body *::before, .zt-body *::after { transition: none !important; scroll-behavior: auto !important; }
}
