:root {
  color-scheme: light;
  --accent: #0f6cbd;
  --accent-dark: #115ea3;
  --nav: #f3f2f1;
  --line: #e1dfdd;
  --text: #242424;
  --muted: #605e5c;
  --card: #fff;
  --canvas: #faf9f8;
  --sel: #deecf9;
  --danger: #c4314b;
  --on-accent: #fff;
  --fill: var(--accent);
  --fill-hover: var(--accent-dark);
  --input-bg: #fff;
  --input-border: #8a8886;
  --btn-bg: #fff;
  --btn-hover: #f5f5f5;
  --top-bg: #fff;
  --table-bg: #fff;
  --table-stripe: #faf9f8;
  --table-row-line: #f3f2f1;
  --flash-bg: #deecf9;
  --flash-border: #b4d6fa;
  --drop-bg: #fff;
  --nav-hover: #e1dfdd;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #62abf5;
  --accent-dark: #3b8fde;
  --nav: #201f1e;
  --line: #3b3a39;
  --text: #f3f2f1;
  --muted: #c8c6c4;
  --card: #252423;
  --canvas: #1b1a19;
  --sel: #323130;
  --danger: #f1707b;
  --on-accent: #0b1a2b;
  --input-bg: #292827;
  --input-border: #605e5c;
  --btn-bg: #323130;
  --btn-hover: #3b3a39;
  --top-bg: #252423;
  --table-bg: #252423;
  --table-stripe: #201f1e;
  --table-row-line: #3b3a39;
  --flash-bg: #1c2b3a;
  --flash-border: #3b8fde;
  --drop-bg: #252423;
  --nav-hover: #323130;
}

html[data-theme="green"] {
  color-scheme: dark;
  --accent: #5ad08a;
  --accent-dark: #056a64;
  --fill: #056a64;
  --fill-hover: #034e49;
  --nav: #12301c;
  --line: #1f4a2c;
  --text: #fff;
  --muted: #fff;
  --card: #173822;
  --canvas: #0e2416;
  --sel: #1e4a2c;
  --danger: #f1707b;
  --on-accent: #fff;
  --input-bg: #14301c;
  --input-border: #2d6a40;
  --btn-bg: #1a3d26;
  --btn-hover: #214a2e;
  --top-bg: #173822;
  --table-bg: #173822;
  --table-stripe: #12301c;
  --table-row-line: #1f4a2c;
  --flash-bg: #154028;
  --flash-border: #5ad08a;
  --drop-bg: #173822;
  --nav-hover: #1e4a2c;
}

html[data-theme="blue"] {
  color-scheme: dark;
  --accent: #5eb1ff;
  --accent-dark: #3d8fe0;
  --nav: #0e2744;
  --line: #1a3d66;
  --text: #e8f3ff;
  --muted: #9ec3e6;
  --card: #123250;
  --canvas: #0b1e33;
  --sel: #1a4068;
  --danger: #f1707b;
  --on-accent: #061525;
  --input-bg: #0f2a46;
  --input-border: #2a5a8a;
  --btn-bg: #153a5c;
  --btn-hover: #1a466e;
  --top-bg: #123250;
  --table-bg: #123250;
  --table-stripe: #0e2744;
  --table-row-line: #1a3d66;
  --flash-bg: #143a60;
  --flash-border: #5eb1ff;
  --drop-bg: #123250;
  --nav-hover: #1a4068;
}

html { background: var(--canvas); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.45 var(--font);
  color: var(--text);
  background: var(--canvas);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--fill);
  color: var(--on-accent);
  padding: 8px 12px;
  z-index: 100;
}
.skip:hover, .skip:active { color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 8px; color: var(--on-accent); text-decoration: none; }

.shell { display: flex; min-height: 100vh; }
.side {
  width: 208px;
  background: var(--nav);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 12px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}
.brand-name { line-height: 1; }
.brand-copy {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 3px;
  background: var(--fill); color: var(--on-accent);
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.site-top {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.site-top .brand { padding: 0; }
.brand-top {
  padding: 0;
  margin-right: 4px;
  flex-shrink: 0;
}
.side nav {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.side nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  min-height: 40px;
}
.side nav a:hover { background: var(--nav-hover); }
.side nav a.on { background: var(--sel); }
.badge {
  background: var(--fill); color: var(--on-accent);
  border-radius: 8px; padding: 1px 7px; font-size: 11px;
}
.side .tag {
  margin-top: auto;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top {
  min-height: 48px;
  background: var(--top-bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}
.top h1 { font-size: 16px; font-weight: 600; margin: 0; }
.top form.search { flex: 1; max-width: 280px; }
.page { flex: 1; padding: 20px 24px 72px; }
.foot {
  min-height: 24px;
  height: auto;
  background: var(--nav);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}
.ver-line {
  margin: 0;
  width: 100%;
  padding: 6px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
.ver-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] .ver-line,
html[data-theme="dark"] .ver-line a,
html[data-theme="dark"] .foot,
html[data-theme="dark"] .foot-status,
html[data-theme="dark"] .site-foot,
html[data-theme="dark"] .site-foot .ver-line,
html[data-theme="dark"] .site-foot .ver-line a,
html[data-theme="green"] .ver-line,
html[data-theme="green"] .ver-line a,
html[data-theme="green"] .foot,
html[data-theme="green"] .foot-status,
html[data-theme="green"] .site-foot,
html[data-theme="green"] .site-foot .ver-line,
html[data-theme="green"] .site-foot .ver-line a,
html[data-theme="blue"] .ver-line,
html[data-theme="blue"] .ver-line a,
html[data-theme="blue"] .foot,
html[data-theme="blue"] .foot-status,
html[data-theme="blue"] .site-foot,
html[data-theme="blue"] .site-foot .ver-line,
html[data-theme="blue"] .site-foot .ver-line a {
  color: #fff;
}
.foot-status {
  margin: 0;
  padding: 0 12px 6px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}
.guest {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.guest > .login-wrap, .guest .login-wrap { flex: 1; min-height: 0; }
.guest-main { flex: 1; }
.site-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--nav);
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
}
.card .k { color: var(--muted); font-size: 13px; }
.card .v { font-size: 22px; font-weight: 600; margin-top: 6px; }
.plan-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.plan-card-annual {
  border-color: var(--accent, #0a7);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #0a7) 35%, transparent);
}
.plan-card.is-current { background: var(--card); }
.plan-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.plan-price {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 600;
}
.plan-save {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a5c3a;
  background: #d8f5e8;
  padding: 3px 8px;
  border-radius: 3px;
}
[data-theme="dark"] .plan-save,
html.dark .plan-save {
  color: #fff;
  background: #174832;
}
html[data-theme="green"] .plan-save,
html[data-theme="green"] .plan-save a {
  color: #0a5c3a;
  background: #d8f5e8;
}
.plan-save-line {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.plan-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
}
@media (max-width: 560px) {
  .plan-pick { grid-template-columns: 1fr; }
}
.muted { color: var(--muted); }
h2.page-title, h1.page-title { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
h2.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.slip-recent {
  display: grid;
  gap: 10px;
}
.slip-recent-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  background: var(--bg);
}
.slip-recent-item:hover { text-decoration: none; border-color: var(--accent, #0F6CBD); }
.slip-recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--nav);
  display: grid;
  place-items: center;
}
.slip-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slip-recent-pdf {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.slip-recent-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.slip-recent-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.csv-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.csv-action select { max-width: 170px; }
input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input:not([type]),
input[type=text],
input[type=password],
input[type=number],
input[type=date],
input[type=search],
input[type=email],
input[type=tel],
input[type=url],
select,
textarea {
  height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--input-border);
  border-radius: 2px;
  background: var(--input-bg);
  width: 100%;
  color: var(--text);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--input-bg) inset;
}
select option {
  background: var(--input-bg);
  color: var(--text);
}
.pw-field {
  position: relative;
  display: block;
  width: 100%;
}
.pw-field input {
  width: 100%;
  padding-right: 48px;
}
button.pw-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button.pw-toggle:hover,
button.pw-toggle:focus-visible {
  color: var(--text);
  background: transparent;
}
button.pw-toggle .pw-eye {
  display: block;
}
button.pw-toggle.is-shown::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(-35deg);
  pointer-events: none;
}
input[type=checkbox],
input[type=radio] {
  width: auto;
  height: auto;
  accent-color: var(--accent);
}
input[type=file] {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
}
textarea { height: auto; min-height: 72px; }
button, .btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  background: var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
}
button:hover, .btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn-accent, button.primary, a.btn.primary {
  background: var(--fill);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}
.btn-accent:hover, button.primary:hover, a.btn.primary:hover,
.btn-accent:focus, button.primary:focus, a.btn.primary:focus,
.btn-accent:active, button.primary:active, a.btn.primary:active {
  background: var(--fill-hover);
  color: var(--on-accent);
}
.btn-danger { color: var(--danger); border-color: var(--danger); }
label { display: block; color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.field { margin-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

table.data { width: 100%; border-collapse: collapse; background: var(--table-bg); border: 1px solid var(--line); }
table.data th {
  background: var(--nav);
  text-align: left;
  font-size: 12px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 8px; border-bottom: 1px solid var(--table-row-line); }
table.data tr:nth-child(even) td { background: var(--table-stripe); }
table.data a.rowlink { color: inherit; display: block; }

.flash {
  background: var(--flash-bg);
  border: 1px solid var(--flash-border);
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.split { display: grid; grid-template-columns: 240px 1fr 320px; gap: 12px; }
.preview {
  background: #2b2b2b;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #c8c6c4;
  overflow: hidden;
}
.preview img { max-width: 100%; max-height: 70vh; }
.drop {
  border: 1px dashed var(--input-border);
  padding: 20px;
  text-align: center;
  background: var(--drop-bg);
  border-radius: 4px;
}
.bar { height: 10px; border-radius: 2px; background: var(--accent); }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card { width: min(560px, 100%); }

.login-wrap.landing-wrap {
  place-items: start stretch;
  align-content: start;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  gap: 24px;
}
.landing-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 650;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.landing-lead { font-size: 18px; max-width: 40rem; }
.landing-kicker { margin: 0; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.landing-cards { margin-top: 8px; }
.landing-cards .card p { margin: 8px 0 0; color: var(--muted); }
.landing-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 12px;
}

.about-name {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 0;
}
.about-box p { margin: 4px 0 0; }

.theme-pick { margin-top: 12px; }
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.theme-swatch {
  height: 40px;
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
  border-radius: 4px;
}
.theme-swatch.on {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button.theme-swatch.theme-light,
button.theme-swatch.theme-light:hover {
  background: #faf9f8;
  color: #242424;
  border-color: #8a8886;
}
button.theme-swatch.theme-dark,
button.theme-swatch.theme-dark:hover {
  background: #1b1a19;
  color: #f3f2f1;
  border-color: #3b3a39;
}
button.theme-swatch.theme-green,
button.theme-swatch.theme-green:hover,
button.theme-swatch.theme-green:focus,
button.theme-swatch.theme-green:active {
  background: #0e2416;
  color: #fff;
  border-color: #056a64;
}
button.theme-swatch.theme-blue,
button.theme-swatch.theme-blue:hover {
  background: #0b1e33;
  color: #e8f3ff;
  border-color: #5eb1ff;
}

.bottom-nav { display: none; }

@media (min-width: 841px) {
  /* Sidebar already shows name + logo; keep a compact logo in the top bar. */
  .brand-top .brand-name,
  .brand-top .brand-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 840px) {
  .side { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .page { padding: 16px 14px 148px; }
  .theme-swatches { grid-template-columns: 1fr 1fr; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--top-bg);
    border-top: 1px solid var(--line);
    height: 56px;
    z-index: 20;
  }
  .foot {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    bottom: 56px;
    height: auto;
    z-index: 19;
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text);
    text-decoration: none;
    min-height: 44px;
  }
  .bottom-nav a.on { color: var(--accent); font-weight: 600; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    border: 1px solid var(--line);
    margin-bottom: 10px;
    padding: 8px 10px 4px;
    background: var(--card);
  }
  table.data td {
    border: 0;
    padding: 4px 0;
    background: transparent !important;
  }
  table.data td::before {
    content: attr(data-label);
    display: inline-block;
    width: 96px;
    color: var(--muted);
    font-size: 12px;
  }
  table.data td.empty-note::before { content: none; display: none; }
  .bottom-nav {
    overflow-x: auto;
    height: auto;
    min-height: 56px;
  }
  .bottom-nav a {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .row2 { grid-template-columns: 1fr; }
  input, select, textarea, button, .btn { min-height: 44px; height: auto; padding: 10px 12px; }
  .theme-swatch { min-height: 36px; height: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rg-chat-msg a { color: var(--accent); font-weight: 600; }
.rg-chat {
  position: fixed;
  right: 0;
  bottom: 28%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.rg-chat.open {
  right: 18px;
  bottom: 18px;
}
.rg-chat-tab {
  border: 0;
  border-radius: 14px 0 0 14px;
  background: var(--fill);
  color: var(--on-accent, #fff);
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 18px 16px 20px;
  cursor: pointer;
  box-shadow: -4px 6px 22px color-mix(in srgb, var(--fill) 35%, transparent);
}
.rg-chat-tab:hover, .rg-chat-tab:focus, .rg-chat-tab:active {
  background: var(--fill-hover);
  color: var(--on-accent, #fff);
}
.rg-chat.open .rg-chat-tab { display: none; }
.rg-chat-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  height: min(480px, calc(100vh - 96px));
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  overflow: hidden;
}
.rg-chat-panel[hidden] { display: none !important; }
.rg-chat.open .rg-chat-panel { display: flex !important; }
.rg-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--fill);
  color: var(--on-accent, #fff);
}
.rg-chat-head a,
.rg-chat-head svg {
  color: var(--on-accent, #fff);
  fill: currentColor;
}
.rg-chat-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rg-chat-hide {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}
.rg-chat-hide:hover { filter: brightness(0.96); }
.rg-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg, #f5f5f5);
}
.rg-chat-msg {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.rg-chat-msg.user {
  align-self: flex-end;
  background: var(--fill);
  color: var(--on-accent, #fff);
}
.rg-chat-msg.user a,
.rg-chat-msg.user svg {
  color: var(--on-accent, #fff);
  fill: currentColor;
}
.rg-chat-msg.assistant {
  align-self: flex-start;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  color: var(--text);
}
.rg-chat-msg.pending { opacity: 0.7; }
.rg-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.rg-chat-form input { margin: 0; flex: 1; }
.rg-chat-form button { flex: 0 0 auto; padding: 10px 16px; }
.rg-chat-mail {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.rg-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 8px;
  background: var(--bg, #f5f5f5);
}
.rg-chat-suggest {
  border: 1px solid var(--line);
  background: var(--card, #fff);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 36px;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.rg-chat-tab:focus-visible,
.rg-chat-hide:focus-visible,
.rg-chat-suggest:focus-visible,
.rg-chat-form button:focus-visible,
.rg-chat-form input:focus-visible {
  outline: 2px solid var(--text, #242424);
  outline-offset: 2px;
}
@media (max-width: 840px) {
  .rg-chat { bottom: 96px; }
  .rg-chat.open {
    left: 8px;
    right: 8px;
    bottom: 78px;
  }
  .rg-chat-panel {
    width: 100%;
    height: min(68vh, 520px);
  }
  .rg-chat-tab {
    font-size: 1rem;
    padding: 12px 14px;
  }
}

.nav-heading {
  display: block;
  padding: 14px 16px 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav, .app-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 16px;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.site-nav a, .app-menu a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 2px;
}
.site-nav a:hover, .app-menu a:hover { background: var(--nav-hover); text-decoration: none; }
.site-nav a.on, .app-menu a.on { color: var(--accent); font-weight: 650; }
.site-nav a.nav-cta {
  background: var(--fill);
  color: var(--on-accent);
  font-weight: 650;
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus,
.site-nav a.nav-cta:active {
  background: var(--fill-hover);
  color: var(--on-accent);
}
.site-nav a.nav-btn {
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 650;
  padding: 0 12px;
  border-radius: 4px;
}
.site-nav a.nav-btn:hover,
.site-nav a.nav-btn:focus,
.site-nav a.nav-btn:active {
  background: var(--nav-hover);
  color: var(--text);
}
.site-nav-foot { border-bottom: 0; padding: 0 0 8px; background: transparent; }
.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 8px;
  font-size: 13px;
}
.legal-links a { color: var(--muted); }
.manage-billing { margin-top: 8px; }
.tax-note { display: block; margin: 2px 0 8px; font-size: 13px; }
.site-foot { flex-direction: column; align-items: stretch; }
.app-menu .nav-heading { padding: 0 8px; }
.bottom-nav .nav-heading { display: none; }

.marketing {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.marketing h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 650;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marketing h2.subhead {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  max-width: 40rem;
}
.marketing .lead { font-size: 1.125rem; max-width: 40rem; }
.trust-line { color: var(--muted); max-width: 42rem; }
.hero-split { display: grid; gap: 18px; align-items: start; }
.hero-copy { min-width: 0; }
.hero-photo, .life-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.hero-photo img, .life-card img { display: block; width: 100%; }
.hero-photo img {
  height: 280px;
  object-fit: cover;
  object-position: center 42%;
}
.hero-photo figcaption, .life-card figcaption {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.life-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.life-card img {
  height: 220px;
  object-fit: cover;
  object-position: center 55%;
}
.contact-form { display: grid; gap: 12px; max-width: 36rem; }
.contact-form label { display: grid; gap: 4px; font-weight: 650; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.market-block { margin-top: 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid h3, .steps h3, .faq-list h3 { margin: 0 0 6px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--muted); }
.faq-list p, .prose p { margin: 0 0 14px; max-width: 42rem; }
.prose h2, .marketing h2 { font-size: 1.35rem; margin: 0 0 10px; }
.prose h2 { margin-top: 28px; }
.included { padding-left: 1.2rem; max-width: 42rem; }
.included li { margin: 6px 0; }
.cta-lg { min-height: 48px; padding: 0 18px; font-weight: 650; }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
@media (min-width: 700px) {
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-card img { height: 240px; }
}
@media (max-width: 839px) {
  .hero-photo { order: -1; }
}
@media (min-width: 840px) {
  .hero-split { grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.9fr); gap: 28px; }
  .hero-photo { order: 0; }
  .hero-photo img { height: 420px; }
}
.feat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nav);
  color: var(--accent);
  margin-bottom: 10px;
}
.feat-icon svg { width: 22px; height: 22px; display: block; }
.feature-grid.feature-icons .card { padding: 14px; }
.steps.steps-row { align-items: start; }
.app-mock { display: grid; gap: 12px; }
.mock-screen {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.mock-body { padding: 12px; }
.mock-fields { display: grid; gap: 8px; margin: 0; }
.mock-fields div { display: grid; gap: 2px; }
.mock-fields dt { color: var(--muted); font-size: 12px; }
.mock-fields dd { margin: 0; font-weight: 650; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th, .mock-table td {
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
}
.mock-table th { color: var(--muted); font-size: 12px; font-weight: 650; }
.mock-note { margin: 8px 0 0; }
.market-end {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
}
.btn:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 840px) {
  .steps.steps-row { grid-template-columns: 1fr 1fr 1fr; }
  .app-mock { grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
@media (min-width: 980px) {
  .feature-grid.feature-icons { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .marketing { padding: 20px 16px 48px; }
  .mock-table { font-size: 12px; }
}

html[data-theme="green"] a,
html[data-theme="green"] a:hover,
html[data-theme="green"] a:focus,
html[data-theme="green"] a:active,
html[data-theme="green"] .kicker,
html[data-theme="green"] h1,
html[data-theme="green"] h2,
html[data-theme="green"] h3,
html[data-theme="green"] .site-nav a,
html[data-theme="green"] .site-nav a.on,
html[data-theme="green"] .site-nav a:hover,
html[data-theme="green"] .app-menu a,
html[data-theme="green"] .app-menu a.on,
html[data-theme="green"] .app-menu a:hover,
html[data-theme="green"] .side nav a,
html[data-theme="green"] .side nav a.on,
html[data-theme="green"] .side nav a:hover,
html[data-theme="green"] .bottom-nav a,
html[data-theme="green"] .bottom-nav a.on,
html[data-theme="green"] .bottom-nav a:hover,
html[data-theme="green"] .foot,
html[data-theme="green"] .site-foot,
html[data-theme="green"] .site-foot a,
html[data-theme="green"] table.data th,
html[data-theme="green"] .nav-heading,
html[data-theme="green"] .rg-chat-msg a,
html[data-theme="green"] .rg-chat-head,
html[data-theme="green"] .rg-chat-head a,
html[data-theme="green"] .rg-chat-tab,
html[data-theme="green"] .rg-chat-tab:hover,
html[data-theme="green"] .rg-chat-tab:focus,
html[data-theme="green"] .rg-chat-tab:active,
html[data-theme="green"] .rg-chat-msg.user,
html[data-theme="green"] .rg-chat-msg.user a,
html[data-theme="green"] .badge,
html[data-theme="green"] .step-n,
html[data-theme="green"] .brand-mark,
html[data-theme="green"] .skip,
html[data-theme="green"] .skip:focus,
html[data-theme="green"] button.primary,
html[data-theme="green"] button.primary:hover,
html[data-theme="green"] button.primary:focus,
html[data-theme="green"] button.primary:active,
html[data-theme="green"] a.btn.primary,
html[data-theme="green"] a.btn.primary:hover,
html[data-theme="green"] a.btn.primary:focus,
html[data-theme="green"] a.btn.primary:active,
html[data-theme="green"] .btn-accent,
html[data-theme="green"] .btn-accent:hover,
html[data-theme="green"] .btn-accent:focus,
html[data-theme="green"] .btn-accent:active,
html[data-theme="green"] .site-nav a.nav-cta,
html[data-theme="green"] .site-nav a.nav-cta:hover,
html[data-theme="green"] .site-nav a.nav-cta:focus,
html[data-theme="green"] .site-nav a.nav-cta:active {
  color: #fff;
}
html[data-theme="green"] :is(
  .skip, .brand-mark, .badge, .step-n, .btn-accent, button.primary, a.btn.primary,
  .nav-cta, .rg-chat-tab, .rg-chat-head, .rg-chat-msg.user
) svg {
  fill: #fff;
  color: #fff;
}
html[data-theme="green"] .rg-chat-hide,
html[data-theme="green"] .rg-chat-hide:hover,
html[data-theme="green"] .rg-chat-hide:focus,
html[data-theme="green"] .rg-chat-hide:active {
  background: #fff;
  color: #056a64;
}
[style*="056a64" i],
[style*="038387" i],
[style*="034e49" i],
[style*="045852" i],
[style*="056a64" i] a,
[style*="038387" i] a,
[style*="034e49" i] a,
[style*="045852" i] a {
  color: #fff;
}

/* 0.22.13: signed-in header fits a phone (PROMO-2) */
@media (max-width: 840px) {
  .top { flex-wrap: wrap; padding: 8px 14px; row-gap: 8px; }
  .top h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top form.search { order: 3; flex: 1 1 100%; max-width: none; }
  .top form.search input { width: 100%; box-sizing: border-box; }
  .top form:not(.search) { flex: 0 1 auto; min-width: 0; max-width: 55%; }
  .top form:not(.search) button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { min-width: 0; max-width: 100vw; }
  .bottom-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bottom-nav a { flex: 0 0 auto; padding: 0 12px; }
}
