/* Accounts: topbar chip, history nudge and the /account/ page */
.acct-btn { gap: 8px; white-space: nowrap; }
.acct-av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #18251D); color: var(--hi, #B7FF72); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; }
.acct-st { font-size: 12px; font-weight: 600; color: #66716A; }
.acct-st.error { color: #C2412D; }
.acct-st.syncing, .acct-st.pending { color: #2847D1; }
.acct-nudge { margin: 0 18px 10px; padding: 10px 12px; border-radius: 12px; background: #F1FBE7; border: 1px solid #D8F2BD; font-size: 13.5px; line-height: 1.45; }
.acct-nudge a { font-weight: 700; color: inherit; }

.acct { padding: 40px 16px 70px; max-width: 980px; }
.acct-loading { color: #66716A; padding: 60px 0; text-align: center; }
.acct .muted { color: #66716A; }
.acct-card { max-width: 440px; margin: 10px auto 0; background: #fff; border: 1px solid #E3E8E4; border-radius: 20px; padding: 30px 28px; box-shadow: 0 1px 2px rgba(24,37,29,.05), 0 12px 32px rgba(24,37,29,.07); }
.acct-card h1 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 6px; }
.acct-card > p { margin: 0 0 18px; }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F0F3F1; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.acct-tabs button { border: 0; background: none; border-radius: 9px; padding: 9px; font: inherit; font-weight: 700; cursor: pointer; color: #66716A; }
.acct-tabs button[aria-selected="true"] { background: #fff; color: var(--ink, #18251D); box-shadow: 0 1px 3px rgba(24,37,29,.12); }
.acct label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.acct input { font: inherit; width: 100%; border: 1px solid #DCE2DE; border-radius: 11px; padding: 11px 12px; background: #fff; }
.acct input:focus { outline: none; border-color: var(--brand, #18251D); box-shadow: 0 0 0 3px rgba(183,255,114,.55); }
.acct .btn.full { width: 100%; justify-content: center; }
.acct-err { background: #FBE3DE; color: #8A2414; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.acct-ok { color: #16834A; font-weight: 700; font-size: 13.5px; margin-left: 10px; }
.acct .acct-small, .acct-card > .acct-small { font-size: 13.5px; line-height: 1.6; color: #66716A; margin: 22px 0 0; text-align: center; }
.acct-back { margin-top: 18px; }
.acct-small a { color: inherit; font-weight: 600; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.acct-head h1 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 4px; }
.acct-head p { margin: 0; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.acct-stats > div { background: #fff; border: 1px solid #E3E8E4; border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.acct-stats small { color: #66716A; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.acct-stats strong { font-size: 22px; letter-spacing: -0.02em; }
.acct-stats span { font-size: 12.5px; color: #66716A; }
.acct-stats .warn strong { color: #B4471E; }
.acct-stats .ok strong { color: #16834A; }
.acct-box { background: #fff; border: 1px solid #E3E8E4; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.acct-box h2 { font-size: 16px; margin: 0 0 12px; }
.acct-box-h { display: flex; justify-content: space-between; align-items: baseline; }
.acct-box-h a { font-weight: 700; font-size: 13.5px; color: inherit; }
.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #EEF1EF; }
.acct-list li:first-child { border-top: 0; }
.acct-list small { display: block; color: #66716A; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .pill { justify-self: end; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; background: #FFF1D6; color: #B26A00; }
.acct .pill.paid { background: #DDF5E6; color: #16834A; }
.acct .pill.overdue { background: #FBE3DE; color: #B4471E; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-grid .acct-box { margin-bottom: 14px; }
.acct-row { display: flex; gap: 8px; flex-wrap: wrap; }
.acct .btn.danger { background: #C2412D; color: #fff; }
.acct .btn.dark { background: var(--brand, #18251D); color: #fff; }
.acct-danger { margin-top: 6px; padding: 14px 18px; border: 1px solid #F2C9C0; border-radius: 16px; background: #FFF8F6; }
.acct-danger summary { cursor: pointer; font-weight: 700; color: #8A2414; }
@media (max-width: 760px) {
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-card { padding: 24px 18px; }
  .acct-st { display: none; }
}

.acct-social { display: grid; gap: 10px; margin-bottom: 6px; }
.acct-sso { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #DCE2DE; border-radius: 12px; padding: 12px; font-weight: 700; text-decoration: none; color: var(--ink, #18251D); background: #fff; }
.acct-sso:hover { border-color: var(--ink, #18251D); background: #FAFBFA; }
.acct-or { display: flex; align-items: center; gap: 12px; color: #8A948E; font-size: 12.5px; font-weight: 600; margin: 14px 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: #E3E8E4; }
