/* SayMorph page skin: maps the page styles in site.css (the old legacy.css, pruned to the
   classes the source still uses) onto the homepage design tokens. Every SayMorph page
   except home renders inside main.sm-page. */
.sm-page {
  --sm-max-width: 1312px;
  --sm-gutter: 64px;
  --canvas: #F5F2EA;
  --surface: #FFFFFF;
  --ink: #242420;
  --muted: #66635C;
  --primary: #C73D29;
  --primary-dark: #AD3120;
  --primary-soft: #FCECE7;
  --coral: #D94B35;
  --coral-soft: #FCECE7;
  --border: #D8D3C9;
  --border-strong: #C3BDB1;
  --font-sans: 'DM Sans', Arial, Helvetica, sans-serif;
  --font-editorial: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
}
@media (max-width: 1280px) { .sm-page { --sm-gutter: 48px; } }
@media (max-width: 900px) { .sm-page { --sm-gutter: 24px; } }
@media (max-width: 767px) { .sm-page { --sm-gutter: 16px; } }

.sm-page .page-container { width: min(var(--sm-max-width), calc(100% - var(--sm-gutter) * 2)); }

/* Hardcoded legacy purples */
.sm-page :is(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.sm-page .transform-button { box-shadow: none; }
.sm-page .balanced-mini { background: #FDF6F3; }
.sm-page .light-heading .section-kicker { color: #F2A799; }

/* Editorial type: Instrument Serif is set at regular weight, like the homepage accents */
.sm-page :is(.empty-result-mark, .source-message blockquote, .creator-mark) { font-weight: 400; }

/* Tool page (D2) */
.sm-page .example-after { border-color: #F1CFC6; }
/* Output lines are wrapped in spans for line breaks; keep them in body type, not the card label style */
.sm-page :is(.example-after, .example-before) p span { color: inherit; letter-spacing: normal; text-transform: none; font-size: inherit; font-weight: inherit; }
.sm-page .preserve-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--coral); }
.sm-page :is(.contract-remove-list, .preserve-card p) { color: var(--muted); }
.sm-page .preserve-tags span { color: var(--ink); background: #F2F0E9; border-color: var(--border); }
.sm-page .good-label { background: var(--primary-soft); color: var(--primary-dark); }
.sm-page .avoid-label { background: #EAE6DC; color: #4F4C45; }

.sm-page .transform-button:disabled { box-shadow: none; }
.sm-page .tool-principle span { color: var(--primary-dark); }
.sm-page .tool-meta { color: var(--muted); }
.sm-page .text-editor::placeholder { color: var(--muted); opacity: 1; }
.sm-page .result-tabs .result-safe.active { border-color: var(--ink); box-shadow: inset 0 -3px var(--ink); }
.sm-page .segmented button.active { box-shadow: inset 0 -3px var(--primary); }

/* Small category dots (tool header, translator cards, style picker): solid tones so they read on white and paper */
.sm-page :is(.tool-category i, .card-accent, .style-dot) { background: var(--dot, var(--coral)); }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-indigo { --dot: #C73D29; }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-coral { --dot: #E07A5F; }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-mint { --dot: #4E9A72; }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-amber { --dot: #C99A2E; }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-blue { --dot: #4F78B5; }
.sm-page :is(.tool-category i, .card-accent, .style-dot).accent-rose { --dot: #B95575; }

/* Explore / categories / use-cases (D3 review fixes) */
.sm-page .library-search input::placeholder { color: var(--muted); opacity: 1; }
.sm-page .library-search { background: var(--canvas); }
.sm-page .category-number { background: var(--primary-soft); color: var(--primary-dark); }
.sm-page .outcome-callout { color: var(--ink); }
.sm-page :is(.collection-hero > p, .card-arrow) { color: var(--muted); }
.sm-page :is(.collection-hero h1, .directory-card h2, .section-heading-row h2) { font-weight: 700; }
.sm-page .directory-index { font-weight: 400; color: var(--primary); }

/* About / policy / contact / launches / create / 404 (D5) */
.sm-page :is(.policy-hero h1, .policy-body h2) { font-weight: 700; }
.sm-page .principles-grid h2 { font-weight: 700; }
.sm-page .principles-grid article > span { font-family: var(--font-sans); font-size: 14px; color: var(--primary); }
/* Short pages (404, launches): the paper colour fills the viewport, not just the content */
.sm-page { min-height: 100vh; min-height: 100dvh; }
/* Policy "Last updated" line: legacy #88877F is 3.2:1 on paper; muted is 5.4:1 */
.sm-page .policy-hero small { color: var(--muted); }
/* Internal /ui/mobile* previews (noindex): stack the label above the frame on narrow screens */
@media (max-width: 767px) {
  .sm-page.device-preview-page { flex-direction: column; padding: 16px; }
  .sm-page .mobile-preview-frame { width: 100%; max-width: 390px; }
}

/* Tool page hero + workspace in the homepage style (UI2-B1). Classes unchanged; styles only. */
.sm-page .tool-category { color: var(--ink); font-size: 12px; line-height: 14px; letter-spacing: .085em; font-weight: 700; gap: 0; }
.sm-page .tool-category i { display: none; }
.sm-page .tool-title-row h1 { font-size: 54px; line-height: 1.02; font-weight: 700; letter-spacing: -.044em; margin-top: 8px; }
.sm-page .tool-title-row > div > p { color: var(--muted); }
.sm-page .tool-principle { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 18px 20px; }
.sm-page .tool-principle span { font-size: 12px; letter-spacing: .085em; font-weight: 700; }
.sm-page .tool-principle strong { margin-top: 8px; font-size: 17px; line-height: 1.35; }
.sm-page .tool-principle p { font-size: 13px; line-height: 1.5; margin-top: 6px; }

.sm-page .workspace-shell { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: none; }
.sm-page .workspace-toolbar { min-height: 56px; padding: 10px 22px; background: var(--surface); }
.sm-page .toolbar-label { color: var(--ink); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.sm-page .toolbar-style { min-width: 0; }
.sm-page .style-select { height: auto; min-height: 34px; min-width: 0; max-width: 100%; padding: 5px 14px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-size: 14px; line-height: 22px; font-weight: 500; }
.sm-page .style-select:hover { border-color: var(--primary); background: var(--primary-soft); }
.sm-page .style-select > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sm-page .style-select .style-dot { display: none; }
.sm-page .style-select .chevron { color: currentColor; margin-left: 6px; }
.sm-page .options-button { margin-left: auto; height: auto; min-height: 34px; padding: 6px 0 6px 6px; border: 0; background: transparent; font-size: 14px; font-weight: 400; }
.sm-page .options-button:hover { color: var(--primary); background: transparent; }

.sm-page .workspace-grid { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); min-height: 0; }
.sm-page .input-pane, .sm-page .result-pane { padding: 18px 22px; }
.sm-page .result-pane { background: var(--surface); }
.sm-page .pane-heading { align-items: center; min-height: 30px; margin-bottom: 11px; gap: 12px; }
.sm-page .result-heading { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.sm-page .pane-kicker { font-size: 14px; line-height: 20px; text-transform: uppercase; font-weight: 700; letter-spacing: .005em; }
.sm-page .pane-note { font-size: 12px; line-height: 18px; }
.sm-page .text-actions { gap: 10px; align-items: center; }
.sm-page .text-actions button:first-child { min-height: 30px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 20px; font-weight: 400; }
.sm-page .text-actions button:first-child:hover { border-color: var(--ink); color: var(--ink); }
.sm-page .text-actions button:last-child:not(:first-child) { min-height: 30px; padding: 5px 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.sm-page .text-actions button:last-child:not(:first-child):hover { color: var(--primary); text-decoration: underline; }
.sm-page .text-editor { min-height: 140px; height: 140px; resize: vertical; margin-top: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 17px; line-height: 1.5; }
.sm-page .editor-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.sm-page .ai-processing-notice { border: 0; background: transparent; padding: 0 4px; font-size: 12px; line-height: 18px; color: var(--muted); }
.sm-page .ai-processing-notice strong { color: var(--ink); }
.sm-page .ai-processing-notice a { color: var(--ink); text-underline-offset: 3px; }
.sm-page .example-row { gap: 8px; margin-top: 12px; }
.sm-page :is(.example-chip, .quick-actions button, .feedback-reasons button) { min-height: 34px; padding: 5px 14px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--ink); font-size: 13px; line-height: 20px; font-weight: 500; }
.sm-page :is(.example-chip, .quick-actions button, .feedback-reasons button):hover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.sm-page .feedback-reasons button.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.sm-page .transform-button { align-self: flex-end; width: auto; min-width: 218px; min-height: 48px; justify-content: center; gap: 12px; margin-top: 18px; padding: 10px 18px; border-radius: 10px; font-size: 17px; line-height: 24px; font-weight: 700; }
.sm-page .transform-button:hover:not(:disabled) { transform: none; }
.sm-page .transform-button:disabled { background: #E7D5CF; color: #5E4B44; }
.sm-page .button-footnote { text-align: right; color: var(--muted); }

.sm-page .result-tabs { gap: 7px; }
.sm-page .result-tabs button { min-height: 53px; padding: 7px 10px; border-radius: 8px; background: var(--surface); }
.sm-page .result-tabs button span { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.sm-page .result-tabs button small { font-size: 11px; line-height: 14px; color: var(--muted); }
.sm-page .result-tabs button.active, .sm-page .result-tabs .result-safe.active, .sm-page .result-tabs .result-bold.active { border-color: var(--coral); background: var(--primary-soft); box-shadow: none; }
.sm-page .result-box { padding: 14px 0 12px; }
.sm-page :is(.copy-button, .secondary-action) { min-height: 40px; padding: 8px 12px; border-radius: 7px; font-size: 13px; line-height: 20px; }
.sm-page .copy-button { min-width: 0; font-weight: 600; }
.sm-page .copy-button:hover { background: #414139; }
.sm-page .secondary-action { font-weight: 400; }
.sm-page .secondary-action:hover:not(:disabled) { border-color: var(--ink); background: var(--canvas); }
.sm-page .result-actions { gap: 8px; }
.sm-page .changes-toggle { font-size: 13px; font-weight: 700; }
.sm-page .feedback-row { font-size: 12px; gap: 8px; }
.sm-page .feedback-row button { min-height: 30px; padding: 4px 10px; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; }
.sm-page .feedback-row button:hover { border-color: var(--ink); }
.sm-page .feedback-row button.selected { color: var(--primary-dark); }

.sm-page .empty-result { min-height: 290px; }
.sm-page .empty-result-mark { width: 42px; height: 36px; border: 0; border-radius: 0; background: url('/brand/saymorph-symbol.svg') center / contain no-repeat; }
.sm-page .empty-result-mark span { display: none; }
.sm-page .empty-result h3 { margin-top: 13px; font-family: var(--font-editorial); font-size: 31px; line-height: 1.15; font-weight: 400; letter-spacing: -.025em; }
.sm-page .empty-result p { font-size: 14px; line-height: 21px; }

@media (max-width: 900px) {
  .sm-page .tool-title-row h1 { font-size: 44px; }
  .sm-page .workspace-grid { grid-template-columns: 1fr; }
  .sm-page .workspace-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .sm-page .toolbar-style { flex: 1 1 auto; min-width: 0; }
  .sm-page .style-select { width: auto; }
  .sm-page .options-button { grid-column: auto; width: auto; }
}
@media (max-width: 767px) {
  .sm-page .tool-title-row h1 { font-size: 36px; }
  .sm-page .workspace-shell { border-radius: 10px; box-shadow: none; }
  .sm-page .input-pane, .sm-page .result-pane { padding: 14px; }
  .sm-page .pane-kicker { font-size: 12px; line-height: 18px; }
  .sm-page .result-heading, .sm-page .result-heading > div:first-child { align-items: flex-start; text-align: left; }
  .sm-page .feedback-row button { min-height: 44px; }
  .sm-page .text-editor { min-height: 112px; height: 112px; font-size: 16px; }
  .sm-page .transform-button { align-self: stretch; width: 100%; min-width: 0; }
  .sm-page .button-footnote { text-align: center; }
  .sm-page :is(.copy-button, .secondary-action) { min-height: 44px; }
  .sm-page .options-button { margin-left: auto; width: auto; justify-content: flex-end; }
}

/* UI2-B1 r1 review: keep 44px touch targets below 900px and wrap long unbroken results */
.sm-page .result-box p { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .sm-page :is(.example-chip, .quick-actions button, .feedback-reasons button, .feedback-row button) { min-height: 44px; }
}

/* Explore / categories / category in the homepage style (UI2-B2). Scoped to .sm-library (added class on explore/categories/category <main>); no class removed.
   Chips = homepage tone buttons, search = homepage style search, cards = homepage example cards. */
.sm-page.sm-library :is(.collection-hero, .compact-collection-hero) .section-kicker { color: var(--ink); font-size: 12px; line-height: 14px; letter-spacing: .085em; font-weight: 700; }
.sm-page.sm-library .collection-hero h1 { font-size: 54px; line-height: 1.02; letter-spacing: -.044em; }
.sm-page.sm-library .collection-hero > p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.sm-page.sm-library .collection-hero .breadcrumb { font-size: 13px; font-weight: 500; }

.sm-page.sm-library .category-chip-row { gap: 10px; margin-bottom: 16px; padding-bottom: 6px; }
.sm-page.sm-library .category-chip-row button { min-height: 34px; padding: 5px 16px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--ink); font-size: 14px; line-height: 22px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.sm-page.sm-library .category-chip-row button:hover { border-color: var(--coral); background: var(--primary-soft); color: var(--ink); }
.sm-page.sm-library .category-chip-row button.active,
.sm-page.sm-library .category-chip-row button[aria-pressed='true'] { border-color: var(--coral); background: var(--primary-soft); color: var(--primary-dark); }
.sm-page.sm-library .category-chip-row button:focus-visible { outline-offset: -4px; }

.sm-page.sm-library .library-controls { grid-template-columns: minmax(280px, 1fr) 240px; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.sm-page.sm-library .library-search { min-height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sm-page.sm-library .library-search:focus-within { border-color: var(--ink); }
.sm-page.sm-library .library-search span:first-child { font-size: 18px; }
.sm-page.sm-library .library-search input { font-size: 16px; color: var(--ink); }
.sm-page.sm-library .library-controls > label:not(.library-search) { min-height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sm-page.sm-library .library-controls select { font-size: 16px; color: var(--ink); }
.sm-page.sm-library .library-summary { font-size: 13px; }
.sm-page.sm-library .library-summary button { color: var(--primary); font-size: 13px; font-weight: 500; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; min-height: 30px; }
.sm-page.sm-library .library-load-more button { min-height: 44px; padding: 8px 22px; border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 500; }
.sm-page.sm-library .library-load-more button:hover { border-color: var(--ink); color: var(--ink); background: var(--canvas); }
.sm-page.sm-library .library-empty { border-radius: 9px; }

.sm-page.sm-library .translator-card { min-height: 94px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.7); }
.sm-page.sm-library .translator-card:hover { border-color: var(--coral); background: var(--surface); }
.sm-page.sm-library .card-copy strong { font-size: 15px; line-height: 21px; font-weight: 700; letter-spacing: -.015em; }
.sm-page.sm-library .card-copy small { font-size: 13px; line-height: 19px; color: var(--muted); }
.sm-page.sm-library .translator-card .card-arrow { color: var(--primary); }

.sm-page.sm-library .directory-card { min-height: 230px; padding: 20px 22px; border-radius: 9px; background: rgba(255,255,255,.7); transition: border-color .15s, background-color .15s; }
.sm-page.sm-library .directory-card:hover { transform: none; border-color: var(--coral); background: var(--surface); }
.sm-page.sm-library .directory-card h2 { margin-top: 26px; font-size: 22px; letter-spacing: -.03em; }
.sm-page.sm-library .directory-card p { font-size: 14px; line-height: 21px; }
.sm-page.sm-library .directory-card strong { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.sm-page.sm-library .category-number { border-radius: 8px; font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .sm-page.sm-library .collection-hero h1 { font-size: 44px; }
  .sm-page.sm-library .library-controls { grid-template-columns: 1fr 1fr; }
  .sm-page.sm-library .library-search { grid-column: auto; }
  .sm-page.sm-library :is(.library-search input, .library-controls select) { min-height: 44px; }
  .sm-page.sm-library .category-chip-row button { min-height: 44px; }
  .sm-page.sm-library .library-summary button { min-height: 44px; }
}
@media (max-width: 767px) {
  .sm-page.sm-library .collection-hero h1 { font-size: 36px; }
  .sm-page.sm-library .collection-hero > p { font-size: 15px; }
  .sm-page.sm-library .library-controls { grid-template-columns: 1fr; }
  .sm-page.sm-library .category-chip-row { gap: 6px; }
  .sm-page.sm-library .category-chip-row button { padding: 8px 12px; font-size: 13px; }
  .sm-page.sm-library .translator-card { padding: 13px 14px; }
  .sm-page.sm-library .card-copy strong { font-size: 14px; line-height: 20px; }
  .sm-page.sm-library .card-copy small { font-size: 12px; line-height: 17px; }
}

/* Round 3 C1: inner H1s end with the homepage accent (red Instrument Serif italic),
   and every breadcrumb uses the category-page size. */
.sm-page h1 em.sm-title-accent { font-family: var(--font-editorial); font-style: italic; font-weight: 400; color: #D94B35; font-size: 1.1em; letter-spacing: -.018em; }
.sm-page .breadcrumb { font-size: 13px; line-height: 20px; font-weight: 500; }

/* Round 3 C2: /t/ workspace icons, counter bar and action button match the homepage. */
.sm-page .workspace-shell .sm-icon { flex: 0 0 auto; vertical-align: middle; }
.sm-page .options-button { display: inline-flex; align-items: center; gap: 8px; }
.sm-page .options-button .sm-icon { width: 20px; height: 20px; }
.sm-page .text-actions button:first-child { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.sm-page .text-actions button:first-child .sm-icon { width: 17px; height: 17px; }
.sm-page .copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.sm-page .copy-button .sm-icon { width: 17px; height: 17px; }
.sm-page .tool-input-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.sm-page .tool-input-footer .editor-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-width: 0; margin-top: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.sm-page .tool-input-footer .editor-meta > span:first-child { white-space: nowrap; }
.sm-page :is(.editor-language, .editor-usage) { border-left: 1px solid var(--border); padding-left: 18px; white-space: nowrap; }
.sm-page .tool-input-footer .transform-button { display: inline-flex; align-items: center; flex: 0 0 auto; align-self: center; margin-top: 0; }
.sm-page .transform-button .sm-icon { width: 23px; height: 23px; }
@media (max-width: 1280px) {
  .sm-page .tool-input-footer .editor-meta { column-gap: 12px; }
  .sm-page :is(.editor-language, .editor-usage) { padding-left: 12px; }
}
@media (max-width: 900px) {
  .sm-page .editor-language { display: none; }
  .sm-page .tool-input-footer .transform-button { align-self: center; width: auto; min-width: 182px; }
}
@media (max-width: 767px) {
  .sm-page .text-actions button:first-child { min-height: 34px; font-size: 12px; padding-inline: 9px; }
  .sm-page .tool-input-footer { gap: 10px; margin-top: 15px; }
  .sm-page .tool-input-footer .editor-meta { font-size: 10px; line-height: 16px; }
  .sm-page .editor-usage { display: none; }
  .sm-page .tool-input-footer .transform-button { min-width: 164px; min-height: 48px; padding: 10px 12px; font-size: 15px; gap: 8px; border-radius: 8px; }
  .sm-page .transform-button .sm-icon { width: 20px; height: 20px; }
}
@media (max-width: 359px) {
  .sm-page .tool-input-footer { gap: 7px; }
  .sm-page .tool-input-footer .editor-meta { flex: 1 1 0; font-size: 9px; }
  .sm-page .tool-input-footer .editor-meta > span:first-child { white-space: normal; overflow-wrap: anywhere; }
  .sm-page .tool-input-footer .transform-button { min-width: 150px; font-size: 14px; padding-inline: 10px; }
}

/* Round 3 C2: homepage text-file upload area on /t/ (homepage values, page tokens). */
.sm-page .input-pane { transition: background-color .16s ease; }
.sm-page .input-pane.sm-is-dragging { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.sm-page .tool-upload-button { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 80px; margin-top: 14px; padding: 10px 16px; border: 1px solid #D94B35; border-radius: 10px; background: var(--primary-soft); color: var(--ink); cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.sm-page .tool-upload-button:hover { background: #F9E0D8; border-color: var(--primary-dark); }
.sm-page .tool-upload-button .sm-upload-icon { width: 31px; height: 31px; color: var(--primary); stroke-width: 1.8; }
.sm-page .tool-upload-button .sm-upload-copy { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.sm-page .tool-upload-button .sm-upload-copy strong { font-size: 23px; line-height: 29px; font-weight: 700; letter-spacing: -.022em; }
.sm-page .tool-upload-button .sm-upload-copy small { font-size: 13px; line-height: 20px; color: var(--muted); }
.sm-page .sm-file-note { margin-top: 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sm-page .sm-file-note span { font-weight: 600; }
@media (max-width: 767px) {
  .sm-page .tool-upload-button { min-height: 72px; margin-top: 12px; padding: 9px 12px; gap: 12px; border-radius: 8px; }
  .sm-page .tool-upload-button .sm-upload-icon { width: 27px; height: 27px; }
  .sm-page .tool-upload-button .sm-upload-copy strong { font-size: 20px; line-height: 25px; }
  .sm-page .tool-upload-button .sm-upload-copy small { font-size: 11px; line-height: 18px; }
}

/* Round 3 r2: file errors sit with the upload control, not the result pane. */
.sm-page .tool-file-error {
  margin-top: 10px;
}
