/* Accounts, pricing and the admin page (tickmark/account_web.py). */
.acct { display: flex; gap: 2px; align-items: center; font-size: 14px; }
.acct a { color: var(--hero-muted); white-space: nowrap; padding: 8px 11px; border-radius: 6px; font-weight: 500; }
.acct a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.acct a.on { color: #fff; background: rgba(255, 255, 255, .09); }
.acct .acct-me { border: 1px solid #2c3a74; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.plan.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan h2 { margin: 0; }
.plan .amt { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.plan .amt small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.plan form { display: flex; flex-wrap: wrap; gap: 8px; }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  padding: 2px 9px; border-radius: 99px; }
.plan .current { font-size: 13px; font-weight: 600; color: var(--green); }
.need { border-left: 3px solid var(--accent); }

.narrow { max-width: 520px; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form input[type=email] { width: 100%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 16px; }
.stat .n { font-family: var(--display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
/* the admin dashboard (tickmark/admin_web.py) */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 4px; }
.admin-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--fg); border-left: 3px solid var(--line-strong); }
.admin-tile:hover { text-decoration: none; border-color: var(--accent); }
.admin-tile.on { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.admin-tile.is-ok { border-left-color: var(--green); }
.admin-tile.is-bad { border-left-color: var(--red); background: var(--red-soft); }
.admin-tile .n { font-family: var(--display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-tile .k { color: var(--muted); font-size: 13px; line-height: 1.3; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 10px; border-bottom: 1px solid var(--line-strong); }
.bars .bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.bars .bar i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.bars .bar:last-child i { background: var(--green); }
.bars .bar:hover i { opacity: .75; }
@media (max-width: 600px) { .bars { gap: 1px; height: 96px; } }
.bars-axis { display: flex; justify-content: space-between; margin: 4px 0 8px; }
.toplist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.toplist li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; }
.toplist .tl-bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); border-radius: 6px; z-index: 0; }
.toplist .tl-bar.bad { background: var(--red-soft); }
.toplist .tl-k { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.toplist .tl-n { position: relative; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.meter { height: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; margin-top: 5px; max-width: 260px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter.bad i { background: var(--red); }
.switches { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.switches li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.switches li:last-child { border-bottom: 0; padding-bottom: 0; }
.status-ok { color: var(--green); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.checks .status-ok, .checks .status-bad { display: inline-block; min-width: 3.6em; }
.status-bad { color: var(--red); font-weight: 600; }
pre.log { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 12px;
  overflow-x: auto; max-height: 260px; margin: 8px 0 0; }
.tablewrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th, table.users td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.users th { color: var(--muted); font-weight: 600; font-size: 13px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline input[type=email] { flex: 1 1 220px; }

/* invite friends (tickmark/referrals.py) */
.invite { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.invite h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.invite p { margin: 0; color: var(--muted); }
.invite-link { margin: 0; flex-wrap: nowrap; }
.invite-link input { flex: 1 1 auto; min-width: 0; font: 14px var(--mono, ui-monospace, monospace); padding: 8px 10px;
  border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg); }
.invite-link button { padding: 8px 14px; white-space: nowrap; }
.cancel-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 22px; }
.pay-facts > div { padding: 14px 16px; }
.pay-facts h3 { margin: 0 0 4px; font-size: 15px; }
.pay-facts p { margin: 0; font-size: 14px; color: var(--muted); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; }
.compare td.c, .compare th.c { text-align: center; }

/* Delete your account (templates/account.html) */
.delete-box h2 { color: var(--red); }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
