/* Interface type and colours, separate from project and print rendering. */
@font-face {
  font-family: Inter; src: url("./ui-fonts/inter-ui.woff2") format("woff2");
  font-style: normal; font-weight: 350 900; font-display: swap;
}
@font-face {
  font-family: Rubik; src: url("./ui-fonts/rubik-700.woff2") format("woff2");
  font-style: normal; font-weight: 700; font-display: swap;
}

:root {
  --ui-type: Inter, "Segoe UI", system-ui, sans-serif;
  --ui-heading: Rubik, var(--ui-type);
  --ink: #18281f; --muted: #45574a; --paper: #faf4e8; --white: #fffdf6;
  --line: #d4dbcf; --lime: #ddf49a; --soft: #eef1e8; --soft-hover: #e6eddf;
  --field: #fffefa; --field-border: #818f82; --focus-color: #15636b;
  --action: #bfda86; --action-hover: #b2d274; --on-action: #182c20;
  --signal: #426648; --support: #37593f;
  --success-bg: #eef4e5; --success-ink: #2d5637; --success-border: #a7bd9e;
  --key-down: #c7e87f; --key-lip: #8da351; --key-ring: #263e2f; --key-mark: #fbffe9;
  --key-disabled: #e4e9e0; --key-disabled-ink: #536256;
  --key-radius: .98rem; --field-radius: .72rem; --surface-radius: 1.18rem;
  --ui-shadow: 0 .42rem 1.4rem #17291c16;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%2345574a' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-family: var(--ui-type);
}
:root[data-theme="dark"] {
  --ink: #faf4e8; --muted: #c0c3b7; --paper: #101815; --white: #17201c;
  --line: #35403a; --soft: #202a23; --soft-hover: #2d382f;
  --field: #141d19; --field-border: #849388; --focus-color: #f4c26a; --signal: #bfda86;
  --action: #bfda86; --action-hover: #cde798; --on-action: #182c20;
  --support: #c1dda5; --success-bg: #283d30; --success-ink: #ceedbe; --success-border: #719473;
  --key-lip: #6f903f; --key-disabled: #3b4940; --key-disabled-ink: #c1cdc1;
  --ui-shadow: 0 .5rem 1.6rem #050b07a3;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23c3cec3' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body { font-size: 1rem; }
:is(h1,h2,h3,h4,.home-featured-name,.studio-fields legend,.text-settings legend,.fw-audio-panel legend) {
  font-family: var(--ui-heading); font-weight: 800; letter-spacing: -.024em;
}
:is(h1,h2,h3,h4) { overflow-wrap: anywhere; }
h2 { line-height: 1.1; }
.section-head h1 { font-weight: 800; line-height: 1.05; letter-spacing: -.039em; }
.tool-banner h1, .document-page h1 {
  font-size: clamp(2.35rem,5.2vw,4.45rem); line-height: 1.06; font-weight: 800; letter-spacing: -.039em;
}
.section-label, .tile-index, .workflow-number {
  font-family: var(--ui-type); font-weight: 700; letter-spacing: .055em;
}
.section-label, .local-tag, .example-button, .inline-link { color: var(--support); }
.tile-content h3, .workbench-head h2, .result-head h2, .tool-guide h2,
.workflow h3, .fw-empty h2, .fw-head h1, .fw-workstation h2 {
  line-height: 1.13; letter-spacing: -.024em;
}
:is(button,input,select,textarea) { font-family: inherit; }
:is(.form-note,.drop-zone > span:last-child,.import-hint,.tool-guide .guide-note,.footer-links) { font-size: .9rem; }

/* The primary key. The round icon is part of the button, not a second target. */
.button, .fw-button, .fw-chip, .fw-preset, .theme-toggle,
.header-disclosure summary, .editor-key.editor-key {
  border-radius: var(--key-radius); font-weight: 700;
}
.button, .fw-button, .editor-key.editor-key { min-block-size: 44px; }
.button { gap: .46rem; font-size: .95rem; }
.button-compact { font-size: .88rem; }
.editor-key.editor-key { gap: .28rem; }
.button-soft, .fw-outline, .editor-key.editor-key:is(.button-soft,.fw-outline) {
  background: var(--white); border-color: var(--field-border); color: var(--ink);
}
:is(.button-soft,.fw-outline,.fw-button,.fw-chip,.editor-key,.theme-toggle):not(:disabled):hover,
.header-disclosure summary:hover {
  background-color: var(--soft-hover);
}
:is(.button-soft,.fw-outline,.editor-key.button-soft,.editor-key.fw-outline):not(:disabled):active { background: var(--soft); }
.editor-key.editor-key:not(.fw-primary):is([aria-pressed=true],[aria-expanded=true],:has(input:checked)),
.fw-button[aria-pressed=true]:not(.fw-primary) {
  background: var(--editor-active,var(--success-bg)); color: var(--editor-active-ink,var(--success-ink));
  border-color: var(--editor-line,var(--success-border));
}
:is(.button-dark,.fw-primary), .editor-key.editor-key:is(.button-dark,.fw-primary),
.fw-commandbar :is(.button-dark,.fw-primary),
.fw-commandbar .editor-key.editor-key:is(.button-dark,.fw-primary) {
  --key-face: var(--action); --key-text: var(--on-action); --key-depth: var(--key-lip);
  padding-block: .4rem .47rem;
  gap: .48rem; color: var(--key-text); background: var(--key-face); border-color: transparent;
  box-shadow: inset 0 -2px var(--key-depth); font-weight: 700;
}
:is(.button-dark,.fw-primary,.fd-caution).editor-key.editor-key { flex-direction: row; }
:is(.button-dark,.fw-primary,.fd-caution) > .icon:first-of-type {
  color: var(--key-mark); background: var(--key-ring); width: 1.72rem; height: 1.72rem;
  padding: .28rem; border-radius: 50%; order: -1;
}
.editor-key:is(.button-dark,.fw-primary) .editor-glyph [data-ink="accent"] { color: inherit; }
:is(.button-dark,.fw-primary):not(:disabled):hover,
.editor-key.editor-key:is(.button-dark,.fw-primary):not(:disabled):hover,
.fw-commandbar :is(.button-dark,.fw-primary):not(:disabled):hover,
.fw-commandbar .editor-key.editor-key:is(.button-dark,.fw-primary):not(:disabled):hover {
  background: var(--action-hover); border-color: transparent;
}
:is(.button-dark,.fw-primary):not(:disabled):active,
.editor-key.editor-key:is(.button-dark,.fw-primary):not(:disabled):active,
.fw-commandbar :is(.button-dark,.fw-primary):not(:disabled):active,
.fw-commandbar .editor-key.editor-key:is(.button-dark,.fw-primary):not(:disabled):active {
  background: var(--key-down); box-shadow: inset 0 1px var(--key-depth);
}
:is(.button-dark,.fw-primary):disabled, .editor-key.editor-key:is(.button-dark,.fw-primary):disabled,
.fw-commandbar .editor-key.editor-key:is(.button-dark,.fw-primary):disabled {
  background: var(--key-disabled); color: var(--key-disabled-ink); opacity: 1; box-shadow: none;
}
:is(.button-dark,.fw-primary):disabled > .icon:first-of-type {
  color: inherit; background: transparent;
}
.fd-caution {
  padding-block: .4rem .47rem; color: var(--error-ink); background: var(--error-bg); border-color: var(--error-border);
}
.fd-caution:not(:disabled):hover { background: var(--error-bg); border-color: var(--error-ink); }
.fd-caution > .icon:first-of-type { color: var(--error-bg); background: var(--error-ink); }
:is(.button,.fw-button,.editor-key,.theme-toggle,.header-disclosure summary):focus-visible {
  outline: 3px solid var(--focus-color); outline-offset: 2px;
}
:is(.header-disclosure[open] summary,.catalogue-filters .button[aria-pressed=true],.kb-presets .button[aria-pressed=true],.job-recipes .button[aria-pressed=true]) {
  color: var(--success-ink); background: var(--success-bg); border-color: var(--success-border);
  box-shadow: inset 0 -2px var(--success-border);
}
:is(.catalogue-filters .button[aria-pressed=true],.kb-presets .button[aria-pressed=true],.job-recipes .button[aria-pressed=true]):hover {
  background: var(--success-bg);
}

/* Search, catalog, instructions, and utilitarian pages share the same surfaces. */
.header-search input, .catalogue-search input, .studio-inline input,
.workbench select, .workbench input[type=number], .workbench textarea, .lab-field input, .fw-field :is(input,select,textarea) {
  min-height: 44px;
  border-radius: var(--field-radius); color: var(--ink); background-color: var(--field); border-color: var(--field-border);
}
:is(.header-search input,.catalogue-search input,.workbench textarea,.lab-field input,.fw-field input)::placeholder {
  color: var(--muted); opacity: 1;
}
.header-search input { border-radius: var(--key-radius); }
.header-search button { border-radius: .83rem; background-color: var(--soft); }
.header-search button:hover { background-color: var(--soft-hover); }
.header-resume-short { display: none; }
.header-popout, .fw-project-popover, .fw-editor-inspector, .fw-context-menu {
  border-radius: var(--key-radius); box-shadow: var(--ui-shadow);
}
.header-popout a, .fw-context-menu button { border-radius: .68rem; }
:is(select:not([multiple]):not([size]),.fw-field select) {
  appearance: none; padding-inline-end: 1.8rem;
  background-image: var(--select-chevron); background-position: right .55rem center;
  background-size: .9rem; background-repeat: no-repeat;
}
[data-theme=dark] .text-sort select { background-image: var(--select-chevron); }
:is(.lab-field,.fw-field) select { min-width: 0; }
:is(input[type=range],input[type=checkbox],progress), [data-theme=dark] :is(input[type=range],input[type=checkbox],progress) {
  accent-color: var(--signal);
}
.home-page .section-head { grid-template-columns: minmax(0,1fr) auto; }
.home-intro-aside { justify-self: end; }
.home-intro-aside p { max-width: 27ch; }
.tool-tile, .catalogue-controls, .workbench, .fw-studio-dialog { border-radius: var(--surface-radius); }
.tile-content p, .faq-inner details p { font-size: 1rem; }
.tool-tile:is(:hover,:focus-within) { transform: none; border-color: var(--field-border); box-shadow: none; }
.tile-visual::before { border-radius: 46%; opacity: .28; }
.tile-visual::after { display: none; }
.tile-link:hover .tile-arrow { background: var(--action); color: var(--on-action); }
.tile-foot { color: var(--muted); font-size: .81rem; }
.workbench { box-shadow: 0 1px 0 #253b2a10; }
.workbench .drop-zone {
  background: var(--soft); border-color: var(--field-border); border-radius: var(--key-radius);
}
.workbench .drop-zone:is(:hover,.drag) { background: var(--soft-hover); border-color: var(--signal); }
.drop-zone:has(input:focus-visible) { outline-color: var(--focus-color); }
.drop-icon, .privacy-mark { border-radius: 50%; }
.tool-lede, .tool-guide ol, .tool-message:not(.is-error), .guide-note { color: var(--muted); }
.photo-card { background: var(--white); }
.photo-art { background: var(--soft); }
.file-action { min-width: 40px; border-radius: var(--field-radius); background: var(--soft); border-color: var(--line); }
.result-panel, .progress-box, .guide-note, .text-settings, .lab-editor-tools, .job-comparison img { border-radius: var(--key-radius); }
.result-panel, .progress-box { background: var(--success-bg); border-color: var(--success-border); }
.tool-banner-inner { min-height: 0; }
.privacy-section { background: #25372d; }
.privacy-section .section-label { color: #e2ecdf; }
.privacy-inner .workflow li { border-color: #5e7565; }
.faq-section { background: var(--soft); }
:root[data-theme="dark"] .faq-section { background: var(--soft); }
.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.footer-brand { background: transparent; }
.site-footer :focus-visible { outline-color: var(--focus-color); }

/* Studio controls take the same hierarchy; only the command list scrolls. */
.fw-page { --fw-accent: var(--signal); --fw-secondary: #424f8e; --fw-selection: #e6e9f6; --fw-selection-line: #707bad; }
.fw-photo { --fw-secondary: #355e3f; --fw-selection: #e2eddd; --fw-selection-line: #708e70; }
.fw-audio-page { --fw-secondary: #6f4a18; --fw-selection: #f8edce; --fw-selection-line: #aa8244; }
.fw-pdf-page { --fw-secondary: #853e31; --fw-selection: #f8e6dd; --fw-selection-line: #b47764; }
[data-theme=dark] .fw-page { --fw-secondary: #c3a4f2; --fw-selection: #352c43; --fw-selection-line: #a487ca; }
[data-theme=dark] .fw-photo { --fw-secondary: #bfda86; --fw-selection: #324638; --fw-selection-line: #84a582; }
[data-theme=dark] .fw-audio-page { --fw-secondary: #f4c26a; --fw-selection: #403421; --fw-selection-line: #caa773; }
[data-theme=dark] .fw-pdf-page { --fw-secondary: #f69c81; --fw-selection: #4a3631; --fw-selection-line: #c38573; }
.fw-studio-top h1 { font-size: 1.27rem; letter-spacing: -.019em; line-height: 1.16; }
.fw-home, .fw-drop-icon, .fw-empty-mark, .fw-dialog-mark { border-radius: var(--key-radius); }
.fw-home .fw-brand-mark { width: 1.63rem; height: 1.63rem; flex: 0 0 auto; }
.fw-workstation[data-focus] .fw-room > .fw-commandbar { gap: .3rem; padding-block: .18rem; }
.fw-commandbar .editor-strip { padding: 4px; }
.fw-commandbar .fw-command-tail { padding-inline: 3px; gap: .28rem; }
.fw-commandbar .editor-key.editor-key { min-block-size: 44px; padding-inline: .63rem; font-size: .9rem; }
.fw-commandbar .editor-key.editor-key.fw-primary { padding-inline: .45rem .8rem; }
.fw-commandbar .editor-key.editor-key.fw-primary > .icon { width: 1.7rem; height: 1.7rem; }
.fw-command-tail > .editor-key span { text-wrap: balance; }
.fw-command-short-label { display: none; }
.fw-mobile-actions {
  inline-size: min(31rem, calc(100% - 1.5rem)); max-inline-size: none;
  max-block-size: calc(100dvh - 2rem); overflow: auto; margin: auto; padding: 1rem;
  background: var(--fw-panel,var(--white)); color: var(--fw-ink,var(--ink));
  border: 1px solid var(--field-border); border-radius: var(--surface-radius); box-shadow: var(--ui-shadow);
}
.fw-mobile-actions::backdrop { background: #101b18b0; }
.fw-mobile-actions-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-block-end: .75rem; }
.fw-mobile-actions-head h2 { font-size: clamp(1.2rem,6vw,1.65rem); }
.fw-mobile-actions-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.fw-mobile-actions-list > .editor-key { flex-direction: row; justify-content: flex-start; text-align: start; min-inline-size: 0; padding: .5rem; }
.fw-mobile-actions-list > .fw-projects { grid-column: 1 / -1; }
.fw-mobile-actions-list .fw-projects .fw-project-popover {
  position: static; inline-size: auto; max-inline-size: none; min-inline-size: 0;
  box-shadow: none; margin-block-start: .45rem; max-block-size: none;
}
.fw-mobile-actions-list .fw-projects > summary { inline-size: 100%; justify-content: flex-start; }
.fw-format-check { display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: center; margin-block: .26rem .45rem; }
.fw-format-check:has(#fw-format-status:empty) { display: none; }
.fw-format-check p { font-size: .92rem; line-height: 1.35; }
.fw-format-check p[data-state="ready"] { color: var(--success-ink); font-weight: 700; }
.fw-format-check p[data-state="warning"] { color: var(--error-ink); font-weight: 700; }
.catalogue-tasks,.catalogue-task-match { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; margin-block-start: .55rem; }
.catalogue-task-match { padding: .25rem .6rem .25rem .52rem; background: var(--success-bg); color: var(--success-ink); border-radius: var(--field-radius); }
.catalogue-task-match > span { font-weight: 700; font-size: .92rem; }
.fd-task {
  min-block-size: 44px; display: inline-flex; gap: .38rem; align-items: center; padding-inline: .66rem;
  border: 1px solid var(--line); border-radius: var(--key-radius); font-size: .93rem; font-weight: 700;
  color: var(--ink); background: var(--soft); text-decoration: none;
}
.fd-task:hover { background: var(--soft-hover); text-decoration: underline; text-underline-offset: .2em; }
.fd-task:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.fd-task .icon { inline-size: 1.08rem; block-size: 1.08rem; }
.fw-modebar .editor-key.editor-key { border-radius: .84rem; }
.fw-studio-dialog { background-color: var(--fw-panel,var(--white)); }
.fw-draft-caption { border-color: var(--line); padding-inline: .65rem; }
.fw-draft-caption[data-state=error] { border-color: currentColor; }
.fd-legal { max-width: 51rem; }
.fd-sponsor {
  inline-size: min(100%, 46rem);
  margin: clamp(1.75rem, 4vw, 2.75rem) auto;
  padding: .9rem clamp(.9rem, 3vw, 1.35rem);
  border: 1px solid var(--field-border);
  border-radius: var(--surface-radius);
  background: var(--soft);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fd-sponsor-label { display: block; margin-block-end: .28rem; font-size: .875rem; color: var(--muted); }
.fd-sponsor-link { display: inline-block; min-block-size: 44px; padding-block: .5rem; font-weight: 750; }
.fd-sponsor .fd-sponsor-description { margin: 0; color: var(--muted); }
.footer-links [data-privacy-open] { padding: 0; border: 0; background: none; }
.footer-links [data-privacy-open]:hover { text-decoration: underline; text-underline-offset: .23em; }
.fd-privacy-notice {
  position: fixed; z-index: 30; inset-inline-end: .75rem; inset-block-end: calc(.75rem + env(safe-area-inset-bottom));
  inline-size: min(28rem,calc(100% - 1.5rem)); max-block-size: calc(100dvh - 1.5rem - env(safe-area-inset-bottom));
  overflow: auto; padding: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--field-border); border-radius: var(--surface-radius); box-shadow: var(--ui-shadow);
}
.fd-privacy-notice h2 { font-size: 1.18rem; margin: 0; }
.fd-privacy-notice p { font-size: 1rem; margin-block: .45rem .8rem; }
.fd-privacy-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.fd-privacy-actions .button { flex: 1 1 auto; }
.fd-legal .fd-legal-notice { background: var(--soft); border-inline-start: .2rem solid var(--signal); padding: .75rem 1rem; border-radius: .2rem var(--field-radius) var(--field-radius) .2rem; }
.fd-legal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fd-legal-list { padding-inline-start: 1.3rem; line-height: 1.6; color: var(--muted); }
.fd-legal-list li + li { margin-block-start: .6rem; }
.fd-legal-data { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; }
.fd-legal-data dt { font-weight: 700; }
.fd-legal-data dd { margin: 0; overflow-wrap: anywhere; }
.fd-contact-form { margin: 1.5rem 0 2rem; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--field-radius); }
.fd-contact-form fieldset { display: grid; gap: 1rem; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fd-contact-field { display: grid; gap: .4rem; font-weight: 700; }
.fd-contact-field input, .fd-contact-field textarea { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: .6rem .75rem; font: inherit; font-weight: 400; color: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: var(--field-radius); }
.fd-contact-field textarea { resize: vertical; }
.fd-contact-form button { justify-self: start; }
.fd-contact-form [data-contact-status] { margin-block-end: 0; }
.fd-storage-dialog {
  inline-size: min(35rem,calc(100% - 1.5rem)); max-inline-size: none;
  max-block-size: calc(100dvh - 1.5rem); overflow: auto; margin: auto; padding: clamp(.9rem,4vw,1.6rem);
  color: var(--ink); background-color: var(--white); border: 1px solid var(--field-border);
  border-radius: var(--surface-radius); box-shadow: var(--ui-shadow); font-family: var(--ui-type);
}
.fd-storage-dialog::backdrop { background: #101b18b0; }
.fd-storage-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.fd-storage-header h2 { font-size: clamp(1.4rem,5vw,1.85rem); }
.fd-storage-dialog section { border-block-start: 1px solid var(--line); margin-block-start: .75rem; padding-block-start: .75rem; }
.fd-storage-dialog section h3 { font-size: 1.1rem; }
.fd-storage-dialog p { font-size: .98rem; color: var(--muted); margin: .32rem 0; }
.fd-storage-dialog .fd-storage-state { font-weight: 700; color: var(--ink); }
.fd-storage-actions { margin-block: .55rem .25rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.fd-storage-confirm { margin-block-start: .6rem; padding: .55rem .7rem; border-radius: var(--field-radius); background: var(--soft); }
.fd-storage-check { display: flex; align-items: center; min-height: 44px; gap: .55rem; cursor: pointer; }
.fd-storage-check input { inline-size: 1.2rem; block-size: 1.2rem; flex: 0 0 auto; accent-color: var(--signal); }
.fd-storage-dialog .fd-storage-feedback { color: var(--support); font-weight: 700; }
.fd-storage-dialog .fd-storage-feedback:empty { margin: 0; }
.fw-dialog-actions .editor-key { flex-direction: row; }
.fw-dialog-actions { gap: .6rem; }
.fw-clip, .fw-audio-segment, .pd-page { border-radius: .52rem; }
.fw-time, .fw-linear-ruler, .fw-stage-label > span { font-variant-numeric: tabular-nums; }

@media(max-width:690px) {
  .home-page .section-head { grid-template-columns: minmax(0,1fr) clamp(6.05rem,26vw,9rem); }
  .home-intro-aside { justify-self: stretch; }
  .home-featured-desc { font-size: .94rem; }
  .tile-foot { font-size: .78rem; }
}
@media(max-width:670px) {
  .fw-studio-top, .fw-studio-top:has(.fw-space-modes) {
    display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: .16rem .36rem;
  }
  .fw-studio-top h1 {
    grid-column: 2; grid-row: 1; position: static; width: auto; height: auto; margin: 0;
    clip-path: none; overflow: visible; white-space: normal; overflow-wrap: normal; font-size: clamp(1rem,4vw,1.18rem);
  }
  .fw-studio-top .fw-studio-utility, .fw-studio-top:has(.fw-space-modes) .fw-studio-utility { grid-area: 1 / 3; }
  .fw-studio-top .fw-space-modes { grid-area: 2 / 1 / 3 / 4; padding-block: .02rem .14rem; }
  .fw-studio-top .fw-chip { min-block-size: 44px; padding-inline: .55rem; }
  .fw-home { width: 44px; justify-content: center; }
  .fw-home > span, .fw-studio-top .fw-draft-caption > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0;
  }
  .fw-draft-caption { min-inline-size: 44px; justify-content: center; padding-inline: .42rem; }
}
@media(max-width:760px) {
  .header-inner.header-tools-layout { column-gap: .3rem; }
}
@media(max-width:660px) {
  .header-tools-layout { grid-template-columns: max-content max-content minmax(0,1fr) max-content max-content; }
  .header-tools-layout .brand-logo { width: clamp(4.5rem,19vw,7.4rem); max-width: none; }
}
@media(max-width:460px) {
  .header-tools-layout > .fd-language > summary { padding-inline: .42rem; }
  .header-tools-layout:has(.header-resume:not([hidden])) .fd-language-code { display: none; }
  .header-tools-layout .header-resume summary { max-inline-size: 5.2rem; overflow: hidden; text-overflow: ellipsis; }
  .header-tools-layout .header-resume summary::after { display: none; }
  .fw-studio-utility .fd-language > summary { padding-inline: .45rem; }
  .fw-studio-utility .fd-language-code { display: none; }
  .fw-studio-top h1 { overflow-wrap: anywhere; }
}
@media(max-width:620px) {
  .fw-workstation[data-focus] .fw-room > .fw-commandbar[data-mobile-commands] {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .32rem; min-inline-size: 0;
    padding: .28rem .38rem; overflow: visible;
  }
  .fw-commandbar[data-mobile-commands] :is(.fw-command-list,.fw-command-tail) {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .32rem;
    min-inline-size: 0; padding: 0; overflow: visible;
  }
  .fw-commandbar[data-mobile-commands] :is([data-compact-command],.fw-command-more).editor-key {
    min-inline-size: 44px; min-block-size: 50px; block-size: 50px; inline-size: 100%; padding: .24rem .14rem;
    gap: .1rem; flex-direction: column; justify-content: center; border-radius: .72rem;
  }
  .fw-commandbar[data-mobile-commands] .editor-key > .icon {
    inline-size: 1.24rem; block-size: 1.24rem; padding: .05rem;
  }
  .fw-commandbar[data-mobile-commands] .editor-key.fw-primary > .icon { padding: .18rem; }
  .fw-commandbar[data-mobile-commands] :is(.fw-command-short-label,.fw-command-more > span) {
    display: inline; font-size: .87rem; white-space: nowrap; line-height: 1.15;
  }
  .fw-commandbar[data-mobile-commands] .fw-command-full-label {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media(max-width:375px) {
  .header-resume-short { display: inline; }
  .header-resume-long { display: none; }
  .header-resume summary::after { display: none; }
  .header-tools-layout > .fd-language .fd-language-code { display: none; }
  .header-tools-layout:has(.header-resume:not([hidden])) .header-search { grid-column: 1 / 4; }
  .header-tools-layout:has(.header-resume:not([hidden])) .header-resume { grid-column: 4 / -1; grid-row: 2; }
}
@media(max-width:490px) {
  .fw-new-project { inline-size: 44px; justify-content: center; padding-inline: .38rem; }
  .fw-new-project > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .fw-command-tail .fw-projects > summary.editor-key { padding: .35rem; width: 44px; min-width: 44px; }
  .fw-command-tail .fw-projects > summary span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .fw-commandbar .editor-key.editor-key { font-size: .88rem; }
  .fw-commandbar:not([data-mobile-commands]) .editor-key.editor-key.fw-primary { gap: .33rem; padding-inline: .36rem .6rem; }
  .fw-commandbar:not([data-mobile-commands]) .editor-key.editor-key.fw-primary > .icon { width: 1.52rem; height: 1.52rem; padding: .23rem; }
  .fw-command-tail > .editor-key span { max-width: 8.7ch; white-space: normal; }
}
@media (forced-colors:active) {
  :is(.button-dark,.fw-primary,.fd-caution), .editor-key.editor-key:is(.button-dark,.fw-primary) {
    border: 1px solid ButtonText; box-shadow: none;
  }
  :is(.button-dark,.fw-primary):disabled, .editor-key.editor-key:is(.button-dark,.fw-primary):disabled { border-color: GrayText; }
  :is(.button,.fw-button,.editor-key,.theme-toggle,.header-disclosure summary):focus-visible { outline-color: Highlight; }
}

/* The start page pairs the panorama with the four studio links. */
.home-page { --gap: clamp(1rem, 4.2vw, 2.75rem); --max: 1320px; }
.home-page .header-inner { width: min(var(--max), calc(100% - 2 * var(--gap))); min-height: 73px; }
[data-theme=dark] .home-page .site-header { background: #111915; }
.home-page .header-chapters { display: flex; align-items: center; gap: clamp(.8rem, 1.4vw, 1.4rem); }
.fd-home-jump { display: none; }
@media (min-width: 70rem) {
  .fd-home-jump {
    display: inline-grid; align-items: center; min-height: 44px; color: var(--muted);
    font-size: .9rem; text-decoration: none; white-space: nowrap;
  }
  .fd-home-jump:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
  .home-page .header-disclosure summary, .home-page .theme-toggle {
    background: transparent; border-color: transparent; box-shadow: none;
  }
  .home-page :is(.header-disclosure summary,.theme-toggle):hover,
  .home-page .header-disclosure[open] summary { background: var(--soft); border-color: var(--line); }
  .home-page .theme-toggle { min-width: 44px; padding: .45rem; }
  .home-page .theme-name { display: none; }
}
.home-page .tools-section { padding-block-start: clamp(.85rem, 1.6vw, 1.4rem); }
.fd-home-art {
  display: block; height: clamp(14rem, 26.4vw, 23.7rem); overflow: hidden;
  border-radius: var(--surface-radius); background: #1f231b;
}
.fd-home-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.fd-home-heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: .8rem 1.5rem; margin-block: clamp(1.2rem,2vw,1.7rem) 1.12rem;
}
.fd-home-heading h1 { font-size: clamp(1.9rem,3.2vw,2.9rem); line-height: 1.06; letter-spacing: -.04em; }
.fd-home-intent { color: var(--muted); max-width: 65ch; margin-block-start: .45rem; line-height: 1.45; }
.fd-home-catalogue-link {
  flex: none; min-height: 44px; display: inline-grid; align-items: center; padding: .35rem .9rem;
  border: 1px solid var(--field-border); border-radius: 999px; background: var(--soft);
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.fd-home-catalogue-link:hover { background: var(--soft-hover); }
.fd-quick-band {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.15rem;
  margin-block: clamp(1.25rem,2.4vw,1.9rem);
}
.fd-quick-band h2 { font-size: 1.25rem; line-height: 1.2; }
.fd-quick-band .catalogue-tasks { margin:0; align-items:stretch; }
.fd-quick-band .fd-task, .fd-quick-overflow summary {
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  padding: .35rem .78rem; font-size: .875rem; font-weight: 550; line-height: 1.3;
}
.fd-quick-band .fd-task:hover, .fd-quick-overflow summary:hover {
  background: var(--soft-hover); border-color: var(--field-border);
}
.fd-quick-band .fd-task .icon, .fd-quick-overflow summary .icon { color: var(--support); }
.fd-quick-overflow { position: relative; align-self: center; }
.fd-quick-overflow summary {
  display: flex; gap: .32rem; align-items: center; min-block-size: 44px;
  list-style: none; cursor: pointer;
}
.fd-quick-overflow summary::-webkit-details-marker { display:none; }
.fd-quick-overflow[open] summary .icon { transform: rotate(180deg); }
.fd-quick-popout { inset-inline: auto 0; inset-block-start: calc(100% + .5rem); }
.fd-quick-popout .fd-quick-popout-link { display:flex; align-items:center; gap:.5rem; }
.fd-catalogue { scroll-margin-block-start: 1rem; margin-block-start: clamp(1.5rem,3vw,2.5rem); }
.home-page .catalogue-controls { margin-block:.4rem .65rem; padding:0 0 .65rem; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.fd-catalogue-heading,.fd-shelf-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.25rem .6rem; }
.tool-shelf:has([data-shelf-controls]:not([hidden])) .fd-shelf-head { padding-inline-end: 6.3rem; min-height: 44px; }
.fd-catalogue-heading h2 { font-size:clamp(1.5rem,2.8vw,2.2rem); }
.fd-filter-toggle,.fd-shelf-all { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; padding:.3rem .65rem; border:1px solid var(--line); border-radius:.7rem; background:var(--white); color:var(--ink); font-size:.92rem; font-weight:700; }
.fd-filter-toggle .icon { width:1.05rem; height:1.05rem; }
.fd-filter-toggle[aria-expanded=true],.fd-shelf-all[aria-expanded=true] { border-color:var(--field-border); background:var(--soft); }
.fd-filter-toggle:hover,.fd-shelf-all:hover { text-decoration:underline; text-underline-offset:.16em; }
#fd-filter-panel { max-width:44rem; margin-block:.55rem; }
#fd-filter-panel label { display:block; font-weight:700; margin-block-end:.25rem; }
.home-page .catalogue-filters { margin-top:.34rem; }
.home-page .tool-shelf-title { padding-inline-end:0; font-size:clamp(1.12rem,1.65vw,1.42rem); }
.fd-shelf-all { background:transparent; border-color:transparent; color:var(--muted); }
.home-page .tool-grid { --shelf-gap:.82rem; }
.tool-grid[data-expanded] { grid-auto-flow:row; grid-auto-columns:unset; grid-template-columns:repeat(var(--shelf-slots),minmax(0,1fr)); overflow:visible; }
.home-page .tile-link { grid-template-columns:2.65rem minmax(0,1fr); grid-template-rows:1fr; align-items:start; gap:.68rem; padding:.92rem; }
.home-page .tile-visual { padding:0; display:grid; position:relative; min-height:0; width:2.65rem; height:2.65rem; border-radius:.72rem; }
.home-page .tile-visual::before,.home-page .tile-visual::after { display:none; }
.home-page .tile-figure .icon { width:1.55rem; height:1.55rem; transform:none; stroke-width:1.7; }
.home-page .tile-content { padding:0; align-self:stretch; }
.home-page .tile-content h3 { font-size:clamp(1rem,1.35vw,1.23rem); line-height:1.22; }
.home-page .tile-content p { font-size:.96rem; line-height:1.4; margin-block-start:.35rem; }
.home-page .tile-foot { padding-block-start:.65rem; color:var(--muted); font-size:.85rem; line-height:1.35; }
.home-page .tool-tile { border-radius:.85rem; }
.home-page .tool-tile:focus-within,.home-page .tool-tile:hover { border-color:var(--accent); }
.fd-search-key { position:absolute; inset-inline-end:3rem; top:50%; transform:translateY(-50%); pointer-events:none; border:1px solid var(--line); border-radius:.3rem; padding:.04rem .3rem; color:var(--muted); font:700 .77rem/1.55 var(--ui-type); background:var(--white); }
.header-search input { padding-inline-end:6.25rem; }
.tool-page .tool-banner-inner { padding-block:.85rem 1.12rem; }
.tool-page .tool-banner h1 { font-size:clamp(1.9rem,3.25vw,3rem); line-height:1.08; }
.tool-page .tool-banner .section-label { margin:.65rem 0 .35rem; }
.tool-page .tool-lede { max-width:67ch; font-size:1.02rem; margin-top:.43rem; }
.tool-page .tool-layout { padding-block-start:clamp(.85rem,2.1vw,1.65rem); }
.tool-page .banner-glyph { opacity:.45; inline-size:8rem; block-size:8rem; }
.lab-drop-active { outline:2px solid var(--focus-color); outline-offset:2px; border-radius:.5rem; }
.fd-stage-demo { display:none; }
.fw-stage:has(> .fw-empty:not([hidden])) {
  background-color:var(--paper);
  background-image:radial-gradient(color-mix(in srgb,var(--field-border) 32%,transparent) .7px,transparent .95px);
  background-size:14px 14px;
}
.fw-stage > .fw-empty:not([hidden]) {
  inline-size:min(27rem,calc(100% - 1.2rem)); padding:clamp(.8rem,2.8vw,1.65rem);
  background:var(--white); color:var(--ink); border:1px solid var(--line); border-radius:1.1rem;
}
.fw-stage > .fw-empty .fw-button { background:var(--action); color:var(--on-action); border-color:var(--key-lip); }
@media(max-width:620px){
  .fw-workstation[data-focus] { overflow-x:hidden; }
  /* The timeline keeps its own horizontal scroll. Do not make users scroll
     the entire application, or a second strip, just to find the audio tools. */
  .fw-audio-transport > .editor-strip {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%;
    max-width:100%; overflow:visible; gap:.25rem;
  }
  .fw-audio-transport > .editor-strip .editor-key { width:100%; min-width:0; }
  .fd-stage-demo { min-block-size:44px; display:block; margin-inline:auto; padding:.35rem .7rem; color:var(--support); font-weight:700; background:transparent; border:0; text-decoration:underline; text-underline-offset:.2em; }
  .fw-desk:not([data-inspector-open]):has(> .fw-stage > .fw-empty:not([hidden])) { grid-template-columns:minmax(0,1fr) 0; }
  .fw-desk:not([data-inspector-open]):has(> .fw-stage > .fw-empty:not([hidden])) > .fw-modebar { display:none; }
}
@media (max-width: 60rem) {
  .fd-quick-band { display: block; }
  .fd-quick-band h2 { margin-block-end: .45rem; }
  .fd-quick-band .catalogue-tasks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fd-quick-overflow { justify-self: start; }
  .fd-quick-popout { inset-inline: 0 auto; }
}
@media (max-width: 44rem) {
  .fd-home-art { height: auto; aspect-ratio: 834 / 428; border-radius: .85rem; }
  .fd-home-heading { display: block; margin-block: 1.15rem .95rem; }
  .fd-home-heading h1 { font-size: clamp(1.72rem, 8vw, 2.15rem); }
  .fd-home-intent { font-size: .94rem; }
  .fd-home-catalogue-link { display: none; }
  .fd-quick-band .catalogue-tasks { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fd-quick-band .fd-task, .fd-quick-overflow summary { padding-inline: .58rem; }
  .tool-page .banner-glyph,.fd-search-key { display:none; }
  .header-search input { padding-inline-end:3rem; }
}
@media(forced-colors:active){
  .fd-quick-band .fd-task,.fd-quick-overflow summary { background:Canvas; color:LinkText; border:1px solid ButtonText; }
}
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); white-space: nowrap; }
.brand strong { font-family: var(--ui-heading); font-size: clamp(1.25rem, 2.1vw, 1.83rem); letter-spacing: -.045em; }
.brand-mascot {
  display: inline-block; inline-size: 2.4rem; block-size: 2.45rem; flex: 0 0 auto;
  background: url("/assets/filedoer-otter-with-files.webp") 63% 0% / 245% no-repeat;
}
.fd-workflow .privacy-mark { width: 2.85rem; height: 2.85rem; margin: 0; flex: 0 0 auto; }
.fd-workflow .privacy-mark .icon { width: 1.3rem; height: 1.3rem; }
.fd-seasonal { margin: 1rem 0 1.45rem; padding: .85rem 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: .9rem; }
.fd-seasonal h2 { display:flex; align-items:center; gap:.45rem; font-size: 1.1rem; margin: 0 0 .5rem; }
.fd-seasonal h2 .icon { flex:0 0 1.2rem; color:var(--support); }
.fd-seasonal div { display:flex; flex-wrap:wrap; gap:.4rem .55rem; }
.fd-seasonal a {
  display:inline-flex; align-items:center; min-height:44px; padding:.34rem .68rem; color:var(--ink);
  background:var(--white); border:1px solid var(--field-border); border-radius:.6rem; font-weight:700; text-decoration:none;
}
.fd-seasonal a:hover { border-color:var(--focus-color); text-decoration:underline; }
.fd-legal h2[id] { scroll-margin-top: 5rem; }
@media (max-width: 660px) {
  .brand { gap: .3rem; }
  .brand-mascot { inline-size: 2rem; block-size: 2.06rem; }
  .home-page .header-inner { width: calc(100% - 2rem); }
}
@media (max-width: 385px) {
  .header-tools-layout .brand { min-inline-size: 2rem; justify-content: center; }
  .header-tools-layout .brand strong { display: none; }
}
