/* My account — no frame in the mockup (agreed at F3). Built from the mockup's
 * own parts: doc container, numbered panels, the card and notice components.
 */

.acct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); font-size: var(--fs-small); line-height: 18px; }
.acct-meta span:not(.badge) { color: var(--color-muted); }

.acct-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-24);
  padding-bottom: var(--space-80);
}
.acct-panel {
  display: flex; flex-direction: column; gap: var(--space-20);
  padding: var(--space-32); border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.acct-panel--wide { grid-column: 1 / -1; }
.acct-panel__head { display: flex; align-items: baseline; gap: var(--space-16); }
.acct-panel__num { font-size: var(--fs-h3); line-height: 55.44px; font-weight: 800; color: var(--color-lime); }
.acct-panel__num--violet { color: var(--color-violet); }
.acct-panel__title { font-size: var(--fs-lead); line-height: 30.24px; font-weight: 800; text-transform: uppercase; }
.acct-panel__body { display: flex; flex-direction: column; gap: var(--space-16); }

.acct-state { font-size: var(--fs-body); line-height: 26px; }
.acct-note { font-size: var(--fs-2xs); line-height: 18px; color: var(--color-muted); }
.acct-note a, .notice a { font-weight: 700; color: var(--color-violet); text-decoration: underline; text-underline-offset: 2px; }

.acct-form { display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.acct-form .field { width: 100%; max-width: 320px; }

.acct-periods { border: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.acct-period { display: flex; align-items: center; gap: var(--space-10); font-size: var(--fs-small); line-height: 18px; }
.acct-period input { width: 18px; height: 18px; accent-color: var(--color-violet); }

.acct-table { font-size: var(--fs-small); }
.acct-table th {
  text-align: left; padding: var(--space-12) var(--space-16);
  font-size: var(--fs-3xs); line-height: 14px; font-weight: 800; text-transform: uppercase;
  color: var(--color-faint); border-bottom: 1px solid var(--color-border);
}
.acct-table td { padding: var(--space-16); border-bottom: 1px solid var(--color-border); }
.acct-table tbody tr:hover { background: var(--color-surface-2); }

@media (max-width: 1199px) {
  .acct-grid { grid-template-columns: 1fr; gap: var(--space-12); padding-bottom: var(--section-y-m); }
  .acct-panel { padding: var(--space-20); gap: var(--space-16); }
  .acct-panel__num { font-size: var(--fs-h6); line-height: 35px; }
  .acct-panel__title { font-size: var(--fs-lg); line-height: 23px; }
  .acct-state { font-size: var(--fs-small); line-height: 21px; }
  .acct-form .field { max-width: none; }
  .acct-form .btn { width: 100%; }
  /* the activity table becomes stacked rows on a phone */
  .acct-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .acct-table, .acct-table tbody, .acct-table tr, .acct-table td { display: block; width: 100%; }
  .acct-table tr { padding-block: var(--space-12); border-bottom: 1px solid var(--color-border); }
  .acct-table td { padding: 0; border: 0; font-size: var(--fs-2xs); line-height: 18px; }
  .acct-table td:first-child { font-size: var(--fs-small); line-height: 21px; font-weight: 800; }
}
