.nk-card { max-width: 520px; }
.modal-card.g-card.nk-card { overflow: visible; }
.nk-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 27px 0; }
.nk-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--t50);
  color: var(--t600);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 0 0 5px var(--t200);
}
.nk-badge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nk-head .modal-h { margin-top: 2px; }
.nk-head .modal-p { margin-top: 4px; }
.nk-head .modal-p code { font-family: var(--font-mono); font-size: 12px; padding: 1px 5px; border-radius: 6px; background: var(--bg-soft); }
.nk-name { margin-top: 8px; }
.nk-body { padding: 4px 27px 0; }
.nk-body .modal-key { margin-top: 14px; }
.nk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nk-hint { margin-top: 6px; min-height: 17px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.nk-row .fld-lrow .xp-i { margin-block: -4px; }
.nk-money { position: relative; }
.nk-money .fld { padding-left: 25px; padding-right: 66px; font-variant-numeric: tabular-nums; }
.nk-pre, .nk-suf { position: absolute; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.nk-pre { left: 12px; font-size: 13.5px; }
.nk-suf { right: 12px; font-size: 12px; }
.nk-note { margin-top: 16px; padding: 10px 12px; border-radius: 11px; background: var(--bg-soft); font-size: 12.5px;
           line-height: 1.5; color: var(--muted); }
.nk-card .g-foot { padding-top: 22px; }
.nk-acts { display: flex; gap: 8px; margin-left: auto; }
.copy.nk-del { color: var(--red); background: none; box-shadow: none; padding-left: 6px; padding-right: 6px; }
.copy.nk-del:hover { background: var(--r50); }

@media (max-width: 560px) {
  .nk-row { grid-template-columns: 1fr; gap: 10px; }
  .nk-hint:empty { min-height: 0; margin-top: 0; }
  .nk-head { padding: 22px 20px 0; }
  .nk-body { padding: 4px 20px 0; }
  .nk-card .g-foot { padding: 20px 20px 22px; }
}
.keys-quota { font-variant-numeric: tabular-nums; }
.keys-quota.is-full { color: var(--amber); }
.keys .keys-act { width: 40px; padding-right: 6px; text-align: right; }
.row-act {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.row-act svg { width: 18px; height: 18px; fill: currentColor; }
.keys tbody tr:hover .row-act,
.keys tbody tr:focus-within .row-act,
.row-act:focus-visible { opacity: 1; }
.row-act:hover { background: var(--bg-soft); color: var(--text); }
.row-act:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
@media (hover: none) { .row-act { opacity: 1; } }
@media (max-width: 760px) {
  .keys .keys-act {
    position: sticky;
    right: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--bg-raised) 14px);
  }
}
.keys-spend .ks-amt { color: var(--text); font-variant-numeric: tabular-nums; }
.keys-spend .ks-of { color: var(--dim); }
.ks-bar { display: block; width: 100%; max-width: 132px; height: 4px; margin-top: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.ks-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--t500); }
.ks-bar.is-near > i { background: var(--amber); }
.ks-bar.is-full > i { background: var(--red); }
