button {
  background: var(--brand);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 4px;
}

button:hover {
  background: #094fb1;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-bottom: 1em;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: #f9fafc;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 100, 216, 0.15);
  background: #fff;
}

input:disabled,
input[readonly] {
  background: #f4f6fb;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.7;
}

input {
  transition: all 0.25s ease;
}

.card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  list-style: none;
}

.card-summary::-webkit-details-marker {
  display: none;
}

.chevron {
  font-size: 1rem;
  transition: transform .25s ease;
}

details[open] .chevron {
  transform: rotate(180deg);
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--brand);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;

  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop i {
  font-size: 1.6rem;
  pointer-events: none;
  margin: 0;
}

div.search {
  display: flex;
  align-items: baseline;
}

button.search {
  white-space: nowrap;
  height: 2.3em;
  margin-left: 1em;
}

.search-result {
  margin-top: .5rem;
  font-size: .95rem;
}
.search-result .result-link {
  margin-left: .4rem;
  font-weight: 600;
  color: var(--brand);
}
.search-result .result-link:hover {
  text-decoration: underline;
}

a.copy-btn {
  color: #ffffff;
}

.copy-btn {
  margin-left: .5rem;
  background: var(--brand);
  border: none;
  padding: .35rem .55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  transition: background .2s;
}

.copy-btn:hover {
  background: #094fb1;
}

.copy-btn i {
  pointer-events: none;
}

.copy-btn.copied {
  background: var(--ok);
  color: white;
}

#tooltip-root .tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: normal;
  max-width: 320px;
  word-wrap: break-word;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}