.segmented {
  display: inline-flex;
  border: 1px solid #d9dfdc;
  background: #fff;
}

.segmented button {
  min-width: 86px;
  border: 0;
  border-right: 1px solid #d9dfdc;
  padding: 9px 14px;
  background: #fff;
  color: #67727a;
  font-weight: 700;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: #1f6f52;
  color: #fff;
}

.content-copy {
  max-width: 420px;
  white-space: normal !important;
}

.content-copy strong,
.content-copy small {
  display: block;
}

.content-copy strong {
  line-height: 1.45;
}

.content-copy small {
  margin-top: 4px;
  color: #67727a;
  line-height: 1.35;
}

.toolbar select {
  width: auto;
  min-width: 132px;
}

.media-cell {
  min-width: 250px;
  max-width: 340px;
}

.processing-time {
  display: block;
  margin-top: 5px;
  color: #67727a;
  font-size: 11px;
}

.processing-problem {
  max-width: 280px;
  white-space: normal !important;
  color: #a64040;
  line-height: 1.4;
}

.processing-badge::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: processing-pulse 1.2s ease-in-out infinite;
}

@keyframes processing-pulse {
  50% { opacity: .25; }
}

.api-key-manager {
  display: grid;
  gap: 20px;
}

.api-key-warning {
  padding: 14px 16px;
  border: 1px solid #ead3a5;
  background: #fff8e8;
  color: #6e4a14;
}

.api-key-warning strong,
.api-key-warning p {
  display: block;
  margin: 0;
}

.api-key-warning p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.api-key-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) auto;
  align-items: end;
  gap: 10px;
}

.api-key-create-form label {
  display: grid;
  gap: 6px;
  color: #34413b;
  font-size: 12px;
  font-weight: 650;
}

.api-key-create-form .button {
  min-height: 42px;
}

.api-key-list-heading,
.api-key-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.api-key-list-heading strong,
.api-key-list-heading small,
.api-key-row header strong,
.api-key-row header code {
  display: block;
}

.api-key-list-heading small,
.api-key-row header code {
  margin-top: 4px;
  color: #67727a;
  font-size: 11px;
}

.api-key-list-heading a {
  color: #1f6f52;
  font-size: 12px;
  font-weight: 700;
}

.api-key-list {
  display: grid;
  border-top: 1px solid #e7ebe9;
}

.api-key-row {
  display: grid;
  padding: 15px 0;
  gap: 12px;
  border-bottom: 1px solid #e7ebe9;
}

.api-key-row dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.api-key-row dl div {
  min-width: 0;
}

.api-key-row dt {
  color: #67727a;
  font-size: 10px;
}

.api-key-row dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  font-size: 12px;
}

.api-key-row > .button {
  justify-self: end;
}

@media (max-width: 720px) {
  .api-key-create-form { grid-template-columns: 1fr; }
  .api-key-row dl { grid-template-columns: 1fr; }
}
