/* 格式王网站与权益页共用样式。 */
:root {
  color-scheme: light;
  --brand: #0967f7;
  --brand-dark: #0051d8;
  --brand-soft: #eaf3ff;
  --cyan: #24b9d8;
  --ink: #0b1834;
  --text: #536078;
  --muted: #7f8ba1;
  --line: #d8e2ef;
  --surface: #fff;
  --soft: #f5f9ff;
  --success: #087f5b;
  --danger: #c92a2a;
  --shadow: 0 18px 50px rgba(50, 87, 137, .13);
  --radius: 18px;
  --shell: 1440px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(9, 103, 247, .3);
  outline-offset: 3px;
}
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 14px; color: #fff; background: var(--brand); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-header, .work-header { position: relative; z-index: 30; border-bottom: 1px solid #e5edf7; background: rgba(255, 255, 255, .97); }
.header-inner { display: flex; min-height: 74px; align-items: center; gap: 36px; }
.brand { display: inline-flex; flex: 0 0 auto; min-height: 48px; align-items: center; gap: 10px; color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.brand svg { width: 42px; height: 42px; fill: var(--brand); stroke: var(--brand); stroke-width: 3; }
.site-nav { display: flex; min-height: 74px; flex: 1; align-items: stretch; justify-content: center; gap: clamp(18px, 2.2vw, 42px); }
.site-nav a, .site-nav .nav-muted { position: relative; display: inline-flex; align-items: center; font-size: 15px; white-space: nowrap; }
.site-nav a { cursor: pointer; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.site-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 4px 4px 0 0; background: var(--brand); content: ""; }
.nav-muted { color: #a1a9b7; cursor: not-allowed; }
.header-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--ink); }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 22px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 650; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--brand), #0e5ce0); box-shadow: 0 8px 20px rgba(9, 103, 247, .18); }
.button.primary:hover { box-shadow: 0 10px 25px rgba(9, 103, 247, .28); }
.button.ghost, .button.outline { border-color: #c9d6e7; color: var(--ink); background: #fff; box-shadow: none; }
.button.outline { border-color: var(--brand); color: var(--brand); }
.button.success { color: #fff; background: var(--success); }
.button.large { min-height: 58px; padding-inline: 36px; font-size: 18px; border-radius: 11px; }
.button.small { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .13em; }

.home-hero { overflow: hidden; padding: 0 0 54px; background: linear-gradient(180deg, #f2f7ff 0%, #f7faff 62%, #f4f8fd 100%); }
.home-hero-banner { position: relative; min-height: 326px; overflow: hidden; }
.home-hero-banner::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242, 247, 255, .99) 0%, rgba(242, 247, 255, .97) 43%, rgba(242, 247, 255, .32) 71%, rgba(242, 247, 255, .08) 100%); content: ""; }
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.home-hero-banner-inner { position: relative; z-index: 1; display: flex; min-height: 326px; align-items: center; padding: 44px 4px 40px; }
.home-hero-copy { width: min(780px, 62%); }
.home-hero-copy h1 { margin-bottom: 14px; font-size: clamp(38px, 3.2vw, 52px); line-height: 1.15; letter-spacing: -.045em; }
.home-hero-lead { max-width: 650px; margin-bottom: 0; color: #4f5f76; font-size: 17px; line-height: 1.8; }
.home-hero-trust { display: grid; max-width: 820px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 26px 0 0; list-style: none; }
.home-hero-trust li { display: flex; min-height: 70px; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 10px; background: rgba(255, 255, 255, .76); box-shadow: 0 8px 24px rgba(64, 99, 145, .05); }
.home-hero-trust li > span:last-child, .home-hero-trust strong, .home-hero-trust small { display: block; }
.home-hero-trust strong { font-size: 14px; }
.home-hero-trust small { color: #6f7b8e; font-size: 11px; white-space: nowrap; }
.home-trust-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 19px; font-weight: 900; }
.home-trust-icon.blue { color: #2876ed; background: #e7f1ff; }
.home-trust-icon.green { color: #1eac77; background: #e4f8f0; }
.home-trust-icon.purple { color: #8056e9; background: #f0eaff; }
.home-trust-icon.orange { color: #e48a25; background: #fff1dd; }
.home-tool-browser { position: relative; z-index: 2; display: grid; min-height: 488px; grid-template-columns: 250px minmax(0, 1fr); margin-top: -2px; overflow: hidden; border: 1px solid #e0e8f3; border-radius: 17px; background: #fff; box-shadow: 0 20px 54px rgba(48, 79, 122, .1); }
.home-tool-sidebar { padding: 24px 18px; border-right: 1px solid #e6ecf4; background: #fff; }
.home-tool-sidebar > h2 { margin-bottom: 12px; font-size: 18px; }
.home-tool-tabs { display: grid; gap: 4px; }
.home-tool-tab { display: grid; min-height: 52px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 9px; color: #566277; background: transparent; cursor: pointer; font-weight: 700; text-align: left; transition: color 180ms ease, background 180ms ease; }
.home-tool-tab > span:last-child { color: #9aa7b8; font-size: 22px; font-weight: 400; }
.home-tool-tab:hover { color: var(--brand); background: #f4f8ff; }
.home-tool-tab.active { color: var(--brand); background: #eef5ff; }
.home-tool-tab.active > span:last-child { color: var(--brand); }
.home-category-icon { display: grid; width: 30px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 5px 5px 7px 7px; background: #fff; font-size: 14px; font-weight: 800; }
.home-category-icon.pdf { color: #397fe9; }
.home-category-icon.image { color: #34ab7c; }
.home-category-icon.audio { color: #e16c3d; }
.home-tool-menu { padding-top: 16px; margin-top: 16px; border-top: 1px solid #edf1f6; }
.home-tool-menu [data-home-panel] > p { margin: 0 8px 6px; color: #8b96a8; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.home-tool-links { display: grid; gap: 4px; }
.home-tool-links button { display: grid; width: 100%; min-height: 58px; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; text-align: left; transition: border-color 180ms ease, background 180ms ease; }
.home-tool-links button:hover, .home-tool-links button.active { border-color: #b8d1f5; background: var(--brand-soft); }
.home-tool-links button:focus-visible { outline: 3px solid rgba(23, 105, 224, .25); outline-offset: 2px; }
.home-tool-links button > span:nth-child(2), .home-tool-links strong, .home-tool-links small { display: block; min-width: 0; }
.home-tool-links strong { font-size: 14px; }
.home-tool-links small { color: var(--text); font-size: 12px; }
.home-tool-links button > span:last-child { color: var(--brand); font-size: 18px; }
.home-mini-icon { display: grid; width: 34px; height: 38px; place-items: center; border: 1.5px solid currentColor; border-radius: 5px 5px 8px 8px; background: #fff; font-weight: 800; line-height: 1; }
.home-mini-icon.pdf { color: #d92c36; font-size: 9px; }
.home-mini-icon.word { color: var(--brand); font-size: 18px; }
.home-mini-icon.excel { color: #16834b; font-size: 18px; }
.home-mini-icon.image { color: #7c3aed; font-size: 15px; }
.home-mini-icon.audio { color: #d35b00; font-size: 17px; }
.home-tool-main { min-width: 0; min-height: 0; padding: 26px; background: #fff; }
.home-tool-main .upload-card { display: grid; height: 436px; min-height: 0; grid-template-columns: minmax(430px, 1fr) minmax(330px, 390px); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 12px 24px; padding: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.home-tool-main .upload-drop { min-height: 0; height: 100%; grid-column: 1; grid-row: 1; padding: 18px 28px; border-color: #9cbdec; background: #f9fbff; }
.home-tool-current { width: 100%; margin-bottom: 10px; text-align: center; }
.home-tool-current > span { display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.home-tool-current h2 { margin: 0; font-size: 19px; }
.home-tool-current p { margin: 1px 0 0; color: var(--text); font-size: 12px; }
.home-tool-main .upload-drop h3 { margin: 10px 0 0; font-size: 20px; }
.home-upload-helper { margin: 2px 0 14px; color: #7f8a9d; font-size: 13px; }
.home-tool-main .upload-icon { width: 70px; padding: 9px; border-radius: 15px; color: #397fea; background: #e8f1ff; }
.home-tool-main .upload-icon svg { stroke-width: 3.5; }
.home-tool-main .selected-files { max-height: 112px; overflow-y: auto; }
.home-parameter-hint { display: grid; width: 100%; max-width: 420px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 10px; margin: 12px 0 0; border-radius: 9px; color: #40516c; background: #edf5ff; font-size: 12px; text-align: left; }
.home-parameter-hint strong { color: #1558b6; }
.home-tool-main .upload-notes { grid-column: 1; grid-row: 2; gap: 6px 12px; margin-top: 0; font-size: 12px; }
.home-tool-main .upload-progress { grid-column: 1 / -1; }
.home-parameter-panels { min-width: 0; min-height: 0; grid-column: 2; grid-row: 1 / span 2; padding: 20px 16px 20px 20px; margin-top: 0; overflow-y: auto; border: 1px solid #e0e7f0; border-radius: 13px; outline-offset: -3px; scrollbar-color: #91a7c3 #edf2f8; scrollbar-gutter: stable; scrollbar-width: thin; }
.home-parameters-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #edf1f5; }
.home-parameters-title h2 { margin: 0; font-size: 17px; }
.home-parameters-title span { color: #6e8fbd; font-size: 11px; }
.home-parameter-panels::-webkit-scrollbar { width: 10px; }
.home-parameter-panels::-webkit-scrollbar-track { border-radius: 99px; background: #edf2f8; }
.home-parameter-panels::-webkit-scrollbar-thumb { border: 2px solid #edf2f8; border-radius: 99px; background: #91a7c3; }
.home-parameter-panels > [hidden] { display: none; }
.home-parameter-panels .conversion-settings, .home-parameter-panels .fixed-settings,
.home-parameter-panels .speech-settings, .home-parameter-panels .idphoto-settings { margin-top: 0; }
.home-tool-main .upload-card .image-output-settings { max-width: none; margin-top: 0; }
.home-tool-main .image-output-options { grid-template-columns: 1fr 1fr; }

.home-guide-heading { align-items: end; }
.home-guide-heading .eyebrow { margin-bottom: 6px; }
.home-guide-heading h2, .home-how-grid h2, .home-faq-grid h2 { margin-bottom: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.25; letter-spacing: -.035em; }
.home-comparison-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(44, 86, 142, .07); }
.home-comparison { width: 100%; border-collapse: collapse; text-align: left; }
.home-comparison th, .home-comparison td { padding: 17px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.home-comparison thead th { color: #43536b; background: #f4f8fd; font-size: 13px; letter-spacing: .03em; }
.home-comparison tbody th { width: 14%; color: var(--ink); font-size: 15px; white-space: nowrap; }
.home-comparison td { color: var(--text); font-size: 14px; line-height: 1.65; }
.home-comparison tbody tr:last-child > * { border-bottom: 0; }
.home-how-grid, .home-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr); align-items: start; gap: clamp(44px, 6vw, 90px); }
.home-how-lead, .home-faq-grid > div:first-child > p:last-child { max-width: 620px; margin: 18px 0 0; color: var(--text); }
.home-step-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.home-step-list li { display: grid; min-height: 92px; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #dce6f3; border-radius: 14px; background: #fff; }
.home-step-list li > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 800; }
.home-step-list strong { font-size: 17px; }
.home-step-list p { margin: 2px 0 0; color: var(--text); font-size: 14px; }
.home-faq-list details { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.home-faq-list details + details { margin-top: 12px; }
.home-faq-list summary { min-height: 56px; padding: 14px 48px 14px 18px; cursor: pointer; font-weight: 750; }
.home-faq-list p { padding: 0 18px 18px; margin: 0; color: var(--text); }

.tool-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 72% 15%, rgba(77, 156, 255, .19), transparent 31rem), linear-gradient(140deg, #f8fbff, #eef6ff 55%, #f8fcff); }
.tool-hero::before { position: absolute; bottom: -280px; left: -100px; width: 760px; height: 520px; border: 1px solid rgba(9, 103, 247, .08); border-radius: 50%; content: ""; transform: rotate(15deg); }
.hero-grid { position: relative; display: grid; min-height: 580px; grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr); align-items: center; gap: clamp(40px, 7vw, 100px); padding-block: 48px; }
.hero-copy h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(48px, 5vw, 76px); line-height: 1.1; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--brand); }
.hero-lead { max-width: 650px; color: var(--text); font-size: 20px; line-height: 1.7; }
.trust-row, .feature-row { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 30px 0 34px; list-style: none; color: var(--ink); font-weight: 560; }
.trust-row li::before, .feature-row li::before { display: inline-flex; width: 23px; height: 23px; margin-right: 9px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--brand); content: "✓"; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.upload-card { padding: 36px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.upload-drop { display: flex; min-height: 320px; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 2px dashed var(--brand); border-radius: 17px; text-align: center; transition: background 180ms ease, transform 180ms ease; }
.upload-card.dragging .upload-drop, .mini-uploader.dragging .upload-drop { background: var(--brand-soft); transform: scale(.995); }
.upload-drop h2 { margin: 14px 0 22px; font-size: 20px; }
.upload-icon { width: 94px; color: var(--brand); }
.upload-icon svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.document-add { display: grid; width: 72px; height: 84px; place-items: center; border: 3px solid var(--brand); border-radius: 10px; color: var(--brand); font-size: 38px; font-weight: 500; }
.selected-files { width: 100%; max-width: 520px; margin-top: 16px; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 9px; background: var(--soft); color: var(--text); font-size: 14px; text-align: left; }
.selected-file + .selected-file { margin-top: 8px; }
.selected-file > span { display: grid; min-width: 0; flex: 1; }
.selected-file span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file span strong { color: var(--text); font-size: 12px; font-weight: 500; }
.selected-file-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.table-region-button { min-width: 96px; min-height: 44px; padding: 8px 13px; border: 1px solid #aac7ee; border-radius: 9px; color: var(--brand); background: #fff; cursor: pointer; font-weight: 700; }
.table-region-button:hover { background: var(--brand-soft); }
.table-region-button:focus-visible { outline: 3px solid rgba(23, 105, 224, .28); outline-offset: 2px; }
.file-order-button, .file-remove-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #fff; cursor: pointer; font-size: 17px; }
.file-order-button:hover:not(:disabled), .file-remove-button:hover { color: var(--brand); border-color: #aac7ee; background: var(--brand-soft); }
.file-order-button:disabled { opacity: .38; cursor: not-allowed; }
.file-remove-button { color: var(--danger); font-size: 22px; }
.upload-confirm { width: 100%; max-width: 360px; margin-top: 16px; }
.upload-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 22px; color: var(--text); font-size: 14px; }
.upload-notes span::before { margin-right: 7px; color: var(--cyan); content: "✓"; font-weight: 800; }
.upload-list { margin: 20px 0 0; padding: 0; color: var(--text); font-size: 14px; list-style: none; text-align: left; }
.upload-list li { margin-top: 7px; }
.upload-list li::before { margin-right: 9px; color: var(--brand); content: "✓"; }
.upload-progress { position: relative; height: 12px; margin-top: 18px; border-radius: 99px; background: #e6edf7; }
.upload-progress span { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--brand); transition: width 220ms ease; }
.upload-progress strong { display: block; margin-top: 8px; color: var(--text); font-size: 13px; text-align: center; }

.section { padding-block: 72px; }
.soft-section { background: #f7faff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h2, .center-heading h2, .detail-grid h2 { margin-bottom: 0; font-size: 34px; line-height: 1.25; }
.section-heading > p { max-width: 500px; margin-bottom: 4px; color: var(--text); }
.center-heading { margin-bottom: 34px; text-align: center; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card { display: flex; min-height: 132px; align-items: center; gap: 22px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.tool-card:hover { border-color: #a9c8f9; box-shadow: 0 12px 30px rgba(44, 86, 142, .1); transform: translateY(-2px); }
.tool-card > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.tool-card strong { font-size: 19px; }
.tool-card small { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--brand); font-size: 28px; }
.file-mark { display: grid; width: 72px; height: 86px; flex: 0 0 auto; place-items: center; border: 3px solid currentColor; border-radius: 10px 10px 14px 14px; background: #fff; font-weight: 850; box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .04); }
.file-mark.word { color: #0d63ed; font-size: 33px; }
.file-mark.pdf { color: #ef2b2d; font-size: 17px; }
.file-mark.image { color: #7c3aed; font-size: 15px; }
.file-mark.excel { color: #16834b; font-size: 33px; }
.file-mark.audio { color: #d35b00; font-size: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene-grid { grid-template-columns: repeat(4, 1fr); }
.value-grid article { padding: 30px; border: 1px solid #e2eaf5; border-radius: 16px; background: #fff; }
.value-grid h3 { margin: 18px 0 8px; font-size: 21px; }
.value-grid p { margin-bottom: 0; color: var(--text); }
.value-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 800; }

.guide-hero { padding: 84px 0 56px; background: radial-gradient(circle at 74% 12%, rgba(77, 156, 255, .17), transparent 30rem), linear-gradient(140deg, #f8fbff, #edf6ff); }
.guide-hero h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(42px, 5.5vw, 68px); line-height: 1.15; letter-spacing: -.05em; }
.guide-hero > .shell > p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: var(--text); font-size: 19px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.guide-nav a { padding: 8px 14px; border: 1px solid #bfd5f4; border-radius: 999px; color: #1459bd; background: #fff; font-size: 14px; font-weight: 700; }
.guide-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.guide-section { scroll-margin-top: 24px; }
.guide-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(44, 86, 142, .07); }
.guide-table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.guide-table-wrap th, .guide-table-wrap td { padding: 17px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table-wrap thead th { color: var(--text); background: #f9fbff; font-size: 13px; letter-spacing: .04em; }
.guide-table-wrap tbody th { width: 23%; color: var(--ink); font-size: 15px; }
.guide-table-wrap td { color: var(--text); font-size: 15px; }
.guide-table-wrap tbody tr:last-child th, .guide-table-wrap tbody tr:last-child td { border-bottom: 0; }
.guide-faq { max-width: 900px; }
.guide-faq details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.guide-faq details + details { margin-top: 12px; }
.guide-faq summary { cursor: pointer; font-weight: 750; }
.guide-faq p { margin: 14px 0 0; color: var(--text); }

.breadcrumbs { display: flex; gap: 10px; padding-top: 25px; color: var(--text); font-size: 14px; }
.breadcrumbs a:hover { color: var(--brand); }
.tool-hero .hero-grid { min-height: 570px; padding-top: 26px; }
.tool-copy h1 { margin-top: 22px; font-size: clamp(52px, 5.8vw, 82px); }
.conversion-icons { display: flex; align-items: center; gap: 20px; }
.conversion-arrow { color: var(--brand); font-size: 38px; }
.feature-row { gap: 17px; font-size: 14px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.steps-grid article { position: relative; display: flex; min-height: 138px; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.steps-grid article:not(:last-child)::after { position: absolute; top: 50%; right: -35px; width: 35px; border-top: 2px dashed #aebcd0; content: ""; }
.step-no { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #9fd0ff, var(--brand)); font-size: 24px; font-weight: 750; }
.steps-grid h3 { margin-bottom: 4px; }
.steps-grid p { margin-bottom: 0; color: var(--text); font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.detail-grid > article > p:not(.eyebrow) { color: var(--text); font-size: 17px; }
.boundary { padding: 15px 18px; border-left: 3px solid var(--brand); background: #fff; }
.capability-list { display: grid; gap: 13px; }
.capability-list article { display: flex; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.capability-list article > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); }
.capability-list h3 { margin-bottom: 3px; font-size: 17px; }
.capability-list p { margin-bottom: 0; color: var(--text); font-size: 14px; }

.work-header { position: sticky; top: 0; }
.work-header-inner { display: grid; min-height: 72px; grid-template-columns: 1fr auto 1fr; align-items: center; }
.work-header .brand { justify-self: start; }
.work-header-inner > strong { justify-self: center; font-size: 19px; letter-spacing: -.02em; }
.work-header nav { display: flex; align-items: center; justify-self: end; gap: 18px; }
.work-header nav > a:first-child { color: var(--text); font-size: 14px; }

.workspace-page { min-height: calc(100dvh - 72px); padding: 20px; background: #f5f8fc; }
.workspace-shell { display: grid; width: min(100%, 1480px); min-height: calc(100dvh - 112px); grid-template-columns: 292px minmax(0, 1fr); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 42px rgba(44, 75, 112, .08); }
.workspace-rail { padding: 22px 18px; border-right: 1px solid var(--line); background: #fbfdff; }
.rail-section { padding-top: 20px; border-top: 1px solid var(--line); }
.rail-section + .rail-section { margin-top: 20px; }
.rail-section h2 { margin: 0; font-size: 14px; }
.tool-section { padding-top: 0; border-top: 0; }
.rail-create-heading { display: flex; align-items: center; gap: 11px; padding: 2px 4px 14px; }
.rail-create-copy, .rail-create-heading h2, .rail-create-helper { display: block; }
.rail-create-copy { min-width: 0; flex: 1; }
.rail-create-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rail-create-heading h2 { color: var(--ink); font-size: 17px; }
.rail-create-helper { margin-top: 2px; color: var(--text); font-size: 12px; }
.rail-create-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.rail-create-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.task-capacity { display: flex; flex: 0 0 auto; align-items: baseline; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.task-capacity strong { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.task-capacity.near-full, .task-capacity.near-full strong { color: #a65b00; }
.task-capacity.full, .task-capacity.full strong { color: var(--danger); }
.rail-heading { display: flex; min-height: 32px; align-items: start; justify-content: space-between; }
.history-total { color: var(--muted); font-size: 12px; }
.history-section { margin-top: 20px; }
.tool-list { display: grid; gap: 8px; }
.rail-tool { display: grid; min-height: 66px; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; margin-top: 10px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.tool-list .rail-tool { margin-top: 0; }
.rail-tool:hover, .rail-tool.current { border-color: #a9c9fa; background: var(--brand-soft); }
.rail-tool:focus-visible { outline: 3px solid rgba(9, 103, 247, .24); outline-offset: 2px; }
.rail-tool > span:nth-child(2), .rail-tool > span:nth-child(2) strong, .rail-tool > span:nth-child(2) small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-tool > span:nth-child(2) strong { font-size: 14px; }
.rail-tool > span:nth-child(2) small { color: var(--text); font-size: 12px; }
.rail-tool-action { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rail-tool.current .rail-tool-action { color: var(--brand); }
.rail-tool .grid-icon { width: 24px; margin: auto; stroke: var(--brand); }
.mini-file-icon { position: relative; display: grid; width: 36px; height: 43px; flex: 0 0 auto; place-items: center; border: 1.5px solid currentColor; border-radius: 6px; background: #fff; font-weight: 800; line-height: 1; }
.mini-file-icon::after { position: absolute; top: -1.5px; right: -1.5px; width: 10px; height: 10px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; border-radius: 0 5px 0 4px; background: #fff; content: ""; }
.mini-file-icon.word { color: var(--brand); font-size: 21px; }
.mini-file-icon.pdf { color: #d92c36; font-size: 9px; }
.mini-file-icon.image { color: #7c3aed; font-size: 8px; }
.mini-file-icon.excel { color: #16834b; font-size: 20px; }
.mini-file-icon.audio { color: #d35b00; font-size: 14px; }
.mini-file-icon.text { color: #596579; font-size: 11px; }

.history-list { display: grid; gap: 6px; }
.history-loading { display: grid; gap: 9px; padding-top: 8px; }
.history-loading span { height: 58px; border-radius: 9px; background: #eef3f9; animation: soft-pulse 1.2s ease-in-out infinite alternate; }
.history-item { display: grid; width: 100%; min-height: 66px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: border-color 180ms ease, background 180ms ease; }
.history-item:hover, .history-item.selected { border-color: #c8dbf6; background: #eef5ff; }
.history-item.selected { box-shadow: inset 3px 0 var(--brand); }
.history-item > span:nth-child(2), .history-item strong, .history-item small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item strong { font-size: 13px; }
.history-item small { color: var(--text); font-size: 11px; }
.history-state { display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #afbdd0; border-radius: 50%; color: var(--brand); font-size: 9px; font-weight: 800; }
.history-state.status-completed { border-color: var(--success); background: var(--success); }
.history-state.status-completed::after { width: 10px; height: 5px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; transform: rotate(-45deg) translateY(-1px); }
.history-state.status-processing { border-color: var(--brand); }
.history-state.status-failed { border-color: var(--danger); }
.history-state.status-failed::after { color: var(--danger); content: "×"; font-size: 18px; }
.history-status { color: var(--brand); font-size: 11px; white-space: nowrap; }
.history-item:has(.status-completed) .history-status { color: var(--success); }
.history-item:has(.status-failed) .history-status { color: var(--danger); }
.history-empty { padding: 20px 6px; margin: 0; color: var(--text); font-size: 13px; text-align: center; }
.history-empty.error { color: var(--danger); }
.history-more { width: 100%; min-height: 44px; margin-top: 8px; border: 0; color: var(--brand); background: transparent; cursor: pointer; }

.workspace-content { min-width: 0; padding: clamp(28px, 4vw, 58px); background: #fff; }
.task-empty { width: min(100%, 1040px); margin: 0 auto; }
.workspace-intro { margin-bottom: 24px; text-align: center; }
.workspace-intro .eyebrow { margin-bottom: 5px; }
.workspace-intro h1 { margin-bottom: 6px; font-size: clamp(30px, 3vw, 40px); line-height: 1.25; letter-spacing: -.035em; }
.workspace-intro > p:last-child { margin-bottom: 0; color: var(--text); }
.workspace-uploader { padding: 22px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(44, 75, 112, .06); }
.workspace-uploader .upload-drop { min-height: 300px; border-color: #9fbfea; background: #fbfdff; }
.workspace-uploader.dragging .upload-drop { background: var(--brand-soft); transform: scale(.995); }
.workspace-uploader.capacity-full .upload-drop { opacity: .55; }
.workspace-upload-icon { width: 68px; color: var(--brand); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.workspace-uploader .upload-drop h2 { margin: 18px 0 2px; font-size: 23px; }
.workspace-uploader .upload-drop p { margin-bottom: 18px; color: var(--text); font-size: 14px; }
.workspace-uploader .selected-files { max-width: none; }
.workspace-uploader .work-start { width: 100%; margin-top: 16px; background: var(--brand); }
.file-review { display: grid; min-height: 500px; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.file-review-list { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: #fbfdff; }
.file-review-list > header, .file-preview-toolbar { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.file-review-list header > span, .file-review-list header strong, .file-review-list header small,
.file-preview-toolbar > span, .file-preview-toolbar strong, .file-preview-toolbar small { display: block; min-width: 0; }
.file-review-list header strong, .file-preview-toolbar strong { font-size: 14px; }
.file-review-list header small, .file-preview-toolbar small { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-replace { min-height: 44px; padding: 7px 10px; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.file-review-list .selected-files { min-height: 0; max-height: 520px; padding: 10px; margin: 0; overflow-y: auto; }
.file-review-list .selected-file { padding: 7px; border: 1px solid transparent; background: transparent; }
.file-review-list .selected-file.previewing { border-color: #aac9f7; background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.file-review-list .file-preview-select { display: grid; min-width: 0; min-height: 44px; flex: 1; align-content: center; padding: 5px 7px; border: 0; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.file-review-list .file-preview-select > span { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-review-list .file-preview-select > strong { color: var(--text); font-size: 11px; font-weight: 500; }
.file-review-list .selected-file-actions { gap: 4px; }
.file-review-list .table-region-button { min-width: 76px; padding-inline: 8px; font-size: 12px; }
.file-review-list .file-order-button, .file-review-list .file-remove-button { width: 44px; height: 44px; }
.file-preview { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.file-preview-toolbar > span { min-width: 0; flex: 1; }
.file-preview-toolbar nav { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.file-preview-toolbar nav button { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: #fff; cursor: pointer; font-size: 12px; }
.file-preview-toolbar nav button:disabled { color: var(--muted); background: #f5f7fa; cursor: not-allowed; opacity: .55; }
.file-preview-position { min-width: 46px; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.file-preview-stage { display: grid; min-height: 400px; overflow: auto; place-items: center; padding: 14px; background: #edf2f8; }
.file-preview-object { width: 100%; height: 100%; min-height: 470px; border: 0; border-radius: 7px; background: #fff; box-shadow: 0 4px 18px rgba(39, 64, 98, .1); }
.file-preview-stage img, .file-preview-stage video { max-width: 100%; max-height: 470px; border-radius: 8px; background: #111827; box-shadow: 0 4px 18px rgba(39, 64, 98, .14); }
.file-preview-stage audio { width: min(100%, 520px); }
.file-preview-fallback { display: grid; max-width: 430px; justify-items: center; padding: 32px; color: var(--text); text-align: center; }
.file-preview-fallback .mini-file-icon { width: 58px; height: 70px; margin-bottom: 18px; font-size: 16px; }
.file-preview-fallback strong { color: var(--ink); font-size: 18px; }
.file-preview-fallback p { margin: 7px 0; }
.file-preview-fallback small { overflow-wrap: anywhere; }
.file-preview-note { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 9px 14px; margin: 0; border-top: 1px solid var(--line); color: var(--text); background: #fbfdff; font-size: 12px; }
.file-preview-note svg { width: 20px; flex: 0 0 auto; fill: none; stroke: var(--success); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.image-output-settings { padding: 0; margin: 18px 0 0; border: 0; }
.upload-card .image-output-settings { width: 100%; max-width: 620px; text-align: left; }
.upload-card .image-output-options { grid-template-columns: 1fr; }
.image-output-settings legend { padding: 0; margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.image-output-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.image-output-options label { position: relative; display: flex; min-height: 84px; align-items: center; gap: 13px; padding: 16px; border: 1px solid #cbd6e5; border-radius: 12px; background: #fff; cursor: pointer; }
.image-output-options label:has(input:checked) { border: 2px solid var(--brand); padding: 15px; background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(23, 105, 224, .08); }
.image-output-options input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--brand); }
.image-output-options span, .image-output-options strong, .image-output-options small { display: block; }
.image-output-options strong { font-size: 15px; }
.image-output-options small { margin-top: 3px; color: var(--text); font-size: 12px; }
.image-order-note { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 9px 12px; margin: 10px 0 0; border-radius: 9px; color: var(--brand); background: #eef5ff; font-size: 13px; }
.image-order-note > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; }
.idphoto-settings { overflow: hidden; padding: 0; margin: 18px 0 0; border: 1px solid #c8d8ec; border-radius: 14px; background: #fff; }
.idphoto-settings > legend { float: left; width: 100%; padding: 15px 18px; border-bottom: 1px solid #dbe6f3; color: var(--ink); background: #f2f7ff; }
.idphoto-settings > legend span, .idphoto-settings > legend small { display: block; }
.idphoto-settings > legend span { font-size: 16px; font-weight: 800; }
.idphoto-settings > legend small { margin-top: 2px; color: var(--text); font-size: 12px; font-weight: 400; }
.idphoto-settings-heading { display: flex; clear: both; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.idphoto-settings-heading > span, .idphoto-settings-heading strong, .idphoto-settings-heading small { display: block; }
.idphoto-settings-heading > span > strong { font-size: 17px; }
.idphoto-settings-heading small { margin-top: 3px; color: var(--text); font-size: 12px; font-weight: 400; }
.idphoto-parameter-summary { flex: 0 0 auto; padding: 8px 11px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 12px; }
.idphoto-section { padding: 18px; border-bottom: 1px solid var(--line); }
.idphoto-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.idphoto-section-title > span:first-child, .idphoto-section-title strong, .idphoto-section-title small { display: block; }
.idphoto-section-title strong { font-size: 15px; }
.idphoto-section-title small { margin-top: 2px; color: var(--text); font-size: 12px; }
.idphoto-section-title > span:last-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.idphoto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idphoto-grid > label, .idphoto-dpi { display: grid; gap: 6px; color: var(--text); font-size: 13px; }
.idphoto-grid input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .idphoto-grid select,
.idphoto-dpi input { min-height: 44px; padding: 8px 10px; border: 1px solid #c5d2e2; border-radius: 8px; color: var(--ink); background: #fff; }
.idphoto-size-field { grid-column: 1 / -1; }
.idphoto-control-group { grid-column: 1 / -1; padding: 0; border: 0; }
.idphoto-control-group > legend { padding: 0; margin-bottom: 8px; color: var(--text); font-size: 13px; }
.idphoto-color-options { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 8px; }
.idphoto-color-options label { position: relative; display: grid; min-height: 72px; place-items: center; gap: 4px; padding: 8px 5px; border: 1px solid #cbd7e6; border-radius: 10px; background: #fff; cursor: pointer; font-size: 12px; }
.idphoto-color-options input, .idphoto-choice-options input { position: absolute; opacity: 0; pointer-events: none; }
.idphoto-color-options label:has(input:checked), .idphoto-choice-options label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(23, 105, 224, .1); }
.idphoto-color-options label:has(input:focus-visible), .idphoto-choice-options label:has(input:focus-visible) { outline: 3px solid rgba(23, 105, 224, .25); outline-offset: 2px; }
.idphoto-color-options label > span { width: 28px; height: 28px; border: 1px solid rgba(24, 49, 83, .18); border-radius: 50%; background: var(--idphoto-swatch); box-shadow: inset 0 0 0 3px #fff; }
.idphoto-color-options .idphoto-custom-swatch > span { display: grid; place-items: center; color: var(--brand); background: #fff; font-size: 20px; box-shadow: none; }
.idphoto-custom-color { grid-template-columns: auto 52px auto; align-items: center; justify-content: start; gap: 10px; padding-top: 10px; }
.idphoto-custom-color input { width: 52px; min-height: 38px; padding: 3px; cursor: pointer; }
.idphoto-custom-color output { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.idphoto-rgb-fields { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); align-items: end; justify-content: stretch; }
.idphoto-rgb-fields label { display: grid; gap: 6px; color: var(--text); font-size: 13px; }
.idphoto-rgb-fields input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c5d2e2; border-radius: 8px; cursor: text; }
.idphoto-custom-kb { display: grid; gap: 8px; padding-top: 12px; color: var(--text); font-size: 13px; }
.idphoto-custom-kb > span { display: flex; justify-content: space-between; }
.idphoto-custom-kb input[type="range"] { width: 100%; accent-color: var(--brand); }
.idphoto-choice-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.idphoto-choice-options.two-options { grid-template-columns: repeat(2, 1fr); }
.idphoto-choice-options label { position: relative; min-height: 72px; padding: 13px; border: 1px solid #cbd7e6; border-radius: 10px; background: #fff; cursor: pointer; }
.idphoto-choice-options span, .idphoto-choice-options strong, .idphoto-choice-options small { display: block; }
.idphoto-choice-options strong { font-size: 14px; }
.idphoto-choice-options small { margin-top: 3px; color: var(--text); font-size: 11px; }
.idphoto-grid .idphoto-alignment { grid-column: 1 / -1; display: flex; min-height: 64px; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.idphoto-alignment > span:first-of-type { min-width: 0; flex: 1; }
.idphoto-alignment small { display: block; color: var(--text); font-size: 11px; }
.idphoto-range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.idphoto-range-grid label { display: grid; gap: 8px; color: var(--text); font-size: 13px; }
.idphoto-range-grid label > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idphoto-range-grid output { min-width: 40px; color: var(--brand); font-weight: 800; text-align: right; }
.idphoto-range-grid input[type="range"] { width: 100%; height: 5px; accent-color: var(--brand); cursor: pointer; }
.idphoto-advanced { clear: both; margin: 0; }
.idphoto-advanced summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; color: var(--ink); background: #fbfdff; cursor: pointer; list-style: none; }
.idphoto-advanced summary::-webkit-details-marker { display: none; }
.idphoto-advanced summary span, .idphoto-advanced summary strong, .idphoto-advanced summary small { display: block; }
.idphoto-advanced summary small { margin-top: 2px; color: var(--text); font-size: 11px; font-weight: 400; }
.idphoto-advanced summary svg { width: 19px; fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 180ms ease; }
.idphoto-advanced[open] summary svg { transform: rotate(180deg); }
.idphoto-advanced-grid { padding: 18px; border-top: 1px solid var(--line); }
.idphoto-dpi input { width: 100%; }
.idphoto-engine-note { display: flex; align-items: center; gap: 8px; padding: 10px 18px 18px; margin: 0; color: var(--text); font-size: 12px; }
.idphoto-engine-note span { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 12px; font-weight: 800; }
.idphoto-settings [hidden] { display: none; }
.speech-settings { padding: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 11px; }
.speech-settings legend { padding: 0 8px; margin-left: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.speech-settings .settings-grid { border-top: 0; }
.conversion-settings { margin-top: 16px; border: 1px solid var(--line); border-radius: 11px; }
.fixed-settings { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; margin-top: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.fixed-settings > span:first-child, .fixed-settings strong, .fixed-settings small { display: block; }
.fixed-settings small { color: var(--text); font-size: 12px; }
.fixed-settings .mini-file-icon { width: 34px; height: 40px; }
.conversion-settings summary, .task-details summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; cursor: pointer; list-style: none; }
.conversion-settings summary::-webkit-details-marker, .task-details summary::-webkit-details-marker { display: none; }
.conversion-settings summary > span, .conversion-settings summary strong, .conversion-settings summary small { display: block; }
.conversion-settings summary small { color: var(--text); font-size: 12px; font-weight: 400; }
.conversion-settings summary > svg, .task-details summary > svg { width: 19px; fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 180ms ease; }
.conversion-settings[open] summary > svg, .task-details[open] summary > svg { transform: rotate(180deg); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px 18px; border-top: 1px solid var(--line); }
.settings-grid > label { display: grid; gap: 6px; padding-top: 14px; color: var(--text); font-size: 13px; }
.settings-grid input:not([type="checkbox"]), .settings-grid select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cbd6e5; border-radius: 7px; color: var(--ink); background: #fff; }
.settings-grid .switch-row { display: flex; min-height: 44px; align-items: center; justify-content: space-between; }
.switch-row input { position: absolute; opacity: 0; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 20px; background: #c7d0dc; transition: background 180ms ease; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; content: ""; transition: transform 180ms ease; }
.switch-row input:checked + .switch { background: var(--brand); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.capacity-blocked { padding: 10px 12px; margin: 14px 0 0; border-radius: 8px; color: #8a4b00; background: #fff4df; font-size: 13px; text-align: center; }

.task-active { width: min(100%, 1040px); margin: 0 auto; }
.task-active.loading > :not(.task-state) { display: none; }
.task-state { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 28px; text-align: left; }
.task-state-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); }
.task-state-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.status-completed .task-state-icon { background: var(--success); }
.status-failed .task-state-icon { background: var(--danger); }
.task-state .eyebrow { margin-bottom: 2px; }
.task-state h1 { margin-bottom: 2px; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -.035em; }
.task-state p:last-child { margin-bottom: 0; color: var(--text); }
.current-task-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(44, 75, 112, .08); }
.task-progress-block { margin-bottom: 26px; }
.task-progress-block > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--text); font-size: 13px; }
.task-progress-value { color: var(--brand); font-size: 15px; }
.task-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef6; }
.task-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width 220ms ease; }
.task-files { display: grid; grid-template-columns: minmax(0, .85fr) 30px minmax(0, 1.15fr); align-items: center; gap: 20px; }
.task-input-list, .result-list { display: grid; gap: 10px; min-width: 0; }
.task-file-card { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.task-file-card > span:nth-child(2) { min-width: 0; flex: 1; }
.task-file-card strong, .task-file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-file-card strong { font-size: 14px; }
.task-file-card small { color: var(--text); font-size: 12px; }
.task-file-card .download-result { flex: 0 0 auto; min-height: 42px; padding-inline: 16px; background: var(--brand); }
.transfer-arrow { width: 28px; fill: none; stroke: #9aa8ba; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.result-placeholder, .task-error-message { padding: 18px; margin: 0; border-radius: 10px; color: var(--text); background: #f5f8fc; font-size: 14px; text-align: center; }
.task-error-message { color: var(--danger); background: #fff1f1; }
.task-secondary-actions { display: flex; justify-content: center; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
.continue-task { min-width: 220px; }
.simple-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 30px 0; list-style: none; }
.simple-steps::before { position: absolute; top: 17px; right: 16.66%; left: 16.66%; height: 2px; background: #d6e0ec; content: ""; }
.simple-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--text); font-size: 13px; }
.simple-steps li > span { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #bdc9d8; border-radius: 50%; color: #fff; background: #fff; }
.simple-steps li svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.simple-steps li.done > span { border-color: var(--success); background: var(--success); }
.simple-steps li.active > span { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.simple-steps li.failed > span { border-color: var(--danger); background: var(--danger); }
.task-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.task-facts article { display: flex; min-height: 84px; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task-facts article > svg { width: 30px; fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.task-facts article:last-child > svg { stroke: var(--success); }
.task-facts span, .task-facts strong, .task-facts small { display: block; }
.task-facts small { color: var(--text); }
.task-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.task-details summary > span { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.task-details summary span svg { width: 21px; fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.task-detail-content { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.task-id-row { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-size: 13px; }
.copy-task-id { min-height: 40px; padding: 6px 12px; border: 0; color: var(--brand); background: transparent; cursor: pointer; }
.page-progress-detail { margin: 4px 0 24px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.page-progress-heading { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.page-progress-heading > span, .page-progress-heading strong, .page-progress-heading small { display: block; }
.page-progress-heading small { margin-top: 2px; color: var(--text); font-size: 12px; }
.page-progress-count { color: var(--brand); font-size: 14px; white-space: nowrap; }
.page-progress-table-wrap { overflow-x: auto; border-block: 1px solid var(--line); }
.page-progress-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.page-progress-table th, .page-progress-table td { min-width: 104px; padding: 11px 16px; border-bottom: 1px solid #edf2f8; font-variant-numeric: tabular-nums; }
.page-progress-table th:first-child { min-width: 150px; }
.page-progress-table thead th { color: var(--text); background: #f5f8fc; font-weight: 600; }
.page-progress-table tbody th { color: var(--ink); font-weight: 600; }
.page-progress-table tbody tr:last-child > * { border-bottom: 0; }
.page-status-label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.page-status-label::before { width: 8px; height: 8px; border-radius: 50%; background: #a9b5c5; content: ""; }
.page-status-completed .page-status-label { color: var(--success); }
.page-status-completed .page-status-label::before { background: var(--success); }
.page-status-processing .page-status-label { color: var(--brand); }
.page-status-processing .page-status-label::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.page-status-failed .page-status-label { color: var(--danger); }
.page-status-failed .page-status-label::before { background: var(--danger); }
.page-progress-table td small { display: block; max-width: 240px; margin-top: 2px; color: var(--danger); }
.page-progress-pagination { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; }
.page-progress-pagination button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--brand); background: #fff; cursor: pointer; }
.page-progress-pagination button:disabled { color: #9aa8ba; background: #f4f6f9; cursor: not-allowed; }
.page-progress-pagination-label { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.event-list-title { margin: 4px 0 12px; font-size: 14px; }
.event-list { padding-left: 24px; margin: 4px 0 0; color: var(--text); }
.event-list li { padding: 0 0 14px 7px; }
.event-list li::marker { color: var(--brand); }
.event-list small { display: block; color: var(--muted); }

@keyframes soft-pulse {
  from { opacity: .55; }
  to { opacity: 1; }
}

.auth-layout { display: grid; min-height: 100dvh; grid-template-columns: 1fr 1fr; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px clamp(38px, 6vw, 90px) 80px; background: radial-gradient(circle at 65% 55%, rgba(67, 153, 255, .25), transparent 16rem), linear-gradient(140deg, #eef7ff, #ddecff); }
.auth-brand::after { position: absolute; right: -120px; bottom: -180px; width: 650px; height: 650px; border: 1px solid rgba(9, 103, 247, .15); border-radius: 50%; content: ""; }
.auth-brand > div { position: relative; z-index: 1; }
.auth-brand-title { margin-bottom: 22px; font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1.3; letter-spacing: -.04em; }
.auth-brand > div > p:not(.eyebrow) { color: var(--text); font-size: 22px; }
.auth-brand ul { padding: 0; margin-top: 30px; list-style: none; }
.auth-brand li { margin: 13px 0; font-size: 18px; }
.auth-brand li::before { display: inline-grid; width: 25px; height: 25px; margin-right: 12px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); content: "✓"; font-size: 13px; }
.auth-form-side { position: relative; display: grid; place-items: center; padding: 60px 7vw; }
.auth-home { position: absolute; top: 36px; right: 6vw; color: var(--brand); }
.auth-card { width: min(100%, 610px); padding: 34px 50px 38px; border: 1px solid #edf0f4; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; min-height: 54px; padding: 10px; color: #8a909b; font-size: 20px; text-align: center; }
.auth-tab.active { color: var(--brand); font-weight: 650; }
.auth-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--brand); content: ""; }
.auth-heading { margin: 34px 0 28px; text-align: center; }
.auth-heading h1 { margin-bottom: 5px; font-size: 34px; }
.auth-heading p { color: var(--text); }
.auth-form { display: grid; gap: 10px; }
.auth-form > label:not(.agreement) { color: var(--text); font-size: 14px; }
.phone-field, .code-field { display: grid; min-height: 56px; grid-template-columns: auto 1fr; border: 1px solid #cbd5e2; border-radius: 9px; overflow: hidden; }
.phone-field { grid-template-columns: 1fr; }
.phone-field input, .code-field input { width: 100%; min-width: 0; padding: 12px 16px; border: 0; outline: 0; }
.code-field { grid-template-columns: 1fr auto; }
.send-code { min-width: 135px; border: 0; border-left: 1px solid var(--line); color: var(--brand); background: #fff; cursor: pointer; }
.agreement { display: flex; min-height: 44px; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.agreement input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-error { min-height: 24px; margin: 0; color: var(--danger); font-size: 14px; }
.auth-switch, .auth-terms { margin: 18px 0 0; color: var(--text); text-align: center; }
.auth-switch a, .auth-terms a { color: var(--brand); }
.auth-terms { font-size: 13px; }

.help-hero { padding: 52px 0 34px; text-align: center; background: radial-gradient(circle at 20% 20%, rgba(103, 173, 255, .15), transparent 18rem), linear-gradient(145deg, #f8fbff, #ebf4ff); }
.help-hero h1 { margin-bottom: 8px; font-size: 58px; letter-spacing: -.04em; }
.help-hero > .shell > p:not(.eyebrow) { color: var(--text); font-size: 19px; }
.help-search { display: grid; width: min(100%, 900px); min-height: 64px; grid-template-columns: 1fr auto; gap: 8px; margin: 24px auto 14px; padding: 7px; border: 1px solid #d2dceb; border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(47, 84, 130, .1); }
.help-search input { min-width: 0; padding: 8px 18px; border: 0; outline: 0; font-size: 17px; }
.hot-search { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: var(--text); }
.hot-search button { min-height: 36px; padding: 5px 16px; border: 1px solid var(--brand); border-radius: 99px; color: var(--brand); background: transparent; cursor: pointer; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-title span { width: 5px; height: 30px; border-radius: 5px; background: var(--brand); }
.section-title h2 { margin: 0; font-size: 24px; }
.help-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.help-categories article { display: flex; min-height: 112px; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.help-categories article > span { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 14px; font-weight: 800; }
.help-categories h3 { margin-bottom: 2px; }
.help-categories p { margin-bottom: 0; color: var(--text); font-size: 14px; }
.help-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.faq-card, .tutorial-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.faq-card details { border-top: 1px solid var(--line); }
.faq-card summary { min-height: 48px; padding: 11px 4px; cursor: pointer; }
.faq-card details p { padding: 0 4px 14px; margin: 0; color: var(--text); }
.tutorial-card > a { display: flex; min-height: 96px; align-items: center; gap: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.tutorial-card > a + a { margin-top: 12px; }
.tutorial-card .file-mark { width: 54px; height: 66px; font-size: 18px; }
.tutorial-card a > div { min-width: 0; flex: 1; }
.tutorial-card small { display: block; color: var(--text); }
.tutorial-card b { color: var(--brand); font-size: 24px; }
.no-results { padding: 40px; color: var(--text); text-align: center; }

.site-footer { padding: 48px 0 20px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
.footer-grid p { color: var(--text); }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 9px; color: var(--text); font-size: 14px; }
.footer-grid strong { color: var(--ink); font-size: 15px; }
.copyright { margin: 38px 0 0; color: #5d6a80; font-size: 13px; text-align: center; }
.copyright a { color: #46546c; text-decoration: underline; text-underline-offset: 2px; }
.copyright a:hover { color: var(--brand); text-decoration: underline; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); padding: 13px 18px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }

.table-region-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(10, 25, 47, .28); }
.table-region-dialog::backdrop { background: rgba(10, 25, 47, .62); backdrop-filter: blur(3px); }
.table-region-shell { display: grid; max-height: calc(100dvh - 32px); grid-template-rows: auto auto minmax(0, 1fr) auto auto; padding: 24px; }
.table-region-shell header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.table-region-shell header h2 { margin: 0; font-size: 26px; }
.table-region-shell header .eyebrow { margin-bottom: 4px; }
.region-close { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 10px; color: var(--text); background: var(--soft); cursor: pointer; font-size: 28px; line-height: 1; }
.region-help { margin: 10px 0 16px; color: var(--text); }
.region-canvas-wrap { display: grid; min-height: 220px; overflow: auto; place-items: center; border-radius: 14px; background: #e9eef5; }
.region-canvas-wrap canvas { display: block; max-width: 100%; max-height: min(520px, 58dvh); cursor: crosshair; touch-action: none; }
.region-canvas-wrap canvas:focus-visible { outline: 4px solid rgba(23, 105, 224, .42); outline-offset: -4px; }
.region-live { min-height: 24px; margin: 10px 0 0; color: var(--text); font-size: 13px; }
.table-region-shell footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.table-region-shell footer .button { min-height: 44px; }

@media (max-width: 640px) {
  .table-region-dialog { width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .table-region-shell { max-height: 100dvh; padding: 18px; }
  .table-region-shell footer { grid-template-columns: 1fr 1fr; }
  .table-region-shell footer span { display: none; }
  .region-auto { grid-column: 1 / -1; }
  .selected-file { align-items: flex-start; }
  .selected-file-actions { flex-wrap: wrap; justify-content: flex-end; }
  .table-region-button { min-width: 88px; }
}

.redeem-header { border-bottom: 1px solid #e4ebf5; background: rgba(255, 255, 255, .96); }
.redeem-header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.redeem-validity { display: inline-flex; min-height: 40px; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 99px; color: #214165; background: #eef5ff; font-size: 14px; font-weight: 650; }
.redeem-validity i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(8, 127, 91, .1); }
.redeem-validity.invalid { color: #9f2020; background: #fff0f0; }
.redeem-validity.invalid i { background: var(--danger); box-shadow: 0 0 0 5px rgba(201, 42, 42, .1); }
.redeem-page { min-height: calc(100dvh - 76px); padding: 46px 24px 70px; background: radial-gradient(circle at 10% 5%, rgba(85, 151, 255, .13), transparent 22rem), linear-gradient(145deg, #f8fbff, #eef5ff); }
.redeem-card { width: min(100%, 1040px); min-height: 720px; padding: 48px 64px; margin: 0 auto; border: 1px solid #dce6f3; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(50, 87, 137, .13); }
.redeem-loading { display: grid; min-height: 560px; place-items: center; align-content: center; gap: 18px; color: var(--text); }
.redeem-loading span { width: 42px; height: 42px; border: 4px solid #dce8fa; border-top-color: var(--brand); border-radius: 50%; animation: redeem-spin 800ms linear infinite; }
@keyframes redeem-spin { to { transform: rotate(360deg); } }
.redeem-content > .eyebrow { margin-bottom: 8px; text-align: center; }
.redeem-content > h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 48px); line-height: 1.2; letter-spacing: -.045em; text-align: center; }
.redeem-lead { margin-bottom: 28px; color: var(--text); font-size: 17px; text-align: center; }
.redeem-order-tail { margin: -18px 0 24px; color: var(--muted); font-size: 13px; text-align: center; }
.redeem-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.redeem-facts article { display: grid; min-height: 108px; align-content: center; padding: 17px 20px; border: 1px solid #dce6f3; border-radius: 16px; background: #f8fbff; }
.redeem-facts article.expires { border-color: #eed3a2; background: #fff9ef; }
.redeem-facts span, .redeem-facts small { color: var(--text); font-size: 13px; }
.redeem-facts strong { margin: 3px 0 1px; font-size: 21px; line-height: 1.35; }
.redeem-facts .expires span, .redeem-facts .expires small { color: #805b19; }
.redeem-facts .expires strong { color: #67450c; }
.redeem-uploader { padding: 18px; border: 1px solid #dce6f3; border-radius: 20px; box-shadow: 0 12px 36px rgba(50, 87, 137, .08); }
.redeem-uploader .upload-drop { width: 100%; min-height: 245px; border: 2px dashed #83aeef; color: var(--ink); background: #f9fbfe; cursor: pointer; }
.redeem-uploader .upload-drop:hover, .redeem-uploader.dragging .upload-drop { background: var(--brand-soft); }
.redeem-uploader .upload-icon { width: 64px; margin-bottom: 13px; padding: 14px; border-radius: 16px; background: #e7f1ff; }
.redeem-uploader .upload-icon svg { stroke-width: 2; }
.redeem-uploader .upload-drop strong { font-size: 21px; }
.redeem-uploader .upload-drop small { margin-top: 6px; color: var(--text); font-size: 14px; }
.redeem-uploader .selected-files { max-width: none; }
.redeem-uploader .upload-confirm { max-width: none; min-height: 52px; }
.redeem-uploader .redeem-output-settings { margin: 16px 0 8px; }
.redeem-uploader .image-output-options label { min-height: 92px; }
.redeem-inline-error { min-height: 24px; margin: 8px 2px 0; color: var(--danger); font-size: 14px; }
.redeem-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 28px 0 12px; list-style: none; }
.redeem-steps li { position: relative; display: flex; min-height: 44px; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.redeem-steps li:not(:last-child)::after { position: absolute; top: 21px; right: -21px; width: 42px; height: 2px; background: #cfdaea; content: ""; }
.redeem-steps span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e4ecf7; }
.redeem-steps .active { color: var(--ink); }
.redeem-steps .active span { color: #fff; background: var(--brand); }
.redeem-steps .done { color: var(--success); }
.redeem-steps .done span { color: #fff; background: var(--success); }
.redeem-steps .failed { color: var(--danger); }
.redeem-steps .failed span { color: #fff; background: var(--danger); }
.redeem-recovery { margin: 0; color: var(--text); font-size: 14px; text-align: center; }
.redeem-privacy-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-top: 20px; border: 1px solid #dbe7f7; border-radius: 12px; color: var(--text); background: #f8fbff; text-align: left; }
.redeem-privacy-note svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--primary); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.redeem-privacy-note p { display: grid; margin: 0; gap: 4px; }
.redeem-privacy-note span { color: var(--muted); font-size: 13px; line-height: 1.65; }
.redeem-task-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.redeem-task-heading .eyebrow { margin-bottom: 7px; }
.redeem-task-heading h1 { margin-bottom: 8px; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.redeem-task-message { max-width: 680px; margin-bottom: 0; color: var(--text); font-size: 17px; }
.redeem-task-status { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; padding: 7px 15px; border-radius: 99px; color: #174d8d; background: var(--brand-soft); font-size: 14px; font-weight: 700; }
.redeem-task.status-completed .redeem-task-status { color: #086249; background: #e8f7f1; }
.redeem-task.status-failed .redeem-task-status { color: #9f2020; background: #fff0f0; }
.redeem-progress-card { padding: 24px 26px; border: 1px solid #dce6f3; border-radius: 18px; background: #f8fbff; }
.redeem-progress-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--text); }
.redeem-progress-summary strong { color: var(--ink); font-size: 23px; font-variant-numeric: tabular-nums; }
.redeem-progress-track { height: 12px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #dde8f6; }
.redeem-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width 220ms ease; }
.redeem-task.status-completed .redeem-progress-track span { background: var(--success); }
.redeem-task.status-failed .redeem-progress-track span { background: var(--danger); }
.redeem-page-summary { margin: 12px 0 0; color: var(--text); font-size: 14px; }
.redeem-file-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; gap: 18px; margin-top: 20px; }
.redeem-file-flow article { display: flex; min-width: 0; min-height: 110px; align-items: center; gap: 16px; padding: 18px; border: 1px solid #dce6f3; border-radius: 17px; background: #fff; }
.redeem-file-flow article > div { display: grid; min-width: 0; }
.redeem-file-flow small, .redeem-file-flow span:not(.redeem-file-mark) { color: var(--text); font-size: 13px; }
.redeem-file-flow strong { overflow: hidden; margin: 2px 0; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.redeem-file-flow > svg { width: 28px; align-self: center; fill: none; stroke: #8da0b8; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.redeem-file-mark { display: grid; width: 48px; height: 56px; flex: 0 0 auto; place-items: center; border: 2px solid currentColor; border-radius: 8px 8px 11px 11px; background: #fff; font-size: 14px; font-weight: 800; }
.redeem-file-mark.input { color: var(--brand); }
.redeem-file-mark.output { color: var(--success); }
.redeem-downloads { display: flex; justify-content: flex-end; margin-top: 14px; }
.redeem-downloads .button { min-width: 220px; }
.redeem-retry { display: block; min-width: 260px; margin: 14px 0 0 auto; }
.redeem-retry[hidden] { display: none; }
.redeem-link-note { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin-top: 22px; border: 1px solid #d8e4f3; border-radius: 15px; color: #214165; background: #f4f8ff; }
.redeem-link-note svg { width: 24px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.redeem-link-note p { display: grid; margin: 0; }
.redeem-link-note span { color: var(--text); font-size: 14px; }
.redeem-error { display: grid; min-height: 560px; place-items: center; align-content: center; text-align: center; }
.redeem-error > span { display: grid; width: 64px; height: 64px; margin-bottom: 18px; place-items: center; border-radius: 50%; color: #9b6100; background: #fff2d7; font-size: 32px; font-weight: 800; }
.redeem-error h1 { margin-bottom: 8px; font-size: 34px; }
.redeem-error p { max-width: 560px; margin-bottom: 24px; color: var(--text); }

@media (max-width: 1180px) {
  .site-nav { gap: 18px; }
  .nav-muted { display: none !important; }
  .home-tool-browser { grid-template-columns: 225px minmax(0, 1fr); }
  .home-tool-sidebar { padding-inline: 14px; }
  .home-tool-main { padding: 22px; }
  .home-tool-main .upload-card { grid-template-columns: minmax(360px, 1fr) minmax(310px, 350px); gap: 12px 18px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero-copy h1 { font-size: 54px; }
  .workspace-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .workspace-content { padding: 34px; }
  .task-files { gap: 13px; }
  .task-file-card .download-result { padding-inline: 12px; font-size: 13px; }
}

@media (max-width: 1050px) {
  .home-tool-main .upload-card { height: auto; grid-template-columns: 1fr; grid-template-rows: minmax(260px, auto) minmax(300px, auto) auto; }
  .home-parameter-panels { max-height: 300px; grid-column: 1; grid-row: 1; }
  .home-tool-main .upload-drop { grid-column: 1; grid-row: 2; }
  .home-tool-main .upload-notes { grid-column: 1; grid-row: 3; }
}

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { justify-content: space-between; }
  .menu-toggle { display: block; order: 3; }
  .site-nav { position: absolute; top: 74px; right: 16px; left: 16px; display: none; min-height: auto; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav .nav-muted { min-height: 48px; padding: 0 14px; }
  .site-nav a.active::after { top: 11px; right: auto; bottom: 11px; left: 0; width: 3px; height: auto; }
  .header-actions { margin-left: auto; }
  .home-hero-banner, .home-hero-banner-inner { min-height: 288px; }
  .home-hero-banner::after { background: linear-gradient(90deg, rgba(242, 247, 255, .99) 0%, rgba(242, 247, 255, .94) 58%, rgba(242, 247, 255, .26) 100%); }
  .home-hero-art { object-position: 62% center; opacity: .65; }
  .home-hero-banner-inner { padding-inline: 4px; }
  .home-hero-copy { width: 72%; }
  .home-hero-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tool-browser { grid-template-columns: 1fr; }
  .home-tool-sidebar { padding: 18px; border-right: 0; border-bottom: 1px solid #e6ecf4; }
  .home-tool-sidebar > h2 { margin-bottom: 8px; }
  .home-tool-tabs { grid-template-columns: repeat(3, 1fr); }
  .home-tool-menu { padding-top: 10px; margin-top: 10px; }
  .home-tool-links { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .home-tool-main { padding: 22px; }
  .home-how-grid, .home-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 54px; }
  .hero-copy h1 { max-width: 720px; font-size: clamp(44px, 8vw, 64px); }
  .upload-card { padding: 24px; }
  .tool-grid, .value-grid, .steps-grid, .help-categories { grid-template-columns: 1fr 1fr; }
  .steps-grid article::after { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 35px; }
  .workspace-page { padding: 12px; }
  .workspace-shell { min-height: calc(100dvh - 96px); grid-template-columns: minmax(0, 1fr); }
  .workspace-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-section { grid-column: 1; }
  .history-section { grid-column: 2; grid-row: 1 / span 2; padding-top: 0; margin-top: 0; border-top: 0; }
  .history-list { max-height: 218px; overflow-y: auto; }
  .workspace-content { padding: 32px 24px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .help-columns { grid-template-columns: 1fr; }
  .redeem-card { padding: 42px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 8px; }
  .site-header .brand span { font-size: 22px; }
  .site-header .brand svg { width: 36px; height: 36px; }
  .menu-toggle { flex: 0 0 48px; }
  .header-actions .button { min-height: 42px; padding-inline: 15px; font-size: 14px; }
  .home-hero { padding-bottom: 36px; }
  .home-hero-banner, .home-hero-banner-inner { min-height: 135px; }
  .home-hero-banner::after { background: rgba(242, 247, 255, .86); }
  .home-hero-art { object-position: 68% center; opacity: .25; }
  .home-hero-banner-inner { padding: 16px 4px; }
  .home-hero-copy { width: 100%; }
  .home-hero-copy h1 { margin-bottom: 8px; font-size: 28px; }
  .home-hero-lead { font-size: 14px; line-height: 1.65; }
  .home-hero-trust { display: none; }
  .home-tool-browser { width: min(calc(100% - 24px), var(--shell)); border-radius: 16px; }
  .home-tool-sidebar { padding: 12px; }
  .home-tool-sidebar > h2 { font-size: 16px; }
  .home-tool-tab { min-height: 48px; grid-template-columns: 28px minmax(0, 1fr); gap: 5px; padding-inline: 6px; font-size: 12px; text-align: center; }
  .home-tool-tab > span:last-child { display: none; }
  .home-category-icon { width: 26px; height: 29px; justify-self: end; font-size: 11px; }
  .home-tool-menu { padding-top: 8px; margin-top: 8px; }
  .home-tool-menu [data-home-panel] > p { display: none; }
  .home-tool-links { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 5px; }
  .home-tool-links button { min-height: 72px; grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 5px; text-align: center; }
  .home-tool-links button > span:last-child, .home-tool-links small { display: none; }
  .home-mini-icon { width: 30px; height: 32px; border-radius: 5px 5px 7px 7px; }
  .home-mini-icon.word, .home-mini-icon.excel, .home-mini-icon.audio { font-size: 15px; }
  .home-mini-icon.image { font-size: 13px; }
  .home-tool-main { padding: 14px 12px 20px; }
  .home-tool-main .upload-card { grid-template-rows: 105px minmax(250px, auto) auto; margin-inline: 0; }
  .home-parameter-panels { max-height: 105px; padding: 12px; }
  .home-parameters-title { padding-bottom: 8px; margin-bottom: 8px; }
  .home-tool-main .upload-drop { min-height: 250px; padding: 12px 14px; }
  .home-tool-current { margin-bottom: 6px; }
  .home-tool-current h2 { font-size: 17px; }
  .home-tool-current p { display: none; }
  .home-tool-main .upload-icon { width: 48px; padding: 7px; }
  .home-tool-main .upload-drop h3 { margin-top: 6px; font-size: 18px; }
  .home-upload-helper { margin-bottom: 8px; }
  .home-tool-main .file-picker { min-height: 50px; font-size: 16px; }
  .home-parameter-hint { display: none; }
  .home-tool-main .image-output-options { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .guide-hero { padding: 56px 0 42px; }
  .guide-hero h1 { font-size: 40px; }
  .guide-hero > .shell > p:not(.eyebrow) { font-size: 17px; }
  .guide-table-wrap { margin-inline: -2px; }
  .guide-table-wrap th, .guide-table-wrap td { padding: 14px 16px; }
  .trust-row, .feature-row { display: grid; gap: 12px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .upload-card { margin-inline: -4px; padding: 14px; border-radius: 17px; }
  .upload-drop { min-height: 300px; padding: 22px 14px; }
  .upload-drop h2 { font-size: 17px; }
  .upload-notes { display: grid; gap: 6px; justify-content: start; padding-inline: 8px; }
  .section { padding-block: 52px; }
  .section-heading { display: block; }
  .section-heading h2, .center-heading h2 { font-size: 29px; }
  .tool-grid, .value-grid, .steps-grid, .help-categories { grid-template-columns: 1fr; }
  .home-guide-heading { display: block; }
  .home-guide-heading > p { margin-top: 12px; }
  .home-comparison-wrap { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .home-comparison, .home-comparison tbody { display: block; }
  .home-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .home-comparison tr { display: grid; padding: 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .home-comparison tr + tr { margin-top: 12px; }
  .home-comparison th, .home-comparison td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; width: auto; padding: 9px 0; border-bottom: 1px solid #e8eef6; white-space: normal; }
  .home-comparison th::before, .home-comparison td::before { color: #6b7890; content: attr(data-label); font-size: 12px; font-weight: 700; }
  .home-comparison tbody tr > *:last-child { border-bottom: 0; }
  .home-how-grid h2, .home-faq-grid h2 { font-size: 29px; }
  .home-step-list li { padding-inline: 16px; }
  .tool-card { min-height: 112px; padding: 18px; }
  .file-mark { width: 58px; height: 70px; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; }
  .conversion-icons .file-mark { width: 62px; height: 74px; }
  .work-header-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .work-header-inner > strong { justify-self: start; }
  .work-header .brand span { display: none; }
  .work-header nav > a:first-child { display: none; }
  .workspace-page { padding: 0; }
  .workspace-shell { min-height: calc(100dvh - 72px); border: 0; border-radius: 0; box-shadow: none; }
  .workspace-rail { display: block; grid-row: 2; padding: 16px; }
  .workspace-content { grid-row: 1; }
  .tool-section { padding-top: 0; }
  .tool-section .rail-tool { min-height: 58px; }
  .history-section { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line); }
  .history-list { display: flex; max-height: none; padding-bottom: 4px; overflow-x: auto; }
  .history-item { min-width: 250px; }
  .workspace-content { padding: 28px 16px 40px; }
  .workspace-uploader { padding: 12px; }
  .workspace-uploader .upload-drop { min-height: 260px; padding: 24px 14px; }
  .file-review { min-height: 0; grid-template-columns: 1fr; }
  .file-review-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .file-review-list .selected-files { max-height: 220px; }
  .file-preview-toolbar { flex-wrap: wrap; }
  .file-preview-toolbar > span { flex-basis: calc(100% - 170px); }
  .file-preview-stage { min-height: 300px; padding: 8px; }
  .file-preview-object { min-height: 360px; }
  .file-preview-stage img, .file-preview-stage video { max-height: 360px; }
  .settings-grid { grid-template-columns: 1fr; }
  .idphoto-settings-heading { align-items: flex-start; flex-direction: column; }
  .idphoto-parameter-summary { white-space: normal; }
  .idphoto-grid, .idphoto-range-grid { grid-template-columns: 1fr; }
  .idphoto-color-options { grid-template-columns: repeat(4, 1fr); }
  .idphoto-choice-options, .idphoto-choice-options.two-options { grid-template-columns: 1fr; }
  .image-output-options { grid-template-columns: 1fr; }
  .selected-file { flex-wrap: wrap; }
  .selected-file-actions { width: 100%; justify-content: flex-start; }
  .task-state { align-items: flex-start; justify-content: flex-start; margin-top: 0; }
  .task-state-icon { width: 48px; height: 48px; }
  .task-state h1 { font-size: 27px; }
  .current-task-card { padding: 16px; }
  .task-files { grid-template-columns: 1fr; }
  .transfer-arrow { margin: auto; transform: rotate(90deg); }
  .task-file-card { flex-wrap: wrap; }
  .task-file-card .download-result { width: 100%; }
  .task-facts { grid-template-columns: 1fr; }
  .task-facts article { min-height: 74px; }
  .simple-steps strong { font-size: 12px; }
  .auth-form-side { align-items: start; padding: 82px 16px 30px; }
  .auth-home { top: 22px; right: 20px; }
  .auth-card { padding: 22px 18px 28px; border-radius: 16px; }
  .auth-heading h1 { font-size: 29px; }
  .help-hero h1 { font-size: 43px; }
  .help-search { min-height: 58px; grid-template-columns: 1fr; padding: 8px; }
  .help-search .button { width: 100%; }
  .hot-search span { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .redeem-header-inner { min-height: 68px; }
  .redeem-header .brand { font-size: 22px; }
  .redeem-header .brand svg { width: 36px; height: 36px; }
  .redeem-validity { padding-inline: 12px; font-size: 12px; }
  .redeem-page { min-height: calc(100dvh - 68px); padding: 0; background: #fff; }
  .redeem-card { min-height: calc(100dvh - 68px); padding: 24px 16px 36px; border: 0; border-radius: 0; box-shadow: none; }
  .redeem-content > h1 { font-size: 28px; }
  .redeem-lead { margin-bottom: 20px; font-size: 15px; }
  .redeem-order-tail { margin-bottom: 18px; }
  .redeem-facts { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .redeem-facts article { min-height: 96px; padding: 14px; }
  .redeem-facts article.expires { grid-column: 1 / -1; min-height: 72px; grid-template-columns: 1fr auto; align-items: center; align-content: initial; }
  .redeem-facts article.expires span, .redeem-facts article.expires strong { grid-column: 1; }
  .redeem-facts article.expires small { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .redeem-facts strong { font-size: 18px; }
  .redeem-uploader { padding: 10px; border-radius: 16px; }
  .redeem-uploader .upload-drop { min-height: 184px; padding: 18px 12px; }
  .redeem-uploader .upload-drop strong { font-size: 18px; }
  .redeem-uploader .upload-icon { width: 54px; margin-bottom: 9px; padding: 11px; }
  .redeem-uploader .redeem-output-settings { margin-top: 12px; }
  .redeem-uploader .image-output-options { grid-template-columns: 1fr; gap: 8px; }
  .redeem-uploader .image-output-options label { min-height: 74px; padding: 12px; align-items: flex-start; }
  .redeem-uploader .image-output-options label:has(input:checked) { padding: 11px; }
  .redeem-uploader .image-output-options strong { font-size: 14px; }
  .redeem-uploader .image-order-note { min-height: 38px; margin-top: 8px; font-size: 12px; }
  .redeem-uploader .selected-file { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .redeem-uploader .selected-file-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) repeat(3, 44px); gap: 8px; justify-content: initial; }
  .redeem-uploader .table-region-button { width: 100%; min-width: 0; }
  .redeem-uploader .upload-confirm { min-height: 54px; font-size: 16px; }
  .redeem-steps { gap: 8px; }
  .redeem-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; }
  .redeem-steps li:not(:last-child)::after { top: 15px; right: -16px; width: 32px; }
  .redeem-steps strong { font-size: 12px; }
  .redeem-task-heading { display: grid; gap: 14px; margin-bottom: 22px; }
  .redeem-task-heading h1 { font-size: 31px; }
  .redeem-task-message { font-size: 15px; }
  .redeem-task-status { justify-self: start; }
  .redeem-progress-card { padding: 18px 16px; }
  .redeem-file-flow { grid-template-columns: 1fr; gap: 10px; }
  .redeem-file-flow article { min-height: 92px; }
  .redeem-file-flow > svg { width: 24px; justify-self: center; transform: rotate(90deg); }
  .redeem-downloads { display: grid; }
  .redeem-downloads .button { width: 100%; min-width: 0; }
  .redeem-retry { width: 100%; min-width: 0; }
  .redeem-link-note { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
