/* Free-tool components and content sections. The approved workspace layout follows below. */
.ft-page { --ft-warn: #a8620f; --ft-warn-bg: #fbf0df; --ft-fail: #b5483a; --ft-fail-bg: #f8e6e2; --ft-checker: repeating-conic-gradient(#ebe6de 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.ft-page .tv3-kicker .pill-free { margin-left: 4px; }

.ft-page .tv3-crumbs { padding-top: 14px; }
.ft-app { --ft-h: clamp(560px, calc(100svh - 76px - 52px), 820px); margin-top: 10px; scroll-margin-top: 86px; }
.ft-app-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: var(--ft-h); border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: 0 24px 50px -36px #35261955; overflow: clip; }
.ft-stage { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; padding: 18px 20px; background: var(--bg-2); }

.ft-drop { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: 22px; background: var(--card); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.ft-drop:hover, .ft-drop.is-over { border-color: var(--ink); box-shadow: var(--shadow); }
.ft-drop.is-over { background: var(--soft); }
.ft-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.ft-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ft-drop-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .2s; }
.ft-drop:hover .ft-drop-ic { transform: translateY(-2px); }
.ft-drop-ic svg { width: 26px; height: 26px; }
.ft-drop b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ft-drop small { max-width: 26em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ft-drop-btn { margin-top: 14px; pointer-events: none; }
.ft-drop-hint { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ink-3); font-size: 12px; }
.ft-drop-hint svg { width: 13px; height: 13px; }
.ft-samples { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.ft-samples span { margin-right: 4px; }
.ft-sample { padding: 2px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card); transition: border-color .2s, transform .2s; }
.ft-sample:hover { border-color: var(--ink); transform: translateY(-1px); }
.ft-sample img { width: 40px; height: 52px; object-fit: cover; border-radius: 8px; }
.ft-stage.has-file .ft-drop, .ft-stage.has-file .ft-samples { display: none; }
.ft-err { color: #b3261e; font-size: 13.5px; }
.ft-err:empty { display: none; }

.ft-view { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ft-view[hidden] { display: none; }
/* canvases are sized by fit() in free-tools.js to the space the box has */
.ft-canvas { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px; border-radius: 18px; background: #e6e0d7; overflow: hidden; }
.ft-canvas canvas { display: block; max-width: 100%; border-radius: 4px; box-shadow: 0 18px 40px -22px #2a1f1580; }
.is-checker canvas, .ft-canvas.is-checker canvas { background: var(--ft-checker); }

/* thumbnails of a batch */
.ft-strip { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.ft-thumb { position: relative; flex: none; }
.ft-thumb > button:first-child { display: block; width: 58px; height: 58px; padding: 2px; border: 1.5px solid transparent; border-radius: 12px; background: var(--card); }
.ft-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.ft-thumb.is-on > button:first-child { border-color: var(--ink); }
.ft-thumb .ft-x { position: absolute; top: -5px; right: -5px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; }
.ft-thumb:hover .ft-x, .ft-thumb:focus-within .ft-x { display: grid; }
.ft-x svg { width: 12px; height: 12px; }
.ft-thumb i { position: absolute; left: 5px; bottom: 5px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--ft-warn); }
.ft-add { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); }
.ft-add:hover { border-color: var(--ink); color: var(--ink); }
.ft-add svg { width: 20px; height: 20px; }

/* the panel */
.ft-panel { display: flex; flex-direction: column; gap: 11px; min-height: 0; padding: 18px 20px 0; border-left: 1px solid var(--line); background: var(--card); overflow-y: auto; scrollbar-width: thin; }
.ft-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ft-field legend, .ft-lab, .ft-range label, .ft-select > span { display: block; margin-bottom: 7px; padding: 0; color: var(--ink-2); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ft-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ft-preset input, .ft-seg input, .ft-swatches input[type=radio], .ft-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ft-preset span { display: block; height: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ft-preset b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ft-preset em { color: var(--ink-2); font-style: normal; font-weight: 500; }
.ft-preset small { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.35; }
.ft-preset span:hover { border-color: var(--line-2); background: var(--soft); }
.ft-preset input:checked + span { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.ft-preset input:focus-visible + span, .ft-seg input:focus-visible + span, .ft-chips input:focus-visible + span, .ft-swatches input:focus-visible + .ft-sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.ft-custom { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.ft-custom[hidden] { display: none; }
.ft-custom label { flex: 1; }
.ft-custom span { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 11.5px; }
.ft-custom input, .ft-select select { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); font: 500 14px var(--font); }
.ft-custom i { padding-bottom: 10px; color: var(--ink-3); font-style: normal; }
.ft-custom small { padding-bottom: 11px; color: var(--ink-3); font-size: 12px; }

.ft-seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.ft-seg label { position: relative; }
.ft-seg span { display: block; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ft-seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px #15141322; }

.ft-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ft-swatches label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ft-swatches small { color: var(--ink-2); font-size: 11.5px; text-align: center; line-height: 1.25; }
.ft-sw { position: relative; display: block; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--c, #fff); overflow: hidden; transition: box-shadow .15s; }
.ft-swatches input:checked + .ft-sw { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.ft-sw.is-clear { background: var(--ft-checker); background-size: 10px 10px; }
.ft-sw.is-edge { background: linear-gradient(135deg, var(--c, #ddd6cc) 50%, #fff 50%); }
.ft-sw.is-pick { background: conic-gradient(#e0524d, #e7c04f, #6fbf73, #4e9fd6, #9b6fd6, #e0524d); }
.ft-sw.is-pick input { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); padding: 0; border: 0; opacity: 0; cursor: pointer; }
.ft-sw.is-amz { display: grid; place-items: center; background: #fff; }
.ft-sw.is-amz i { width: 60%; height: 60%; border: 1.5px solid var(--ink); border-radius: 3px; }
.ft-swatches input:disabled ~ * { opacity: .4; cursor: not-allowed; }
.ft-field.is-off { opacity: .45; pointer-events: none; }
.ft-inline { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
.ft-inline > .ft-lab { margin: 0; }
.ft-inline .ft-seg { justify-self: start; }

.ft-range label { display: flex; justify-content: space-between; }
.ft-range output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ft-range input { width: 100%; accent-color: var(--ink); }
.ft-toggle { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.ft-fit-row { align-items: end; }
.ft-fit-row .ft-toggle { padding-bottom: 2px; }
.ft-toggle input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ink); }
.ft-toggle b { display: block; font-size: 13.5px; font-weight: 600; }
.ft-toggle small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.ft-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ft-select select { appearance: none; padding-right: 30px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2357534d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 15px; cursor: pointer; }

.ft-out:has(p:empty):has(.ft-notes:empty) { display: none; }
.ft-out { padding-top: 10px; border-top: 1px solid var(--line); }
.ft-out p { font-size: 13.5px; font-weight: 600; }
.ft-notes { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ft-notes li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.ft-notes svg { width: 15px; height: 15px; margin-top: 2px; color: var(--ink-3); }
.ft-notes .is-warn svg { color: var(--ft-warn); }
.ft-notes a, .ft-results a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.ft-actions { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 8px; margin: auto -20px 0; padding: 10px 20px 16px; background: linear-gradient(#fff0, var(--card) 14px); }
.ft-actions[hidden] { display: none; }
.ft-actions .btn { width: 100%; }
.ft-actions .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* checker */
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chips label { position: relative; }
.ft-chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ft-chips span:hover { border-color: var(--ink); color: var(--ink); }
.ft-chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.ft-score { padding: 16px; border-radius: 16px; background: var(--soft); }
.ft-score b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ft-score small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.ft-score.is-pass { background: var(--new-bg); }
.ft-score.is-warn { background: var(--ft-warn-bg); }
.ft-score.is-fail { background: var(--ft-fail-bg); }
.ft-results { margin: 0; padding: 0; list-style: none; }
.ft-results li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ft-results li:first-child { border-top: 0; padding-top: 0; }
.ft-results .ft-st { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); }
.ft-results .ft-st svg { width: 12px; height: 12px; }
.ft-results .is-pass .ft-st { background: var(--new-bg); color: var(--new); }
.ft-results .is-warn .ft-st { background: var(--ft-warn-bg); color: var(--ft-warn); }
.ft-results .is-fail .ft-st { background: var(--ft-fail-bg); color: var(--ft-fail); }
.ft-results b { display: block; font-size: 13.5px; font-weight: 600; }
.ft-results b em { margin-left: 4px; color: var(--ink-3); font-style: normal; font-weight: 500; }
.ft-results small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.ft-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--ink-2); font-size: 12.5px; }
.ft-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ft-legend input { accent-color: var(--ink); }
.ft-legend .t-up-change { margin-left: auto; font-size: 12.5px; }

/* background remover */
.ft-status p { display: flex; gap: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.ft-status p svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.ft-bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ft-bar i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--ink); transition: width .25s; }
.ft-bar.is-busy i { width: 30%; animation: ft-slide 1.1s ease-in-out infinite; }
@keyframes ft-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.ft-compare { position: relative; display: inline-block; max-width: 100%; line-height: 0; }

.ft-cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ft-cmp-after canvas { width: 100%; height: 100%; max-height: none; box-shadow: none; border-radius: 4px; }
.ft-compare.is-single .ft-cmp-after { clip-path: none; }
.ft-compare.is-single .ft-cmp-line, .ft-compare.is-single .ft-cmp-tag, .ft-compare:not(.is-done) .ft-cmp-line, .ft-compare:not(.is-done) .ft-cmp-tag, .ft-compare:not(.is-done) .ft-cmp-after { display: none; }
.ft-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #15141322; pointer-events: none; }
.ft-cmp-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23151413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 6px 16px -6px #15141380; transform: translate(-50%, -50%); }
.ft-cmp-tag { position: absolute; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(21, 20, 19, .72); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.5; pointer-events: none; }
.ft-cmp-tag.is-l { left: 12px; }
.ft-cmp-tag.is-r { right: 12px; }
.ft-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ft-working { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #e6e0d7b3; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-align: center; }
.ft-working[hidden] { display: none; }
.ft-working b { max-width: 22em; padding: 0 16px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.ft-spin { width: 34px; height: 34px; border: 3px solid #15141322; border-top-color: var(--ink); border-radius: 50%; animation: ft-spin .8s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ft-spin, .ft-bar.is-busy i { animation-duration: 3s; } }

/* content sections */
.ft-table-wrap { border: 1px solid var(--line); border-radius: 24px; background: var(--card); overflow-x: auto; }
.ft-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.ft-table th, .ft-table td { padding: 16px 18px; text-align: left; vertical-align: top; }
.ft-table thead th { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ft-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.ft-table tbody th { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ft-table td { color: var(--ink-2); }
.ft-table td b { color: var(--ink); font-weight: 600; }
.ft-src a { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--ink-2); font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ft-src a:hover { color: var(--ink); }
.ft-src svg { width: 12px; height: 12px; }
.ft-table-note { max-width: 62em; margin-top: 14px; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }

.ft-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ft-mode { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.ft-mode h3 { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ft-mode p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.ft-mode-pic { display: grid; place-items: center; height: 270px; border-radius: 18px; background: var(--bg-2); }
.ft-mode-frame { position: relative; display: grid; place-items: center; width: 168px; height: 168px; background: #fff; }
.ft-mode-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1.5px solid var(--ink); pointer-events: none; }
.ft-mode-photo { position: relative; display: grid; place-items: center; width: 126px; height: 168px; background: linear-gradient(160deg, #cdbfae, #a99580); }
.ft-mode-photo i { width: 54px; height: 76px; border-radius: 12px 12px 18px 18px; background: #3f5a46; box-shadow: 0 10px 18px -8px #0006; }
.is-fill .ft-mode-frame { overflow: visible; background: none; }
.is-fill .ft-mode-photo { position: absolute; top: 50%; left: 50%; width: 168px; height: 224px; transform: translate(-50%, -50%); }
.is-fill .ft-mode-photo::before, .is-fill .ft-mode-photo::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; background: repeating-linear-gradient(-45deg, #f7f4efd9 0 5px, #f7f4ef99 5px 10px); }
.is-fill .ft-mode-photo::before { top: 0; }
.is-fill .ft-mode-photo::after { bottom: 0; }
.ft-modes-note { display: flex; gap: 10px; margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.ft-modes-note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

.ft-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.ft-tips .tv3-tips-group + .tv3-tips-group { margin-top: 0; }
.ft-tiplist { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-2); }
.ft-tiplist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.ft-tiplist .tv3-tip-mark { position: static; box-shadow: none; border: 1px solid var(--line-2); }
.ft-tiplist h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.ft-tiplist p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

.ft-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.ft-sub ~ .ft-sub { margin-top: 28px; }
.ft-related-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-rel-ic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.ft-rel-ic svg { width: 26px; height: 26px; }
.ft-related-free b { display: flex; align-items: center; gap: 6px; }
.ft-page .tv3-who.ft-who-8 h3 { margin-top: 16px; }
.ft-page .tv3-related-sec .tv3-head p.tv3-display { max-width: none; color: var(--ink); font-size: clamp(28px, 3vw, 40px); }

@media (max-width: 1080px) {
  .ft-app-in { grid-template-columns: minmax(0, 1fr) 330px; }
  .ft-panel { padding: 18px; }
  .ft-modes, .ft-tips { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ft-app { --ft-h: auto; margin-top: 4px; }
  .ft-app-in { grid-template-columns: 1fr; height: auto; border-radius: 22px; }
  .ft-panel { overflow: visible; border-left: 0; border-top: 1px solid var(--line); padding: 16px 16px 0; }
  .ft-stage { padding: 14px 12px 12px; }
  .ft-hero h1 { font-size: 30px; }
  .ft-drop { flex: none; min-height: 280px; padding: 24px 16px; }
  .ft-drop b { font-size: 18px; }
  .ft-canvas { flex: none; padding: 10px; }
  .ft-actions { bottom: 0; margin: 0 -16px; padding: 10px 16px 14px; box-shadow: 0 -8px 18px -16px #15141388; background: var(--card); }
}
@media (max-width: 760px) {
  .ft-related-free { grid-template-columns: 1fr; }
  .ft-table-wrap { border: 0; background: none; overflow: visible; }
  .ft-table { min-width: 0; }
  .ft-table thead { display: none; }
  .ft-table, .ft-table tbody, .ft-table tr, .ft-table th, .ft-table td { display: block; }
  .ft-table tr { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
  .ft-table tbody tr + tr > * { border-top: 0; }
  .ft-table th, .ft-table td { padding: 0; }
  .ft-table tbody th { margin-bottom: 8px; font-size: 17px; }
  .ft-table td + td { margin-top: 10px; }
  .ft-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .ft-mode { padding: 18px; }
  .ft-mode-pic { height: 190px; }
  .ft-presets small { font-size: 11px; }
}

/* Approved workspace: one viewport, full-height settings, shared action bar. */
.ft-page { --ft-panel: 360px; }
.ft-fold { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: calc(100svh - 76px); min-height: 560px; padding-bottom: 16px; }
.ft-page .tv3-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px 0; }
.ft-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 16px 20px; text-align: left; }
.ft-heading-copy { min-width: 0; }
.ft-page-heading h1 { max-width: 940px; margin: 0; font-size: clamp(26px, 2.45vw, 34px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.ft-intro { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.ft-page-heading .tv3-proof { flex: none; display: grid; margin: 0; gap: 5px; }
.ft-page-heading .tv3-proof li { font-size: 11.5px; }
.ft-page-heading .tv3-proof svg { width: 13px; height: 13px; }
.ft-switcher { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ft-switcher a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; transition: background .18s, border-color .18s, color .18s; }
.ft-switcher svg { width: 17px; height: 17px; }
.ft-switcher a:hover { background: var(--bg-2); color: var(--ink); }
.ft-switcher a[aria-current] { border-color: var(--line-2); background: var(--soft); color: var(--ink); box-shadow: 0 1px 3px #35261905; }
.ft-page .ft-app { display: grid; grid-template-rows: 56px minmax(0, 1fr); min-height: 0; margin-top: 0; scroll-margin-top: 90px; border: 1px solid var(--line-2); border-radius: 22px; overflow: clip; background: var(--card); box-shadow: 0 8px 32px -18px #35261928; }
.ft-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 0; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ft-toolbar > span { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; }
.ft-toolbar svg { width: 16px; height: 16px; }
.ft-toolbar > .ft-private { gap: 6px; color: var(--ink-2); font-size: 10.5px; font-weight: 400; }
.ft-private svg { width: 12px; height: 12px; }
.ft-page .ft-app-in { grid-template-columns: minmax(0, 1fr) var(--ft-panel); grid-template-rows: minmax(0, 1fr) auto; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.ft-page .ft-stage { grid-column: 1; grid-row: 1; }
.ft-page .ft-panel { grid-column: 2; grid-row: 1 / 3; }
.ft-actionbar { grid-column: 1; grid-row: 2; }
.ft-page .ft-stage { container: ft-stage / size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; padding: 24px; background: #f2efe9; }
.ft-example { grid-column: 1; grid-row: 1 / 3; align-self: center; min-width: 0; width: min(100%, 340px, calc(100cqh - 65px)); margin: 0 auto; }
.ft-example-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--ink-2); font-size: 10.5px; }
.ft-example-label > span { padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); font-size: 9px; }
.ft-demo-photo { position: relative; width: 100%; aspect-ratio: 1; border: 1px solid #ddd7ce; border-radius: 13px; background: var(--ft-checker); background-size: 14px 14px; overflow: hidden; box-shadow: 0 7px 16px -12px #35261955; }
.ft-demo-original, .ft-demo-cutout { position: absolute; inset: 0; }
.ft-demo-photo img { width: 100%; height: 100%; object-fit: cover; }
.ft-demo-cutout { clip-path: inset(0 0 0 var(--split)); background: var(--ft-checker); background-size: 14px 14px; }
.ft-demo-line { position: absolute; inset-block: 0; left: var(--split); width: 1.5px; background: #fff; box-shadow: 0 0 0 1px #15141311; }
.ft-demo-line svg { position: absolute; top: 50%; left: 50%; width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px #15141322; transform: translate(-50%, -50%); }
.ft-demo-tag { position: absolute; bottom: 11px; padding: 4px 9px; border-radius: 6px; font-size: 9px; line-height: 1.5; pointer-events: none; }
.ft-demo-tag.is-before { left: 11px; background: #15141399; color: #fff; }
.ft-demo-tag.is-after { right: 11px; background: #fffffff0; color: var(--ink); }
.ft-demo-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ft-demo-compare:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.ft-example figcaption { margin-top: 11px; color: var(--ink-2); font-size: 10.5px; text-align: center; }
.ft-demo-frame { position: absolute; inset: 26px 30px 43px; background: #fff; border: 1px solid var(--line-2); }
.ft-demo-resizer .ft-demo-frame { padding: 12px 28px; }
.ft-demo-resizer .ft-demo-frame img { object-fit: contain; }
.ft-frame-corner { position: absolute; inset: -5px; border: 1px solid var(--ink-3); }
.ft-frame-corner::before, .ft-frame-corner::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid var(--ink-2); background: #fff; }
.ft-frame-corner::before { left: -3px; top: -3px; }
.ft-frame-corner::after { right: -3px; bottom: -3px; }
.ft-demo-checker .ft-frame-corner { inset: 14% 10% 12%; border: 1px dashed var(--new); background: #1f6b4f06; }
.ft-demo-checker .ft-frame-corner::before, .ft-demo-checker .ft-frame-corner::after { border-color: var(--new); }
.ft-demo-meta { position: absolute; inset-inline: 0; bottom: 13px; color: var(--ink-2); font-size: 10px; text-align: center; letter-spacing: .02em; }
.ft-page .ft-drop { grid-column: 2; grid-row: 1; align-self: stretch; padding: 15px 0 0; border: 0; border-radius: 12px; background: transparent; gap: 6px; }
.ft-page .ft-drop:hover { box-shadow: none; }
.ft-page .ft-drop.is-over { outline: 1px dashed var(--ink-2); outline-offset: 8px; background: #ffffff70; }
.ft-page .ft-drop-ic { width: 48px; height: 48px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 15px; background: #ffffffb3; color: var(--ink); box-shadow: 0 2px 4px #35261904; }
.ft-page .ft-drop-ic svg { width: 22px; height: 22px; }
.ft-page .ft-drop b { max-width: 200px; font-size: 22px; font-weight: 500; line-height: 1.15; text-wrap: balance; }
.ft-page .ft-drop small { max-width: 200px; margin-top: 3px; font-size: 12px; line-height: 1.6; }
.ft-page .ft-drop-btn { gap: 8px; height: 45px; margin-top: 15px; padding-inline: 25px; font-size: 12.5px; }
.ft-page .ft-drop-hint { margin-top: 7px; font-size: 10px; }
.ft-page .ft-drop-hint svg { display: none; }
.ft-page .ft-samples { grid-column: 2; grid-row: 2; flex-wrap: wrap; gap: 7px; padding-bottom: 15px; font-size: 10px; }
.ft-page .ft-samples > span { flex-basis: 100%; margin-bottom: 2px; text-align: center; }
.ft-page .ft-sample { border-radius: 9px; padding: 3px; }
.ft-page .ft-sample img { width: 34px; height: 39px; border-radius: 6px; }
.ft-page .ft-sample[disabled] { opacity: .45; cursor: wait; }
.ft-page .ft-err { grid-column: 1 / -1; font-size: 12px; }
.ft-page .ft-stage.has-file { display: flex; padding: 18px; }
.ft-page .ft-stage.has-file .ft-example { display: none; }
.ft-page .ft-canvas { background: #e9e4dc; border: 1px solid #dfd9cf; border-radius: 11px; }
.ft-page .ft-legend { min-height: 24px; font-size: 11px; }
.ft-page .ft-legend .t-up-change { font-size: 11px; }
.ft-page .ft-panel { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0; overflow: hidden; }
.ft-settings { display: flex; flex: 1; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; padding: 22px 24px 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ft-settings > * { flex-shrink: 0; }
.ft-panel-head h2 { font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.ft-panel-head p { margin-top: 5px; color: var(--ink-2); font-size: 12px; }
.ft-page .ft-field legend, .ft-page .ft-lab, .ft-page .ft-range label, .ft-page .ft-select > span { margin-bottom: 9px; color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ft-page [data-ft=remover] .ft-swatches { grid-template-columns: 1fr 1fr; gap: 8px; }
.ft-page [data-ft=remover] .ft-swatches label { flex-direction: row; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s; }
.ft-page [data-ft=remover] .ft-swatches label:has(> input:checked) { border-color: var(--ink); background: #f7f5f1; box-shadow: 0 0 0 .5px var(--ink); }
.ft-page [data-ft=remover] .ft-swatches small { font-size: 12px; text-align: left; }
.ft-page [data-ft=remover] .ft-sw { flex: none; width: 24px; height: 24px; border-radius: 6px; }
.ft-page [data-ft=remover] .ft-swatches input:checked + .ft-sw { box-shadow: none; }
.ft-page .ft-inline { grid-template-columns: 70px minmax(0, 1fr); }
.ft-page .ft-inline > .ft-lab { margin-bottom: 0; }
.ft-page .ft-seg { border-radius: 9px; background: var(--soft); }
.ft-page .ft-seg span { padding: 6px 15px; border-radius: 6px; font-size: 12px; }
.ft-page .ft-status { order: 4; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #faf9f6; }
.ft-page .ft-status p { font-size: 11.5px; line-height: 1.55; }
.ft-page .ft-status p svg { width: 12px; height: 12px; }
.ft-page .ft-out { order: 5; padding-top: 12px; }
.ft-page .ft-out p { font-size: 11px; font-weight: 500; }
.ft-page .ft-notes li { grid-template-columns: 13px 1fr; gap: 7px; font-size: 10px; }
.ft-page .ft-notes svg { width: 12px; height: 12px; }
.ft-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 15px 24px; border-top: 1px solid var(--line); background: #fff; }
.ft-action-info { min-width: 0; color: var(--ink-2); font-size: 11px; }
.ft-action-info > span { display: flex; align-items: center; gap: 7px; }
.ft-action-info svg { width: 13px; height: 13px; }
.ft-action-info small { display: block; margin-top: 3px; padding-left: 20px; color: var(--ink-3); font-size: 10px; }
.ft-page .ft-actions { position: static; display: flex; align-items: center; flex: none; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; }
.ft-page .ft-actions .btn { width: auto; min-width: 150px; min-height: 42px; height: auto; padding: 11px 20px; font-size: 13px; }
.ft-page .ft-actions .btn-ghost { border-color: var(--line-2); color: var(--ink-2); font-size: 12px; }
.ft-page .ft-actions .btn-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-page .ft-actions .btn[disabled] { opacity: 1; background: var(--soft); color: #8b867e; }
.ft-page .ft-actions .btn-ghost[disabled] { background: transparent; }
.ft-page .tv3-steps { margin-top: 22px; padding-block: 21px; border-top: 0; }
.ft-page .tv3-steps > div > span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); font-size: 11px; letter-spacing: 0; }
.ft-page .tv3-steps > div { gap: 13px; }
.ft-page .tv3-steps b { font-size: 12px; font-weight: 500; }
.ft-page .tv3-steps small { max-width: 240px; font-size: 10.5px; }
.ft-context { max-width: 790px; padding-block: 24px 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; text-align: center; }
.ft-page .tv3-jump { margin-top: 24px; }
.ft-page .ft-presets { gap: 5px; }
.ft-advanced { border-block: 1px solid var(--line); }
.ft-advanced summary { display: flex; align-items: center; justify-content: space-between; min-height: 37px; list-style: none; cursor: pointer; color: var(--ink-2); font-size: 11px; }
.ft-advanced summary::-webkit-details-marker { display: none; }
.ft-advanced summary svg { width: 13px; height: 13px; transition: transform .15s; }
.ft-advanced[open] summary svg { transform: rotate(180deg); }
.ft-advanced > div { display: grid; gap: 16px; padding-block: 4px 17px; }
.ft-page .ft-preset span { padding: 3px 9px; border-radius: 8px; }
.ft-page .ft-preset b { font-size: 12px; line-height: 1.25; }
.ft-page .ft-preset small { font-size: 10px; line-height: 1.2; }
.ft-page [data-ft=resizer] .ft-settings { gap: 12px; }
.ft-page [data-ft=resizer] .ft-panel-head { display: none; }
.ft-page [data-ft=resizer] .ft-panel-head { margin-bottom: 2px; }
.ft-page .ft-select select, .ft-page .ft-custom input { height: 36px; border-radius: 8px; font-size: 12px; }
.ft-page .ft-toggle b { font-size: 11px; }
.ft-page .ft-toggle small { font-size: 9px; }
.ft-page .ft-range output { font-size: 10px; }
.ft-page .ft-chips { gap: 6px; }
.ft-page .ft-chips span { height: 34px; padding-inline: 12px; font-size: 12px; }
.ft-page .ft-score { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f5f1; }
.ft-page .ft-score b { font-size: 13px; font-weight: 500; }
.ft-page .ft-score small { margin-top: 5px; font-size: 11px; }
.ft-page .ft-score.is-pass { background: var(--new-bg); }
.ft-page .ft-score.is-warn { background: var(--ft-warn-bg); }
.ft-page .ft-score.is-fail { background: var(--ft-fail-bg); }
.ft-page .ft-results li { padding-block: 10px; gap: 8px; }
.ft-page .ft-results b { font-size: 12px; font-weight: 500; }
.ft-page .ft-results small { font-size: 11.5px; }
.ft-page .ft-results .ft-st { width: 18px; height: 18px; }
.ft-page [data-ft=checker]:has(.has-file) .ft-panel-head { display: none; }
.ft-page [data-ft=checker] .ft-field, .ft-page [data-ft=checker] .ft-score { flex: none; }
.ft-page [data-ft=checker] .ft-results { flex: none; }
.ft-page .ft-stage.has-file .ft-samples, .ft-page .ft-stage.has-file .ft-drop { display: none; }
/* Keep the batch rail beside the preview so it can use the full available height. */
.ft-page [data-ft=resizer] .ft-view { display: grid; grid-template-columns: 70px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; }
.ft-page [data-ft=resizer] .ft-strip { grid-column: 1; grid-row: 1; flex-direction: column; align-items: center; min-height: 0; padding: 6px; overflow-x: hidden; overflow-y: auto; }
.ft-page [data-ft=resizer] .ft-canvas { grid-column: 2; grid-row: 1; }
@container ft-stage (max-height: 360px) {
  .ft-example-label { margin-bottom: 7px; }
  .ft-example figcaption { margin-top: 7px; font-size: 10px; }
  .ft-page .ft-drop-ic { width: 38px; height: 38px; margin-bottom: 5px; }
  .ft-page .ft-drop b { font-size: 21px; }
  .ft-page .ft-drop small { font-size: 11.5px; }
  .ft-page .ft-drop-btn { height: 41px; margin-top: 10px; }
  .ft-page .ft-samples { padding-bottom: 0; }
  .ft-page .ft-samples > span { flex-basis: auto; }
  .ft-page .ft-sample img { width: 29px; height: 34px; }
}
@media (min-width: 861px) and (max-height: 800px) {
  .ft-page-heading { padding-block: 12px 16px; }
  .ft-intro { margin-top: 6px; font-size: 12px; }
  .ft-settings { gap: 15px; padding-block: 18px 16px; }
  .ft-page .ft-panel-head { display: none; }
}
@media (min-width: 861px) and (max-height: 700px) {
  .ft-intro { display: none; }
  .ft-page-heading h1 { font-size: 27px; }
  .ft-page-heading .tv3-proof { gap: 3px; }
  .ft-page-heading .tv3-proof li { font-size: 10px; }
  .ft-settings { gap: 12px; padding-block: 14px; }
  .ft-actionbar { padding-block: 12px; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .ft-page { --ft-panel: 320px; }
  .ft-action-info { display: none; }
  .ft-actionbar { justify-content: flex-end; }
  .ft-page-heading { gap: 20px; }
  .ft-page-heading h1 { font-size: 27px; }
  .ft-page-heading .tv3-proof li { font-size: 10px; }
  .ft-page .ft-stage { padding: 20px; column-gap: 18px; }
  .ft-page .ft-drop b { font-size: 20px; }
  .ft-page .ft-drop-hint { font-size: 8.5px; }
  .ft-settings { padding-inline: 18px; }
}
@media (max-width: 860px) {
  .ft-fold { display: block; height: auto; min-height: 0; padding-bottom: 0; }
  .ft-actionbar { position: sticky; bottom: 0; z-index: 5; min-height: 70px; padding: 12px 20px; box-shadow: 0 -6px 20px -16px #15141355; }
  .ft-action-info { display: none; }
  .ft-page .ft-actions { width: 100%; justify-content: flex-end; }
  .ft-actionbar:not(:has(.ft-actions:not([hidden]))) { display: none; }

  .ft-page-heading { display: block; padding-block: 24px; text-align: center; }
  .ft-page-heading h1 { max-width: 600px; margin-inline: auto; font-size: 36px; }
  .ft-intro { max-width: 480px; margin-inline: auto; font-size: 14px; }
  .ft-page-heading .tv3-proof { display: flex; justify-content: center; gap: 8px 18px; margin-top: 12px; }
  .ft-page .ft-app { display: block; }
  .ft-toolbar { min-height: 56px; }
  .ft-toolbar .ft-private { display: none; }
  .ft-switcher { width: 100%; justify-content: center; }
  .ft-page .ft-app-in { height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .ft-page .ft-panel { grid-column: 1; grid-row: 2; }
  .ft-actionbar { grid-column: 1; grid-row: 3; }
  .ft-page .ft-stage { container-type: normal; min-height: 380px; padding: 24px 32px; }
  .ft-example { width: min(100%, 265px); }
  .ft-page .ft-drop { min-height: 240px; }
  .ft-page .ft-panel { display: flex; padding: 0; }
  .ft-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; overflow: visible; padding: 22px; }
  .ft-panel-head, .ft-page .ft-status, .ft-page .ft-out, .ft-page .ft-results { grid-column: 1 / -1; }
  .ft-page .ft-actions { box-shadow: none; }
  .ft-page .ft-canvas { flex: 1; min-height: 300px; }
  .ft-page .ft-stage.has-file { min-height: 380px; }
  .ft-page [data-ft=checker] .ft-settings > .ft-field, .ft-page .ft-score { grid-column: 1 / -1; }
  .ft-context { max-width: 600px; }
}
@media (max-width: 560px) {
  .ft-page [data-ft=resizer] .ft-view { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ft-page [data-ft=resizer] .ft-canvas { grid-column: 1; grid-row: 1; }
  .ft-page [data-ft=resizer] .ft-strip { grid-column: 1; grid-row: 2; flex-direction: row; padding: 6px; overflow-x: auto; overflow-y: hidden; }
  .ft-page .wrap { width: calc(100% - 32px); }
  .ft-page .tv3-crumbs { padding-top: 11px; }
  .ft-page .tv3-crumbs ol { gap: 3px; font-size: 10px; }
  .ft-page-heading { padding-block: 25px 20px; }
  .ft-page-heading h1 { margin-block: 0 12px; font-size: 32px; line-height: 1.08; }
  .ft-intro { max-width: 330px; font-size: 12.5px; }
  .ft-page-heading .tv3-proof { gap: 5px 12px; margin-top: 13px; }
  .ft-page-heading .tv3-proof li { gap: 4px; font-size: 9px; }
  .ft-page-heading .tv3-proof svg { width: 11px; height: 11px; }
  .ft-switcher { gap: 3px; }
  .ft-switcher a { flex: 1; gap: 5px; min-height: 39px; padding-inline: 8px; font-size: 10px; }
  .ft-switcher svg { width: 14px; height: 14px; }
  .ft-page .ft-app { border-radius: 15px; }
  .ft-toolbar { min-height: 53px; padding-inline: 8px; }
  .ft-toolbar > span { font-size: 10.5px; }
  .ft-toolbar > .ft-private { display: none; }
  .ft-page .ft-stage { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 22px 20px 18px; }
  .ft-example { order: 2; width: 100%; max-width: none; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line-2); }
  .ft-example-label { max-width: 220px; margin-inline: auto; }
  .ft-demo-photo { width: 220px; margin-inline: auto; aspect-ratio: 1.2; }
  .ft-example figcaption { font-size: 10px; }
  .ft-page .ft-drop { flex: none; min-height: 230px; padding-top: 0; gap: 5px; }
  .ft-page .ft-drop b { max-width: none; font-size: 23px; }
  .ft-page .ft-drop small { max-width: 260px; font-size: 12px; }
  .ft-page .ft-drop-ic { margin-bottom: 7px; width: 43px; height: 43px; }
  .ft-page .ft-drop-btn { margin-top: 13px; min-width: 190px; }
  .ft-page .ft-samples { padding-block: 13px 0; gap: 7px; }
  .ft-page .ft-samples > span { flex-basis: auto; margin-bottom: 0; margin-right: 5px; }
  .ft-page .ft-sample img { width: 29px; height: 34px; }
  .ft-page .ft-panel { display: flex; gap: 0; padding: 0; }
  .ft-settings { display: flex; gap: 18px; padding: 20px 18px; }
  .ft-panel-head h2 { font-size: 21px; }
  .ft-panel-head p, .ft-page .ft-field legend, .ft-page .ft-lab { font-size: 12px; }
  .ft-page [data-ft=remover] .ft-swatches small { font-size: 12px; }
  .ft-page .ft-field legend { margin-bottom: 10px; }
  .ft-page .ft-actions { margin: 0; padding: 0; }
  .ft-actionbar { padding-inline: 14px; gap: 0; }
  .ft-page .ft-actions { gap: 8px; }
  .ft-page .ft-actions .btn { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 12px; white-space: normal; line-height: 1.4; }

  .ft-page .ft-actions .btn-ghost { font-size: 12px; }
  .ft-page .tv3-steps { gap: 17px; margin-top: 4px; padding-block: 22px; }
  .ft-page .tv3-steps > div { padding: 0; }
  .ft-page .tv3-steps small { max-width: none; font-size: 11px; }
  .ft-page .ft-presets b { font-size: 12px; }
  .ft-page .ft-presets small { font-size: 10px; }
  .ft-page .ft-preset span { padding: 9px 10px; }
  .ft-page .ft-select select { height: 40px; font-size: 12px; }
  .ft-page .ft-chips span { min-height: 36px; font-size: 12px; }
  .ft-page .ft-status p, .ft-page .ft-out p, .ft-page .ft-score small, .ft-page .ft-results small { font-size: 11.5px; }
  .ft-page .ft-results b { font-size: 12.5px; }
  .ft-page .ft-view { min-height: 330px; }
  .ft-page .ft-stage.has-file { min-height: 0; padding: 12px; }
  .ft-page .ft-canvas { min-height: 280px; }
  .ft-context { font-size: 12px; text-align: left; }
}
@media (max-width: 360px) {
  .ft-page .hdr-in { gap: 12px; }
  .ft-page .logo-image { height: 30px; }
  .ft-page .hdr-end { gap: 6px; }
  .ft-page .hdr-end .btn { height: 36px; padding-inline: 12px; font-size: 12px; }
  .ft-page .burger { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-page *, .ft-page *::before, .ft-page *::after { scroll-behavior: auto; transition: none; }
}

/* the homepage's free tool cards, under "Free, no sign-up" */
.tv3-related-sec .th-free-grid { gap: 20px; }
.tv3-related-sec .th-free-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.tv3-related-sec .th-free-copy b { font-size: 17px; }
@media (max-width: 760px) { .tv3-related-sec .th-free-grid.is-two { grid-template-columns: 1fr; } }

/* Optional preview sharing never gates the free tools. */
.ft-sharing { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; line-height: 1.6; background: var(--card); }
.ft-sharing label { display: flex; align-items: flex-start; gap: 9px; flex: 1 1 450px; cursor: pointer; }
.ft-sharing input { margin-top: 4px; flex: 0 0 auto; accent-color: #1f6b4f; }
.ft-sharing small { flex: 1 1 100%; color: var(--muted); }
.ft-sharing [role=status] { font-size: 12px; }
.ft-page .ft-fold:has(.ft-sharing) { height:auto; min-height:calc(100svh - 76px); }
.ft-page .ft-app:has(.ft-sharing) { grid-template-rows:56px minmax(420px,1fr) auto; }
@media(max-width:860px) { .ft-page .ft-app:has(.ft-sharing) { grid-template-rows:56px auto auto; } }
