body { background: #f4f6fb; }
.tool-header { border-bottom: 1px solid #edecf2; background: #fff; }
.contact-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tool-brand img { display: block; width: 145px; height: 64px; object-fit: cover; mix-blend-mode: multiply; }
.back-link { color: #5e55c8; font-size: 13px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--brand-dark); } }
.scrubber-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 60px; }
.scrubber-shell > .tool-eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.scrubber-shell > h1 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 44px); }
.scrubber-shell > .tool-intro { margin: 0 0 28px; color: #667085; font-size: 15px; line-height: 1.7; }
.scrubber-card { margin: 22px 0; padding: clamp(18px, 3vw, 26px); border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.scrubber-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.scrubber-heading h2 { margin: 0 0 6px; color: #292b40; font-size: 20px; letter-spacing: -.03em; }
.scrubber-heading p { margin: 0; color: #667085; font-size: 13px; line-height: 1.6; }
.local-badge { flex: 0 0 auto; padding: 8px 10px; border-radius: 20px; color: #21795e; background: #e9f8f2; font-size: 12px; font-weight: 700; }
.local-badge span { margin-right: 5px; color: #36ad82; font-size: 9px; }
.scrubber-label { display: block; margin: 16px 0 7px; color: #45485a; font-size: 12px; font-weight: 700; }
.source-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.source-label-row .scrubber-label { margin-top: 16px; }
.source-drag-tip { color: #667085; font-size: 12px; line-height: 1.5; text-align: right; }
.scrubber-textarea, .scrubber-select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #d7deea; border-radius: 9px; outline: none; color: #292b40; background: #fdfdff; font: 13px/1.65 var(--font-mono); resize: vertical; }
.scrubber-textarea:focus, .scrubber-select:focus { border-color: #a5a6f6; box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 12%); }
.scrubber-textarea::placeholder { color: #898d9b; }
.source-editor { position: relative; min-height: 240px; overflow: hidden; border-radius: 9px; background: #fdfdff; }
.source-editor:focus-within { outline: 3px solid rgb(var(--brand-rgb) / 24%); outline-offset: 2px; }
.source-highlight-layer { position: absolute; z-index: 2; top: 1px; right: 1px; left: 1px; height: 240px; margin: 0; padding: 12px; overflow: visible; border: 0; border-radius: 8px; color: #292b40; background: transparent; font: 13px/1.65 var(--font-mono); letter-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 2; pointer-events: none; }
.source-highlight-layer mark { outline: 1px solid #e8b931; border-radius: 4px; color: inherit; background: rgb(255 226 102 / 37%); box-shadow: 0 0 0 1px rgb(243 192 35 / 50%), 0 0 10px rgb(255 205 45 / 48%); pointer-events: auto; cursor: ew-resize; }
.source-caret-layer { cursor: ew-resize; }
.source-editor .source-textarea { position: relative; z-index: 1; display: block; width: 100%; min-height: 240px; max-height: max(240px, min(60vh, 720px)); margin: 0; color: transparent; background: transparent; caret-color: #292b40; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 2; resize: none; scrollbar-width: none; }
.source-editor .source-textarea::-webkit-scrollbar { display: none; }
.source-editor .source-textarea::placeholder { color: #898d9b; -webkit-text-fill-color: #898d9b; }
/* Warstwa podświetleń jest przezroczysta, więc natywne zaznaczenie textarea prześwituje spod tekstu na żywo. */
.source-editor .source-textarea::selection { color: transparent; background: rgb(var(--brand-rgb) / 24%); }
.source-editor.manual-selection-enabled .source-textarea::selection { background: rgb(255 210 55 / 55%); }
.scrubber-select { min-height: 42px; padding: 9px 11px; font-family: inherit; }
.scrubber-output { color: #303246; background: #f8f9fc; }
.scrubber-options { max-width: 510px; margin-top: 14px; }
.scrubber-options .scrubber-label { margin-top: 0; }
.scrubber-hint { margin: 7px 0 0; color: #667085; font-size: 12px; line-height: 1.6; }
.scrubber-checkbox { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: #45485a; font-size: 12px; line-height: 1.5; }
.scrubber-checkbox input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brand); }
.scrubber-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.scrubber-actions .tool-button, .manual-controls .tool-button { min-height: 40px; padding: 0 14px; border: 1px solid #e3e8f0; border-radius: 9px; color: #344054; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .15s var(--ease-out), border-color .15s var(--ease-out), scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .scrubber-actions .tool-button:hover, .manual-controls .tool-button:hover { border-color: #c8c8fa; background: #f8f7ff; } }
.scrubber-actions .tool-button:focus-visible, .manual-controls .tool-button:focus-visible { outline: 3px solid rgb(var(--brand-rgb) / 24%); outline-offset: 2px; }
.scrubber-actions .tool-button-primary { border-color: var(--brand); color: #fff; background: var(--brand); }
@media (hover: hover) and (pointer: fine) { .scrubber-actions .tool-button-primary:hover { border-color: var(--brand-dark); color: #fff; background: var(--brand-dark); } }
.scrubber-count { color: #6b7080; font-size: 12px; }
.manual-mask { margin-top: 10px; padding: 12px; border: 1px solid #e8eaf1; border-radius: 10px; background: #fbfcfe; }
.manual-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: end; gap: 9px; }
.manual-tag-field { display: grid; gap: 7px; color: #45485a; font-size: 12px; font-weight: 700; }
.manual-tag-field .scrubber-select { font-family: inherit; }
.manual-controls .tool-button { min-height: 42px; }
.step-hint { color: #626777; font-size: 12px; font-weight: 500; white-space: nowrap; }
.manual-controls .tool-button[aria-pressed="true"] { border-color: #e8b931; color: #725300; background: #fff8d9; box-shadow: 0 0 0 2px rgb(255 210 55 / 22%); }
.manual-controls .tool-button:disabled { color: #626777; background: #f4f5f8; cursor: not-allowed; }
.manual-mask .scrubber-hint { min-height: 17px; margin-bottom: 0; }
.undo-manual-button { margin-top: 10px; padding: 8px 11px; border: 1px solid #e3e8f0; border-radius: 8px; color: #5f6475; background: #fff; cursor: pointer; font-size: 12px; font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .undo-manual-button:hover { border-color: #c8c8fa; color: var(--brand-dark); background: #f8f7ff; } }
.scrubber-warning { margin-top: 22px; padding: 15px 17px; border: 1px solid #f0dfbd; border-radius: 10px; color: #715a2a; background: #fffaf0; font-size: 12px; line-height: 1.65; }
.scrubber-warning strong { color: #624b1d; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e5e0ff; border-radius: 12px; color: #4e477f; background: #f8f7ff; font-size: 13px; line-height: 1.5; }
.support-banner p { margin: 0; }
.support-banner a { min-height: 38px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .support-banner a:hover { background: var(--brand-dark); } }
.seo-content { margin-top: 26px; padding: 12px 0 0; }
.seo-intro { margin-bottom: 18px; }
.seo-intro h2 { margin: 0 0 12px; color: #292b40; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.seo-intro p { margin: 0; color: #4b5565; font-size: 15px; line-height: 1.8; }
.seo-intro p + p { margin-top: 10px; }
.seo-content a { color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .seo-content a:hover { color: var(--brand-dark); } }
.seo-block { margin-top: 16px; padding: 20px 22px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.seo-block h3 { margin: 0 0 10px; color: #292b40; font-size: 18px; letter-spacing: -.02em; }
.seo-block p, .seo-block li, .faq-item p { color: #4b5565; font-size: 14px; line-height: 1.8; }
.seo-block ul, .seo-block ol { margin: 12px 0 0; padding-left: 20px; }
.seo-block li + li { margin-top: 8px; }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.seo-grid ul { margin: 0; }
.faq-panel { margin-top: 16px; padding: 20px 22px 8px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.faq-panel > h3, .related-tools h3 { margin: 0 0 16px; color: #292b40; font-size: 21px; letter-spacing: -.03em; }
.faq-item { padding: 0 0 18px; border-bottom: 1px solid #edf0f4; }
.faq-item:last-child { padding-bottom: 8px; border-bottom: 0; }
.faq-item summary { position: relative; margin-bottom: 10px; padding-left: 28px; color: #292b40; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 9px; left: 7px; width: 7px; height: 7px; border-right: 2px solid #635bdf; border-bottom: 2px solid #635bdf; content: ""; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item summary:focus-visible { outline: 3px solid rgb(var(--brand-rgb) / 24%); outline-offset: 3px; }
.faq-item p { margin: 0; }
.related-tools { margin-top: 16px; padding: 20px 22px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; }
.related-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-tool-card { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid #eaebf1; border-radius: 13px; color: #292b40 !important; background: #fff; text-decoration: none !important; box-shadow: 0 3px 10px rgb(28 33 66 / 2%); transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .related-tool-card:hover { transform: translateY(-3px); border-color: #d9d3ff; box-shadow: 0 10px 24px rgb(54 45 112 / 8%); } }
.related-tool-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; font-size: 15px; font-weight: 750; }
.related-tool-category { margin-bottom: 7px; color: #667085; font-size: 12px; font-weight: 700; }
.related-tool-card strong { margin-bottom: 6px; color: #292b40; font-size: 14px; line-height: 1.4; }
.related-tool-description { color: #5f6475; font-size: 13px; font-weight: 400; line-height: 1.6; }
.back-to-tool { position: fixed; z-index: 10; right: max(20px, calc((100vw - 920px) / 2)); bottom: 22px; padding: 12px 16px; border: 1px solid var(--brand); border-radius: 999px; color: #fff !important; background: var(--brand); box-shadow: 0 6px 20px rgb(40 35 100 / 22%); font-size: 13px; font-weight: 700; text-decoration: none !important; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), background .2s var(--ease-out), scale .16s var(--ease-out); }
.back-to-tool.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) { .back-to-tool:hover { color: #fff !important; background: var(--brand-dark); } }
.site-footer { margin-top: 8px; padding: 22px 20px 26px; }
.site-footer-inner { width: min(100%, 1120px); display: grid; justify-items: center; gap: 12px; margin: 0 auto; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.site-footer .footer-links a { color: #777a89; font-size: 12px; font-weight: 650; text-decoration: none; }
.site-footer .footer-legal-note { max-width: 900px; margin: 0; color: #626777; font-size: 12px; line-height: 1.6; text-align: center; }
.scrubber-card .copy-status { min-height: 18px; margin: 9px 0 0; color: #27795f; font-size: 12px; }
.scrubber-card .copy-status.error { color: #b42318; }
@media (max-width: 560px) {
  .scrubber-shell { width: min(100% - 30px, 440px); padding-top: 30px; }
  .scrubber-heading { flex-direction: column; }
  .source-label-row { align-items: flex-start; flex-direction: column; gap: 0; }
  .source-drag-tip { text-align: left; }
  .manual-controls { grid-template-columns: 1fr; }
  .support-banner { align-items: stretch; flex-direction: column; gap: 10px; }
  .support-banner a { align-self: flex-start; }
  .local-badge { align-self: flex-start; }
  .scrubber-card { padding: 16px; }
  .faq-item { padding-bottom: 12px; }
  .faq-item summary { margin-bottom: 0; padding: 2px 0 2px 28px; }
  .faq-item[open] summary { margin-bottom: 10px; }
  .related-tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .related-tool-card { min-height: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
  .related-tool-icon { grid-row: span 3; margin: 0; }
  .related-tool-category, .related-tool-card strong { margin: 0; }
  .back-to-tool { right: 15px; bottom: 15px; }
  .site-footer .footer-links { gap: 10px 16px; }
  .site-footer .footer-legal-note { font-size: 12px; }
}
/* Warstwa podświetleń musi mieć ten sam rozmiar co textarea, którą footer.css podnosi do 16px na dotyku. */
@media (pointer: coarse) {
  .source-highlight-layer { font-size: 16px; }
}
