.tool-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
.tool-panel > *, .tool-section > *, .tool-row > *, .tool-subgrid > *, .opt-grid > * { min-width: 0; }
.tool-section { border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); padding: 22px; }
.tool-section > h2 { font-size: 16px; margin: 0 0 4px; }
.tool-section > .field-hint { margin-bottom: 16px; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: end; }
.tool-row .field { margin-bottom: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.tool-actions .btn { margin: 0; }

.input--mono, textarea.input--mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.55; }
select.input { appearance: auto; padding-right: 8px; }
.input[readonly] { background: var(--color-section); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px 22px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--color-accent); flex: none; }
fieldset.tool-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.tool-fieldset > legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.tool-subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.tool-subgrid .field { margin-bottom: 0; }
.is-hidden { display: none !important; }

.stat-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--color-neutral-400); margin: 0 0 14px; }
.stat-row strong { color: var(--color-text); font-weight: 600; }
.status-line { font-size: 13px; color: var(--color-neutral-400); min-height: 20px; margin: 10px 0 0; overflow-wrap: anywhere; }
.status-line.is-error { color: var(--color-warn); }

.tool-table-wrap { overflow-x: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.tool-table th, .tool-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.tool-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-500); font-weight: 600; background: var(--color-section); }
.tool-table tr:last-child td { border-bottom: 0; }
.tool-table code, .finding code, .tool-note code { font-family: var(--font-mono); font-size: 12.5px; background: var(--color-section); padding: 1px 5px; border-radius: 4px; }
.bot-name { font-weight: 600; }
.bot-meta { display: block; font-size: 12px; color: var(--color-neutral-500); }

.verdict { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; white-space: nowrap; }
.verdict--allow { color: var(--color-accent); }
.verdict--block { color: var(--color-warn); }
.verdict--none { color: var(--color-neutral-500); }

.findings { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); font-size: 14px; line-height: 1.5; }
.finding-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; margin-top: 1px; }
.finding--problem { border-color: var(--color-warn); }
.finding--problem .finding-tag { color: var(--color-warn); }
.finding--check .finding-tag { color: var(--color-neutral-300); }
.finding--good .finding-tag, .finding--note .finding-tag { color: var(--color-accent); }
.finding p { margin: 0; }
.finding .fix { display: block; margin-top: 4px; color: var(--color-neutral-400); font-size: 13px; }

.hit { background: var(--color-accent-800); color: var(--color-text); border-radius: 3px; padding: 0 1px; }
.test-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.test-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 12px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; word-break: break-all; }
.test-item .verdict { font-family: var(--font-body); }
.test-item .caps { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 12px; color: var(--color-neutral-400); word-break: normal; }

.pattern-out { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.explain { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-neutral-300); }
.tool-note { font-size: 12.5px; line-height: 1.55; color: var(--color-neutral-500); margin: 12px 0 0; }

.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.diff-col h3 { font-size: 13px; margin: 0 0 8px; }
details.tool-details { border-top: 1px solid var(--color-divider); padding-top: 14px; margin-top: 16px; }
details.tool-details > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
details.tool-details[open] > summary { margin-bottom: 14px; }

@media (max-width: 560px) {
  .tool-section { padding: 16px; }
  .pattern-out { grid-template-columns: 1fr; }
}

.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.link-btn { display: inline-block; background: none; border: 0; padding: 0; margin-top: 6px; font: inherit; font-size: 14px; color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
.muted { color: var(--color-neutral-500); }

.rt-input-row { display: flex; gap: 10px; align-items: stretch; }
.rt-input-row .input { flex: 1 1 auto; min-width: 0; }
.rt-input-row .btn { margin: 0; flex: none; }
.rt-checked { font-size: 14px; color: var(--color-neutral-400); margin: 0 0 14px; overflow-wrap: anywhere; }
.rt-checked strong { color: var(--color-text); font-weight: 600; }
.rt-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 20px; }
.rt-group { border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 12px 14px; display: grid; gap: 4px; }
.rt-group-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-500); font-weight: 600; }
.rt-group-value { font-size: 15px; font-weight: 600; }
.rt-group--allow .rt-group-value { color: var(--color-accent); }
.rt-group--block { border-color: var(--color-warn); }
.rt-group--block .rt-group-value { color: var(--color-warn); }
.rt-page-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--color-neutral-400); }
.rt-page-list strong { color: var(--color-text); font-weight: 600; overflow-wrap: anywhere; }
.rt-bots-head { margin-top: 26px; }
.rt-bot-controls { margin: 0 0 14px; }
.rt-raw-text { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: var(--color-section); border-radius: var(--radius-md); padding: 12px 14px; margin: 10px 0 0; }

@media (max-width: 640px) {
  .tool-table-wrap--stack { border: 0; overflow: visible; }
  .tool-table--stack { min-width: 0; }
  .tool-table--stack thead { display: none; }
  .tool-table--stack tr { display: block; border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 8px 0; margin-bottom: 10px; }
  .tool-table--stack tr:last-child td { border-bottom: 0; }
  .tool-table--stack td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; border: 0; padding: 5px 12px; overflow-wrap: anywhere; }
  .tool-table--stack td.bot-cell { display: block; padding-bottom: 8px; }
  .tool-table--stack td.bot-cell::before { display: none; }
  .tool-table--stack td::before { content: attr(data-label); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-500); font-weight: 600; padding-top: 2px; }
}

.tool-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--color-divider); margin-bottom: -8px; overflow-x: auto; }
.tool-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--color-neutral-400); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tool-tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); }
.tool-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.task { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 12px 14px; cursor: pointer; background: var(--color-surface); }
.task input { margin-top: 3px; accent-color: var(--color-accent); flex: none; }
.task strong { display: block; font-size: 14px; font-weight: 600; }
.task small { display: block; font-size: 12.5px; color: var(--color-neutral-500); margin-top: 2px; line-height: 1.45; }
.task:has(input:checked) { border-color: var(--color-accent); }
.task:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.link-btn--quiet { font-size: 13px; color: var(--color-neutral-400); margin-top: 2px; }
.rt-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--color-divider); margin-bottom: 18px; }
.rt-verdict-icon { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; background: var(--color-neutral-400); }
.rt-verdict-title { font-size: 19px; line-height: 1.35; margin: 2px 0 6px; }
.rt-verdict-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--color-neutral-300); }
.rt-verdict--yes { border-color: var(--color-accent); }
.rt-verdict--yes .rt-verdict-icon { background: var(--color-accent); }
.rt-verdict--partly { border-color: #b7791f; }
.rt-verdict--partly .rt-verdict-icon { background: #b7791f; }
.rt-verdict--no { border-color: var(--color-warn); }
.rt-verdict--no .rt-verdict-icon { background: var(--color-warn); }
.rt-services { list-style: none; margin: 0 0 22px; padding: 0; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.rt-service { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--color-divider); font-size: 14.5px; }
.rt-service:last-child { border-bottom: 0; }
.rt-service-name small { display: block; font-size: 12px; color: var(--color-neutral-500); margin-top: 1px; }
.rt-service-state { font-weight: 600; white-space: nowrap; text-align: right; }
.rt-service--ok .rt-service-state { color: var(--color-accent); }
.rt-service--bad .rt-service-state { color: var(--color-warn); }
.rt-service--neutral .rt-service-state { color: var(--color-neutral-400); }
.rt-todo-list { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.55; }
.rt-todo-none { font-size: 14.5px; margin: 0 0 22px; }
.rt-cta { border-radius: var(--radius-md); background: var(--color-section); padding: 18px; margin-bottom: 6px; }
.rt-cta-title { font-size: 16px; margin: 0 0 6px; }
.rt-cta-text { font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; color: var(--color-neutral-300); }
.rt-cta .input { background: var(--color-surface); }
details.rt-tech { margin-top: 20px; }
.rt-service-name { min-width: 0; }
@media (max-width: 420px) {
  .rt-verdict-title { font-size: 17px; }
}

#rt-results { scroll-margin-top: 96px; }
.rt-turnstile:empty { display: none; }
.rt-turnstile { margin-top: 10px; }
.rt-verdict--unknown .rt-verdict-icon { background: var(--color-neutral-400); }
.rt-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
.rt-copy-row .btn { margin: 0; }
.rt-copy-status { font-size: 14px; color: var(--color-neutral-400); }
.rt-cta-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin: 0 0 6px; }
.rt-cta-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--color-neutral-300); }

.dh-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.dh-list:empty { display: none; }
.dh-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--color-divider); border-left: 4px solid transparent; }
.dh-row:last-child { border-bottom: 0; }
.dh-num { text-align: right; color: var(--color-neutral-500); user-select: none; }
.dh-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.dh-tag { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--color-neutral-300); padding-top: 1px; }
.dh-repeat .dh-text { opacity: .78; }
.dh-empty { display: block; padding: 10px 12px; font-family: var(--font-body); color: var(--color-neutral-500); }
.dh-swatch { display: inline-block; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; border-left: 4px solid transparent; }
.dh-g0 { background: #fde8c8; border-left-color: #c47a12; }
.dh-g1 { background: #d9ecfb; border-left-color: #2f74b5; }
.dh-g2 { background: #f8d9e2; border-left-color: #b8436b; }
.dh-g3 { background: #dff1d5; border-left-color: #4f8a2f; }
.dh-g4 { background: #e8dff7; border-left-color: #7451b3; }
.dh-g5 { background: #fbe0d4; border-left-color: #c2562b; }
.dh-g6 { background: #d6f0ee; border-left-color: #23867c; }
.dh-g7 { background: #f3f0c8; border-left-color: #8f8418; }
:root[data-theme="dark"] .dh-g0 { background: #3d2e17; border-left-color: #e6a94f; }
:root[data-theme="dark"] .dh-g1 { background: #1c2f42; border-left-color: #6fa8dc; }
:root[data-theme="dark"] .dh-g2 { background: #3f1f2a; border-left-color: #e07a9c; }
:root[data-theme="dark"] .dh-g3 { background: #22351b; border-left-color: #8cc46b; }
:root[data-theme="dark"] .dh-g4 { background: #2e2542; border-left-color: #a88be0; }
:root[data-theme="dark"] .dh-g5 { background: #3f261b; border-left-color: #e8875f; }
:root[data-theme="dark"] .dh-g6 { background: #183634; border-left-color: #5cc4b8; }
:root[data-theme="dark"] .dh-g7 { background: #36341a; border-left-color: #cfc35a; }
.dh-row.dh-first .dh-text { font-weight: 600; }

@media (max-width: 560px) {
  .dh-row { grid-template-columns: 40px minmax(0, 1fr); }
  .dh-tag { grid-column: 2; padding-top: 0; }
}
.dh-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.dh-inputs .field { margin-bottom: 0; }
.dh-cols { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-divider); }
.dh-near input[type="range"] { width: 100%; max-width: 420px; accent-color: var(--color-accent); display: block; margin: 6px 0 4px; }
#dh-near-out { font-weight: 600; color: var(--color-text); margin-bottom: 4px; }
.dh-text .dh-cell { display: inline; }
.dh-text .dh-cell + .dh-cell::before { content: "  |  "; color: var(--color-neutral-500); white-space: pre; }
.dh-text .dh-cell:not(.dh-key) { color: var(--color-neutral-400); }
mark.dh-diff { background: transparent; color: inherit; text-decoration: underline wavy var(--color-warn); text-underline-offset: 3px; font-weight: 700; }
.dh-repeat mark.dh-diff { text-decoration-line: underline; }
.dh-cmp-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.dh-cmp-list li { padding: 6px 12px; border-bottom: 1px solid var(--color-divider); overflow-wrap: anywhere; }
.dh-cmp-list li:last-child { border-bottom: 0; }
.dh-cmp-list .dh-tag { margin-left: 6px; }
.dh-pair { color: var(--color-neutral-500); }
.dh-near-check { margin-top: 16px; font-weight: 600; }
.dh-summary { font-size: 15.5px; line-height: 1.55; margin: 0 0 14px; }
.dh-summary:empty { display: none; }
.dh-only { margin: 0 0 12px; }
.dh-more-actions { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-left: 6px; }
.dh-more-actions .link-btn { margin-top: 0; }
#dh-options { margin-top: 18px; }
#dh-options > summary { font-weight: 500; color: var(--color-neutral-400); }
.uc-settings { padding: 0; }
.uc-settings > summary { cursor: pointer; padding: 16px 22px; font-size: 15px; list-style-position: inside; }
.uc-settings[open] > summary { border-bottom: 1px solid var(--color-divider); margin-bottom: 4px; }
.uc-settings > :not(summary) { margin-left: 22px; margin-right: 22px; }
.uc-settings > :last-child { margin-bottom: 20px; }
.uc-set-title { font-weight: 600; }
.uc-set-sum { color: var(--color-neutral-400); font-size: 14px; }
.uc-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.uc-list:empty { display: none; }
.uc-row { padding: 7px 12px; border-bottom: 1px solid var(--color-divider); border-left: 4px solid transparent; }
.uc-row:last-child { border-bottom: 0; }
.uc-row-top { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.uc-url { overflow-wrap: anywhere; }
.uc-changed { border-left-color: var(--color-accent); }
.uc-was { list-style: none; margin: 3px 0 0; padding: 0; color: var(--color-neutral-400); font-size: 12px; }
.uc-was li { overflow-wrap: anywhere; }
.uc-was-label { font-family: var(--font-body); color: var(--color-neutral-500); }
.uc-set-edit { font-size: 13px; color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.uc-settings[open] .uc-set-edit { display: none; }
