/* CamByte account pages. Same palette and type as /cambyte/. */
:root {
  --bg: #fbfaf8; --bg-2: #f3f1ee; --panel: #ffffff; --line: #e4e0db;
  --ink: #17141a; --ink-2: #3f3a43; --muted: #6d6770;
  --red: #DC1F26; --red-hi: #b8161c; --ok: #1d8a57; --warn: #a8690a;
  --display: 'Syne', sans-serif; --body: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--red-hi); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 4.4vw, 44px); }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; font-weight: 600; }
.lede { color: var(--ink-2); font-size: 18px; }
.small { font-size: 14px; color: var(--muted); }
.top { border-bottom: 1px solid var(--line); background: rgba(251,250,248,.95); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.brand span { color: var(--red); }
.brand small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--muted); }
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.top nav a, .link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.top nav a:hover, .link:hover { color: var(--red); }
form.inline { display: inline; }
main { padding: 32px 16px 56px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 1px 2px rgba(23,20,26,.04), 0 8px 24px rgba(23,20,26,.05); margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; font-family: var(--body); font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hi); }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.form { display: grid; gap: 14px; }
.form.row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .acts input, .acts select { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.acts input, .acts select { font-size: 13px; padding: 5px 6px; width: auto; }
.field input:focus, .field select:focus { border-color: var(--ink-2); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.narrow { max-width: 460px; margin: 0 auto; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { padding-left: 20px; color: var(--ink-2); }
.steps li { margin: 6px 0; }
.note { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; font-weight: 500; }
.note.ok { background: #eaf6ef; border-color: #b9e0c9; color: #135c3a; }
.note.bad { background: #fdecec; border-color: #f2bcbc; color: #8d1217; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #e3f4ea; color: #135c3a; }
.pill.warn { background: #fdf1dc; color: #7a4c06; }
.pill.bad { background: #fde6e6; color: #8d1217; }
.track { list-style: none; padding: 0; margin: 0; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.step h2 span { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--muted); font-size: 14px; font-family: var(--body); flex: none; }
.step.done h2 span { background: var(--ok); color: #fff; }
.step.now { border-color: var(--red); }
.step.now h2 span { background: var(--red); color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 12px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: relative; }
.plan.best { border-color: var(--red); }
.plan .tag { position: absolute; top: -11px; right: 14px; background: var(--red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.price { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.price small { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 500; }
.sum { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.sum td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.sum .tot td { font-weight: 700; font-size: 16px; border-bottom: 0; }
.plan .btn { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 500; }
.scroll { overflow-x: auto; }
.admin td.acts form { display: inline-block; margin: 0 4px 4px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: grid; padding: 16px; }
.stat b { font-family: var(--display); font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
.receipt { max-width: 640px; margin: 0 auto; }
.foot { color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
@media (max-width: 760px) {
  .auth, .plans, .grid2 { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  main { padding-top: 22px; }
}
@media print {
  .top, .foot, [data-print] { display: none; }
  .card { box-shadow: none; border: 0; }
}
