.wb {
  --wb-ink: #192d28;
  --wb-subtle: #51615b;
  --wb-border: #d6dfd9;
  --wb-pine: #174d3a;
  color: var(--wb-ink);
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb [hidden] { display: none !important; }
.wb-top, .wb-result-head, .wb-actions, .wb-pair, .wb-color { display: flex; align-items: center; }
.wb-top, .wb-result-head { justify-content: space-between; gap: 10px; }
.wb-top { padding: 18px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--wb-border); }
.wb .wb-top h2, .wb .wb-result-head h3 { color: var(--wb-ink); font: inherit; font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.3; }
.wb .wb-top h2 { font-size: 1.3rem; }
.wb .wb-result-head h3 { font-size: 1.04rem; }
.wb-form, .wb-result { padding: 22px clamp(16px, 3vw, 28px); }
.wb-form { display: grid; gap: 18px; }
.wb-fields { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wb .wb-field { display: grid; gap: 8px; min-width: 0; }
.wb .wb-field > label:first-child { color: var(--wb-ink); font: inherit; font-size: .9rem; font-weight: 650; line-height: 1.35; }
.wb .wb-field :is(input[type=text], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea) {
  display: block; width: 100%; min-height: 46px; margin: 0;
  padding: 10px 13px; border: 1px solid #acbbb2; border-radius: 9px;
  background: #fff; color: var(--wb-ink); font: inherit; font-size: 1rem;
  line-height: 1.5; transition: border-color .15s;
}
.wb .wb-field :is(textarea,input)::placeholder { color: #65726c; opacity: 1; }
.wb .wb-field select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23394940' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.wb .wb-field textarea { resize: vertical; min-height: 84px; }
.wb .wb-field input[type=file] {
  min-width: 0; width: 100%; font: inherit; font-size: .94rem;
  padding: 8px; border: 1px solid #acbbb2; border-radius: 9px; background: #fff; color: var(--wb-ink);
}
.wb .wb-field input[type=file]::file-selector-button {
  margin-right: 8px; border: 0; border-radius: 6px; padding: 7px 10px;
  font: inherit; color: var(--wb-pine); background: #e9f2eb; cursor: pointer;
}
.wb .wb-field textarea.wb-code, .wb .wb-code, .wb .wb-rows dd {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .94rem;
}
.wb :is(input,textarea,button,select,pre):focus-visible { outline: 3px solid #a4d5b9; outline-offset: 2px; border-color: var(--wb-pine); }
.wb-pair { gap: 16px; align-items: start; }
.wb-pair > * { flex: 1 1 0; }
.wb .wb-check, .wb .wb-picker {
  display: flex; align-items: center; gap: 9px; width: fit-content;
  cursor: pointer; font-size: .92rem; line-height: 1.4; color: var(--wb-ink);
}
.wb .wb-check + .wb-check { margin-top: -8px; }
.wb .wb-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--wb-pine); flex: none; }
.wb .wb-picker { margin-top: 2px; color: var(--wb-subtle); }
.wb .wb-picker input { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--wb-border); border-radius: 5px; background: white; cursor: pointer; }
.wb-actions { gap: 12px; flex-wrap: wrap; }
.wb button { border: 0; margin: 0; width: fit-content; cursor: pointer; text-decoration: none; font: inherit; }
.wb button:disabled { cursor: default; opacity: .52; }
.wb .wb-primary, .wb .wb-quiet, .wb .wb-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 650; font-size: .9rem; line-height: 1.35; letter-spacing: 0;
}
.wb .wb-primary { min-height: 44px; padding: 10px 19px; color: white; background: var(--wb-pine); border-radius: 8px; }
.wb .wb-primary:hover { background: #0d382a; }
.wb .wb-quiet, .wb .wb-link { color: var(--wb-pine); background: transparent; border-radius: 7px; }
.wb .wb-quiet { min-height: 38px; padding: 6px 9px; }
.wb .wb-link { min-height: 31px; padding: 3px 2px; }
.wb .wb-swap { margin-top: -8px; }
.wb .wb-quiet:not(:disabled):hover, .wb .wb-link:hover { background: #e9f2eb; }
.wb .wb-error { color: #8c282b; background: #fff2ef; border: 1px solid #f0cfca; border-radius: 8px; padding: 10px 12px; margin: 0; overflow-wrap: anywhere; font-size: .94rem; white-space: pre-wrap; }
.wb-result { background: #f5f8f4; border-top: 1px solid var(--wb-border); }
.wb-result-head { margin-bottom: 10px; }
.wb .wb-empty, .wb .wb-note { color: var(--wb-subtle); font-size: .94rem; line-height: 1.5; margin: 0; }
.wb .wb-note { margin-top: 10px; overflow-wrap: anywhere; }
.wb-qr { display: block; width: min(100%, 320px); height: auto; border: 1px solid var(--wb-border); border-radius: 8px; }
.wb-downloads { margin-top: 12px; }
.wb .wb-download {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px;
  border: 1px solid #a6bcae; border-radius: 8px; background: white; color: var(--wb-pine);
  font-size: .9rem; font-weight: 650; text-decoration: none;
}
.wb .wb-download:hover { background: #e9f2eb; }
.diff-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px}
.wb-table-scroll{max-height:400px;overflow:auto;border:1px solid var(--wb-border);border-radius:8px;background:#fff}
.wb-table-scroll table{border-collapse:collapse;width:100%;text-align:left;font-size:.9rem}
.wb-table-scroll caption{padding:10px;text-align:left;color:var(--wb-subtle)}
.wb-table-scroll :is(th,td){padding:7px 9px;border-bottom:1px solid var(--wb-border);vertical-align:top;white-space:pre-wrap}
.wb-table-scroll th{background:#e9f2eb}
.wb-rows + .wb-pre,.wb-rows + .wb-qr{margin-top:10px}
.diff-summary{font-weight:650;margin:0 0 10px}
.diff-table{max-height:400px;overflow:auto;border:1px solid var(--wb-border);border-radius:8px;background:#fff}
.diff-table table,.time-laps{border-collapse:collapse;width:100%;text-align:left;font-size:.9rem}
.diff-table :is(th,td),.time-laps :is(th,td){padding:7px 9px;border-bottom:1px solid var(--wb-border);vertical-align:top}
.diff-table :is(th,td):nth-child(-n+2){width:5rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.diff-table code{white-space:pre-wrap;overflow-wrap:anywhere}
.diff-sign{display:inline-block;width:1.35em;font-weight:700}
.diff-added{background:#e5f4e7;color:#174626}
.diff-removed{background:#fbeceb;color:#6e2421}
.time-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wb .time-preset{border:1px solid var(--wb-border);background:#fff}
.time-display{display:block;font-weight:720;color:var(--wb-pine);font-size:clamp(2rem,9vw,4.8rem);font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.1}
.time-laps{margin-top:15px;background:#fff;font-variant-numeric:tabular-nums}
.time-tool [data-laps]{max-height:300px;overflow:auto}
.wb .wb-pre {
  max-height: 420px; overflow: auto; margin: 0; background: white; color: var(--wb-ink);
  border: 1px solid var(--wb-border); border-radius: 8px; padding: 16px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.wb .wb-pre:not(.wb-code) { font-family: inherit; }
.wb .wb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.wb .wb-stats > div { background: #fff; border: 1px solid var(--wb-border); border-radius: 9px; padding: 12px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.wb .wb-stats dt { font-size: .82rem; line-height: 1.35; color: var(--wb-subtle); }
.wb .wb-stats dd { margin: 0 0 3px; color: var(--wb-pine); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.wb .wb-rows { margin: 0; min-width: 0; padding: 0; flex: 1; }
.wb .wb-rows > div { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--wb-border); }
.wb .wb-rows > div:last-child { border: none; }
.wb .wb-rows :is(dt,dd) { line-height: 1.5; margin: 0; }
.wb .wb-rows dt { font-size: .9rem; color: var(--wb-subtle); }
.wb .wb-rows dd { font-weight: 600; overflow-wrap: anywhere; }
.wb .wb-value { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--wb-pine); line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.wb .wb-value span { font-size: .75em; }
.wb-color { gap: 18px; align-items: stretch; }
.wb-swatch { width: clamp(45px, 15%, 100px); flex: none; border-radius: 10px; border: 1px solid #0002; }
.wb-snippet { background: #fff; border: 1px solid var(--wb-border); border-radius: 10px; padding: 16px; max-width: 680px; color: #202124; font-family: Arial, sans-serif; }
.wb-domain, .wb-snippet-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-domain { font-size: .82rem; }
.wb-snippet-title { margin: 5px 0 4px; color: #1a0dab; font-size: 1.25rem; line-height: 1.35; }
.wb .wb-snippet p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0; overflow: hidden; overflow-wrap: anywhere; color: #4d5156; line-height: 1.45; font-size: .94rem; }
.wb .wb-assist { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; padding: 0; border: 0; }
@media (max-width: 640px) {
  .wb .wb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-pair { gap: 9px; }
  .wb-color { gap: 10px; }
}
@media (max-width: 360px) {
  .wb-pair { display: grid; grid-template-columns: 1fr; }
  .wb .wb-top, .wb .wb-result-head { flex-wrap: wrap; }
}
