/* BuildSites identity, taken from the live site's styles.css theme tokens (light only).
   tokens.json / variables.css in the site repo describe the earlier "Caldera" template (orange #fc5000)
   and are not what the live site uses, so they are deliberately not copied here. */
:root {
  --page: #F1F1EF; --page-2: #F7F7F9; --surface: #FFFFFF; --tile: #EEF0FF; --line: #DADCE3;
  --ink: #14162B; --ink-2: #3A3F4B; --ink-3: #6B7080; --ember: #3340FF; --ember-text: #3340FF;
  --ok-bg: #E8F7EE; --ok-fg: #17753F; --bad-bg: #FDECEC; --bad-fg: #C93A3F; --warn-bg: #FFF4E5; --warn-fg: #9A5B00;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --radius: 24px; --radius-sm: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--ember-text); text-decoration: none; } a:hover { text-decoration: underline; }

/* The generated SEO pages, styled to match the Material Dashboard shell the React half uses.
 *
 * Every value here was read off the rendered React pages with getComputedStyle rather than guessed,
 * so the two halves agree on colour, radius, shadow, type and spacing. Nothing on these pages runs
 * JavaScript and nothing here needs it: the sidebar collapse is a checkbox. A document that cannot
 * break is the reason the SEO views are generated rather than rendered, and that property is kept.
 */
:root {
  --md-ink: #344767;            /* theme dark.main, used for headings */
  --md-text: #7b809a;           /* theme text.main, used for body copy */
  --md-grey-100: #f8f9fa; --md-grey-200: #f0f2f5; --md-grey-300: #dee2e6; --md-grey-600: #6c757d;
  --md-brand: #3340FF; --md-brand-2: #5A63FF;
  --md-radius: 12px;            /* borders.borderRadius.xl */
  --md-radius-md: 6px;          /* borders.borderRadius.md */
  --md-radius-lg: 8px;          /* borders.borderRadius.lg */
  --md-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --md-shadow-xxl: 0 20px 27px 0 rgba(0,0,0,.05);
  --md-shadow-brand: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(51,64,255,.4);
  --md-font: Roboto, Helvetica, Arial, sans-serif;
  /* the older rules below still reference these two; repointed so those pages match as well */
  --font-body: Roboto, Helvetica, Arial, sans-serif;
  --font-display: Roboto, Helvetica, Arial, sans-serif;
  --page: #f0f2f5;
  --md-sidenav: 250px; --md-sidenav-mini: 96px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--page); color: var(--md-text);
  font: 400 16px/1.6 var(--md-font); -webkit-font-smoothing: antialiased; }
a { color: var(--md-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mi { font-family: "Material Icons Round"; font-weight: 400; font-style: normal; font-size: 20px;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }

/* ---------------------------------------------------------------- sidebar */
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.sidenav { position: fixed; z-index: 1200; top: 16px; left: 16px; bottom: 16px; width: var(--md-sidenav);
  background-image: linear-gradient(195deg, #42424a, #191919); border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-xxl); color: #fff; overflow: hidden auto;
  transition: width .2s ease, transform .2s ease; }
.sidenav-brand { display: flex; align-items: center; padding: 24px 16px 8px; }
.sidenav-brand a { display: flex; align-items: center; width: 100%; }
.brand-lockup { display: block; }
.brand-mark { display: none; }
.sidenav-rule { height: 1px; border: 0; margin: 16px 0; opacity: .25;
  background-image: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0)); }
.sidenav-nav { display: flex; flex-direction: column; padding-bottom: 16px; }
.nav-item { display: flex; align-items: center; gap: 12px; margin: 1.5px 16px; padding: 8px 10px;
  border-radius: var(--md-radius-md); color: #fff; font-size: 14px; font-weight: 400; letter-spacing: .02em;
  white-space: nowrap; transition: background-color .2s ease; }
.nav-item:hover { background-color: rgba(255,255,255,.08); text-decoration: none; }
.nav-item .mi { width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: var(--md-radius-md); background: rgba(255,255,255,.08); font-size: 18px; }
.nav-item.is-on { background-image: linear-gradient(195deg, var(--md-brand-2), var(--md-brand));
  box-shadow: var(--md-shadow-md); }
.nav-item.is-on .mi { background: rgba(255,255,255,.18); }

/* ---------------------------------------------------------------- frame */
.main { margin-left: calc(var(--md-sidenav) + 24px); padding: 8px 24px 24px; min-height: 100vh;
  display: flex; flex-direction: column; transition: margin-left .2s ease; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; min-height: 48px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--md-ink); }
.crumbs a { color: var(--md-ink); opacity: .5; display: inline-flex; }
.crumbs a:hover { opacity: 1; text-decoration: none; }
.crumbs .sep { color: var(--md-grey-600); opacity: .6; }
.navbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; cursor: pointer;
  color: var(--md-ink); border-radius: var(--md-radius-md); }
.navbtn:hover { background: rgba(0,0,0,.04); }
.navbtn .mi { font-size: 22px; }
.content { flex: 1; }
.foot { padding: 24px 0 8px; font-size: 14px; color: var(--md-text); }

/* collapsed: the checkbox is the only mechanism, because there is no script on this page */
.navtoggle:checked ~ .sidenav { width: var(--md-sidenav-mini); }
.navtoggle:checked ~ .sidenav .brand-lockup { display: none; }
.navtoggle:checked ~ .sidenav .brand-mark { display: block; }
.navtoggle:checked ~ .sidenav .sidenav-brand a { justify-content: center; }
.navtoggle:checked ~ .sidenav .nav-label { display: none; }
.navtoggle:checked ~ .sidenav .nav-item { justify-content: center; margin-inline: 12px; }
.navtoggle:checked ~ .main { margin-left: calc(var(--md-sidenav-mini) + 24px); }

@media (max-width: 1199px) {
  .sidenav { transform: translateX(calc(-100% - 24px)); }
  .main, .navtoggle:checked ~ .main { margin-left: 0; }
  .navtoggle:checked ~ .sidenav { transform: none; width: var(--md-sidenav); }
  .navtoggle:checked ~ .sidenav .brand-lockup { display: block; }
  .navtoggle:checked ~ .sidenav .brand-mark { display: none; }
  .navtoggle:checked ~ .sidenav .nav-label { display: inline; }
  .navtoggle:checked ~ .sidenav .nav-item { justify-content: flex-start; margin-inline: 16px; }
}
@media (max-width: 599px) { .main { padding: 8px 16px 24px; } }

/* ---------------------------------------------------------------- type */
h1 { font: 600 24px/1.375 var(--md-font); color: var(--md-ink); letter-spacing: .0073em; margin: 0 0 2px; }
h2 { font: 700 20px/1.375 var(--md-font); color: var(--md-ink); margin: 32px 0 12px; }
h3 { font: 700 16px/1.625 var(--md-font); color: var(--md-ink); margin: 0 0 4px; }
h4 { font: 700 14px/1.5 var(--md-font); color: var(--md-ink); margin: 20px 0 6px; }
.sub { font: 300 16px/1.6 var(--md-font); color: var(--md-text); margin: 0 0 20px; max-width: 68ch; }
.meta { font: 300 14px/1.5 var(--md-font); color: var(--md-text); }
.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--md-grey-200); color: var(--md-ink); padding: 1px 6px; border-radius: var(--md-radius-md); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: inline-flex; gap: 0; background: var(--md-grey-100); border-radius: var(--md-radius);
  padding: 4px; margin: 0 0 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; min-height: 34px;
  border-radius: var(--md-radius-lg); font: 400 16px/1.625 var(--md-font); color: var(--md-ink);
  white-space: nowrap; transition: background-color .3s ease, box-shadow .3s ease; }
.tabs a:hover { text-decoration: none; }
.tabs a.is-on { background: #ffffff; box-shadow: 0 1px 5px 1px #ddd; }
.tabs a b { font-size: 12px; font-weight: 700; color: var(--md-text); }

/* ---------------------------------------------------------------- cards */
.card { background: #ffffff; border-radius: var(--md-radius); box-shadow: var(--md-shadow-md);
  padding: 16px 24px; margin: 0 0 16px; }
.card.held { background: transparent; box-shadow: none; border: 1px dashed var(--md-grey-300); color: var(--md-text); }
.card.held b { color: var(--md-ink); }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card h3 { margin: 8px 0 4px; }
.card h3 a { color: var(--md-ink); }
.card h3 a:hover { color: var(--md-brand); text-decoration: none; }

/* badges, matching MDBadge size="sm" variant="contained" */
.pill { display: inline-block; padding: .55em .9em; border-radius: var(--md-radius-lg);
  font: 700 12px/1 var(--md-font); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  background: #d9dcff; color: #1f27a8; }
.pill.grey { background: #d7d9e1; color: #6c757d; }
.pill.ok { background: #bce2be; color: #339537; }
.pill.bad { background: #fcd3d0; color: #f61200; }
.pill.warn { background: #ffd59f; color: #c87000; }

/* key/value lists */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 0; }
.kv dt { font: 700 12px/1.6 var(--md-font); text-transform: uppercase; letter-spacing: .03em; color: var(--md-text); }
.kv dd { margin: 0; font: 400 14px/1.5 var(--md-font); color: var(--md-ink); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.stat { position: relative; background: #ffffff; border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-md); padding: 8px 16px 0; }
.stat-icon { position: absolute; top: -12px; left: 16px; width: 56px; height: 56px; display: grid;
  place-items: center; border-radius: var(--md-radius); color: #fff; box-shadow: var(--md-shadow-brand);
  background-image: linear-gradient(195deg, var(--md-brand-2), var(--md-brand)); }
.stat-icon .mi { font-size: 24px; }
.stat-icon.dark { background-image: linear-gradient(195deg, #42424a, #191919); box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(64,64,64,.4); }
.stat-icon.success { background-image: linear-gradient(195deg, #66BB6A, #43A047); box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(76,175,80,.4); }
.stat-icon.warning { background-image: linear-gradient(195deg, #FFA726, #FB8C00); box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(255,152,0,.4); }
.stat-icon.error { background-image: linear-gradient(195deg, #EF5350, #E53935); box-shadow: 0 4px 20px 0 rgba(0,0,0,.14), 0 7px 10px -5px rgba(244,67,54,.4); }
.stat-head { text-align: right; padding: 4px 0 8px; min-height: 52px; }
.stat-title { display: block; font: 300 14px/1.5 var(--md-font); color: var(--md-text); }
.stat-count { display: block; font: 700 24px/1.375 var(--md-font); color: var(--md-ink); }
.stat-rule { height: 1px; border: 0; margin: 0; opacity: .25;
  background-image: linear-gradient(to right, rgba(52,71,103,0), rgba(52,71,103,.4), rgba(52,71,103,0)); }
.stat-note { margin: 0; padding: 12px 0; font: 300 14px/1.5 var(--md-font); color: var(--md-text); }

/* ---------------------------------------------------------------- alerts */
.banner { border-radius: var(--md-radius-lg); padding: 16px 20px; margin: 0 0 20px; color: #fff;
  font: 400 14px/1.5 var(--md-font); box-shadow: var(--md-shadow-md); }
.banner.err { background-image: linear-gradient(195deg, #EF5350, #E53935); }
.banner.warn { background-image: linear-gradient(195deg, #FFA726, #FB8C00); }
.banner.ok { background-image: linear-gradient(195deg, #66BB6A, #43A047); }
.banner pre, .banner code { font-size: 13px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }

/* ---------------------------------------------------------------- week groupings */
.week { margin: 0 0 24px; }
.week > h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font: 700 12px/1.6 var(--md-font); text-transform: uppercase; letter-spacing: .03em; color: var(--md-text);
  margin: 0 0 12px; }
.week > h3 em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------------------------------------------------------------- tables */
.tablewrap { background: #ffffff; border-radius: var(--md-radius); box-shadow: var(--md-shadow-md);
  padding: 8px 0 0; overflow-x: auto; margin: 0 0 16px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { padding: 16px 16px 8px; text-align: left; white-space: nowrap;
  font: 700 12px/1.5 var(--md-font); text-transform: uppercase; letter-spacing: .03em; color: var(--md-text);
  border-bottom: 1px solid var(--md-grey-200); }
table.list td { padding: 12px 16px; font: 400 14px/1.5 var(--md-font); color: var(--md-ink);
  border-bottom: 1px solid var(--md-grey-200); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--md-grey-100); }
table.list td a.meta { display: inline-block; font-size: 12px; }

/* ---------------------------------------------------------------- disclosure */
details { margin-top: 12px; }
summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font: 700 12px/1.6 var(--md-font); text-transform: uppercase; letter-spacing: .03em; color: var(--md-brand); }
summary::-webkit-details-marker { display: none; }
summary::before { content: "expand_more"; font-family: "Material Icons Round"; font-size: 18px;
  font-weight: 400; text-transform: none; letter-spacing: normal; transition: transform .2s ease; }
details[open] > summary::before { transform: rotate(180deg); }


/* The published-article preview, kept but brought onto the Material type scale. */
.copy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--md-grey-200); }
.copy h4 { font: 700 12px/1.6 var(--md-font); text-transform: uppercase; letter-spacing: .03em;
  color: var(--md-text); margin: 20px 0 6px; }
.copy h4:first-child { margin-top: 0; }
.copy p, .copy li, .copy dd { font: 400 14px/1.6 var(--md-font); color: var(--md-ink); }
.copy .body h2 { font: 700 20px/1.375 var(--md-font); color: var(--md-ink); margin: 20px 0 8px; }
.copy .body p, .copy .body li { font: 400 15px/1.7 var(--md-font); color: var(--md-ink); }
.copy .answer { background: var(--md-grey-100); border-radius: var(--md-radius-lg); padding: 12px 16px; }
.faq dt { font: 700 14px/1.5 var(--md-font); color: var(--md-ink); margin-top: 12px; }
.faq dd { margin: 4px 0 0; }
pre { background: var(--md-grey-100); border: 0; border-radius: var(--md-radius-lg); padding: 16px;
  font-size: 12px; line-height: 1.6; color: var(--md-ink); overflow: auto; max-height: 420px; }


/* article preview: figures and CTA blocks as the engine composes them */
.copy figure { margin: 18px 0; } .copy figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); } .copy figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.copy .res-card-dark { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px; margin: 18px 0; } .copy .res-card-dark .res-card-title { margin: 0 0 6px; font-weight: 700; color: #98A0FF; } .copy .res-card-dark p { color: rgba(255,255,255,.85); margin: 0 0 10px; } .copy .res-card-dark .btn, .copy .res-cta .btn { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--ember); color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; margin-right: 8px; } .copy .res-cta .btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.copy .res-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0; } .copy .res-cta h2 { margin: 4px 0 6px; font-size: 18px; } .copy .res-cta .contact-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); margin: 0; } .copy .res-cta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ================================================================ business views
   Same tokens as everything above (live BuildSites palette: #3340FF on #F1F1EF). Mobile-first:
   every rule here is the phone layout, and the two media queries only add room on bigger screens.
   Minimal animation: state changes only. */
.money-head { display: flex; align-items: baseline; gap: 12px; }
.money-head h1 { flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.month-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.month-nav strong { min-width: 9ch; text-align: center; font-size: 15px; }

.field { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.toolbar .field { width: auto; min-width: 150px; }
.field-wrap { display: block; margin: 0 0 12px; }
.field-wrap > span { display: block; font-size: 13px; color: var(--ink-3); margin: 0 0 5px; }
.field-wrap.check { display: flex; align-items: center; gap: 10px; }
.field-wrap.check input { width: 22px; height: 22px; accent-color: var(--ember); }
.field-wrap.check > span { margin: 0; font-size: 15px; color: var(--ink); }

.btn { font: inherit; font-weight: 600; font-size: 15px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.wide { flex: 1; }
.btn.danger { color: var(--bad-fg); border-color: #f2c4c6; }
.btn[disabled] { opacity: .45; cursor: default; }
.cta-row { display: flex; gap: 10px; margin: 0 0 22px; }
.stat-sub { display: block; font-size: 12px; color: var(--ink-3); }
.h2-sub { float: right; font: 400 15px/1.6 var(--font-body); color: var(--ink-3); }

.row-card { margin: 0 0 10px; padding: 14px 16px; }
.row-main { display: flex; align-items: flex-start; gap: 12px; }
.row-main > div:first-child { flex: 1; min-width: 0; }
.row-amt { font: 400 22px/1 var(--font-display); white-space: nowrap; }
.row-card .note { margin: 8px 0 0; }
.row-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.row-foot .spacer { flex: 1; }
.gate { max-width: 460px; }
.gate-row { display: flex; gap: 8px; margin: 12px 0 8px; }
.gate-row .field { flex: 1; }
.err-card { border-color: #f2c4c6; }

/* entry sheet: bottom-anchored on a phone so the amount sits under your thumb */
body.locked { overflow: hidden; }
.sheet-back { position: fixed; inset: 0; background: rgba(20,22,43,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: var(--page-2); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
.sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 2px auto 10px; }
.sheet-head { display: flex; align-items: center; margin: 0 0 6px; }
.sheet-head strong { flex: 1; font-size: 17px; }
.sheet-head .x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 6px; }
.amount-row { display: flex; align-items: center; gap: 6px; padding: 10px 0 6px; border-bottom: 2px solid var(--line); margin: 0 0 6px; }
.amount-row .cur { font: 400 30px/1 var(--font-display); color: var(--ink-3); }
.amount-in { font: 400 44px/1.1 var(--font-display); border: 0; background: none; color: var(--ink); width: 100%; padding: 0; outline: none; }
.sheet-err { color: var(--bad-fg); font-size: 14px; font-weight: 600; margin: 6px 0; }
.sheet-fields { padding: 10px 0 0; }
.sheet-foot { position: sticky; bottom: 0; background: var(--page-2); padding: 10px 0 0; display: flex; }

.trend { display: flex; gap: 6px; align-items: flex-end; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; }
.trend-col { flex: 1; text-align: center; min-width: 0; }
.trend-col .bars { display: flex; gap: 3px; align-items: flex-end; justify-content: center; height: 90px; }
.trend .bar { display: block; width: 12px; border-radius: 4px 4px 0 0; min-height: 2px; }
.trend .bar.in { background: var(--ember); }
.trend .bar.out { background: var(--ink-3); opacity: .5; }
.trend-label { display: block; font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.trend-net { display: block; font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }

.cats { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.cat { margin: 0 0 12px; }
.cat-top { display: flex; justify-content: space-between; font-size: 14px; margin: 0 0 5px; }
.cat-bar { height: 8px; border-radius: 99px; background: var(--tile); overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: var(--ember); border-radius: 99px; }

@media (min-width: 640px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: var(--radius); max-width: 520px; }
  .sheet-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .sheet-fields > label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  /* Thumb-reachable action bar. Fixed rather than sticky: sticky sat on top of the tiles behind it.
     The matching padding on .wrap is what stops it covering the last card on the page. */
  .cta-row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
             padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--page);
             border-top: 1.5px solid var(--line); }
  body.has-money-bar .wrap { padding-bottom: 104px; }
  .trend .bar { width: 9px; }
  .trend-net { display: none; }
  nav.tabs { margin-left: 0; width: 100%; }
  .subtabs { margin: 0 0 16px; }
}

/* ---------------------------------------------------------------- clients and pipeline */
.sync-row { gap: 6px; margin: 0 0 14px; }
.review-strip { margin: 0 0 22px; }
.review-strip h2 { margin-top: 18px; }
.review-card { border-color: #f0d9a8; background: #FFFCF5; margin: 0 0 8px; padding: 14px 16px; }
.review-card strong { display: block; margin: 0 0 4px; }
.ghl-block { border-top: 1.5px solid var(--line); margin: 14px 0 0; padding: 14px 0 0; }
.ghl-block .kv { margin: 8px 0 0; }
.danger-zone { border-top: 1.5px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.danger-zone summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.danger-zone .btn { margin: 8px 8px 0 0; }

.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.lane { background: var(--page-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; min-width: 0; }
.lane-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.lane-head strong { font-size: 15px; }
.lane-head .meta { margin-left: auto; }
.lane-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; font: inherit; color: var(--ink); }
.lane-card:hover { border-color: var(--ink-3); }
.lane-card strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-card .meta { font-size: 12px; }
.lane-empty { text-align: center; margin: 6px 0; }
@media (max-width: 640px) { .pipeline { grid-auto-columns: 78vw; } }

/* ---------------------------------------------------------------- two-level navigation
   Four sections in the header, and only the current section's pages underneath. Eleven tabs in one
   row was a tab bar; this is a dashboard with somewhere to go back to. */
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; padding-bottom: 2px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent; }
.subtabs a:hover { background: var(--page-2); text-decoration: none; }
.subtabs a.is-on { background: var(--tile); color: var(--ember-text); }
.subtabs a b { margin-left: 6px; font-size: 12px; opacity: .75; }

/* ---------------------------------------------------------------- home */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 24px 0 0; }
.home-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.home-card h2 { font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 0 0 10px; text-transform: uppercase; color: var(--ink-3); }
.home-list { list-style: none; margin: 0 0 10px; padding: 0; }
.home-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.home-list li:last-child { border-bottom: 0; }
.home-list li .meta { display: block; font-size: 12px; }
.home-list li.bad a { color: var(--bad-fg); }
.home-list li.warn a { color: var(--warn-fg); }
.stat-link { display: block; color: inherit; }
.stat-link:hover { border-color: var(--ink-3); text-decoration: none; }
.stat.tone-bad b { color: var(--bad-fg); }
.home-cta { margin-top: 14px; }
@media (max-width: 460px) { .home-cta { position: static; border: 0; padding: 0; } body.has-money-bar .wrap { padding-bottom: 64px; } }
.home-list.compact li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); }
.home-list.compact li span { color: var(--ink); font-weight: 600; text-align: right; }
.google-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-color: var(--line); }
.google-btn:hover { border-color: var(--ink-3); }
.google-btn .g-mark { display: inline-flex; }
.gate .meta + .meta { margin-top: 10px; }

/* ---------------------------------------------------------------- sign-in page
   The only route an unauthenticated browser can reach. One button, nothing to type. */
/* Sign-in. The product's front door, after the Material template's authentication layout and kept
   restrained: no photography, no motion beyond the button's hover. Plain CSS on a static page with
   one small module, on purpose. Making this a React route would force the gate to exempt the app
   bundle, and this page has to work when nothing else does. */
.signin-body { display: grid; place-items: center; min-height: 100dvh; padding: 24px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #344767;
  /* the template puts a dark gradient over a cover photo; this is the same shape without the photo:
     the page ground with two soft washes of the brand blue */
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(51,64,255,.14), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(51,64,255,.10), transparent 70%),
    #f0f2f5; }
.signin-card { width: 100%; max-width: 400px; background: #fff; border-radius: 0.75rem; border: 0;
  box-shadow: 0 20px 27px 0 rgba(0,0,0,.05), 0 4px 6px -1px rgba(0,0,0,.06); text-align: center;
  margin-top: 3.5rem; }
.signin-head { background-image: linear-gradient(195deg, #5A63FF, #3340FF); border-radius: 0.5rem;
  margin: -3rem 1rem 0; padding: 1.75rem 1.25rem 1.5rem; color: #fff;
  box-shadow: 0 0.25rem 1.25rem 0 rgba(51,64,255,.28), 0 0.4375rem 0.625rem -0.3125rem rgba(51,64,255,.4); }
.signin-mark { display: block; }
.signin-lockup { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.signin-sub { margin: 0.6rem 0 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.85); }
.signin-body-inner { padding: 1.75rem 1.75rem 1.5rem; }
.signin-note { margin: 0 0 1rem; padding: 0.75rem 0.875rem; border-radius: 0.5rem; text-align: left;
  background: #ffd59f; color: #96540a; font: 500 0.8125rem/1.45 Roboto, sans-serif; }
.signin-btn { width: 100%; justify-content: center; gap: 0.6rem; padding: 0.8rem 1rem;
  font: 700 0.75rem/1.5 Roboto, sans-serif; letter-spacing: 0.02857em; text-transform: uppercase;
  color: #344767; background: #fff; border: 1px solid #d2d6da; border-radius: 0.5rem; cursor: pointer;
  box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0,0,0,.06);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.signin-btn:hover { border-color: #3340FF; box-shadow: 0 0.375rem 0.75rem 0 rgba(51,64,255,.18); transform: translateY(-1px); }
.signin-btn:active { transform: none; }
.signin-btn:disabled { opacity: .6; cursor: default; transform: none; }
.signin-err { color: #F44335; font-weight: 500; font-size: 0.8125rem; margin: 0.875rem 0 0; }
.signin-foot { margin: 1.25rem 0 0; font-size: 0.75rem; line-height: 1.5; color: #7b809a; }
@media (prefers-reduced-motion: reduce) { .signin-btn { transition: none; } .signin-btn:hover { transform: none; } }

/* a long article title in the breadcrumb should not push the toggle off the bar */
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ---------------------------------------------------------------- publishing calendar
   Laid out at build time from the same queue the other SEO pages use. No script: a month grid is
   just a grid, and an empty slot is drawn rather than left out so a short week is visible. */
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cal-key { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--md-font);
  text-transform: uppercase; letter-spacing: .02em; color: var(--md-text); }
.cal-key::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--md-brand); }
.cal-key.info::before { background: #3340FF; }
.cal-key.dark::before { background: #344767; }
.cal-key.success::before { background: #4CAF50; }
.cal-key.warn::before { background: #FB8C00; }
.cal-key.empty::before { background: transparent; border: 1.5px dashed var(--md-grey-300); }
.cal-key.outside::before { background: var(--md-grey-100); border: 1px solid var(--md-grey-300); }

.cal-month { margin: 0 0 24px; }
.cal-month h2 { margin: 24px 0 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px;
  background: var(--md-grey-200); border-radius: var(--md-radius); overflow: hidden;
  box-shadow: var(--md-shadow-md); }
.cal-dow { background: #ffffff; padding: 12px 12px 8px; font: 700 12px/1.5 var(--md-font);
  text-transform: uppercase; letter-spacing: .03em; color: var(--md-text); }
.cal-day { background: #ffffff; min-height: 116px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal-day.is-out, .cal-day.is-past { background: var(--md-grey-100); }
.cal-day.is-out .cal-date { opacity: .35; }
.cal-day.is-past .cal-date { opacity: .5; }
.cal-date { font: 400 12px/1 var(--md-font); color: var(--md-text); }
.cal-date em { display: none; }

.cal-item { display: block; padding: 6px 8px; border-radius: var(--md-radius-lg);
  border-left: 3px solid var(--md-brand); background: #d9dcff; text-decoration: none; }
.cal-item:hover { text-decoration: none; filter: brightness(.97); }
.cal-item b { display: block; font: 700 10px/1.4 var(--md-font); text-transform: uppercase;
  letter-spacing: .04em; color: #1f27a8; }
.cal-item span { display: block; font: 400 12px/1.35 var(--md-font); color: var(--md-ink);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cal-item.dark { background: #dee4ef; border-left-color: #344767; }
.cal-item.dark b { color: #1e2e4a; }
.cal-item.success { background: #bce2be; border-left-color: #4CAF50; }
.cal-item.success b { color: #2c6e2f; }
.cal-item.warn { background: #ffd59f; border-left-color: #FB8C00; }
.cal-item.warn b { color: #96540a; }
.cal-item.empty { background: transparent; border: 1.5px dashed var(--md-grey-300); border-left-width: 1.5px; }
.cal-item.empty b { color: var(--md-text); }
.cal-item.empty span { color: var(--md-text); }
.cal-item.empty.held { border-color: #FB8C00; border-style: dashed; background: rgba(251,140,0,.06); }
.cal-item.empty.held b { color: #96540a; }

@media (max-width: 899px) {
  /* a seven-column month is unreadable on a narrow window; the same data reads as a list of days */
  .cal-grid { grid-template-columns: 1fr; gap: 0; }
  .cal-dow { display: none; }
  .cal-day { min-height: 0; border-bottom: 1px solid var(--md-grey-200); }
  .cal-day.is-out { display: none; }
  .cal-date em { display: inline; font-style: normal; margin-left: 6px; text-transform: uppercase;
    font-weight: 700; letter-spacing: .04em; }
}
.signin-note { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--md-radius-lg);
  background: #ffd59f; color: #96540a; font: 500 13px/1.45 var(--md-font); text-align: left; }
