/*
 * Legal tools page CSS source mirror.
 *
 * Runtime tool routes still serve these styles inline inside routes/tools/*.php.
 * This file gives the tools family a single source owner before a later
 * dedicated assets/css/tools.css runtime switch.
 *
 * Keep the LA_TOOLS_SOURCE_BEGIN/END markers intact;
 * scripts/qa/design-system-guard.php verifies each section against the
 * matching inline route style block.
 */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/tools.php - Tools index */
.tools-page {
            background:
                radial-gradient(circle at 25% 8%, rgba(20, 83, 45, 0.045), transparent 34%),
                radial-gradient(circle at 78% 4%, rgba(24, 24, 27, 0.035), transparent 32%),
                #fff;
            color: #171717;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            padding: 84px 36px 56px;
        }

        .tools-shell {
            margin: 0 auto;
            max-width: 1440px;
        }

        .tools-hero {
            margin-bottom: 26px;
        }

        .tools-hero-grid {
            align-items: center;
            display: grid;
            gap: 30px;
            grid-template-columns: minmax(0, 1fr) 405px;
        }

        .tools-breadcrumb {
            align-items: center;
            color: #71717a;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 500;
            gap: 16px;
            letter-spacing: 0;
            margin: 0 0 12px;
        }

        .tools-breadcrumb a {
            color: #52525b;
        }

        .tools-kicker {
            background: rgba(236, 253, 245, 0.65);
            border: 1px solid rgba(22, 101, 52, 0.35);
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 13px;
        }

        .tools-hero h1 {
            color: #171717;
            font-family: "DM Serif Display", Georgia, serif;
            font-size: clamp(3.1rem, 4.2vw, 4.2rem);
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1;
            margin: 0;
            max-width: 1060px;
            text-align: left;
        }

        .tools-lede {
            color: #4b5563;
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 14px 0 0;
            max-width: 780px;
        }

        .tools-privacy-note {
            align-items: flex-start;
            align-self: end;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            box-shadow: none;
            display: grid;
            gap: 14px;
            grid-template-columns: 34px 1fr;
            padding: 18px 22px 18px;
        }

        .tools-privacy-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px 999px 999px 6px;
            color: #fff;
            display: inline-flex;
            height: 34px;
            justify-content: center;
            margin-top: 1px;
            width: 34px;
        }

        .tools-privacy-icon svg,
        .tools-trust-icon svg,
        .tool-icon svg,
        .tool-link svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
        }

        .tools-privacy-icon svg {
            height: 21px;
            width: 21px;
        }

        .tools-privacy-note strong {
            display: block;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
            margin: 0 0 7px;
        }

        .tools-privacy-note p {
            color: #3f3f46;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .tools-privacy-note ul {
            border-top: 1px solid #e1e5e2;
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 20px 0 0;
            padding: 16px 0 0;
        }

        .tools-privacy-note li {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .tools-privacy-note li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .tools-trust-row {
            display: grid;
            gap: 26px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 28px 0 0;
            max-width: 860px;
        }

        .tools-trust-item {
            align-items: center;
            display: grid;
            gap: 11px;
            grid-template-columns: 24px 1fr;
            min-width: 0;
        }

        .tools-trust-icon {
            align-items: center;
            color: #17683a;
            display: inline-flex;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .tools-trust-icon svg {
            height: 23px;
            width: 23px;
        }

        .tools-trust-item strong {
            color: #18181b;
            display: block;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
        }

        .tools-trust-item span:not(.tools-trust-icon) {
            color: #52525b;
            display: block;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.3;
        }

        .tools-pro-workflow {
            align-items: start;
            background: #111827;
            border: 1px solid #111827;
            border-radius: 8px;
            color: #fff;
            display: grid;
            gap: 20px;
            grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
            margin-bottom: 30px;
            padding: 24px;
        }

        .tools-pro-workflow-copy,
        .tools-pro-workflow-side {
            min-width: 0;
        }

        .tools-pro-kicker {
            background: rgba(220, 252, 231, 0.12);
            border: 1px solid rgba(187, 247, 208, 0.26);
            border-radius: 999px;
            color: #bbf7d0;
            display: inline-flex;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 12px;
        }

        .tools-pro-workflow h2 {
            color: #fff;
            font-size: clamp(1.55rem, 2.1vw, 2.15rem);
            line-height: 1.08;
            margin: 0;
            max-width: 760px;
        }

        .tools-pro-workflow-copy > p:not(.tools-pro-kicker):not(.tools-pro-boundary) {
            color: #d1d5db;
            font-size: 1rem;
            line-height: 1.62;
            margin: 12px 0 0;
            max-width: 800px;
        }

        .tools-pro-boundary {
            color: #a7f3d0;
            font-size: 0.86rem;
            font-weight: 700;
            line-height: 1.45;
            margin: 14px 0 0;
            max-width: 760px;
        }

        .tools-pro-workflow-side {
            display: grid;
            gap: 14px;
        }

        .tools-pro-metrics {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .tools-pro-metric {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 7px;
            min-width: 0;
            padding: 12px;
        }

        .tools-pro-metric strong {
            color: #fff;
            display: block;
            font-size: 0.95rem;
            font-weight: 900;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .tools-pro-metric span {
            color: #cbd5e1;
            display: block;
            font-size: 0.76rem;
            font-weight: 750;
            line-height: 1.3;
            margin-top: 6px;
        }

        .tools-pro-actions {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .tools-pro-primary,
        .tools-pro-secondary {
            align-items: center;
            border-radius: 6px;
            display: inline-flex;
            font-size: 0.94rem;
            font-weight: 900;
            justify-content: center;
            min-height: 44px;
            padding: 10px 14px;
            text-align: center;
        }

        .tools-pro-primary {
            background: #fff;
            color: #111827;
        }

        .tools-pro-secondary {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.32);
            color: #fff;
        }

        .tools-list-section {
            border-top: 1px solid #e4e4e7;
            padding-top: 32px;
        }

        .tools-section-heading {
            margin-bottom: 18px;
        }

        .tools-section-heading h2 {
            font-size: 1.2rem;
            margin: 0;
        }

        .tools-grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .tool-card {
            border: 1px solid #d8dedb;
            border-radius: 7px;
            display: grid;
            gap: 18px;
            padding: 22px;
        }

        .tool-card-top {
            align-items: start;
            display: grid;
            gap: 14px;
            grid-template-columns: 42px 1fr auto;
        }

        .tool-icon {
            align-items: center;
            background: #f2f7f4;
            border: 1px solid #cfe0d7;
            border-radius: 7px;
            color: #17683a;
            display: inline-flex;
            height: 42px;
            justify-content: center;
            width: 42px;
        }

        .tool-icon svg {
            height: 21px;
            width: 21px;
        }

        .tool-label,
        .tool-status {
            color: #17683a;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
        }

        .tool-card h3 {
            font-size: 1.2rem;
            line-height: 1.25;
            margin: 7px 0 0;
        }

        .tool-status {
            border: 1px solid #a9cdb7;
            border-radius: 999px;
            padding: 6px 9px;
            white-space: nowrap;
        }

        .tool-card p {
            color: #52525b;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }

        .tool-card ul {
            color: #3f3f46;
            display: grid;
            font-size: 0.9rem;
            gap: 8px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .tool-card li {
            align-items: center;
            display: flex;
            gap: 8px;
        }

        .tool-card li::before {
            background: #17683a;
            border-radius: 999px;
            content: "";
            flex: 0 0 auto;
            height: 6px;
            width: 6px;
        }

        .tool-link {
            align-items: center;
            background: #18181b;
            border-radius: 6px;
            color: #fff;
            display: inline-flex;
            font-size: 0.95rem;
            font-weight: 800;
            gap: 8px;
            justify-content: center;
            min-height: 44px;
            padding: 10px 14px;
            width: 100%;
        }

        .tool-link svg {
            height: 17px;
            width: 17px;
        }

        @media (max-width: 960px) {
            .tools-hero-grid,
            .tools-pro-workflow,
            .tools-trust-row,
            .tools-grid {
                grid-template-columns: 1fr;
            }

            .tools-privacy-note {
                max-width: 560px;
            }
        }

        @media (max-width: 640px) {
            .tools-page {
                padding: 94px 13px 48px;
            }

            .tools-hero h1 {
                font-size: 2.52rem;
                line-height: 1.02;
            }

            .tools-privacy-note,
            .tool-card-top {
                grid-template-columns: 1fr;
            }

            .tools-trust-row {
                gap: 16px;
            }

            .tools-pro-workflow {
                padding: 18px;
            }

            .tools-pro-metrics,
            .tools-pro-actions {
                grid-template-columns: 1fr;
            }

            .tool-status {
                width: fit-content;
            }
        }
/* LA_TOOLS_SOURCE_END routes/tools/tools.php */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/pdf-toolkit.php - PDF toolkit index */
.pdf-kit-page {
            background:
                radial-gradient(circle at 25% 8%, rgba(20, 83, 45, 0.045), transparent 34%),
                radial-gradient(circle at 78% 4%, rgba(24, 24, 27, 0.035), transparent 32%),
                #fff;
            color: #171717;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            padding: 84px 36px 56px;
        }

        .pdf-kit-shell {
            margin: 0 auto;
            max-width: 1440px;
        }

        .pdf-kit-hero {
            margin-bottom: 26px;
        }

        .pdf-kit-hero-grid {
            align-items: center;
            display: grid;
            gap: 30px;
            grid-template-columns: minmax(0, 1fr) 405px;
        }

        .pdf-kit-breadcrumb {
            align-items: center;
            color: #71717a;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 500;
            gap: 16px;
            letter-spacing: 0;
            margin: 0 0 12px;
        }

        .pdf-kit-breadcrumb a {
            color: #52525b;
        }

        .pdf-kit-kicker {
            background: rgba(236, 253, 245, 0.65);
            border: 1px solid rgba(22, 101, 52, 0.35);
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 13px;
        }

        .pdf-kit-hero h1 {
            color: #171717;
            font-family: "DM Serif Display", Georgia, serif;
            font-size: clamp(3.1rem, 4.2vw, 4.2rem);
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1;
            margin: 0;
            max-width: 1040px;
            text-align: left;
        }

        .pdf-kit-lede {
            color: #4b5563;
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 14px 0 0;
            max-width: 790px;
        }

        .pdf-kit-privacy-note {
            align-items: flex-start;
            align-self: end;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            box-shadow: none;
            display: grid;
            gap: 14px;
            grid-template-columns: 34px 1fr;
            padding: 18px 22px 18px;
        }

        .pdf-kit-privacy-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px 999px 999px 6px;
            color: #fff;
            display: inline-flex;
            height: 34px;
            justify-content: center;
            margin-top: 1px;
            width: 34px;
        }

        .pdf-kit-privacy-icon svg,
        .pdf-kit-trust-icon svg,
        .pdf-kit-tool-icon svg,
        .pdf-kit-link svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
        }

        .pdf-kit-privacy-icon svg {
            height: 21px;
            width: 21px;
        }

        .pdf-kit-privacy-note strong {
            display: block;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
            margin: 0 0 7px;
        }

        .pdf-kit-privacy-note p {
            color: #3f3f46;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .pdf-kit-privacy-note ul {
            border-top: 1px solid #e1e5e2;
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 20px 0 0;
            padding: 16px 0 0;
        }

        .pdf-kit-privacy-note li {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .pdf-kit-privacy-note li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .pdf-kit-trust-row {
            display: grid;
            gap: 26px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 28px 0 0;
            max-width: 860px;
        }

        .pdf-kit-trust-item {
            align-items: center;
            display: grid;
            gap: 11px;
            grid-template-columns: 24px 1fr;
            min-width: 0;
        }

        .pdf-kit-trust-icon {
            align-items: center;
            color: #17683a;
            display: inline-flex;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .pdf-kit-trust-icon svg {
            height: 23px;
            width: 23px;
        }

        .pdf-kit-trust-item strong {
            color: #18181b;
            display: block;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
        }

        .pdf-kit-trust-item span:not(.pdf-kit-trust-icon) {
            color: #52525b;
            display: block;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.3;
        }

        .pdf-kit-list-section {
            border-top: 1px solid #e4e4e7;
            padding-top: 32px;
        }

        .pdf-kit-section-heading {
            margin-bottom: 18px;
        }

        .pdf-kit-section-heading h2 {
            font-size: 1.2rem;
            margin: 0;
        }

        .pdf-kit-grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .pdf-kit-card {
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid #d8dedb;
            border-radius: 7px;
            display: grid;
            gap: 18px;
            padding: 22px;
        }

        .pdf-kit-card-top {
            align-items: start;
            display: grid;
            gap: 14px;
            grid-template-columns: 42px 1fr;
        }

        .pdf-kit-tool-icon {
            align-items: center;
            background: #f2f7f4;
            border: 1px solid #cfe0d7;
            border-radius: 7px;
            color: #17683a;
            display: inline-flex;
            height: 42px;
            justify-content: center;
            width: 42px;
        }

        .pdf-kit-tool-icon svg {
            height: 21px;
            width: 21px;
        }

        .pdf-kit-tool-label {
            color: #17683a;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
        }

        .pdf-kit-card h3 {
            font-size: 1.2rem;
            line-height: 1.25;
            margin: 7px 0 0;
        }

        .pdf-kit-card p {
            color: #52525b;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }

        .pdf-kit-card ul {
            color: #3f3f46;
            display: grid;
            font-size: 0.9rem;
            gap: 8px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .pdf-kit-card li {
            align-items: center;
            display: flex;
            gap: 8px;
        }

        .pdf-kit-card li::before {
            background: #17683a;
            border-radius: 999px;
            content: "";
            flex: 0 0 auto;
            height: 6px;
            width: 6px;
        }

        .pdf-kit-link {
            align-items: center;
            background: #18181b;
            border-radius: 6px;
            color: #fff;
            display: inline-flex;
            font-size: 0.95rem;
            font-weight: 800;
            gap: 8px;
            justify-content: center;
            min-height: 44px;
            padding: 10px 14px;
            width: 100%;
        }

        .pdf-kit-link svg {
            height: 17px;
            width: 17px;
        }

        @media (max-width: 960px) {
            .pdf-kit-hero-grid,
            .pdf-kit-trust-row,
            .pdf-kit-grid {
                grid-template-columns: 1fr;
            }

            .pdf-kit-privacy-note {
                max-width: 560px;
            }
        }

        @media (max-width: 640px) {
            .pdf-kit-page {
                padding: 94px 13px 48px;
            }

            .pdf-kit-hero h1 {
                font-size: 2.52rem;
                line-height: 1.02;
            }

            .pdf-kit-privacy-note,
            .pdf-kit-card-top {
                grid-template-columns: 1fr;
            }

            .pdf-kit-trust-row {
                gap: 16px;
            }
        }
/* LA_TOOLS_SOURCE_END routes/tools/pdf-toolkit.php */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/pdf-tool.php - Shared PDF tool workspace */
.pdf-tool-page {
            background:
                radial-gradient(circle at 25% 8%, rgba(20, 83, 45, 0.045), transparent 34%),
                radial-gradient(circle at 78% 4%, rgba(24, 24, 27, 0.035), transparent 32%),
                #fff;
            color: #171717;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            padding: 84px 36px 56px;
        }

        .pdf-tool-shell {
            margin: 0 auto;
            max-width: 1440px;
        }

        .pdf-tool-hero {
            align-items: center;
            display: grid;
            gap: 30px;
            grid-template-columns: minmax(0, 1fr) 405px;
            margin-bottom: 26px;
        }

        .pdf-tool-breadcrumb ol {
            align-items: center;
            color: #71717a;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 500;
            gap: 16px;
            letter-spacing: 0;
            list-style: none;
            margin: 0 0 12px;
            padding: 0;
        }

        .pdf-tool-breadcrumb a {
            color: #52525b;
        }

        .pdf-tool-kicker {
            background: rgba(236, 253, 245, 0.65);
            border: 1px solid rgba(22, 101, 52, 0.35);
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 13px;
        }

        .pdf-tool-hero h1 {
            color: #171717;
            font-family: "DM Serif Display", Georgia, serif;
            font-size: clamp(3.1rem, 4.2vw, 4.2rem);
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1;
            margin: 0;
            max-width: 1040px;
            text-align: left;
        }

        .pdf-tool-lede {
            color: #4b5563;
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 14px 0 0;
            max-width: 820px;
        }

        .pdf-tool-trust-row {
            display: grid;
            gap: 26px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 28px 0 0;
            max-width: 900px;
        }

        .pdf-tool-trust-item {
            align-items: center;
            display: grid;
            gap: 11px;
            grid-template-columns: 24px 1fr;
            min-width: 0;
        }

        .pdf-tool-trust-icon {
            align-items: center;
            color: #17683a;
            display: inline-flex;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .pdf-tool-trust-icon svg,
        .pdf-tool-privacy-icon svg,
        .pdf-tool-upload-icon svg,
        .pdf-tool-status-icon svg,
        .pdf-tool-primary-button svg,
        .pdf-tool-download-button svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
        }

        .pdf-tool-trust-icon svg {
            height: 23px;
            width: 23px;
        }

        .pdf-tool-trust-item strong {
            color: #18181b;
            display: block;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
        }

        .pdf-tool-trust-item span:not(.pdf-tool-trust-icon) {
            color: #52525b;
            display: block;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.3;
        }

        .pdf-tool-privacy-box {
            align-items: flex-start;
            align-self: end;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            box-shadow: none;
            display: grid;
            gap: 14px;
            grid-template-columns: 34px 1fr;
            padding: 18px 22px 18px;
        }

        .pdf-tool-privacy-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px 999px 999px 6px;
            color: #fff;
            display: inline-flex;
            height: 34px;
            justify-content: center;
            margin-top: 1px;
            width: 34px;
        }

        .pdf-tool-privacy-icon svg {
            height: 21px;
            width: 21px;
        }

        .pdf-tool-privacy-box strong {
            display: block;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
            margin: 0 0 7px;
        }

        .pdf-tool-privacy-box p {
            color: #3f3f46;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .pdf-tool-privacy-box ul {
            border-top: 1px solid #e1e5e2;
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 20px 0 0;
            padding: 16px 0 0;
        }

        .pdf-tool-privacy-box li {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .pdf-tool-privacy-box li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .pdf-tool-workspace {
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            display: grid;
            grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1fr);
            overflow: hidden;
        }

        .pdf-tool-config-panel,
        .pdf-tool-result-panel {
            min-width: 0;
            padding: 28px;
        }

        .pdf-tool-config-panel {
            border-right: 1px solid #d8dedb;
        }

        .pdf-tool-panel-heading {
            align-items: center;
            display: flex;
            gap: 14px;
            margin-bottom: 18px;
        }

        .pdf-tool-panel-heading > span {
            align-items: center;
            border: 1px solid #cfd8d3;
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            flex: 0 0 auto;
            font-weight: 800;
            height: 32px;
            justify-content: center;
            width: 32px;
        }

        .pdf-tool-panel-heading h2 {
            font-size: 1.05rem;
            line-height: 1.25;
            margin: 0;
        }

        .pdf-tool-form {
            display: grid;
            gap: 18px;
        }

        .pdf-tool-upload {
            border: 1px dashed #aebbb4;
            border-radius: 7px;
            cursor: pointer;
            min-height: 184px;
            position: relative;
        }

        .pdf-tool-upload input {
            cursor: pointer;
            inset: 0;
            opacity: 0;
            position: absolute;
            width: 100%;
        }

        .pdf-tool-upload-copy {
            align-items: center;
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
            min-height: 184px;
            padding: 26px;
            text-align: center;
        }

        .pdf-tool-upload-icon {
            color: #17683a;
            display: inline-flex;
            height: 36px;
            width: 36px;
        }

        .pdf-tool-upload-icon svg {
            height: 36px;
            width: 36px;
        }

        .pdf-tool-upload-copy strong {
            color: #111827;
            font-size: 1rem;
            line-height: 1.35;
        }

        .pdf-tool-upload-copy span:not(.pdf-tool-upload-icon) {
            color: #52525b;
            font-size: 0.92rem;
        }

        .pdf-tool-file-list {
            border: 1px solid #d8dedb;
            border-radius: 7px;
            display: grid;
            gap: 8px;
            padding: 12px;
        }

        .pdf-tool-file-list[hidden],
        .pdf-tool-output-box[hidden] {
            display: none !important;
        }

        .pdf-tool-file-row {
            align-items: center;
            display: grid;
            gap: 10px;
            grid-template-columns: 34px minmax(0, 1fr) auto;
        }

        .pdf-tool-file-type {
            align-items: center;
            border: 1px solid #fecaca;
            border-radius: 5px;
            color: #dc2626;
            display: inline-flex;
            font-size: 10px;
            font-weight: 900;
            height: 28px;
            justify-content: center;
            width: 28px;
        }

        .pdf-tool-file-name {
            color: #111827;
            font-size: 0.9rem;
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .pdf-tool-file-meta {
            color: #71717a;
            font-size: 0.82rem;
            font-weight: 700;
        }

        .pdf-tool-card {
            border-top: 1px solid #e4e4e7;
            display: grid;
            gap: 12px;
            padding-top: 18px;
        }

        .pdf-tool-subsection-label {
            color: #27272a;
            font-size: 0.92rem;
            font-weight: 900;
            line-height: 1;
        }

        .pdf-tool-grid-2 {
            display: grid;
            gap: 14px;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        .pdf-tool-field {
            display: grid;
            gap: 8px;
        }

        .pdf-tool-field span,
        .pdf-tool-check span {
            color: #27272a;
            font-size: 0.85rem;
            font-weight: 800;
        }

        .pdf-tool-field input,
        .pdf-tool-field select {
            background: #fff;
            border: 1px solid #d1d5db;
            border-radius: 7px;
            color: #111827;
            font: inherit;
            min-height: 46px;
            padding: 10px 12px;
            width: 100%;
        }

        .pdf-tool-check {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .pdf-tool-check input {
            accent-color: #17683a;
            height: 18px;
            width: 18px;
        }

        .pdf-tool-card p,
        .pdf-tool-footnote {
            color: #6b7280;
            font-size: 0.9rem;
            line-height: 1.55;
            margin: 0;
        }

        .pdf-tool-primary-button,
        .pdf-tool-download-button {
            align-items: center;
            background: #18723f;
            border: 0;
            border-radius: 6px;
            box-shadow: none;
            color: #fff;
            cursor: pointer;
            display: inline-flex;
            font-size: 1rem;
            font-weight: 900;
            gap: 10px;
            justify-content: center;
            min-height: 54px;
            padding: 13px 18px;
            text-decoration: none;
            width: 100%;
        }

        .pdf-tool-primary-button svg,
        .pdf-tool-download-button svg {
            height: 20px;
            width: 20px;
        }

        .pdf-tool-primary-button:disabled {
            cursor: wait;
            opacity: 0.72;
        }

        .pdf-tool-status-card,
        .pdf-tool-output-box {
            align-items: flex-start;
            border: 1px solid #b7d3c2;
            border-radius: 7px;
            display: grid;
            gap: 16px;
            grid-template-columns: 36px 1fr;
            padding: 22px;
        }

        .pdf-tool-status-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px;
            color: #fff;
            display: inline-flex;
            height: 32px;
            justify-content: center;
            width: 32px;
        }

        .pdf-tool-status-icon svg {
            height: 20px;
            width: 20px;
        }

        .pdf-tool-status-card strong,
        .pdf-tool-output-box strong {
            color: #18181b;
            display: block;
            font-size: 1rem;
            font-weight: 900;
            margin: 0 0 6px;
        }

        .pdf-tool-status-card p,
        .pdf-tool-output-box p {
            color: #52525b;
            font-size: 0.95rem;
            line-height: 1.55;
            margin: 0;
        }

        .pdf-tool-output-box {
            background: #f7fbf8;
            grid-template-columns: 1fr;
            margin-top: 18px;
        }

        .pdf-tool-download-button {
            margin-top: 4px;
        }

        .pdf-tool-guidance {
            border-top: 1px solid #e4e4e7;
            margin-top: 24px;
            padding-top: 22px;
        }

        .pdf-tool-guidance h3 {
            color: #18181b;
            font-size: 1.05rem;
            margin: 0 0 12px;
        }

        .pdf-tool-guidance ul {
            color: #52525b;
            display: grid;
            font-size: 0.95rem;
            gap: 10px;
            line-height: 1.55;
            margin: 0;
            padding-left: 20px;
        }

        @media (max-width: 1060px) {
            .pdf-tool-hero,
            .pdf-tool-trust-row,
            .pdf-tool-workspace {
                grid-template-columns: 1fr;
            }

            .pdf-tool-privacy-box {
                max-width: 560px;
            }

            .pdf-tool-config-panel {
                border-bottom: 1px solid #d8dedb;
                border-right: 0;
            }
        }

        @media (max-width: 640px) {
            .pdf-tool-page {
                padding: 94px 13px 48px;
            }

            .pdf-tool-hero h1 {
                font-size: 2.52rem;
                line-height: 1.02;
            }

            .pdf-tool-privacy-box,
            .pdf-tool-status-card,
            .pdf-tool-file-row,
            .pdf-tool-grid-2 {
                grid-template-columns: 1fr;
            }

            .pdf-tool-config-panel,
            .pdf-tool-result-panel {
                padding: 22px;
            }

            .pdf-tool-trust-row {
                gap: 16px;
            }
        }
/* LA_TOOLS_SOURCE_END routes/tools/pdf-tool.php */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/bates-numbering.php - Bates numbering tool */
.bates-page {
            min-height: 100vh;
            padding: 132px 20px 72px;
        }

        .bates-shell {
            max-width: 1220px;
            margin: 0 auto;
        }

        .bates-breadcrumb {
            margin-bottom: 14px;
        }

        .bates-breadcrumb ol {
            display: flex;
            align-items: center;
            gap: 8px;
            list-style: none;
            color: #a1a1aa;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.4;
        }

        .bates-breadcrumb a {
            color: #52525b;
        }

        .bates-hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 36px;
            align-items: center;
            margin-bottom: 32px;
        }

        .bates-kicker {
            background: #ecfdf5;
            border: 1px solid #bbf7d0;
            border-radius: 999px;
            color: #047857;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
            margin: 0 0 14px;
            padding: 5px 10px;
            text-transform: uppercase;
        }

        .bates-hero h1 {
            color: #0a0a0a;
            font-family: 'DM Serif Display', Georgia, serif;
            font-size: 3.28rem;
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1.06;
            margin: 0;
            max-width: 860px;
        }

        .bates-lede {
            color: #52525b;
            font-size: 1.02rem;
            line-height: 1.7;
            margin: 16px 0 0;
            max-width: 720px;
        }

        .bates-trust-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 18px;
        }

        .bates-trust-row span {
            background: #fff;
            border: 1px solid #e4e4e7;
            border-radius: 999px;
            color: #3f3f46;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 10px;
        }

        .bates-privacy-box {
            align-items: flex-start;
            background: #fff;
            border: 1px solid #d4d4d8;
            border-radius: 8px;
            display: flex;
            gap: 12px;
            padding: 18px;
        }

        .bates-privacy-box strong {
            color: #18181b;
            display: block;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .bates-privacy-box p {
            color: #52525b;
            font-size: 13px;
            line-height: 1.5;
            margin: 0;
        }

        .bates-privacy-dot {
            background: #16a34a;
            border-radius: 999px;
            box-shadow: 0 0 0 4px #dcfce7;
            flex: 0 0 auto;
            height: 10px;
            margin-top: 5px;
            width: 10px;
        }

        .bates-workspace {
            align-items: start;
            display: grid;
            gap: 20px;
            grid-template-columns: minmax(0, 1fr) 420px;
        }

        .bates-panel {
            background: #fff;
            border: 1px solid #e4e4e7;
            border-radius: 8px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }

        .bates-tool-panel {
            padding: 22px;
        }

        .bates-panel-heading {
            align-items: flex-start;
            display: flex;
            gap: 12px;
            margin-bottom: 18px;
        }

        .bates-panel-heading > span {
            background: #18181b;
            border-radius: 999px;
            color: #fff;
            flex: 0 0 auto;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            padding: 6px 9px;
            text-transform: uppercase;
        }

        .bates-panel-heading h2 {
            color: #18181b;
            font-size: 1.05rem;
            font-weight: 800;
            line-height: 1.25;
            margin: 0 0 4px;
        }

        .bates-panel-heading p {
            color: #71717a;
            font-size: 13px;
            line-height: 1.5;
            margin: 0;
        }

        .bates-form {
            display: grid;
            gap: 20px;
        }

        .bates-upload {
            align-items: center;
            background: #fafafa;
            border: 1px dashed #a1a1aa;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            min-height: 148px;
            overflow: hidden;
            padding: 24px;
            position: relative;
            text-align: center;
            transition: border-color 0.18s ease, background 0.18s ease;
        }

        .bates-upload.is-dragging {
            background: #f0fdf4;
            border-color: #16a34a;
        }

        .bates-upload input {
            cursor: pointer;
            inset: 0;
            opacity: 0;
            position: absolute;
        }

        .bates-upload-copy {
            align-items: center;
            color: #52525b;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }

        .bates-upload-copy strong {
            color: #18181b;
            font-size: 1rem;
        }

        .bates-upload-copy span:last-child {
            font-size: 13px;
        }

        .bates-local-note {
            align-items: center;
            background: #f8faf9;
            border: 1px solid #dce9df;
            border-radius: 8px;
            color: #3f3f46;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            font-size: 13px;
            line-height: 1.5;
            padding: 10px 12px;
        }

        .bates-local-note strong {
            color: #14532d;
        }

        .bates-form-section {
            border-top: 1px solid #e4e4e7;
            display: grid;
            gap: 14px;
            padding-top: 18px;
        }

        .bates-section-heading {
            align-items: flex-start;
            display: flex;
            gap: 10px;
        }

        .bates-section-heading > span {
            align-items: center;
            background: #f4f4f5;
            border: 1px solid #e4e4e7;
            border-radius: 999px;
            color: #3f3f46;
            display: inline-flex;
            flex: 0 0 auto;
            font-size: 12px;
            font-weight: 800;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .bates-section-heading h3 {
            color: #18181b;
            font-size: 1rem;
            font-weight: 800;
            line-height: 1.25;
            margin: 0 0 3px;
        }

        .bates-section-heading p {
            color: #71717a;
            font-size: 13px;
            line-height: 1.45;
            margin: 0;
        }

        .bates-upload-icon {
            align-items: center;
            background: #18181b;
            border-radius: 6px;
            color: #fff;
            display: inline-flex;
            font-size: 12px;
            font-weight: 800;
            height: 42px;
            justify-content: center;
            letter-spacing: 0;
            width: 42px;
        }

        .bates-grid {
            display: grid;
            gap: 14px;
        }

        .bates-grid-4 {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .bates-grid-5 {
            grid-template-columns: 1.2fr 0.7fr 1fr 0.8fr 1fr;
        }

        .bates-grid-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .bates-field,
        .bates-range-inputs label {
            display: grid;
            gap: 7px;
        }

        .bates-field span,
        .bates-range legend,
        .bates-range-inputs span {
            color: #3f3f46;
            font-size: 12px;
            font-weight: 700;
        }

        .bates-field input,
        .bates-field select,
        .bates-range-inputs input {
            background: #fff;
            border: 1px solid #d4d4d8;
            border-radius: 8px;
            color: #18181b;
            font: inherit;
            min-height: 42px;
            padding: 9px 11px;
            width: 100%;
        }

        .bates-field input[type="color"] {
            min-height: 42px;
            padding: 4px;
        }

        .bates-field input[type="range"] {
            padding: 0;
        }

        .bates-format-preview {
            align-items: center;
            background: #fafafa;
            border: 1px solid #e4e4e7;
            border-radius: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 12px;
        }

        .bates-format-preview span {
            color: #71717a;
            font-size: 12px;
            font-weight: 700;
            margin-right: 2px;
        }

        .bates-format-preview strong {
            background: #fff;
            border: 1px solid #d4d4d8;
            border-radius: 6px;
            color: #18181b;
            font-family: Helvetica, Arial, sans-serif;
            font-size: 12px;
            line-height: 1;
            padding: 8px 9px;
        }

        .bates-range {
            align-items: center;
            border: 1px solid #e4e4e7;
            border-radius: 8px;
            display: grid;
            gap: 12px;
            grid-template-columns: auto auto 1fr;
            margin: 0;
            padding: 14px;
        }

        .bates-range legend {
            padding: 0 6px;
        }

        .bates-radio,
        .bates-check {
            align-items: center;
            color: #3f3f46;
            display: inline-flex;
            font-size: 14px;
            gap: 8px;
            min-height: 42px;
        }

        .bates-range-inputs {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            justify-self: end;
            max-width: 260px;
            width: 100%;
        }

        .bates-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .bates-button,
        .bates-download {
            align-items: center;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            justify-content: center;
            min-height: 44px;
            padding: 10px 16px;
            text-align: center;
            transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }

        .bates-button-primary {
            background: #18181b;
            border: 1px solid #18181b;
            color: #fff;
        }

        .bates-button-primary:disabled {
            background: #a1a1aa;
            border-color: #a1a1aa;
            cursor: wait;
        }

        .bates-button-secondary {
            background: #fff;
            border: 1px solid #d4d4d8;
            color: #27272a;
        }

        .bates-side {
            display: grid;
            gap: 20px;
        }

        .bates-preview-panel,
        .bates-notes {
            padding: 18px;
        }

        .bates-notes h2 {
            color: #18181b;
            font-size: 1rem;
            font-weight: 700;
            margin: 0 0 14px;
        }

        .bates-preview-heading {
            margin-bottom: 14px;
        }

        .bates-preview-sheet {
            align-items: center;
            background: #f4f4f5;
            border: 1px solid #e4e4e7;
            border-radius: 6px;
            display: flex;
            height: 360px;
            justify-content: center;
            margin-bottom: 12px;
            overflow: hidden;
            position: relative;
        }

        .bates-preview-empty {
            align-items: center;
            background:
                linear-gradient(#e4e4e7 1px, transparent 1px),
                linear-gradient(90deg, #e4e4e7 1px, transparent 1px),
                #fff;
            background-size: 24px 24px;
            color: #52525b;
            display: flex;
            flex-direction: column;
            gap: 8px;
            height: 100%;
            justify-content: center;
            padding: 24px;
            text-align: center;
            width: 100%;
        }

        .bates-preview-empty[hidden] {
            display: none;
        }

        .bates-preview-empty strong {
            color: #18181b;
            font-size: 14px;
        }

        .bates-preview-empty span {
            font-size: 13px;
            line-height: 1.5;
            max-width: 260px;
        }

        .bates-preview-document {
            align-items: center;
            display: flex;
            justify-content: center;
            position: relative;
        }

        .bates-preview-document[hidden] {
            display: none;
        }

        .bates-preview-document canvas {
            background: #fff;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
            display: block;
            max-height: 100%;
            max-width: 100%;
        }

        .bates-preview-stamp {
            background: rgba(255, 255, 255, 0.9);
            bottom: 20px;
            color: #111827;
            font-family: Helvetica, Arial, sans-serif;
            font-size: 12px;
            font-weight: 700;
            padding: 2px 5px;
            position: absolute;
            right: 20px;
            z-index: 2;
        }

        .bates-preview-note {
            color: #71717a;
            font-size: 12px;
            line-height: 1.55;
            margin: 0 0 12px;
        }

        .bates-status {
            color: #52525b;
            font-size: 13px;
            line-height: 1.6;
            margin: 0;
        }

        .bates-status.is-error {
            color: #b91c1c;
        }

        .bates-status.is-success {
            color: #047857;
        }

        .bates-download {
            background: #047857;
            border: 1px solid #047857;
            color: #fff;
            min-width: 190px;
        }

        .bates-download[hidden] {
            display: none;
        }

        .bates-result-bar {
            align-items: center;
            background: #f8faf9;
            border: 1px solid #dce9df;
            border-radius: 8px;
            display: flex;
            gap: 12px;
            justify-content: space-between;
            padding: 12px;
        }

        .bates-result-bar strong {
            color: #18181b;
            display: block;
            font-size: 14px;
            margin-bottom: 2px;
        }

        .bates-notes ul {
            color: #52525b;
            display: grid;
            font-size: 13px;
            gap: 9px;
            line-height: 1.5;
            margin: 0 0 14px 18px;
        }

        .bates-notes p {
            border-top: 1px solid #e4e4e7;
            color: #71717a;
            font-size: 12px;
            line-height: 1.6;
            margin: 0;
            padding-top: 14px;
        }

        @media (max-width: 1180px) {
            .bates-hero {
                grid-template-columns: 1fr;
            }

            .bates-privacy-box {
                max-width: 560px;
            }
        }

        @media (max-width: 900px) {
            .bates-workspace {
                grid-template-columns: 1fr;
            }

            .bates-hero h1 {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 720px) {
            .bates-page {
                padding: 104px 14px 56px;
            }

            .bates-grid-4,
            .bates-grid-5,
            .bates-grid-3,
            .bates-range,
            .bates-range-inputs {
                grid-template-columns: 1fr;
            }

            .bates-range-inputs {
                justify-self: stretch;
                max-width: none;
            }

            .bates-actions,
            .bates-button {
                width: 100%;
            }

            .bates-result-bar {
                align-items: stretch;
                flex-direction: column;
            }

            .bates-download {
                width: 100%;
            }

            .bates-hero h1 {
                font-size: 2.3rem;
            }

            .bates-preview-sheet {
                height: 300px;
            }
        }

        /* Reference mockup skin */
        .bates-page {
            background:
                radial-gradient(circle at 25% 8%, rgba(20, 83, 45, 0.045), transparent 34%),
                radial-gradient(circle at 78% 4%, rgba(24, 24, 27, 0.035), transparent 32%),
                #fff;
            color: #171717;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            padding: 84px 36px 56px;
        }

        .bates-shell {
            max-width: 1440px;
            margin: 0 auto;
        }

        .bates-breadcrumb {
            margin: 0 0 12px;
        }

        .bates-breadcrumb ol {
            align-items: center;
            color: #71717a;
            display: flex;
            font-size: 13px;
            font-weight: 500;
            gap: 16px;
            letter-spacing: 0;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .bates-breadcrumb a {
            color: #52525b;
        }

        .bates-hero {
            align-items: center;
            display: grid;
            gap: 30px;
            grid-template-columns: minmax(0, 1fr) 405px;
            margin-bottom: 26px;
        }

        .bates-kicker {
            background: rgba(236, 253, 245, 0.65);
            border: 1px solid rgba(22, 101, 52, 0.35);
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 13px;
            text-transform: none;
        }

        .bates-hero h1 {
            color: #171717;
            font-family: 'DM Serif Display', Georgia, serif;
            font-size: clamp(3.1rem, 4.2vw, 4.2rem);
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1;
            margin: 0;
            max-width: 1060px;
            text-align: left;
        }

        .bates-lede {
            color: #4b5563;
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 14px 0 0;
            max-width: 780px;
        }

        .bates-privacy-box {
            align-items: flex-start;
            align-self: end;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            box-shadow: none;
            display: grid;
            grid-template-columns: 34px 1fr;
            gap: 14px;
            padding: 18px 22px 18px;
        }

        .bates-privacy-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px 999px 999px 6px;
            color: #fff;
            display: inline-flex;
            height: 34px;
            justify-content: center;
            margin-top: 1px;
            width: 34px;
        }

        .bates-privacy-icon svg,
        .bates-trust-icon svg,
        .bates-upload-icon svg,
        .bates-button svg,
        .bates-download svg,
        .bates-preview-toolbar svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.9;
        }

        .bates-privacy-icon svg {
            height: 21px;
            width: 21px;
        }

        .bates-privacy-box strong {
            color: #18181b;
            display: block;
            font-size: 15px;
            font-weight: 800;
            margin: 0 0 7px;
        }

        .bates-privacy-box p {
            color: #3f3f46;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .bates-privacy-box ul {
            border-top: 1px solid #e1e5e2;
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 20px 0 0;
            padding: 16px 0 0;
        }

        .bates-privacy-box li {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .bates-privacy-box li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .bates-trust-row {
            display: grid;
            gap: 26px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 28px 0 0;
            max-width: 860px;
        }

        .bates-trust-row span {
            background: transparent;
            border: 0;
            border-radius: 0;
            padding: 0;
        }

        .bates-trust-item {
            align-items: center;
            display: grid;
            gap: 12px;
            grid-template-columns: 34px 1fr;
            min-width: 0;
        }

        .bates-trust-icon {
            align-items: center;
            border: 2px solid #17683a;
            border-radius: 999px;
            color: #17683a;
            display: inline-flex;
            height: 30px;
            justify-content: center;
            width: 30px;
        }

        .bates-trust-icon svg {
            height: 19px;
            width: 19px;
        }

        .bates-trust-item strong {
            color: #18181b;
            display: block;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.25;
        }

        .bates-trust-item span:not(.bates-trust-icon) {
            color: #52525b;
            display: block;
            font-size: 12px;
            line-height: 1.35;
            margin-top: 3px;
        }

        .bates-workspace {
            align-items: stretch;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            box-shadow: none;
            display: grid;
            gap: 0;
            grid-template-columns: 43.5% 56.5%;
            min-height: 620px;
            overflow: hidden;
        }

        .bates-tool-panel,
        .bates-preview-panel {
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 24px;
        }

        .bates-preview-panel {
            border-left: 1px solid #d8dedb;
        }

        .bates-panel-heading {
            align-items: center;
            display: flex;
            gap: 11px;
            margin: 0 0 20px;
        }

        .bates-panel-heading > span {
            align-items: center;
            background: #fff;
            border: 1px solid #d4d4d8;
            border-radius: 999px;
            color: #27272a;
            display: inline-flex;
            flex: 0 0 auto;
            font-size: 14px;
            font-weight: 500;
            height: 28px;
            justify-content: center;
            line-height: 1;
            padding: 0;
            text-transform: none;
            width: 28px;
        }

        .bates-panel-heading h2 {
            color: #18181b;
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 0;
            line-height: 1.25;
            margin: 0;
        }

        .bates-panel-heading p {
            display: none;
        }

        .bates-form {
            display: grid;
            gap: 18px;
        }

        .bates-upload {
            align-items: center;
            background: rgba(250, 250, 250, 0.7);
            border: 1px dashed #aeb7b2;
            border-radius: 7px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            min-height: 164px;
            overflow: hidden;
            padding: 18px 20px;
            position: relative;
            text-align: center;
            transition: border-color 0.18s ease, background 0.18s ease;
        }

        .bates-upload.is-dragging {
            background: #f0fdf4;
            border-color: #17683a;
        }

        .bates-upload input {
            cursor: pointer;
            inset: 0;
            opacity: 0;
            position: absolute;
            z-index: 2;
        }

        .bates-upload-copy {
            align-items: center;
            color: #3f3f46;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
            width: 100%;
        }

        .bates-upload-icon {
            align-items: center;
            background: transparent;
            border-radius: 0;
            color: #17683a;
            display: inline-flex;
            height: 30px;
            justify-content: center;
            width: 30px;
        }

        .bates-upload-icon svg {
            height: 30px;
            stroke-width: 1.8;
            width: 30px;
        }

        .bates-upload-copy strong {
            color: #111827;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
        }

        .bates-upload-copy > span:not(.bates-upload-icon) {
            color: #52525b;
            font-size: 13px;
            line-height: 1.2;
        }

        .bates-file-row {
            align-items: center;
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 6px;
            color: #18181b;
            display: grid;
            gap: 12px;
            grid-template-columns: 28px 1fr auto 18px;
            margin-top: 6px;
            min-height: 48px;
            padding: 9px 14px;
            text-align: left;
            width: min(100%, 520px);
        }

        .bates-file-row[hidden] {
            display: none;
        }

        .bates-file-icon {
            align-items: center;
            border: 1px solid #ef4444;
            border-radius: 4px;
            color: #ef4444;
            display: inline-flex;
            font-size: 8px;
            font-weight: 900;
            height: 25px;
            justify-content: center;
            width: 21px;
        }

        .bates-file-name {
            color: #18181b;
            font-size: 14px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bates-file-size {
            color: #52525b;
            font-size: 12px;
            white-space: nowrap;
        }

        .bates-file-check {
            color: #17683a;
            font-size: 18px;
            font-weight: 900;
        }

        .bates-grid {
            display: grid;
            gap: 14px 16px;
        }

        .bates-grid-4 {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .bates-grid-placement {
            grid-template-columns: 1.35fr 1fr 1.25fr;
        }

        .bates-field,
        .bates-range-inputs label {
            display: grid;
            gap: 7px;
            min-width: 0;
        }

        .bates-field > span:first-child,
        .bates-range legend,
        .bates-range-inputs span,
        .bates-check > span:first-child {
            align-items: center;
            color: #27272a;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            gap: 6px;
            line-height: 1.2;
        }

        .bates-field em,
        .bates-check em {
            align-items: center;
            border: 1px solid #71717a;
            border-radius: 999px;
            color: #71717a;
            display: inline-flex;
            font-size: 10px;
            font-style: normal;
            height: 14px;
            justify-content: center;
            line-height: 1;
            width: 14px;
        }

        .bates-field input,
        .bates-field select,
        .bates-range-inputs input,
        .bates-input-unit {
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 6px;
            color: #111827;
            font: inherit;
            font-size: 14px;
            min-height: 39px;
            padding: 8px 11px;
            width: 100%;
        }

        .bates-field select {
            appearance: auto;
        }

        .bates-input-unit {
            align-items: center;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            padding: 0 10px 0 0;
        }

        .bates-input-unit input {
            border: 0;
            min-height: 37px;
            padding-right: 0;
        }

        .bates-input-unit b {
            color: #71717a;
            font-size: 12px;
            font-weight: 500;
        }

        .bates-range {
            align-items: end;
            border: 0;
            display: grid;
            gap: 8px 14px;
            grid-template-columns: auto auto;
            margin: 0;
            padding: 0;
        }

        .bates-range legend {
            grid-column: 1 / -1;
            margin: 0;
            padding: 0;
        }

        .bates-radio {
            align-items: center;
            color: #27272a;
            display: inline-flex;
            font-size: 13px;
            gap: 7px;
            min-height: 39px;
            white-space: nowrap;
        }

        .bates-radio input,
        .bates-check input {
            accent-color: #17683a;
        }

        .bates-range-inputs {
            display: none;
        }

        .bates-range.has-custom {
            grid-template-columns: auto auto minmax(180px, 260px);
        }

        .bates-range.has-custom .bates-range-inputs {
            display: grid;
            gap: 10px;
            grid-column: auto;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .bates-appearance-group {
            border-top: 1px solid #edf1ef;
            display: grid;
            gap: 8px;
            padding-top: 4px;
        }

        .bates-subsection-label {
            color: #3f3f46;
            font-size: 12px;
            font-weight: 700;
        }

        .bates-appearance-row {
            align-items: start;
            display: grid;
            gap: 14px 16px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .bates-color-control {
            align-items: center;
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 6px;
            display: grid;
            gap: 10px;
            grid-template-columns: 18px 1fr;
            height: 39px;
            min-height: 39px;
            padding: 7px 11px;
            width: 100%;
        }

        .bates-field .bates-color-control input[type="color"] {
            appearance: none;
            background: transparent;
            border: 0;
            height: 24px;
            min-height: 0;
            padding: 0;
            width: 18px;
        }

        .bates-field .bates-color-control input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .bates-field .bates-color-control input[type="color"]::-webkit-color-swatch {
            border: 0;
            border-radius: 0;
        }

        .bates-color-control b {
            color: #18181b;
            font-size: 14px;
            font-weight: 500;
        }

        .bates-check {
            align-items: end;
            color: #27272a;
            display: grid;
            gap: 7px;
            min-height: 0;
        }

        .bates-switch {
            align-items: center;
            background: #17683a;
            border-radius: 999px;
            display: inline-flex;
            height: 25px;
            padding: 3px;
            position: relative;
            width: 45px;
        }

        .bates-switch input {
            inset: 0;
            opacity: 0;
            position: absolute;
        }

        .bates-switch i {
            background: #fff;
            border-radius: 999px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
            display: block;
            height: 19px;
            margin-left: 20px;
            width: 19px;
        }

        .bates-switch:has(input:not(:checked)) {
            background: #d4d4d8;
        }

        .bates-switch:has(input:not(:checked)) i {
            margin-left: 0;
        }

        .bates-actions {
            display: block;
        }

        .bates-button,
        .bates-download {
            align-items: center;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            font: inherit;
            font-size: 15px;
            font-weight: 800;
            gap: 10px;
            justify-content: center;
            min-height: 51px;
            padding: 12px 18px;
            text-align: center;
            transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .bates-button svg,
        .bates-download svg {
            height: 18px;
            width: 18px;
        }

        .bates-button-primary {
            background: #17683a;
            border: 1px solid #17683a;
            box-shadow: none;
            color: #fff;
            width: 100%;
        }

        .bates-button-primary:hover {
            background: #145f35;
            transform: none;
        }

        .bates-button-primary:disabled {
            background: #8fb39f;
            border-color: #8fb39f;
            box-shadow: none;
            cursor: wait;
            transform: none;
        }

        .bates-processing-note {
            align-items: center;
            color: #71717a;
            display: flex;
            font-size: 12px;
            gap: 9px;
            margin: 8px 0 0;
        }

        .bates-processing-note span {
            align-items: center;
            border: 1px solid #71717a;
            border-radius: 999px;
            display: inline-flex;
            flex: 0 0 auto;
            font-size: 10px;
            font-weight: 800;
            height: 15px;
            justify-content: center;
            width: 15px;
        }

        .bates-preview-heading {
            display: grid;
            grid-template-columns: auto auto 1fr;
            margin-bottom: 18px;
        }

        .bates-preview-toolbar {
            align-items: center;
            display: flex;
            gap: 8px;
            justify-self: end;
        }

        .bates-preview-toolbar select,
        .bates-preview-toolbar button,
        .bates-preview-toolbar > span {
            align-items: center;
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 6px;
            color: #18181b;
            display: inline-flex;
            font: inherit;
            font-size: 13px;
            height: 34px;
            justify-content: center;
            min-width: 34px;
            padding: 0 11px;
        }

        .bates-preview-toolbar > span {
            border: 0;
            min-width: 0;
            padding: 0 2px;
        }

        .bates-preview-toolbar svg {
            height: 17px;
            width: 17px;
        }

        .bates-preview-sheet {
            background: #e9e9e9;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            display: block;
            height: 402px;
            margin: 0 0 22px;
            overflow: auto;
            overscroll-behavior: contain;
            padding: 16px 28px;
            position: relative;
            scroll-behavior: smooth;
        }

        .bates-preview-sheet:fullscreen {
            border: 0;
            border-radius: 0;
            height: 100vh;
            margin: 0;
            padding: 56px 32px 32px;
            width: 100vw;
        }

        .bates-preview-sheet::after {
            content: none;
        }

        .bates-fullscreen-close {
            align-items: center;
            background: #18181b;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 999px;
            color: #fff;
            cursor: pointer;
            display: none;
            height: 34px;
            justify-content: center;
            position: fixed;
            right: 18px;
            top: 18px;
            width: 34px;
            z-index: 20;
        }

        .bates-preview-sheet:fullscreen .bates-fullscreen-close {
            display: inline-flex;
        }

        .bates-fullscreen-close svg {
            height: 18px;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
            width: 18px;
        }

        .bates-preview-empty {
            align-items: center;
            background:
                linear-gradient(#e5e7eb 1px, transparent 1px),
                linear-gradient(90deg, #e5e7eb 1px, transparent 1px),
                #fff;
            background-size: 24px 24px;
            border-radius: 4px;
            color: #52525b;
            display: flex;
            flex-direction: column;
            gap: 8px;
            height: 100%;
            justify-content: center;
            padding: 24px;
            text-align: center;
            width: 100%;
        }

        .bates-preview-empty[hidden] {
            display: none;
        }

        .bates-preview-empty strong {
            color: #18181b;
            font-size: 14px;
        }

        .bates-preview-empty span {
            font-size: 13px;
            line-height: 1.5;
            max-width: 260px;
        }

        .bates-preview-document {
            display: grid;
            gap: 18px;
            justify-items: center;
            min-width: max-content;
            position: relative;
            width: 100%;
        }

        .bates-preview-document[hidden] {
            display: none;
        }

        .bates-preview-page {
            display: grid;
            gap: 8px;
            justify-items: center;
        }

        .bates-preview-page-surface {
            background: #fff;
            box-shadow: 0 16px 42px rgba(24, 24, 27, 0.16);
            position: relative;
        }

        .bates-preview-page canvas {
            background: #fff;
            display: block;
        }

        .bates-preview-page-label {
            color: #71717a;
            font-size: 11px;
            font-weight: 700;
        }

        .bates-preview-stamp {
            background: rgba(255, 255, 255, 0.9);
            color: #111827;
            font-family: Helvetica, Arial, sans-serif;
            font-size: 12px;
            font-weight: 800;
            padding: 2px 5px;
            position: absolute;
            z-index: 2;
        }

        .bates-preview-stamp[hidden] {
            display: none;
        }

        .bates-preview-note {
            color: #71717a;
            font-size: 12px;
            line-height: 1.5;
            margin: -12px 0 16px;
        }

        .bates-result-bar {
            align-items: center;
            background: rgba(248, 250, 249, 0.84);
            border: 1px solid rgba(23, 104, 58, 0.4);
            border-radius: 7px;
            display: grid;
            gap: 16px;
            grid-template-columns: 1fr minmax(260px, 314px);
            padding: 15px 17px;
        }

        .bates-result-copy {
            align-items: center;
            display: grid;
            gap: 13px;
            grid-template-columns: 21px 1fr;
        }

        .bates-result-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px;
            color: #fff;
            display: inline-flex;
            font-size: 13px;
            font-weight: 900;
            height: 20px;
            justify-content: center;
            width: 20px;
        }

        .bates-result-bar strong {
            color: #18181b;
            display: block;
            font-size: 15px;
            font-weight: 800;
            margin: 0 0 4px;
        }

        .bates-status {
            color: #52525b;
            font-size: 12px;
            line-height: 1.45;
            margin: 0;
        }

        .bates-status.is-error {
            color: #b91c1c;
        }

        .bates-status.is-success {
            color: #047857;
        }

        .bates-result-action {
            display: grid;
            gap: 8px;
            text-align: center;
        }

        .bates-result-action > span {
            color: #71717a;
            font-size: 12px;
        }

        .bates-download {
            background: #17683a;
            border: 1px solid #17683a;
            box-shadow: none;
            color: #fff;
            min-height: 44px;
            min-width: 0;
            padding: 10px 16px;
            width: 100%;
        }

        .bates-download[hidden] {
            display: none;
        }

        @media (max-width: 1180px) {
            .bates-page {
                padding-left: 20px;
                padding-right: 20px;
            }

            .bates-hero {
                grid-template-columns: 1fr;
                gap: 26px;
            }

            .bates-privacy-box {
                max-width: 520px;
            }

            .bates-trust-row {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                max-width: 760px;
            }

            .bates-workspace {
                grid-template-columns: 1fr;
            }

            .bates-preview-panel {
                border-left: 0;
                border-top: 1px solid #d8dedb;
            }
        }

        @media (max-width: 760px) {
            .bates-page {
                padding: 94px 13px 48px;
            }

            .bates-breadcrumb ol {
                flex-wrap: wrap;
                gap: 8px;
            }

            .bates-hero h1 {
                font-size: 2.52rem;
                line-height: 1.02;
            }

            .bates-lede {
                font-size: 0.96rem;
            }

            .bates-privacy-box,
            .bates-trust-row,
            .bates-grid-4,
            .bates-grid-placement,
            .bates-appearance-row,
            .bates-result-bar {
                grid-template-columns: 1fr;
            }

            .bates-range.has-custom {
                grid-template-columns: 1fr;
            }

            .bates-range.has-custom .bates-range-inputs {
                grid-column: 1;
            }

            .bates-trust-row {
                gap: 16px;
            }

            .bates-tool-panel,
            .bates-preview-panel {
                padding: 20px;
            }

            .bates-upload {
                min-height: 168px;
            }

            .bates-file-row {
                grid-template-columns: 28px 1fr 18px;
            }

            .bates-file-size {
                display: none;
            }

            .bates-preview-heading {
                grid-template-columns: auto 1fr;
            }

            .bates-preview-toolbar {
                grid-column: 1 / -1;
                justify-self: stretch;
                overflow-x: auto;
                padding-top: 8px;
            }

            .bates-preview-sheet {
                height: 330px;
                padding: 14px 22px;
            }

            .bates-result-action {
                text-align: left;
            }
        }
/* LA_TOOLS_SOURCE_END routes/tools/bates-numbering.php */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/redaction.php - Redaction tool */
.redact-page {
            background:
                radial-gradient(circle at 25% 8%, rgba(20, 83, 45, 0.045), transparent 34%),
                radial-gradient(circle at 78% 4%, rgba(24, 24, 27, 0.035), transparent 32%),
                #fff;
            color: #171717;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            padding: 84px 36px 56px;
        }

        .redact-shell {
            margin: 0 auto;
            max-width: 1440px;
        }

        .redact-hero {
            align-items: center;
            display: grid;
            gap: 30px;
            grid-template-columns: minmax(0, 1fr) 405px;
            margin-bottom: 26px;
        }

        .redact-breadcrumb {
            margin: 0 0 12px;
        }

        .redact-breadcrumb ol {
            align-items: center;
            color: #71717a;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 500;
            gap: 16px;
            letter-spacing: 0;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .redact-breadcrumb a {
            color: #52525b;
        }

        .redact-kicker {
            background: rgba(236, 253, 245, 0.65);
            border: 1px solid rgba(22, 101, 52, 0.35);
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            margin: 0 0 12px;
            padding: 7px 13px;
        }

        .redact-hero h1 {
            color: #171717;
            font-family: "DM Serif Display", Georgia, serif;
            font-size: clamp(3.1rem, 4.2vw, 4.2rem);
            font-weight: 400;
            letter-spacing: 0;
            line-height: 1;
            margin: 0;
            max-width: 1060px;
            text-align: left;
        }

        .redact-lede {
            color: #4b5563;
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 14px 0 0;
            max-width: 780px;
        }

        .redact-trust-row {
            display: grid;
            gap: 26px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 28px 0 0;
            max-width: 860px;
        }

        .redact-trust-item {
            align-items: center;
            display: grid;
            gap: 11px;
            grid-template-columns: 24px 1fr;
            min-width: 0;
        }

        .redact-trust-icon,
        .redact-privacy-icon {
            align-items: center;
            color: #17683a;
            display: inline-flex;
            justify-content: center;
        }

        .redact-trust-icon {
            height: 24px;
            width: 24px;
        }

        .redact-trust-icon svg,
        .redact-privacy-icon svg,
        .redact-upload-icon svg,
        .redact-button svg,
        .redact-download svg,
        .redact-preview-toolbar svg,
        .redact-fullscreen-close svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 2;
        }

        .redact-trust-icon svg {
            height: 23px;
            width: 23px;
        }

        .redact-trust-item strong {
            color: #18181b;
            display: block;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
        }

        .redact-trust-item span:not(.redact-trust-icon) {
            color: #52525b;
            display: block;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.3;
        }

        .redact-privacy-box {
            align-items: flex-start;
            align-self: end;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid #d8dedb;
            border-radius: 8px;
            display: grid;
            gap: 14px;
            grid-template-columns: 34px 1fr;
            padding: 18px 22px;
        }

        .redact-privacy-icon {
            background: #17683a;
            border-radius: 999px 999px 999px 6px;
            color: #fff;
            height: 34px;
            margin-top: 1px;
            width: 34px;
        }

        .redact-privacy-icon svg {
            height: 21px;
            width: 21px;
        }

        .redact-privacy-box strong {
            display: block;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
            margin: 0 0 7px;
        }

        .redact-privacy-box p {
            color: #3f3f46;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .redact-privacy-box ul {
            border-top: 1px solid #e1e5e2;
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 20px 0 0;
            padding: 16px 0 0;
        }

        .redact-privacy-box li {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .redact-privacy-box li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .redact-workspace {
            display: grid;
            grid-template-columns: minmax(420px, 0.42fr) minmax(0, 0.58fr);
            overflow: hidden;
        }

        .redact-panel {
            background: rgba(255, 255, 255, 0.86);
            border: 1px solid #d8dedb;
            border-radius: 8px;
        }

        .redact-tool-panel,
        .redact-preview-panel {
            padding: 22px;
        }

        .redact-preview-panel {
            border-left: 1px solid #d8dedb;
            min-width: 0;
        }

        .redact-panel-heading {
            align-items: center;
            display: flex;
            gap: 11px;
            margin-bottom: 16px;
        }

        .redact-panel-heading > span {
            align-items: center;
            border: 1px solid #d1d5db;
            border-radius: 999px;
            color: #111827;
            display: inline-flex;
            flex: 0 0 auto;
            font-size: 13px;
            font-weight: 700;
            height: 26px;
            justify-content: center;
            width: 26px;
        }

        .redact-panel-heading h2 {
            font-size: 16px;
            line-height: 1.2;
            margin: 0;
        }

        .redact-form {
            display: grid;
            gap: 18px;
        }

        .redact-upload {
            border: 1.5px dashed #aeb8b3;
            border-radius: 7px;
            cursor: pointer;
            min-height: 162px;
            overflow: hidden;
            position: relative;
        }

        .redact-upload.is-dragging {
            background: #f2f7f4;
            border-color: #17683a;
        }

        .redact-upload input {
            cursor: pointer;
            inset: 0;
            opacity: 0;
            position: absolute;
            width: 100%;
        }

        .redact-upload-copy {
            align-items: center;
            display: grid;
            gap: 8px;
            justify-items: center;
            padding: 32px 20px;
            text-align: center;
        }

        .redact-upload-icon {
            color: #17683a;
            display: inline-flex;
            height: 37px;
            width: 37px;
        }

        .redact-upload-copy strong {
            color: #111827;
            font-size: 17px;
            font-weight: 800;
        }

        .redact-upload-copy > span:not(.redact-upload-icon) {
            color: #52525b;
            font-size: 14px;
        }

        .redact-file-row {
            align-items: center;
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 7px;
            display: grid;
            gap: 10px;
            grid-template-columns: auto minmax(0, 1fr) auto auto;
            margin-top: 10px;
            max-width: 540px;
            padding: 12px 14px;
            width: 100%;
        }

        .redact-file-icon {
            border: 1px solid #ef4444;
            border-radius: 4px;
            color: #ef4444;
            font-size: 10px;
            font-weight: 800;
            padding: 4px 3px;
        }

        .redact-file-name {
            color: #111827;
            font-size: 14px;
            font-weight: 700;
            overflow: hidden;
            text-align: left;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .redact-file-size {
            color: #52525b;
            font-size: 13px;
        }

        .redact-file-check {
            color: #17683a;
            font-weight: 900;
        }

        .redact-tool-card {
            border-top: 1px solid #e4e4e7;
            display: grid;
            gap: 12px;
            padding-top: 18px;
        }

        .redact-subsection-label,
        .redact-field span {
            color: #333;
            display: block;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.25;
        }

        .redact-tool-card p,
        .redact-processing-note,
        .redact-preview-note,
        .redact-status,
        .redact-result-action > span {
            color: #6b6b76;
            font-size: 13px;
            line-height: 1.55;
            margin: 0;
        }

        .redact-search-row,
        .redact-output-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .redact-search-row {
            align-items: end;
        }

        .redact-count-row {
            align-items: center;
            display: flex;
            gap: 12px;
            justify-content: space-between;
        }

        .redact-count-row strong {
            color: #111827;
            font-size: 15px;
        }

        .redact-count-row span {
            color: #52525b;
            font-size: 13px;
            font-weight: 700;
        }

        .redact-actions-row {
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        }

        .redact-field {
            display: grid;
            gap: 8px;
        }

        .redact-field input,
        .redact-field select {
            appearance: none;
            background: #fff;
            border: 1px solid #d1d8d4;
            border-radius: 7px;
            color: #111827;
            font: inherit;
            min-height: 44px;
            padding: 0 12px;
            width: 100%;
        }

        .redact-field select {
            background:
                linear-gradient(45deg, transparent 50%, #111827 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
                linear-gradient(135deg, #111827 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
                #fff;
            padding: 0 38px 0 12px;
        }

        .redact-output-grid {
            align-items: end;
            grid-template-columns: minmax(0, 1fr) minmax(118px, auto) minmax(130px, 0.7fr);
        }

        .redact-check {
            align-items: center;
            display: flex;
            gap: 12px;
            justify-content: space-between;
        }

        .redact-check > span:first-child {
            color: #333;
            font-size: 13px;
            font-weight: 800;
        }

        .redact-switch {
            background: #17683a;
            border-radius: 999px;
            cursor: pointer;
            display: inline-flex;
            flex: 0 0 auto;
            height: 28px;
            padding: 3px;
            position: relative;
            width: 52px;
        }

        .redact-switch input {
            inset: 0;
            opacity: 0;
            position: absolute;
        }

        .redact-switch i {
            background: #fff;
            border-radius: 999px;
            display: block;
            height: 22px;
            transform: translateX(0);
            transition: transform 0.2s ease;
            width: 22px;
        }

        .redact-switch:has(input:not(:checked)) {
            background: #d1d5db;
        }

        .redact-switch input:checked + i {
            transform: translateX(24px);
        }

        .redact-label-text-field {
            display: none;
        }

        .redact-output-grid.has-label .redact-label-text-field {
            display: grid;
        }

        .redact-safety-list {
            color: #3f3f46;
            display: grid;
            font-size: 13px;
            gap: 9px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .redact-safety-list li {
            align-items: start;
            display: grid;
            gap: 8px;
            grid-template-columns: 14px 1fr;
            line-height: 1.45;
        }

        .redact-safety-list li::before {
            color: #17683a;
            content: "✓";
            font-weight: 900;
        }

        .redact-actions {
            margin-top: 2px;
        }

        .redact-button,
        .redact-download {
            align-items: center;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            font: inherit;
            font-size: 14px;
            font-weight: 800;
            gap: 10px;
            justify-content: center;
            min-height: 44px;
            text-align: center;
            transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }

        .redact-button-primary,
        .redact-download {
            background: #17683a;
            border: 1px solid #12572f;
            color: #fff;
            padding: 12px 18px;
            width: 100%;
        }

        .redact-button-primary:disabled {
            cursor: not-allowed;
            opacity: 0.65;
        }

        .redact-button-secondary {
            background: #fff;
            border: 1px solid #d8dedb;
            color: #18181b;
            min-height: 38px;
            padding: 8px 10px;
        }

        .redact-button svg,
        .redact-download svg {
            height: 18px;
            width: 18px;
        }

        .redact-processing-note {
            align-items: center;
            display: flex;
            gap: 10px;
        }

        .redact-processing-note span {
            align-items: center;
            border: 1px solid #71717a;
            border-radius: 999px;
            color: #71717a;
            display: inline-flex;
            flex: 0 0 auto;
            font-size: 12px;
            font-weight: 800;
            height: 20px;
            justify-content: center;
            width: 20px;
        }

        .redact-preview-heading {
            align-items: center;
            display: grid;
            grid-template-columns: auto 1fr auto;
        }

        .redact-preview-toolbar {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-end;
        }

        .redact-preview-toolbar button,
        .redact-preview-toolbar select {
            background: #fff;
            border: 1px solid #d8dedb;
            border-radius: 6px;
            color: #111827;
            font: inherit;
            font-size: 13px;
            font-weight: 700;
            min-height: 34px;
            padding: 6px 10px;
        }

        .redact-preview-toolbar button {
            align-items: center;
            cursor: pointer;
            display: inline-flex;
            justify-content: center;
            min-width: 34px;
        }

        .redact-preview-toolbar svg {
            height: 17px;
            width: 17px;
        }

        .redact-preview-sheet {
            background: #e7e7e7;
            border: 1px solid #d8dedb;
            border-radius: 7px;
            min-height: 468px;
            max-height: 620px;
            overflow: auto;
            padding: 24px;
            position: relative;
        }

        .redact-preview-sheet:fullscreen {
            background: #e7e7e7;
            border-radius: 0;
            max-height: none;
            padding: 62px 28px 28px;
        }

        .redact-fullscreen-close {
            align-items: center;
            background: #111827;
            border: 0;
            border-radius: 999px;
            color: #fff;
            cursor: pointer;
            display: none;
            height: 38px;
            justify-content: center;
            position: fixed;
            right: 18px;
            top: 18px;
            width: 38px;
            z-index: 5;
        }

        .redact-preview-sheet:fullscreen .redact-fullscreen-close {
            display: inline-flex;
        }

        .redact-fullscreen-close svg {
            height: 18px;
            width: 18px;
        }

        .redact-preview-empty {
            align-items: center;
            color: #6b7280;
            display: grid;
            gap: 8px;
            justify-items: center;
            min-height: 410px;
            text-align: center;
        }

        .redact-preview-empty[hidden],
        .redact-preview-document[hidden],
        .redact-download[hidden],
        .redact-file-row[hidden] {
            display: none;
        }

        .redact-preview-empty strong {
            color: #111827;
            font-size: 18px;
        }

        .redact-preview-document {
            display: grid;
            gap: 22px;
            justify-content: center;
            min-width: max-content;
        }

        .redact-preview-page {
            display: grid;
            gap: 8px;
            justify-items: center;
        }

        .redact-preview-surface {
            background: #fff;
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
            cursor: crosshair;
            line-height: 0;
            position: relative;
            user-select: none;
        }

        .redact-preview-surface canvas {
            display: block;
        }

        .redact-layer {
            inset: 0;
            position: absolute;
        }

        .redaction-box {
            align-items: center;
            background: #050505;
            border: 1px solid rgba(255, 255, 255, 0.72);
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
            color: #fff;
            cursor: pointer;
            display: flex;
            font-size: 10px;
            font-weight: 900;
            justify-content: center;
            line-height: 1;
            overflow: hidden;
            padding: 0;
            position: absolute;
            text-transform: uppercase;
        }

        .redaction-box.is-draft {
            background: rgba(5, 5, 5, 0.76);
            border: 1px solid #17683a;
            pointer-events: none;
        }

        .redact-preview-page-label {
            color: #71717a;
            font-size: 12px;
            font-weight: 700;
        }

        .redact-preview-note {
            margin: 16px 0 16px;
        }

        .redact-result-bar {
            align-items: center;
            border: 1px solid #9cc5ac;
            border-radius: 7px;
            display: grid;
            gap: 18px;
            grid-template-columns: 1fr minmax(260px, 0.44fr);
            padding: 14px 16px;
        }

        .redact-result-copy {
            align-items: center;
            display: grid;
            gap: 12px;
            grid-template-columns: 26px 1fr;
        }

        .redact-result-icon {
            align-items: center;
            background: #17683a;
            border-radius: 999px;
            color: #fff;
            display: inline-flex;
            font-weight: 900;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .redact-result-copy strong {
            color: #18181b;
            display: block;
            font-size: 16px;
            margin-bottom: 3px;
        }

        .redact-status.is-error {
            color: #b91c1c;
            font-weight: 700;
        }

        .redact-status.is-success {
            color: #17683a;
            font-weight: 700;
        }

        .redact-result-action {
            display: grid;
            gap: 8px;
            justify-items: stretch;
            text-align: center;
        }

        .redact-download {
            min-height: 42px;
            padding: 10px 14px;
        }

        @media (max-width: 1180px) {
            .redact-workspace {
                grid-template-columns: 1fr;
            }

            .redact-preview-panel {
                border-left: 0;
                border-top: 1px solid #d8dedb;
            }
        }

        @media (max-width: 960px) {
            .redact-hero,
            .redact-trust-row {
                grid-template-columns: 1fr;
            }

            .redact-privacy-box {
                max-width: 560px;
            }
        }

        @media (max-width: 720px) {
            .redact-page {
                padding: 94px 13px 48px;
            }

            .redact-hero h1 {
                font-size: 2.52rem;
                line-height: 1.02;
            }

            .redact-tool-panel,
            .redact-preview-panel {
                padding: 16px;
            }

            .redact-privacy-box,
            .redact-file-row,
            .redact-result-bar,
            .redact-result-copy,
            .redact-preview-heading {
                grid-template-columns: 1fr;
            }

            .redact-actions-row {
                grid-template-columns: 1fr;
            }

            .redact-search-row,
            .redact-output-grid,
            .redact-output-grid.has-label {
                grid-template-columns: 1fr;
            }

            .redact-preview-toolbar {
                justify-content: flex-start;
            }

            .redact-preview-sheet {
                min-height: 420px;
                padding: 14px;
            }

            .redact-preview-document {
                gap: 18px;
            }
        }
/* LA_TOOLS_SOURCE_END routes/tools/redaction.php */

/* LA_TOOLS_SOURCE_BEGIN routes/tools/workflow-tool.php - Legal workflow utilities */
.workflow-tool-page {
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.86), rgba(255, 255, 255, 0.98) 260px),
        #fff;
    color: #171717;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    padding: 84px 36px 56px;
}

.workflow-tool-shell {
    margin: 0 auto;
    max-width: 1440px;
}

.workflow-tool-hero {
    align-items: center;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 405px;
    margin-bottom: 26px;
}

.workflow-breadcrumb ol {
    align-items: center;
    color: #71717a;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    gap: 16px;
    letter-spacing: 0;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.workflow-breadcrumb a {
    color: #52525b;
}

.workflow-kicker {
    background: rgba(236, 253, 245, 0.68);
    border: 1px solid rgba(22, 101, 52, 0.34);
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 12px;
    padding: 7px 13px;
}

.workflow-tool-hero h1 {
    color: #171717;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 3.35rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
    max-width: 1040px;
    text-align: left;
}

.workflow-lede {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 820px;
}

.workflow-trust-row {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 28px 0 0;
    max-width: 900px;
}

.workflow-trust-item {
    align-items: center;
    display: grid;
    gap: 11px;
    grid-template-columns: 24px 1fr;
    min-width: 0;
}

.workflow-trust-icon {
    align-items: center;
    color: #17683a;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.workflow-trust-icon svg,
.workflow-note-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.workflow-trust-icon svg {
    height: 23px;
    width: 23px;
}

.workflow-trust-item strong {
    color: #18181b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.workflow-trust-item span:not(.workflow-trust-icon) {
    color: #52525b;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.workflow-note {
    align-items: flex-start;
    align-self: end;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #d8dedb;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 34px 1fr;
    padding: 18px 22px;
}

.workflow-note-icon {
    align-items: center;
    background: #17683a;
    border-radius: 999px 999px 999px 6px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-top: 1px;
    width: 34px;
}

.workflow-note-icon svg {
    height: 21px;
    width: 21px;
}

.workflow-note strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 7px;
}

.workflow-note p {
    color: #3f3f46;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.workflow-note ul {
    border-top: 1px solid #e1e5e2;
    color: #3f3f46;
    display: grid;
    font-size: 13px;
    gap: 9px;
    list-style: none;
    margin: 20px 0 0;
    padding: 16px 0 0;
}

.workflow-note li {
    align-items: center;
    display: flex;
    gap: 10px;
}

.workflow-note li::before {
    background: #17683a;
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 6px;
    width: 6px;
}

.workflow-tool-workspace {
    border: 1px solid #d8dedb;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    overflow: hidden;
}

.workflow-panel {
    background: rgba(255, 255, 255, 0.92);
    padding: 22px;
}

.workflow-input-panel {
    border-right: 1px solid #d8dedb;
}

.workflow-panel-heading {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr;
    margin-bottom: 18px;
}

.workflow-panel-heading > span {
    align-items: center;
    background: #18181b;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.workflow-panel-heading h2 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0;
}

.workflow-form {
    display: grid;
    gap: 16px;
}

.workflow-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-form-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 220px));
}

.workflow-field,
.workflow-check {
    display: grid;
    gap: 8px;
}

.workflow-field-wide {
    grid-column: 1 / -1;
}

.workflow-field span,
.workflow-check span {
    color: #3f3f46;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.workflow-field input,
.workflow-field select,
.workflow-field textarea {
    background: #fff;
    border: 1px solid #cfd8d3;
    border-radius: 7px;
    color: #18181b;
    font: inherit;
    font-size: 14px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.workflow-field textarea {
    line-height: 1.5;
    min-height: 92px;
    resize: vertical;
}

.workflow-check {
    align-items: center;
    background: #f7faf8;
    border: 1px solid #d8dedb;
    border-radius: 7px;
    grid-template-columns: 18px 1fr;
    min-height: 42px;
    padding: 10px 12px;
}

.workflow-check input {
    height: 17px;
    margin: 0;
    width: 17px;
}

.workflow-button-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.workflow-primary-button,
.workflow-secondary-button,
.workflow-danger-button {
    align-items: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
}

.workflow-primary-button {
    background: #18181b;
    color: #fff;
}

.workflow-secondary-button {
    background: #eef6f1;
    color: #155c34;
}

.workflow-danger-button {
    background: #fff1f2;
    color: #9f1239;
}

.workflow-status-card {
    background: #f7faf8;
    border: 1px solid #d8dedb;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
}

.workflow-status-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.workflow-status-card p {
    color: #52525b;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.workflow-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.workflow-metrics-compact {
    margin: 16px 0 0;
}

.workflow-metric {
    background: #fff;
    border: 1px solid #d8dedb;
    border-radius: 7px;
    display: grid;
    gap: 5px;
    min-height: 76px;
    padding: 13px;
}

.workflow-metric span {
    color: #52525b;
    font-size: 12px;
    font-weight: 700;
}

.workflow-metric strong {
    color: #18181b;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.workflow-table-wrap {
    border: 1px solid #d8dedb;
    border-radius: 8px;
    max-height: 620px;
    overflow: auto;
}

.workflow-data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.workflow-data-table th,
.workflow-data-table td {
    border-bottom: 1px solid #e4e8e5;
    color: #27272a;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.workflow-data-table th {
    background: #f7faf8;
    color: #3f3f46;
    font-size: 12px;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 1;
}

.workflow-table-actions {
    min-width: 118px;
}

.workflow-table-actions button {
    background: transparent;
    border: 1px solid #cfd8d3;
    border-radius: 6px;
    color: #155c34;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    margin: 0 6px 6px 0;
    min-height: 32px;
    padding: 6px 9px;
}

@media (max-width: 1180px) {
    .workflow-tool-workspace,
    .workflow-tool-hero {
        grid-template-columns: 1fr;
    }

    .workflow-input-panel {
        border-bottom: 1px solid #d8dedb;
        border-right: 0;
    }

    .workflow-note {
        max-width: 640px;
    }
}

@media (max-width: 760px) {
    .workflow-tool-page {
        padding: 88px 13px 48px;
    }

    .workflow-tool-hero h1 {
        font-size: 2.12rem;
        line-height: 1.04;
    }

    .workflow-lede {
        font-size: 0.97rem;
        line-height: 1.55;
        margin-top: 10px;
    }

    .workflow-tool-hero {
        gap: 16px;
        margin-bottom: 16px;
    }

    .workflow-trust-row,
    .workflow-form-grid,
    .workflow-form-grid-compact,
    .workflow-metrics {
        grid-template-columns: 1fr;
    }

    .workflow-trust-row,
    .workflow-note {
        display: none;
    }

    .workflow-panel {
        padding: 16px;
    }

    .workflow-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-primary-button,
    .workflow-secondary-button,
    .workflow-danger-button {
        width: 100%;
    }
}
/* LA_TOOLS_SOURCE_END routes/tools/workflow-tool.php */
