:root {
  color-scheme: light;
  --ink: #101b1f;
  --muted: #46575b;
  --paper: #f7f6f0;
  --white: #fffefa;
  --line: #d9dfd8;
  --lime: #dff993;
  --black: #071216;
  --soft: #f1f2e9;
  --soft-hover: #e6eddb;
  --field: #fffefa;
  --field-border: #aebcb4;
  --focus-color: #567b23;
  --action: #101b1f;
  --action-hover: #263c3e;
  --on-action: #fffefa;
  --support: #365a33;
  --success-bg: #eef4e3;
  --success-ink: #345e37;
  --success-border: #b8cbaa;
  --error-bg: #fff1ea;
  --error-ink: #802f23;
  --error-border: #d5aa99;
  --gap: clamp(1.15rem, 4.4vw, 4.5rem);
  --max: 1220px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f4ef;
  --muted: #b3c3bc;
  --paper: #131c1f;
  --white: #1c282b;
  --line: #3c4e50;
  --soft: #253437;
  --soft-hover: #314247;
  --field: #151f22;
  --field-border: #627679;
  --focus-color: #c4e680;
  --action: #dff993;
  --action-hover: #ecffb5;
  --on-action: #182319;
  --support: #bbd89a;
  --success-bg: #23372f;
  --success-ink: #c9e5b2;
  --success-border: #4d675b;
  --error-bg: #3a2929;
  --error-ink: #ffcec1;
  --error-border: #8e5f59;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 4px; }
.site-footer :focus-visible, .privacy-section :focus-visible { outline-color: var(--lime); }
[id] { scroll-margin-top: 1rem; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; display: inline-block; vertical-align: -.2em; }
.container { width: min(var(--max), calc(100% - 2 * var(--gap))); margin-inline: auto; }
.editor-strip { position: relative; display: flex; align-items: stretch; gap: .24rem; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--field-border) transparent; padding: 3px; }
.editor-key.editor-key { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: .17rem; min-height: 48px; min-width: 3.55rem; padding: .25rem .52rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-family: inherit; font-size: .875rem; font-weight: 670; line-height: 1.13; text-align: center; text-decoration: none; }
.editor-strip .editor-key > span { white-space: nowrap; }
.editor-key.editor-key > .icon { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; }
.editor-key.editor-key:not(:disabled):hover { border-color: var(--line); background: var(--soft); }
.editor-key.editor-key:is([aria-pressed=true],[aria-expanded=true],:has(input:checked)) { border-color: var(--editor-line, var(--success-border)); color: var(--editor-active-ink, var(--support)); background: var(--editor-active, var(--success-bg)); }
.editor-key.editor-key:has(:focus-visible) { outline: 2px solid var(--focus-color); outline-offset: 1px; }
.editor-key.editor-key:is(.fw-primary,.button-dark), .editor-key.editor-key:is(.fw-primary,.button-dark):hover { color: var(--on-action); border-color: var(--action); background: var(--action); }
.editor-key .editor-glyph [data-ink="accent"] { color: var(--editor-active-ink, var(--support)); }
.editor-key:is(.fw-primary,.button-dark) .editor-glyph [data-ink="accent"] { color: inherit; }
.skip { position: fixed; z-index: 20; inset: .6rem auto auto .6rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--lime); color: #182319; border-radius: .3rem; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1420px, calc(100% - 2 * var(--gap))); min-height: 70px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; text-decoration: none; align-items: center; flex: 0 0 auto; }
.brand-logo { width: clamp(9rem, 13.3vw, 11.1rem); height: auto; }
.brand-dark, .theme-moon { display: none; }
[data-theme="dark"] :is(.brand-light,.theme-sun) { display: none; }
[data-theme="dark"] :is(.brand-dark,.theme-moon) { display: block; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3.25rem); }
.main-nav a { text-decoration: none; font-weight: 670; font-size: .9rem; }
.main-nav a { padding: .6rem 0; }
.main-nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .23em; }
.theme-toggle { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; margin-inline-start: auto; min-height: 44px; min-width: 100px; padding: .42rem .72rem; border: 1px solid var(--field-border); border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .88rem; font-weight: 720; }
.theme-toggle:hover { background: var(--soft-hover); }
.theme-toggle .icon { color: var(--support); }
.header-inner .main-nav { margin-inline: auto; }
.header-inner:has(.main-nav:not([hidden])) .theme-toggle { margin-inline-start: 0; }
.header-tools-layout { position: relative; display: grid; grid-template-columns: auto auto minmax(9rem,1fr) auto auto auto; gap: .55rem clamp(.4rem,1.15vw,1.1rem); }
.header-tools-layout .theme-toggle { margin: 0; grid-column: 5; }
.header-tools-layout > .fd-language { grid-column: 6; }
.header-tools-layout .header-chapters { grid-column: 2; }
.header-tools-layout .header-search { grid-column: 3; }
.header-tools-layout .header-resume { grid-column: 4; }
.header-disclosure { position: relative; }
.header-disclosure summary { display: flex; gap: .45rem; align-items: center; justify-content: center; min-height: 44px; padding: .35rem .57rem; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: .9rem; font-weight: 730; cursor: pointer; white-space: nowrap; list-style: none; }
.header-disclosure summary::-webkit-details-marker { display: none; }
.header-disclosure summary::after { content: ''; display: block; width: .38rem; height: .38rem; margin-top: -.17rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.header-disclosure[open] summary { border-color: var(--field-border); background: var(--soft-hover); }
.header-search { position: relative; display: flex; min-width: 0; width: 100%; max-width: 39rem; }
.header-search input { width: 100%; min-height: 44px; padding: .48rem 3rem .48rem .65rem; border: 1px solid var(--field-border); border-radius: 8px; color: var(--ink); background: var(--field); font-size: 1rem; }
.header-search button { position: absolute; inset: 1px 1px 1px auto; display: grid; place-items: center; width: 44px; border: 0; border-radius: 7px; color: var(--ink); background: var(--soft); }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-popout { position: absolute; z-index: 20; inset-block-start: calc(100% + 5px); inset-inline-end: 0; width: max-content; min-width: min(13rem,80vw); max-width: min(23rem,90vw); max-height: 64vh; overflow: auto; list-style: none; margin: 0; padding: .32rem; border: 1px solid var(--field-border); border-radius: 10px; background: var(--white); color: var(--ink); box-shadow: 0 10px 30px #0b161c32; }
.header-chapters .header-popout { inset-inline: 0 auto; }
.header-search-results { min-width: 100%; max-width: 100%; }
.header-popout :is(a,.header-no-match) { display: grid; align-content: center; min-height: 44px; padding: .34rem .53rem; border-radius: 6px; text-decoration: none; font-size: .91rem; line-height: 1.3; }
.header-popout a { font-weight: 690; }
.header-popout a:hover,.header-popout a:focus-visible { background: var(--soft); }
.header-popout small,.header-no-match { color: var(--muted); }
.fd-language > summary { padding: .35rem .6rem; min-inline-size: 44px; }
.fd-flag { display: block; inline-size: 1.35rem; block-size: .9rem; flex: none; overflow: hidden; border-radius: .15rem; box-shadow: 0 0 0 1px var(--field-border); }
.fd-language-list { z-index: 35; min-width: min(14rem, 90vw); }
.fd-language-list a { display: flex; align-items: center; gap: .62rem; }
.fd-language-list [aria-current="page"] { background: var(--success-bg); color: var(--success-ink); }
.fd-language-list a[aria-current] { position: relative; padding-inline-end: 2.3rem; }
.fd-locale-mark { position: absolute; inset-inline-end: .68rem; }
.fd-language-list [data-locale-auto] {
  display: block; min-block-size: 44px; width: 100%; margin-block-start: .2rem;
  padding: .35rem .53rem; text-align: start; color: var(--support); background: transparent;
  border: 0; border-block-start: 1px solid var(--line); font-size: .9rem;
}
.fd-language-list [data-locale-auto]:hover,.fd-language-list [data-locale-auto]:focus-visible { background: var(--soft); }
.fd-anchor-alias { display: block; block-size: 0; }
.job-recipes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .45rem; margin: .4rem 0 .65rem; }
.job-recipes .button { flex-direction: column; align-items: flex-start; text-align: start; line-height: 1.3; gap: .25rem; }
.job-recipes small { color: var(--muted); font-size: .86rem; font-weight: 530; }
.job-recipes [aria-pressed=true] { outline: 2px solid var(--success-border); outline-offset: -2px; background: var(--success-bg); }
@media(max-width: 760px) {
  .header-tools-layout { width: calc(100% - 1rem); grid-template-columns: auto auto minmax(0,1fr) auto auto; padding-block: .36rem; gap: .33rem .3rem; }
  .header-tools-layout .brand-logo { width: clamp(5rem,22vw,7.4rem); }
  .header-tools-layout .theme-toggle { grid-column: 4; grid-row: 1; min-width: 44px; padding: .28rem; }
  .header-tools-layout > .fd-language { grid-column: 5; grid-row: 1; }
  .fd-language > summary::after { display: none; }
  .header-tools-layout .theme-name { display: none; }
  .header-tools-layout .header-chapters { grid-row: 1; }
  .header-tools-layout .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .header-tools-layout .header-resume { grid-column: 3; grid-row: 1; justify-self: end; }
  .header-disclosure summary { font-size: .82rem; padding-inline: .31rem; }
  .header-chapters .header-popout { inset-inline-start: -2.8rem; }
}

.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: .7rem; border: 1px solid transparent; border-radius: 6px; padding: .74rem 1.05rem; font-size: .91rem; font-weight: 760; text-decoration: none; line-height: 1.25; transition: background .18s, border-color .18s; }
.button-dark { background: var(--action); color: var(--on-action); }
.button-dark:hover:not(:disabled) { background: var(--action-hover); }
.button-soft { background: var(--soft); border-color: var(--line); color: var(--ink); }
.button-soft:hover:not(:disabled) { background: var(--soft-hover); border-color: var(--field-border); }
.button-compact { padding: .58rem .73rem; min-height: 41px; font-size: .83rem; }
.section { padding-block: clamp(3.6rem, 7.6vw, 7rem); }
.tools-section { padding-block-start: clamp(1.35rem, 3.7vw, 3.5rem); }
.section-label { display: flex; align-items: center; gap: .66rem; margin-bottom: 1.12rem; color: #3a5a35; font: 800 .74rem/1.2 ui-monospace, "Cascadia Code", monospace; text-transform: uppercase; letter-spacing: .12em; }
.section-label span:not(:empty) { display: inline-flex; min-width: 2rem; padding: .2rem .37rem; border: 1px solid #adbf9f; border-radius: 3px; justify-content: center; letter-spacing: .04em; }
.section-label span:empty { width: 1.5rem; height: 2px; background: #66825d; }
h2 { font-size: clamp(2.2rem, 4.65vw, 4.45rem); font-weight: 810; line-height: .98; letter-spacing: -.071em; text-wrap: balance; }
.section-head { display: grid; grid-template-columns: 1.9fr 1fr; align-items: end; gap: 1.6rem; margin-bottom: clamp(1rem, 2vw, 1.65rem); }
.section-head h1 { font-size: clamp(2.08rem, 4.65vw, 4.25rem); font-weight: 810; line-height: 1.02; letter-spacing: -.07em; text-wrap: balance; }
.section-head p, .privacy-inner > div > p:last-child { max-width: 36ch; color: var(--muted); font-size: 1.03rem; line-height: 1.65; text-wrap: pretty; }
.home-page .section-head { align-items: center; }
.home-intro-aside { display: grid; justify-items: center; justify-self: start; min-width: 0; }
.home-intro-aside p { text-align: center; text-wrap: balance; }
.home-mascot { display: block; width: clamp(4.75rem, 9vw, 7.6rem); height: auto; margin-block-end: .24rem; filter: drop-shadow(0 .22rem .2rem #14262520); }
.tool-shelves { display: grid; gap: clamp(1rem, 2vw, 2rem); }
.tool-shelf { position: relative; min-width: 0; }
.tool-shelf-title { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin-bottom: .18rem; padding-inline-end: 6rem; font-size: clamp(1.12rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -.035em; }
.tool-shelf-title::before { content: ""; width: .23rem; height: 1em; border-radius: .2rem; background: var(--accent); flex: 0 0 auto; }
.tool-grid {
  --shelf-slots: 4;
  --shelf-gap: 1.12rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--shelf-gap)) / var(--shelf-slots) - var(--shelf-gap));
  gap: var(--shelf-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 4px 8px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.tool-grid[data-shelf-ready] { scrollbar-width: none; }
.tool-grid[data-shelf-ready]::-webkit-scrollbar { display: none; }
.tool-grid:focus-visible { outline-offset: 0; border-radius: 11px; }
.tool-shelf-controls { position: absolute; inset-block-start: 0; inset-inline-end: 0; display: flex; gap: .38rem; }
.tool-shelf-step { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #c5cec4; border-radius: 50%; background: var(--white); color: var(--ink); }
.tool-shelf-step .icon { width: 1.25rem; height: 1.25rem; }
.tool-shelf-step:hover:not([aria-disabled="true"]) { background: var(--lime); border-color: #abc386; color: #13201a; }
.tool-shelf-step[aria-disabled="true"] { opacity: .48; cursor: default; }
.tone-pdf { --tint: #efdfd4; --accent: #8f402e; --line-tone: #c18b75; }
.tone-photos { --tint: #e4ead5; --accent: #476035; --line-tone: #98ac78; }
.tone-image, .tone-metadata { --tint: #e1ebd3; --accent: #345e3c; --line-tone: #799a6b; }
.tone-video { --tint: #e4e7f3; --accent: #414a86; --line-tone: #9598c9; }
.tone-audio { --tint: #f1e6cb; --accent: #816024; --line-tone: #b69a5a; }
.home-featured { scroll-margin-block-start: 1rem; }
.home-featured-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.55rem,1vw,.9rem); }
.fd-en-start .home-featured-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); }
.fd-en-start .tool-lede { margin: .7rem 0 0; }
.fd-en-start .home-intro-aside a { text-align: center; }
.fd-en-catalogue { margin: .9rem 0 0; }
.fd-en-help { padding-top: 1rem; }
.fd-en-help details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.fd-en-help summary { cursor: pointer; font-weight: 750; }
.home-featured-card.tone-image { --card-light: #eff3e2; --card-shade: #e4ebd6; --card-edge: #a8ba9c; }
.home-featured-card.tone-video { --card-light: #f3edf8; --card-shade: #eae1f4; --card-edge: #beadd1; }
.home-featured-card.tone-audio { --card-light: #fbf2da; --card-shade: #f4e6c8; --card-edge: #cdb583; }
.home-featured-card.tone-pdf { --card-light: #fcf0e7; --card-shade: #f6e0d5; --card-edge: #cba792; }
[data-theme="dark"] .home-featured-card.tone-image { --card-light: #293327; --card-shade: #1c2721; --card-edge: #485641; }
[data-theme="dark"] .home-featured-card.tone-video { --card-light: #302b38; --card-shade: #242329; --card-edge: #504457; }
[data-theme="dark"] .home-featured-card.tone-audio { --card-light: #383023; --card-shade: #28271f; --card-edge: #594b36; }
[data-theme="dark"] .home-featured-card.tone-pdf { --card-light: #392d28; --card-shade: #292420; --card-edge: #584139; }
.home-featured-card {
  display: flex; flex-direction: column; min-width: 0; gap: .58rem;
  padding: .75rem clamp(.8rem,1.5vw,1.26rem) 1rem;
  color: var(--ink); background: linear-gradient(118deg,var(--card-light),var(--card-shade));
  border: 1px solid var(--card-edge); border-radius: 1rem;
  text-decoration: none;
}
.home-featured-art { display: block; align-self: start; color: var(--accent); }
.home-featured-art svg { display: block; width: 3.7rem; height: auto; margin-inline-start: -.38rem; }
.home-featured-copy { display: grid; align-content: start; gap: .24rem; min-width: 0; }
.home-featured-name { font-size: clamp(1.25rem,2.05vw,1.72rem); line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-featured-desc { color: var(--muted); font-size: .9rem; line-height: 1.38; overflow-wrap: break-word; hyphens: auto; }
.home-featured-card:focus-visible { border-color: var(--accent); }
.home-featured-card:focus-visible .home-featured-name { text-decoration: underline; text-underline-offset: .16em; }
@media (hover: hover) {
  .home-featured-card:hover { border-color: var(--accent); }
  .home-featured-card:hover .home-featured-name { text-decoration: underline; text-underline-offset: .16em; }
}
@media (max-width: 51.99rem) {
  .home-featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 33rem) {
  .home-page .section-head { gap: .35rem; margin-block-end: .85rem; }
  .home-page .section-head p { font-size: .94rem; line-height: 1.4; }
  .home-featured-card { padding: .42rem .75rem .78rem; border-radius: .85rem; gap: .32rem; }
  .home-featured-art svg { width: 2.8rem; }
  .home-featured-desc { font-size: .85rem; line-height: 1.32; }
  .home-featured-copy { gap: .16rem; }
}
@media (forced-colors: active) {
  .home-featured-card { color: LinkText; background: Canvas; border-color: LinkText; box-shadow: none; }
  .home-featured-name { text-decoration: underline; }
  .home-featured-desc { color: CanvasText; }
  .home-featured-card:focus-visible { outline-color: Highlight; }
}
.tone-text, .tone-lettercase, .tone-textcount, .tone-textlist { --tint: #eedfe6; --accent: #7d4665; --line-tone: #b88da5; }
.tone-files { --tint: #d7e9ea; --accent: #265b64; --line-tone: #75a3ac; }
.tone-split { --tint: #efdfd4; --accent: #8f402e; --line-tone: #c18b75; }
.tone-organize { --tint: #f0e2d4; --accent: #803e31; --line-tone: #bb8e78; }
.tone-convert { --tint: #e0e9d2; --accent: #315b3a; --line-tone: #7d9d6d; }
.tool-tile { background: var(--white); border: 1px solid var(--line); border-radius: 11px; overflow: clip; min-width: 0; scroll-snap-align: start; transition: transform .2s, box-shadow .2s; }
.tool-tile:hover, .tool-tile:focus-within { transform: translateY(-3px); box-shadow: 0 12px 24px #111b1e0b; }
.tile-link { display: grid; grid-template-rows: 122px 1fr; height: 100%; text-decoration: none; }
.tile-link:focus-visible { outline-offset: -4px; }
.tile-visual { display: flex; align-items: start; justify-content: space-between; position: relative; overflow: hidden; background: var(--tint); color: var(--accent); padding: .88rem; }
.tile-visual::before, .tile-visual::after { content: ""; border: 1px solid var(--line-tone); position: absolute; top: 48%; left: 50%; width: 175px; height: 175px; opacity: .45; transform: translate(-50%,-50%) rotate(-18deg); border-radius: 38%; pointer-events: none; }
.tile-visual::after { width: 220px; height: 220px; opacity: .24; }
.tile-index, .pill { position: relative; z-index: 1; line-height: 1; }
.tile-index { font: 750 .76rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }
.tile-index span { opacity: .72; }
.tile-figure { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile-figure .icon { width: 60px; height: 60px; stroke-width: 1.2; }
.pill { display: inline-flex; gap: .33rem; align-items: center; font-size: .72rem; font-weight: 760; background: #ffffffe3; padding: .38rem .5rem; border-radius: 100px; color: #24432b; white-space: nowrap; }
.pill > span { width: 6px; height: 6px; border-radius: 50%; background: #4e7c39; }
.pill-fresh { background: #e6ffad; color: #324f23; }
.tile-content { padding: 1.2rem 1.1rem 1rem; display: flex; flex-direction: column; }
.tile-content h3 { font-size: clamp(1.36rem, 2.28vw, 1.85rem); line-height: 1.12; letter-spacing: -.055em; }
.tile-content p { margin-top: .58rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.tile-foot { margin-top: auto; padding-top: 1.12rem; display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: #485955; font-size: .75rem; font-weight: 680; }
.tile-arrow { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .18s; }
.tile-link:hover .tile-arrow { background: var(--lime); border-color: #abc386; color: #13201a; }

.privacy-section { background: #0b2025; color: #f5f7ee; }
.privacy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 6vw, 6rem); align-items: end; }
.dark-label, .privacy-inner > div > p:last-child { color: #d5e2db; }
.dark-label span:empty { background: var(--lime); }
.privacy-mark { display: grid; place-items: center; border: 1px solid #54776c; color: var(--lime); width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1rem; }
.privacy-mark .icon { width: 26px; height: 26px; }
.privacy-inner h2 { color: var(--lime); }
.privacy-inner > div > p:last-child { margin-top: 1rem; max-width: 42ch; }
.workflow { list-style: none; padding: 0; margin: 0; }
.workflow li { display: grid; grid-template-columns: 2.55rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid #436368; }
.workflow li:first-child { padding-top: 1.35rem; }
.workflow li:last-child { border-bottom: 1px solid #436368; }
.workflow-number { color: #dcf9a2; font: 700 .86rem/1.6 ui-monospace, monospace; }
.workflow h3 { font-size: 1.18rem; letter-spacing: -.025em; }
.workflow p { color: #cfdbd9; line-height: 1.52; margin-top: .35rem; }
.faq-section { background: #eaf0e2; padding-block: clamp(3rem, 6vw, 5.5rem); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.faq-inner h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); }
.faq-inner details { border-top: 1px solid #aebca8; }
.faq-inner details:last-child { border-bottom: 1px solid #aebca8; }
.faq-inner summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .9rem .1rem; list-style: none; cursor: pointer; font-weight: 710; }
.faq-inner summary::-webkit-details-marker { display: none; }
.faq-inner summary span::before { content: "+"; font-weight: 600; font-size: 1.3rem; color: #375737; }
.faq-inner details[open] summary span::before { content: "−"; }
.faq-inner details p { color: var(--muted); font-size: .95rem; padding: 0 1rem .95rem .1rem; line-height: 1.57; }
.site-footer { background: #0a1720; color: #edf3eb; }
.footer-inner { min-height: 82px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.footer-brand { padding: .32rem .55rem; background: var(--paper); border-radius: 7px; }
.footer-brand .brand-logo { width: 9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .87rem; }
.footer-links a { text-decoration: none; }

.tool-banner { overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.tool-banner-inner { position: relative; isolation: isolate; min-height: 242px; padding-block: 1.25rem 2rem; }
.back-link { display: inline-flex; align-items: center; gap: .48rem; font-weight: 700; font-size: .87rem; text-underline-offset: .22em; }
.tool-banner .section-label { margin: 1.45rem 0 .65rem; color: var(--accent); }
.tool-banner .section-label span:not(:empty) { border-color: var(--line-tone); }
.tool-banner h1, .document-page h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; font-weight: 840; letter-spacing: -.075em; }
.tool-lede { max-width: 43ch; color: #334344; margin-top: .85rem; line-height: 1.56; }
.studio-recommendation { display: inline-flex; margin-top: .78rem; color: var(--accent); }
.banner-glyph { z-index: -1; position: absolute; right: 3%; top: 50%; transform: translateY(-46%) rotate(-8deg); display: grid; place-items: center; width: clamp(8rem, 20vw, 17rem); aspect-ratio: 1; border-radius: 34%; border: 1px solid var(--line-tone); color: var(--accent); opacity: .32; }
.banner-glyph .icon { width: 52%; height: 52%; stroke-width: 1; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(1.7rem, 4.2vw, 4.25rem); padding-block: clamp(1.5rem, 5vw, 3.5rem) 4rem; align-items: start; }
.workbench { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(.9rem, 2.25vw, 1.6rem); min-width: 0; }
.workbench-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-bottom: 1rem; }
.workbench-head h2, .result-head h2, .tool-guide h2 { font-size: clamp(1.37rem, 2.75vw, 2rem); letter-spacing: -.05em; line-height: 1.1; }
.local-tag { display: flex; gap: .32rem; align-items: center; font-weight: 700; font-size: .78rem; color: #365a33; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 163px; padding: 1rem; border: 2px dashed #aab9a8; background: #f5f7ed; text-align: center; border-radius: 8px; cursor: pointer; }
.drop-zone:hover, .drop-zone.drag { background: #eff5db; border-color: #578152; }
.drop-zone:has(input:focus-visible) { outline: 3px solid #567b23; outline-offset: 3px; }
.drop-zone:has(input:disabled) { opacity: .64; cursor: not-allowed; }
.drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--tint); color: var(--accent); margin-bottom: .12rem; }
.drop-icon .icon { width: 23px; height: 23px; }
.drop-zone > span:last-child, .form-note { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.example-button { display: inline-flex; align-items: center; min-height: 39px; gap: .38rem; border: 0; padding: .48rem 0; background: transparent; text-align: left; color: #335b33; font-size: .87rem; font-weight: 720; text-decoration: underline; text-underline-offset: .2em; }
.import-hint { color: var(--muted); margin: 0 0 .65rem; font-size: .83rem; line-height: 1.45; }
.file-list { padding: 0; margin: .5rem 0 1rem; list-style: none; border: 1px solid var(--line); border-radius: 7px; }
.file-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .55rem; padding: .65rem .65rem .65rem .78rem; }
.file-list li + li { border-top: 1px solid var(--line); }
.file-list .file-label { min-width: 0; overflow-wrap: anywhere; font-weight: 650; font-size: .88rem; }
.file-list small { display: block; color: var(--muted); margin-top: .2rem; font-size: .73rem; font-weight: 500; }
.file-buttons { display: flex; flex-shrink: 0; gap: .25rem; }
.file-action { min-width: 37px; min-height: 38px; border: 1px solid #cbd4c8; background: #f5f6f0; border-radius: 5px; }
.file-action:hover:not(:disabled) { background: #e7eddc; }
.tool-message { margin: .55rem 0 .85rem; color: #3e5552; line-height: 1.5; font-size: .9rem; }
.tool-message.is-error { border: 1px solid #d5aa99; background: #fff1ea; color: #802f23; border-radius: 6px; padding: .68rem .75rem; }
.option-grid { display: grid; grid-template-columns: 1fr .9fr 1fr; gap: .65rem; }
.option-grid label, .trim-footer label, .trim-field { display: flex; flex-direction: column; gap: .38rem; min-width: 0; font-weight: 690; font-size: .88rem; }
.option-grid label small, .trim-field label small { color: var(--muted); font-size: .75rem; }
.kb-presets { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; }
.kb-presets > span { color: var(--muted); font-size: .82rem; font-weight: 680; margin-right: .18rem; }
.kb-presets [aria-pressed=true] { background: #e2f4b9; border-color: #77954e; }
.photo-layout-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem; margin-bottom: .75rem; }
.photo-layout-bar h3 { font-size: 1.07rem; }
.photo-layout-bar p { margin: .25rem 0 0; }
.photo-layout-bar > label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; width: min(100%, 11.4rem); }
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: .7rem; padding: 0; margin: .3rem 0; }
.photo-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: .64rem; background: #fdfcf8; }
.photo-title { font-size: .86rem; line-height: 1.35; font-weight: 740; overflow-wrap: anywhere; }
.photo-name { font-size: .74rem; color: var(--muted); margin-top: .12rem; overflow-wrap: anywhere; }
.photo-art { flex: 1; display: grid; place-items: center; min-height: 153px; background: #e9ece4; margin: .5rem 0; padding: .45rem; border-radius: 5px; }
.photo-art svg { display: block; width: auto; height: auto; max-width: 100%; max-height: 145px; box-shadow: 0 2px 6px #10291e29; }
.photo-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .28rem; }
.photo-buttons button { min-width: 0; min-height: 44px; padding: 0; font-size: 1.13rem; }
input[type=number], select { width: 100%; min-width: 0; min-height: 43px; padding: .46rem .53rem; border: 1px solid #aebdb9; border-radius: 5px; background: #fff; }
input[type=range], progress { accent-color: #43713e; }
input[type=range] { width: 100%; margin: .35rem 0; min-height: 25px; }
.form-note { margin: .7rem 0; }
.form-note .icon { margin-right: .25em; }
.tool-actions { margin-top: 1rem; }
.tool-guide h2 { margin-bottom: .9rem; }
.tool-guide ol { color: #34464a; line-height: 1.6; padding: 0 0 0 1.35rem; margin: 0 0 1.25rem; }
.tool-guide li { padding-left: .28rem; margin: .5rem 0; }
.tool-guide li::marker { color: #3c633b; font-weight: 750; }
.guide-note { display: flex; gap: .55rem; align-items: flex-start; padding: .85rem; background: var(--tint); color: #25383a; border-radius: 7px; font-size: .85rem; line-height: 1.53; }
.guide-note .icon { color: var(--accent); margin-top: .13rem; }
.inline-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; color: #385d32; font-weight: 690; font-size: .86rem; text-underline-offset: .24em; }
.progress-box { margin-top: 1rem; padding: .82rem; border: 1px solid #cbd8be; border-radius: 7px; background: #f1f5e8; display: flex; align-items: center; justify-content: space-between; gap: .65rem; font-size: .9rem; }
.progress-box > div { flex: 1; }
progress { display: block; width: 100%; min-height: 12px; margin-top: .4rem; }
.result-panel { margin-top: 1.1rem; background: #eef4e3; border: 1px solid #b8cbaa; border-radius: 8px; padding: .95rem; }
.result-head { display: flex; align-items: center; gap: .55rem; }
.result-head p { margin-top: .25rem; color: #425345; font-size: .86rem; line-height: 1.5; }
.result-icon { flex: 0 0 35px; height: 35px; color: #345e37; background: #d5e7c5; border-radius: 50%; display: grid; place-items: center; }
.result-panel .button { margin-top: .8rem; }
.download-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.result-panel img, .result-panel video { max-height: 320px; width: auto; border-radius: 6px; margin-top: .75rem; object-fit: contain; }
.video-input-preview video { background: #0b1419; width: 100%; max-height: 350px; border-radius: 6px; }
.trim-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; margin-top: .65rem; }
.trim-field { padding: .65rem; border: 1px solid var(--line); border-radius: 7px; }
.trim-footer { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.trim-footer label { min-width: min(10rem, 100%); }
.document-page { min-height: 65svh; max-width: 820px; }
.document-page h1 { margin: .95rem 0 1rem; }
.document-page h2 { font-size: 1.5rem; margin: 1.5rem 0 .55rem; }
.document-page p { line-height: 1.65; margin-bottom: .55rem; color: var(--muted); }
.document-page .button { margin-top: .8rem; }
.fd-seo-context {
  padding-block: 1rem 1.5rem;
  margin-block: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.fd-seo-context h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.035em; line-height: 1.25; }
.fd-seo-context h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 .32rem; }
.fd-seo-context p { color: var(--muted); line-height: 1.55; }
.fd-seo-context-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem 1.65rem; margin-top: .8rem; }
.fd-seo-context nav { grid-column: 1/-1; }
.fd-seo-context nav ul { display: flex; flex-wrap: wrap; gap: .3rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.fd-seo-context nav a,.fd-comparison-table a,.fd-lang-suggestion a { text-underline-offset: .17em; }
.fd-comparison { max-width: 850px; overflow-wrap: anywhere; }
.fd-comparison .fd-comparison-intro { margin-block: 1.7rem 1.2rem; }
.fd-comparison .fd-comparison-intro h1 { font-size: clamp(2rem, 5.8vw, 3.6rem); line-height: 1.05; }
.fd-comparison .fd-comparison-byline { font-size: .9rem; font-weight: 750; color: var(--support); }
.fd-comparison .fd-comparison-date,.fd-comparison .fd-comparison-disclaimer { font-size: .88rem; }
.fd-comparison-table {
  width: 100%; table-layout: fixed; margin-block: 1.15rem; border-collapse: collapse;
  border: 1px solid var(--line); background: var(--white); text-align: start;
}
.fd-comparison-table th, .fd-comparison-table td { vertical-align: top; padding: clamp(.6rem, 2vw, 1rem); border-bottom: 1px solid var(--line); }
.fd-comparison-table thead { background: var(--soft); font-size: .9rem; }
.fd-comparison-table thead th:first-child { width: 30%; }
.fd-comparison-table p { line-height: 1.4; margin: .25rem 0; }
.fd-comparison-table td a { color: var(--support); font-size: .88rem; }
.fd-comparison-table th { text-align: start; }
.fd-comparison-recipe { border: 1px solid var(--line); border-radius: .85rem; background: var(--white); padding: 1.1rem; margin-top: 1.2rem; }
.fd-comparison .fd-comparison-recipe h2 { margin-top: 0; }
.fd-comparison .fd-comparison-disclaimer { margin-top: 1.3rem; }
.fd-lang-suggestion { padding-top: .55rem; text-align: end; }
.fd-lang-suggestion a { color: var(--support); }
@media (max-width: 620px) {
  .fd-seo-context-body { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 900px) {
  .tool-grid { --shelf-slots: 2; }
  .header-inner { gap: .9rem; }
  .main-nav { gap: .9rem; }
  .main-nav a { font-size: .81rem; }
  .tile-link { grid-template-rows: 99px 1fr; }
  .tile-figure .icon { width: 51px; height: 51px; transform: translateY(7px); }
}
@media (max-width: 690px) {
  .header-inner { min-height: 60px; }
  .main-nav { display: none; }
  .theme-toggle { min-width: 88px; }
  .brand-logo { width: clamp(7.5rem, 36vw, 9rem); }
  .section-head { grid-template-columns: 1fr; gap: .75rem; }
  .home-page .section-head { grid-template-columns: minmax(0, 1fr) clamp(6.1rem, 29vw, 10rem); gap: .55rem; }
  .home-page .section-head h1 { font-size: clamp(1.55rem, 7.5vw, 2.45rem); }
  .home-intro-aside { justify-self: stretch; }
  .home-intro-aside .home-mascot { width: clamp(3.75rem, 16vw, 4.7rem); }
  .home-page .home-intro-aside p { font-size: .875rem; line-height: 1.24; }
  .tool-grid { --shelf-slots: 1; --shelf-gap: .75rem; }
  .tile-link { grid-template-rows: 1fr; grid-template-columns: clamp(95px, 29vw, 145px) 1fr; }
  .tile-visual { min-height: 152px; flex-direction: column; gap: .5rem; justify-content: space-between; align-items: center; }
  .tile-figure .icon { transform: none; }
  .tile-content { padding: .9rem .74rem .7rem; }
  .tile-foot { padding-top: .68rem; }
  .privacy-inner, .faq-inner, .tool-layout { grid-template-columns: 1fr; }
  .banner-glyph { right: 0%; opacity: .19; }
}
@media (max-width: 390px) {
  .tile-foot { font-size: .7rem; }
  .tile-arrow { flex-basis: 31px; height: 31px; }
  .option-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.catalogue-controls { margin-bottom: 1.05rem; padding: clamp(.9rem, 2vw, 1.28rem); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.catalogue-controls > label, .studio-range > label { display: block; font-weight: 720; margin-bottom: .36rem; }
.catalogue-search { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.catalogue-search .icon { color: var(--muted); }
.catalogue-search input, .studio-inline input { flex: 1 1 13rem; min-width: 0; min-height: 47px; border: 1px solid #aebcb4; border-radius: 6px; background: #fff; padding: .6rem .75rem; font-size: 1rem; }
.catalogue-filters { display: flex; flex-wrap: wrap; gap: .48rem; margin-top: .65rem; }
.catalogue-filters .button { min-height: 44px; padding: .55rem .8rem; }
.catalogue-filters .button[aria-pressed="true"] { color: var(--on-action); background: var(--action); border-color: var(--action); }
.catalogue-controls .form-note { margin-bottom: 0; }
.catalogue-empty { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1rem; border: 1px dashed #9bab9f; border-radius: 8px; }
.studio-fields { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.studio-fields legend { padding: 0; margin-bottom: .7rem; font-size: 1.08rem; font-weight: 770; }
.studio-fields > p, .studio-grid p { line-height: 1.55; }
.studio-range { margin-bottom: .85rem; }
.studio-range p { margin: .4rem 0 .55rem; }
.studio-inline, .studio-rowhead { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.studio-rowhead { justify-content: space-between; margin: 1rem 0 .5rem; }
.studio-rowhead h3, .metadata-grid h3 { font-size: 1.03rem; font-weight: 780; }
.page-list, .studio-downloads { padding: 0; margin: .5rem 0; list-style: none; border: 1px solid var(--line); border-radius: 7px; }
.page-list { max-height: 30rem; overflow: auto; }
.page-list li, .studio-downloads li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .55rem .72rem; }
.page-list li + li, .studio-downloads li + li { border-top: 1px solid var(--line); }
.studio-file-description { min-width: 0; overflow-wrap: anywhere; }
.studio-file-description small { display: block; margin-top: .16rem; color: var(--muted); font-size: .88rem; }
.page-buttons { display: flex; flex-wrap: wrap; gap: .32rem; }
.page-buttons .button { min-height: 44px; font-size: .875rem; }
.studio-downloads:empty { display: none; }
.studio-downloads .button { margin: 0; }
.studio-options label > span { font-size: .93rem; }
.studio-options input[type="range"] { padding-inline: 0; accent-color: #4c6d32; min-width: 0; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.metadata-grid section { padding: .65rem; border: 1px solid var(--line); border-radius: 7px; background: #f7f8f1; min-width: 0; }
.metadata-grid h3 { margin: 0 0 .45rem; }
.metadata-grid p, .metadata-grid ul { font-size: .92rem; line-height: 1.55; margin: .3rem 0; }
.metadata-grid ul { padding-left: 1.16rem; }
.studio-errors { color: #652c25; padding-left: 1.4rem; overflow-wrap: anywhere; }
#studio-player { width: 100%; margin: .7rem 0 .35rem; }
#studio-drop[aria-disabled="true"] { opacity: .68; cursor: not-allowed; }
.split-controls { max-width: 23rem; }
.split-controls label, .text-label, .text-sort span { display: block; margin-bottom: .42rem; font-weight: 740; }
.split-controls input { max-width: 8.2rem; font-size: 1rem; }
.split-controls .form-note { margin-top: .4rem; }
.split-controls [aria-invalid="true"] { border-color: #a7523b; }
.split-plan { display: flex; flex-wrap: wrap; gap: .36rem; list-style: none; padding: 0; margin: .48rem 0 .8rem; }
.split-plan li { padding: .22rem .5rem; border: 1px solid #dec9bd; border-radius: 5px; background: #faf1ea; font-size: .88rem; }
.text-workbench textarea { display: block; font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-height: 7.4rem; resize: vertical; padding: .65rem .78rem; line-height: 1.55; border: 1px solid #aebcb4; border-radius: 6px; background: #fff; }
.text-workbench textarea[readonly] { background: #f8f8f2; }
.text-input-foot { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .55rem; margin: .65rem 0 .95rem; }
.text-input-foot .form-note { flex: 1 1 12rem; margin: 0; }
.text-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.text-buttons .button { min-height: 44px; }
.text-settings { min-width: 0; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 .9rem; }
.text-settings legend, .text-count h3, .text-result h3 { font-weight: 770; font-size: 1.06rem; }
.text-checks label { display: flex; align-items: center; gap: .58rem; min-height: 44px; cursor: pointer; }
.text-checks input { accent-color: #487143; width: 1.12rem; height: 1.12rem; margin: 0; flex: 0 0 auto; }
.text-sort { display: block; margin-top: .65rem; max-width: 18rem; }
.text-sort select { font-size: 1rem; appearance: none; padding-right: 2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2016%2016'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2346575b' stroke-width='1.6'/%3E%3C/svg%3E") right .62rem center / 1rem no-repeat; }
.text-count, .text-result { padding-top: .85rem; margin-top: .85rem; border-top: 1px solid var(--line); }
.text-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .65rem 0; }
.text-metrics > div { display: flex; flex-direction: column; justify-content: space-between; padding: .65rem .72rem; border-radius: 7px; background: #f4edf0; }
.text-metrics dt { font-size: .9rem; color: var(--muted); }
.text-metrics dd { margin: .22rem 0 0; color: #53364a; font-size: 1.55rem; font-weight: 760; line-height: 1.1; font-variant-numeric: tabular-nums; }
.text-result h3 { margin-bottom: .4rem; }
.text-result .text-buttons { margin-top: .65rem; }
.text-status { margin: .65rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.text-status:empty { margin: 0; }
@media (max-width: 505px) {
  .studio-options { grid-template-columns: 1fr 1fr; }
  .studio-options #quality-label { grid-column: 1 / -1; }
  .studio-inline .button { width: 100%; }
  .page-buttons { width: 100%; }
  .page-buttons .button { flex: 1 1 auto; }
  .metadata-grid { grid-template-columns: 1fr; }
}

/* Common workbench for the extended browser-local tools. */
.lab-init, .lab-field, .lab-help, .lab-field > * { min-width: 0; }
.lab-help { font-size: .96rem; }
.lab-fields { padding: 0; margin: 1rem 0; border: 0; min-inline-size: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.lab-field { display: flex; flex-direction: column; align-items: stretch; gap: .32rem; }
.lab-field > :is(label,span,p) { font-weight: 730; line-height: 1.38; margin: 0; overflow-wrap: anywhere; }
.lab-field :is(input,select,textarea), .lab-result-text { color: var(--ink); background: #fff; border: 1px solid #aebcb4; border-radius: 7px; font: inherit; font-size: 1rem; min-height: 46px; padding: .58rem .66rem; width: 100%; min-width: 0; }
.lab-field :is(textarea,input), .lab-result-text { line-height: 1.4; }
.lab-field textarea, .lab-result-text { resize: vertical; }
.lab-field input[type=file] { font-size: .91rem; min-height: 50px; padding: .3rem; }
.lab-field input::file-selector-button { margin-right: .52rem; min-height: 38px; padding: .4rem .58rem; border: 0; border-radius: 5px; font: inherit; font-weight: 700; background: var(--tint); color: var(--ink); cursor: pointer; }
.lab-field input[type=color] { padding: .3rem; cursor: pointer; }
.lab-wide { grid-column: 1 / -1; }
.lab-field.lab-check { flex-direction: row; align-items: center; align-self: end; min-height: 46px; gap: .58rem; }
.lab-field input[type=checkbox], .lab-printable input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; min-height: 0; margin: 0; accent-color: #496932; }
.lab-preview { min-width: 0; }
.lab-preview:empty { display: none; }
.lab-preview-media { display: table; position: relative; margin: .25rem 0; max-width: 100%; }
.lab-preview-media img { display: block; object-fit: contain; width: auto; max-width: 100%; max-height: 380px; border-radius: 6px; }
.lab-pick, .lab-signature { touch-action: none; cursor: crosshair; }
.lab-crop-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lab-preview :is(audio,video), .lab-result-preview { display: block; width: 100%; max-width: 100%; }
.lab-preview video, .lab-result-preview:is(video,img) { max-height: 440px; object-fit: contain; border-radius: 7px; }
.lab-time-actions, .lab-downloads, .lab-file-buttons { display: flex; flex-wrap: wrap; gap: .42rem; }
.lab-time-actions, .lab-downloads { margin-top: .62rem; }
.lab-download { white-space: normal; word-break: normal; overflow-wrap: anywhere; text-align: left; }
.lab-file-list { list-style: none; margin: .25rem 0; padding: 0; }
.lab-file-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; border-bottom: 1px solid var(--line); padding: .32rem 0; }
.lab-file-name { overflow-wrap: anywhere; min-width: 0; font-size: .9rem; }
.lab-file-buttons .button { min-height: 44px; }
.lab-signature { display: block; width: 100%; height: auto; border: 2px dashed #aebcb4; background: #fff; border-radius: 7px; }
.lab-init progress { width: 100%; color: #496932; accent-color: #496932; }
.lab-result { overflow-wrap: anywhere; }
.lab-result-info { margin: 0 0 .7rem; padding-left: 1.24rem; }
.lab-result-info li + li { margin-top: .27rem; }
.lab-result-text { margin: .6rem 0 .42rem; background: #f8f8f2; }
.lab-result canvas { max-width: 100%; border-radius: 7px; display: block; }
.lab-editor-tools { margin-block: .3rem .52rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.lab-visual-editor .lab-preview-media { margin-inline: auto; }
.lab-visual-editor .lab-preview-media img, .lab-visual-editor .lab-preview video,
.lab-visual-editor .lab-result-preview:is(video,img) { max-height: min(72svh, 54rem); }
.lab-result label > input[type=range] { display: block; width: 100%; min-height: 44px; accent-color: #496932; }
.lab-table { overflow: auto; margin: .5rem 0; }
.lab-table table { width: 100%; border-collapse: collapse; }
.lab-table td { border: 1px solid var(--line); padding: .43rem .58rem; min-width: 5rem; max-width: 20rem; vertical-align: top; }
.lab-table tr:nth-child(odd) { background: #f2f4eb; }
.lab-diff, .lab-colors, .lab-printable ul { list-style: none; margin: .5rem 0; padding: 0; }
.lab-diff li { padding: .2rem .42rem; white-space: pre-wrap; font: .88rem/1.45 ui-monospace,monospace; }
.lab-diff .lab-insert { color: #224523; background: #e3efdf; }
.lab-diff .lab-delete { color: #683431; background: #f6e5e1; }
.lab-colors { display: grid; grid-template-columns: repeat(auto-fit,minmax(104px,1fr)); gap: .48rem; }
.lab-colors li { font-weight: 720; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: .4rem; }
.lab-colors svg, .lab-colors small { display: block; }
.lab-colors svg { width: 100%; height: auto; }
.lab-colors small { font-size: .76rem; font-weight: 500; }
body > .lab-printable { display: none; }
.lab-checklist { display: grid; gap: .6rem; }
.lab-checklist-field { display: grid; gap: .25rem; min-width: 0; font-weight: 700; }
.lab-checklist :is(.lab-checklist-field input,input[type="text"]) { min-width: 0; width: 100%; font-weight: 400; }
.lab-checklist-list { display: grid; gap: .42rem; list-style: none; padding: 0; margin: 0; }
.lab-checklist-list li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items:center; gap:.4rem; }
.lab-checklist-list input[type="checkbox"] { inline-size: 1.2rem; block-size: 1.2rem; min-height: 0; margin: 0; }
.lab-checklist-list input:checked + input { text-decoration: line-through; color: var(--muted); }
.lab-checklist-moves, .lab-checklist-add { display: flex; align-items: end; flex-wrap: wrap; gap: .35rem; }
.lab-checklist-moves .button { min-width: 44px; min-height: 44px; padding: .25rem; }
.lab-checklist-add .lab-checklist-field { flex: 1 1 12rem; }
@media (max-width: 440px) { .lab-checklist-moves { grid-column: 2 / -1; } }
@media (max-width: 580px) { .lab-fields { grid-template-columns: 1fr; } }

/* Dark surfaces are real theme tokens, not a filter over the user's media. */
[data-theme="dark"] :is(.tone-pdf,.tone-split,.tone-organize) { --tint: #392d28; --accent: #f69c81; --line-tone: #ac6f5d; }
[data-theme="dark"] :is(.tone-image,.tone-photos,.tone-metadata,.tone-convert) { --tint: #293327; --accent: #bfda86; --line-tone: #7d915c; }
[data-theme="dark"] .tone-video { --tint: #302b38; --accent: #c3a4f2; --line-tone: #8c79a8; }
[data-theme="dark"] .tone-audio { --tint: #383023; --accent: #f4c26a; --line-tone: #a3884e; }
[data-theme="dark"] :is(.tone-text,.tone-lettercase,.tone-textcount,.tone-textlist) { --tint: #3d2b39; --accent: #f0bddc; --line-tone: #a16d94; }
[data-theme="dark"] .tone-files { --tint: #233c42; --accent: #a7e0e9; --line-tone: #5e9ca8; }
[data-theme="dark"] :is(.tile-foot,.tool-lede,.tool-guide ol,.tool-message) { color: var(--muted); }
[data-theme="dark"] :is(.section-label,.local-tag,.example-button,.inline-link), [data-theme="dark"] .tool-guide li::marker, [data-theme="dark"] .faq-inner summary span::before { color: var(--support); }
[data-theme="dark"] .tool-banner .section-label { color: var(--accent); }
[data-theme="dark"] .tool-shelf-step { border-color: var(--field-border); }
[data-theme="dark"] .tool-tile:is(:hover,:focus-within) { box-shadow: 0 12px 24px #0004; }
[data-theme="dark"] .pill-ready { color: #d5edc6; background: #111e20e8; }
[data-theme="dark"] .pill-ready > span { background: #a6d385; }
[data-theme="dark"] .faq-section { background: #1e2b27; }
[data-theme="dark"] .faq-inner details { border-color: var(--line); }
[data-theme="dark"] .footer-brand { background: transparent; }
[data-theme="dark"] :is(.drop-zone,.photo-art,.file-action,.text-metrics > div,.metadata-grid section,.split-plan li,.lab-table tr:nth-child(odd),.lab-colors li) { background: var(--soft); border-color: var(--line); }
[data-theme="dark"] :is(.drop-zone:hover,.drop-zone.drag,.file-action:hover:not(:disabled)) { background: var(--soft-hover); border-color: var(--field-border); }
[data-theme="dark"] .guide-note { color: var(--ink); }
[data-theme="dark"] :is(input[type=number],select,.catalogue-search input,.studio-inline input,.text-workbench textarea,.lab-field :is(input,select,textarea),.lab-result-text) { background-color: var(--field); border-color: var(--field-border); color: var(--ink); }
[data-theme="dark"] .lab-signature { border-color: var(--field-border); }
[data-theme="dark"] .text-sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2016%2016'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23bed0c8' stroke-width='1.6'/%3E%3C/svg%3E"); }
[data-theme="dark"] :is(.text-workbench textarea[readonly],.lab-result-text) { background: var(--soft); }
[data-theme="dark"] :is(.kb-presets [aria-pressed=true],.progress-box,.result-panel,.result-icon,.lab-diff .lab-insert) { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-border); }
[data-theme="dark"] :is(.tool-message.is-error,.lab-diff .lab-delete) { background: var(--error-bg); color: var(--error-ink); border-color: var(--error-border); }
[data-theme="dark"] .studio-errors { color: var(--error-ink); }
[data-theme="dark"] :is(.text-metrics dd,.result-head p) { color: var(--muted); }
[data-theme="dark"] :is(input[type=range],input[type=checkbox],progress) { accent-color: var(--focus-color); }
@media print {
  body.lab-printing { background: #fff; }
  body.lab-printing > :not(.lab-printable) { display: none !important; }
  body.lab-printing > .lab-printable { display: block; color: #000; font: 12pt/1.45 system-ui; background: #fff; }
  body.lab-printing .lab-printable li { break-inside: avoid; margin: .4em 0; overflow-wrap: anywhere; }
}
.file-job-send{margin:0 0 24px}
.file-job-send .drop-zone{min-height:102px;gap:8px}
.file-job .workbench-head>div{min-width:0}
.file-job .workbench-head h2{margin-bottom:6px}
.file-job .option-grid{margin-top:14px}
.file-job .job-picked{margin:14px 0 0;overflow-wrap:anywhere;font-weight:700}
.job-examples{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.job-examples .form-note{margin:0}
.job-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.job-comparison figure{margin:0;min-width:0}
.job-comparison img{width:100%;max-height:430px;object-fit:contain;border-radius:7px;background:var(--paper,#f4f3ed)}
.job-comparison figcaption{margin-top:4px;font-size:.875rem}
.file-job textarea{width:100%;margin:6px 0 12px}
.file-job #job-video{max-width:100%;max-height:320px;margin:12px 0}
.job-over-limit .result-icon{visibility:hidden}
.job-over-limit #job-result-title{color:var(--error-ink)}
.page-list.page-visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:9px;padding:9px;max-height:35rem;align-items:start;border:0;background:var(--soft)}
.page-visual-grid li,.page-visual-grid li+li{display:grid;gap:6px;grid-template-columns:minmax(0,1fr);padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.page-visual-grid li.page-drop-target{outline:2px dashed var(--focus-color);outline-offset:-4px}
.page-thumb-top,.page-pick{display:flex;align-items:center;gap:7px;justify-content:space-between}
.page-pick{font-size:.83rem;justify-content:flex-start;cursor:pointer;font-weight:650}
.page-pick input{width:19px;height:19px;margin:0}
.page-drag-grip{cursor:grab;border-radius:5px;padding:1px 7px;font-size:1.3rem;color:var(--muted);touch-action:none}
.page-thumbnail{display:grid;place-items:center;height:126px;border-radius:6px;overflow:hidden;position:relative;background:var(--paper)}
.page-thumbnail img{object-fit:contain;max-width:112px;max-height:112px;display:none}
.page-thumbnail[data-ready="true"] img{display:block}
.page-thumbnail[data-ready="true"] .page-thumb-placeholder{display:none}
.page-thumb-placeholder{font-weight:750;font-size:1.4rem;color:var(--muted)}
.page-visual-grid .page-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.page-visual-grid .page-buttons button{min-height:36px;justify-content:center}
.page-visual-grid .page-buttons .editor-key,.photo-buttons .editor-key{min-width:0;min-height:44px;padding:.22rem .12rem;font-size:.8rem}
.studio-inline.page-batch .editor-key{width:auto}
.page-batch{align-items:center;flex-wrap:wrap;margin-top:8px}
.home-guides{margin-top:28px;padding-top:16px;border-top:1px solid var(--line)}
.home-guides h2{font-size:1.18rem;margin:0 0 9px}
.home-guides>div,.file-guide-links{display:flex;align-items:center;gap:.55rem 1.2rem;flex-wrap:wrap}
.file-guide .button{margin-top:12px}
.file-guide section{margin-top:22px}
@media(max-width:480px){.page-list.page-visual-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}.page-visual-grid .page-buttons button{padding-inline:4px;font-size:.82rem}}
@media(max-width:480px){.file-job .workbench-head{align-items:flex-start;flex-wrap:wrap}.file-job .job-comparison{gap:6px}}
