/* 多聚AI 控制台 · keys 页面自己的样式（通用组件在 console-ui.css） */

/* ---------- 接口地址卡片 ---------- */
.ck-ep { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 20px; }
.ck-ep__i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--sunk); color: var(--ink-2); }
.ck-ep__i svg.icon { width: 18px; height: 18px; }
.ck-ep__m { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.ck-ep__k { font-size: 12.5px; font-weight: 550; color: var(--ink-3); }
.ck-ep__url {
  max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--ink); cursor: copy;
  font: 500 15px/1.4 var(--mono); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s, color .15s;
}
.ck-ep__url:hover { color: var(--accent); text-decoration-color: var(--accent); }
.ck-ep__url:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ck-ep small { font-size: 12.5px; color: var(--ink-3); }
.ck-ep__a { display: flex; gap: 8px; flex: none; }

/* ---------- 工具栏 ---------- */
.ck-tb .cx-search { display: block; }
.ck-tb .cx-search input::-webkit-search-cancel-button { cursor: pointer; }
.ck-count { font-size: 13px; white-space: nowrap; }

/* ---------- 表格 ---------- */
.ck-tbl { min-width: 1080px; }
.ck-name { font-weight: 600; color: var(--ink); word-break: break-all; }
.ck-key { color: var(--ink-2); white-space: nowrap; }
.ck-nowrap { white-space: nowrap; color: var(--ink-2); }
.ck-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.ck-exp.is-err { color: var(--err); }
.ck-exp.is-warn { color: var(--warn); }
.ck-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.ck-quota { min-width: 130px; }
.ck-quota small { display: block; margin-top: 2px; font-size: 12px; }
.ck-bar { height: 4px; margin-top: 7px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.ck-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ck-bar.is-warn i { background: var(--warn); }
.ck-bar.is-err i { background: var(--err); }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-dots { fill: currentColor; stroke: none; }

/* ---------- 操作菜单（挂在 body 上，fixed 定位） ---------- */
.ck-menu {
  position: fixed; z-index: 60; min-width: 168px; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-pop);
  animation: ck-pop .14s ease-out;
}
.ck-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px;
  border: 0; border-radius: 7px; background: none; color: var(--ink); font: 500 13.5px var(--font); text-align: left; cursor: pointer;
}
.ck-menu button svg.icon { width: 15px; height: 15px; color: var(--ink-3); }
.ck-menu button:hover, .ck-menu button:focus-visible { background: var(--hover); outline: none; }
.ck-menu button.is-danger, .ck-menu button.is-danger svg.icon { color: var(--err); }
@keyframes ck-pop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ck-menu { animation: none; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .ck-ep { flex-wrap: wrap; }
  .ck-ep__i { display: none; }
  .ck-ep__a { width: 100%; }
  .ck-ep__a .cx-btn { flex: 1; }
  .ck-count { display: none; }
}
