/* accounts 账号矩阵 页面专用样式（类名都带 acc- 前缀） */
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-tabs { flex-wrap: wrap; align-items: center; }
.acc-total { padding: 0 10px 0 8px; color: var(--sub); font-size: 13px; white-space: nowrap; }
.acc-total b { color: var(--text); font-size: 15px; }
.acc-f-ok i { color: var(--green); }
.acc-f-warn i { color: #c26a00; }
.acc-f-expired i { color: var(--red); }

.acc-vault { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; min-width: 0; }
.acc-vault-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.acc-vault-tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.acc-vault-tt b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.acc-vault-tt small { color: var(--mute); font-size: 12px; }

.acc-wait { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13.5px; }
.acc-wait[hidden] { display: none; }
.acc-wait .ic { width: 16px; height: 16px; }

.acc-sec { margin-bottom: 8px; }
.acc-sec-tt { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 12px; font-size: 16px; }
.acc-sec-tt i { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--mute); }
.acc-grid { display: grid; gap: 14px; }

.acc-plat { overflow: hidden; }
.acc-plat-hd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; }
.acc-av { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; }
.acc-plat-tt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc-plat-tt b { font-size: 15px; }
.acc-plat-tt small { color: var(--mute); font-size: 12.5px; }
.acc-plat-tip { display: flex; align-items: flex-start; gap: 6px; padding: 7px 16px; font-size: 12.5px; color: var(--sub); background: #fafbfd; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.acc-plat-tip .ic { width: 14px; height: 14px; margin-top: 2px; color: var(--mute); }

.acc-row {
  display: grid; align-items: center; gap: 14px; padding: 10px 14px 10px 13px;
  grid-template-columns: minmax(160px, 1.3fr) 96px 190px minmax(180px, 1.7fr) auto;
  border-left: 3px solid transparent; border-bottom: 1px solid var(--line-2);
}
.acc-row:last-child { border-bottom: 0; }
.acc-row:hover { background: #f8fafd; }
.acc-row.acc-st-warn { border-left-color: var(--amber); }
.acc-row.acc-st-expired { border-left-color: var(--red); }
.acc-name { display: flex; flex-direction: column; min-width: 0; }
.acc-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name b a:hover { color: var(--brand); text-decoration: underline; }
.acc-name-sub { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.acc-note { color: var(--sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acc-note-btn { font-size: 12px; flex: none; opacity: 0; transition: opacity .1s; }
.acc-row:hover .acc-note-btn, .acc-note-btn:focus { opacity: 1; }
.acc-cell { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.acc-cell > small { color: var(--mute); font-size: 11.5px; }
.acc-cell > span { font-size: 13px; white-space: nowrap; }
.acc-st { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-st .pill { flex: none; display: inline-flex; align-items: center; gap: 3px; }
.acc-st .pill .ic { width: 12px; height: 12px; }
.acc-st small { color: var(--sub); font-size: 12.5px; line-height: 1.45; }
.acc-st .link { font-size: 12.5px; margin-left: 2px; }
.acc-op { text-align: right; }
.acc-op .btn:disabled { opacity: .7; cursor: progress; }
.acc-nologin { font-size: 12px; white-space: nowrap; }

.acc-none { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.acc-none-it { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 12.5px; }
button.acc-none-it:hover { filter: brightness(.96); }
.acc-none-it.off { background: var(--line-2); color: var(--mute); }
.acc-none-tip { font-size: 12px; }

.acc-others { margin-top: 22px; padding: 12px 16px; }
.acc-others summary { cursor: pointer; color: var(--sub); font-size: 13px; }
.acc-others ul { list-style: none; margin: 10px 0 6px; padding: 0; }
.acc-others li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line-2); }
.acc-others p { margin: 8px 0 0; font-size: 12px; word-break: break-all; }

.acc-dlg ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.9; }
.acc-warn { margin: 0 0 12px; padding: 9px 12px; border-radius: 9px; background: #fff7ec; color: #9a5300; font-size: 13px; line-height: 1.6; }
.acc-warn:empty { display: none; }
.acc-dlg-act { margin-top: 4px; }
.acc-log-tip { margin: 0 0 10px; font-size: 12.5px; }

/* 中等宽度（笔记本 + 左侧菜单）：状态那一栏挪到第二行，免得挤出去 */
@media (min-width: 861px) and (max-width: 1180px) {
  .acc-row { grid-template-columns: minmax(0, 1fr) 96px 190px auto; row-gap: 6px; }
  .acc-st { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 860px) {
  .acc-top { flex-direction: column; align-items: stretch; }
  .acc-vault .btn { margin-left: auto; }
  .acc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px 12px 13px; }
  .acc-name, .acc-st, .acc-op { grid-column: 1 / -1; }
  .acc-st { align-items: flex-start; }
  .acc-op { text-align: left; }
  .acc-op .btn { width: 100%; justify-content: center; }
  .acc-cell > span { white-space: normal; }
  .acc-note-btn { opacity: 1; }
}
