/* Only what the user agent parser needs on top of tool_page.css: the string
   panel, the example chips, the summary cards and the label/value lists. */
.uap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.uap [hidden] {
  display: none !important;
}

.uap-panel {
  padding: 20px;
  border-radius: 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 2, 18, 0.6);
}

.uap-panel-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.uap-panel-lead {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.uap-self-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.uap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.uap-ua {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.uap-copy-status {
  margin: 8px 0 0;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.uap-copy-status--error {
  color: #ff8ba0;
}

.uap-input {
  width: 100%;
  min-height: 96px;
  padding: 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.uap-input:focus {
  outline: none;
  border-color: #6e00ff;
}

.uap-examples-label {
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uap-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uap-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.uap-chip:hover {
  border-color: #6e00ff;
  color: #fff;
}

.uap-status {
  margin: 0;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.uap-status--warn {
  color: #ffce6b;
}

.uap-warning {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 206, 107, 0.4);
  background: rgba(255, 193, 76, 0.1);
  color: #ffdf9e;
  font-size: 13px;
  line-height: 1.6;
}

.uap-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.uap-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 2, 18, 0.6);
}

.uap-card--bot {
  border-color: rgba(255, 206, 107, 0.45);
}

.uap-card-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uap-card-value {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.uap-card-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  word-break: break-word;
}

.uap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.uap-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uap-rows--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}

.uap-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.uap-row-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.uap-row-value {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  text-align: end;
  word-break: break-word;
}

.uap-row-value.is-mono {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.uap-notes {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uap-note {
  position: relative;
  padding-inline-start: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.uap-note::before {
  content: "•";
  position: absolute;
  inset-inline-start: 4px;
  color: #6e00ff;
}

.uap-empty {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.uap-verdict {
  margin: 14px 0 0;
  color: #6ee7a8;
  font-size: 13px;
  line-height: 1.6;
}

.uap-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.uap-privacy i {
  color: #6e00ff;
  line-height: 1.6;
}

.uap-anatomy {
  margin: 0 0 20px;
  padding: 14px;
  overflow-x: auto;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 991px) {
  .uap-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uap-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .uap-rows--wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .uap-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .uap-row {
    flex-direction: column;
    gap: 2px;
  }

  .uap-row-value {
    text-align: start;
  }
}
