/* group label: gold caps with a rule running off (same as the tools home) */
.grp {
  margin: 34px 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.grp::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.grp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-warm), transparent);
}
.grp.danger {
  color: #ff8f8f;
}
.grp.danger::before {
  background: #ff8f8f;
}

/* two cards side by side, one column on a narrow screen */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  margin: 0;
  padding: 20px 22px;
}

/* card titles in the display face */
.card h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--heading);
}

/* the descriptive lines under a title — give them room before the controls */
.card .sub {
  line-height: 1.5;
  margin: 0 0 14px;
}
.card .sub b {
  color: var(--white);
}
/* the trailing hint line after the controls */
.card .frow + .sub {
  margin: 12px 0 0;
}
/* stacked control rows */
.card .frow + .frow {
  margin-top: 10px;
}

/* full-width settings fields (base styling from ui.css) */
input[type="text"],
input[type="password"] {
  flex: 1;
  min-width: 180px;
}
textarea {
  width: 100%;
  min-height: 110px;
  height: auto;
  padding: 8px 10px;
  font-family: Consolas, monospace;
  font-size: 12px;
  resize: vertical;
}

/* webhook rows */
.hookRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.hookRow:first-child {
  border-top: 0;
}
.hookRow .hlbl {
  flex: 0 0 130px;
  min-width: 110px;
}
.hookRow .hlbl strong {
  display: block;
  color: var(--white);
  font-size: 13px;
}
.hookRow .hlbl span {
  display: block;
  color: var(--text-dim-2);
  font-size: 11px;
  margin-top: 1px;
}
.hookRow input {
  flex: 1;
  min-width: 200px;
}

/* status message: a toast at the bottom of the screen, so it shows next to whatever card you used */
#msg:not(:empty) {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  margin: 0;
  max-width: min(640px, calc(100vw - 32px));
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

/* status pills under the banner */
.statusRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}
.statPill {
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  background: rgba(28, 29, 32, 0.85);
}
.statPill.ok {
  color: var(--accent-hi);
  border-color: rgba(192, 148, 58, 0.6);
  background: rgba(192, 148, 58, 0.1);
}
.statPill.off {
  color: var(--text-dim-2);
}

/* danger-zone card */
.card.danger {
  border-color: #5a2f2f;
}
.card.danger h2 {
  color: #ff8f8f;
}

/* wow-logs API-usage monitor (in the API key card) */
.apiusage {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #2a2c31);
}
.au-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.au-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim, #9aa0a6);
}
.au-count {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-size: 15px;
}
.au-count b {
  font-size: 20px;
  font-weight: 800;
}
.au-cap {
  color: #6e7178;
  font-size: 12px;
  font-weight: 600;
}
.au-bar {
  margin-top: 8px;
  height: 7px;
  border-radius: 999px;
  background: #16181c;
  overflow: hidden;
}
.au-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent, #c0943a);
  transition: width 0.3s;
}
.au-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #6e7178;
}
.apiusage .frow {
  margin-top: 10px;
}
