/* The light design system shared by the home page, sign-in, account and admin pages. */
:root {
  --bg: #fbfbf9; --card: #ffffff; --ink: #111113; --ink-2: #3f3f46; --muted: #71717a; --faint: #a1a1aa;
  --line: #e9e9e4; --line-2: #dcdcd5; --soft: #f3f3ef;
  --accent: #16a34a; --accent-2: #22c55e; --accent-soft: #dcfce7; --accent-ink: #052e16;
  --warn: #b45309; --warn-soft: #fef3c7; --bad: #dc2626; --bad-soft: #fee2e2; --info: #2563eb; --info-soft: #dbeafe;
  --r: 16px; --r-lg: 24px; --shadow: 0 1px 2px rgba(17,17,19,.04), 0 8px 24px rgba(17,17,19,.06); --shadow-lg: 0 24px 60px rgba(17,17,19,.14);
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.dots { background-image: radial-gradient(rgba(17,17,19,.09) 1px, transparent 1px); background-size: 22px 22px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #26262b; }
.btn-accent { background: var(--accent-2); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(34,197,94,.28); } .btn-accent:hover { background: #2fd067; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); } .btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* inputs */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,19,.06); }
.err { color: var(--bad); font-size: 13.5px; min-height: 1em; margin: 6px 0; }
.ok { color: var(--accent); font-size: 13.5px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* cards, pills, badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; } .pad-lg { padding: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink-2); }
.badge.green { background: var(--accent-soft); color: #166534; } .badge.red { background: var(--bad-soft); color: #991b1b; } .badge.amber { background: var(--warn-soft); color: #92400e; } .badge.blue { background: var(--info-soft); color: #1e40af; } .badge.dark { background: var(--ink); color: #fff; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251,251,249,.85); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.logo b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--accent-2); font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(17,17,19,.45); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal .card { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; font-size: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 700; margin: 16px 0; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google { width: 100%; }
.google svg { width: 18px; height: 18px; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); }

@media (max-width: 760px) { .nav { display: none; } }
@media (max-width: 520px) { .topbar .logo .brand-name { display: none; } .topbar .wrap { gap: 10px; } .topbar .right { gap: 6px; } }
/* the Scenia logo as an image on the app, account and sign-in pages */
.logo .logo-img { display: block; height: 30px; width: auto; }
.logo .logo-mark { display: block; height: 30px; width: auto; }
.logo img[src*="scenia-mark"] { display: block; }
