/* Filetivo: responsive controls and previews, 2026-10-02. */
html { scroll-padding-top: 20px; }
main, .panel, .workspace, .settings > *, .maker-grid > *, .invoice-tool > *,
.codes-tool > *, .calculator-grid > *, .grid > *, .feature-grid > *,
.resource-grid > *, .company-grid > *, .legal-grid > *, .solution-grid > * { min-width: 0; }
img, canvas, video, svg { max-width: 100%; }
.button, .tab, .quick-tool, .cta { white-space: normal; text-align: center; }
input, select, textarea { min-width: 0; max-width: 100%; }
footer, .result, .selection-note, .legal-note, section p { overflow-wrap: anywhere; }
footer nav, .canvas-actions, .card-actions { flex-wrap: wrap; }
#signatureCanvas { touch-action: none; }
.mobile-menu-toggle { display: none; font: inherit; font-weight: 700; color: var(--accent); background: white; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 8px 14px; cursor: pointer; }
@media (max-width: 1100px) {
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .topbar .privacy-pill { display: none; }
  .topbar .main-nav { display: none; }
  .topbar.mobile-menu-open .main-nav { display: grid; order: 3; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 12px; margin: 0; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; padding: 8px; }
}
@media (max-width: 680px) {
  .intro { margin: 36px auto 26px; padding: 0 18px; }
  .intro h1 { font-size: clamp(32px,9.5vw,46px); line-height: 1.08; }
  .lede { font-size: 16px; line-height: 1.55; }
  .tool-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 16px; width: 100%; overflow: visible; margin-bottom: 20px; }
  .tab, .quick-tool { width: 100%; min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 14px; line-height: 1.35; white-space: normal; }
  .quick-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column: 1/-1; gap: 8px; width: 100%; padding-top: 0; }
  .workspace { width: 100%; padding: 0 16px; }
  .settings { grid-template-columns: minmax(0,1fr); }
  .field select, .field input, .maker-controls input, .maker-controls textarea, .maker-controls select,
  .tool-card input, .tool-card textarea, .tool-card select { font-size: 16px; }
  .maker-grid, .invoice-tool, .codes-tool, .calculator-grid { grid-template-columns: minmax(0,1fr); }
  .maker-controls, .maker-preview { padding: 22px 16px; }
  .upload-zone, .signature-card { padding: 26px 16px; }
  .maker-preview { min-height: 260px; }
  .tool-hub, .tool-card { padding: 20px 16px; }
  .tool-card canvas { width: 100%; height: auto; }
  .codes-tool svg { grid-column: auto; }
  .two-fields { grid-template-columns: minmax(0,1fr); }
  .mini-tabs { gap: 8px; }
  .mini-tab { white-space: normal; min-height: 44px; }
  .canvas-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .canvas-actions .button, .card-actions .button { flex: 1 1 130px; min-height: 44px; }
  .content-section { padding: 44px 16px; }
  .content-section h2 { font-size: clamp(28px,8vw,36px); }
  footer { padding: 24px 16px; }
  footer nav { display: flex; justify-content: center; gap: 8px 14px; flex-wrap: wrap; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .top { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .top a:not(.brand) { font-size: 14px; }
  .wrap { width: 100%; padding: 36px 16px; }
  .hero h1 { font-size: clamp(30px,9vw,42px); line-height: 1.1; overflow-wrap: anywhere; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: minmax(0,1fr); }
  .card, section:not(.intro):not(.workspace):not(.content-section) { max-width: 100%; }
  .cta { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
