.fc-tool { --fc-accent: #6650cf; --fc-tint: #f0edff; }
.fc-tool[data-kind="excel-to-pdf"] { --fc-accent: #207752; --fc-tint: #eaf6ef; }
.fc-tool[data-kind="word-to-pdf"] { --fc-accent: #365db7; --fc-tint: #edf2ff; }
.fc-tool[data-kind="powerpoint-to-pdf"] { --fc-accent: #ab512d; --fc-tint: #fff0e8; }
.fc-tool button, .fc-tool select, .fc-tool input, .fc-tool a { scroll-margin-block: 100px; }
.fc-tool :focus-visible { outline: 3px solid #8b7aff; outline-offset: 3px; }
.fc-format-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 12px; font-weight: 650; color: var(--fc-accent); }
.fc-format-pill .icon { width: 18px; height: 18px; }
.fc-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 25px; width: fit-content; padding: 5px; background: #eaeaf5; border-radius: 13px; }
.fc-switcher a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; color: #59617d; font-weight: 600; font-size: 13px; border-radius: 9px; }
.fc-switcher a[aria-current] { color: var(--primary); background: #fff; box-shadow: 0 2px 6px #25284a0b; }
.fc-switcher .icon { width: 17px; height: 17px; }
.fc-start-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.fc-tool .fc-dropzone { background: #fff; min-height: 425px; padding: 35px 24px; border: 1.5px dashed #b5ace5; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: background .15s, border-color .15s; }
.fc-tool .fc-dropzone.is-dragover { background: #eeebff; border-color: var(--primary); }
.fc-dropzone h2 { font-size: 25px; letter-spacing: -.7px; }
.fc-dropzone > p { margin-top: 12px; max-width: 330px; }
.fc-dropzone .pt-select { margin: 24px 0 10px; min-height: 52px; }
.fc-dropzone .pt-limit { line-height: 1.9; margin-top: 13px; }
.fc-file-art { display: flex; align-items: center; gap: 18px; margin-bottom: 29px; }
.fc-file-art > span:not(.fc-art-arrow) { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; width: 74px; height: 94px; background: white; border: 1px solid #dce0ef; border-radius: 11px; box-shadow: 0 8px 20px #28215b0e; }
.fc-art-source { transform: rotate(-8deg); color: var(--fc-accent); }
.fc-art-pdf { transform: rotate(8deg); color: #ba455c; }
.fc-file-art .icon { width: 21px; height: 21px; }
.fc-file-art b { font-size: 10px; letter-spacing: .06em; margin: 5px 0 3px; }
.fc-file-art i { display: block; width: 100%; height: 3px; margin-top: 4px; border-radius: 3px; background: #e5e7f1; }
.fc-file-art i:last-child { width: 65%; }
.fc-art-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f1edff; color: var(--primary); }
.fc-intro { padding: 27px 22px 20px 20px; }
.fc-small-label { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 1.1px; }
.fc-intro h2 { font-size: clamp(29px,3vw,37px); line-height: 1.18; letter-spacing: -1.1px; margin: 14px 0; }
.fc-intro h2 > span { color: var(--primary); }
.fc-intro > p { max-width: 365px; font-size: 14px; color: var(--muted); }
.fc-intro ul { list-style: none; padding: 0; margin: 25px 0; display: grid; gap: 18px; }
.fc-intro li { display: flex; align-items: flex-start; gap: 12px; }
.fc-intro li > span { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: #fff; color: var(--primary); border: 1px solid #e3e1f3; display: grid; place-items: center; }
.fc-intro li .icon { width: 17px; height: 17px; }
.fc-intro li strong { display: block; font-size: 13px; }
.fc-intro li p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.fc-intro .fc-format-note { font-size: 11px; line-height: 1.6; padding-top: 17px; border-top: 1px solid var(--line); }
.fc-editor, .fc-result-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 24px; }
.fc-files-panel, .fc-options, .fc-preview-panel, .fc-download-panel { background: #fff; border: 1px solid var(--line); border-radius: 19px; min-width: 0; }
.fc-files-panel { padding: 24px; }
.fc-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.fc-panel-heading h2 { font-size: 23px; letter-spacing: -.6px; margin: 7px 0; }
.fc-panel-heading p, .fc-list-help, .fc-total-limit { font-size: 12px; color: var(--muted); }
.fc-panel-heading .pt-secondary { flex-shrink: 0; }
.fc-list-help { margin: 20px 0 17px; }
.fc-file-list { list-style: none; margin: 0; padding: 0; }
.fc-image-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(175px,1fr)); gap: 14px; }
.fc-file-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; min-width: 0; background: #fff; }
.fc-thumb { position: relative; height: 145px; padding: 14px; background: #f4f5fa; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
.fc-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fc-thumb .icon { width: 40px; height: 40px; color: var(--fc-accent); }
.fc-thumb > span { color: var(--muted); font-size: 11px; }
.fc-thumb .fc-file-position { position: absolute; top: 9px; left: 9px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #fff; color: var(--primary); font-size: 10px; font-weight: 750; box-shadow: 0 1px 4px #25205012; }
.fc-file-detail { padding: 12px 12px 7px; }
.fc-file-detail strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.45; }
.fc-file-detail > span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.fc-file-controls { display: flex; gap: 3px; padding: 2px 7px 7px; }
.fc-file-controls button { background: transparent; border: 0; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; color: #586486; }
.fc-file-controls button:hover { background: #f2efff; color: var(--primary); }
.fc-file-controls button:last-child { margin-left: auto; }
.fc-file-controls .icon { width: 17px; height: 17px; }
.fc-office-list .fc-file-card { display: grid; grid-template-columns: 105px minmax(0,1fr) 54px; align-items: center; background: #fafbff; }
.fc-office-list .fc-thumb { height: 130px; background: var(--fc-tint); }
.fc-office-list .fc-file-detail { padding: 16px; }
.fc-office-list .fc-file-detail strong { font-size: 16px; }
.fc-office-list .fc-file-controls { padding: 0 5px; }
.fc-total-limit { margin-top: 20px; text-align: center; font-size: 11px; }
.fc-options { padding: 25px; position: sticky; top: 96px; }
.fc-options-title { display: flex; align-items: center; gap: 12px; margin-bottom: 27px; }
.fc-options-title h2 { font-size: 23px; letter-spacing: -.6px; margin-top: 5px; }
.fc-output-icon { display: inline-grid; place-items: center; width: 44px; height: 48px; border: 1px solid #eadfe5; background: #fff2f4; color: #bc4e64; border-radius: 12px; }
.fc-output-icon .icon { width: 23px; height: 23px; }
.fc-options .pt-label { display: block; margin: 19px 0 7px; font-size: 12px; }
.fc-options-title + .pt-label { margin-top: 0; }
.fc-name-field { display: flex; align-items: center; border: 1px solid #d9ddeb; border-radius: 10px; overflow: hidden; background: #fff; }
.fc-name-field:focus-within { outline: 2px solid #8b7aff; outline-offset: 2px; }
.pdf-tool.fc-tool .fc-name-field input[type="text"] { min-width: 0; width: 100%; border: 0; border-radius: 0; box-shadow: none; outline: 0 !important; padding: 12px; color: var(--ink); }
.fc-name-field span { padding: 0 13px 0 3px; color: var(--muted); font-size: 12px; }
.fc-options select { width: 100%; min-height: 46px; border: 1px solid #d9ddeb; border-radius: 10px; padding: 9px 10px; background: #fff; color: var(--ink); font-size: 13px; }
.fc-options select:disabled { background: #f6f7fb; color: #707c96; }
.fc-setting-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-setting-row > div { min-width: 0; }
.fc-check { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 0; margin-top: 11px; cursor: pointer; font-size: 12px; line-height: 1.5; }
.pdf-tool.fc-tool .fc-check input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: var(--primary); flex: 0 0 18px; }
.fc-check > span { flex: 1; min-width: 0; }
.fc-options .pt-help { font-size: 11px; margin-top: 9px; line-height: 1.7; }
.fc-layout-summary { display: flex; gap: 10px; margin: 21px 0 16px; padding: 14px 12px; background: var(--fc-tint); border-radius: 11px; color: var(--fc-accent); }
.fc-layout-summary > .icon { width: 19px; height: 19px; flex-shrink: 0; }
.fc-layout-summary strong { display: block; font-size: 12px; }
.fc-layout-summary span { display: block; font-size: 11px; line-height: 1.6; margin-top: 5px; color: #566380; }
.fc-note { display: flex; align-items: flex-start; gap: 9px; background: #f7f8fc; padding: 13px; border-radius: 10px; margin-top: 22px; }
.fc-note .icon { color: #737aa1; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.fc-note p { color: #626d87; font-size: 11px; line-height: 1.65; }
.fc-action { margin-top: 25px; }
.fc-action .button { width: 100%; justify-content: space-between; min-height: 51px; }
.fc-action .pt-upload-note { font-size: 10px; margin-top: 12px; text-align: center; }
.fc-options > .pt-text-button { display: block; margin: 14px auto -5px; min-height: 44px; }
.fc-result-heading { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 6px 0 28px; }
.fc-result-heading .pt-success-icon { margin: 0; width: 56px; height: 56px; }
.fc-result-heading h2 { font-size: 29px; letter-spacing: -.8px; margin: 7px 0; }
.fc-result-heading p { font-size: 13px; color: var(--muted); }
.fc-preview-panel { overflow: hidden; }
.fc-preview-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 21px; font-size: 12px; gap: 10px; }
.fc-preview-heading > span { color: var(--muted); font-size: 11px; }
.fc-preview-stage { background: #eaeef6; min-height: 280px; padding: 25px 18px; display: grid; place-items: center; font-size: 13px; color: var(--muted); text-align: center; }
.fc-preview-stage canvas { max-width: 100%; height: auto; background: #fff; box-shadow: 0 3px 18px #1b204024; }
.fc-pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; }
.fc-download-panel { padding: 28px 25px; }
.fc-download-panel h3 { margin: 16px 0 9px; font-size: 19px; letter-spacing: -.4px; overflow-wrap: anywhere; line-height: 1.4; }
.fc-download-panel > p { font-size: 12px; color: var(--muted); }
.fc-download-panel > .button { margin-top: 24px; width: 100%; justify-content: center; min-height: 52px; }
.fc-download-panel .pt-review { margin: 23px 0 0; font-size: 12px; }
.fc-download-panel .pt-review li { font-size: 11px; line-height: 1.7; }
.fc-result-actions { display: grid; gap: 9px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.fc-result-actions > button { min-height: 44px; }
@media (max-width: 1000px) { .fc-editor, .fc-result-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 18px; } .fc-files-panel { padding: 20px; } .fc-options { padding: 21px; } .fc-panel-heading { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .fc-tool { padding-top: 18px; }
  .fc-tool .pt-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 22px; }
  .fc-tool .pt-heading h1 { font-size: clamp(30px,7vw,42px); letter-spacing: -1.3px; }
  .fc-tool .pt-heading p { font-size: 13px; }
  .fc-tool .pt-steps { gap: 19px; }
  .fc-switcher { width: 100%; gap: 3px; }
  .fc-switcher a { flex: 1 1 0; padding: 9px 5px; gap: 5px; font-size: 11px; }
  .fc-switcher .icon { width: 15px; height: 15px; }
  .fc-start-grid, .fc-editor, .fc-result-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .fc-tool .fc-dropzone { min-height: 375px; padding: 28px 17px; }
  .fc-dropzone h2 { font-size: 22px; }
  .fc-intro { padding: 20px 8px 5px; }
  .fc-intro h2 { font-size: 30px; }
  .fc-intro > p { max-width: none; }
  .fc-options { position: static; padding: 24px; }
  .fc-options select, .pdf-tool.fc-tool .fc-name-field input[type="text"] { font-size: 16px; }
  .fc-setting-row { gap: 10px; }
  .fc-result-heading { justify-content: flex-start; gap: 12px; }
  .fc-result-heading h2 { font-size: 25px; }
  .fc-result-heading .pt-success-icon { flex-shrink: 0; width: 45px; height: 45px; }
  .fc-result-heading p { font-size: 11px; }
  .fc-download-panel { grid-row: 1; padding: 23px; }
  .fc-preview-stage { padding: 19px 12px; min-height: 230px; }
  .fc-office-list .fc-file-card { grid-template-columns: 75px minmax(0,1fr) 46px; }
  .fc-office-list .fc-thumb { height: 125px; padding: 10px; }
  .fc-office-list .fc-file-detail { padding: 13px; }
  .fc-office-list .fc-file-detail strong { font-size: 13px; }
  .fc-office-list .fc-file-controls { padding: 0; }
}
@media (max-width: 420px) {
  .fc-format-pill { font-size: 11px; padding: 6px 10px; gap: 7px; }
  .fc-format-pill .icon { width: 16px; height: 16px; }
  .fc-tool .pt-topline { gap: 8px; }
  .fc-tool .pt-steps { gap: 17px; }
  .fc-switcher a { flex-direction: column; line-height: 1.3; gap: 5px; }
  .fc-image-list { grid-template-columns: minmax(0,1fr); }
  .fc-image-list .fc-file-card { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; }
  .fc-image-list .fc-thumb { grid-row: span 2; height: 128px; padding: 11px; }
  .fc-image-list .fc-file-detail { padding-top: 12px; }
  .fc-image-list .fc-file-controls { padding: 0 4px 4px; }
  .fc-files-panel, .fc-options { padding: 19px 16px; }
  .fc-setting-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .fc-panel-heading .pt-secondary { width: 100%; justify-content: center; }
  .fc-preview-heading, .fc-pagination { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .fc-tool *, .fc-tool *::before, .fc-tool *::after { scroll-behavior: auto !important; transition: none !important; } }
