/* Website controls; rendering and the SV1 code are shared with the minitool. */
.sv-compare { --sv-mine: #78a8d9; --sv-friend: #f09b9c; color: var(--test-text); }
html[data-theme="light"] .sv-compare { --sv-mine: #346fc2; --sv-friend: #c64f64; }
.sv-compare > summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-size: 1.15rem; font-weight: 700; color: var(--color-accent); }
.sv-compare [hidden] { display: none !important; }
.sv-compare label { display: block; margin: 16px 0 8px; font-size: .9rem; }
.sv-compare input, .sv-compare textarea, .sv-compare select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; border: 0; border-radius: 10px; padding: 12px; background: var(--test-surface-soft); color: var(--test-text); font: inherit; font-size: 16px; }
.sv-compare input[readonly] { font-family: monospace; font-size: 14px; }
.sv-compare textarea { min-height: 90px; resize: vertical; }
.sv-compare button { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 10px; font: inherit; background: var(--test-surface-soft); color: var(--test-text); cursor: pointer; }
.sv-compare button:disabled { opacity: .55; cursor: default; }
.sv-compare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.sv-compare-actions > button { flex: 1 1 150px; }
#sv-compare-run { background: var(--test-accent); color: #382830; }
.sv-compare-names { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.sv-compare-names label { margin-top: 8px; }
.sv-compare-names input { margin-top: 8px; }
.sv-compare-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.sv-compare-legend span::before { content: ""; display: inline-block; width: 24px; margin: 0 8px 4px 0; border-top: 2px solid var(--sv-mine); }
.sv-compare-legend .friend::before { border-top: 2px dashed var(--sv-friend); }
.sv-compare-canvas { max-width: 600px; width: 100%; margin: auto; }
.sv-compare-canvas canvas { display: block; width: 100% !important; height: auto !important; }
.sv-compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .92rem; }
.sv-compare-table caption { text-align: left; color: var(--test-text-muted); padding: 12px 0; font-size: .85rem; }
.sv-compare-table th, .sv-compare-table td { padding: 10px 4px; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sv-compare-table th:first-child { text-align: left; }
.sv-compare-table th:nth-child(2), .sv-compare-table td:nth-child(2) { color: var(--sv-mine); }
.sv-compare-table th:nth-child(3), .sv-compare-table td:nth-child(3) { color: var(--sv-friend); }
.sv-compare-share { margin-top: 22px; }
.sv-compare-share summary { min-height: 44px; padding: 12px 0; cursor: pointer; }
.sv-compare-share img { display: block; width: 100%; max-width: 600px; height: auto; margin: 12px auto; }
.sv-compare-theme { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.sv-compare-theme select { width: auto; max-width: 65%; }
.sv-compare pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .85rem; line-height: 1.7; color: var(--test-text-muted); }
.sv-compare p { line-height: 1.7; }
.sv-compare [role="status"] { min-height: 1.5em; color: var(--test-text-muted); font-size: .85rem; }
@media(max-width: 380px) { .sv-compare-table { font-size: .8rem; } .sv-compare-names { gap: 10px; } }
