/* AppBird.in — one stylesheet for the whole site.
   Brand: Fira Sans, blues on blush. Colours match the approved mockup. */

:root {
  --ink: #0B2540;
  --ink-soft: #3A4A5E;
  --ink-mute: #5B6577;
  --blue: #0277BD;
  --blue-dark: #01579B;
  --blue-pale: #E1F0FA;
  --blush: #FAEBE4;
  --app-bg: #F1F7FC;
  --line: #E3E7EE;
  --line-strong: #D5DBE5;
  --white: #FFFFFF;
  --green-bg: #DCFCE7; --green-fg: #166534;
  --amber-bg: #FEF3C7; --amber-fg: #92400E;
  --red-bg: #FEE2E2;   --red-fg: #991B1B;
  --grey-bg: #F3F5F8;  --grey-fg: #3A4A5E;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(11, 37, 64, .08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 64, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Fira Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
img { max-width: 100%; }
summary { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
small { font-size: 13px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.tiny { font-size: 13px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; } .mb32 { margin-bottom: 32px; }
.hide { display: none; }

/* --- Site header ------------------------------------------------------- */
.site-head { background: var(--blush); }
.site-head .bar {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: block; }
.logo img { height: 64px; width: auto; display: block; mix-blend-mode: darken; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink); }
.site-nav a:hover, .site-nav a.on { color: var(--blue); }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.nav-divider { width: 1px; height: 22px; background: rgba(11, 37, 64, .15); }
.nav-form { margin: 0; display: inline; }
.nav-link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink);
}
.nav-link-button:hover { color: var(--blue); }

/* The menu button, only on small screens */
.nav-toggle-box { position: absolute; left: -9999px; }
.nav-toggle { display: none; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700; z-index: 20;
}
.skip-link:focus { left: 8px; color: #fff; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: 15px; font-family: inherit; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-outline { background: var(--white); border-color: var(--blue); color: var(--blue-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #06192C; color: var(--white); }
.btn-danger { background: var(--white); border-color: #FCA5A5; color: #B91C1C; }
.btn-link { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; font-size: 15px; }
.btn-pill { border-radius: 999px; padding: 10px 20px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Badges and pills -------------------------------------------------- */
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--grey-bg); color: var(--grey-fg);
}
.badge-green { background: var(--green-bg); color: var(--green-fg); }
.badge-amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge-red { background: var(--red-bg); color: var(--red-fg); }
.badge-blue { background: var(--blue-pale); color: var(--blue-dark); }
.badge-ink { background: var(--ink); color: var(--white); }
.chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600;
}
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; }

/* --- Cards and panels -------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card-pad-lg { padding: 28px; }
.card-blue { background: var(--app-bg); border-color: transparent; }
.card-blush { background: var(--blush); border-color: transparent; }
.card-dark { background: var(--ink); color: var(--white); border-color: transparent; }
.card-dark h1, .card-dark h2, .card-dark h3 { color: var(--white); }
.card-dark p { color: #C9D6E3; }
.card-dashed { border: 1.5px dashed #B9C6D6; background: var(--white); }
.card-hover:hover { border-color: var(--blue); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row-tight { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.fill { flex: 999 1 420px; min-width: 0; }
.side { flex: 1 1 300px; min-width: 0; }

/* --- Sections ---------------------------------------------------------- */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-tint { background: var(--app-bg); }
.section-blush { background: var(--blush); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: #C9D6E3; }
.section-head { margin-bottom: 28px; }

/* --- Hero -------------------------------------------------------------- */
.hero { background: var(--blush); }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 32px 72px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero-text { flex: 1.2 1 440px; min-width: 0; }
.hero h1 { font-size: 54px; margin: 18px 0 16px; }
.hero-card { flex: 1 1 380px; min-width: 0; background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); }
.pill-light { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--blue-dark); font-size: 13px; font-weight: 700; }

/* --- Forms ------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field .help { font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number],
input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 15.5px; font-family: inherit; color: var(--ink); background: var(--white); line-height: 1.4;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(2, 119, 189, .25); border-color: var(--blue); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6577' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input-inline input, .input-inline select { flex: 1 1 260px; }
.readonly { background: #F7F9FB; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer; margin-bottom: 10px;
}
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.choice.on { border-color: var(--blue); background: var(--app-bg); }
.choice .choice-title { font-weight: 700; }
.choice .choice-text { font-size: 14px; color: var(--ink-soft); }
.error-text { color: #B91C1C; font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.field-error input, .field-error textarea, .field-error select { border-color: #FCA5A5; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.sr-only { position: absolute; left: -9999px; }

/* --- Tables ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.table thead tr { background: var(--app-bg); text-align: left; }
table.table th { padding: 13px 18px; font-weight: 800; }
table.table td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
table.table td.ink, table.table th[scope=row] { color: var(--ink); }
table.table tbody tr.on { background: var(--app-bg); }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; color: var(--ink-mute); font-size: 12.5px; font-weight: 700; padding: 8px 10px 8px 0; }
table.plain td { padding: 12px 10px 12px 0; border-top: 1px solid #EEF1F6; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
dl.facts dt { color: var(--ink-mute); }
dl.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* --- Progress and meters ---------------------------------------------- */
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.meter.amber > span { background: #D97706; }
.meter.red > span { background: #DC2626; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 17px 20px; }
.kpi .kpi-label { font-size: 13.5px; color: var(--ink-mute); font-weight: 600; }
.kpi .kpi-value { font-size: 27px; font-weight: 800; margin: 6px 0 2px; }
.kpi .kpi-note { font-size: 12.5px; font-weight: 700; }
.up { color: #15803D; } .down { color: #B91C1C; } .flat { color: var(--ink-mute); }

/* --- Notices ----------------------------------------------------------- */
.notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 18px; border: 1px solid transparent; }
.notice-info { background: var(--app-bg); border-color: #CBE3F5; color: var(--ink); }
.notice-ok { background: #ECFDF3; border-color: #A7E8C0; color: #14532D; }
.notice-warn { background: #FFF7E6; border-color: #F5D9A8; color: #4A3410; }
.notice-error { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.notice a { font-weight: 700; }
.flash-stack { margin-bottom: 8px; }

/* --- Timeline (activity log) ------------------------------------------ */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: 16px; }
.timeline .dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline .dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  background: var(--blue); color: var(--white);
}
.timeline .dot.waiting { background: #F59E0B; }
.timeline .dot.later { background: var(--line); color: var(--grey-fg); }
.timeline .dot.failed { background: #DC2626; }
.timeline .dot.skipped { background: var(--line-strong); color: var(--grey-fg); }
.timeline .line { flex: 1; width: 2px; background: var(--line); margin: 4px 0; }
.timeline .body { padding-bottom: 22px; min-width: 0; }
.timeline .body strong { font-size: 15.5px; }

/* --- Compare / draft blocks ------------------------------------------- */
.before, .after { border-radius: 12px; padding: 14px 16px; }
.before { background: #FEF2F2; }
.after { background: #ECFDF3; }
.before .cap { font-size: 12px; font-weight: 800; color: #991B1B; margin-bottom: 4px; }
.after .cap { font-size: 12px; font-weight: 800; color: var(--green-fg); margin-bottom: 4px; }
.mail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail .mail-head { padding: 10px 16px; background: #F7F9FB; font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mail .mail-body { margin: 0; padding: 16px; font-size: 15px; line-height: 1.6; white-space: pre-line; }
pre.code {
  margin: 0; padding: 13px 15px; border-radius: 10px; background: var(--ink); color: #E6F1FA;
  font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
pre.plain {
  margin: 0; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #F7F9FB; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px;
  line-height: 1.6; white-space: pre-wrap;
}

/* --- FAQ --------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 17px; font-weight: 700; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* --- Footer ------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #C9D6E3; margin-top: 0; }
.site-foot a { color: #C9D6E3; }
.site-foot a:hover { color: var(--white); }
.site-foot .foot-top {
  max-width: 1200px; margin: 0 auto; padding: 48px 32px 32px;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between;
}
.site-foot .foot-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 14px; }
.site-foot .foot-col { display: flex; flex-direction: column; gap: 10px; }
.site-foot .foot-col strong { color: var(--white); }
.site-foot .foot-base {
  max-width: 1200px; margin: 0 auto; padding: 18px 32px 30px;
  border-top: 1px solid #23456A; font-size: 13px;
}

/* --- App and admin shell --------------------------------------------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--app-bg); }
.sidebar {
  flex: 1 1 240px; max-width: 260px; min-width: 210px; background: var(--blush);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 22px;
}
.sidebar .logo img { height: 56px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #2A3446;
}
.side-nav a:hover { background: rgba(255, 255, 255, .55); }
.side-nav a.on { background: var(--white); color: var(--blue-dark); }
.side-nav .count { font-size: 12px; font-weight: 800; color: var(--white); background: #C2410C; border-radius: 999px; padding: 2px 8px; }
.side-foot { margin-top: auto; }
.usage-card { display: block; background: var(--white); border-radius: 12px; padding: 14px; color: var(--ink); }
.usage-card .plan { font-size: 13px; font-weight: 800; }
.usage-card .used { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 8px; }

.shell-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--white); border-bottom: 1px solid var(--line); padding: 13px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.page { padding: 28px 36px 56px; }
.page-head { margin-bottom: 22px; }
.page h1 { font-size: 30px; }
.crumbs { font-size: 14px; color: var(--ink-mute); margin-bottom: 12px; }

/* Admin sidebar is navy */
.sidebar-admin { background: var(--ink); }
.sidebar-admin .logo { background: var(--blush); border-radius: 12px; padding: 10px 12px; text-align: center; }
.sidebar-admin .side-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #9FB4CA; padding: 0 12px; }
.sidebar-admin .side-nav a { color: #C9D6E3; }
.sidebar-admin .side-nav a:hover { background: #16365A; color: var(--white); }
.sidebar-admin .side-nav a.on { background: #1F3F66; color: var(--white); }
.sidebar-admin .health { padding: 14px; border-radius: 12px; background: #163456; font-size: 13px; line-height: 1.5; color: #C9D6E3; }
.sidebar-admin .health strong { color: var(--white); }

/* --- Auth pages ------------------------------------------------------- */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-aside {
  flex: 1 1 380px; min-width: 0; background: var(--blush); padding: 40px 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.auth-main { flex: 2 1 520px; min-width: 0; padding: 48px 56px; }
.auth-main .box { max-width: 460px; }
.steps { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 32px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--grey-bg); color: var(--ink-mute); }
.steps li .n { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--line-strong); color: #2A3446; }
.steps li.now { background: var(--blue-pale); color: var(--blue-dark); }
.steps li.now .n { background: var(--blue); color: var(--white); }
.steps li.done { background: #ECFDF3; color: var(--green-fg); }
.steps li.done .n { background: #16A34A; color: var(--white); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { flex: none; }

/* --- Agent cards ------------------------------------------------------ */
.agent-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.agent-card h3 { margin: 4px 0 0; font-size: 19px; }
.agent-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.agent-card .needs { font-size: 13px; color: var(--ink-mute); }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); display: flex; justify-content: space-between; gap: 8px; }

/* --- Plan cards ------------------------------------------------------- */
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue); }
.plan .plan-name { font-size: 20px; font-weight: 800; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan .per { font-size: 14px; color: var(--ink-mute); font-weight: 400; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul svg { flex: none; margin-top: 2px; }
.plan .for { min-height: 44px; font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* --- Steps / numbered ------------------------------------------------- */
.numbered { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.numbered li .n { font-size: 13px; font-weight: 800; color: var(--blue); }
.numbered li { border-top: 3px solid var(--blue); padding-top: 16px; }
.numbered li h3 { font-size: 18px; margin: 6px 0; }
.numbered li p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.step-box { background: var(--app-bg); border-radius: 18px; padding: 26px; }
.step-box .n {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.step-box h3 { font-size: 21px; margin: 16px 0 8px; }
.step-box p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* --- Filters ---------------------------------------------------------- */
.filters { flex: 1 1 220px; min-width: 0; }
.filter-label { font-size: 13px; font-weight: 800; color: var(--ink-mute); letter-spacing: .05em; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.filter-list a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #2A3446; }
.filter-list a:hover { background: var(--app-bg); }
.filter-list a.on { background: var(--blue-pale); color: var(--blue-dark); }

/* --- Pagination ------------------------------------------------------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink);
}
.pager .on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* --- Charts ----------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Menu button in the header, nav drops down below it when pressed */
  .site-head .bar { position: relative; flex-wrap: wrap; align-items: center; }
  .site-head .bar .logo { flex: 1 1 auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 11px; border-radius: 12px;
    border: 1.5px solid rgba(11, 37, 64, .18); background: rgba(255, 255, 255, .7);
    cursor: pointer; flex: none;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-toggle:focus-visible, .nav-toggle-box:focus-visible + .nav-toggle { outline: 3px solid rgba(2, 119, 189, .35); }

  .site-nav {
    display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px 0 6px; margin-top: 10px;
    border-top: 1px solid rgba(11, 37, 64, .12);
  }
  .nav-toggle-box:checked ~ .site-nav { display: flex; }
  .site-nav a, .site-nav .nav-link-button {
    display: block; width: 100%; text-align: left; padding: 13px 4px; font-size: 16.5px;
    border-bottom: 1px solid rgba(11, 37, 64, .07);
  }
  .site-nav .btn-primary {
    margin-top: 12px; text-align: center; border-bottom: 0; border-radius: 12px; padding: 14px 20px;
  }
  .nav-divider { display: none; }
  .foot-base span[style] { float: none !important; display: block; margin-top: 8px; }
}

@media (max-width: 860px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 38px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .hero-inner { padding: 32px 20px 48px; }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .page { padding: 20px 20px 48px; }
  .topbar { padding: 12px 20px; }
  .sidebar { max-width: none; flex-basis: 100%; }
  .auth-main { padding: 32px 20px; }
  .auth-aside { padding: 28px 20px; }
  .site-head .bar { padding: 12px 20px; }
  .logo img { height: 52px; }
}
@media print {
  .sidebar, .topbar, .site-head, .site-foot, .btn, .pager { display: none !important; }
  .shell, body { background: #fff; }
}

/* --- Getting started checklist (dashboard) ------------------------------- */
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width .3s ease;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.checklist li:first-child { border-top: 0; }
.checklist li > span:nth-child(2) { flex: 1 1 auto; }
.checklist .tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
}
.checklist li.is-done .tick {
  background: var(--green-bg);
  border-color: var(--green-bg);
  color: var(--green-fg);
}
.checklist li.is-done strong {
  color: var(--ink-mute);
  text-decoration: line-through;
}
@media (max-width: 640px) {
  .checklist li { flex-wrap: wrap; }
}
