/* AI 内盘 page — reuses focus.css table/token/CA/chip styles + theme.css panels. */
.aintro { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 0.75rem; line-height: 1.5; }
.aold { color: var(--warn); background: var(--warn-dim); border: 1px solid rgba(255, 196, 0, 0.25); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem; font-size: 0.8rem; margin-bottom: 0.65rem; }
.aold[hidden] { display: none; }
.asrcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.asrc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; position: relative; overflow: hidden; }
.asrc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.asrc.bad::before { background: var(--danger); } .asrc.part::before { background: var(--warn); }
.asrc .a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.asrc .a a { color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.asrc .a a:hover { color: var(--accent); }
.asrc .st { font-size: 0.7rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 4px; background: var(--accent-dim); color: var(--accent); white-space: nowrap; }
.asrc.bad .st { background: var(--danger-dim); color: var(--danger); } .asrc.part .st { background: var(--warn-dim); color: var(--warn); }
.asrc .c { font-family: var(--mono); font-size: 0.8rem; color: var(--text); }
.asrc .m { font-size: 0.7rem; color: var(--text-dim); line-height: 1.4; overflow-wrap: anywhere; }
.asrc .e { font-size: 0.7rem; color: var(--warn); overflow-wrap: anywhere; }
.anotes { margin: 0.7rem 0 0; padding-left: 1.1rem; color: var(--text-dim); font-size: 0.75rem; line-height: 1.55; }
.fchips button small { opacity: 0.7; margin-left: 0.25rem; font-family: var(--mono); }

/* table */
.ahead, .ar { display: grid; grid-template-columns: minmax(0, 1fr) 136px 160px 64px 96px 84px 76px 150px; gap: 0.6rem; align-items: center; }
.ahead { color: var(--text-dim); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.ahead .n, .ar .n { text-align: right; }
.alist { display: flex; flex-direction: column; }
.ar { font-size: 0.85rem; padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--border); color: var(--text); font-family: var(--mono); }
.ar:hover { background: var(--bg-card-hover); }
.ar.stale { opacity: 0.65; }
.ar .tk .nm { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.ar .tk img { width: 22px; height: 22px; border-radius: 50%; flex: none; object-fit: cover; background: var(--bg); }
.ar .tk .ca .k { flex: none; font-size: 0.65rem; font-weight: 700; color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.35); border-radius: 4px; padding: 0.05rem 0.3rem; font-family: var(--font); cursor: help; }
.ar .lp { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--font); min-width: 0; }
.lpb { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 4px; white-space: nowrap; width: fit-content; text-decoration: none; }
.lpb.fourmeme { background: rgba(0, 229, 160, 0.12); color: #34d399; }
.lpb.flapai { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }
.lpb.gang { background: rgba(251, 191, 36, 0.13); color: #fbbf24; }
.lpb.pipfun { background: rgba(77, 163, 255, 0.14); color: #7cc0ff; }
.ast { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.ast.live { color: var(--accent); } .ast.migrating { color: var(--info); } .ast.paused { color: var(--warn); } .ast.migrated { color: #c4b5fd; }
.pg { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.pg .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pg .bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #00e5a0); border-radius: 3px; }
.pg .v { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.78rem; }
.pg .v b { color: #fff; } .pg small { color: var(--text-dim); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar .ag { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.ar .mc { color: var(--accent); } .ar .lq { color: var(--warn); }
.ar .mc small { display: block; color: var(--text-dim); font-size: 0.68rem; }
.ar .sec { -webkit-line-clamp: 3; cursor: help; }
.ar .sec b { font-weight: 700; }
.ar .sec.NA, .ar .sec.UNKNOWN { color: var(--text-muted); }
.ar .sec small { display: block; color: var(--text-dim); font-size: 0.68rem; }
.amore { display: flex; justify-content: center; }
.amore button { appearance: none; font: inherit; cursor: pointer; margin-top: 0.75rem; padding: 0.45rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 0.82rem; }
.amore button:hover { border-color: var(--accent); color: var(--accent); }
.amore:empty { display: none; }

@media (max-width: 1100px) { .asrcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 860px) {
  .ahead { display: none; }
  .alist { gap: 0.55rem; }
  .ar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "tk tk tk" "lp lp lp" "pg pg pg" "ho ag ag" "mc mc lq" "sec sec sec";
    gap: 0.45rem 0.6rem; padding: 0.75rem 0.8rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  }
  .ar .tk { grid-area: tk; } .ar .lp { grid-area: lp; flex-direction: row; align-items: center; flex-wrap: wrap; } .ar .pg { grid-area: pg; }
  .ar .ho { grid-area: ho; text-align: left; } .ar .ag { grid-area: ag; text-align: right; }
  .ar .mc { grid-area: mc; text-align: left; } .ar .lq { grid-area: lq; text-align: right; } .ar .sec { grid-area: sec; }
  .ar .ho::before, .ar .ag::before, .ar .mc::before, .ar .lq::before { content: attr(data-l) " "; color: var(--text-dim); font-size: 0.72rem; font-family: var(--font); }
  .ar .mc small { display: inline; margin-left: 0.35rem; }
}
@media (max-width: 720px) {
  .asrcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .asrc { padding: 0.6rem 0.7rem; }
  .asrc .a { flex-wrap: wrap; gap: 0.3rem; }
  .alive .fchips button { flex: 1 1 auto; white-space: nowrap; padding: 0.4rem 0.7rem; }
  .ar .tk .ca .k { min-height: 30px; display: inline-flex; align-items: center; }
  .lpb { min-height: 28px; display: inline-flex; align-items: center; }
  .amore button { min-height: 44px; width: 100%; }
}

/* 内盘进行中 / 已毕业 tabs (reuse .view-tab from style.css) + pager */
.atabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.75rem; }
.atabs .view-tab small { margin-left: 0.4rem; font-family: var(--mono); font-size: 0.78rem; opacity: 0.8; }
.atabs .view-tab.active small { opacity: 1; }
.atabs .view-tab:focus-visible, .apager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.apager { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 0.85rem; }
.apager[hidden] { display: none; }
.apager button { appearance: none; font: inherit; cursor: pointer; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 0.82rem; font-weight: 600; min-width: 6.5rem; }
.apager button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.apager button[disabled] { opacity: 0.4; cursor: default; }
.apager .pi { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 7rem; text-align: center; }
.apager .pi b { color: var(--text); font-size: 0.85rem; font-family: var(--mono); font-weight: 700; }
.apager .pi small { color: var(--text-dim); font-size: 0.7rem; }
@media (max-width: 720px) {
  .atabs { gap: 0.4rem; }
  .atabs .view-tab { flex: 1 1 0; min-height: 44px; padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .apager { gap: 0.5rem; }
  .apager button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0.45rem 0.5rem; }
  .apager .pi { min-width: 0; flex: 1.2 1 0; }
}
