.dw-whois {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  color: var(--text);
  font-size: 12px;
}

.dw-whois-form {
  display: flex;
  gap: 6px;
}

.dw-whois-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.dw-whois-input:focus-visible {
  outline: none;
  border-color: var(--w-accent, var(--accent));
  box-shadow: 0 0 0 2px var(--w-accent-soft, var(--accent-soft));
}

.dw-whois-submit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.dw-whois-results {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.dw-whois-fields {
  display: grid;
  gap: 4px;
}

.dw-whois-field,
.dw-whois-raw {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: copy;
}

.dw-whois-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 4px 7px;
}

.dw-whois-field:hover,
.dw-whois-field:focus-visible,
.dw-whois-raw:hover,
.dw-whois-raw:focus-visible {
  background: var(--w-accent-soft, var(--accent-soft));
}

.dw-whois-field span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.dw-whois-field strong {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dw-whois-field.is-copied strong,
.dw-whois-raw.is-copied {
  color: var(--green);
}

.dw-whois-raw {
  flex: 1 1 auto;
  min-height: 72px;
  padding: 7px;
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dw-whois-empty {
  display: grid;
  flex: 1 1 auto;
  place-content: center;
  padding: 12px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}
