/* WordPress テーマとの干渉を避けるため、すべて .sbnt 配下に限定する */
.sbnt {
  --sbnt-fg: #1f2328;
  --sbnt-muted: #59636e;
  --sbnt-bg: #ffffff;
  --sbnt-bg-sub: #f6f8fa;
  --sbnt-border: #d1d9e0;
  --sbnt-accent: #0969da;
  --sbnt-ok: #1a7f37;
  --sbnt-warn: #9a6700;
  --sbnt-error: #d1242f;
  --sbnt-net-bg: #ddf4ff;
  --sbnt-net-fg: #0550ae;
  --sbnt-host-bg: #fff1e5;
  --sbnt-host-fg: #953800;
  --sbnt-current: #fff8c5;
  box-sizing: border-box;
  max-width: 100%;
  margin: 1.5em 0;
  padding: 16px;
  border: 1px solid var(--sbnt-border);
  border-radius: 8px;
  background: var(--sbnt-bg);
  color: var(--sbnt-fg);
  font-size: 15px;
  line-height: 1.6;
}
.sbnt *,
.sbnt *::before,
.sbnt *::after {
  box-sizing: border-box;
}
.sbnt [hidden] {
  display: none !important;
}
.sbnt .sbnt-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  margin: 0 0 8px;
}
.sbnt .sbnt-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.sbnt .sbnt-field-ip {
  flex: 1 1 260px;
}
.sbnt .sbnt-label {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}
.sbnt .sbnt-in,
.sbnt .sbnt-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--sbnt-border);
  border-radius: 6px;
  background: var(--sbnt-bg);
  color: var(--sbnt-fg);
  font: inherit;
}
.sbnt .sbnt-in {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.5;
}
.sbnt .sbnt-select {
  font-size: 14px;
}
.sbnt .sbnt-in[aria-invalid="true"] {
  border-color: var(--sbnt-error);
}
.sbnt .sbnt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.sbnt .sbnt-btn {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--sbnt-border);
  border-radius: 6px;
  background: var(--sbnt-bg-sub);
  color: var(--sbnt-fg);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.sbnt .sbnt-btn:hover {
  border-color: var(--sbnt-muted);
}
.sbnt .sbnt-btn-sub {
  background: transparent;
}
.sbnt button:focus-visible,
.sbnt input:focus-visible,
.sbnt select:focus-visible,
.sbnt summary:focus-visible {
  outline: 2px solid var(--sbnt-accent);
  outline-offset: 2px;
}
.sbnt .sbnt-hint,
.sbnt .sbnt-info,
.sbnt .sbnt-msg,
.sbnt .sbnt-note {
  margin: 0 0 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.sbnt .sbnt-hint,
.sbnt .sbnt-note {
  color: var(--sbnt-muted);
}
.sbnt .sbnt-info {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--sbnt-bg-sub);
  font-size: 14px;
}
.sbnt .sbnt-info:empty,
.sbnt .sbnt-msg:empty {
  display: none;
}
.sbnt .sbnt-msg {
  font-size: 14px;
}
.sbnt .sbnt-msg[data-kind="ok"] {
  color: var(--sbnt-ok);
}
.sbnt .sbnt-msg[data-kind="warn"] {
  color: var(--sbnt-warn);
}
.sbnt .sbnt-msg[data-kind="error"] {
  color: var(--sbnt-error);
}
.sbnt .sbnt-table {
  width: 100%;
  margin: 0 0 8px;
  border-collapse: collapse;
  font-size: 14px;
}
.sbnt .sbnt-caption {
  margin: 0 0 4px;
  font-weight: bold;
  text-align: left;
}
.sbnt .sbnt-table th,
.sbnt .sbnt-table td {
  padding: 5px 8px;
  border: 1px solid var(--sbnt-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.sbnt .sbnt-table th {
  background: var(--sbnt-bg-sub);
  font-weight: bold;
}
.sbnt .sbnt-table tbody th {
  width: 15em;
}
.sbnt .sbnt-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-weight: bold;
}
.sbnt .sbnt-sub {
  margin-left: 4px;
  color: var(--sbnt-muted);
  font-size: 13px;
}
.sbnt .sbnt-subhead {
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: bold;
}
.sbnt .sbnt-legend {
  margin: 0 0 6px;
  font-size: 13px;
}
.sbnt .sbnt-key {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
}
.sbnt .sbnt-legend-text {
  color: var(--sbnt-muted);
}
.sbnt .sbnt-net {
  background: var(--sbnt-net-bg);
  color: var(--sbnt-net-fg);
}
.sbnt .sbnt-host {
  background: var(--sbnt-host-bg);
  color: var(--sbnt-host-fg);
}
.sbnt .sbnt-bin {
  margin: 0 0 8px;
}
.sbnt .sbnt-bin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 0 6px;
}
.sbnt .sbnt-bin-label {
  flex: 0 0 9em;
  font-size: 13px;
  font-weight: bold;
}
.sbnt .sbnt-bin-bits {
  padding: 0;
  background: transparent;
  color: var(--sbnt-fg);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sbnt .sbnt-dot {
  color: var(--sbnt-muted);
}
.sbnt .sbnt-bin-dec {
  color: var(--sbnt-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}
.sbnt .sbnt-details {
  margin: 8px 0;
  border: 1px solid var(--sbnt-border);
  border-radius: 6px;
}
.sbnt .sbnt-summary {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.sbnt .sbnt-summary:hover {
  background: var(--sbnt-bg-sub);
}
.sbnt .sbnt-details .sbnt-note {
  padding: 0 10px;
}
.sbnt .sbnt-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 10px;
}
.sbnt .sbnt-cidr th,
.sbnt .sbnt-cidr td {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.sbnt .sbnt-cidr tr[data-current="true"] td {
  background: var(--sbnt-current);
  font-weight: bold;
}
.sbnt .sbnt-offscreen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
@media (max-width: 600px) {
  .sbnt {
    padding: 12px;
  }
  .sbnt .sbnt-field {
    flex: 1 1 100%;
  }
  .sbnt .sbnt-table tbody th {
    width: 8em;
  }
  .sbnt .sbnt-bin-label {
    flex: 1 1 100%;
  }
  .sbnt .sbnt-bin-bits {
    font-size: 13px;
    letter-spacing: 0;
  }
  .sbnt .sbnt-cidr th,
  .sbnt .sbnt-cidr td {
    padding: 4px 5px;
    font-size: 12px;
  }
}
