:root {
    color-scheme: light;
    --ink: #17233b;
    --muted: #64728a;
    --line: #e2e8f0;
    --blue: #315ee8;
    --blue-dark: #244bc4;
    --surface: #ffffff;
    --background: #f5f7fb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.site-header { height: 76px; padding: 0 max(24px, calc((100% - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header { gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.brand img { width: 216px; height: 44px; display: block; }
.main-nav { margin-left: auto; }
.language-switcher { position: relative; flex: 0 0 auto; }
.language-toggle { height: 38px; min-width: 78px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #344054; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.language-toggle img, .language-menu img { width: 20px; height: 15px; display: block; object-fit: cover; border-radius: 2px; }
.language-toggle:hover, .language-toggle[aria-expanded="true"] { border-color: #b8c6ec; background: #f8faff; color: var(--blue); }
.language-menu { position: absolute; z-index: 100; top: calc(100% + 8px); right: 0; width: 280px; max-height: 420px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 16px 40px #17233b24; }
.language-menu[hidden] { display: none; }
.language-menu button { width: 100%; min-height: 42px; padding: 7px 9px; display: grid; grid-template-columns: 24px 28px 1fr 18px; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: white; color: #344054; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.language-menu button:hover { background: #f2f5ff; }
.language-menu button[aria-current="true"] { background: #edf3ff; color: var(--blue); }
.language-menu button > span:nth-child(2) { font-weight: 800; }
.language-check { justify-self: end; color: var(--blue); font-weight: 800; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); color: white; font-size: 17px; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 550; }
.main-nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--blue); }
.breadcrumb-nav { max-width: 1160px; padding: 13px 24px 0; margin: auto; }
.breadcrumb-nav ol { padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumb-nav li + li::before { content: "/"; margin-right: 8px; color: #a0a9b8; }
.breadcrumb-nav a:hover { color: var(--blue); }
.breadcrumb-nav [aria-current="page"] { color: #344054; font-weight: 600; }
.hero { max-width: 860px; padding: 72px 24px 30px; margin: auto; text-align: center; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -.055em; }
.hero-copy { max-width: 650px; margin: 18px auto 34px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.workspace { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 48px #273c6710; text-align: left; }
.upload-area { min-height: 250px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #cbd6e8; border-radius: 14px; background: #fbfcff; cursor: pointer; transition: .18s ease; }
.upload-area:hover, .upload-area.is-dragging { border-color: var(--blue); background: #f2f6ff; }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #e9efff; color: var(--blue); font-size: 28px; }
.upload-area h2 { margin: 14px 0 4px; font-size: 18px; }
.upload-area p { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.upload-area small { margin-top: 14px; color: var(--muted); font-size: 11px; }
.button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.tool-controls { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.tool-controls label { color: var(--muted); font-size: 13px; font-weight: 650; }
.tool-controls select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.tool-controls .button { margin-left: auto; }
.status { min-height: 20px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.status-error { color: #b42318; }
.file-list { display: grid; gap: 8px; }
.conversion-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.conversion-progress[hidden] { display: none; }
.conversion-progress-track { height: 8px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--line); }
.conversion-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.conversion-progress-label { min-width: 38px; color: var(--muted); font-size: 12px; text-align: right; }
.file-item { min-height: 72px; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 12px; }
.word-file-item { flex-wrap: wrap; }
.word-file-item .file-item-info { flex: 1 1 calc(100% - 72px); }
.word-file-item .document-preview { flex: 1 0 100%; height: 190px; }
.file-item-info { min-width: 0; display: flex; flex: 1; align-items: center; gap: 10px; }
.file-preview { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #f7f8fa; }
.file-preview-canvas { width: auto; height: auto; max-width: 56px; max-height: 56px; flex: 0 0 auto; background: #fff; }
.file-preview-pdf-placeholder { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #f7f8fa; color: var(--muted); font-size: 11px; font-weight: 700; }
.file-item-details { min-width: 0; display: grid; gap: 3px; }
.file-name { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 11px; }
.file-item-download, .file-item-view { min-height: 34px; padding: 0 10px; flex: 0 0 auto; font-size: 11px; }
.remove-file { border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 650; cursor: pointer; }
.results { display: grid; gap: 14px; margin-top: 14px; }
.result-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.result-card h3 { margin: 0 0 10px; overflow-wrap: anywhere; font-size: 14px; }
.result-text { width: 100%; min-height: 150px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.document-preview { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.result-actions { display: flex; gap: 8px; margin-top: 10px; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.content-section { max-width: 1000px; padding: 50px 24px; margin: auto; }
#tools.content-section { max-width: 1180px; }
.how-to-section { max-width: 1160px; }
.how-to-section .section-heading { margin-bottom: 48px; }
.how-to-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.how-to-card { position: relative; min-height: 300px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px #273c670d; }
.how-to-number { position: absolute; top: -44px; left: 50%; z-index: 0; transform: translateX(-50%); color: #f0f1f3; font-size: 68px; font-weight: 800; line-height: 1; }
.how-to-card-content { position: relative; z-index: 1; }
.how-to-icon { width: 42px; height: 42px; display: inline-flex; color: var(--blue); }
.how-to-icon svg { width: 100%; height: 100%; }
.how-to-card h3 { margin: 24px 0 16px; font-size: 18px; }
.how-to-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.section-heading { margin-bottom: 22px; text-align: center; }
.section-heading h2, .text-section h2 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 14px; }
#tools .section-heading { margin-bottom: 0; }
#tools .section-heading h2 { font-size: 32px; }
.tool-search { max-width: 440px; margin: 26px auto 42px; }
.tool-search-field { position: relative; display: flex; align-items: center; }
.tool-search-field input { width: 100%; height: 44px; padding: 0 42px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; box-shadow: 0 1px 2px #0f172a0a; transition: border-color .18s ease, box-shadow .18s ease; }
.tool-search-field input::placeholder { color: #9ca3af; }
.tool-search-field input:focus { border-color: #93c5fd; outline: 0; box-shadow: 0 0 0 3px #3b82f61a; }
.tool-search-icon { position: absolute; left: 14px; width: 16px; height: 16px; color: #9ca3af; pointer-events: none; }
.tool-search-clear { position: absolute; right: 8px; width: 30px; height: 30px; padding: 7px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; cursor: pointer; }
.tool-search-clear:hover { background: #f3f4f6; color: #4b5563; }
.tool-search-clear svg { width: 16px; height: 16px; }
.tool-search-clear[hidden], .tool-empty-state[hidden], .tool-category[hidden], .tool-card[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tool-category + .tool-category { margin-top: 36px; }
.tool-category-heading { margin: 0 0 16px; color: #111827; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card { min-width: 0; min-height: 76px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s cubic-bezier(.22, 1, .36, 1), border-color .18s ease; }
.tool-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 20px #0f172a0f; transform: translateY(-2px); }
.tool-card:active { transform: translateY(0); }
.tool-card:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.tool-card-icon { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; }
.tool-card-icon svg { width: 44px; height: 44px; display: block; }
.tool-card-label { min-width: 0; }
.tool-card strong { display: block; overflow-wrap: anywhere; color: #1f2937; font-size: 14px; font-weight: 600; line-height: 1.35; }
.tool-empty-state { padding: 48px 24px; margin-top: 20px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; text-align: center; }
.tool-empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #f3f4f6; color: #9ca3af; }
.tool-empty-icon svg { width: 24px; height: 24px; }
.tool-empty-state h3 { margin: 0; color: #111827; font-size: 16px; }
.tool-empty-state p { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.tool-empty-state .button { margin: auto; }
.text-section { max-width: 780px; padding-top: 24px; padding-bottom: 72px; }
.text-section > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.detail-banner-section { max-width: 1160px; display: grid; grid-template-columns: minmax(0, .96fr) minmax(340px, 1.04fr); align-items: center; gap: 44px; }
.detail-banner-copy { min-width: 0; }
.detail-banner-copy h2 { margin-bottom: 14px; }
.detail-banner-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.detail-banner-media { min-width: 0; }
.detail-banner-media img { width: 100%; height: auto; display: block; border-radius: 16px; }
.feature-faq-section { max-width: 1160px; padding-top: 24px; }
.feature-faq-section .section-heading { margin-bottom: 28px; }
.feature-faq-list { max-width: 820px; margin: auto; display: grid; gap: 12px; }
.feature-faq-list details { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 8px 24px #273c6708; }
.feature-faq-list summary { min-height: 64px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.feature-faq-list summary::-webkit-details-marker { display: none; }
.feature-faq-list summary::marker { content: ""; }
.faq-toggle { width: 28px; height: 28px; flex: 0 0 28px; position: relative; border-radius: 50%; background: #eef3ff; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .18s ease; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.feature-faq-list details[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.feature-faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.feature-faq-list details p { margin: 0; padding: 16px 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.text-link { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 14px; font-weight: 700; }
.info-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; }
.info-card h2 { margin: 18px 0 7px; font-size: 19px; }
.info-card h2:first-child { margin-top: 0; }
.info-card p, .steps { color: var(--muted); font-size: 14px; line-height: 1.8; }
.steps { padding-left: 22px; }
.steps li { padding: 8px 0; }
.steps strong { color: var(--ink); }
.site-footer { padding: 36px max(24px, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); background: white; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 36px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.footer-column strong { margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.footer-brand-column { gap: 10px; }
.footer-brand-column .brand { margin-bottom: 8px; }
.footer-bottom { padding-top: 24px; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-cookie-settings { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 650; cursor: pointer; }
.cookie-notice { position: fixed; right: 24px; bottom: 24px; z-index: 1000; }
.cookie-notice[hidden] { display: none; }
.cookie-dialog { width: min(360px, calc(100vw - 32px)); max-height: min(86vh, 680px); overflow-y: auto; padding: 18px 20px 16px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; box-shadow: 0 16px 42px #10182838; color: #252b36; }
.cookie-dialog:focus { outline: none; }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cookie-globe { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #667085; border-radius: 50%; color: #475467; font-size: 18px; line-height: 1; }
.cookie-close { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #475467; font-size: 26px; line-height: 1; cursor: pointer; }
.cookie-dialog h2 { margin: 0 0 10px; color: #30343b; font-size: 18px; line-height: 1.3; }
.cookie-dialog > p { margin: 0 0 14px; color: #3d424b; font-size: 12px; line-height: 1.65; }
.cookie-dialog > p a { color: #172b62; text-decoration: underline; }
.cookie-accept { width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: #06133d; color: white; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.cookie-accept:hover { background: #14285f; }
.cookie-reject, .cookie-show-details, .cookie-save { width: 100%; min-height: 38px; border: 0; background: transparent; color: #535862; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cookie-reject { color: #475467; }
.cookie-show-details { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: .03em; }
.cookie-show-details span:first-child { font-size: 16px; }
.cookie-save { min-height: 40px; margin-top: 5px; border: 1px solid #cbd5e1; border-radius: 8px; color: #172b62; }
.cookie-save[hidden], .cookie-details[hidden], .cookie-error[hidden] { display: none; }
.cookie-details { margin: 2px 0 14px; border-top: 1px solid #eaecf0; }
.cookie-category { min-height: 58px; padding: 9px 2px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eaecf0; }
.cookie-category > div { display: grid; gap: 3px; }
.cookie-category strong { color: #30343b; font-size: 12px; }
.cookie-category small { color: #667085; font-size: 10px; line-height: 1.4; }
.cookie-required { flex: 0 0 auto; color: #667085; font-size: 10px; font-weight: 700; }
.cookie-category input[type="checkbox"] { width: 38px; height: 22px; flex: 0 0 38px; margin: 0; position: relative; appearance: none; border: 1px solid #98a2b3; border-radius: 999px; background: #e4e7ec; cursor: pointer; transition: background .16s ease; }
.cookie-category input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #10182840; transition: transform .16s ease; }
.cookie-category input[type="checkbox"]:checked { border-color: var(--blue); background: var(--blue); }
.cookie-category input[type="checkbox"]:checked::before { transform: translateX(16px); }
.cookie-category input[type="checkbox"]:focus-visible, .cookie-dialog button:focus-visible { outline: 2px solid #4f76ea; outline-offset: 2px; }
.cookie-error { padding: 9px; border-radius: 6px; background: #fef3f2; color: #b42318 !important; }
.text-editor-page .hero { max-width: 1280px; padding-top: 48px; }
.text-editor-page h1 { font-size: clamp(32px, 4vw, 46px); }
.text-editor-page .hero-copy { margin-top: 11px; margin-bottom: 24px; }
.text-document-workspace { padding: 15px 20px 12px; border: 1px solid #dfe4ec; border-radius: 14px; background: #fff; box-shadow: 0 12px 34px #273c670d; text-align: left; }
.rich-editor-toolbar { position: relative; padding: 0 0 12px; border-bottom: 1px solid #e8ebf0; }
.rich-toolbar-scroll { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rich-toolbar-group { min-height: 42px; padding: 3px; display: flex; flex: 0 0 auto; align-items: center; gap: 2px; border: 1px solid #e5e9f0; border-radius: 9px; background: #fafbfd; }
.rich-tool-button { width: 34px; min-width: 34px; height: 34px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #445067; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.rich-tool-button svg, .rich-color-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rich-tool-button:hover, .rich-tool-button[aria-pressed="true"] { border-color: #d5def2; background: #edf2ff; color: #244bc4; }
.rich-tool-button:focus-visible, .rich-tool-select:focus-visible, .rich-color-control:focus-within { outline: 2px solid #809cf5; outline-offset: 2px; }
.rich-tool-button:disabled { opacity: .45; cursor: not-allowed; }
.rich-tool-select { height: 34px; max-width: 150px; padding: 0 25px 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #445067; font: inherit; font-size: 12px; cursor: pointer; }
.rich-tool-select:hover, .rich-tool-select:focus { border-color: #dce2eb; outline: none; background-color: #fff; }
.block-style-select { width: 108px; }
.font-family-select { width: 102px; }
.case-select { width: 62px; }
.font-size-control { height: 34px; padding: 2px; display: flex; align-items: center; border: 1px solid #e2e7ef; border-radius: 7px; background: #fff; }
.font-size-button { width: 28px; min-width: 28px; height: 28px; padding: 0; font-size: 17px; }
.font-size-display { min-width: 28px; color: #445067; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.alignment-controls { display: flex; align-items: center; gap: 2px; }
.rich-color-group { gap: 4px; }
.rich-color-control { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: #445067; font-weight: 750; cursor: pointer; }
.rich-color-control:hover { border-color: #dce2eb; background: #f3f6fb; }
.rich-color-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.color-letter-icon { padding-bottom: 2px; border-bottom: 2px solid #43536e; font-size: 15px; line-height: 1; }
.highlight-control { color: #a78300; }
.toolbar-menu-wrap { position: relative; }
.insert-menu-toggle { width: auto; min-width: 80px; }
.insert-menu-toggle svg:first-child { width: 15px; height: 15px; }
.insert-menu-toggle .menu-chevron { width: 13px; height: 13px; }
.insert-menu { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: 190px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 8px 24px #17233b1f; }
.insert-menu[hidden] { display: none; }
.insert-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: white; color: var(--ink); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.insert-menu button:hover { background: #f2f5fb; }
.rich-editor-stage { position: relative; min-height: 405px; margin: 14px 0 10px; border: 1px solid #e9edf2; border-radius: 8px; background: #fff; }
#rich-text-editor { min-height: 403px; padding: 24px 26px; outline: none; color: #27344a; font: 16px/1.65 Arial, sans-serif; overflow-wrap: anywhere; white-space: pre-wrap; }
#rich-text-editor:focus { box-shadow: inset 0 0 0 1px #e0e8fa; border-radius: 8px; }
#rich-text-editor[data-empty="true"]::before { content: attr(data-placeholder); color: #a8b0be; pointer-events: none; }
#rich-text-editor > :first-child { margin-top: 0; }
#rich-text-editor > :last-child { margin-bottom: 0; }
#rich-text-editor blockquote, .pdf-document-content blockquote { margin-left: 0; padding-left: 14px; border-left: 3px solid #d7deeb; color: #64728a; }
#rich-text-editor pre, .pdf-document-content pre { padding: 12px; border-radius: 6px; background: #f3f5f8; font: 14px/1.6 "Courier New", monospace; white-space: pre-wrap; }
.empty-editor-actions { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.rich-editor-stage[data-empty="true"] .empty-editor-actions { display: flex; }
.empty-editor-actions .button { pointer-events: auto; }
.rich-editor-footer { min-height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.word-count { color: #8a94a6; font-size: 12px; }
.convert-document-button { min-width: 164px; }
.clear-text-button { width: 38px; height: 38px; justify-self: end; border: 0; border-radius: 7px; background: transparent; color: #707c90; font-size: 23px; cursor: pointer; }
.clear-text-button:hover { background: #f3f5f8; color: #b42318; }
.editor-privacy-note { margin: 12px 0 0; color: #8995a8; font-size: 12px; text-align: left; }
.editor-status { margin: 6px 0 0; text-align: left; }

@media (max-width: 720px) {
    .site-header { height: 66px; padding: 0 18px; }
    .brand img { width: 188px; height: auto; }
    .main-nav { display: none; }
    .main-nav a:nth-last-child(-n+2) { display: none; }
    .language-toggle { min-width: 72px; }
    .language-menu { position: fixed; top: 58px; right: 12px; width: min(280px, calc(100vw - 24px)); max-height: calc(100vh - 78px); }
    .hero { padding: 52px 16px 20px; }
    .hero-copy { font-size: 15px; }
    .workspace { padding: 11px; border-radius: 14px; }
    .upload-area { min-height: 220px; padding: 18px; }
    .tool-controls { flex-wrap: wrap; }
    .tool-controls .button { width: 100%; margin-left: 0; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-to-grid { grid-template-columns: 1fr; gap: 40px; }
    .how-to-card { min-height: 0; }
    .content-section { padding: 38px 18px; }
    .detail-banner-section { grid-template-columns: 1fr; gap: 24px; }
    .detail-banner-media { order: -1; }
    .detail-banner-copy { text-align: left; }
    .site-footer { padding: 28px 18px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .footer-brand-column .brand img { width: 188px; height: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .cookie-notice { right: 16px; bottom: 16px; left: 16px; }
    .text-editor-page .hero { padding: 38px 12px 18px; }
    .text-document-workspace { padding: 11px; }
    .rich-toolbar-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding: 3px 3px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    .rich-toolbar-group { flex: 0 0 auto; }
    .rich-editor-toolbar::after { content: "Swipe for more tools"; display: block; margin-top: 5px; color: #8995a8; font-size: 10px; text-align: right; }
    .rich-editor-stage { min-height: 330px; }
    #rich-text-editor { min-height: 328px; padding: 18px; }
    .rich-editor-footer { grid-template-columns: 1fr auto 38px; gap: 5px; }
    .convert-document-button { min-width: 140px; padding: 0 10px; }
    .insert-menu { right: 4px; }
}

@media (max-width: 400px) {
    .main-nav a:last-child { display: none; }
    .brand img { width: 160px; }
    .main-nav { gap: 7px; font-size: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-dialog { width: 100%; }
    .tool-controls select { flex: 1; }
    .tool-grid { grid-template-columns: 1fr; }
    .breadcrumb-nav { padding: 10px 18px 0; }
}

.text-image-page .hero { max-width: 1320px; padding-top: 48px; }
.text-image-page h1 { font-size: clamp(32px, 4vw, 46px); }
.text-image-page .hero-copy { max-width: 900px; margin: 12px auto 28px; }
.text-image-workspace { padding: 22px; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 24px; border: 1px solid #e8ebf0; border-radius: 18px; background: #fbfbfc; text-align: left; }
.text-image-controls, .text-image-preview-panel { min-width: 0; }
.text-image-panel-heading { min-height: 46px; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.text-image-panel-heading h2 { margin: 0; color: #17233b; font-size: 17px; }
.text-image-panel-heading p { margin: 4px 0 0; color: #7a8495; font-size: 12px; line-height: 1.5; }
.layer-count, .canvas-dimensions { padding: 6px 9px; border: 1px solid #e3e7ed; border-radius: 7px; background: #fff; color: #748094; font-size: 11px; white-space: nowrap; }
.text-image-layer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.text-image-layer-actions .button { min-height: 39px; padding: 0 11px; font-size: 12px; }
.text-image-layer-list { max-height: 220px; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; overflow-y: auto; list-style: none; }
.text-image-layer-item { min-height: 42px; padding: 4px 6px; display: flex; align-items: center; gap: 3px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; transition: border-color .15s, background-color .15s, opacity .15s; }
.text-image-layer-item.is-selected { border-color: #9eb4ef; background: #f2f5ff; }
.text-image-layer-item.is-dragging { opacity: .45; }
.text-image-layer-item.is-drop-target { border-color: #315ee8; }
.layer-drag-handle { padding: 0 5px; color: #9aa4b3; font-size: 17px; cursor: grab; touch-action: none; user-select: none; }
.layer-select-button { min-width: 0; padding: 7px 5px; flex: 1; overflow: hidden; border: 0; background: transparent; color: #354158; font: inherit; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.layer-order-button, .layer-remove-button { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; color: #69758a; font: inherit; font-size: 15px; cursor: pointer; }
.layer-order-button:hover:not(:disabled), .layer-remove-button:hover { background: #e8edfb; color: #244bc4; }
.layer-remove-button { color: #8993a3; font-size: 20px; }
.layer-order-button:disabled { opacity: .35; cursor: not-allowed; }
.text-image-layer-hint { margin: 7px 0 15px; color: #8a94a6; font-size: 10px; }
.text-image-empty-selection { padding: 14px; border: 1px dashed #dfe4eb; border-radius: 8px; color: #8792a3; font-size: 12px; }
.text-image-layer-settings { padding: 13px; display: grid; gap: 12px; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; }
.text-image-layer-settings[hidden], .text-image-empty-selection[hidden] { display: none; }
.text-image-field { min-width: 0; display: grid; gap: 6px; color: #657187; font-size: 11px; font-weight: 600; }
.text-image-field textarea, .text-image-field select, .text-image-field input[type="number"] { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dfe4eb; border-radius: 7px; outline: none; background: #fff; color: #27344a; font: inherit; font-size: 12px; }
.text-image-field textarea { min-height: 82px; resize: vertical; font-weight: 400; line-height: 1.5; }
.text-image-field textarea:focus, .text-image-field select:focus, .text-image-field input:focus { border-color: #9eb4ef; box-shadow: 0 0 0 3px #315ee815; }
.text-image-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.text-image-setting-row { min-height: 34px; display: flex; align-items: center; gap: 10px; }
.text-image-setting-label { color: #657187; font-size: 11px; font-weight: 600; }
.text-image-format-buttons, .text-image-alignment-buttons { display: flex; align-items: center; gap: 4px; }
.image-format-button { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: #f7f8fa; color: #47546b; font: inherit; font-size: 14px; cursor: pointer; }
.image-format-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.image-format-button:hover, .image-format-button[aria-pressed="true"] { border-color: #d5def2; background: #edf2ff; color: #244bc4; }
.image-format-button:focus-visible, .layer-select-button:focus-visible, .layer-order-button:focus-visible, .layer-remove-button:focus-visible { outline: 2px solid #809cf5; outline-offset: 2px; }
.text-image-color-field { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #657187; font-size: 10px; }
.text-image-color-field input, .text-image-canvas-settings input[type="color"] { width: 36px; height: 32px; padding: 3px; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; cursor: pointer; }
.text-image-canvas-settings { margin-top: 15px; padding: 13px; display: grid; gap: 11px; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; }
.text-image-canvas-settings h3 { margin: 0; color: #47546b; font-size: 12px; }
.text-image-canvas-settings .text-image-setting-row { justify-content: space-between; }
.text-image-canvas-settings .text-image-field select { min-height: 36px; }
.text-image-reset-button { margin-top: 11px; padding: 7px 2px; justify-self: start; border: 0; background: transparent; color: #66738a; font: inherit; font-size: 11px; cursor: pointer; }
.text-image-reset-button:hover { color: #244bc4; }
.text-image-image-name { margin: 0; overflow-wrap: anywhere; color: #27344a; font-size: 12px; font-weight: 650; }
.text-image-replace-button { min-height: 35px; justify-self: start; padding: 0 11px; font-size: 11px; }
.text-image-range-field { gap: 8px; }
.text-image-range-field > span { display: flex; justify-content: space-between; }
.text-image-range-field output { color: #27344a; font-weight: 500; }
.text-image-range-field input[type="range"] { width: 100%; accent-color: #315ee8; }
.text-image-canvas-wrap { position: relative; overflow: hidden; border-radius: 11px; background: #e9edf4; }
#design-canvas { width: 100%; height: auto; display: block; border-radius: inherit; touch-action: none; }
.text-image-canvas-wrap.is-drop-target { outline: 3px dashed #315ee8; outline-offset: 3px; }
.canvas-drop-message { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #315ee833; color: #17233b; font-size: 16px; font-weight: 700; pointer-events: none; }
.text-image-canvas-wrap.is-drop-target .canvas-drop-message { display: flex; }
.text-image-canvas-hint { margin: 8px 0 13px; color: #8995a8; font-size: 10px; }
.text-image-export-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-image-privacy { margin: 0; color: #8a94a6; font-size: 10px; font-style: italic; }
.text-image-download-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.text-image-download-actions .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
.text-image-status { max-width: 1320px; margin: 9px auto 0; text-align: left; }

@media (max-width: 900px) {
    .text-image-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .text-image-layer-list { max-height: 190px; }
}

@media (max-width: 720px) {
    .text-image-page .hero { padding: 38px 12px 18px; }
    .text-image-workspace { padding: 13px; border-radius: 14px; }
    .text-image-export-row { align-items: flex-start; flex-direction: column-reverse; }
    .text-image-download-actions { width: 100%; }
    .text-image-download-actions .button { flex: 1; }
    .text-image-status { margin-right: 12px; margin-left: 12px; }
}

.photo-translate-page .hero { max-width: 1220px; padding-top: 42px; }
.photo-translate-page h1 { font-size: clamp(32px, 4vw, 46px); }
.photo-translate-page .hero-copy { max-width: 1080px; margin: 10px auto 26px; }
.photo-translate-workspace { max-width: 1080px; padding: 16px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: #fbfbfc; text-align: left; }
.photo-translate-language-bar { min-height: 48px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.photo-translate-language-field { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.photo-translate-language-field select { width: 180px; min-height: 39px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.photo-translate-language-field select:focus, .photo-translate-swap:focus-visible, .photo-translate-remove:focus-visible { outline: 2px solid #809cf5; outline-offset: 2px; }
.photo-translate-swap { width: 34px; height: 34px; margin-top: 16px; padding: 6px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #536078; cursor: pointer; }
.photo-translate-swap:hover { background: #edf2ff; color: var(--blue); }
.photo-translate-swap svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-translate-dropzone { min-height: 330px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d5deed; border-radius: 12px; background: #fff; text-align: center; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.photo-translate-dropzone:hover, .photo-translate-dropzone.is-dragging { border-color: var(--blue); background: #f7f9ff; }
.photo-translate-dropzone:focus-visible { outline: 2px solid #809cf5; outline-offset: 3px; }
.photo-translate-upload-icon { width: 58px; height: 58px; margin-bottom: 7px; color: #cbd6e6; }
.photo-translate-upload-icon svg { width: 100%; height: 100%; fill: #f2f5fa; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo-translate-dropzone h2 { margin: 5px 0; font-size: 19px; font-weight: 550; }
.photo-translate-dropzone > p { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.photo-translate-browse { gap: 6px; background: #438df4; }
.photo-translate-browse span { font-size: 20px; font-weight: 400; }
.photo-translate-dropzone > small { margin-top: 10px; color: var(--muted); font-size: 11px; }
.photo-translate-dropzone .photo-translate-privacy { max-width: 640px; margin: 22px 0 0; color: #8a94a6; font-size: 10px; font-style: italic; }
.photo-translate-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-translate-dropzone[hidden], .photo-translate-panels[hidden], .photo-translate-placeholder[hidden], .photo-translate-action-row[hidden], .photo-translate-result[hidden], .photo-translate-result-label[hidden], .photo-translate-result-actions[hidden] { display: none; }
.photo-translate-panel { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.photo-translate-panel-heading { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.photo-translate-panel-heading h2 { margin: 0; color: #455168; font-size: 12px; font-weight: 650; }
.photo-translate-remove { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #566176; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.photo-translate-remove:hover { color: #b42318; background: #fff5f5; }
.photo-translate-image-wrap { height: 305px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #f8f9fb; }
.photo-translate-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-translate-filename { margin: 7px 2px 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.photo-translate-placeholder { min-height: 337px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c7d2e2; }
.photo-translate-placeholder svg { width: 94px; height: 72px; fill: #f4f6fa; stroke: #dce4ef; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo-translate-placeholder p { margin: 10px 0 0; color: #aab8cd; font-size: 12px; }
.photo-translate-result-label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.photo-translate-result { width: 100%; min-height: 305px; padding: 12px; resize: vertical; border: 1px solid #e8ebf0; border-radius: 8px; color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.65; }
.photo-translate-result-actions { display: flex; gap: 8px; margin-top: 9px; }
.photo-translate-result-actions .button { min-height: 36px; font-size: 11px; }
.photo-translate-action-row { margin-top: 12px; display: flex; justify-content: center; }
.photo-translate-action-row .button { min-width: 120px; background: #438df4; }
.photo-translate-status { margin: 10px 2px 0; text-align: center; }

@media (max-width: 720px) {
    .photo-translate-page .hero { padding: 38px 12px 18px; }
    .photo-translate-workspace { padding: 11px; border-radius: 13px; }
    .photo-translate-language-bar { gap: 6px; }
    .photo-translate-language-field { min-width: 0; flex: 1; }
    .photo-translate-language-field select { width: 100%; min-width: 0; }
    .photo-translate-panels { grid-template-columns: minmax(0, 1fr); }
    .photo-translate-image-wrap { height: 260px; }
    .photo-translate-placeholder { min-height: 230px; }
}
