/* Account sub-pages (personal info, security, subscription, devices,
   sessions, key history, changes). Uses the v5 tokens. */

.ac-block-head small { display: block; color: var(--faint, #6a6a73); font-size: 0.78rem; line-height: 1.45; margin-top: 0.15rem; }
.ac-block-head { margin-bottom: 0.7rem; }

.ac-chip { white-space: nowrap; }
.ac-chip.is-good { color: var(--good, #6ee7a0) !important; border-color: rgba(110, 231, 160, 0.3) !important; }
.ac-chip.is-bad { color: var(--accent, #f26173) !important; border-color: rgba(242, 97, 115, 0.35) !important; }
.ac-panel .ac-note:empty { display: none !important; }

.pg-mono { font-family: var(--mono, ui-monospace, Consolas, monospace); letter-spacing: 0.03em; font-size: 0.8rem; }
.pg-copyline { display: inline-flex; align-items: center; gap: 0.5rem; }

.pg-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  background: rgba(255, 255, 255, 0.025);
  color: var(--mute, #9b9ba4);
}
.pg-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pg-methods, .pg-list, .pg-timeline { display: grid; gap: 0.45rem; }

.pg-method, .pg-row, .pg-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  min-width: 0;
}
.pg-method > div, .pg-row > div, .pg-event > div { flex: 1 1 auto; min-width: 0; }
.pg-method b, .pg-row b, .pg-event b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink, #f7f7f9); overflow-wrap: anywhere; }
.pg-method small, .pg-row small, .pg-event small { display: block; font-size: 0.76rem; color: var(--faint, #6a6a73); overflow-wrap: anywhere; }
.pg-method .ac-chip, .pg-row .ac-chip, .pg-row .pg-small { flex: 0 0 auto; margin-left: auto; }

.pg-list + .ac-form { margin-top: 0.8rem; }
.pg-small { padding: 0.32rem 0.75rem !important; font-size: 0.76rem !important; min-height: 0 !important; }

/* timeline: a quiet rail behind the icons */
.pg-timeline { position: relative; gap: 0.35rem; }
.pg-event { border-color: transparent; background: transparent; padding: 0.45rem 0.2rem; }
.pg-event + .pg-event { border-top: 1px solid var(--line, rgba(255, 255, 255, 0.07)); border-radius: 0; }

.pg-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.pg-filters button {
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.13));
  background: transparent;
  color: var(--mute, #9b9ba4);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.pg-filters button:hover { color: var(--ink, #f7f7f9); }
.pg-filters button.is-on { color: var(--ink, #f7f7f9); background: rgba(242, 97, 115, 0.14); border-color: rgba(242, 97, 115, 0.4); }

/* subscription */
.pg-plan { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin: 0.1rem 0 0.6rem; }
.pg-plan b { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink, #f7f7f9); }
.pg-plan span { color: var(--mute, #9b9ba4); font-size: 0.88rem; }
.pg-meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-bottom: 0.7rem; }
.pg-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent, #f26173); transition: width 0.6s ease; }

/* key history */
.pg-key .ac-key-meta { min-width: 0; }
.pg-key-sub { display: block; font-size: 0.74rem; color: var(--faint, #6a6a73); margin-top: 0.3rem; }
.pg-key-sub a { color: #9ec4ff; text-decoration: underline; text-underline-offset: 0.16em; }
.pg-key .ac-key-actions { align-items: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .pg-row, .pg-method { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.5rem; }
  .pg-row .pg-small, .pg-row .ac-chip, .pg-method .ac-chip { grid-column: 2; justify-self: start; margin-left: 0; }
  .pg-plan b { font-size: 1.35rem; }
  .ac-line { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { .pg-meter i { transition: none; } }
