.key-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.key-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 1px solid var(--line, #dbe4df);
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.key-icon:hover {
  background: #edf5f0;
}
.key-icon.danger {
  color: #b93838;
}
.key-icon.danger:hover {
  background: #fff0f0;
}
.key-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.key-icon:focus-visible {
  outline: 3px solid #87bba3;
  outline-offset: 2px;
}
.key-icon:disabled {
  opacity: 0.4;
  cursor: wait;
}
.key-title {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.key-id {
  display: block;
  font:
    12px/1.7 ui-monospace,
    monospace;
  color: #738078;
  margin-top: 3px;
}
.key-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5ebe7;
}
.key-row:last-child {
  border-bottom: 0;
}
.key-row-info {
  flex: 1;
  min-width: 0;
}
.key-manager {
  margin-top: 24px;
  border-top: 1px solid #e3eae6;
  padding-top: 18px;
}
.key-manager h3 {
  margin: 0;
  font-size: 14px;
}
.key-empty {
  padding: 25px 0;
  color: #738078;
  text-align: center;
}
.key-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid #dce6df;
  border-radius: 16px;
  box-shadow: 0 20px 80px #16332426;
  color: #1b2b22;
  background: white;
}
.key-dialog::backdrop {
  background: #152d244d;
  backdrop-filter: blur(3px);
}
.key-dialog h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.key-dialog p {
  color: #68766d;
  font-size: 14px;
  line-height: 1.7;
}
.key-dialog input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd8cf;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  margin: 8px 0;
}
.key-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.key-dialog button:not(.key-icon) {
  height: 36px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  background: #f7faf8;
  cursor: pointer;
}
.key-dialog button.primary {
  background: #178052;
  color: white;
  border-color: #178052;
}
.key-feedback {
  min-height: 22px;
  font-size: 13px;
  line-height: 22px;
  margin: 10px 0 0;
  color: #66756c;
}
.key-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  background: #223c2d;
  z-index: 50;
  box-shadow: 0 6px 25px #16332426;
  font-size: 14px;
}
.key-toast[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .key-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .key-actions {
    gap: 4px;
  }
  .key-icon {
    width: 38px !important;
    height: 38px !important;
  }
}
