.tools-page [hidden] { display: none !important; }
.tools-main { padding-bottom: 80px; }
.tool-tabs { display: flex; gap: 8px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tool-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 7px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.tool-tabs svg { width: 17px; height: 17px; flex-shrink: 0; }
.tool-tabs a:hover, .tool-tabs a[aria-current="page"] { color: var(--accent); background: #eaf0fa; }
.tools-hero { max-width: 820px; padding: 56px 0 36px; }
.tools-hero .eyebrow { margin-bottom: 18px; text-transform: uppercase; }
.tools-hero h1 { font-size: clamp(36px, 4.3vw, 55px); letter-spacing: -.055em; }
.tools-hero .lead { max-width: 650px; margin-top: 18px; font-size: 17px; }
.tool-benefits { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.tool-benefits > span { display: inline-flex; align-items: center; }
.tool-workbench { display: grid; grid-template-columns: 1.08fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 40px -24px #23375440; }
.tool-editor, .tool-output { min-width: 0; padding: 30px; }
.tool-output { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #f4f7fb; }
.tool-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.tool-panel-heading h2 { font-size: 18px; letter-spacing: -.025em; }
.tool-panel-heading .tool-quiet { margin-left: auto; font-size: 12px; }
.tool-step { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border: 1px solid #d6deea; border-radius: 7px; color: var(--accent); font: 10px ui-monospace, monospace; background: white; }
.tool-editor fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tool-field { margin-bottom: 19px; min-width: 0; }
.tool-label { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.tool-label > span { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.tool-field input, .tool-field select, .tool-code { width: 100%; padding: 12px; border: 1px solid #d6dde6; border-radius: 7px; background: white; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; }
.tool-field input::placeholder { color: #7a8491; opacity: 1; }
.tool-field input:focus, .tool-field select:focus, .tool-code:focus { border-color: var(--accent); }
.tool-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-field-heading { display: flex; justify-content: space-between; gap: 12px; }
.tool-hint { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 7px; }
.tool-field-heading .tool-hint { margin: 0; }
.tool-quiet { border: 0; background: none; padding: 3px; color: var(--accent); cursor: pointer; }
.tool-quiet:hover { color: var(--ink); }
.tool-secondary { display: inline-flex; justify-content: center; align-items: center; padding: 11px 14px; border: 1px solid #d6dde6; border-radius: 6px; color: var(--ink); background: white; font-size: 12px; font-weight: 500; cursor: pointer; }
.tool-secondary:hover { border-color: var(--accent); color: var(--accent); }
.tool-submit { width: 100%; margin-top: 22px; cursor: pointer; border-radius: 7px; }
.tool-submit:disabled { cursor: wait; opacity: .65; }
.tool-privacy { margin-top: 16px; font-size: 11px; line-height: 1.7; }
.tool-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 270px; padding: 24px; border: 1px dashed #cbd6e6; border-radius: 10px; background: #ffffff70; }
.tool-empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 24px; color: #5d83bb; border: 1px solid #dde5f1; background: white; border-radius: 17px; }
.tool-empty-icon svg { width: 31px; height: 31px; }
.tool-empty h3 { font-size: 16px; line-height: 1.5; letter-spacing: -.02em; }
.tool-empty p { max-width: 280px; font-size: 13px; margin-top: 9px; }
.tool-upsell { margin-top: 24px; padding: 23px; border: 1px solid #d7e2f2; border-radius: 10px; background: linear-gradient(125deg, #e9f0fc, #f4f7fc); }
.tool-upsell-label { display: block; font: 9px/1.5 ui-monospace, monospace; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.tool-upsell h3 { font-size: 19px; line-height: 1.35; }
.tool-upsell p { font-size: 13px; margin-top: 10px; }
.tool-upsell .text-link { display: inline-block; color: var(--accent); margin-top: 18px; }
.tool-error { padding: 12px 14px; margin-top: 16px; border-radius: 7px; background: #fff1f0; color: #9a302b; font-size: 13px; overflow-wrap: anywhere; }
.tool-status { font-size: 12px; color: var(--accent); }
.tool-status:not(:empty) { margin-top: 14px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 16px; }
.tool-actions .button { padding: 11px 16px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.tool-code { display: block; resize: vertical; min-height: 120px; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.tool-url { font-size: 13px; }
.destination-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 24px; align-items: start; gap: 10px; }
.destination-row .tool-field { margin-bottom: 12px; }
.destination-row .remove-destination { align-self: center; width: 24px; height: 40px; font-size: 22px; color: var(--muted); }
.remove-destination:disabled { opacity: .3; cursor: default; }
.tool-add { margin: 0 0 22px; }
.tool-add:disabled { opacity: .5; cursor: default; }
.tool-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 13px; cursor: pointer; }
.tool-check input { accent-color: var(--accent); margin: 4px 0 0; width: 16px; height: 16px; flex-shrink: 0; }
.tool-check .tool-hint { margin-top: 2px; }
.rotation-summary { display: grid; gap: 12px; margin-bottom: 22px; }
.rotation-summary-row { min-width: 0; }
.rotation-summary-label { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; margin-bottom: 6px; }
.rotation-summary-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rotation-summary-label strong { color: var(--accent); white-space: nowrap; font-weight: 500; }
.rotation-bar { height: 5px; background: #dee7f3; border-radius: 5px; overflow: hidden; }
.rotation-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.qr-preview { display: grid; place-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.qr-preview img { width: min(256px, 100%); height: auto; aspect-ratio: 1; }
.tool-result-url { font-size: 12px; text-align: center; margin-top: 12px; overflow-wrap: anywhere; }
.utm-presets { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 21px; font-size: 11px; color: var(--muted); }
.utm-presets > span { margin-right: 4px; }
.tool-chip { background: #f5f7fb; border: 1px solid #e1e6ee; border-radius: 5px; padding: 5px 10px; color: var(--ink); font-size: 11px; cursor: pointer; }
.tool-chip:hover { background: #eaf0fa; color: var(--accent); }
.utm-replace-note { margin-top: 0; }
.checker-scope { border: 1px solid var(--line); border-radius: 9px; padding: 20px; background: #fafbfd; margin: 24px 0 18px; }
.checker-scope h3 { font-size: 16px; margin-bottom: 10px; }
.checker-scope p { font-size: 13px; }
.checker-overview, .bulk-count { padding: 13px 16px; border: 1px solid #dbcdae; border-radius: 8px; background: #faf5e8; color: #6d5121; font-size: 13px; font-weight: 500; }
.checker-clear, .bulk-count { background: #edf5f1; border-color: #c4decf; color: #286146; }
.checker-issues { padding: 0; margin: 16px 0 22px; list-style: none; display: grid; gap: 14px; }
.checker-issues li { padding-left: 13px; border-left: 2px solid #d4b979; overflow-wrap: anywhere; }
.checker-issues strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.checker-issues p { font-size: 12px; margin-top: 4px; }
.checker-detected { margin-top: 20px; font-size: 12px; }
.checker-detected summary, .bulk-overrides summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.checker-detected .utm-summary { margin-top: 14px; padding-top: 14px; }
.checker-review { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.checker-review h3 { font-size: 17px; }
#checker-fields { margin-top: 18px; }
#checker-correction { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.bulk-overrides { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.bulk-overrides .tool-field { margin: 16px 0 0; }
.bulk-table-scroll { max-height: 360px; overflow: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.bulk-table { width: 100%; min-width: 390px; border-collapse: collapse; text-align: left; font-size: 11px; }
.bulk-table th { position: sticky; top: 0; background: #eaf0f8; color: var(--ink); font-weight: 600; }
.bulk-table th, .bulk-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.bulk-table td:last-child { overflow-wrap: anywhere; min-width: 200px; }
.bulk-table td:nth-child(2) { overflow-wrap: anywhere; min-width: 90px; }
.bulk-table tbody tr:last-child td { border-bottom: 0; }
.bulk-copy-label { margin-top: 22px; }
.tool-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.utm-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.utm-summary dt { color: var(--muted); }
.utm-summary dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.tool-guide { padding: 64px 0; }
.tool-section-heading .eyebrow { margin-bottom: 12px; }
.tool-section-heading h2 { font-size: clamp(26px, 3vw, 33px); }
.tool-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 30px; }
.tool-guide-grid article { border-top: 1px solid var(--line); padding-top: 20px; }
.tool-guide-number { color: var(--accent); font: 11px ui-monospace, monospace; }
.tool-guide-grid h3 { font-size: 17px; line-height: 1.4; margin: 14px 0 10px; }
.tool-guide-grid p { font-size: 13px; }
.tool-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; padding: 40px 0 50px; border-top: 1px solid var(--line); }
.tool-faq .text-link { display: inline-block; margin-top: 24px; color: var(--accent); }
.tool-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.tool-faq details:first-child { padding-top: 0; }
.tool-faq summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.tool-faq details p { font-size: 13px; padding-top: 13px; }
.tool-related { margin-top: 20px; }
.tool-related .eyebrow { margin-bottom: 18px; }
.tool-related > div { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-related a { display: flex; align-items: center; gap: 15px; padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; }
.tool-related a > span:last-child { margin-left: auto; color: var(--accent); }
.tool-related strong { display: block; font-size: 14px; font-weight: 500; }
.tool-related strong + span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tool-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: var(--accent); background: #eef3fa; border-radius: 10px; }
.tool-icon svg { width: 24px; height: 24px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: white; text-decoration: none; }
.tool-card:hover { border-color: #93afd7; color: var(--ink); }
.tool-card-type { margin-top: 32px; font: 10px ui-monospace, monospace; letter-spacing: 1px; color: var(--accent); }
.tool-card h2 { font-size: 25px; line-height: 1.25; margin-top: 12px; }
.tool-card p { margin-top: 14px; font-size: 14px; }
.tool-card-action { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 32px; font-size: 13px; font-weight: 500; color: var(--accent); }
.tools-hub-note { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 52px; padding: 36px; border: 1px solid #d7e2f2; background: #eef3fa; border-radius: 14px; }
.tools-hub-note > div { max-width: 560px; }
.tools-hub-note .eyebrow { margin-bottom: 12px; }
.tools-hub-note h2 { font-size: 29px; }
.tools-hub-note p:last-child { margin-top: 14px; font-size: 14px; }
@media (max-width: 900px) {
    .tool-editor, .tool-output { padding: 24px; }
    .tool-panel-heading { flex-wrap: wrap; }
    .tool-panel-heading .tool-quiet { margin-left: 0; }
    .tool-guide-grid { gap: 24px; }
    .tool-faq { gap: 32px; }
    .tool-card { padding: 24px; }
    .tool-card h2 { font-size: 22px; }
    .tools-hub-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
    .tool-workbench, .tool-cards, .tool-related > div, .tool-guide-grid, .tool-faq { grid-template-columns: 1fr; }
    .tool-output { border-left: 0; border-top: 1px solid var(--line); }
    .tools-hero { padding-top: 36px; }
    .tool-guide { padding-block: 42px; }
    .tool-faq { gap: 28px; }
    .tool-tabs { margin-inline: -6px; }
    .tool-tabs a { padding-inline: 10px; }
    .tool-card-type { margin-top: 24px; }
}
@media (max-width: 420px) {
    .tools-main { width: calc(100% - 28px); }
    .tool-editor, .tool-output { padding: 20px; }
    .tool-field-pair { grid-template-columns: 1fr; gap: 0; }
    .tool-actions { flex-direction: column; }
    .destination-row { grid-template-columns: minmax(0, 1fr) 63px 22px; gap: 7px; }
    .tools-hub-note { padding: 24px; }
    .tools-hub-note .button { white-space: normal; }
    .tool-related a { padding: 18px; }
}
